/* Open Door Research Network
   Board green, door light, white page. IBM Plex Serif for titles, IBM Plex Sans for interface,
   IBM Plex Mono only for IDs and fingerprints that are read character by character. */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-serif-latin-500-normal.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: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-serif-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-serif-latin-600-normal.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: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-serif-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --green-900: #0a2b27;
  --green-800: #123f38;
  --green-700: #1a554b;
  --green-600: #1f6b5c;
  --green-200: #c5dad2;
  --green-100: #e6f0eb;
  --light: #ffe08a;
  --light-soft: #fff5d1;
  --lamp: #e9a90c;
  --ink: #16201d;
  --ink-2: #414e4a;
  --muted: #68746f;
  --line: #dde4e0;
  --line-strong: #c3cec9;
  --paper: #ffffff;
  --band: #f4f6f3;
  --red: #a93a2a;
  --red-soft: #fbeae6;
  --r-sm: 6px;
  --r-md: 10px;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1100px;
  --main-pt: 36px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; outline: none; padding-block: var(--main-pt) 80px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 720px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--green-600); text-underline-offset: 2px; }
a:hover { color: var(--green-800); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--green-800); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 50; text-decoration: none; }
.skip:focus { top: 10px; color: #fff; }
.mono { font-family: var(--mono); font-size: .86em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.pre { white-space: pre-wrap; }
.center { text-align: center; margin-top: 20px; }
.help { font-size: .875rem; color: var(--muted); font-weight: 400; }
.lead-sm { color: var(--ink-2); font-size: 1.08rem; max-width: 46em; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.back:hover { color: var(--green-800); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }
.summary-full, .idea-row h3, .idea-row .summary { unicode-bidi: plaintext; }

/* ---------- header ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { display: grid; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.05; }
.brand-name small { font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .01em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--green-800); }
.nav-link[aria-current="page"] { color: var(--green-800); border-bottom-color: var(--lamp); }
.nav .btn + .btn { margin-inline-start: -10px; }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-weight: 500; font-size: .92rem; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10, 43, 39, .08); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin: 12px 0 0 !important; padding: 11px 16px; font-size: 1rem; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: var(--r-sm); border: 1px solid transparent; padding: 11px 20px; font: inherit; font-weight: 600; line-height: 1.25; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-800); color: var(--green-800); }
.btn-amber, .btn-light { background: var(--light); color: var(--ink); border-color: #f0cc62; }
.btn-amber:hover, .btn-light:hover { background: #ffd563; color: var(--ink); }
.btn-ondark { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ondark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-danger { background: var(--paper); border-color: #e3bdb6; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn[disabled] { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-600); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- home hero ---------- */
.bleed { margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc(50vw - var(--wrap) / 2 + 24px)); }
.hero { margin-top: calc(var(--main-pt) * -1); background: var(--green-800); color: #fff; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; overflow: hidden; }
.hero-text { align-self: center; padding-block: 64px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 22px; }
.hero .lead { font-size: 1.1rem; line-height: 1.6; color: #cfe1da; max-width: 33em; margin-bottom: 28px; }
.hero .lead b { color: #fff; font-weight: 500; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { align-self: end; max-width: 470px; justify-self: end; width: 100%; }
.hero-art svg { display: block; width: 100%; height: auto; }
.door-leaf { transform-box: view-box; transform-origin: 300px 190px; animation: door-open .9s cubic-bezier(.2, .7, .2, 1) both; }
.door-glow { animation: door-glow 1.1s ease-out both; }
@keyframes door-open { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
@keyframes door-glow { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .door-leaf, .door-glow { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-block: 44px 8px; }
  .hero-art { max-width: 300px; justify-self: center; }
}

/* how it works: a real sequence, so it is numbered */
.how { list-style: none; margin: 0; padding: 36px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: how; }
.how li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.how-num { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; color: var(--green-600); min-width: 1.1ch; }
.how b { display: block; font-weight: 600; margin-bottom: 2px; }
.how p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 820px) { .how { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 28px; } }

/* ---------- lists of ideas ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }
.about-sec .section-head { margin: 0 0 10px; }
main > .section-head:first-child { margin-top: 0; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 210px 190px auto; gap: 10px; align-items: center; margin: 18px 0 6px; }
.filters.two { grid-template-columns: minmax(0, 1fr) 240px; }
.filters .check { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 820px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[type=search] { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters, .filters.two { grid-template-columns: minmax(0, 1fr); } }

.idea-list { border-top: 1px solid var(--line); margin-top: 14px; }
.idea-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.idea-row:hover { color: inherit; }
.idea-row h3 { font-size: 1.32rem; font-weight: 500; line-height: 1.25; margin: 0 0 4px; }
.idea-row:hover h3 { color: var(--green-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.byline { margin: 0 0 8px; color: var(--ink-2); font-size: .95rem; }
.idea-row .summary { margin: 0 0 12px; color: var(--ink-2); max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: .875rem; color: var(--muted); }
.idea-meta .field { color: var(--green-800); font-weight: 600; }
.stage-mini { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.stage-mini .stages { width: 66px; gap: 2px; }
.stage-mini .stages i { height: 5px; }
.fcount { display: inline-flex; align-items: center; gap: 5px; }
.idea-thumb { width: 168px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--band); }
.idea-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .idea-row { gap: 14px; padding: 22px 0; } .idea-row h3 { font-size: 1.18rem; } .idea-thumb { width: 84px; } }

.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stages i { height: 6px; border-radius: 3px; background: #e3e9e5; }
.stages i.on { background: var(--green-800); }
.stages i.cur { background: var(--lamp); }
.stage-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; font-size: .78rem; color: var(--muted); margin-top: 7px; }
.stage-labels span.cur { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .stage-labels span:not(.cur) { visibility: hidden; } .stage-labels span.cur { white-space: nowrap; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 500; }
.chip.amber { background: var(--light-soft); color: #6a4b00; }
.chip.closed { background: #eceeed; color: var(--muted); }
.chip.open { background: var(--green-100); color: var(--green-800); }
.chip.open::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); margin-inline-end: 6px; }

.empty { text-align: center; padding: 56px 24px; color: var(--ink-2); background: var(--band); border-radius: var(--r-md); margin-top: 14px; }
.empty .btn { margin-top: 16px; }
.skeleton { border-top: 1px solid var(--line); margin-top: 14px; }
.skeleton div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.skeleton i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eef1ef 25%, #f7f9f7 50%, #eef1ef 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 12px; }
.skeleton i:first-child { height: 22px; width: 58%; }
.skeleton i:nth-child(2) { width: 34%; }
.skeleton i:nth-child(3) { width: 82%; margin-bottom: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; }
input::placeholder, textarea::placeholder { color: #8a9590; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 107, 92, .28); outline-offset: 0; border-color: var(--green-600); }
textarea { min-height: 170px; resize: vertical; }
textarea.short { min-height: 96px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green-800); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 32px; display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row:has(> label[hidden]) { grid-template-columns: 1fr 1fr; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; align-content: start; }
.form .help { font-size: .84rem; }
.form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: .93rem; }
.form .agree input { margin-top: 5px; flex: none; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row .linkbtn { font-size: .88rem; font-weight: 400; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.stage-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage-pick.two-col { grid-template-columns: repeat(2, 1fr); }
.stage-pick label { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; font-weight: 500; font-size: .92rem; }
.stage-pick input { margin: 0; }
.stage-pick label:has(input:checked) { border-color: var(--green-800); background: var(--green-100); }
@media (max-width: 640px) { .form .row, .stage-pick, .stage-pick.two-col { grid-template-columns: minmax(0, 1fr); } .form { padding: 22px 18px; } }

[aria-invalid="true"] { border-color: var(--red); outline-color: rgba(169, 58, 42, .3); }
.stage-pick:has([aria-invalid="true"]) label { border-color: var(--red); }
.field-err { display: block; color: var(--red); font-size: .86rem; font-weight: 500; margin-top: 2px; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: .93rem; }
.notice.small { font-size: .86rem; padding: 9px 12px; }
.notice.info { background: var(--light-soft); color: #4f3a00; }
.notice.ok { background: var(--green-100); color: var(--green-800); }
.notice.err { background: var(--red-soft); color: var(--red); }
.notice:empty { display: none; }
.done { text-align: center; }
.linkline { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.linkline input { font-family: var(--mono); font-size: .82rem; direction: ltr; }
@media (max-width: 640px) { .linkline { flex-direction: column; } }

/* ---------- idea page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.detail .body h1 { margin-bottom: 8px; }
.detail .byline { font-size: 1.02rem; margin-bottom: 14px; }
.summary-full { white-space: pre-wrap; font-size: 1.04rem; line-height: 1.65; max-width: 68ch; }
h2.sub { font-size: 1.2rem; font-weight: 600; margin: 36px 0 12px; display: flex; align-items: baseline; gap: 10px; }
h2.sub .count { font-family: var(--sans); font-weight: 400; font-size: .875rem; color: var(--muted); }
.form h2.sub, .uploads h2.sub { margin: 10px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.done-box { border-inline-start: 3px solid var(--green-800); padding-inline-start: 16px; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.path { border-radius: var(--r-md); padding: 16px 18px; }
.path.with { background: var(--light-soft); }
.path.without { background: var(--band); }
.path-h { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.path .summary-full { font-size: .98rem; }
dl.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: .95rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.fp { font-family: var(--mono); font-size: .78rem; word-break: break-all; direction: ltr; unicode-bidi: isolate; color: var(--ink-2); }
.side { display: grid; gap: 14px; position: sticky; top: 92px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; background: var(--paper); }
.panel h3 { margin-bottom: .5em; }
.panel p { color: var(--ink-2); font-size: .93rem; }
.panel.partner { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.panel.partner h3 { color: #fff; }
.panel.partner p { color: #cfe1da; }
.panel.partner a { color: var(--light); }
.panel.partner .btn-primary { background: var(--light); color: var(--ink); border-color: var(--light); }
.panel.partner .btn-primary:hover { background: #ffd563; }
.panel.partner .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.panel.partner .btn-ghost:hover { border-color: #fff; }
.scope-mini { font-size: .82rem !important; margin: 12px 0 0 !important; color: #b5cdc5 !important; }
.email-box { display: none; margin-top: 12px; gap: 8px; flex-direction: column; }
.email-box.show { display: flex; }
.email-box code { font-family: var(--mono); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; word-break: break-all; font-size: .88rem; direction: ltr; text-align: start; }
.only-narrow { display: none; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; } .side { position: static; } .only-narrow { display: inline-flex; } }

/* figures and documents */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.gallery.one { grid-template-columns: minmax(0, 1fr); }
.figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.fig-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: zoom-in; overflow: hidden; }
.fig-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--band); display: block; }
.gallery.one .fig-btn img { aspect-ratio: auto; max-height: 480px; }
.fig-btn:hover { border-color: var(--line-strong); }
.figure figcaption { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.figure figcaption b { color: var(--ink); font-weight: 600; margin-inline-end: 4px; }
.figure figcaption span { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flist:empty { display: none; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--paper); }
.frow.edit { align-items: start; }
.fbadge { width: 40px; height: 48px; border-radius: 4px; display: grid; place-items: center; font-size: .66rem; font-weight: 600; color: #fff; direction: ltr; }
.fbadge.pdf { background: #a93a2a; }
.fbadge.xls { background: #1f6b5c; }
.fbadge.csv { background: #3b5a78; }
.fthumb { width: 40px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--band); }
.fmain { min-width: 0; }
.ftitle { font-weight: 600; overflow-wrap: anywhere; }
.fdesc { font-size: .9rem; color: var(--ink-2); }
.fmeta { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.factions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fedit { display: grid; gap: 6px; margin: 2px 0 4px; }
.fedit input { padding: 7px 10px; font-size: .92rem; }
.fedit input[data-k=title] { font-weight: 500; }
.fnum { font-size: .8rem; font-weight: 600; color: var(--green-600); }
@media (max-width: 640px) { .frow { grid-template-columns: auto minmax(0, 1fr); } .factions { grid-column: 1 / -1; justify-content: flex-start; } }
.uploads { display: grid; gap: 16px; }
.files-field { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--band); display: grid; gap: 10px; }
.ff-head { display: grid; gap: 2px; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; background: var(--paper); transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--green-800); background: var(--green-100); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop:focus-within { outline: 2px solid rgba(31, 107, 92, .35); }
.form .drop { display: flex; font-weight: 400; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 28, 25, .92); display: grid; place-items: center; padding: 56px 64px; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; background: #fff; }
.lightbox figcaption { color: #e3ece8; font-size: .92rem; text-align: center; max-width: 70ch; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 14px; inset-inline-end: 14px; font-size: 1.05rem; }
.lb-prev { inset-inline-start: 12px; top: 50%; }
.lb-next { inset-inline-end: 12px; top: 50%; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 640px) { .lightbox { padding: 56px 12px; } }

/* sharing */
.share { display: grid; gap: 6px; }
.share .help { margin: 0; }
.share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.side .share .linkline { flex-direction: column; }

/* ---------- proof certificate ---------- */
.cert { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 40px 44px; position: relative; background: var(--paper); }
.cert .seal { width: 54px; height: 54px; margin-bottom: 18px; }
.cert .seal svg { width: 100%; height: 100%; display: block; }
.cert table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.cert th, .cert td { text-align: start; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cert th { color: var(--muted); font-weight: 400; width: 34%; }
details.canon summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details.canon pre { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: .76rem; background: var(--band); padding: 12px; border-radius: var(--r-sm); direction: ltr; text-align: left; }
@media (max-width: 640px) { .cert { padding: 24px 18px; } }
@media print {
  .topbar, .footer, .no-print, .skip { display: none !important; }
  main { padding: 0; }
  .cert { border: 0; padding: 0; }
}

/* ---------- about ---------- */
.about { max-width: 860px; margin-inline: auto; }
.about-hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.motto, .tagline { font-family: var(--serif); font-style: italic; }
.motto { font-size: 1.25rem; color: var(--green-600); margin: 0 0 14px; }
.about-sec { margin-top: 48px; }
.about-sec > p { color: var(--ink-2); max-width: 46em; }
.about-sec.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.way { padding: 22px 24px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.way + .way { border-inline-start: 1px solid var(--line); }
.way h3 { margin: 0; }
.way p { margin: 0 0 6px; color: var(--ink-2); font-size: .96rem; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps .how-num { font-size: 1.9rem; }
.steps b { font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: .96rem; }
.scope { margin-top: 22px; border-inline-start: 3px solid var(--lamp); background: var(--light-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; display: grid; gap: 6px; justify-items: start; }
.scope p { margin: 0; color: #4a3d14; font-size: .96rem; }
.dates { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.dates li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.dates li.next { border-color: var(--lamp); background: var(--light-soft); }
.dates li.past { color: var(--muted); }
.dates .d { font-weight: 500; }
.founder { display: flex; gap: 16px; align-items: center; max-width: 480px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; flex: none; }
.avatar.sm { width: 42px; height: 42px; font-size: .95rem; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .about-sec.two, .ways { grid-template-columns: minmax(0, 1fr); } .way + .way { border-inline-start: 0; border-top: 1px solid var(--line); } }

.results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.results li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 6px; }
.results li span { color: var(--muted); font-size: .9rem; }
.results li p { margin: 0; color: var(--ink-2); }
.results.admin li > div:first-child { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }

/* ---------- cards: partners and collaborators ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; color: inherit; }
.card h3 { margin: 0; }
.card .summary { color: var(--ink-2); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .875rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.collab-head { display: flex; gap: 12px; align-items: center; }
.collab-head h3 { margin: 0; }
.mini-h { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.card.collab .email-box code { font-size: .82rem; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; margin-bottom: -1px; }
.tab.on { color: var(--green-800); border-bottom-color: var(--green-800); }
.tab-n { font-size: .78rem; color: var(--muted); }
.tab-n:empty { display: none; }
.req { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 14px; display: grid; gap: 12px; }
.req-head { display: flex; justify-content: space-between; gap: 12px; }
.plan { background: var(--band); border-radius: var(--r-sm); padding: 12px 14px; font-size: .96rem; }
.decide { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.decide label { display: grid; gap: 4px; font-weight: 500; font-size: .9rem; max-width: 280px; }
.decide-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.decision { border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 8px; }
.decision.accepted { background: var(--green-100); }
.decision.rejected { background: var(--red-soft); }

/* ---------- terms and privacy ---------- */
.terms section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.terms section:first-of-type { border-top: 1px solid var(--line); margin-top: 20px; }
.terms h3 { margin-bottom: .3em; }
.terms p { margin: 0; color: var(--ink-2); max-width: 68ch; }
.terms .updated { color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.footer { background: var(--green-900); color: #c9dbd4; font-size: .93rem; }
.footer a { color: #e6f0eb; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 36px; }
.footer .brand { color: #fff; }
.footer .brand-name small { color: #a9c4bb; }
.footer .tagline { margin: 16px 0 0; color: #c9dbd4; font-size: 1.02rem; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col b { color: #fff; font-weight: 600; margin-bottom: 2px; }
.footer-col span { overflow-wrap: anywhere; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 18px 22px; color: #a9c4bb; font-size: .86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 36px 28px; } .footer-brand, .footer-col:last-child { grid-column: 1 / -1; } }

/* email confirmation screens */
.mail-icon { width: 72px; height: 72px; margin: 0 auto; display: block; }
.tips { text-align: start; margin: 0; padding: 16px 20px 16px 36px; background: var(--band); border-radius: var(--r-sm); color: var(--ink-2); font-size: .94rem; display: grid; gap: 6px; }
.confirm-card { text-align: start; border: 1px solid var(--line); border-inline-start: 3px solid var(--lamp); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; display: grid; gap: 6px; }
.confirm-card h2 { font-size: 1.3rem; margin: 0; }
.confirm-card p { margin: 0; color: var(--ink-2); }
.actions-center { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
input[readonly] { background: var(--band); color: var(--ink-2); }
.linkline input[readonly], .share input[readonly] { background: var(--paper); color: var(--ink); }
.captcha:empty { display: none; }
.captcha { min-height: 65px; }
.reply-time { font-family: var(--serif, 'IBM Plex Serif', serif); font-size: 1.5rem; margin: 6px 0; }
.footer-col .footer-follow { margin-top: 14px; }
