/* =====================================================================
   g1tech.in design system
   Mobile-first. Breakpoints: 768 (tablet), 1024 (desktop), 1440 (wide).
   Theme: [data-theme] on <html> (set before paint by an inline script);
   without JS, prefers-color-scheme decides.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --color-primary: #2251d1;
  --color-primary-hover: #1a40a8;
  --color-primary-soft: #e8eefc;
  --color-secondary: #0f9f6e;
  --color-secondary-soft: #e3f6ef;
  --color-accent: #e8590c;
  --color-background: #f6f7f9;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f6;
  --color-text: #111827;
  --color-text-soft: #374151;
  --color-muted: #5b6474;
  --color-border: #e3e6eb;
  --color-border-strong: #cdd2da;
  --color-danger: #c62828;
  --color-danger-soft: #fdecec;
  --color-warning: #a15c00;
  --color-warning-soft: #fff4e0;
  --color-success: #0f7a55;
  --color-success-soft: #e3f6ef;
  --color-code-bg: #0f172a;
  --color-code-text: #e2e8f0;
  --color-focus: #2251d1;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Mangal", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-hover: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .14);

  --container-width: 1200px;
  --container-narrow: 760px;
  --header-height: 60px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-primary: #7aa2ff;
  --color-primary-hover: #a0bdff;
  --color-primary-soft: #1a2747;
  --color-secondary: #3ccf9b;
  --color-secondary-soft: #12322a;
  --color-accent: #ff8a4c;
  --color-background: #0b1020;
  --color-surface: #121a2e;
  --color-surface-2: #18213a;
  --color-text: #e8ecf4;
  --color-text-soft: #c8cfdc;
  --color-muted: #9aa4b6;
  --color-border: #222c45;
  --color-border-strong: #33405f;
  --color-danger: #ff7b7b;
  --color-danger-soft: #3a1a1f;
  --color-warning: #ffc266;
  --color-warning-soft: #3a2c12;
  --color-success: #4fd6a5;
  --color-success-soft: #12322a;
  --color-code-bg: #070b16;
  --color-focus: #a0bdff;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, .35);
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-primary: #7aa2ff; --color-primary-hover: #a0bdff; --color-primary-soft: #1a2747;
    --color-secondary: #3ccf9b; --color-secondary-soft: #12322a; --color-accent: #ff8a4c;
    --color-background: #0b1020; --color-surface: #121a2e; --color-surface-2: #18213a;
    --color-text: #e8ecf4; --color-text-soft: #c8cfdc; --color-muted: #9aa4b6;
    --color-border: #222c45; --color-border-strong: #33405f;
    --color-danger: #ff7b7b; --color-danger-soft: #3a1a1f; --color-warning: #ffc266; --color-warning-soft: #3a2c12;
    --color-success: #4fd6a5; --color-success-soft: #12322a; --color-code-bg: #070b16; --color-focus: #a0bdff;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-primary-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-3); letter-spacing: -.01em; color: var(--color-text); }
h1 { font-size: var(--text-3xl); font-weight: 750; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 650; }
p { margin: 0 0 var(--space-4); }
small { font-size: var(--text-sm); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--color-primary-soft); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--space-4); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-6); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.section-head h2 { font-size: var(--text-xl); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.section-head .more { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.grid { display: grid; gap: var(--space-4); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.layout-sidebar { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }
.stack > * + * { margin-top: var(--space-4); }
.muted { color: var(--color-muted); }
.text-sm { font-size: var(--text-sm); }
.flex { display: flex; align-items: center; gap: var(--space-2); }
.wrap { flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-surface) 92%, transparent); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: var(--space-3); height: var(--header-height); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--color-text); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { color: var(--color-text); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800; }
.logo span.tld { color: var(--color-primary); }
.header-search { flex: 1; max-width: 460px; margin-inline: auto; display: none; }
@media (min-width: 768px) { .header-search { display: block; } }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--color-text-soft); cursor: pointer; text-decoration: none; font: inherit; }
.icon-btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.lang-switch { font-size: var(--text-sm); font-weight: 600; width: auto; padding-inline: 10px; gap: 6px; display: inline-flex; align-items: center; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: inline-grid; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.main-nav { border-top: 1px solid var(--color-border); display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--color-text-soft); text-decoration: none; font-size: var(--text-sm); font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
@media (min-width: 1024px) { .main-nav { display: block; } }

/* Mobile drawer */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgba(5, 10, 25, .45); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--color-surface); box-shadow: var(--shadow-pop); padding: var(--space-4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-menu .panel-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: var(--radius); color: var(--color-text); text-decoration: none; font-weight: 550; }
.mobile-menu nav a:hover { background: var(--color-surface-2); }
body.menu-open { overflow: hidden; }

