/* ==========================================================
   tbwr.org - main stylesheet
   Navy + gold, matching the Mega Record Book family.
   ========================================================== */

:root {
    --navy-900: #08142B;
    --navy-800: #0E1F3F;
    --navy-700: #1A3060;
    --gold-500: #C9A227;
    --gold-300: #E6C766;
    --gold-100: #F6EBC6;
    --paper: #F5F7FA;
    --white: #FFFFFF;
    --ink: #1B2433;
    --muted: #5B6576;
    --line: #DDE2EA;
    --live: #D7263D;

    --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
    --sans: 'Mukta', 'Segoe UI', Arial, sans-serif;

    --radius-sm: 4px;
    --radius: 8px;
    --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-900);
    margin: 0 0 0.5em;
}

.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold-500);
    color: var(--navy-900);
    padding: 8px 14px;
    z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-900); }
.btn-outline-light { border-color: rgba(230, 199, 102, 0.7); color: var(--gold-100); }
.btn-outline-light:hover { background: rgba(230, 199, 102, 0.12); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy-900);
    border-bottom: 3px solid var(--gold-500);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #D5DCE8;
    font-weight: 500;
    text-decoration: none;
}
.site-nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.site-nav ul a[aria-current="page"] { color: var(--gold-300); box-shadow: inset 0 -2px 0 var(--gold-500); }
.nav-cta { padding: 8px 16px; font-size: 0.95rem; }

.nav-toggle {
    display: none;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(230, 199, 102, 0.6);
    border-radius: var(--radius-sm);
    color: var(--gold-100);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Hero: framed like a certificate ---------- */
.hero { background: var(--navy-800); color: #D5DCE8; padding: 56px 0; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px 48px;
    border: 1px solid rgba(201, 162, 39, 0.6);
    outline: 1px solid rgba(201, 162, 39, 0.25);
    outline-offset: 6px;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 20ch;
}
.hero .lead { font-size: 1.15rem; max-width: 56ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img {
    width: min(280px, 70vw);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(201, 162, 39, 0.15), 0 0 0 9px rgba(201, 162, 39, 0.5);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0; }
.empty-note {
    margin: 0;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
}
.section-alt .empty-note { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: #AEB8C9;
    padding: 56px 0 0;
    border-top: 3px solid var(--gold-500);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
    gap: 32px;
}
.footer-grid img { width: 64px; height: 64px; margin-bottom: 12px; }
.footer-grid p { margin: 0; max-width: 40ch; }
.footer-heading {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-300);
    margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D5DCE8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-note { display: block; font-size: 0.9rem; color: #8591A6; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy-800); color: #D5DCE8; padding: 48px 0; border-bottom: 1px solid rgba(201, 162, 39, 0.4); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.25em; }
.page-hero .lead { margin: 0; max-width: 60ch; font-size: 1.1rem; }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-card-link:hover h3 { color: var(--navy-700); text-decoration: underline; }
.news-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; background: var(--navy-800); }
.news-card-placeholder { display: flex; align-items: center; justify-content: center; }
.news-card-placeholder img { width: 72px; height: 72px; }
.news-card-body { padding: 18px 20px 22px; }
.news-card-body time,
.article-date { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; }
.news-card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.news-card-body p { margin: 0; color: var(--muted); }
.section-head a { font-weight: 700; white-space: nowrap; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pagination a { font-weight: 700; }
.pagination span { color: var(--muted); }

/* ---------- Single news article ---------- */
.narrow { max-width: 760px; }
.article-head { padding-top: 48px; }
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 500; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.article-cover { max-width: 1000px; margin: 24px auto 0; padding: 0 20px; }
.article-cover img { display: block; width: auto; max-width: 100%; max-height: 85vh; margin: 0 auto; border-radius: var(--radius); }
.article-body { padding-top: 32px; padding-bottom: 56px; font-size: 1.125rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.1em; }

/* ---------- Live banner (site-wide) ---------- */
.live-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 10px 20px;
    background: var(--live);
    color: var(--white);
    text-align: center;
    text-decoration: none;
}
.live-banner:hover { background: #B81F32; color: var(--white); }
.live-banner strong { font-weight: 700; }
.live-banner-cta { text-decoration: underline; font-weight: 700; }
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Video cards and player ---------- */
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-play span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--gold-300);
    border-radius: 50%;
    background: rgba(8, 20, 43, 0.75);
}
.video-play span::before {
    content: "";
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--gold-100);
}
.news-card-link:hover .video-play span { background: rgba(8, 20, 43, 0.9); border-color: var(--gold-500); }
.video-badge { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.video-badge-live { background: var(--live); color: var(--white); }
.video-badge-upcoming { background: var(--gold-500); color: var(--navy-900); }

.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.live-feature { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.live-feature-title { margin: 12px 0 8px; font-size: 1.5rem; }
.muted-text { color: var(--muted); }
.spaced-grid { margin-top: 32px; }
.live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--live);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}
.live-label .live-dot { width: 8px; height: 8px; }

