/* ==========================================================================
   ELAN VITAL BIO · GRBM investor site
   Design language follows www.elanvitalbio.com:
   DM Sans + Noto Sans, paper background, deep green ink, two-tone headlines,
   small tracked eyebrows, pill buttons, thin rule lines.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #123c30;
  --green: #17482f;
  --accent: #448257;
  --mint: #bde3a3;
  --mint-soft: #d2eac0;
  --pale: #e6f0da;
  --tint: #eef3ea;
  --paper: #f7f8f3;
  --white: #ffffff;
  --line: #d8e0d3;
  --body: #536358;
  --muted: #5c785e;
  --deep: #0a271d;
  --red: #cf5146;

  --wrap: 1360px;
  --gutter: 56px;
  --header-h: 124px;
  --radius: 6px;
  --shadow: 0 18px 40px -28px rgba(10, 39, 29, .45);

  --font: 'DM Sans', 'Noto Sans KR', system-ui, sans-serif;
}
:lang(en) { --font: 'DM Sans', system-ui, sans-serif; }
:lang(ja) { --font: 'DM Sans', 'Noto Sans JP', system-ui, sans-serif; }
:lang(zh-Hant) { --font: 'DM Sans', 'Noto Sans TC', system-ui, sans-serif; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  overflow-x: hidden;
}

:lang(ko) body, body:lang(ko) { word-break: keep-all; }
:lang(ja) body, body:lang(ja), :lang(zh-Hant) body, body:lang(zh-Hant) { line-break: strict; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
em { font-style: normal; }
strong { font-weight: 700; color: var(--ink); }
button { font: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.wrap.narrow { max-width: 860px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
}
/* hidden until focused, without parking it off-screen (which would widen a right-to-left page) */
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- 3. Type helpers ---------- */
.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

h2 em, h1 em, .title em { color: var(--accent); }

