@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =====================================================================
   sieci-bezprzewodowe.pl — Design System
   Lekki, techniczny, SEO-friendly. Pure CSS, wdrażalny w theme WordPress.
   ===================================================================== */

/* ---- Tokens --------------------------------------------------------- */
:root {
  /* Akcent — domyślnie niebieski; tweak może podmienić */
  --accent:        #2563eb;
  --accent-700:    #1d4ed8;
  --accent-50:     #eff6ff;
  --accent-100:    #dbeafe;
  --navy:          #0f2a5e;

  /* Neutrale (slate) */
  --ink:           #0f172a;
  --ink-2:         #334155;
  --muted:         #64748b;
  --muted-2:       #94a3b8;
  --line:          #e2e8f0;
  --line-2:        #eef2f6;
  --surface:       #ffffff;
  --surface-1:     #f8fafc;
  --surface-2:     #f1f5f9;

  /* Stany */
  --ok:            #15803d;
  --ok-bg:         #f0fdf4;
  --warn:          #b45309;
  --warn-bg:       #fffbeb;
  --info:          var(--accent);
  --info-bg:       var(--accent-50);

  /* Operatorzy (tylko do data-viz / chipów) */
  --op-orange:     #ff7900;
  --op-play:       #6c2c91;
  --op-tmobile:    #e20074;
  --op-plus:       #00a651;

  /* Typografia */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Skala typo */
  --fs-display: 3rem;     /* 48 */
  --fs-h1:      2.25rem;  /* 36 */
  --fs-h2:      1.625rem; /* 26 */
  --fs-h3:      1.25rem;  /* 20 */
  --fs-h4:      1.0625rem;/* 17 */
  --fs-body:    1rem;     /* 16 */
  --fs-sm:      0.875rem; /* 14 */
  --fs-xs:      0.75rem;  /* 12 */

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Radius + cienie (lekkie) */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.04);
  --shadow-2: 0 2px 8px rgba(15,23,42,.06);

  --container: 1160px;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: 0; }
h1 { font-size: var(--fs-h1); letter-spacing: 0; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }
small { font-size: var(--fs-sm); }
code, .mono { font-family: var(--font-mono); }

/* ---- Layout --------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-16) 0; }
.section--tight { padding: var(--s-10) 0; }
.section--alt { background: var(--surface-1); border-block: 1px solid var(--line); }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-8); align-items: start; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0; text-transform: uppercase; color: var(--accent-700);
  margin: 0 0 var(--s-3);
}
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.sec-head { margin-bottom: var(--s-8); }
.sec-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.sec-head p { color: var(--muted); max-width: 64ch; margin: var(--s-2) 0 0; }

/* ---- Top bar / nav -------------------------------------------------- */
.topbar { background: var(--navy); color: #cdd9f0; font-size: var(--fs-xs); font-family: var(--font-mono); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: var(--s-4); }
.topbar a { color: #e6edfb; }
.topbar .tb-links { display: flex; gap: var(--s-5); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand > span { white-space: nowrap; }
.brand b { font-size: 1.0625rem; letter-spacing: 0; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: var(--s-2); margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a.is-active { color: var(--accent-700); background: var(--accent-50); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .12s, border-color .12s, color .12s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-700); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-1); border-color: var(--muted-2); }
.btn-ghost { background: transparent; color: var(--accent-700); }
.btn-ghost:hover { background: var(--accent-50); }
.btn-lg { padding: 13px 22px; font-size: var(--fs-body); }
.btn-sm { padding: 6px 12px; font-size: var(--fs-xs); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Cards ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-1); }
.card--pad-sm { padding: var(--s-5); }
.card-link { transition: border-color .12s, box-shadow .12s, transform .12s; display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: var(--s-2); }
.card .card-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

/* Silo / wejścia */
.silo { display: flex; flex-direction: column; gap: var(--s-3); }
.silo .ico { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-50); display: flex; align-items: center; justify-content: center; }
.silo .ico svg { width: 22px; height: 22px; stroke: var(--accent-700); }
.silo h3 { font-size: var(--fs-h4); margin: 0; }
.silo p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.silo .more { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-700); margin-top: auto; }

