/* NetApp Black Box — shared stylesheet (v2, Carbon-inspired enterprise redesign)
   Design language: IBM Carbon (flat, rectangular, blue-accented, IBM Plex type).
   Keeps all v1 class hooks so every page restyles without HTML changes. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Carbon tokens */
  --blue: #0f62fe;          /* blue 60 — sole interactive accent */
  --blue-hover: #0353e9;
  --blue-active: #002d9c;
  --blue-10: #edf5ff;       /* blue tint surface */
  --ink: #161616;           /* gray 100 — primary text */
  --ink-2: #525252;         /* gray 70 — secondary text */
  --ink-3: #6f6f6f;         /* gray 60 — placeholder/muted */
  --line: #c6c6c6;          /* gray 30 — borders */
  --line-soft: #e0e0e0;     /* gray 20 */
  --bg: #ffffff;
  --bg-soft: #f4f4f4;       /* gray 10 — card surfaces */
  --bg-soft-hover: #e8e8e8;
  --nav-bg: #161616;        /* gray 100 masthead */
  --code-bg: #262626;       /* gray 90 */
  --code-fg: #f4f4f4;
  --ok: #24a148;            /* green 50 */
  --err: #da1e28;           /* red 60 */
  --warn: #f1c21b;          /* yellow 30 */
  --radius: 0px;            /* Carbon: rectangular */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / nav (dark Carbon masthead) ---------- */

.site-header {
  background: var(--nav-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: .2px;
  white-space: nowrap;
}

.brand span {
  font-weight: 300;
  color: var(--line);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #6f6f6f;
  color: #fff;
  font-size: .95rem;
  font-family: var(--font-sans);
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  color: #c6c6c6;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  padding: 0 14px;
  line-height: 56px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); font-weight: 500; }

/* ---------- Layout ---------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-head { margin-bottom: 40px; }

.crumbs {
  font-size: .85rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1 { font-size: 2.4rem; font-weight: 300; margin: 0 0 10px; line-height: 1.17; letter-spacing: 0; }
h2 { font-size: 1.5rem; font-weight: 400; margin: 48px 0 14px; padding-top: 8px; line-height: 1.33; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 10px; line-height: 1.4; }
h2, h3 { scroll-margin-top: 80px; }

p { margin: 12px 0; }

.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 70ch; line-height: 1.5; }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); text-decoration: underline; }

ul, ol { padding-left: 24px; }
li { margin: 6px 0; }

/* ---------- Hero (home page) ---------- */

.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--blue-10) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 80px 24px 72px;
  text-align: center;
}

.hero-inner { max-width: 900px; margin: 0 auto; }

.hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 48px auto 0;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.08);
}

/* ---------- Content figures (auto-inserted diagrams) ---------- */

.page-figure {
  margin: 0 0 32px;
}

.page-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--bg);
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero h1 { font-size: 3.2rem; font-weight: 300; line-height: 1.1; margin: 0 0 20px; }
.hero h1 strong { font-weight: 600; }

.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0 auto 36px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background .12s ease, color .12s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.btn-primary:active { background: var(--blue-active); }

.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-10); color: var(--blue-hover); text-decoration: none; }

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.card {
  background: var(--bg-soft);
  border-radius: 0;
  padding: 24px;
  text-decoration: none;
  transition: background .12s ease;
}

.card:hover { background: var(--bg-soft-hover); }

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--blue); text-decoration: none; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }

.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--blue);
  background: var(--blue-10);
  border-radius: 24px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .92rem;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th { background: var(--bg-soft); font-weight: 600; }

tbody tr:hover { background: var(--bg-soft); }

/* ---------- Code ---------- */

code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 1px 5px;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 16px 18px;
  border-radius: 0;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.5;
  border-left: 3px solid var(--blue);
}

pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

