/*
Theme Name: Szafirowy Katalog
Theme URI: https://www.faxsamsung.pl
Author: AA
Version: 1.0.0
Text Domain: aa-faxsamsung-katalog
*/
/* ============================================================
   Fax Samsung — arkusz wspólny
   Kierunek: stal + kobalt, chłodny tech, karty urządzeń
   Neutralno-tematyczny (bez brandingu producenta)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Kolory bazowe — stal */
  --bg:          #eaeef4;
  --bg-2:        #e0e6ef;
  --surface:     #ffffff;
  --surface-2:   #f5f8fc;
  --surface-3:   #eef2f8;

  /* Atrament / stal */
  --ink:         #0f1a2b;
  --ink-2:       #2b384d;
  --muted:       #51607a;
  --line:        #d3dbe8;
  --line-2:      #c2cdde;

  /* Kobalt */
  --cobalt:      #1b41c4;
  --cobalt-600:  #2a57e6;
  --cobalt-700:  #142c7e;
  --cobalt-050:  #e9eefb;
  --cobalt-100:  #d7e0fa;

  /* Funkcyjne */
  --focus:       #2a57e6;
  --white:       #ffffff;

  /* Typografia */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  /* Promienie */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Cienie (chłodne, niebieskawe) */
  --sh-1: 0 1px 2px rgba(15, 26, 43, .06), 0 1px 3px rgba(15, 26, 43, .05);
  --sh-2: 0 2px 8px rgba(15, 26, 43, .07), 0 8px 24px rgba(15, 26, 43, .06);
  --sh-3: 0 10px 34px rgba(20, 44, 126, .14), 0 4px 12px rgba(15, 26, 43, .08);

  /* Ruch */
  --tr: 180ms cubic-bezier(.4, 0, .2, 1);

  /* Rytm */
  --wrap: 1200px;
}

/* ---------- Reset lekki ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1100px 520px at 88% -12%, rgba(42, 87, 230, .10), transparent 60%),
    radial-gradient(900px 480px at -6% 4%, rgba(15, 26, 43, .05), transparent 55%);
  background-attachment: fixed;
}

img, svg { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); font-weight: 750; letter-spacing: -.01em; margin: 0 0 .5em; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--cobalt-700);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 650;
  transition: top var(--tr);
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, .5rem + 2.4vw, 2.25rem); }

.page { display: block; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  padding-block: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
}
@media (min-width: 1000px) {
  .shell.has-aside { grid-template-columns: minmax(0, 1fr) 322px; align-items: start; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--cobalt-600), var(--cobalt-700));
  display: grid; place-items: center;
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 800; font-size: 1.24rem; color: var(--ink);
  letter-spacing: -.02em;
}
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Nav */
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center;
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 640; font-size: .96rem;
  transition: background var(--tr), color var(--tr);
}
.nav-list a:hover { background: var(--cobalt-050); color: var(--cobalt-700); text-decoration: none; }
.nav-list a[aria-current="page"] { background: var(--cobalt); color: #fff; }
.nav-list a[aria-current="page"]:hover { background: var(--cobalt-700); }

/* Hamburger — pure <details>/<summary>, działa bez JS */
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle > summary {
  list-style: none; cursor: pointer;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface);
  display: grid; place-items: center;
  transition: background var(--tr), border-color var(--tr);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary:hover { background: var(--surface-2); border-color: var(--cobalt); }
.burger { position: relative; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--tr), opacity var(--tr); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav-toggle[open] > summary .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[open] > summary .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[open] > summary .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  animation: dropIn var(--tr);
}
.mobile-nav .wrap { padding-block: .6rem 1rem; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block; padding: .85rem 1rem; border-radius: 12px;
  color: var(--ink-2); font-weight: 640; font-size: 1.05rem;
}
.mobile-nav a:hover { background: var(--cobalt-050); color: var(--cobalt-700); text-decoration: none; }
.mobile-nav a[aria-current="page"] { background: var(--cobalt); color: #fff; }

@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 819px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(155deg, #14224a 0%, #16337f 46%, #1b41c4 100%);
  color: #eaf0ff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(700px 340px at 82% 14%, rgba(90, 130, 255, .35), transparent 62%),
    linear-gradient(transparent 96%, rgba(255,255,255,.07) 96%),
    linear-gradient(90deg, transparent 96%, rgba(255,255,255,.07) 96%);
  background-size: auto, 34px 34px, 34px 34px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.75rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #b9c8ff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .8rem; border-radius: var(--r-pill);
}
.hero h1 {
  color: #fff; margin: .9rem 0 .6rem;
  font-size: clamp(2.1rem, 1.5rem + 3.4vw, 3.5rem);
  font-weight: 820; letter-spacing: -.025em; line-height: 1.05;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: #cdd8ff; max-width: 46ch; margin: 0 0 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr), border-color var(--tr);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--cobalt-700); box-shadow: var(--sh-2); }
.btn-primary:hover { box-shadow: var(--sh-3); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: var(--sh-2); }
.btn-cobalt:hover { background: var(--cobalt-700); box-shadow: var(--sh-3); }
.btn svg { width: 18px; height: 18px; }

/* Hero device illustration card */
.hero-figure {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl);
  padding: 1.4rem;
  box-shadow: var(--sh-3);
}
.hero-figure .device-art { border-radius: var(--r-lg); }
.hero-figure figcaption {
  margin-top: .9rem; font-size: .85rem; color: #c3d0ff;
  display: flex; align-items: center; gap: .5rem;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hero-stat {
  flex: 1 1 auto; min-width: 92px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); padding: .7rem .85rem;
}
.hero-stat b { display: block; font-size: 1.2rem; color: #fff; letter-spacing: -.01em; }
.hero-stat span { font-size: .74rem; color: #b9c8ff; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   DISCLAIMER / notice band
   ============================================================ */
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  color: var(--ink-2);
  font-size: .95rem;
  display: flex; gap: .75rem; align-items: flex-start;
  box-shadow: var(--sh-1);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--cobalt); margin-top: 1px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section { padding-block: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.section-alt { background: var(--surface-3); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.25rem, 1rem + 1.4vw, 2rem); }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: .55rem;
}
.section-head .kicker::before { content: ""; width: 26px; height: 2px; background: var(--cobalt); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem); margin: 0 0 .3rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ============================================================
   FEATURED SERVICES (Wyróżnione usługi)
   ============================================================ */
.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.service-card {
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem;
  box-shadow: var(--sh-1);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--cobalt-100); text-decoration: none; }