/* ---------- Search ---------- */
.search { position: relative; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0 14px; height: 42px; transition: border-color .15s, background .15s; }
.search-field:focus-within { border-color: var(--color-primary); background: var(--color-surface); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--color-text); outline: none; height: 100%; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .icon { color: var(--color-muted); }
.search-lg .search-field { height: 54px; padding: 0 18px; font-size: var(--text-lg); box-shadow: var(--shadow-card); background: var(--color-surface); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); max-height: min(70vh, 480px); overflow-y: auto; padding: 6px; display: none; }
.search-results.open { display: block; }
.search-results .group-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); padding: 8px 10px 4px; font-weight: 650; }
.search-results a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--radius); color: var(--color-text); text-decoration: none; }
.search-results a .sub { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--color-primary-soft); }
.search-results .state { padding: 14px; color: var(--color-muted); font-size: var(--text-sm); }
.search-results .all { justify-content: center; font-weight: 600; color: var(--color-primary); font-size: var(--text-sm); border-top: 1px solid var(--color-border); margin-top: 4px; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font: inherit; font-weight: 600; font-size: var(--text-sm); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b1020; }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: #0b1020; }
.btn-success { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.btn-success:hover { filter: brightness(.95); color: #fff; }
.btn-danger { color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 40%, transparent); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--text-xs); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > label, .label { font-weight: 600; font-size: var(--text-sm); color: var(--color-text-soft); }
.hint { font-size: var(--text-xs); color: var(--color-muted); }
.input, .select, .textarea, input[type="text"].input, input[type="number"].input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--color-border-strong);
  background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 1rem;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, 1fr); } .field-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--color-primary); }
input[type="range"] { width: 100%; accent-color: var(--color-primary); }
.error-text { color: var(--color-danger); font-size: var(--text-xs); }

