:root {
  --slate: #395b7a;
  --slate-dark: #2e4a63;
  --brand: #1e6fb5;
  --link: #1a63a8;
  --ink: #242a30;
  --ink-soft: #54606c;
  --muted: #8a939e;
  --gold: #9a7400;
  --gold-line: #e6b400;
  --green: #1f7a37;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e1e8ef;
  --border-strong: #cdd7e1;
  --tl-slate-bg: #e8eef4; --tl-slate-fg: #2e4a63;
  --tl-blue-bg: #e2eefb;  --tl-blue-fg: #175a94;
  --tl-green-bg: #e5f3e9; --tl-green-fg: #1f7a37;
  --tl-gold-bg: #f8efd7;  --tl-gold-fg: #8f6c00;
  --shadow: 0 1px 2px rgba(20,40,70,.06), 0 4px 14px rgba(20,40,70,.06);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --slate: #33546f; --slate-dark: #294159;
    --brand: #5fa4e0; --link: #7bb6ea;
    --ink: #e7edf3; --ink-soft: #aeb9c6; --muted: #7e8896;
    --gold: #e6c05a; --gold-line: #e6b400; --green: #54c574;
    --bg: #0f1720; --surface: #16202c; --surface-2: #1c2836;
    --border: #273543; --border-strong: #38495a;
    --tl-slate-bg: #21303f; --tl-slate-fg: #9db8d2;
    --tl-blue-bg: #17324c;  --tl-blue-fg: #7cb6e8;
    --tl-green-bg: #17301f; --tl-green-fg: #5fc57e;
    --tl-gold-bg: #322913;  --tl-gold-fg: #e6c05a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --slate: #33546f; --slate-dark: #294159;
  --brand: #5fa4e0; --link: #7bb6ea;
  --ink: #e7edf3; --ink-soft: #aeb9c6; --muted: #7e8896;
  --gold: #e6c05a; --gold-line: #e6b400; --green: #54c574;
  --bg: #0f1720; --surface: #16202c; --surface-2: #1c2836;
  --border: #273543; --border-strong: #38495a;
  --tl-slate-bg: #21303f; --tl-slate-fg: #9db8d2;
  --tl-blue-bg: #17324c;  --tl-blue-fg: #7cb6e8;
  --tl-green-bg: #17301f; --tl-green-fg: #5fc57e;
  --tl-gold-bg: #322913;  --tl-gold-fg: #e6c05a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

.site-header { background: var(--slate); border-bottom: 3px solid var(--gold-line); }
.site-header-inner {
  max-width: 760px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
}
.site-header .logo { width: 52px; height: 52px; flex: 0 0 auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; min-width: 0; }
.wordmark a { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.wm-sub { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #f2d488; font-weight: 500; }
.wm-title { font-size: 1.42rem; font-weight: 700; color: #fff; letter-spacing: .01em; }

.langswitch { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; gap: 2px; flex: 0 0 auto; }
.langswitch button {
  font: inherit; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.85);
  background: transparent; border: 0; border-radius: 999px; padding: .3rem .68rem; cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: #fff; color: var(--slate); }
.langswitch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.tabs { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.tabs-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 2px; padding: 0 12px; overflow-x: auto; }
.tabs button, .tabs a {
  font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap; color: var(--ink-soft);
  background: none; border: 0; padding: .8rem .85rem; cursor: pointer; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .12s ease, border-color .12s ease; display: inline-block;
}
.tabs button[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold-line); }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs button:focus-visible, .tabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 1.7rem 20px 2.5rem; }
.intro { font-size: 1.02rem; color: var(--ink-soft); max-width: 56ch; margin: 0 0 1.6rem; }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .cta-row { grid-template-columns: 1fr; } }
.cta {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  padding: 1.1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.cta .k { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .92; }
.cta .t { font-size: 1.16rem; font-weight: 700; }
.cta .d { font-size: .84rem; opacity: .9; }
.cta-slate { background: var(--slate); color: #fff; }
.cta-slate .k { color: #cfe0ee; }
.cta-brand { background: var(--brand); color: #fff; }
.cta-brand .k { color: #dbeeff; }

.section-label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin: 1.9rem 0 .85rem;
}
.section-label.first { margin-top: .2rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem .95rem; box-shadow: var(--shadow);
  transition: border-color .12s ease, transform .12s ease;
}
.doc:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.doc:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ic { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; }
.ic-slate { background: var(--tl-slate-bg); color: var(--tl-slate-fg); }
.ic-blue  { background: var(--tl-blue-bg);  color: var(--tl-blue-fg); }
.ic-green { background: var(--tl-green-bg); color: var(--tl-green-fg); }
.ic-gold  { background: var(--tl-gold-bg);  color: var(--tl-gold-fg); }
.doc .body { flex: 1 1 auto; min-width: 0; }
.doc .name { font-weight: 600; font-size: .99rem; display: block; }
.doc .sub { font-size: .82rem; color: var(--muted); display: block; }
.doc .chev { flex: 0 0 auto; color: var(--muted); }

.member-banner {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem;
  font-size: .84rem; color: var(--ink-soft); margin-bottom: 4px;
}
.member-banner .lk { flex: 0 0 auto; color: var(--gold); display: grid; place-items: center; }

.about {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow);
}
.about .nm { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.about .br { color: var(--ink-soft); font-size: .92rem; }
.about .ad { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; margin-top: .4rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; }
.about-links a { color: var(--link); text-decoration: none; font-size: .88rem; font-weight: 600; }
.about-links a:hover { text-decoration: underline; }
.about-links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.hint { font-size: .84rem; color: var(--muted); margin: 0 0 1rem; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: .7rem .95rem;
}
.board .role { color: var(--ink-soft); font-size: .9rem; }
.board .person { font-weight: 600; color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); }
.site-footer .inner {
  max-width: 760px; margin: 0 auto; padding: 1.3rem 20px;
  font-size: .82rem; color: var(--muted); text-align: center;
}
svg { display: block; }