pre .c { color: #8d8d8d; font-style: italic; }   /* comment */
pre .k { color: #78a9ff; }                        /* keyword */
pre .v { color: #f1c21b; }                        /* value */

/* ---------- Callouts ---------- */

.note, .warn, .tip {
  border-left: 3px solid var(--blue);
  background: var(--blue-10);
  padding: 14px 18px;
  margin: 20px 0;
}

.note strong:first-child, .warn strong:first-child, .tip strong:first-child { display: block; margin-bottom: 2px; }

.warn { border-color: var(--warn); background: #fdf6e3; }
.warn strong:first-child { color: #8a6d00; }

.tip { border-color: var(--ok); background: #e8f5ec; }
.tip strong:first-child { color: var(--ok); }

/* ---------- Quiz ---------- */

.quiz-item {
  border: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 20px 22px;
  margin: 16px 0;
}

.quiz-item .q { font-weight: 600; margin-bottom: 12px; }

.quiz-item .opts { display: flex; flex-direction: column; gap: 8px; }

.quiz-item button.opt {
  text-align: left;
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--bg-soft);
  cursor: pointer;
  color: var(--ink);
}

.quiz-item button.opt:hover { border-color: var(--blue); background: var(--blue-10); }

.quiz-item button.opt.correct { background: #e8f5ec; border-color: var(--ok); }
.quiz-item button.opt.wrong { background: #fdeceb; border-color: var(--err); }

.quiz-item .explain {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  font-size: .92rem;
}

.quiz-item .explain.show { display: block; }

#quiz-score {
  font-weight: 600;
  color: var(--blue);
  margin: 20px 0 4px;
  font-size: 1.05rem;
}

/* ---------- Tools ---------- */

.tool {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 24px;
  margin: 24px 0;
}

.tool label { display: block; font-size: .9rem; font-weight: 600; margin: 14px 0 6px; }

.tool input[type="number"], .tool input[type="text"], .tool select {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: #fff;
  border-radius: 0;
  color: var(--ink);
}

.tool input:focus, .tool select:focus { outline: none; border-bottom-color: var(--blue); }

.tool .result {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--blue-10);
  border-left: 3px solid var(--blue);
  font-weight: 600;
  font-size: 1.02rem;
  min-height: 20px;
}

.tool .result small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 4px; }

.tool .formula { font-size: .85rem; color: var(--ink-2); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--nav-bg);
  color: #c6c6c6;
  padding: 32px 24px 40px;
  font-size: .85rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.site-footer strong { color: #fff; }
.site-footer a { color: #78a9ff; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive / mobile optimization ---------- */

/* Tap targets & touch behavior (all sizes) */
.btn, .quiz-item button.opt, .tool input, .tool select {
  min-height: 48px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; }
a, button { -webkit-tap-highlight-color: rgba(15, 98, 254, .15); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Tables: horizontal scroll on narrow screens (CSS-only, no markup change) */
@media (max-width: 860px) {
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  th, td { padding: 10px 12px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; min-height: 44px; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { line-height: 48px; border-bottom: 1px solid #393939; }
  .header-inner { padding: 0 16px; min-height: 52px; }
  .brand { font-size: 1rem; }
  .brand span { display: none; }
  h1 { font-size: 1.8rem; }
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero .lede { font-size: 1.02rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 14px 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; }
  main { padding: 28px 16px 56px; }
  .page-head { margin-bottom: 28px; }
  h2 { font-size: 1.3rem; margin: 36px 0 12px; }
  pre { font-size: .8rem; padding: 14px; }
  .tool { padding: 18px; }
  .tool input[type="number"], .tool input[type="text"], .tool select { max-width: 100%; }
  .site-footer { padding: 28px 16px 36px; }
}

@media (max-width: 420px) {
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero .eyebrow { font-size: .68rem; padding: 3px 10px; }
  .quiz-item { padding: 16px; }
  .quiz-item button.opt { font-size: .9rem; padding: 12px 14px; }
  .crumbs { font-size: .8rem; }
  .lede { font-size: 1rem; }
}

/* Print-friendly: readable black-on-white, no sticky nav */
@media print {
  .site-header { position: static; background: #fff; color: #000; }
  .site-nav, .nav-toggle, .hero-actions, .btn { display: none !important; }
  .site-header a, .site-header .brand { color: #000; }
  body { font-size: 12pt; }
  pre { background: #f4f4f4; color: #161616; border-left: none; }
  a { color: #000; text-decoration: underline; }
}


/* ================= MAXIMALIST OVERRIDES (F-01 gradient hero + glow) ================= */

/* Animated gradient wash behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, #0f62fe 0%, #6f2da8 45%, #0f62fe 90%);
  background-size: 300% 300%;
  animation: maxGrad 18s ease infinite;
  opacity: .06;
}
@keyframes maxGrad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero: bold gradient panel, glow, gradient headline */
.hero {
  background: linear-gradient(135deg, #0f62fe 0%, #6f2da8 55%, #b23ad1 100%);
  border: none;
  border-radius: 24px;
  margin: 24px 0 0;
  box-shadow: 0 20px 60px rgba(15, 98, 254, .35), 0 0 80px rgba(178, 58, 209, .25);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.25), transparent 55%);
  pointer-events: none;
}
.hero .eyebrow {
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 strong {
  background: linear-gradient(90deg, #7ef0ff, #ffd166, #ff8ad1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { color: rgba(255,255,255,.85); }
.hero-actions .btn-primary {
  background: #fff;
  color: #0f62fe;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-actions .btn-primary:hover { background: #e8f0ff; }
.hero-actions .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.15); }

/* Cards: luminous hover, gradient tag */
.card {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border: 1px solid rgba(15, 98, 254, .15);
  box-shadow: 0 4px 16px rgba(15, 98, 254, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(111, 45, 168, .22), 0 0 24px rgba(15, 98, 254, .15);
  border-color: rgba(111, 45, 168, .4);
}
.card .tag {
  background: linear-gradient(90deg, #0f62fe, #6f2da8);
  color: #fff;
}

/* Section headings get a gradient accent underline */
h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0f62fe, #b23ad1);
}

/* ================= MAXIMALIST OVERRIDES (F-02 rich cards) ================= */

/* Rich card: rounded, subtle dot-grid texture, colored gradient top border,
   soft corner glow, per-card accent cycle (blue → violet → magenta). */
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(rgba(15, 98, 254, .07) 1px, transparent 1.5px),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  background-size: 20px 20px, 100% 100%;
  border: 1px solid rgba(15, 98, 254, .14);
  box-shadow: 0 6px 22px rgba(15, 98, 254, .10);
}

/* Gradient top border (accent cycle per card position) */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f62fe, #00b6ff);
  z-index: 1;
}
.card-grid > .card:nth-child(3n+2)::before { background: linear-gradient(90deg, #6f2da8, #b23ad1); }
.card-grid > .card:nth-child(3n+3)::before { background: linear-gradient(90deg, #b23ad1, #ff7ad9); }

/* Soft radial corner glow inside each card */
.card::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(111, 45, 168, .13), transparent 70%);
  pointer-events: none;
}

/* Hover: lift + colored glow matching the accent */
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 98, 254, .35);
  box-shadow: 0 16px 40px rgba(15, 98, 254, .18), 0 0 30px rgba(15, 98, 254, .12);
}
.card-grid > .card:nth-child(3n+2):hover {
  border-color: rgba(111, 45, 168, .4);
  box-shadow: 0 16px 40px rgba(111, 45, 168, .20), 0 0 30px rgba(178, 58, 209, .14);
}
.card-grid > .card:nth-child(3n+3):hover {
  border-color: rgba(178, 58, 209, .4);
  box-shadow: 0 16px 40px rgba(178, 58, 209, .18), 0 0 30px rgba(255, 122, 217, .14);
}

/* Tag → glowing gradient icon chip (pulsing dot marker, no HTML change) */
.card .tag {
  position: relative;
  background: linear-gradient(90deg, #0f62fe, #6f2da8);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px 4px 22px;
  box-shadow: 0 4px 14px rgba(15, 98, 254, .40);
}
.card .tag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #7ef0ff;
  box-shadow: 0 0 8px #7ef0ff, 0 0 14px rgba(126, 240, 255, .8);
}

/* Accessibility: no lift animation when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ================= MAXIMALIST OVERRIDES (F-03 section dividers & badges) ================= */

/* Section dividers: soft full-width gradient rule line above each top-level
   section heading, plus a glowing gradient accent bar under the heading text. */
main > h2 {
  position: relative;
}
main > h2::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(15, 98, 254, .40) 18%,
    rgba(178, 58, 209, .40) 50%,
    rgba(255, 122, 217, .35) 82%,
    transparent 100%);
}
main > h2::after {
  background: linear-gradient(90deg, #0f62fe, #00b6ff 45%, #b23ad1);
  box-shadow: 0 0 12px rgba(15, 98, 254, .45), 0 2px 8px rgba(178, 58, 209, .30);
}

/* Pill badges: gradient chips everywhere (news feed, cards, future pages).
   Inside .card the F-02 rules keep the richer glow — same family of look.
   Accent cycles blue → violet → magenta by position within a row. */
.tag, .badge {
  display: inline-block;
  position: relative;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #0f62fe, #6f2da8);
  border-radius: 999px;
  padding: 3px 12px 3px 22px;
  margin: 0 4px 4px 0;
  box-shadow: 0 3px 10px rgba(15, 98, 254, .35);
}
.tag::before, .badge::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #7ef0ff;
  box-shadow: 0 0 7px #7ef0ff, 0 0 12px rgba(126, 240, 255, .8);
}
.tag:nth-of-type(3n+2), .badge:nth-of-type(3n+2) {
  background: linear-gradient(90deg, #6f2da8, #b23ad1);
}
.tag:nth-of-type(3n+3), .badge:nth-of-type(3n+3) {
  background: linear-gradient(90deg, #b23ad1, #ff7ad9);
}

/* Section eyebrow labels: gradient-tinted pill anywhere (not just the hero).
   Dark text on a soft blue→violet wash keeps WCAG contrast on light pages;
   .hero .eyebrow rules still win inside the hero for the dark variant. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #002d9c;
  background: linear-gradient(90deg, #edf5ff, #f3ecff 60%, #fdeffb);
  border: 1px solid rgba(111, 45, 168, .30);
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 4px 14px rgba(15, 98, 254, .12), inset 0 1px 0 rgba(255,255,255,.8);
  margin-bottom: 14px;
}

/* Reduced motion: keep dividers/badges static (they are, but be explicit) */
@media (prefers-reduced-motion: reduce) {
  .tag, .badge, .eyebrow { box-shadow: none; }
}

/* ================= MAXIMALIST OVERRIDES (F-04 typography punch) ================= */

/* Larger display sizes, tighter tracking, balanced wraps. Clamped so mobile
   never overflows; weights stay within the loaded IBM Plex Sans faces. */
h1 {
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* Gradient emphasis spans inside headings (dark blue→violet: WCAG AA on white
   for large display text). Hero <strong> keeps F-01's bright gradient because
   `.hero h1 strong` is more specific. */
h1 strong, h2 strong, h3 strong {
  font-weight: inherit;
  background: linear-gradient(92deg, #0f62fe 10%, #6f2da8 60%, #b23ad1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 strong {
  background: linear-gradient(90deg, #7ef0ff, #ffd166, #ff8ad1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sub-headline emphasis: strong inside lede gets a dark-blue semibold (no
   gradient — body-size text needs full contrast). */
.lede strong { color: #002d9c; font-weight: 600; }

/* Article body headings stay dark (readability guard) — the divider/bar from
   F-03 plus the tighter tracking carry the maximalist look there. */

/* ================= IMAGE PRESENTATION (visible banners) ================= */
img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 98, 254, .12), 0 0 0 1px rgba(15, 98, 254, .08);
  display: block;
  margin: 20px auto;
}
img[width="1200"][height="400"] { border-radius: 24px; }

/* Hardware gallery — uniform, tasteful */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.hw { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,98,254,.08), 0 0 0 1px rgba(15,98,254,.06); }
.hw a { display: block; height: 170px; overflow: hidden; }
.hw img { width: 100%; height: 170px; object-fit: cover; display: block; margin: 0; border-radius: 0; box-shadow: none; transition: transform .25s ease; }
.hw a:hover img { transform: scale(1.04); }
.hw figcaption { padding: 10px 14px; font-size: .82rem; color: var(--ink-2); }
.hw figcaption strong { display: block; color: var(--ink); font-size: .88rem; margin-bottom: 2px; }
.hw figcaption small { color: var(--ink-3); }

/* Mobile: hardware gallery — 2-col, smaller, no big cards */
@media (max-width: 860px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hw a, .hw img { height: 110px; }
  .hw figcaption { padding: 8px 10px; font-size: .75rem; }
  .hw figcaption strong { font-size: .8rem; }
  .hw figcaption small { display: none; }
}
@media (max-width: 420px) {
  .hw a, .hw img { height: 95px; }
}