/* ---- Stat cards ----------------------------------------------------- */
.stats { display: grid; gap: var(--s-4); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5); display: flex; flex-direction: column; gap: 2px;
}
.stat .k { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: 0; }
.stat .d { font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stat .d.up { color: var(--ok); }
.stat .d.down { color: var(--warn); }
.stat .d.flat { color: var(--muted); }

/* ---- Tags / chips --------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tag-accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.tag--op { background: #fff; }
.tag--op.orange  { color: var(--op-orange); border-color: #ffd8b0; }
.tag--op.play    { color: var(--op-play);   border-color: #e0c6ee; }
.tag--op.tmobile { color: var(--op-tmobile);border-color: #f7c1de; }
.tag--op.plus    { color: var(--op-plus);   border-color: #b3e6cc; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---- Breadcrumbs ---------------------------------------------------- */
.crumbs { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: var(--s-5) 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-700); }
.crumbs .sep { color: var(--muted-2); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ---- Alerts --------------------------------------------------------- */
.alert { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid; font-size: var(--fs-sm); }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-info { background: var(--info-bg); border-color: var(--accent-100); color: var(--navy); }
.alert-info svg { stroke: var(--accent-700); }
.alert-warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.alert-warn svg { stroke: var(--warn); }

/* ---- Update badge + source note ------------------------------------ */
.updated { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.updated .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); flex: none; }
.source-note { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.source-note svg { width: 16px; height: 16px; flex: none; stroke: var(--muted); margin-top: 1px; }
.source-note b { color: var(--ink-2); font-weight: 600; }

/* ---- Tables --------------------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.table-tools { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools .filters { display: flex; gap: var(--s-2); flex-wrap: wrap; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th, table.data td { text-align: left; padding: 11px var(--s-5); border-bottom: 1px solid var(--line-2); }
table.data thead th {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0; text-transform: uppercase;
  color: var(--muted); background: var(--surface-1); font-weight: 500; white-space: nowrap; position: relative;
}
table.data th.sortable { cursor: pointer; user-select: none; padding-right: 26px; }
table.data th.sortable::after { content: "↕"; position: absolute; right: 10px; opacity: .4; }
table.data th.sort-asc::after { content: "↑"; opacity: 1; color: var(--accent-700); }
table.data th.sort-desc::after { content: "↓"; opacity: 1; color: var(--accent-700); }
table.data tbody tr:hover { background: var(--surface-1); }
table.data td.num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
table.data .row-link { font-weight: 600; color: var(--accent-700); }
.table-foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; gap: var(--s-3); }

/* ---- Map component -------------------------------------------------- */
.map { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map-bar { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.map-bar .filters { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.map-stage { position: relative; aspect-ratio: 16 / 9; background:
    linear-gradient(0deg, rgba(37,99,235,.04), rgba(37,99,235,.04)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, var(--line-2) 31px, var(--line-2) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, var(--line-2) 31px, var(--line-2) 32px),
    var(--surface-1);
}
.map-stage.is-lazy { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; }
.map-lazy-btn { text-align: center; }
.map-lazy-btn p { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-3) 0 0; }
.marker { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-2); cursor: pointer; }
.marker.orange  { background: var(--op-orange); }
.marker.play    { background: var(--op-play); }
.marker.tmobile { background: var(--op-tmobile); }
.marker.plus    { background: var(--op-plus); }
.marker.cluster { width: 34px; height: 34px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.marker:hover { z-index: 5; transform: translate(-50%, -50%) scale(1.15); }
.map-tooltip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: #fff; border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); width: 210px; box-shadow: var(--shadow-2); z-index: 10; }
.map-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--ink); }
.map-tooltip h5 { margin: 0 0 4px; font-size: var(--fs-sm); color: #fff; }
.map-tooltip .mono { color: #cbd5e1; }
.map-tooltip a { color: #93c5fd; font-weight: 600; display: inline-block; margin-top: var(--s-2); }
.map-foot { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); flex-wrap: wrap; }
.map-legend { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; }

/* ---- FAQ ------------------------------------------------------------ */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-5); font-weight: 600; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--accent-700); transition: transform .15s; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); font-size: var(--fs-sm); }
.faq .faq-body p { margin: 0; }

/* ---- Internal links ------------------------------------------------- */
.link-block { }
.link-block h3 { font-size: var(--fs-h4); margin-bottom: var(--s-4); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.link-grid a { background: var(--surface); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); color: var(--ink-2); font-weight: 500; }
.link-grid a:hover { background: var(--surface-1); color: var(--accent-700); text-decoration: none; }
.link-grid a .arr { color: var(--muted-2); }
.link-grid a:hover .arr { color: var(--accent-700); }
.link-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-8); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--line-2); }
.link-list li:last-child { border: 0; }
.link-list a { display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0; color: var(--ink-2); font-size: var(--fs-sm); }
.link-list a .n { font-family: var(--font-mono); color: var(--muted); }
.link-list a:hover { color: var(--accent-700); text-decoration: none; }

