@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/montserrat-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/montserrat-latin-ext-800.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/montserrat-latin-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/noto-sans-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/noto-sans-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/noto-sans-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/noto-sans-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #023c03;
    --green: #007400;
    --hero: #eff7ea;
    --paper: #fafdff;
    --line: #d5e6d2;
    --muted: #3d5c3e;
    color-scheme: light;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Montserrat, "Noto Sans", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); }

h1, h2, h3 { line-height: 1.15; font-weight: 800; }

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.header-row {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link { display: flex; }

.logo-link img { width: 168px; height: auto; }

.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lang-toggle span { padding: 0.35rem 0.7rem; }

.lang-toggle .on { background: var(--green); color: #fff; }

.hero {
    background: var(--hero);
    padding: 3.5rem 0 2.5rem;
}

.hero.slim { padding-bottom: 2rem; }

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.lede {
    max-width: 40rem;
    font-size: 1.15rem;
    color: var(--muted);
}

.triangles {
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16' viewBox='0 0 18 16'%3E%3Cpolygon points='0,16 9,2 18,16' fill='%23023c03'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 18px 16px;
    background-color: #fff;
}

.band { padding: 3rem 0 4rem; }

.watch { background: #fff; }

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.offline {
    max-width: 760px;
    margin: 1rem auto;
    padding: 3rem 1.5rem;
    background: #fff;
    border-top: 4px solid var(--ink);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(2, 60, 3, 0.08);
    text-align: center;
}

.offline h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }

.live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.frame {
    position: relative;
    background: #041804;
    border-radius: 8px;
    overflow: hidden;
}

.frame::before { content: ""; display: block; padding-top: 56.25%; }

.frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-questions { margin-top: 1.25rem; }

.live-questions h2 { margin: 0 0 0.75rem; }

.live-questions .question-list {
    max-height: 20rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
}

.ask, .panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.25rem;
}

.ask h2, .panel h2 { margin-top: 0; }

label { display: grid; gap: 0.35rem; font-weight: 700; margin-bottom: 0.9rem; }

input, textarea {
    width: 100%;
    border: 1px solid #b7d0b4;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    background: #fff;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.check input { width: auto; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.button.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.linkish {
    border: 0;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.hp {
    position: absolute;
    left: -10000px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.notice {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
}

.notice.ok { background: #e7f6e4; }

.notice.bad { background: #fde8e4; color: #6d2014; }

.dev-note, .help, .empty { color: var(--muted); }

.slide { display: none; }

.slide.is-active { display: block; }

.slide h3 { margin-bottom: 0.25rem; }

.caption { color: var(--muted); }

.carousel-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.question-list { display: grid; gap: 0.75rem; }

.q-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "num name" "num body";
    column-gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 24px rgba(2, 60, 3, 0.06);
}

.q-num {
    grid-area: num;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
}

.q-name {
    grid-area: name;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.q-card strong { font-size: 1.05rem; }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.22rem 0.45rem;
}

.pill.muted {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.pill.rejected {
    background: #9f1d1d;
    color: #fff;
}

.pills { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }

.confirm {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(2, 60, 3, 0.45);
}

.confirm[hidden] { display: none; }

.confirm-card {
    width: min(28rem, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.4rem;
}

.confirm-card h2 { margin: 0 0 0.5rem; }

.archive-panel {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.archive-panel.open { pointer-events: auto; }

.archive-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(2, 60, 3, 0.45);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.archive-panel.open .archive-backdrop { opacity: 1; }

.archive-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(32rem, 100%);
    height: 100%;
    overflow: auto;
    background: #f4f7f3;
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: -8px 0 24px rgba(2, 60, 3, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.archive-panel.open .archive-drawer { transform: translateX(0); }

.archive-drawer .mod-card header { flex-wrap: wrap; }

.archive-drawer .linkish { color: var(--green); }

.archive-drawer time { color: var(--muted); font-size: 0.75rem; }

.q-body {
    grid-area: body;
    position: relative;
}

.q-card p { grid-area: body; margin: 0.2rem 0 0; font-size: 1.05rem; }

.q-body p { margin-right: 2.4rem; }

.q-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.q-delete img { display: block; width: 100%; height: 100%; }

.q-delete:hover { opacity: 0.8; }

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 2.5rem 0;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-row .mark { width: min(280px, 46vw); }

.footer-row p { margin: 0; max-width: 28rem; color: #e7f3e4; }

.admin { background: #f4f7f3; }

.admin-header { background: var(--ink); color: #fff; }

.admin-header a, .admin-header button { color: #fff; }

.admin-header-row {
    min-height: 68px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.admin-brand { font-weight: 800; text-decoration: none; }

.admin-nav { display: flex; gap: 1rem; flex: 1; }

.admin-main { padding: 2rem 0 4rem; }

.admin-main h1 { margin-top: 0; }

.title-row, .row-actions, .inline-form, .split {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.split { align-items: stretch; }

.split > * { flex: 1; }

.panel { margin: 1rem 0 1.5rem; }

.narrow { max-width: 28rem; margin: 2rem auto; }

.host-list, .sortable, .moderator-list { list-style: none; padding: 0; margin: 0; }

.host-list li, .sortable li, .moderator-list li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
}

.sortable li div { flex: 1; }

.sortable li p, .mod-card p { margin: 0.2rem 0 0; font-weight: 400; }

.handle { cursor: grab; letter-spacing: 0.15em; color: var(--muted); }

.tag {
    margin-left: 0.4rem;
    font-size: 0.75rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.mod-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    margin-bottom: 0.7rem;
}

.mod-card header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }

.row-actions { display: flex; justify-content: flex-start; gap: 0.5rem; align-items: center; margin-top: 15px; }

.mod-card time { color: var(--muted); font-size: 0.75rem; }

.preview { margin: 0.5rem 0 1rem; }

code { word-break: break-all; }

@media (max-width: 900px) {
    .live-grid, .mod-grid, .split, .footer-row { display: grid; }
    .live-grid, .mod-grid { grid-template-columns: 1fr; }
    .footer-row { justify-items: start; }
    .admin-nav { flex-basis: 100%; }
    .mod-card header, .row-actions { flex-wrap: wrap; }
    .sortable li div { min-width: 0; }
}