.service-ico {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--cobalt-050); color: var(--cobalt-700);
  display: grid; place-items: center; border: 1px solid var(--cobalt-100);
}
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.service-card .go { margin-top: auto; color: var(--cobalt); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }

/* ============================================================
   DEVICE CARDS
   ============================================================ */
.cards-grid {
  display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.device-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.device-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--cobalt-100); }

.device-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #eef2fb, #dfe7f6);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.device-media .device-art { width: 74%; height: auto; filter: drop-shadow(0 8px 18px rgba(20,44,126,.16)); }
.device-media .img-tag {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .68rem; font-weight: 650; letter-spacing: .03em;
  color: var(--muted); background: rgba(255,255,255,.82);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .18rem .6rem;
}
.device-body { padding: 1.15rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.device-body h3 { margin: 0; font-size: 1.18rem; }
.device-body h3 a { color: var(--ink); }
.device-body h3 a:hover { color: var(--cobalt); text-decoration: none; }
.device-specs { color: var(--ink-2); font-size: .92rem; margin: 0; line-height: 1.6; }
.device-foot { margin-top: auto; padding-top: .85rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--surface-3); }
.device-foot .cat-chip {
  font-size: .72rem; font-weight: 700; color: var(--cobalt-700);
  background: var(--cobalt-050); border: 1px solid var(--cobalt-100);
  padding: .22rem .6rem; border-radius: var(--r-pill);
}
.device-foot .more { color: var(--cobalt); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.device-foot .more:hover { gap: .5rem; text-decoration: none; }

/* ============================================================
   SIDEBAR / ASIDE
   ============================================================ */
.aside { display: flex; flex-direction: column; gap: 1.25rem; }
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--sh-1);
}
.widget-title {
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.widget-title::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--cobalt); transform: rotate(45deg); }

.search-form { display: flex; gap: .5rem; }
.search-form input {
  flex: 1; min-width: 0;
  padding: .65rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: .95rem; background: var(--surface-2); color: var(--ink);
}
.search-form input:focus-visible { border-color: var(--cobalt); outline-offset: 0; }
.search-form button {
  flex: none; width: 44px; border: 0; border-radius: var(--r-sm);
  background: var(--cobalt); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background var(--tr);
}
.search-form button:hover { background: var(--cobalt-700); }
.search-form button svg { width: 18px; height: 18px; }

.list-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-links li + li { border-top: 1px solid var(--surface-3); }
.list-links a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 0; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  transition: color var(--tr), padding var(--tr);
}
.list-links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; flex: none;
  background: var(--line-2); transition: background var(--tr), transform var(--tr);
}
.list-links a:hover { color: var(--cobalt); text-decoration: none; padding-left: .3rem; }
.list-links a:hover::before { background: var(--cobalt); transform: rotate(45deg); }

