/* Self-hosted fonts (SIL OFL, see wwwroot/fonts/OFL-*.txt). Commissioner: greek, latin, latin-ext. GFS Didot: greek, greek-ext, latin. */
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/commissioner-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/commissioner-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/commissioner-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/gfs-didot-greek-ext.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/gfs-didot-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/gfs-didot-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design tokens: DAY / NIGHT palettes from design/current (Gentleman). */
:root {
    --serif: 'GFS Didot', 'Didot', Georgia, serif;
    --sans: 'Commissioner', system-ui, sans-serif;

    --bg: #EEF0F0; --surf: #FFFFFF; --ink: #1B2436; --mute: #4C566A; --line: #CDD2D8;
    --accent: #6E1F2B; --accent-ink: #F4F2EE; --gold: #C9A66B; --gold-ink: #1B2436; --warm: #7A5C2E;
    --paper: #FFFFFF; --paper-ink: #1B2436; --paper-line: #B8B2A6; --shadow: rgba(27,36,54,0.10);
    --sky: #E3E7EA; --pin: rgba(27,36,54,0.07); --hero-ink: #1B2436; --hero-mute: #3E4A60; --hero-num: #6E1F2B;
    --lamp: #C9A66B; --glow: rgba(201,166,107,0.25); --frame: #1B2436;
    --plate: #C2A06A; --plate-edge: #957341; --plate-hi: #E2C994;
    --label: #FBFAF6; --label-ink: #1B2436; --label-mute: #4C566A; --bell: #EFE6D2; --bell-ink: #1B2436;
    --expert: #6E1F2B; --expert-ink: #F4F2EE; --seal: #6E1F2B; --seal-line: #E9CFA6;
    --ring: #6E1F2B;
    --call-bg: #1B2436; --call-ink: #FFFFFF; --help-on: #E4D6D8;
    --av1: #E3E7EA; --av2: #E9DDC2; --av3: #E4D6D8; --av-ink: #1B2436;
    --cover: #6E1F2B; --cover-ink: #F4F2EE; --cover-ghost: rgba(247,245,236,0.09); --num: #6E1F2B; --read-expert: #1B2436;
    color-scheme: light;
}
[data-theme="night"] {
    --bg: #121833; --surf: #1A2142; --ink: #ECE6D8; --mute: #A8A9BD; --line: #2E3660;
    --accent: #D4B47C; --accent-ink: #121833; --gold: #D4B47C; --gold-ink: #121833; --warm: #D4B47C;
    --paper: #ECE6D8; --paper-ink: #121833; --paper-line: #A9A28F; --shadow: rgba(0,0,0,0.4);
    --sky: #0B1029; --pin: rgba(212,180,124,0.08); --hero-ink: #ECE6D8; --hero-mute: #A8A9BD; --hero-num: #D4B47C;
    --lamp: #D4B47C; --glow: rgba(212,180,124,0.3); --frame: #2E3660;
    --plate: #2A3157; --plate-edge: #3B4475; --plate-hi: #36406E;
    --label: #ECE6D8; --label-ink: #121833; --label-mute: #454A63; --bell: #D4B47C; --bell-ink: #121833;
    --expert: #3A1A24; --expert-ink: #ECE6D8; --seal: #7E2634; --seal-line: #F0D9B2;
    --ring: #D4B47C;
    --call-bg: #121833; --call-ink: #ECE6D8; --help-on: #3A1A24;
    --av1: #30406E; --av2: #4A3F2A; --av3: #24443C; --av-ink: #ECE6D8;
    --cover: #3A1A24; --cover-ink: #ECE6D8; --cover-ghost: rgba(237,230,214,0.06); --num: #D4B47C; --read-expert: #3A1A24;
    color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
h1:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 959.98px) { .d-only { display: none !important; } }
@media (min-width: 960px) { .m-only { display: none !important; } }
/* Mobile: short pages still push the bottom nav to the bottom of the screen. */
@media (max-width: 959.98px) { body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; } main { flex: 1; } }
[data-theme="night"] .day-only, :root:not([data-theme="night"]) .night-only { display: none !important; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 8px 10px 10px 18px; }
.brand { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 24px; line-height: 1.08; }
.brand svg { width: 30px; height: 32px; }
.top-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--mute); text-decoration: none; font-size: 15px; }
.top-nav a.active { color: var(--ink); font-weight: 700; }
.tools { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 5px; background: var(--lamp); box-shadow: 0 0 0 2px var(--bg); }
[data-theme="night"] .i-moon, :root:not([data-theme="night"]) .i-sun { display: none; }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 2px; background: var(--gold); color: var(--gold-ink); text-decoration: none; font-size: 15px; font-weight: 700; cursor: pointer; }
.avatar-btn { width: 44px; height: 44px; border-radius: 2px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.back { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; text-decoration: none; font-size: 15px; font-weight: 600; }
@media (min-width: 960px) {
    .top { max-width: 1240px; margin: 0 auto; padding: 10px 32px 8px; justify-content: flex-start; }
    .brand span { font-size: 28px; }
    .brand svg { width: 36px; height: 38px; }
    .tools { gap: 8px; }
}

/* Bottom nav (mobile) */
.bottom-nav { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--surf); border-top: 1px solid var(--line); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--mute); text-decoration: none; font-size: 12px; }
.bottom-nav a.active { color: var(--ink); font-weight: 700; }
.bottom-nav .plus { width: 54px; height: 54px; margin-top: -18px; border-radius: 2px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 4px var(--surf); }