.note {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 14px 28px;
  border: 1px solid transparent; border-radius: 50px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.green { background: var(--green); color: #f0f6e9; }
.btn.green:hover { background: var(--ink); }
.btn.light { background: var(--pale); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.line:hover { background: rgba(255, 255, 255, .12); }
.btn.line-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.small { min-height: 42px; padding: 10px 20px; font-size: 14px; font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, .97);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.hdr-top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 48px; height: auto; }
.brand span {
  display: flex; flex-direction: column;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; color: var(--ink);
}
.brand small { margin-top: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }

.hdr-tools { display: flex; align-items: center; gap: 22px; }
.related { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.related a { color: var(--ink); border-bottom: 1px solid var(--line); }
.related a:hover { border-color: var(--accent); }

.langs { display: flex; gap: 4px; }
.langs a {
  padding: 6px 9px; border-radius: 30px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
}
.langs a:hover { color: var(--ink); background: var(--pale); }
.langs a[aria-current] { color: var(--ink); background: var(--pale); }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* main navigation row */
.site-nav { border-top: 1px solid var(--line); }
.nav-list {
  display: flex; justify-content: space-between;
  margin: 0; padding: 0; list-style: none;
}
.nav-top {
  display: block; padding: 14px 4px 13px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav-item:hover .nav-top,
.nav-item:focus-within .nav-top,
.nav-item.is-current .nav-top { color: var(--accent); border-color: var(--accent); }

/* mega dropdown */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 32px 0 36px; }

.mega-intro { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 24px; overflow: hidden; border-radius: var(--radius); color: #fff; }
.mega-intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 39, 29, .20) 0%, rgba(10, 39, 29, .88) 46%, rgba(10, 39, 29, .97) 100%); }
.mega-intro b, .mega-intro span { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.mega-intro img { z-index: 0; }
.mega-intro::after { z-index: 1; }
.mega-intro > :not(img) { position: relative; z-index: 2; }
.mega-intro .eyebrow { margin-bottom: 8px; color: var(--mint-soft); }
.mega-intro b { font-size: 19px; line-height: 1.35; }
.mega-intro span:last-child { margin-top: 6px; font-size: 13px; line-height: 1.6; color: #e3eedc; }

.mega-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; align-content: start; }
.mega-list a {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 10px;
  padding: 14px 12px 14px 10px; border-bottom: 1px solid var(--line); border-radius: 4px;
  transition: background .15s;
}
.mega-list i { grid-row: 1 / span 2; padding-top: 2px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.mega-list b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.mega-list span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--body); }
.mega-list a:hover { background: var(--tint); }
.mega-list a:hover b { color: var(--accent); }
.mega-list a[aria-current] { background: var(--pale); }
.mega-list a[aria-current] b { color: var(--green); }
.mega-list a[aria-current] i { color: var(--green); }

/* ---------- 6. Hero (image with overlapping text) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(520px, 72vh, 760px);
  padding: 120px 0 84px;
  color: #fff; background: var(--deep);
}
.hero.short { min-height: clamp(440px, 58vh, 600px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 39, 29, .9) 0%, rgba(10, 39, 29, .66) 46%, rgba(10, 39, 29, .18) 100%),
    linear-gradient(0deg, rgba(10, 39, 29, .55), rgba(10, 39, 29, 0) 45%);
}
.hero .wrap { position: relative; }
.hero .wrap > * { max-width: 780px; }
.hero .eyebrow { color: #b7cbb3; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 500; line-height: 1.32; letter-spacing: -.045em; }
.hero h1 em { color: var(--mint-soft); }
.hero .lead { margin: 26px 0 0; font-size: 18.5px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.hero .lead strong { color: #fff; }
.hero-num {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: -1;
  font-size: clamp(110px, 14vw, 220px); font-weight: 700; line-height: 1; letter-spacing: -.06em;
  color: rgba(255, 255, 255, .07);
}

.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; opacity: .5; }

/* home hero */
.home-hero { min-height: clamp(600px, 88vh, 900px); }
.home-hero .wrap > * { max-width: 700px; }
.hero-cutout {
  position: absolute; right: max(2vw, calc((100% - var(--wrap)) / 2 - 40px)); bottom: 0; z-index: -1;
  width: auto; height: min(88%, 820px); max-width: 40vw; object-fit: contain; object-position: bottom right;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 0; padding: 0; list-style: none; }
.chips li {
  display: flex; flex-direction: column; min-width: 120px; padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); background: rgba(10, 39, 29, .45);
  font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .8);
}
.chips b { font-size: 20px; font-weight: 600; color: var(--mint-soft); }