/* ---------- Cards ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-body { padding: var(--space-4); }
@media (min-width: 768px) { .card-body { padding: var(--space-5); } }
.card-link { position: relative; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-link:hover { box-shadow: var(--shadow-hover); border-color: var(--color-border-strong); }
.card-link a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title { font-size: var(--text-lg); font-weight: 650; margin: 0 0 6px; line-height: 1.35; }
.card-title a { color: var(--color-text); text-decoration: none; }
.card-title a:hover { color: var(--color-primary); }
.card-text { color: var(--color-muted); font-size: var(--text-sm); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tool-card { display: flex; gap: 14px; padding: var(--space-4); align-items: flex-start; height: 100%; }
.tool-card .tool-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); flex: none; }
.tool-card .card-title { font-size: var(--text-base); }
.tool-card .badge { margin-bottom: 6px; }

.article-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.article-card .thumb { aspect-ratio: 16 / 9; background: var(--color-surface-2); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--color-muted); background: linear-gradient(135deg, var(--color-primary-soft), var(--color-secondary-soft)); }
.article-card .card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card .card-title { font-size: var(--text-base); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--text-xs); color: var(--color-muted); align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-card .meta { margin-top: auto; }

.list-card { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.list-card:last-child { border-bottom: 0; }
.list-card .num { font-weight: 800; font-size: 1.4rem; color: var(--color-border-strong); min-width: 28px; line-height: 1.2; }
.list-card h3 { font-size: var(--text-base); margin: 0 0 4px; }
.list-card h3 a { color: var(--color-text); text-decoration: none; }
.list-card h3 a:hover { color: var(--color-primary); }

.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--color-text); }
.cat-card .tool-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--color-secondary-soft); color: var(--color-secondary); }
.cat-card strong { display: block; font-size: var(--text-sm); }
.cat-card small { color: var(--color-muted); font-size: var(--text-xs); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-primary); font-size: var(--text-xs); font-weight: 650; text-decoration: none; width: fit-content; }
.badge-green { background: var(--color-secondary-soft); color: var(--color-secondary); }
.badge-gray { background: var(--color-surface-2); color: var(--color-muted); }
.badge-warn { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-red { background: var(--color-danger-soft); color: var(--color-danger); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-7) 0 var(--space-6); text-align: center; background:
  radial-gradient(1200px 400px at 50% -100px, var(--color-primary-soft), transparent 70%); }
.hero h1 { max-width: 800px; margin: 0 auto var(--space-3); }
.hero .lead { max-width: 640px; margin: 0 auto var(--space-5); color: var(--color-muted); font-size: var(--text-lg); }
.hero .search { max-width: 620px; margin: 0 auto; text-align: left; }
.hero .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-4); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-soft); font-size: var(--text-sm); text-decoration: none; }
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.page-head { padding: var(--space-6) 0 var(--space-4); }
.page-head .lead { color: var(--color-muted); font-size: var(--text-lg); max-width: 760px; }

/* ---------- Breadcrumbs, pagination, alerts ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 var(--space-3); font-size: var(--text-xs); color: var(--color-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--color-border-strong); }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs [aria-current] { color: var(--color-text-soft); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--space-6); }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; font-size: var(--text-sm); font-weight: 600; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination [aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .gap { border: 0; background: transparent; }

.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-size: var(--text-sm); margin-bottom: var(--space-4); display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--color-primary-soft); border-color: color-mix(in srgb, var(--color-primary) 25%, transparent); color: var(--color-text); }
.alert-success { background: var(--color-success-soft); border-color: color-mix(in srgb, var(--color-success) 30%, transparent); color: var(--color-text); }
.alert-warning { background: var(--color-warning-soft); border-color: color-mix(in srgb, var(--color-warning) 30%, transparent); color: var(--color-text); }
.alert-error { background: var(--color-danger-soft); border-color: color-mix(in srgb, var(--color-danger) 30%, transparent); color: var(--color-text); }
.alert .icon { margin-top: 2px; }

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); color: var(--color-muted); }
.empty-state .icon { margin: 0 auto var(--space-3); width: 40px; height: 40px; }

/* ---------- Article ---------- */
.article-header { padding-top: var(--space-5); }
.article-header h1 { margin-bottom: var(--space-3); }
.article-header .intro { font-size: var(--text-lg); color: var(--color-text-soft); }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: var(--space-3) 0; border-block: 1px solid var(--color-border); margin: var(--space-4) 0; font-size: var(--text-sm); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.featured-image { margin: 0 0 var(--space-5); border-radius: var(--radius-card); overflow: hidden; background: var(--color-surface-2); }
.featured-image img { width: 100%; height: auto; }
.featured-image figcaption { font-size: var(--text-xs); color: var(--color-muted); padding: 8px 4px 0; }

.answer-box { border-left: 4px solid var(--color-secondary); background: var(--color-secondary-soft); padding: var(--space-4); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-5); }
.answer-box h2 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: .05em; color: var(--color-secondary); margin-bottom: 6px; }
.answer-box p:last-child { margin: 0; }
.takeaways { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.takeaways h2 { font-size: var(--text-lg); }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li + li { margin-top: 6px; }

.toc { padding: var(--space-4); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: var(--space-3) 0 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc li.l3 { margin-left: 14px; list-style: circle; }
.toc a { color: var(--color-text-soft); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--color-primary); }
.sidebar-sticky { position: sticky; top: calc(var(--header-height) + 16px); }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--color-text-soft); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; } /* top margin comes from ".prose > * + *" */
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--color-text); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; color: var(--color-text); }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose ol > li::marker { font-weight: 700; color: var(--color-primary); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--color-border-strong); color: var(--color-muted); font-style: italic; }
.prose img { border-radius: var(--radius); height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: var(--text-sm); color: var(--color-muted); text-align: center; margin-top: 8px; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--color-surface-2); border: 1px solid var(--color-border); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--color-code-bg); color: var(--color-code-text); padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin: 2em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td, .table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.prose th, .table th { background: var(--color-surface-2); font-weight: 650; color: var(--color-text); white-space: nowrap; }
.prose tr:last-child td, .table tr:last-child td { border-bottom: 0; }
.embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.faq { margin-top: var(--space-6); }
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); margin-bottom: 10px; }
.faq summary { padding: 14px 16px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--color-muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 16px 14px; color: var(--color-text-soft); }
.faq .answer > :last-child { margin-bottom: 0; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: var(--space-6) 0; }
.share .label { margin-right: 4px; }
.author-box { display: flex; gap: var(--space-4); padding: var(--space-5); margin-top: var(--space-6); align-items: flex-start; }
.author-box h2 { font-size: var(--text-lg); margin-bottom: 4px; }
.editorial-note { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-5); padding: var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: var(--radius); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-5); }