.video-page { max-width: 1000px; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 8px; }
.video-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.video-description { padding: 0; max-width: 760px; }
.video-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Contact page and public forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #C5CCD8;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.field textarea { line-height: 1.6; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy-700); outline: 2px solid var(--gold-300); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.optional { font-weight: 400; color: var(--muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }

.notice { margin-bottom: 20px; padding: 12px 16px; border: 1px solid; border-radius: var(--radius-sm); }
.notice-success { background: #EAF6EE; border-color: #B5DEC2; color: #1D6B38; }
.notice-error { background: #FDECEE; border-color: #F3B7BF; color: #8A1626; }
.notice ul { margin: 0; padding-left: 1.1em; }

.contact-aside h2 { font-size: 1.3rem; }
.contact-aside ul { list-style: none; margin: 0; padding: 0; }
.contact-aside li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.contact-aside li:first-child { padding-top: 0; }
.contact-aside strong { display: block; margin-bottom: 2px; color: var(--navy-900); }
.contact-aside a { display: inline-block; margin-top: 4px; font-weight: 500; }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.about-intro p { max-width: 62ch; font-size: 1.1rem; }
.about-intro .motto {
    margin: 0;
    padding: 28px 32px;
    border-left: 4px solid var(--gold-500);
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy-900);
}
.motto span { display: block; }

.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.office { padding: 24px; background: var(--paper); border-top: 3px solid var(--gold-500); border-radius: var(--radius-sm); }
.office h3 { margin-bottom: 4px; font-size: 1.35rem; }
.office-entity { margin: 0 0 10px; font-weight: 700; color: var(--navy-700); }
.office p:last-child { margin: 0; color: var(--muted); }

.process {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px 40px;
}
.process li { position: relative; padding-left: 56px; counter-increment: step; }
.process li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    color: var(--navy-900);
    font-family: var(--serif);
    font-weight: 700;
}
.process h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.process p { margin: 0; color: var(--muted); }

.standards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.standards-grid h3 { font-size: 1.15rem; }
.standards-grid p { margin: 0; color: var(--muted); }

.about-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-sites h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.about-sites p { margin: 0; color: var(--muted); max-width: 50ch; }
.site-list { list-style: none; margin: 0; padding: 0; }
.site-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.site-list li:first-child { padding-top: 0; }
.site-list a { display: block; font-weight: 700; }

.cta-band { padding: 48px 0; background: var(--navy-800); border-top: 3px solid var(--gold-500); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0; color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }

/* ---------- Join us / recruitment ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.role-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius);
}
.role-card h2 { font-size: 1.45rem; }
.role-summary { margin: 0 0 16px; }
.role-card h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.role-card ul { margin: 0 0 24px; padding-left: 1.1em; color: var(--muted); }
.role-card li { margin-bottom: 6px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }

.form-narrow-public { max-width: 820px; }
.form-section-title {
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
}
.form-card form > .form-section-title:first-of-type { margin-top: 0; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-hint { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.field input[type="file"] { padding: 8px; background: var(--paper); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 24px; }
.consent-row input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--navy-800); }
.back-link-light { color: var(--gold-300); }
.back-link-light:hover { color: var(--white); }

.success-card { text-align: center; }
.success-card h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.app-number { margin: 24px 0; padding: 18px; background: var(--paper); border: 1px dashed var(--gold-500); border-radius: var(--radius-sm); }
.app-number strong { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-900); letter-spacing: 0.02em; }
.work-cta { margin: 20px 0 0; }

/* ---------- Adjudicators ---------- */
.verify-box { max-width: 640px; }
.verify-box label { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-900); }
.verify-row { display: flex; gap: 10px; }
.verify-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #C5CCD8;
    border-radius: var(--radius-sm);
    background: var(--white);
    font: inherit;
    text-transform: uppercase;
}
.verify-row input::placeholder { text-transform: none; }
.verify-row input:focus { border-color: var(--navy-700); outline: 2px solid var(--gold-300); outline-offset: 0; }
.verify-box-compact { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.verify-box-compact label { font-size: 1.1rem; }

.adj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.adj-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-align: center;
    text-decoration: none;
}
.adj-card:hover { border-color: var(--gold-500); }
.adj-card:hover .adj-name { text-decoration: underline; }
.adj-photo {
    width: 104px;
    height: 104px;
    margin-bottom: 10px;
    border: 3px solid var(--gold-500);
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.adj-photo-empty {
    display: grid;
    place-items: center;
    background: var(--navy-800);
    color: var(--gold-300);
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 700;
}
.adj-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.adj-code { font-size: 0.9rem; font-weight: 700; color: var(--gold-500); letter-spacing: 0.03em; }
.adj-meta { font-size: 0.92rem; color: var(--muted); }
.directory-note { margin: 28px 0 0; color: var(--muted); }

.verify-result {
    margin-top: 8px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 6px solid var(--muted);
    border-radius: var(--radius);
}
.verify-result-active { border-top-color: #1D8A4A; }
.verify-result-suspended,
.verify-result-bad { border-top-color: var(--live); }
.verify-status { margin: 0 0 20px; font-size: 1.15rem; font-weight: 700; }
.verify-result-active .verify-status { color: #1D6B38; }
.verify-result-suspended .verify-status,
.verify-result-bad .verify-status { color: #8A1626; }
.verify-result-expired .verify-status { color: var(--muted); }
.verify-person { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.verify-person .adj-photo { width: 128px; height: 128px; margin: 0; }
.verify-name { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.verify-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.verify-details dt { color: var(--muted); }
.verify-details dd { margin: 0; font-weight: 500; }
.verify-bio { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.verify-bio p { margin: 0 0 0.8em; }

/* ---------- Events ---------- */
.event-poster {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy-900);
}
.event-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.event-poster .event-poster-logo { width: 96px; height: 96px; object-fit: contain; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.event-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.event-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 20px; }
.event-facts dt { color: var(--muted); }
.event-facts dd { margin: 0; font-weight: 500; }
.event-video-link { margin: 0 0 24px; }
.btn-live-public { display: inline-flex; align-items: center; gap: 8px; background: var(--live); color: var(--white); }
.btn-live-public:hover { background: #B81F32; color: var(--white); }
.event-poster-full { margin: 0 0 32px; }
.event-poster-full img { display: block; max-width: 100%; max-height: 85vh; margin: 0 auto; border-radius: var(--radius); }
.event-subtitle { margin: 32px 0 12px; font-size: 1.5rem; }
.record-list { margin: 0; padding: 0; list-style: none; }
.record-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold-500);
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.event-description { padding: 0; }
.event-side { position: sticky; top: 100px; }
.event-side h2 { font-size: 1.4rem; }
.event-side .app-number strong { font-size: 1.25rem; white-space: nowrap; }
.choice-group { border: 0; margin: 0 0 18px; padding: 0; }
.choice-group legend { margin-bottom: 6px; padding: 0; font-weight: 500; }
.choice-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 400; }
.choice-group input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.btn-full { display: block; width: 100%; text-align: center; }
.muted-text { color: var(--muted); }

/* ---------- Record ideas ---------- */
.idea-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.idea-filters .field { flex: 1 1 220px; margin: 0; }
.idea-filter-actions { display: flex; align-items: center; gap: 16px; padding-bottom: 2px; }
.idea-category {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-500);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.chip-list li { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 0.82rem; }
.idea-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.idea-bottom h2 { font-size: 1.5rem; }
.idea-bottom p { color: var(--muted); }
.safety-note { padding: 24px; background: var(--paper); border-left: 4px solid var(--live); border-radius: var(--radius-sm); }
.safety-note p { margin: 0; }
.safety-inline { margin: 28px 0 20px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.95rem; }
.lead-dark { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.lead-link { color: var(--gold-300); }
.lead-link:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 20px 20px;
        background: var(--navy-900);
        border-bottom: 3px solid var(--gold-500);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .nav-cta { text-align: center; }

    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
    .hero-seal { order: -1; justify-content: flex-start; }
    .hero-seal img { width: 150px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .live-feature { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .event-layout { grid-template-columns: 1fr; }
    .idea-bottom { grid-template-columns: 1fr; gap: 28px; }
    .event-side { position: static; }
    .about-intro,
    .about-sites { grid-template-columns: 1fr; gap: 28px; }
    .field-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .brand-name { font-size: 1rem; }
    .hero { padding: 32px 0; }
    .hero-inner { padding: 28px 18px; outline-offset: 4px; }
    .section { padding: 44px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .field-row,
    .field-row-3 { grid-template-columns: 1fr; }
    .verify-row { flex-direction: column; }
    .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================
   Adjudicator Academy (/academy/)
   ========================================================== */
.academy-bar { background: var(--navy-900); color: #D5DCE8; border-bottom: 2px solid var(--gold-500); font-size: 0.95rem; }
.academy-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.academy-bar-home { color: var(--gold-300); font-weight: 700; text-decoration: none; }
.academy-bar-user { color: #AEB8C9; }
.academy-bar-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.academy-bar-links a { color: #D5DCE8; }
.inline-form { display: inline; margin: 0; }
.link-button-public { padding: 0; border: 0; background: none; color: #D5DCE8; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button-public:hover { color: var(--white); }

.academy-section { padding-top: 40px; }
.academy-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.academy-head h1 { margin-bottom: 0.2em; }
.academy-head p { margin: 0; max-width: 60ch; }
.academy-meter { min-width: 220px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.academy-meter-number { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.academy-meter-number span { font-size: 1.1rem; color: var(--muted); }
.academy-meter-label { color: var(--muted); font-size: 0.9rem; margin: 4px 0 10px; }
.academy-bar-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.academy-bar-fill { height: 100%; background: var(--gold-500); border-radius: 999px; }
.academy-continue { margin: 0 0 24px; }

.academy-cert-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 28px; padding: 22px 24px;
    background: var(--navy-800); color: #D5DCE8; border-radius: var(--radius); border-left: 5px solid var(--gold-500);
}
.academy-cert-card h2 { color: var(--white); margin: 0 0 4px; }
.academy-cert-card p { margin: 0; }
.academy-cert-card strong { color: var(--gold-300); }
.academy-cert-kicker { color: var(--gold-300); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.module-card {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy-700); border-radius: var(--radius);
}
.module-card.is-passed { border-left-color: #1D8A4A; }
.module-card.is-locked { border-left-color: var(--line); background: #FAFBFC; }
.module-card.is-locked .module-card-title { color: var(--muted); }
.module-card-main { flex: 1 1 420px; min-width: 0; }
.module-card-title { margin: 0 0 6px; font-size: 1.2rem; }
.module-card-title a { text-decoration: none; }
.module-card-title a:hover { text-decoration: underline; }
.module-card-main p { margin: 0 0 6px; }
.module-card-meta { color: var(--muted); font-size: 0.9rem; }
.module-card-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.small { font-size: 0.88rem; }

.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.pill-pass { background: #EAF6EE; color: #1D6B38; }
.pill-progress { background: var(--gold-100); color: #6B5200; }
.pill-locked, .pill-todo { background: #EEF0F4; color: var(--muted); }

.academy-kicker { margin: 0 0 6px; color: var(--gold-500); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lead-text { font-size: 1.1rem; color: var(--muted); }
.academy-subtitle { margin: 32px 0 12px; font-size: 1.3rem; }
.lesson-list { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lesson-list li:last-child { border-bottom: 0; }
.lesson-list li a { flex: 1; font-weight: 500; }
.academy-test-box { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.academy-test-box p { margin-top: 0; }
.academy-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.academy-table th, .academy-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }

.lesson-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.lesson-video { margin: 20px 0; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-body { font-size: 1.125rem; line-height: 1.8; }
.lesson-body h2 { margin: 1.6em 0 0.5em; font-size: 1.45rem; }
.lesson-body h3 { margin: 1.4em 0 0.4em; font-size: 1.2rem; }
.lesson-body li { margin-bottom: 0.4em; }
.lesson-note {
    margin: 1.4em 0; padding: 16px 20px;
    background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm);
    font-weight: 500; color: var(--navy-900);
}
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

.test-form { margin-top: 24px; }
.test-question { margin: 0 0 18px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.test-question legend { padding: 0; font-weight: 700; color: var(--navy-900); float: left; width: 100%; margin-bottom: 12px; }
.test-question legend + * { clear: both; }
.test-num { color: var(--gold-500); }
.test-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.test-option:hover { border-color: var(--navy-700); }
.test-option input { margin-top: 0.35em; flex: none; }
.test-option:has(input:checked) { border-color: var(--navy-700); background: #EEF3FB; }
.test-letter { flex: none; font-weight: 700; color: var(--muted); min-width: 1.2em; }
.test-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

.result-card { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 8px 0 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid; border-radius: var(--radius); }
.result-card h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.result-card p { margin: 0; }
.result-pass { border-top-color: #1D8A4A; }
.result-fail { border-top-color: var(--live); }
.result-score { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.review-list { margin: 0; padding-left: 1.4em; }
.review-list li { margin-bottom: 14px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid; border-radius: var(--radius-sm); }
.review-list li.is-right { border-left-color: #1D8A4A; }
.review-list li.is-wrong { border-left-color: var(--live); }
.review-list p { margin: 0 0 4px; }
.review-list-plain { list-style: none; padding: 0; }
.review-q { font-weight: 700; }
.review-yours { color: #8A1626; }
.review-correct { color: #1D6B38; font-weight: 500; }
.review-why { color: var(--muted); font-size: 0.95rem; }

.academy-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.academy-login .form-card h2 { margin-top: 0; }
.academy-login-help h2 { font-size: 1.15rem; margin: 0 0 6px; }
.academy-login-help p { margin: 0 0 20px; color: var(--muted); }
.academy-form { max-width: 480px; }

@media (max-width: 760px) {
    .academy-login { grid-template-columns: 1fr; }
    .module-card-status { align-items: flex-start; text-align: left; }
    .academy-bar-links { margin-left: 0; }
}

/* ---- Sign-in bar, Academy on homepage and public pages ---- */
.util-bar { background: #050D1E; color: #AEB8C9; font-size: 0.9rem; }
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; min-height: 36px; }
.util-note { color: #8F9BB0; }
.util-links { display: flex; gap: 18px; margin-left: auto; }
.util-links a { color: var(--gold-300); font-weight: 500; text-decoration: none; }
.util-links a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 640px) { .util-note { display: none; } .util-links { margin: 0 auto; } }

.academy-home { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.academy-home h2 { margin-bottom: 0.3em; }
.academy-steps { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.academy-steps li { position: relative; padding: 18px 18px 18px 58px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; color: var(--muted); }
.academy-steps li::before {
    content: counter(step); position: absolute; left: 16px; top: 16px;
    width: 30px; height: 30px; display: grid; place-items: center;
    background: var(--navy-800); color: var(--gold-300); border-radius: 50%; font-weight: 700;
}
.academy-steps strong { display: block; color: var(--navy-900); }
.academy-steps-wide li { background: var(--white); }
.academy-hero-actions { margin-top: 20px; }
.academy-course-head { margin-top: 40px; }
.academy-course-head p { margin: 0; }
.academy-cta { margin-top: 32px; }
.academy-cta a:not(.btn) { color: var(--gold-300); }
.academy-callout { margin: 24px 0 0; padding: 14px 18px; background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); }
/* Keep the main menu on one line now that it has an Academy item */
@media (min-width: 1181px) {
    .site-nav { gap: 14px; }
    .site-nav ul { gap: 0; }
    .site-nav ul a { padding: 8px 9px; white-space: nowrap; }
    .brand-name, .nav-cta { white-space: nowrap; }
    .nav-cta { padding: 8px 14px; }
}
@media (min-width: 1181px) and (max-width: 1279px) {
    .brand-name { font-size: 1rem; }
    .site-nav ul a { padding: 8px 7px; font-size: 0.97rem; }
}

/* ---------- Certified record cards (feed from thebookofworldrecords.com) ---------- */
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.record-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.record-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8, 20, 43, 0.12); }
.record-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.record-card-link:hover .record-card-title { text-decoration: underline; }
/* Any photo size fits without cropping faces; a blurred copy fills the gaps */
.record-card-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.record-card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.record-card-bg  { object-fit: cover; filter: blur(18px) brightness(.7); transform: scale(1.15); }
.record-card-img { object-fit: contain; }
.record-card-pic.is-empty .record-card-logo { inset: 22%; width: 56%; height: 56%; object-fit: contain; opacity: .9; }
.record-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 18px; border-top: 3px solid var(--gold-500); }
.record-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.record-badge { padding: 1px 8px; border-radius: 999px; background: var(--gold-100); color: #7A5F0E; font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.record-no { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.record-card-title {
    font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; color: var(--navy-900);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.record-card-meta { margin-top: auto; font-size: 0.88rem; color: var(--muted); }
.record-more { margin: 24px 0 0; color: var(--muted); }
.record-more a { font-weight: 700; }