/* Hero + building */
.hero { background-color: var(--sky); background-image: repeating-linear-gradient(90deg, transparent 0 15px, var(--pin) 15px 16px); border-top: 1px solid var(--line); overflow: hidden; color: var(--hero-ink); }
.hero-in { padding: 28px 20px 0; display: flex; flex-direction: column; }
.awake { display: flex; align-items: flex-end; gap: 16px; }
.awake .n { font-family: var(--serif); font-size: 92px; line-height: 0.85; color: var(--hero-num); }
.awake .t { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.awake .t small { font-size: 13px; color: var(--hero-mute); }
.awake .t b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.bld { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.bld.desk { aspect-ratio: 7 / 5; }
.bld img { display: block; width: 100%; height: 100%; }
.bld .lit { position: absolute; background-repeat: no-repeat; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.bld .lit.on { opacity: 1; }
.bld.mob .lit { background-image: url(img/night_lit.webp); }
.bld.desk .lit { background-image: url(img/desk_night_lit.webp); }
.building { display: contents; }
/* Mobile hero: crop the tall illustration to its top (moon, top floors down to the floor-4 slab); .bld stays full-size inside so the lit windows line up. */
.hero-art > .m-only { margin: 18px -20px 0; aspect-ratio: 900 / 645; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bld .lit { transition: none; } }
@media (min-width: 960px) {
    .hero-in { max-width: 1240px; margin: 0 auto; padding: 56px 32px 0; flex-direction: row; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; }
    .hero-text { flex: 1 1 440px; min-width: 0; padding-bottom: 48px; }
    .hero-text h1 { font-size: 50px; }
    .hero-text p { margin-top: 10px; max-width: 520px; font-size: 19px; color: var(--hero-mute); }
    .hero-text .awake { margin-top: 34px; gap: 18px; }
    .hero-text .awake .n { font-size: 105px; line-height: 1.08; }
    .hero-text .awake .t small { font-size: 14px; }
    .hero-text .awake .t b { font-size: 21px; }
    .hero-art { flex: 0 1 600px; min-width: 0; margin-top: 10px; padding-bottom: 18px; }
}

/* Home sections */
.greet { padding: 30px 20px 6px; display: flex; flex-direction: column; gap: 6px; }
.greet h1 { font-size: 34px; letter-spacing: -0.01em; }
.greet p { font-size: 17px; color: var(--mute); }
.cols { display: flex; flex-direction: column; padding-bottom: 36px; }
.cols > div { display: contents; }
.sec { padding: 40px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec h2 { font-size: 22px; }
.o-bells { padding-top: 22px; }
@media (min-width: 960px) {
    .cols { max-width: 1240px; margin: 0 auto; padding: 56px 32px 72px; flex-direction: row; gap: 48px; align-items: flex-start; }
    .cols > div { display: flex; flex-direction: column; min-width: 0; }
    .cols .c-left { flex: 1 1 280px; } .cols .c-main { flex: 3 1 480px; } .cols .c-right { flex: 1 1 300px; gap: 44px; }
    .cols .sec { padding: 0; }
    .sec h2 { font-size: 24px; }
}

/* Doorbell panel */
.bells { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; background: var(--plate); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--plate-edge), inset 0 2px 0 var(--plate-hi); }
.bells a { display: flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; }
.bells .lbl { flex: 1; display: flex; flex-direction: column; padding: 7px 12px; background: var(--label); box-shadow: inset 0 0 0 1px var(--plate-edge); line-height: 1.2; }
.bells .lbl b { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--label-ink); }
.bells .lbl small { font-size: 13px; color: var(--label-mute); }
.bell { flex: 0 0 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--bell); color: var(--bell-ink); font-size: 14px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.16), 0 0 0 3px var(--plate-edge); }
@media (min-width: 960px) {
    .c-left .bells a { min-height: 48px; }
    .c-left .bells .lbl small { display: none; }
    .c-left .bell { flex-basis: 40px; height: 40px; font-size: 13px; }
}