/* ---- TOC (article) -------------------------------------------------- */
.toc { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); position: sticky; top: 84px; }
.toc h4 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-3); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 5px 0 5px 26px; font-size: var(--fs-sm); color: var(--ink-2); position: relative; }
.toc a::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted-2); }
.toc a:hover { color: var(--accent-700); text-decoration: none; }

/* ---- Search --------------------------------------------------------- */
.searchbox { display: flex; gap: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 6px 6px var(--s-4); box-shadow: var(--shadow-1); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.searchbox svg { width: 20px; height: 20px; stroke: var(--muted); align-self: center; flex: none; }
.searchbox input { flex: 1; border: 0; outline: 0; font: inherit; font-size: var(--fs-body); background: transparent; color: var(--ink); min-width: 0; }
.searchbox input::placeholder { color: var(--muted-2); }

/* ---- Hero ----------------------------------------------------------- */
.hero { padding: var(--s-12) 0 var(--s-10); border-bottom: 1px solid var(--line); background: var(--surface); }
.hero h1 { font-size: var(--fs-display); max-width: 17ch; }
.hero .lead { margin-bottom: var(--s-6); }
.hero-search { max-width: 560px; }
.hero .quick { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); align-items: center; }
.hero .quick a { font-family: var(--font-mono); font-size: var(--fs-xs); }

/* ---- Pills row (silo quick entries) --------------------------------- */
.silobar { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.silobar a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); background: var(--surface); }
.silobar a:hover { border-color: var(--accent); color: var(--accent-700); text-decoration: none; background: var(--accent-50); }
.silobar svg { width: 15px; height: 15px; stroke: currentColor; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b6c4e0; font-size: var(--fs-sm); margin-top: var(--s-20); }
.site-footer .container { padding-top: var(--s-12); padding-bottom: var(--s-8); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-8); }
.site-footer h5 { color: #fff; font-size: var(--fs-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0; margin: 0 0 var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b6c4e0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand b { color: #fff; }
.site-footer .brand .tld { color: #8aa0c8; }
.foot-about { color: #8aa0c8; font-size: var(--fs-sm); max-width: 34ch; margin: var(--s-4) 0 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-10); padding-top: var(--s-6); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: #8aa0c8; font-size: var(--fs-xs); font-family: var(--font-mono); }

/* ---- Page header band (subpages) ------------------------------------ */
.page-head { background: var(--surface-1); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: var(--s-4); padding-bottom: var(--s-8); }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .meta-row { display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center; margin-top: var(--s-5); }

/* ---- Utility -------------------------------------------------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-mono { font-family: var(--font-mono); }
.divide-top { border-top: 1px solid var(--line); padding-top: var(--s-6); margin-top: var(--s-6); }
.hide-mobile { }
.only-mobile { display: none; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  :root { --fs-display: 2.25rem; --fs-h1: 1.875rem; --fs-h2: 1.4rem; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: var(--s-3); gap: 2px; box-shadow: var(--shadow-2); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s-4); }
  .topbar .tb-links { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Tweaks bridge: accent override applied via [data-accent] on <html> */
html[data-accent="navy"]  { --accent:#1e3a8a; --accent-700:#0f2a5e; --accent-50:#eef2fb; --accent-100:#dbe4f5; }
html[data-accent="teal"]  { --accent:#0d9488; --accent-700:#0f766e; --accent-50:#f0fdfa; --accent-100:#ccfbf1; }
html[data-accent="green"] { --accent:#15803d; --accent-700:#166534; --accent-50:#f0fdf4; --accent-100:#dcfce7; }
html[data-accent="cyan"]  { --accent:#0891b2; --accent-700:#0e7490; --accent-50:#ecfeff; --accent-100:#cffafe; }

/* WordPress integration ---------------------------------------------- */
html[data-accent=""] { --accent: #2563eb; }
body.admin-bar .site-header { top: 32px; }
.site-main { min-height: 50vh; }
.site-header .current-menu-item > a { color: var(--accent-700); background: var(--accent-50); }
.nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.searchbox button { flex: none; }
.card-link[href="#"] { cursor: default; }
.card-link[href="#"]:hover { border-color: var(--line); box-shadow: var(--shadow-1); transform: none; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