.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem .85rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 650; font-size: .95rem;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.cat-list a:hover { background: var(--cobalt-050); border-color: var(--cobalt-100); color: var(--cobalt-700); text-decoration: none; }
.cat-list .count {
  font-size: .78rem; font-weight: 700; color: var(--cobalt-700);
  background: var(--cobalt-050); border: 1px solid var(--cobalt-100);
  padding: .1rem .5rem; border-radius: var(--r-pill);
}

/* ============================================================
   ARTICLE (wpis / podstrona)
   ============================================================ */
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "›"; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 650; }

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 1rem + 2vw, 2.75rem);
  box-shadow: var(--sh-2);
}
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.article-head h1 {
  font-size: clamp(1.8rem, 1.4rem + 2.4vw, 2.75rem);
  margin: .3rem 0 .7rem; letter-spacing: -.02em;
}
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; color: var(--muted); font-size: .88rem; align-items: center; }
.article-meta .meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.article-meta svg { width: 15px; height: 15px; color: var(--cobalt); }
.article-meta a { color: var(--cobalt-700); font-weight: 650; }
.article-cat-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700;
  color: var(--cobalt-700); background: var(--cobalt-050);
  border: 1px solid var(--cobalt-100); padding: .28rem .7rem; border-radius: var(--r-pill);
}

.prose { color: var(--ink-2); font-size: 1.04rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--cobalt); font-weight: 620; text-decoration: underline; text-decoration-color: var(--cobalt-100); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--cobalt); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: .35rem 0; }
.prose ul li::marker { color: var(--cobalt); }
.prose ol li::marker { color: var(--cobalt-700); font-weight: 700; }
.prose u { text-decoration-color: var(--cobalt); text-underline-offset: 3px; }

/* Spec figure inside article */
.spec-figure {
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #eef2fb, #dfe7f6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem; display: grid; place-items: center;
}
.spec-figure .device-art { width: min(320px, 70%); filter: drop-shadow(0 10px 22px rgba(20,44,126,.18)); }
.spec-figure figcaption { margin-top: .9rem; font-size: .82rem; color: var(--muted); }

/* Spec highlight table */
.spec-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.25rem 1.4rem; margin-top: 1.25rem;
}
.spec-card h2 { font-size: 1.1rem; margin: 0 0 .9rem; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.spec-list li {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line-2);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--cobalt); transform: rotate(45deg); flex: none; margin-top: .55em; }
.spec-list span { color: var(--ink-2); }

/* Related / footer within article */
.article-share { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tag { font-size: .82rem; color: var(--muted); }

/* Callout box for steps */
.step-block {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.25rem 1.4rem; margin-top: 1.25rem;
}
.step-block > h3 { margin-top: 0; display: flex; align-items: center; gap: .55rem; }
.step-block > h3 .pill {
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--cobalt); color: #fff; padding: .2rem .6rem; border-radius: var(--r-pill); font-weight: 700;
}
.format-note {
  background: var(--surface); border-left: 3px solid var(--cobalt-100);
  padding: .5rem 0 .5rem 1rem; color: var(--muted); font-size: .95rem;
}

/* ============================================================
   CATEGORY page
   ============================================================ */
.cat-hero {
  background: linear-gradient(150deg, #16337f, #1b41c4);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1.3rem + 2.4vw, 3rem);
  box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.cat-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.cat-hero .kicker { color: #b9c8ff; }
.cat-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.4rem + 2.4vw, 2.75rem); margin: .4rem 0 .5rem; }
.cat-hero p { color: #cdd8ff; margin: 0; max-width: 52ch; }
.cat-hero .cat-count {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .45rem .9rem; border-radius: var(--r-pill); font-weight: 700; font-size: .9rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-weight: 700; font-size: .95rem;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.pagination a:hover { background: var(--cobalt-050); border-color: var(--cobalt-100); color: var(--cobalt-700); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f1a2b; color: #b9c4d6;
  border-top: 4px solid var(--cobalt);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.footer-grid {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8595ad; }
.footer-about { margin-top: 1rem; font-size: .93rem; color: #9fadc4; max-width: 42ch; }
.footer-about a { color: #a9bcff; font-weight: 650; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #b9c4d6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between;
  font-size: .86rem; color: #8595ad;
}
.footer-bottom .trademark { max-width: 70ch; }
.footer-bottom a { color: #a9bcff; }

/* Utility */
.stack-sm > * + * { margin-top: .75rem; }
.mt-2 { margin-top: 1.25rem; }