/* Chips / filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 2px; border: 1.5px solid var(--line); color: var(--ink); background: transparent; text-decoration: none; font-size: 14px; font-weight: 600; }
.chip[aria-current="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Thread list on home */
.feed a { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.feed a:last-child { border-bottom: 0; }
.feed .num { flex: 0 0 auto; font-family: var(--serif); font-size: 28px; line-height: 1.08; color: var(--accent); }
.feed .num.zero { color: var(--warm); }
.feed .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed .room { font-size: 13px; color: var(--accent); font-weight: 700; }
.feed .title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.feed .ex { font-size: 16px; color: var(--mute); }
.feed .meta { font-size: 14px; color: var(--mute); }
.feed .meta em { font-style: normal; color: var(--accent); font-weight: 700; }
.feed .meta em.warm { color: var(--warm); }
.feed .room, .feed .ex, .feed a:nth-child(n+4) { display: none; }
@media (min-width: 960px) {
    .feed a { gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 0; }
    .feed a:last-child { border-bottom: 1px solid var(--line); }
    .feed .num { flex-basis: 64px; font-size: 38px; }
    .feed .body { gap: 6px; }
    .feed .title { font-size: 21px; line-height: 1.25; }
    .feed .room, .feed .ex { display: block; }
    .feed a:nth-child(n+4) { display: flex; }
}

/* Cards */
.cohort { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 18px; background: var(--gold); color: var(--gold-ink); text-decoration: none; }
.cohort .k { font-size: 14px; font-weight: 600; }
.cohort .m { font-family: var(--serif); font-size: 28px; line-height: 1.08; }
.cohort .q { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--paper); color: var(--paper-ink); margin: 2px 6px 0 -4px; }
.cohort .q b { font-size: 13px; font-weight: 600; }
.cohort .go { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.expert { position: relative; padding: 24px 20px 22px; background: var(--expert); color: var(--expert-ink); display: flex; flex-direction: column; gap: 10px; }
.expert .seal { position: absolute; top: -30px; right: 14px; width: 84px; height: 84px; }
.book { display: flex; gap: 16px; text-decoration: none; }
.book .cover { flex: 0 0 76px; height: 104px; padding: 10px 8px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 4px 4px 0 var(--gold); font-family: var(--serif); line-height: 1.08; }
.book .cover small { font-size: 13px; }
.book .cover b { font-weight: 400; font-size: 27px; }
.book .t { display: flex; flex-direction: column; gap: 4px; }
.book .t b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.book .t small { font-size: 14px; color: var(--mute); }

/* Room */
.room-head { padding: 14px 20px 30px; display: flex; gap: 18px; align-items: flex-end; }
.room-head > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.room-head h1 { font-size: 41px; letter-spacing: -0.01em; }
.room-head p { color: var(--mute); }
.window { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; }
.window span:first-child { display: block; width: 84px; height: 108px; border: 6px solid var(--frame); background: var(--lamp); position: relative; box-shadow: 0 0 40px var(--glow); }
.window span:first-child::before { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 6px; background: var(--frame); }
.window span:first-child::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 6px; background: var(--frame); }
.window span:last-child { display: block; width: 100px; height: 6px; background: var(--frame); }
.room-stat { margin: -14px 20px 26px; font-size: 14px; color: var(--mute); }
.pinned { position: relative; margin: 6px 18px 0; padding: 30px 24px 26px; background: var(--paper); color: var(--paper-ink); display: flex; flex-direction: column; gap: 14px; outline: 1px solid var(--paper-ink); outline-offset: -8px; box-shadow: 0 10px 24px var(--shadow); }
.pinned h2 { font-size: 20px; }
.pinned .small { font-size: 14px; }
.pinned .small a { font-weight: 700; }
.pinned .foot { font-size: 14px; padding-top: 10px; border-top: 1px dashed var(--paper-line); }
.calls { display: flex; flex-direction: column; gap: 8px; }
.calls a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 16px; background: var(--call-bg); color: var(--call-ink); text-decoration: none; }
.calls b { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.08; min-width: 74px; }
.calls span { font-size: 14px; line-height: 1.3; }
.write { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border: 2px solid var(--ink); text-decoration: none; font-weight: 600; }
.write small { font-size: 13px; font-weight: 600; color: var(--accent); }
.list { padding: 6px 20px 30px; display: flex; flex-direction: column; }
.list a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list a:last-child { border-bottom: 0; }
.list .waiting { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--warm); }
.list .waiting::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.list .kind { font-size: 13px; font-weight: 700; color: var(--accent); }
.list .title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.list .ex { font-size: 15px; color: var(--mute); }
.list .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mute); }
.list .meta em { font-style: normal; color: var(--accent); font-weight: 700; }
.page { max-width: 720px; margin: 0 auto; width: 100%; }

