/* NCSA website. Colors are the team uniform: black, Pacific teal, white. */
:root {
  --ink: #0B0B0C;
  --ink-2: #4B5659;
  --line: #DCE2E3;
  --ground: #F4F6F6;
  --card: #FFFFFF;
  --teal: #0E7C86;
  --teal-text: #0B6E78;
  --teal-dark: #08535B;
  --teal-light: #5CC3CC;
  --teal-wash: #E6F2F3;
  --on-dark: #D9DEDF;
  --on-dark-2: #A9B4B6;
  --dark-line: #3A4A4E;
  --display: "Archivo Black", Archivo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Archivo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.display { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.dark .eyebrow { color: var(--teal-light); }
.muted { color: var(--ink-2); }
.dark { background: var(--ink); color: #fff; }

/* Placeholders for content the club still has to supply. */
.todo { background: #FFF7D6; border: 1px dashed #B58900; border-radius: 6px; padding: 2px 6px; color: #5C4700; font-style: normal; }

/* Preview banner */
.preview-bar { background: var(--teal-dark); color: #fff; font-size: 14px; text-align: center; padding: 8px 16px; }
.preview-bar a { color: #fff; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 8px; padding: 16px 28px; font-size: 18px; min-height: 44px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { color: #fff; border: 2px solid var(--dark-line); padding: 14px 24px; font-weight: 600; }
.btn-ghost:hover { color: #fff; border-color: var(--teal-light); }

/* Top bar: social links + member login */
.top-bar { background: #161A1C; color: var(--on-dark); font-size: 14px; border-bottom: 1px solid #22292B; }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.top-bar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.top-bar a:hover { color: var(--teal-light); }
.social { display: flex; align-items: center; gap: 14px; }
.social a { min-width: 28px; justify-content: center; }
.rednote { font-size: 13px; font-weight: 600; }
.member-login { font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 18px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; font-weight: 600; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--teal-light); }
.lang-menu summary:focus-visible { outline: 3px solid var(--teal-light); }
.lang-switch { position: absolute; right: 0; top: 100%; z-index: 20; display: flex; flex-direction: column; min-width: 150px; padding: 6px 0; background: #161A1C; border: 1px solid var(--dark-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.lang-switch a { padding: 0 16px; }
.lang-switch a[aria-current] { color: #fff; font-weight: 700; }
.top-bar a { white-space: nowrap; }
@media (max-width: 480px) {
  .social { gap: 6px; }
  .top-right { gap: 6px; }
  /* Icon only on small phones; the text stays for screen readers. */
  .member-login { font-size: 0; gap: 0; min-width: 40px; justify-content: center; }
}

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2; }
.brand:hover { color: #fff; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: #fff; text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-light); }
.header-cta { padding: 12px 18px; font-size: 15px; }
.btn-ghost.header-cta { padding: 10px 16px; }
.nav a, .header-cta { white-space: nowrap; }
/* Tablet widths: the logo alone, so the nav and both header buttons fit on one line. */
@media (min-width: 761px) and (max-width: 1100px) { .brand span { display: none; } }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--dark-line); border-radius: 8px; color: #fff; cursor: pointer; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.04; }
.hero .lede { font-size: 19px; color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-media figcaption { font-size: 14px; color: var(--on-dark-2); }

/* Click-to-play video (no YouTube scripts until someone presses play) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #161A1C; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(11, 11, 12, 0.78); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.video button:hover .play, .video button:focus-visible .play { background: var(--teal); }
.video button:focus-visible { outline: 3px solid var(--teal-light); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; }
.trust strong { display: block; }
.trust span { color: var(--ink-2); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head h2 { font-size: 38px; }
.section-head p { font-size: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps .num { font-family: var(--display); font-size: 30px; color: var(--teal-text); }
.steps h3 { font-size: 21px; }
.steps p { font-size: 16px; color: var(--ink-2); }
.booking { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.booking .title { font-size: 20px; font-weight: 700; }
.booking .muted { font-size: 16px; }
.next-trials { font-size: 15px; color: var(--ink-2); }

/* Coach */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.photo-slot { flex: 1 1 340px; min-width: 0; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 16px; border: 2px dashed #A9B4B6; background: #ECF0F1; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--ink-2); font-size: 15px; }
.coach-photo { flex: 0 1 300px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.coach-photo img { width: 100%; max-width: 300px; border-radius: 16px; }
.coach-photo figcaption { font-size: 14px; color: var(--ink-2); }
.split-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-copy h2 { font-size: 40px; }
.split-copy > p { font-size: 18px; line-height: 1.6; }
blockquote { margin: 0; }
.quote { font-size: 19px; line-height: 1.55; font-style: italic; }
.more { font-size: 16px; font-weight: 600; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quotes figure { margin: 0; }
.quotes blockquote { font-size: 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.quotes blockquote p { margin: 0; }
.quotes figcaption { font-size: 15px; color: var(--ink-2); }

/* Path */
.path-intro { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.path-intro .copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.path-intro .copy h2 { font-size: 38px; }
.path-intro .copy p { font-size: 18px; line-height: 1.6; }
.suit { flex: 0 1 300px; min-width: 0; padding: 16px; gap: 8px; }
.suit span { font-size: 14px; color: var(--ink-2); text-align: center; }
.ladder { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ladder li { padding: 22px; gap: 8px; }
.ladder .step { font-family: var(--display); font-size: 14px; color: var(--teal-text); }
.ladder h3 { font-family: var(--display); font-weight: 400; font-size: 20px; }
.ladder p { font-size: 15px; color: var(--ink-2); }
.ladder li.first { background: var(--ink); color: #fff; border-color: var(--ink); }
.ladder li.first .step { color: var(--teal-light); }
.ladder li.first p { color: var(--on-dark); }
.ladder .more { font-size: 15px; margin-top: auto; }
.join-steps .more { margin-top: auto; }

/* FAQ */
/* Columns, not a grid: answers of uneven length flow without leaving holes. */
.faq { columns: 2 340px; column-gap: 48px; }
.faq > div { break-inside: avoid; margin-bottom: 28px; }
.faq h4 { font-size: 19px; margin: 0 0 8px; }
.faq-group { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); margin-top: 8px; }
:lang(zh) .faq-group, :lang(ko) .faq-group { text-transform: none; letter-spacing: 0; }
.faq p, .faq li { font-size: 16px; color: var(--ink-2); }
.faq ul { margin: 6px 0 0; padding-left: 20px; }

/* This week + members */
.week-band { background: var(--teal-wash); border-top: 1px solid var(--line); }
.week-band .wrap { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.week { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.week h2, .members h2 { font-size: 28px; }
.week-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.week-list li { background: #fff; border-radius: 10px; padding: 12px 16px; display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; align-items: start; }
.week-sessions { display: flex; flex-direction: column; gap: 8px; }
.week-session { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
@media (max-width: 480px) { .week-list li { grid-template-columns: 1fr; } .week-session { flex-direction: column; } }
.week-list .where { color: var(--ink-2); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--teal-dark); background: var(--teal-wash); border-radius: 4px; padding: 2px 6px; margin-left: 6px; }
.tag.warn { color: #6B3A00; background: #FFE9CC; }
.tag { white-space: nowrap; }
.tag.open { color: #14532D; background: #DCFCE7; }
.tag.full { color: #8A1C1C; background: #FDE2E2; }
.week-note { font-size: 14px; color: var(--ink-2); }
.members { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.members p { font-size: 16px; color: var(--ink-2); }
.soon { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 2px dashed var(--ink-2); color: var(--ink-2); font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 8px; }

/* Club page */
.page-hero .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.page-hero p { font-size: 19px; color: var(--on-dark); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 32px; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-weight: 700; color: var(--teal-text); }
.rinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rinks .card { padding: 0; overflow: hidden; gap: 0; }
.rinks img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rinks .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.rinks h3 { font-size: 21px; }

/* Why speed skating (homepage) */
.why-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 32px; }
.why-list li { border-left: 3px solid var(--teal); padding-left: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.why-list strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.why-close { font-family: var(--display); font-size: 22px; color: var(--teal-text); }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 8px; }
.moments figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.moments img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.photo-wide, .photo-lead, .photo-pair { margin: 32px 0; display: flex; flex-direction: column; gap: 8px; }
.photo-lead { margin-top: 40px; margin-bottom: 0; }
.photo-wide img, .photo-lead img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 16px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.photo-pair figcaption { grid-column: 1 / -1; }
.photo-wide figcaption, .photo-lead figcaption, .photo-pair figcaption { font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .moments { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.ellie-words h3 { font-size: 24px; margin-top: 12px; }

/* Join page */
.join-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.join-skip { font-size: 17px; background: var(--teal-wash); border-radius: 10px; padding: 14px 18px; max-width: 900px; }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.team { border-top: 8px solid var(--line); }
.team-rec { border-top-color: var(--teal); }
.team-black { border-top-color: var(--ink); }
.team h3 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.team-level { font-weight: 700; color: var(--teal-text); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.team p { font-size: 16px; }
.join-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 32px; max-width: 980px; }
.join-list li { border-left: 3px solid var(--teal); padding-left: 14px; font-size: 17px; line-height: 1.55; }
.join-list strong { display: block; }

/* Schedule page */
.calendar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-through { font-size: 18px; font-weight: 600; }
.calendar-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.calendar-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
@media (max-width: 760px) { .calendar-frame iframe { height: 560px; } }

/* Member area */
.member-area { max-width: 760px; }
.member-account { display: flex; flex-direction: column; gap: 20px; }
.member-card { gap: 14px; }
.member-card > .btn { align-self: flex-start; cursor: pointer; font-family: inherit; }
.member-card > .btn-primary { border: 0; }
.member-card h2 { font-size: 30px; }
.member-card h3 { font-size: 21px; }
.stack { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.stack label { font-weight: 600; }
.stack input { font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid #A9B4B6; border-radius: 8px; min-height: 48px; }
.stack input:focus { outline: 3px solid var(--teal-light); outline-offset: 1px; border-color: var(--teal); }
#member-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 220px; }
.stack .btn { border: 0; cursor: pointer; font-family: inherit; align-self: flex-start; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid #A9B4B6; font-size: 17px; padding: 13px 22px; }
.btn-google:hover { color: var(--ink); border-color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; max-width: 420px; margin-top: 4px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.notice { background: var(--teal-wash); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.form-error { color: #A3261B; font-weight: 600; min-height: 1.5em; }
.link-btn { all: unset; cursor: pointer; color: var(--teal-text); font-weight: 600; text-decoration: underline; padding: 10px 0; align-self: flex-start; }
.link-btn:focus-visible { outline: 3px solid var(--teal-light); }
.status-pill { display: inline-block; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: #DDF3E6; color: #11512B; }
.status-pill.off { background: #FFE9CC; color: #6B3A00; }
.skater-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.skater-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }
table.payments { width: 100%; border-collapse: collapse; font-size: 15px; }
table.payments th, table.payments td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.payments td:nth-child(2), table.payments td:nth-child(3) { white-space: normal; min-width: 8em; }
table.payments th { font-size: 13px; color: var(--ink-2); font-weight: 600; }
table.payments td.pending { color: #6B3A00; font-weight: 600; }
.small { font-size: 14px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.not-found-links { font-size: 19px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }

/* Member area: compact title, single-column sign-in, tidy rows */
.page-hero.compact .wrap { max-width: 760px; padding-top: 28px; padding-bottom: 28px; gap: 6px; }
.page-hero.compact h1 { font-size: clamp(28px, 4vw, 36px); }
.member-area { margin-left: auto; margin-right: auto; }
.signin-card { max-width: 460px; margin: 0 auto; width: 100%; }
.signin-card .btn, .signin-card .stack .btn { width: 100%; justify-content: center; text-align: center; align-self: stretch; }
.signin-card .stack, .signin-card .or { max-width: none; }
.signin-card [data-google-block] { display: flex; flex-direction: column; gap: 12px; }
.key-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.key-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.key-list li > span { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.security-card .btn-google { font-size: 15px; padding: 10px 16px; }
.security-card .account-actions { margin-top: 4px; }
table.payments.one-skater th:nth-child(3), table.payments.one-skater .pay-skater { display: none; }
table.payments .pay-amount { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  table.payments thead { display: none; }
  table.payments tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.payments td { border: 0; padding: 0; white-space: normal; min-width: 0; }
  table.payments .pay-what { grid-column: 1; grid-row: 1; font-weight: 600; }
  table.payments .pay-date { grid-column: 1; grid-row: 2; color: var(--ink-2); font-size: 14px; }
  table.payments .pay-skater { grid-column: 1; grid-row: 3; color: var(--ink-2); font-size: 14px; }
  table.payments .pay-amount { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  table.payments .pay-status { grid-column: 2; grid-row: 2; text-align: right; font-size: 14px; }
}

/* From the Shoebox */
.history { max-width: 820px; margin-left: auto; margin-right: auto; gap: 40px; }
.history-era { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; padding-left: 24px; border-left: 3px solid var(--teal); }
.history-year { font-family: var(--display); font-size: 28px; color: var(--teal-text); line-height: 1; }
.history-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.history-figure img { width: 100%; border-radius: 8px; }
.history-figure.portrait { max-width: 420px; }
.history-figure figcaption { font-size: 15px; color: var(--ink-2); }
.history-ask { font-size: 17px; }
.newsletters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 28px; }
.newsletter-year h2 { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--teal-text); margin: 6px 0 4px; }
.newsletter-year ul, .newsletter-extras { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.5; }
.newsletter-year li, .newsletter-extras li { margin-bottom: 4px; }
:lang(zh) .history-year, :lang(ko) .history-year { font-weight: 800; }
@media (max-width: 760px) { .history-era { padding-left: 16px; } }

/* News archive (English only) */
.news-index { max-width: 820px; margin-left: auto; margin-right: auto; gap: 18px; }
.news-year { font-size: 30px; color: var(--teal-text); margin-top: 12px; }
.news-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.news-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.news-list a { font-weight: 600; }
.news-post { max-width: 820px; margin-left: auto; margin-right: auto; }
.news-body { max-width: none; }
.news-body img { border-radius: 8px; margin: 8px 0; height: auto; }
.news-body figure { margin: 0; }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.news-body table { border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.news-body td, .news-body th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.news-body h2, .news-body h3, .news-body h4 { font-family: inherit; font-weight: 700; font-size: 22px; margin-top: 8px; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; padding-top: 44px; padding-bottom: 96px; font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.site-footer strong { color: #fff; display: block; }
.site-footer a { color: #fff; }
.site-footer .col { display: flex; flex-direction: column; gap: 4px; }
.site-footer .legal { flex: 1 1 100%; color: var(--on-dark-2); font-size: 14px; }
.footer-link { all: unset; cursor: pointer; color: #fff; text-decoration: underline; }
.footer-link:focus-visible { outline: 3px solid var(--teal-light); }

/* Staff area on the member page (staff.js) */
.staff-area { display: flex; flex-direction: column; gap: 20px; }
.member-area:has(.staff-area:not([hidden])) { max-width: 1120px; }
.staff-card h3 { font-size: 18px; margin: 14px 0 6px; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.staff-table th, .staff-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.staff-table th { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.staff-card .btn { border: 0; cursor: pointer; font-family: inherit; font-size: 16px; padding: 11px 18px; min-height: 44px; }
.staff-card .btn-outline { background: #fff; color: var(--ink); border: 1px solid #A9B4B6; }
.staff-card .btn:disabled { opacity: 0.45; cursor: default; }
.pack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pack { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pack-actions, .job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.job { border-top: 1px solid var(--line); padding: 10px 0; }
.job summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 6px 0; }
.job-form { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; max-width: 520px; }
.job-field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.job-field input:not([type=checkbox]), .job-field select { font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid #A9B4B6; border-radius: 8px; min-height: 44px; background: #fff; }
.job-check { flex-direction: row; align-items: center; gap: 10px; }
.job-choices { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.job-choices legend { font-size: 15px; padding: 0 4px; }
.job-choice { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 15px; cursor: pointer; }
.job-choice input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.job-label { font-size: 15px; }
.job-check input { width: 20px; height: 20px; }
.job-output { background: var(--ink); color: #E6F2F3; font-size: 13px; line-height: 1.45; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; max-height: 420px; overflow-y: auto; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 4px 0 16px; overflow-x: auto; }
.admin-tab { all: unset; cursor: pointer; padding: 10px 18px; font-weight: 700; font-size: 16px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.admin-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.admin-tab:focus-visible { outline: 3px solid var(--teal-light); }
.admin-section { margin-bottom: 18px; }
.btn-small { font-size: 14px !important; padding: 6px 12px !important; min-height: 36px !important; }
.btn-pair { display: inline-flex; gap: 8px; }
.team-box { border-top: 2px solid var(--line); padding-top: 8px; }
.team-all summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.wa-box { background: var(--teal-wash); border-radius: 10px; padding: 12px 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.wa-box h4 { margin: 0; }
.wa-paste { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #A9B4B6; border-radius: 8px; width: 100%; resize: vertical; }
.wa-box .btn { align-self: flex-start; }
.family-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.family-search input { flex: 1; font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid #A9B4B6; border-radius: 8px; min-height: 44px; }
.family-card { border-top: 2px solid var(--line); padding-top: 8px; }
.view-toggle { display: inline-flex; border: 1px solid #A9B4B6; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.view-btn { all: unset; cursor: pointer; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.view-btn[aria-pressed="true"] { background: var(--teal); color: #fff; }
.view-btn:focus-visible { outline: 3px solid var(--teal-light); }
.forms-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.forms-menu-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--teal); color: #fff; text-decoration: none; }
.forms-menu-link:hover { background: var(--teal-dark); color: #fff; }
.forms-menu-link span { font-size: 14px; opacity: 0.9; }
/* Beta: the same yellow-orange as the forms' test-mode banner (pay.js). */
.forms-menu-link.beta { background: #ffb84d; color: #172943; }
.forms-menu-link.beta:hover { background: #f5a325; color: #172943; }
.admin-section h3 { margin-top: 6px; }
.admin-actions-title { margin-top: 22px; font-size: 18px; }
.staff-table td { white-space: pre-line; }
.run-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }

/* "Suggest a change" (site.js) */
.suggest-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 20; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--teal); border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.suggest-pill:hover { background: var(--teal-dark); }
.suggest { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 24px; color: var(--ink); }
.suggest::backdrop { background: rgba(11, 11, 12, 0.55); }
.suggest h2 { margin: 0 0 8px; font-size: 26px; }
.suggest form { display: flex; flex-direction: column; gap: 14px; }
.suggest p { margin: 0; }
.suggest-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.suggest-field select, .suggest-field textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 10px 12px; border: 1px solid #A9B4B6; border-radius: 8px; resize: vertical; }
.suggest-field select { min-height: 48px; background: #fff; }
.suggest-field :focus { outline: 3px solid var(--teal-light); outline-offset: 1px; border-color: var(--teal); }
.suggest-hint { font-size: 14px; margin-top: -6px !important; }
.suggest-error { color: #A3261B; font-weight: 600; }
.suggest-error:empty { display: none; }
.suggest-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.suggest .btn { border: 0; cursor: pointer; font-family: inherit; font-size: 17px; padding: 13px 22px; }
.suggest .btn-outline { background: #fff; color: var(--ink); border: 1px solid #A9B4B6; }
.suggest .btn-outline:hover { border-color: var(--ink); }
.suggest > div > .btn { margin-top: 16px; }

.sticky-cta { display: none; position: sticky; bottom: 0; background: var(--ink); padding: 12px 16px; border-top: 1px solid var(--dark-line); }
.sticky-cta .btn { flex: 1; text-align: center; font-size: 17px; padding: 14px; }
.sticky-cta { gap: 10px; }
.sticky-cta .sticky-dropin { flex: 0 0 auto; padding: 12px 14px; }

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; left: 0; right: 0; top: 80px; background: var(--ink); padding: 8px 24px 16px; z-index: 10; border-bottom: 1px solid var(--dark-line); }
  .site-header .wrap { position: relative; }
  .sticky-cta { display: flex; }
  .suggest-pill { bottom: 88px; }
  .suggest { padding: 20px 16px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .section-head h2, .path-intro .copy h2, .split-copy h2 { font-size: 30px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Chinese + Korean: Archivo has no CJK glyphs, so headings fall back to the
   system font (PingFang / Apple SD Gothic Neo / Noto) and need real weight.
   Korean breaks lines between words, never inside one. */
:lang(ko) { word-break: keep-all; }
:lang(zh) .display, :lang(ko) .display { font-weight: 800; letter-spacing: -0.01em; }
:lang(zh) .steps .num, :lang(ko) .steps .num, :lang(zh) .ladder .step, :lang(ko) .ladder .step { font-weight: 800; }
