/* Excodex - atexmarket.com
   Drafting-film palette: pale cool film, Prussian ink, Ex amber, zone red. */

:root {
  --film: #E8ECE7;
  --film-deep: #DCE2DC;
  --sheet: #F6F8F5;
  --ink: #14233B;
  --ink-2: #3B4A5B;
  --graphite: #56636E;
  --rule: #BAC4BD;
  --field-line: #8E9A94;
  --amber: #E39B0B;
  --amber-deep: #8F5C00;
  --red: #B42D26;
  --ok: #1E6A4E;

  --f-script: system-ui;
  --f-body: "Sofia Sans", var(--f-script), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cond: "Sofia Sans Condensed", var(--f-script), "Sofia Sans", system-ui, sans-serif;
  --f-xcond: "Sofia Sans Extra Condensed", "Sofia Sans Condensed", var(--f-script), system-ui, sans-serif;
  --lh-body: 1.55;
  --lh-head: 1.02;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

:lang(ar), :lang(fa) { --f-script: "Noto Sans Arabic"; --lh-body: 1.75; --lh-head: 1.3; }
:lang(he) { --f-script: "Noto Sans Hebrew"; --lh-body: 1.65; --lh-head: 1.15; }
:lang(hi) { --f-script: "Noto Sans Devanagari"; --lh-body: 1.75; --lh-head: 1.3; }
:lang(zh) { --f-script: "Noto Sans SC"; --lh-body: 1.75; --lh-head: 1.25; }
:lang(ja) { --f-script: "Noto Sans JP"; --lh-body: 1.75; --lh-head: 1.25; }
:lang(ko) { --f-script: "Noto Sans KR"; --lh-body: 1.75; --lh-head: 1.25; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh) h2, :lang(ja) h2, :lang(ko) h2 { letter-spacing: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-cond); line-height: var(--lh-head); color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--film); padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--edge);
  background: color-mix(in srgb, var(--film) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; fill: var(--ink); }
.brand-word { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 1.85rem; line-height: 1; letter-spacing: .01em; }
.top-actions { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1.5px solid var(--field-line); border-radius: 999px;
  padding: 6px 13px 6px 10px; cursor: pointer; font-size: .95rem; line-height: 1.2;
}
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.lang-btn:hover { border-color: var(--ink); }
.me { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.me #meName { font-weight: 600; color: var(--ink); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--film);
  border: 0; border-radius: var(--radius);
  padding: 14px 24px;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.15rem; line-height: 1.15;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: #24395B; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 9px 16px; font-size: 1rem; }
.text-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--field-line);
}
.text-btn:hover, .text-link:hover { text-decoration-color: var(--ink); }
.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; text-decoration-color: var(--field-line);
}
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; border-radius: 50%; }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.8; fill: none; }
.icon-btn:hover { background: var(--film-deep); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vh, 64px) var(--gutter) clamp(28px, 5vh, 48px);
  overflow: hidden;
  background-color: var(--film);
  background-image:
    linear-gradient(to right, rgba(20, 35, 59, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 35, 59, .07) 1px, transparent 1px),
    linear-gradient(to right, rgba(20, 35, 59, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 35, 59, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
#plume { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin-inline: auto; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4.1rem);
  letter-spacing: -.012em;
  max-width: 19ch;
}
.hero .lead {
  margin-top: clamp(14px, 2.2vh, 22px);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--ink-2);
}

.marking-block { margin-top: clamp(24px, 4.5vh, 44px); }
.marking {
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: .17em; row-gap: .05em;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 10.2vw, 9.4rem);
  line-height: .9;
  letter-spacing: .005em;
}
[dir="rtl"] .marking { justify-content: flex-end; }
.tok {
  position: relative;
  background: none; border: 0; padding: 0 .015em .06em; margin: 0;
  font: inherit; line-height: inherit; letter-spacing: inherit;
  color: transparent;
  -webkit-text-stroke: max(1.5px, .014em) var(--ink);
  cursor: pointer;
  transition: color .18s ease;
}
.tok::after {
  content: ""; position: absolute; inset-inline: .02em; bottom: 0; height: max(4px, .055em);
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
[dir="rtl"] .tok::after { transform-origin: right; }
.tok:hover { color: rgba(20, 35, 59, .14); }
.tok[aria-pressed="true"] { color: var(--ink); }
.tok[aria-pressed="true"]::after { transform: scaleX(1); }
.tok:focus-visible { outline-offset: 6px; }

/* single orchestrated load moment: the marking is stamped token by token.
   Without JS the tokens still appear after a short delay. */
.marking .tok { opacity: 0; transform: translateY(.12em); animation: stamp .42s cubic-bezier(.2, .7, .2, 1) 1.4s forwards; }
.marking.is-ready .tok { animation-delay: 0s; }
.marking.is-ready .tok:nth-child(2) { animation-delay: .07s; }
.marking.is-ready .tok:nth-child(3) { animation-delay: .14s; }
.marking.is-ready .tok:nth-child(4) { animation-delay: .21s; }
.marking.is-ready .tok:nth-child(5) { animation-delay: .28s; }
.marking.is-ready .tok:nth-child(6) { animation-delay: .35s; }
.marking.is-ready .tok:nth-child(7) { animation-delay: .42s; }
@keyframes stamp { to { opacity: 1; transform: none; } }

.callout { position: relative; margin-top: 10px; padding-top: 22px; min-height: 4.4em; max-width: 60ch; }
.callout-pin {
  position: absolute; top: 0; inset-inline-start: 0; width: 1.5px; height: 18px; background: var(--ink);
  transition: inset-inline-start .25s ease;
}
.callout-pin::after {
  content: ""; position: absolute; bottom: -4px; left: -3.25px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 1.5px var(--ink);
}
.callout-text { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink); max-width: 56ch; }
.callout-text b {
  font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 1.45em;
  color: var(--amber-deep); margin-inline-end: .35em; line-height: 1;
}
.hint { margin-top: 10px; font-size: .9rem; color: var(--graphite); }