/* ---------- 7. Sub navigation ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--pale);
  border-top: 1px solid #cfdcc4; border-bottom: 1px solid #cfdcc4;
  transition: box-shadow .2s;
}
.subnav.is-stuck { box-shadow: 0 10px 24px -18px rgba(10, 39, 29, .55); }
.subnav .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; }

/* menu badge: number · short name · position */
.subnav-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding-right: 16px; border-right: 1px solid #c3d3b6; color: var(--ink);
}
.subnav-no {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.subnav-head b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.subnav-head small { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subnav-head:hover b { color: var(--accent); }

/* numbered pills */
.subnav-list {
  flex: 1; min-width: 0; display: flex; gap: 8px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list.fade-right { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.subnav-list.fade-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.subnav-list.fade-left.fade-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.subnav-list a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border: 1px solid #c3d3b6; border-radius: 40px;
  background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.subnav-list a i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.subnav-list a:hover { border-color: var(--accent); color: var(--accent); }
.subnav-list a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 14px -8px rgba(23, 72, 47, .8); }
.subnav-list a[aria-current] i { color: var(--mint); }
.subnav-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* wide screens: show every sub-page at once (wraps to a second row when needed) */
@media (min-width: 1101px) {
  .subnav-list { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
  .subnav-list a { padding: 8px 15px 8px 11px; font-size: 14.5px; }
}

/* ---------- 8. Sections ---------- */
.section { padding: 112px 0; }
.section.tight { padding: 56px 0; }
.section.white { background: #fff; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--deep); color: #e8efe4; }
.section.dark h2, .section.dark h3, .section.dark h4, .section.dark strong { color: #fff; }
.section.dark h2 em { color: var(--mint); }
.section.dark .eyebrow { color: #b7cbb3; }
.section.dark p, .section.dark li, .section.dark td { color: #cfdccb; }
.section.page-top { padding-top: 160px; }

.sec-head { max-width: 920px; margin-bottom: 52px; }
.sec-head h2, .title, .developer h2, .contact-grid h2 {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.4; letter-spacing: -.05em;
}
.split-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: end; max-width: none; }
.split-head > p { margin: 0; font-size: 16px; color: var(--body); }

.flow > * + * { margin-top: 36px; }
.flow > p { max-width: 900px; font-size: 18px; color: var(--body); }
.flow > p + p { margin-top: 0; }
.flow > h3 { margin-top: 56px; font-size: 24px; }

/* easy explanation: text + picture */
.easy { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: start; }
.easy-text p { font-size: 19px; line-height: 1.9; color: var(--ink); }
.easy-text p:first-child { font-size: 22px; font-weight: 500; line-height: 1.75; }
.easy-side { position: sticky; top: calc(var(--header-h) + 84px); }
.easy + * { margin-top: 64px; }

/* ---------- 9. Figures (text overlaps the image) ---------- */
.fig { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--deep); }
.fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fig.wide img { aspect-ratio: 16 / 7; }
.fig.contain { background: #fff; border: 1px solid var(--line); }
.fig.contain img { object-fit: contain; padding: 20px; }
.fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 26px 22px;
  background: linear-gradient(180deg, rgba(10, 39, 29, 0), rgba(10, 39, 29, .9));
  color: #fff; font-size: 14px; line-height: 1.6;
}
.fig figcaption b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; color: #fff; }
.fig figcaption span { color: rgba(255, 255, 255, .86); }
.fig.contain figcaption { position: static; padding: 16px 22px 20px; background: #fff; border-top: 1px solid var(--line); color: var(--body); }
.fig.contain figcaption b { color: var(--ink); }
.fig.contain figcaption span { color: var(--body); }

.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 10. Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards.c1 { grid-template-columns: 1fr; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.section.white .card { background: var(--paper); }
.section.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.card .pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .pic img { transform: scale(1.04); }
.card .body { padding: 26px 26px 28px; }
.card .no { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--red); }
.card h4 { margin-bottom: 10px; font-size: 19px; line-height: 1.45; }
.card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--body); }

/* problem → solution articles */
.issue { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.issue:last-child { border-bottom: 1px solid var(--line); }
.flow > .issue + .issue { margin-top: 0; }
.issue-no {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--pale); font-size: 17px; font-weight: 700; color: var(--accent);
}
.issue h4 { font-size: 22px; line-height: 1.45; }
.issue-sol { margin: 8px 0 14px; font-size: 17px; font-weight: 600; color: var(--accent); }
.issue-sol::before { content: '→ '; }
.issue p { max-width: 980px; font-size: 16px; line-height: 1.9; color: var(--body); }
.issue-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.issue-tags b { margin-right: 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--red); }
.issue-tags span { padding: 5px 12px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.section.white .issue-tags span { background: var(--paper); }

/* ---------- 11. Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 24px 26px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--body); }
.section.dark .stats, .section.dark .stat + .stat { border-color: rgba(255, 255, 255, .16); }
.section.dark .stat b { color: var(--mint); }

/* ---------- 12. Steps and lines ---------- */
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps .no { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--red); padding-top: 3px; }
.steps b { display: block; font-size: 19px; font-weight: 600; line-height: 1.5; }
.steps p { margin: 6px 0 0; font-size: 15.5px; color: var(--body); }
.section.dark .steps, .section.dark .steps li { border-color: rgba(255, 255, 255, .16); }

.lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines .lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding-top: 3px; min-width: 0; overflow-wrap: anywhere; }
.lines .txt { font-size: 16px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.lines a { border-bottom: 1px solid var(--line); }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.checks li::before {
  content: ''; position: absolute; left: 2px; top: 21px;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.section.dark .checks li { border-color: rgba(255, 255, 255, .16); color: #e8efe4; }

/* ---------- 13. Tables ---------- */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.table caption { padding: 16px 20px; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.table th { padding: 14px 18px; background: var(--pale); text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; color: var(--body); }
.table td:first-child { font-weight: 600; color: var(--ink); }
.section.dark .table { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
.section.dark .table th { background: rgba(189, 227, 163, .14); color: #fff; }
.section.dark .table td { border-color: rgba(255, 255, 255, .12); }
.section.dark .table td:first-child { color: #fff; }

/* ---------- 14. Quote ---------- */
.quote { margin: 40px 0 0; padding: 30px 34px; border-left: 3px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.7; color: var(--ink); }
.quote cite { display: block; margin-top: 14px; font-size: 13px; font-style: normal; color: var(--muted); }
.section.dark .quote { background: rgba(255, 255, 255, .06); border-color: var(--mint); }
.section.dark .quote p { color: #fff; }

/* ---------- 15. Band (full-bleed image, overlapping headline) ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0; color: #fff; background: var(--deep); }
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 39, 29, .88), rgba(10, 39, 29, .35)); }
.band.right .band-shade { background: linear-gradient(270deg, rgba(10, 39, 29, .88), rgba(10, 39, 29, .35)); }
.band .wrap > * { max-width: 760px; }
.band.right .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.band h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; line-height: 1.42; letter-spacing: -.045em; }
.band h2 em { color: var(--mint-soft); }
.band p { margin: 24px 0 0; font-size: 17.5px; line-height: 1.85; color: rgba(255, 255, 255, .86); }

/* ---------- 16. "Read more" ---------- */
.more { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.more summary {
  display: flex; align-items: center; gap: 22px; padding: 28px 0;
  list-style: none; cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more-icon {
  position: relative; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: var(--green); transition: background .2s;
}
.more-icon::before, .more-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: #fff; transition: transform .25s;
}
.more-icon::after { transform: rotate(90deg); }
.more[open] .more-icon { background: var(--accent); }
.more[open] .more-icon::after { transform: rotate(0deg); }
.more-label b { display: block; font-size: 20px; font-weight: 600; }
.more-label span { display: block; margin-top: 2px; font-size: 14px; color: var(--body); }
.more .when-open, .more[open] .when-closed { display: none; }
.more[open] .when-open { display: block; }
.more summary:hover b { color: var(--accent); }
.more-body { padding: 8px 0 56px 70px; }

/* long-form text */
.prose { max-width: 960px; }
.prose > * + * { margin-top: 18px; }
.prose p { font-size: 17px; line-height: 1.95; color: #2f4a3e; }
.prose h3 { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 23px; line-height: 1.45; }
.prose h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose .table, .prose .cards, .prose .steps, .prose .figs, .prose .diagram, .prose .stats, .prose .lines, .prose .checks { margin-top: 26px; }

/* ---------- 17. Diagrams ---------- */
.diagram { margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.section.dark .diagram { background: #fbfcf8; }

/* ---------- 18. Link cards (cited sites) ---------- */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.link-card .pic { aspect-ratio: 16 / 9; overflow: hidden; }
.link-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.link-card .body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.link-card .eyebrow { margin-bottom: 10px; color: var(--red); }
.link-card h4 { font-size: 19px; line-height: 1.45; }
.link-card p { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.7; color: var(--body); }
.link-card .go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- 19. Tiles (menu and home) ---------- */
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tiles.n2 { grid-template-columns: repeat(2, 1fr); }
.tiles.n4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 26px; border-radius: var(--radius); color: #fff; background: var(--deep);
}
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 39, 29, .1) 20%, rgba(10, 39, 29, .92)); }
.tile:hover > img { transform: scale(1.05); }
.tile .no { position: absolute; top: 22px; left: 26px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--mint-soft); }
.tile b { font-size: 20px; font-weight: 600; line-height: 1.4; }
.tile-text { margin-top: 8px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .84); }

/* ---------- 20. Developer block ---------- */
.developer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.developer .prose p { font-size: 17px; }
.portrait { position: relative; overflow: hidden; border-radius: var(--radius); background: #dfe9d8; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.portrait-badge {
  position: absolute; left: 22px; bottom: 22px; max-width: 280px; padding: 16px 20px;
  border-radius: var(--radius); background: var(--red); color: #fff; font-size: 13px; line-height: 1.55;
}
.portrait-badge b { display: block; font-size: 26px; font-weight: 600; }

/* ---------- 21. Pager and CTA ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager-link {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px; padding: 24px 28px; border-radius: var(--radius); color: #fff; background: var(--deep);
}
.pager-link img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s; }
.pager-link::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 39, 29, .2), rgba(10, 39, 29, .85)); }
.pager-link:hover img { opacity: .75; }
.pager-link small { font-size: 13px; letter-spacing: .06em; color: var(--mint-soft); }
.pager-link b { margin-top: 4px; font-size: 21px; font-weight: 600; }
.pager-link.next { text-align: right; align-items: flex-end; }

.cta-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
  padding: 64px 64px; border-radius: 10px; background: var(--deep); color: #fff;
}
.cta-panel .eyebrow { color: #b7cbb3; }
.cta-panel h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; line-height: 1.45; letter-spacing: -.04em; }
.cta-panel h2 em { color: var(--mint-soft); }
.cta-panel p { margin: 18px 0 0; color: rgba(255, 255, 255, .8); }
.cta-panel .actions { justify-content: flex-end; margin: 0; }

/* ---------- 22. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-grid h2 { margin-bottom: 34px; }
.lines .txt a:hover { color: var(--accent); }
.form { display: grid; gap: 8px; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form label { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 18px; }

/* ---------- 23. Footer ---------- */
.site-footer { padding: 72px 0 36px; background: var(--paper); border-top: 1px solid var(--line); color: var(--body); }
.ftr-main { display: grid; grid-template-columns: 340px 1fr; gap: 64px; }
.ftr-brand .brand { margin-bottom: 22px; }
.ftr-brand p { margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
.ftr-brand a:hover { color: var(--accent); }
.ftr-sites { margin-top: 12px !important; }
.ftr-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px !important; font-size: 13px; }
.ftr-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.ftr-col h4 { margin-bottom: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.ftr-col ul { margin: 0; padding: 0; list-style: none; }
.ftr-col li a { display: block; padding: 3px 0; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.ftr-col li a:hover, .ftr-col h4 a:hover { color: var(--accent); }
.ftr-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ftr-bottom .disc { max-width: 980px; }

/* ---------- 24. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 40px; }
  .related { display: none; }
  .nav-top { font-size: 13.5px; }
  .cards.c4, .tiles.n4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-main { grid-template-columns: 1fr; gap: 44px; }
}

/* tablet & phone: off-canvas navigation */
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  /* a backdrop-filter would make the header the containing block of the fixed panel */
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .burger { display: block; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: 72px; bottom: 0; z-index: 49;
    overflow-y: auto; background: var(--paper); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; padding: 12px 0 40px; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-top { position: relative; padding: 18px 0; font-size: 17px; border: 0; }
  .nav-top::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
  .nav-item.is-open .nav-top::after { content: '−'; }
  .nav-item:hover .nav-top, .nav-item.is-current .nav-top { border: 0; }
  .mega {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-item:hover .mega, .nav-item:focus-within .mega { display: none; }
  .nav-item.is-open .mega { display: block; }
  .mega .wrap { display: block; width: auto; padding: 0 0 16px; }
  .mega-intro { display: none; }
  .mega-list { display: block; }
  .mega-list a {
    grid-template-columns: 28px 1fr; padding: 12px 10px 12px 12px; border-bottom: 0;
    border-left: 3px solid var(--line); border-radius: 0;
  }
  .mega-list i { padding-top: 1px; }
  .mega-list b { font-size: 15.5px; font-weight: 600; }
  .mega-list span { display: none; }
  .mega-list a[aria-current] { border-left-color: var(--green); }

  .split-head, .easy, .developer, .contact-grid, .cta-panel { grid-template-columns: 1fr; gap: 40px; }
  .easy-side { position: static; }
  .cta-panel .actions { justify-content: flex-start; }
  .cards.c3, .link-cards, .tiles, .figs { grid-template-columns: repeat(2, 1fr); }
  .hero-cutout { opacity: .35; max-width: 60vw; }
  .ftr-map { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .subnav .wrap { gap: 10px; padding: 10px 0; }
  .subnav-head { gap: 6px; padding-right: 10px; flex-direction: column; align-items: center; }
  .subnav-head b { display: none; }
  .subnav-no { width: 30px; height: 30px; font-size: 12px; }
  .subnav-head small { font-size: 11px; }
  .subnav-list a { padding: 8px 14px 8px 11px; font-size: 14.5px; }
  body { font-size: 16px; }
  .hdr-top .wrap { height: 64px; gap: 10px; }
  :root { --header-h: 64px; }
  .site-nav { top: 64px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 36px; }
  .brand span { font-size: 12.5px; letter-spacing: .02em; }
  .brand small { font-size: 7.5px; letter-spacing: .08em; }
  .hdr-tools { gap: 6px; }
  .hdr-tools .btn.small { display: none; }
  .langs { gap: 0; }
  .langs a { padding: 4px 5px; font-size: 11px; letter-spacing: 0; }
  .burger { width: 40px; height: 40px; }

  .hero { min-height: 520px; padding: 96px 0 56px; }
  .hero h1 { font-size: 32px; }
  .sec-head h2, .title, .developer h2, .contact-grid h2 { font-size: 28px; }
  .hero .lead { font-size: 16.5px; }
  .hero-num { display: none; }
  .home-hero { min-height: 640px; }
  .hero-cutout { display: none; }
  .chips li { min-width: calc(50% - 5px); }

  .section { padding: 72px 0; }
  .section.tight { padding: 40px 0; }
  .sec-head { margin-bottom: 36px; }
  .easy-text p { font-size: 17px; }
  .easy-text p:first-child { font-size: 19px; }
  .cards.c2, .cards.c3, .cards.c4, .link-cards, .tiles, .tiles.n2, .tiles.n4, .figs, .pager { grid-template-columns: 1fr; }
  .tile { min-height: 260px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 20px 14px 18px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
  .lines li { grid-template-columns: 1fr; gap: 4px; }
  .issue { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .issue-no { width: 40px; height: 40px; font-size: 15px; }
  .issue h4 { font-size: 19px; }
  .band { padding: 96px 0; }
  .band.right .wrap { align-items: flex-start; text-align: left; }
  .more summary { gap: 16px; padding: 22px 0; }
  .more-icon { width: 40px; height: 40px; }
  .more-label b { font-size: 18px; }
  .more-body { padding: 4px 0 40px; }
  .prose p { font-size: 16px; }
  .quote { padding: 22px 22px; }
  .quote p { font-size: 17px; }
  .cta-panel { padding: 40px 26px; }
  .form { padding: 26px 20px; }
  .ftr-map { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .pager-link.next { text-align: left; align-items: flex-start; }
}

@media (max-width: 380px) {
  .ftr-map { grid-template-columns: 1fr; }
}

/* language list inside the mobile menu panel (six languages do not fit in a phone header) */
.nav-langs { display: none; }
@media (max-width: 1100px) {
  .nav-langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
  .nav-langs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; }
  .nav-langs a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
}
@media (max-width: 700px) {
  .langs a:not([aria-current]) { display: none; }
}

/* ---------- 14. NDA downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card { padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dl-card.wide { grid-column: 1 / -1; background: var(--pale); border-color: #cfdcc4; }
.dl-card h3 { margin: 6px 0 8px; font-size: 21px; color: var(--ink); }
.dl-card p { margin: 0; }
.dl-card .actions { margin-top: 18px; }
@media (max-width: 700px) { .dl-grid { grid-template-columns: 1fr; } .dl-card { padding: 22px; } }

/* marker on a link that opens another language (page not translated yet) */
.lang-tag {
  display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 20px;
  font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .04em; line-height: 1.5; opacity: .7; vertical-align: middle;
}

/* ---------- 15. Arabic and Hindi ---------- */
:lang(ar) { --font: 'DM Sans', 'Noto Sans Arabic', system-ui, sans-serif; }
:lang(hi) { --font: 'DM Sans', 'Noto Sans Devanagari', system-ui, sans-serif; }
:lang(ar) body, :lang(hi) body { line-height: 1.85; }
/* Arabic letters join: no letter-spacing on Arabic text */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) b, :lang(ar) .nav-top, :lang(ar) .subnav-list a { letter-spacing: 0; }

/* right-to-left mirroring: rules written with left/right above are flipped here */
[dir="rtl"] .note { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .hero-num { right: auto; left: var(--gutter); }
/* Latin labels and figures keep their own order inside Arabic text */
[dir="rtl"] .eyebrow, [dir="rtl"] .crumb { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] .chips b, [dir="rtl"] .stat b, [dir="rtl"] .stats b { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] [dir="ltr"] { text-align: left; }
[dir="rtl"] .hero-cutout { right: auto; left: max(2vw, calc((100% - var(--wrap)) / 2 - 40px)); object-position: bottom left; }
[dir="rtl"] .subnav-head { padding-right: 0; border-right: 0; padding-left: 16px; border-left: 1px solid #c3d3b6; }
[dir="rtl"] .subnav-list.fade-right { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); }
[dir="rtl"] .subnav-list.fade-left { -webkit-mask-image: linear-gradient(270deg, transparent, #000 12%); mask-image: linear-gradient(270deg, transparent, #000 12%); }
[dir="rtl"] .subnav-list.fade-left.fade-right { -webkit-mask-image: linear-gradient(270deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(270deg, transparent, #000 12%, #000 88%, transparent); }
[dir="rtl"] .issue-sol::before { content: '← '; }
[dir="rtl"] .issue-tags b { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .stat + .stat { padding-left: 0; border-left: 0; padding-right: 24px; border-right: 1px solid var(--line); }
[dir="rtl"] .table caption, [dir="rtl"] .table th { text-align: right; }
[dir="rtl"] .quote { border-left: 0; border-right: 3px solid var(--accent); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .band-shade { transform: scaleX(-1); }
[dir="rtl"] .hero-shade { transform: scaleX(-1); }
[dir="rtl"] .band.right .wrap { align-items: flex-end; text-align: left; }
[dir="rtl"] .portrait-badge { left: auto; right: 22px; }
[dir="rtl"] .checks li { padding: 12px 30px 12px 0; }
[dir="rtl"] .checks li::before { left: auto; right: 2px; }
[dir="rtl"] .tile .no { left: auto; right: 26px; }
[dir="rtl"] .pager-link.next { text-align: left; align-items: flex-start; }
[dir="rtl"] .pager-link.prev { text-align: right; align-items: flex-end; }
@media (max-width: 1100px) {
  [dir="rtl"] .nav-top::after { right: auto; left: 4px; }
  [dir="rtl"] .mega-list a { border-left: 0; border-right: 3px solid var(--line); }
  [dir="rtl"] .mega-list a[aria-current] { border-right-color: var(--green); }
}
@media (max-width: 700px) {
  [dir="rtl"] .subnav-head { padding-left: 10px; }
  [dir="rtl"] .stat, [dir="rtl"] .stat + .stat { padding: 20px 0 18px 14px; border-right: 0; }
  [dir="rtl"] .stat:nth-child(even) { padding-left: 0; padding-right: 14px; border-right: 1px solid var(--line); }
  [dir="rtl"] .pager-link.next { text-align: right; align-items: flex-end; }
  [dir="rtl"] .band.right .wrap { align-items: flex-start; text-align: right; }
}

/* ---------- 16. FAQ and source lists (Insights) ---------- */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary {
  position: relative; padding: 18px 54px 18px 22px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--green); }
.faq-item > div { padding: 0 22px 20px; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.8; }
[dir="rtl"] .faq-item summary { padding: 18px 22px 18px 54px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 22px; }
.refs { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.refs li { padding-inline-start: 18px; position: relative; font-size: 14.5px; line-height: 1.6; }
.refs li::before { content: '↗'; position: absolute; inset-inline-start: 0; color: var(--accent); font-size: 12px; top: 3px; }
.refs a { color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.refs a:hover { color: var(--accent); border-color: var(--accent); }