/* ---------- Tools ---------- */
.tool-hero { padding: var(--space-5) 0 var(--space-4); }
.tool-hero h1 { margin-bottom: 8px; }
.tool-hero .lead { color: var(--color-muted); margin: 0; max-width: 760px; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-success); background: var(--color-success-soft); padding: 4px 10px; border-radius: var(--radius-pill); margin-top: var(--space-3); font-weight: 600; }
.tool-app { padding: var(--space-4); }
@media (min-width: 768px) { .tool-app { padding: var(--space-5); } }
.tool-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.dropzone { border: 2px dashed var(--color-border-strong); border-radius: var(--radius-card); padding: var(--space-6) var(--space-4); text-align: center; background: var(--color-surface-2); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--color-primary); background: var(--color-primary-soft); }
.dropzone .icon { margin: 0 auto 10px; width: 36px; height: 36px; color: var(--color-primary); }
.dropzone strong { display: block; margin-bottom: 4px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stage { position: relative; background: repeating-conic-gradient(var(--color-surface-2) 0 25%, var(--color-surface) 0 50%) 50% / 20px 20px; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; touch-action: none; user-select: none; }
.stage canvas { margin: 0 auto; cursor: grab; max-width: 100%; height: auto; }
.stage canvas:active { cursor: grabbing; }
.controls { display: grid; gap: var(--space-3); }
.control-group { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.control-group > legend, .control-group > .label { padding: 0 4px; font-weight: 650; font-size: var(--text-sm); }
.range-row { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; font-size: var(--text-sm); }
.range-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-muted); }
.seg { display: inline-flex; border: 1px solid var(--color-border-strong); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg button, .seg label { border: 0; background: var(--color-surface); padding: 8px 12px; font: inherit; font-size: var(--text-sm); cursor: pointer; color: var(--color-text-soft); }
.seg button + button, .seg label + label { border-left: 1px solid var(--color-border-strong); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--color-primary); color: #fff; }
.seg label input { position: absolute; opacity: 0; }
.seg label { position: relative; padding: 0; }
.seg label span { display: block; padding: 8px 12px; }
.result-panel { background: var(--color-surface-2); border-radius: var(--radius); padding: var(--space-4); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; }
.stat .v { font-size: 1.35rem; font-weight: 750; color: var(--color-text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .k { font-size: var(--text-xs); color: var(--color-muted); }
.stat-hero { text-align: center; padding: var(--space-5); }
.stat-hero .v { font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); }
.output-preview { display: grid; place-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3); min-height: 160px; }
.output-preview img { max-height: 320px; width: auto; box-shadow: var(--shadow-card); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: var(--font-mono); font-size: var(--text-sm); }
.thumb-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); } }
.thumb-item { overflow: hidden; }
.thumb-item .img { aspect-ratio: 16 / 9; background: var(--color-surface-2); display: grid; place-items: center; }
.thumb-item .img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.unavailable .img { color: var(--color-muted); font-size: var(--text-sm); }
.wa-preview { background: #e5ddd5; border-radius: var(--radius); padding: var(--space-4); min-height: 120px; }
:root[data-theme="dark"] .wa-preview { background: #0b141a; }
.wa-bubble { background: #dcf8c6; color: #111; padding: 8px 12px; border-radius: 8px 0 8px 8px; margin-left: auto; max-width: 85%; width: fit-content; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
:root[data-theme="dark"] .wa-bubble { background: #005c4b; color: #e9edef; }
.qr-box { display: grid; place-items: center; padding: var(--space-3); background: #fff; border-radius: var(--radius); width: fit-content; margin: 0 auto; }
.qr-box canvas { image-rendering: pixelated; }
.tool-content { padding-block: var(--space-6); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-8); background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-7) 0 var(--space-5); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--color-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid var(--color-border); margin-top: var(--space-6); padding-top: var(--space-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--color-muted); }
.social { display: flex; gap: 6px; margin-top: var(--space-3); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--color-text); color: var(--color-surface); padding: 10px 18px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Web stories index ---------- */
.story-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .story-grid { grid-template-columns: repeat(5, 1fr); } }
.story-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-card); overflow: hidden; background: var(--color-surface-2); display: block; color: #fff; text-decoration: none; box-shadow: var(--shadow-card); }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.story-card:hover img { transform: scale(1.03); }
.story-card .overlay { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.story-card .overlay strong { display: block; line-height: 1.3; font-size: var(--text-sm); }
.story-card:hover { color: #fff; }

@media print {
  .site-header, .site-footer, .share, .toc, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Brand refresh (reference design): gradient hero, colourful icon tiles,
   header CTA, dark footer. Appended so tokens above stay the source of truth.
   ===================================================================== */
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; border-radius: var(--radius-pill); min-height: 38px; padding: 0 16px; } }

.hero { position: relative; overflow: hidden; text-align: left; color: #fff; padding: var(--space-7) 0;
  background: radial-gradient(800px 380px at 85% 10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #1d4ed8 0%, #4f46e5 45%, #7c3aed 100%); }
.hero .container { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; margin: 0 0 var(--space-3); max-width: 640px; }
.hero .brand-line { font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; display: block; margin-bottom: 10px; }
.hero .lead { color: rgba(255,255,255,.88); margin: 0 0 var(--space-5); max-width: 560px; }
.hero .search { margin: 0; max-width: 560px; }
.hero .chips { justify-content: flex-start; }
.hero .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.hero .chip:hover { background: rgba(255,255,255,.24); color: #fff; border-color: #fff; }
.hero-art { display: none; }
@media (min-width: 1024px) { .hero-art { display: block; filter: drop-shadow(0 24px 40px rgba(15, 23, 80, .35)); } }
.hero .search-results { color: var(--color-text); }

.tool-icon.tile-0 { background: #e8eefc; color: #2251d1; } .tool-icon.tile-1 { background: #fff0e6; color: #e8590c; }
.tool-icon.tile-2 { background: #fff7db; color: #b7791f; } .tool-icon.tile-3 { background: #e3f6ef; color: #0f9f6e; }
.tool-icon.tile-4 { background: #f1e8ff; color: #7c3aed; } .tool-icon.tile-5 { background: #ffe8ef; color: #db2777; }
:root[data-theme="dark"] .tool-icon.tile-0 { background: #1a2747; color: #7aa2ff; } :root[data-theme="dark"] .tool-icon.tile-1 { background: #3a2316; color: #ff9a5c; }
:root[data-theme="dark"] .tool-icon.tile-2 { background: #3a3014; color: #f2c14e; } :root[data-theme="dark"] .tool-icon.tile-3 { background: #12322a; color: #3ccf9b; }
:root[data-theme="dark"] .tool-icon.tile-4 { background: #2a1d47; color: #b794ff; } :root[data-theme="dark"] .tool-icon.tile-5 { background: #3d1a28; color: #ff7aa8; }
.tool-card .tool-icon { width: 52px; height: 52px; border-radius: 14px; }
.tool-card { transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-2px); }

.site-footer { background: #0f1b3d; color: #c9d3ee; border-top: 0; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer h2 { color: #8ea0d4; }
.site-footer a { color: #c9d3ee; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #9aa8cf; }
.site-footer .icon-btn { color: #c9d3ee; }
.site-footer .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); color: #8ea0d4; }
.follow-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: var(--space-4) var(--space-5); margin-top: var(--space-6);
  background: linear-gradient(120deg, #075e54, #128c7e); color: #fff; border-radius: var(--radius-card); }
.follow-cta p { margin: 0; font-weight: 600; }
.follow-cta .btn { background: #fff; color: #075e54; border-color: #fff; }

.ad-slot { margin: var(--space-5) auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: 11px; color: var(--color-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 767px) { .ad-desktop-only { display: none; } }
@media (min-width: 768px) { .ad-mobile-only { display: none; } }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 560px; margin: 0 auto; background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: var(--text-sm); }
.consent p { margin: 0; flex: 1 1 260px; }

/* Accessibility fixes from Lighthouse: contrast on dark surfaces, 24px+ touch targets for sliders. */
.site-footer .logo .tld, .admin-side .logo .tld { color: #9db8ff; }
input[type="range"] { min-height: 32px; margin: 2px 0; }
.range-row { padding: 2px 0; }

/* ---------- Tool family components (text/dev/calculators/image/pdf/social) ---------- */
.io-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .io-grid { grid-template-columns: 1fr 1fr; } .io-grid.single { grid-template-columns: 1fr; } }
.code-area { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; tab-size: 2; }
textarea.code-area { min-height: 220px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.io-options { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 12px 14px; margin: 4px 0 12px; background: var(--color-surface-2); border-radius: var(--radius); font-size: var(--text-sm); }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-soft); }
.inline-field .select, .inline-field .input { width: auto; min-height: 36px; padding: 6px 10px; }
.io-actions { margin: 12px 0; }
.io-h { font-size: var(--text-base); margin: var(--space-4) 0 var(--space-2); }
.stat-main { grid-column: 1 / -1; background: var(--color-primary-soft); border-color: transparent; }
.stat-main .v { font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); color: var(--color-primary); }
.calc .field-row { margin-bottom: 4px; }
.pct-calc .pct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-weight: 550; }
.pct-calc .pct-row .input { width: 120px; min-height: 38px; }
.pct-calc output { font-weight: 800; color: var(--color-primary); font-size: 1.1rem; margin-left: auto; }
.split-bar { display: flex; height: 30px; border-radius: var(--radius-pill); overflow: hidden; margin-top: 12px; font-size: 12px; font-weight: 700; color: #fff; }
.split-bar span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.split-bar span:first-child { background: var(--color-primary); } .split-bar span:last-child { background: var(--color-accent); }
.file-list { display: grid; gap: 8px; margin: 14px 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.file-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--color-surface-2); overflow: hidden; flex: none; display: grid; place-items: center; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.pdf-badge { font-weight: 800; font-size: 12px; color: #fff; background: #d93025; padding: 4px 6px; border-radius: 4px; }
.diff-table td { padding: 2px 8px; border: 0; }
.diff-table .ln { color: var(--color-muted); text-align: right; width: 1%; font-size: 12px; user-select: none; }
.diff-table .sg { width: 1%; font-weight: 800; }
.d-add td, .diff-added td { background: color-mix(in srgb, var(--color-success) 14%, transparent); }
.d-del td, .diff-removed td { background: color-mix(in srgb, var(--color-danger) 12%, transparent); }
.diff-changed td { background: color-mix(in srgb, var(--color-warning) 12%, transparent); }
.diff-table code, .table code { white-space: pre-wrap; word-break: break-word; }
.regex-input { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 1.1rem; color: var(--color-muted); }
.regex-view, .code-snippet { white-space: pre-wrap; word-break: break-word; background: var(--color-surface-2); border: 1px solid var(--color-border); padding: 12px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; max-height: 360px; overflow: auto; }
.regex-view mark { background: #fde68a; color: #111; border-radius: 3px; padding: 0 1px; }
.color-big input { width: 72px; height: 72px; border: 0; padding: 0; background: none; cursor: pointer; }
.swatch { height: 90px; border-radius: var(--radius-card); border: 1px solid var(--color-border); }
.shade-row { display: flex; gap: 6px; margin-top: 10px; }
.shade { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--color-border); cursor: pointer; }
.contrast-demo { display: inline-block; padding: 6px 12px; border-radius: 6px; font-weight: 700; margin-right: 8px; }
.yt-preview { background: var(--color-surface-2); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.yt-tags { color: #3ea6ff; margin-top: 6px; font-weight: 600; }
.over { color: var(--color-danger); font-weight: 700; }

/* Contact / newsletter / sitemap */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter { margin-top: var(--space-4); max-width: 360px; }
.newsletter .nl-label { display: block; font-weight: 700; color: #fff; margin-bottom: 8px; font-size: var(--text-sm); }
.newsletter .input { min-height: 40px; }
.newsletter .nl-consent { color: #9aa8cf; margin-top: 8px; font-size: 12px; }
.sitemap-cols ul { padding-left: 18px; margin: 0; } .sitemap-cols li + li { margin-top: 6px; }
.columns-list { columns: 2 280px; padding-left: 18px; } .columns-list li { margin-bottom: 6px; break-inside: avoid; }

/* Contrast fixes (WCAG AA): darker success button, darker chart segment */
.btn-success { background: #0b7a55; border-color: #0b7a55; }
.split-bar span:last-child { background: #b7410e; }

/* Sister-site links */
.network-promo { display: flex; gap: 14px; align-items: flex-start; padding: var(--space-4); margin: var(--space-4) 0; background: linear-gradient(120deg, var(--color-primary-soft), var(--color-surface)); }
.network-promo .tool-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.network-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); font-weight: 700; margin: 0 0 4px; }
.network-msg { margin: 0 0 10px; font-size: var(--text-sm); }
.footer-network { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); }
.footer-network ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-network li + li { margin-top: 0; }
.footer-network span { color: #8ea0d4; }
.network-promo > div { min-width: 0; }
.network-promo .btn { white-space: normal; text-align: left; height: auto; padding-block: 6px; line-height: 1.35; }
