/* ============================================================
   YoungerUSA, LLC — Standalone Static Site v2
   Brand: YoungerUSA blue (#1a5fae) / red (#e0202c) · hi-tech navy
   No external resources. System font stack. Local images + SVG.
   ============================================================ */

:root {
  --ink: #0c1a2e;
  --ink-soft: #47596f;
  --bg: #f2f6fb;
  --paper: #ffffff;
  --line: #dbe4f2;
  --brand: #1a5fae;
  --brand-deep: #0e3f7c;
  --cyan: #38bdf8;
  --cyan-deep: #0284c7;
  --red: #e0202c;
  --gold: #d9a441;
  --navy: #060f22;
  --navy-2: #0b1c3a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(6, 15, 34, .07);
  --shadow-lg: 0 18px 48px rgba(6, 15, 34, .15);
  --glow: 0 0 0 1px rgba(56, 189, 248, .35), 0 10px 34px rgba(26, 95, 174, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img, svg { max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--cyan-deep); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #9db4d4;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(56, 189, 248, .18);
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #7cc7f5; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .4; margin: 0 10px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 42px; width: auto; display: block; }
.brand-sub {
  font-size: 10px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 1.6px; text-transform: uppercase;
  border-left: 1px solid var(--line); padding-left: 12px;
  line-height: 1.4; white-space: nowrap;
}

.main-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: inline-flex; align-items: center;
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); background: #edf3fb; }
.main-nav a.active { color: var(--brand); background: #e3eefb; }
.main-nav a.active .ni { stroke: var(--brand); }
.ni {
  width: 15px; height: 15px; flex: 0 0 15px;
  margin-right: 5px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -2px;
}
.nav-cta {
  background: linear-gradient(120deg, var(--brand), var(--cyan-deep)) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  margin-left: 8px;
  box-shadow: 0 4px 14px rgba(26, 95, 174, .35);
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-cta .ni { stroke: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 480px at 88% -12%, rgba(56, 189, 248, .16), transparent 62%),
    radial-gradient(760px 420px at 6% 112%, rgba(26, 95, 174, .34), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, #0d2c58 100%);
  color: #e9f2fc;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 500px at 70% 30%, #000 0%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(124, 199, 245, .4);
  color: #7cc7f5;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(56, 189, 248, .06);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #7cc7f5, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: 17.5px; color: #b9cbe2; max-width: 56ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(110deg, var(--brand), var(--cyan-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 95, 174, .45);
}
.btn-primary:hover { filter: brightness(1.12); color: #fff; }
.btn-ghost { border-color: rgba(233, 242, 252, .4); color: #e9f2fc; }
.btn-ghost:hover { background: rgba(56, 189, 248, .12); color: #fff; border-color: rgba(124, 199, 245, .6); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

.hero-formula {
  background: rgba(11, 28, 58, .55);
  border: 1px solid rgba(124, 199, 245, .35);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-formula .formula {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  font-style: italic;
  color: #fff;
  letter-spacing: .5px;
}
.hero-formula .formula b { color: var(--cyan); font-weight: 700; }
.hero-formula .caption { margin-top: 14px; font-size: 13.5px; color: #a8bdd8; line-height: 1.6; }
.hero-formula .dogma { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(124, 199, 245, .35); font-size: 13px; color: #7cc7f5; letter-spacing: .4px; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan-deep); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.4px; }
.section-head p.lead { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.stat .num { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 20px; font-weight: 700; }
.stat .lbl { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Showcase (equipment photo) ---------- */
.showcase { position: relative; }
.showcase-frame {
  position: relative;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(115deg, var(--brand), var(--cyan) 55%, var(--red) 115%);
  box-shadow: 0 24px 64px rgba(6, 15, 34, .35);
}
.showcase-frame img {
  display: block; width: 100%;
  border-radius: 19px;
}
.showcase-caption {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(6, 15, 34, .72);
  border: 1px solid rgba(124, 199, 245, .3);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 14px 20px;
  color: #dce9f8;
}
.showcase-caption .t { font-size: 15px; font-weight: 700; color: #fff; }
.showcase-caption .s { font-size: 12.5px; color: #a8bdd8; margin-top: 2px; }
.showcase-caption .chipb {
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  color: #0b1c3a; background: linear-gradient(110deg, #7cc7f5, var(--cyan));
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bcd3ee; }
.card .icon { width: 46px; height: 46px; margin-bottom: 16px; }
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card .more { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brand); }
.card .more:hover { color: var(--cyan-deep); }

.card.engine { border-top: 4px solid var(--brand); }
.card.engine.im { border-top-color: var(--cyan-deep); }
.card.engine.gip { border-top-color: var(--red); }
.engine-tag { font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.card.engine.im .engine-tag { color: var(--cyan-deep); }
.card.engine.gip .engine-tag { color: var(--red); }

/* ---------- Product cards ---------- */
.cat-block { margin-bottom: 64px; }
.cat-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px; margin-bottom: 26px;
}
.cat-head h3 { font-size: 23px; font-weight: 800; }
.cat-head .cat-note { font-size: 13.5px; color: var(--ink-soft); }

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #bcd3ee; }
.product .model {
  display: inline-block; align-self: flex-start;
  background: #e3eefb; color: var(--brand-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 6px;
}
.product h4 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.product p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.product ul.specs { list-style: none; margin: 2px 0 4px; }
.product ul.specs li {
  font-size: 13px; color: var(--ink-soft);
  padding: 4px 0 4px 18px; position: relative;
  border-bottom: 1px dashed #e8eef7;
}
.product ul.specs li:last-child { border-bottom: none; }
.product ul.specs li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
}
.product .quote-link {
  margin-top: 6px; align-self: flex-start;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
  border-bottom: 2px solid transparent;
}
.product .quote-link:hover { border-bottom-color: var(--brand); }

/* ---------- Formula band ---------- */
.formula-band {
  background:
    radial-gradient(640px 300px at 90% -10%, rgba(56, 189, 248, .14), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(124, 199, 245, .22);
  color: #e9f2fc;
  border-radius: 22px;
  padding: 54px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.formula-band .big-formula {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 4vw, 40px); color: #fff;
  text-shadow: 0 0 26px rgba(56, 189, 248, .45);
}
.formula-band .big-formula b { color: var(--cyan); }
.formula-band h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.formula-band p { color: #b9cbe2; font-size: 15px; }
.formula-band .link { display: inline-block; margin-top: 16px; color: #7cc7f5; font-weight: 700; font-size: 14.5px; }
.formula-band .link:hover { color: #fff; }

/* ---------- Dogma diagram ---------- */
.dogma-flow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  padding: 34px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dogma-node {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
  background: #eef3fa; color: var(--ink-soft);
  border: 1px solid var(--line);
}
.dogma-node.hot {
  background: linear-gradient(110deg, var(--red), #f04b54);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(224, 32, 44, .4);
}
.dogma-arrow { color: var(--cyan-deep); font-size: 20px; font-weight: 800; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--cyan), var(--brand));
}
.tl-item { position: relative; padding: 0 0 30px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brand);
}
.tl-item .year { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--cyan-deep); text-transform: uppercase; }
.tl-item h4 { font-size: 16.5px; font-weight: 700; margin: 3px 0 4px; }
.tl-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th {
  text-align: left; background: var(--navy-2); color: #cfe1f5;
  font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 16px; white-space: nowrap;
}
table.data td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
table.data tr:nth-child(even) td { background: #f5f9fd; }
table.data td b { color: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.chip.ion { background: #e7f1fd; border-color: #c6dcf5; color: var(--brand-deep); }
.chip.mol { background: #e4f6fd; border-color: #bde7fa; color: #075e83; }
.chip.dev { background: #faf3e3; border-color: #eedfae; color: #8a6414; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 15.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font);
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; flex: 0 0 auto; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a .inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); }
.faq-item.open { border-color: #bcd3ee; box-shadow: var(--shadow); }

/* ---------- News / digest list ---------- */
.news-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex: 0 0 92px; text-align: center;
  background: #e3eefb; border-radius: 10px; padding: 8px 6px;
}
.news-date .d { font-size: 20px; font-weight: 800; color: var(--brand-deep); line-height: 1.1; }
.news-date .m { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan-deep); }
.news-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.news-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Publications page ---------- */
.pub-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow); max-width: 640px; margin: 0 auto 14px;
}
.pub-search svg { flex: 0 0 18px; stroke: var(--ink-soft); }
.pub-search input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 15px; font-family: var(--font); color: var(--ink);
  padding: 9px 0;
}
.pub-search .count-pill {
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(110deg, var(--brand), var(--cyan-deep));
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.pub-hint { text-align: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 36px; }

details.year-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
  margin-bottom: 14px; overflow: hidden;
}
details.year-block > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 17px 22px;
  font-weight: 800; font-size: 17px; color: var(--ink);
  user-select: none;
}
details.year-block > summary::-webkit-details-marker { display: none; }
details.year-block > summary::before {
  content: ""; width: 9px; height: 9px; flex: 0 0 9px;
  border-right: 2.4px solid var(--brand); border-bottom: 2.4px solid var(--brand);
  transform: rotate(-45deg); transition: transform .18s ease;
  margin-top: -2px;
}
details.year-block[open] > summary::before { transform: rotate(45deg); }
details.year-block > summary:hover { color: var(--brand); }
.year-badge {
  margin-left: auto;
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--brand-deep); background: #e3eefb;
  padding: 4px 12px; border-radius: 999px;
}
details.year-block .papers { border-top: 1px solid var(--line); padding: 8px 22px 18px; }
.paper {
  padding: 11px 0 11px 16px;
  border-bottom: 1px dashed #e8eef7;
  border-left: 3px solid transparent;
  font-size: 13.8px; line-height: 1.55;
}
.paper:last-child { border-bottom: none; }
.paper:hover { border-left-color: var(--cyan); background: #f7fbff; }
.paper .pt { font-weight: 650; color: var(--ink); }
.paper .pt a { color: var(--ink); }
.paper .pt a:hover { color: var(--brand); text-decoration: underline; }
.paper .pm { color: var(--ink-soft); font-size: 12.8px; margin-top: 2px; }
.paper .pm .pj { font-style: italic; color: var(--brand-deep); }
.paper .doi { font-size: 12px; color: var(--cyan-deep); word-break: break-all; }
.paper.hidden { display: none; }

/* ---------- Contact cards ---------- */
.contact-card { text-align: left; }
.contact-card .subj {
  display: block; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-soft);
  background: #f2f6fc; border: 1px dashed #c8d8ee;
  padding: 8px 12px; border-radius: 8px;
}
.mail-link { word-break: break-all; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(56, 189, 248, .16), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(124, 199, 245, .22);
  color: #e9f2fc;
  border-radius: 22px;
  padding: 52px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta-band p { margin: 14px auto 26px; max-width: 62ch; color: #b9cbe2; font-size: 15.5px; }
.cta-band .mail { font-size: 19px; font-weight: 800; color: #7cc7f5; letter-spacing: .3px; }
.cta-band .mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a9c8; border-top: 1px solid rgba(56, 189, 248, .18); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 62px 0 44px;
}
.site-footer h5 { color: #e9f2fc; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #93a9c8; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.footer-logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
}
.footer-logo-chip img { height: 34px; width: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(147, 169, 200, .18);
  padding: 20px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 360px at 88% -20%, rgba(56, 189, 248, .15), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2) 70%, #0d2c58);
  color: #e9f2fc;
  padding: 64px 0 58px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 400px at 75% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(800px 400px at 75% 20%, #000 0%, transparent 78%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.4px; }
.page-hero p { margin-top: 14px; max-width: 72ch; color: #b9cbe2; font-size: 16px; }
.crumbs { font-size: 13px; color: #7e96b8; margin-bottom: 16px; letter-spacing: .4px; }
.crumbs a { color: #7cc7f5; }

/* ---------- Notice ---------- */
.notice {
  border: 1px solid #c6dcf5; background: #eef4fd;
  border-radius: 12px; padding: 18px 22px;
  font-size: 14.5px; color: var(--ink-soft);
}
.notice b { color: var(--brand-deep); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.fig {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.fig figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.klist { list-style: none; }
.klist li { padding: 9px 0 9px 30px; position: relative; font-size: 15px; color: var(--ink-soft); border-bottom: 1px dashed #e3eaf5; }
.klist li:last-child { border-bottom: none; }
.klist li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--cyan); transform: rotate(45deg);
}
.klist li b { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .formula-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .two-col { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; padding: 44px 0 30px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-band { padding: 40px 26px; }
  .topbar .container { justify-content: center; text-align: center; }
  .showcase-caption { position: static; margin-top: 12px; border-radius: 12px; }
}


/* v3: logo proportions (logo includes NMT · imOmics · GiP tagline) */
.brand-logo-img { height: 50px; }

/* v3: hero photo backgrounds (image set inline per page) */
.hero.has-bg, .page-hero.has-bg {
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

/* v3: card thumbnails */
.card-img { margin: -28px -26px 18px; border-radius: 13px 13px 0 0; overflow: hidden; }
.card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* v3: application field banners */
.app-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 30px;
  border: 1px solid var(--line);
}
.app-banner img { display: block; width: 100%; height: auto; }
.app-banner .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 12px;
  background: linear-gradient(transparent, rgba(6, 15, 34, .78));
  color: #dce9f8; font-size: 13px;
}

/* v3: publications year tabs (mirrors the youngerusa.com year-tab archive) */
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ytab {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; font-family: var(--font);
  transition: all .15s ease;
}
.ytab span { font-size: 11.5px; color: var(--cyan-deep); margin-left: 6px; font-variant-numeric: tabular-nums; }
.ytab:hover { border-color: var(--brand); color: var(--brand); }
.ytab.active {
  background: linear-gradient(110deg, var(--brand), var(--cyan-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(26, 95, 174, .35);
}
.ytab.active span { color: #cfeaff; }
.ypanel { display: none; }
.ypanel.active { display: block; }
.ypanel .papers {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
  padding: 8px 22px 16px;
}
.yhead { display: none; font-size: 18px; font-weight: 800; margin: 28px 0 12px; color: var(--brand-deep); }
#pubarch.searching .ypanel.has-hits { display: block; }
#pubarch.searching .ypanel .papers { box-shadow: none; }
#pubarch.searching .yhead { display: block; }
#pubarch.searching .year-tabs .ytab { opacity: .55; }