.hero-foot {
  margin-top: clamp(22px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.stats { display: flex; gap: clamp(20px, 3.5vw, 44px); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .88rem; color: var(--graphite); margin-top: 4px; }

.plume-caption {
  margin-top: 26px; margin-inline-start: auto;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 44ch; font-size: .78rem; line-height: 1.45; color: var(--graphite);
}
.plume-caption svg { width: 54px; height: 10px; flex: none; margin-top: 4px; }
.plume-caption path { stroke-width: 1.6; fill: none; }
.plume-caption .l100 { stroke: var(--red); }
.plume-caption .l50 { stroke: var(--amber); }
.plume-caption .l10 { stroke: var(--graphite); stroke-dasharray: 3 3; }

/* ------------------------------------------------------- language band */
.band {
  background: var(--ink); color: var(--film);
  padding: clamp(36px, 6vw, 64px) var(--gutter);
}
.band-title {
  max-width: var(--wrap); margin: 0 auto 22px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: #AEB9C7; line-height: 1.4;
}
.band-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline;
}
.band-list button {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: #C9D2DC; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.35;
  font-family: var(--f-body);
  text-decoration: none; border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.band-list button:hover { color: #fff; border-bottom-color: #6F7F92; }
.band-list button[aria-current="true"] { color: var(--amber); border-bottom-color: var(--amber); }
.band-list button:focus-visible { outline-color: var(--amber); }

/* -------------------------------------------------------------- sections */
.contents, .charter, .join { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.contents > *, .charter > * { max-width: var(--wrap); margin-inline: auto; }
.section-head h2 { font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -.01em; }
.section-head p { margin-top: 14px; max-width: 58ch; font-size: 1.15rem; color: var(--ink-2); }

.chapters {
  list-style: none; padding: 0; margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px);
  counter-reset: none;
}
.chapters li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.ch-no {
  flex: none; width: 2.2ch; text-align: end;
  font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 2.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink);
}
.ch-title { font-family: var(--f-cond); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.ch-lead { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--field-line); transform: translateY(-4px); }
.ch-status { flex: none; font-size: .85rem; color: var(--graphite); white-space: nowrap; }

.charter { background: var(--film-deep); }
.articles {
  list-style: none; padding: 0; margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 44px);
}
.articles li { border-top: 2px solid var(--ink); padding-top: 16px; }
.art-no { font-size: .9rem; color: var(--graphite); }
.articles h3 { margin-top: 8px; font-weight: 800; font-size: 1.55rem; }
.articles h3 + p { margin-top: 10px; color: var(--ink-2); max-width: 40ch; }

/* ------------------------------------------------------------------ join */
.join {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
}
.form { margin-top: clamp(28px, 4vw, 40px); display: grid; gap: 20px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .98rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field select, .lang-search {
  width: 100%; min-height: 48px;
  background: var(--sheet); border: 1.5px solid var(--field-line); border-radius: var(--radius);
  padding: 11px 14px; font-size: 1rem; line-height: 1.3;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 16px 52%, 22px 52%; }
.field input:focus, .field select:focus, .lang-search:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(227, 155, 11, .5);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.help { font-size: .84rem; color: var(--graphite); line-height: 1.4; }
.err { font-size: .88rem; color: var(--red); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.form-err { color: var(--red); font-weight: 600; }
.form-err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 7px 15px; border: 1.5px solid var(--field-line); border-radius: 999px;
  background: var(--sheet); font-size: .95rem; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--film); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); cursor: pointer; font-weight: 400 !important; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.aside-note { font-size: .95rem; color: var(--ink-2); }

.done { margin-top: clamp(28px, 4vw, 40px); padding: 26px 0 0; border-top: 2px solid var(--ink); }
.done:focus { outline: none; }
.done h3 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.done p { margin-top: 12px; max-width: 54ch; color: var(--ink-2); }
.invite { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.invite input {
  flex: 1 1 260px; min-height: 44px; background: var(--sheet); border: 1.5px dashed var(--field-line);
  border-radius: var(--radius); padding: 9px 12px; font-size: .95rem;
}

/* nameplate: the member card is an equipment nameplate */
.plate-wrap { position: sticky; top: 96px; }
.plate {
  position: relative; width: 100%; max-width: 460px; margin-inline: auto;
  padding: 30px 30px 26px;
  border-radius: 10px;
  color: #26323F;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, rgba(20, 35, 59, .028) 1px 3px),
    linear-gradient(118deg, #CDD4D3 0%, #EEF1F0 32%, #C3CBCA 55%, #E9EDEC 78%, #CBD2D1 100%);
  box-shadow:
    inset 0 0 0 1px rgba(20, 35, 59, .28),
    inset 0 2px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(20, 35, 59, .12),
    0 26px 48px -26px rgba(20, 35, 59, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.rivet {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #C9D0D0 35%, #848E8F 80%);
  box-shadow: inset 0 0 0 1px rgba(20, 35, 59, .35), 0 1px 0 rgba(255, 255, 255, .7);
}
.r1 { top: 11px; left: 11px; } .r2 { top: 11px; right: 11px; } .r3 { bottom: 11px; left: 11px; } .r4 { bottom: 11px; right: 11px; }
.plate-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(20, 35, 59, .35); }
.plate-brand { display: inline-flex; align-items: center; gap: 6px; font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.plate-brand svg { width: 18px; height: 18px; fill: #26323F; }
.plate-kind { font-size: .82rem; font-weight: 700; text-align: end; }
.plate-no { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.plate-no .k { font-size: .9rem; font-weight: 600; }
.plate-no .v { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 4.2rem; line-height: .9; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.plate-name { margin-top: 6px; font-family: var(--f-cond); font-weight: 800; font-size: 1.6rem; line-height: 1.15; min-height: 1.15em; overflow-wrap: anywhere; }
.plate-rows { margin: 16px 0 0; display: grid; gap: 7px; }
.plate-rows div { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: 10px; font-size: .9rem; line-height: 1.35; }
.plate-rows dt { font-weight: 600; opacity: .8; }
.plate-rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.plate-foot { margin-top: 18px; padding-top: 12px; border-top: 1.5px solid rgba(20, 35, 59, .35); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; }
.plate-mark { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.plate-status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; }
.plate-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 1.5px rgba(20, 35, 59, .5); }
.plate.is-member .plate-no .v { color: var(--ink); }
.plate:not(.is-member) .plate-no .v { color: rgba(38, 50, 63, .45); }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--rule);
  padding: 36px var(--edge) 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px;
  font-size: .9rem; color: var(--graphite);
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); margin-inline-end: auto; }
.foot-brand .brand-mark { width: 20px; height: 20px; }
.foot-brand .brand-word { font-size: 1.4rem; }

/* --------------------------------------------------------------- dialogs */
.dlg {
  border: 0; border-radius: 12px; padding: 22px 24px 26px;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  background: var(--sheet); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(20, 35, 59, .6);
}
.dlg-lang { width: min(760px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(20, 35, 59, .5); backdrop-filter: blur(3px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h2 { font-size: 1.8rem; font-weight: 800; }
.lang-search { margin-top: 14px; }
.lang-grid {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
}
.lang-grid button {
  width: 100%; text-align: start; background: transparent; border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 9px 11px; cursor: pointer; display: grid; gap: 1px;
}
.lang-grid button:hover { border-color: var(--field-line); background: var(--film); }
.lang-grid button[aria-current="true"] { background: var(--ink); color: var(--film); }
.lang-grid .n { font-size: 1.02rem; font-weight: 600; line-height: 1.3; justify-self: start; }
.lang-grid .e { font-size: .78rem; color: var(--graphite); line-height: 1.3; }
.lang-grid button[aria-current="true"] .e { color: #AEB9C7; }
.dlg .form { margin-top: 16px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join { grid-template-columns: 1fr; }
  .plate-wrap { position: static; order: -1; }
  .plate { max-width: 520px; margin-inline: 0; }
}
@media (max-width: 820px) {
  .chapters { grid-template-columns: 1fr; }
  .plume-caption { margin-inline-start: 0; }
  .hero { padding-bottom: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top { padding-block: 10px; }
  .brand-word { font-size: 1.6rem; }
  #signinBtn, #joinTop { display: none; }
  .me #meName { display: none; }
  .lang-btn span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: auto; padding-top: 150px; }
  .marking { column-gap: .14em; }
  .callout { min-height: 7.2em; }
  .row-2 { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; }
  .ch-status { display: none; }
  .ch-lead { display: none; }
  .stats dd { font-size: 2.2rem; }
  .plate { padding: 26px 22px 22px; }
  .plate-no .v { font-size: 3.4rem; }
  .hero-foot { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .marking .tok { opacity: 1; transform: none; animation: none; }
}

.go-portal { margin-top: 22px; }
#portalLink { text-decoration: none; }
@media (max-width: 640px) { #portalLink { display: inline; } }
