/* /css/subpages.css — shared NoGatekeepers subpage theme.
   Version is supplied by the parent PHP page as a stylesheet query parameter. */
:root {
    color-scheme: light;
    --ink: #121212;
    --paper: #e9dfce;
    --red: #aa302b;
    --offwhite: #fff7e8;
    --line: #8e8579;
    --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--offwhite);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}
.pageWrap { min-height: calc(100vh - 92px); }

/* Shared brand header — matches the homepage's black/red palette. */
.siteHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: var(--max);
    margin-inline: auto;
    padding: 17px clamp(12px, 2.3vw, 34px) 12px;
    background: #191919;
    font-family: Impact, 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(26px, 3.1vw, 46px);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.siteHeader a:first-child { color: var(--offwhite) !important; text-decoration: none; }
.siteHeader a:first-child span:last-child { color: #e14e43; font-size: .75em; }
.siteHeader a:last-child { margin-left: auto; color: #e14e43 !important; font-size: 20px; }

/* Existing navigation markup: /ui/navbar.php */
.navbar {
    background: #191919;
    border-bottom: 3px solid var(--red);
    font-family: Impact, 'Arial Narrow', Arial, sans-serif;
}
.navLinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px clamp(12px, 2vw, 28px);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(12px, 2.3vw, 34px) 14px;
}
.navLinks a {
    color: var(--offwhite);
    text-decoration: none;
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.2;
    text-transform: uppercase;
}
.navLinks a:hover { color: #e14e43; }
.navMobileTop, #navCloseBtn { display: none; }

/* Main editorial surface. */
.subtitle {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px clamp(18px, 4vw, 60px);
    background: #292522;
    border-bottom: 3px solid var(--red);
    font: italic 15px/1.6 Arial, sans-serif;
}
.contentWrap {
    width: min(calc(100% - 24px), 1060px);
    margin: 24px auto 42px;


padding: 8px 30px 20px;
    background: var(--paper);
    color: var(--ink);
    border-top: 7px solid var(--red);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}
.contentWrap h1, .contentWrap h2, .contentWrap h3, .contentWrap h4 {
    font-family: Impact, 'Arial Narrow', Arial, sans-serif;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    line-height: 1.08;
}

.contentWrap h1 {
    font-size: clamp(32px, 4vw, 52px);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--ink);
}

.contentWrap h2 {
    font-size: clamp(27px, 3vw, 40px);
    margin: 38px 0 14px;
    padding: 0 0 9px;
    border-bottom: 2px solid #b9ab98;
}
.contentWrap h2::before { content: '/'; color: var(--red); margin-right: 11px; }
.contentWrap h3 { font-size: clamp(21px, 2vw, 28px); margin: 26px 0 8px; }

.contentWrap p { max-width: none; margin: 12px 0 18px; font-size: 16px; }

.contentWrap strong { font-weight: 800; }
.contentWrap ul, .contentWrap ol { max-width: 80ch; margin: 13px 0 24px; padding-left: 28px; }
.contentWrap li { margin-bottom: 7px; padding-left: 3px; }
.contentWrap li::marker { color: var(--red); }
.contentWrap a { color: #92271f; font-weight: 700; }
.contentWrap img { max-width: 100%; height: auto; }
.contentWrap img[style] { max-width: 100% !important; height: auto !important; }
.contentWrap h2[id] { scroll-margin-top: 18px; }

/* At the beginning of each article, a list of anchor links acts as a contents guide. */
.contentWrap > ul:first-of-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    max-width: none;
    margin: 0 0 28px;
    padding: 18px 18px 18px 38px;
    background: #f6ead7;
    border: 1px solid #b9ab98;
}
.contentWrap > ul:first-of-type li { margin-bottom: 0; }

/* Form controls for login and registration subpages. */
.contentWrap input, .contentWrap textarea, .contentWrap select {
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fffaf0;
    color: var(--ink);
    font: 16px Arial, sans-serif;
}
.contentWrap button, .contentWrap input[type='submit'] {
    padding: 11px 17px;
    border: 2px solid var(--red);
    background: var(--red);
    color: #fff;
    font: 900 16px Impact, 'Arial Narrow', Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}
.contentWrap button:hover, .contentWrap input[type='submit']:hover { background: #85201c; }

.siteFooter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 15px clamp(12px, 2.3vw, 34px);
    border-top: 3px solid var(--red);
    color: var(--offwhite);
    font: 13px/1.5 Arial, sans-serif;
}
.siteFooter a { color: #e14e43; }

@media (max-width: 720px) {
    .siteHeader { justify-content: center; text-align: center; font-size: clamp(25px, 7vw, 40px); }
    .navLinks { justify-content: center; gap: 10px 17px; }
    .navLinks a { font-size: 13px; }
.contentWrap { width: calc(100% - 20px); margin-top: 10px; padding: 8px 12px 20px; }
    .contentWrap > ul:first-of-type { grid-template-columns: 1fr; }
    .siteFooter { justify-content: center; text-align: center; }
}