/* Thread */
.post { padding: 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.post h1 { font-size: 31px; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline .av { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--gold-ink); font-size: 14px; font-weight: 700; border-radius: 19px; }
.byline > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.byline b { font-size: 15px; font-weight: 600; }
.byline small { font-size: 13px; color: var(--mute); }
.post p { font-size: 17px; white-space: pre-line; }
.post .ask { font-weight: 600; }
.expert.answer { margin: 26px 20px 0; padding-top: 26px; gap: 12px; }
.expert.answer .name { display: flex; flex-direction: column; line-height: 1.3; padding-right: 80px; }
.expert.answer .name b { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.08; }
.expert.answer .name small { font-size: 13px; opacity: 0.9; }
.expert.answer p { font-size: 16px; white-space: pre-line; }
.expert.answer .fine { font-size: 13px; opacity: 0.85; }
.replies { padding: 34px 20px 8px; display: flex; flex-direction: column; }
.replies-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; flex-wrap: wrap; }
.replies-head h2 { font-size: 21px; }
.reply { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.reply .who { display: flex; align-items: center; gap: 10px; }
.reply .av { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--av1); color: var(--av-ink); border-radius: 17px; font-size: 13px; font-weight: 700; }
.reply:nth-of-type(3n+2) .av { background: var(--av2); } .reply:nth-of-type(3n) .av { background: var(--av3); }
.reply .who > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.reply .who b { font-size: 15px; font-weight: 600; }
.reply .who small { font-size: 13px; color: var(--mute); }
.reply > p { font-size: 16px; white-space: pre-line; }
.reply > p.quote { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.reply .acts { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--mute); }
.reply .acts a { display: flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: none; }
.bubble { margin-left: 16px; padding: 14px 16px; background: var(--surf); border-radius: 4px 18px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.bubble.d2 { margin-left: 32px; }
.bubble > span { font-size: 14px; } .bubble > span b { font-weight: 600; }
.bubble p { font-size: 15px; }
.compose { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 24px; margin-top: 24px; background: var(--surf); border-top: 1px solid var(--line); }
.compose label { font-size: 14px; font-weight: 700; }
.compose textarea, .compose input[type=text], .field { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 16px; resize: vertical; }
.compose .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.compose .row small { font-size: 13px; color: var(--mute); }
.compose .row small a { color: var(--accent); font-weight: 600; }
.notice { margin: 16px 20px 0; padding: 14px 16px; background: var(--paper); color: var(--paper-ink); outline: 1px solid var(--paper-ink); outline-offset: -5px; }

/* Reading */
.reading-top { background: var(--cover); color: var(--cover-ink); }
.cover-sec { position: relative; padding: 18px 20px 36px; background: var(--cover); color: var(--cover-ink); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.cover-sec .ghost { position: absolute; right: -14px; bottom: -36px; font-family: var(--serif); font-size: 161px; line-height: 1.08; color: var(--cover-ghost); }
.cover-sec .src { position: relative; align-self: flex-start; padding: 4px 10px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 700; }
.cover-sec h1 { position: relative; font-size: 35px; text-wrap: balance; }
.cover-sec .sub { position: relative; font-family: var(--serif); font-size: 19px; line-height: 1.08; color: var(--gold); }
.article { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 26px; }
.article h2 { font-size: 20px; }
.article p { font-size: 17px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point span { flex: 0 0 40px; font-family: var(--serif); font-size: 45px; line-height: 1.08; color: var(--num); }
.expert.check { background: var(--read-expert); margin-top: 10px; padding: 22px 20px 20px; gap: 8px; }
.expert.check .k { font-size: 14px; font-weight: 700; padding-right: 76px; }
.expert.check p { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.btn-gold.wide { justify-content: space-between; min-height: 56px; padding: 0 22px; font-size: 16px; }
.comments { padding: 30px 20px 24px; background: var(--surf); display: flex; flex-direction: column; gap: 4px; }
.comments h2 { font-size: 24px; }
.comments .lead { margin: 6px 0 14px; font-size: 15px; color: var(--mute); }
.comment { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment > span { font-size: 14px; } .comment > span b { font-weight: 700; }
.comment p { font-size: 16px; }
.comment .acts { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--mute); min-height: 44px; }
.comments .safe { margin-top: 16px; font-size: 14px; color: var(--mute); }
.comments .safe a { color: var(--accent); font-weight: 700; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px 24px; background: var(--surf); border-top: 1px solid var(--line); }
.inline-form label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }

/* Generic forms (account pages, new discussion) */
.form-page { max-width: 480px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.form-page h1 { font-size: 34px; }
.form-page form { display: flex; flex-direction: column; gap: 14px; }
.form-page label { font-size: 14px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.form-page label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.form-page input:not([type=checkbox]), .form-page select, .form-page textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surf); color: var(--ink); font-size: 16px; }
.form-page button[type=submit]:not(.chip), .form-page .btn-primary { min-height: 46px; padding: 0 22px; border: 0; border-radius: 2px; background: var(--gold); color: var(--gold-ink); font-weight: 700; cursor: pointer; }
.form-page a:not(.chip) { color: var(--accent); font-weight: 600; }
/* The helplines must stay readable inside a form page: undo the link colour above (it would be burgundy on navy, or gold on paper at night). */
.form-page .calls a { color: var(--call-ink); font-weight: 400; }
.form-page .pinned .small a { color: inherit; font-weight: 700; }
.form-page .row-form { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.chip.danger { color: #B3261E; border-color: #B3261E; cursor: pointer; }
[data-theme="night"] .chip.danger { color: #F2B8B5; border-color: #F2B8B5; }
.form-page .quiet { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--mute); text-decoration: underline; cursor: pointer; }
.validation-message, .text-danger { color: #B3261E; font-size: 14px; }
[data-theme="night"] .validation-message, [data-theme="night"] .text-danger { color: #F2B8B5; }

/* Admin (always light, per GAdmin) */
.admin { min-height: 100vh; background: #EEF0F0; color: #1B2436; font-size: 15px; }
.admin-top { background: #1B2436; color: #FFFFFF; }
.admin-top > div { max-width: 1280px; margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.admin-top .brand span { font-size: 22px; }
.admin-top .brand small { font-size: 14px; color: #B9C0CF; }
.admin-top nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.admin-top nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #B9C0CF; text-decoration: none; }
.admin-top nav a[aria-current] { color: #FFFFFF; font-weight: 600; border-bottom: 2px solid #C9A66B; }
.admin-top .me { font-size: 14px; color: #B9C0CF; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; display: flex; flex-direction: column; gap: 32px; }
.admin h1 { font-size: 36px; }
.admin h2 { font-size: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: #CDD2D8; border: 1px solid #CDD2D8; }
.kpis > div { background: #FFFFFF; padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.kpis small { font-size: 14px; color: #4C566A; }
.kpis b { font-family: var(--serif); font-weight: 400; font-size: 39px; line-height: 1.08; }
.kpis .red { color: #8A2A1F; font-weight: 600; } .kpis .warm { color: #7A5C2E; font-weight: 600; }
.admin-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.panel { background: #FFFFFF; border: 1px solid #CDD2D8; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #CDD2D8; flex-wrap: wrap; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 16px 22px; border-bottom: 1px solid #CDD2D8; align-items: center; }
.report:last-child { border-bottom: 0; }
.report .what { font-size: 15px; font-weight: 600; }
.report .meta { font-size: 14px; color: #4C566A; }
.report form { display: flex; gap: 6px; grid-row: span 2; flex-wrap: wrap; }
.report.urgent { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; background: #FBF1EE; }
.report.urgent .flag { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.report.urgent .flag b { display: flex; align-items: center; gap: 8px; color: #8A2A1F; font-weight: 600; }
.report.urgent .quote { font-size: 16px; }
.report.urgent form { grid-row: auto; gap: 8px; }
.abtn { min-height: 44px; padding: 0 14px; border: 1px solid #BCC3CC; background: transparent; color: #1B2436; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.abtn.dark { border: 0; background: #1B2436; color: #FFFFFF; font-weight: 600; }
.abtn.line { border-color: #1B2436; font-weight: 600; }
.abtn[disabled] { opacity: .55; cursor: not-allowed; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bars .row { display: flex; justify-content: space-between; font-size: 14px; }
.bars .track { height: 12px; background: #EEF0F0; border-radius: 6px; }
.bars .fill { height: 12px; background: #6E1F2B; border-radius: 6px; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; border-bottom: 1px solid #BCC3CC; }
.hours span { flex: 1; background: #A9B3C4; min-height: 1px; }
.hours span.n { background: #C9A66B; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: #4C566A; }
.members { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.members th { text-align: left; padding: 12px; font-size: 14px; font-weight: 600; color: #4C566A; border-bottom: 1px solid #CDD2D8; }
.members td { padding: 12px; border-bottom: 1px solid #E1E4E8; }
.members tr:last-child td { border-bottom: 0; }
.members th:first-child, .members td:first-child { padding-left: 22px; font-weight: 600; }
.members .warm { color: #7A5C2E; font-weight: 600; } .members .red { color: #8A2A1F; font-weight: 600; }
.members a { color: #6E1F2B; font-weight: 600; text-decoration: none; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 12px 20px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 -2px 8px var(--shadow); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* Report menu */
.more { position: relative; }
.more summary { list-style: none; color: var(--mute); }
.more summary::-webkit-details-marker { display: none; }
.more .panel { position: absolute; right: 0; top: 44px; z-index: 10; width: 260px; display: flex; flex-direction: column; padding: 8px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 10px 24px var(--shadow); }
.more .panel span { font-size: 13px; color: var(--mute); padding: 6px 10px; }
.more .panel button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 15px; }
.more .panel button:hover { background: var(--bg); }
.compose .btn-gold { margin-left: auto; }
.alert { padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.alert-danger { background: #FBF1EE; color: #8A2A1F; }
.alert-success { background: var(--surf); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Member-written text: break long unbroken words and URLs instead of widening the page (inherited by everything inside). */
.feed a, .list a, .post, .reply, .bubble, .comment, .report, .cohort .q, .expert { overflow-wrap: anywhere; min-width: 0; }
