/* ===========================================================================
   the2m2g — design system
   Direction: "the instrument". This is a site about how search results are
   made, so the listings are shaped like search results: breadcrumb URL line,
   index-blue title, snippet. The one loud element is the highlighter mark —
   the way you'd mark a term in a SERP printout. Everything else stays quiet.
   =========================================================================== */

:root {
  /* colour */
  --paper:      #EEF1F6;
  --card:       #FFFFFF;
  --ink:        #0B1220;
  --ink-soft:   #2A3446;
  --slate:      #626D80;
  --rule:       #D6DCE6;
  --index:      #1A38B8;   /* the result-title blue */
  --index-deep: #0F2273;
  --mark:       #FFE95C;   /* highlighter */
  --gain:       #0A7A52;
  --loss:       #B03024;

  /* per-template accents */
  --a-glossary:   #6B3FD4;
  --a-guides:     #0E7C86;
  --a-news:       #B03024;
  --a-case:       #0A7A52;
  --a-blog:       #1A38B8;

  /* type */
  --display: "Newsreader", Georgia, serif;
  --body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* scale */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem);

  --wrap: 1180px;
  --read: 43rem;
  --r: 3px;
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px -16px rgba(11,18,32,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
p, li, h1, h2, h3, h4, .result__crumb, .prose a { overflow-wrap: break-word; }

body {
  margin: 0;
  background: var(--paper);
  /* faint measurement grid — the graph paper an SEO works on */
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
                    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 100% 34px, 34px 100%;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--index); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--index); outline-offset: 2px; border-radius: 2px;
}
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ink); color: #fff; padding: .6rem 1rem; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

/* the signature: a marker stroke, sitting slightly crooked like a real one */
.mark {
  background: linear-gradient(100deg, transparent 1%, var(--mark) 1%, var(--mark) 99%, transparent 99%);
  padding: 0 .12em; box-decoration-break: clone;
}

.eyebrow {
  font-family: var(--mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}

/* ---- header --------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238,241,246,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__bar { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--index); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: var(--r); position: relative;
}
.nav a:hover { background: rgba(26,56,184,.07); color: var(--index); }
.nav a[aria-current="page"] { color: var(--index); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; background: var(--index);
}
.top__search {
  display: flex; align-items: center; gap: .5rem; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r); padding: .35rem .6rem; min-width: 190px;
}
.top__search input { border: 0; background: none; font: inherit; font-size: .9rem; width: 100%; }
.top__search input:focus { outline: none; }
.top__search kbd {
  font-family: var(--mono); font-size: .7rem; color: var(--slate);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3rem;
}
.burger { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--r); padding: .4rem .6rem; }

/* ---- hero ----------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero__title { font-size: var(--step-4); max-width: 15ch; margin-bottom: .4em; }
.hero__lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 54ch; font-family: var(--display); }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat__n { font-family: var(--mono); font-size: var(--step-2); font-variant-numeric: tabular-nums; display: block; }
.stat__l { font-size: var(--step--1); color: var(--slate); }

/* ---- SERP-style result cards (the site's core listing device) -------------- */
.results { list-style: none; padding: 0; margin: 0; }
.result {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.15rem 1.3rem; margin-bottom: .75rem; position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.result::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: var(--r) 0 0 var(--r);
  background: var(--accent, var(--index)); opacity: .8;
}
.result:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #C3CBD9; }
.result__crumb {
  font-family: var(--mono); font-size: .74rem; color: var(--slate);
  display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem;
}
.result__crumb b { color: var(--accent, var(--index)); font-weight: 500; }
.result__title { font-family: var(--display); font-size: 1.32rem; margin: 0 0 .25rem; line-height: 1.2; }
.result__title a { color: var(--index-deep); text-decoration: none; }
.result:hover .result__title a { text-decoration: underline; }
.result__snip { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.result__meta {
  display: flex; gap: 1rem; margin-top: .6rem; font-family: var(--mono);
  font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em;
}

/* ---- section headers ------------------------------------------------------ */
.sec { padding: 3rem 0; }
.sec__head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; margin-bottom: 1.5rem; }
.sec__head h2 { margin: 0; }
.sec__head a { margin-left: auto; font-size: .85rem; font-family: var(--mono); text-decoration: none; }
.sec__head a:hover { text-decoration: underline; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem; align-items: start; }
.cols > *, .grid > * { min-width: 0; }

/* ---- glossary: an index, not a blog --------------------------------------- */
.az { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.5rem 0 2rem; }
.az a, .az span {
  font-family: var(--mono); font-size: .95rem; font-weight: 500;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--card);
  text-decoration: none; color: var(--ink);
}
.az a:hover, .az a[aria-current="true"] { background: var(--a-glossary); color: #fff; border-color: var(--a-glossary); }
.az span { color: #B6BECC; background: transparent; border-style: dashed; }
.az__all { width: auto !important; padding-inline: .7rem; }

.glossary-group { margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.glossary-group__letter {
  font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--a-glossary);
  border-bottom: 2px solid var(--a-glossary); padding-bottom: .3rem; margin-bottom: 1rem;
}
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: .6rem; }
.term {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  padding: .9rem 1rem; text-decoration: none; color: inherit; display: block;
  border-left: 3px solid transparent; transition: border-color .15s, transform .15s;
}
.term:hover { border-left-color: var(--a-glossary); transform: translateX(3px); }
.term__name { font-family: var(--display); font-size: 1.1rem; color: var(--index-deep); display: block; }
.term__def { font-size: .87rem; color: var(--slate); margin-top: .2rem; display: block; }

.def-card {
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--a-glossary);
  border-radius: var(--r); padding: 1.5rem 1.6rem; margin-bottom: 2rem;
}
.def-card__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--a-glossary); }
.def-card__text { font-family: var(--display); font-size: var(--step-1); line-height: 1.4; margin: .4rem 0 0; }
.pron { font-family: var(--mono); font-size: .85rem; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-family: var(--mono); font-size: .75rem; padding: .25rem .6rem;
  border: 1px solid var(--rule); border-radius: 100px; background: var(--card);
  text-decoration: none; color: var(--ink-soft);
}
.chip:hover { border-color: var(--index); color: var(--index); }

/* ---- case studies: numbers first ------------------------------------------ */
.case-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .16s, box-shadow .16s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-card__top { padding: 1.2rem 1.3rem; border-bottom: 1px dashed var(--rule); }
.case-card__client { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.case-card__title { font-family: var(--display); font-size: 1.35rem; margin: .3rem 0 0; color: var(--index-deep); line-height: 1.2; }
.case-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { padding: 1rem 1.3rem; border-right: 1px dashed var(--rule); }
.metric:last-child { border-right: 0; }
.metric__v {
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--gain); display: block; letter-spacing: -.04em;
}
.metric__v.is-down { color: var(--loss); }
.metric__k { font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.case-card__foot { padding: .8rem 1.3rem; font-size: .8rem; color: var(--slate); font-family: var(--mono); margin-top: auto; }

.case-hero { background: var(--ink); color: #E8ECF4; padding: 3rem 0; margin-bottom: 2.5rem; border-radius: var(--r); }
.case-hero h1 { color: #fff; }
.case-hero .eyebrow { color: #8FA0BE; }
.case-hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.case-hero__facts .metric { border-right: 0; padding: 0; }
.case-hero__facts .metric__v { color: var(--mark); font-size: 1.9rem; }
.case-hero__facts .metric__k { color: #8FA0BE; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 2rem 0; }
.ba__panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.2rem; }
.ba__arrow { font-family: var(--mono); color: var(--slate); }

/* ---- guides: a sequence (numbering is real here) --------------------------- */
.guide-card {
  display: grid; grid-template-columns: 4.5rem 1fr; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: inherit;
  overflow: hidden; transition: box-shadow .16s, transform .16s;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card__n {
  background: var(--a-guides); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
}
.guide-card__body { padding: 1.1rem 1.3rem; }
.guide-card__title { font-family: var(--display); font-size: 1.25rem; margin: 0 0 .25rem; color: var(--index-deep); }
.guide-card__meta { font-family: var(--mono); font-size: .72rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.level { display: inline-block; padding: .1rem .45rem; border-radius: 100px; border: 1px solid currentColor; font-size: .68rem; }
.level--beginner { color: var(--gain); }
.level--intermediate { color: #B5730C; }
.level--advanced { color: var(--loss); }

.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--a-guides); width: 0; z-index: 60; }
.toc {
  position: sticky; top: 90px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 1.1rem 1.2rem; font-size: .88rem;
}
.toc h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin: 0 0 .7rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .4rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--a-guides); }

/* ---- news: a wire, tight and dated ---------------------------------------- */
.wire { border-left: 2px solid var(--rule); padding-left: 1.5rem; }
.wire__item { position: relative; padding-bottom: 2rem; }
.wire__item::before {
  content: ""; position: absolute; left: -1.94rem; top: .45rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--a-news); border: 2px solid var(--paper);
}
.wire__date { font-family: var(--mono); font-size: .74rem; color: var(--a-news); letter-spacing: .06em; text-transform: uppercase; }
.wire__title { font-family: var(--display); font-size: 1.3rem; margin: .2rem 0 .3rem; }
.wire__title a { color: var(--index-deep); text-decoration: none; }
.wire__title a:hover { text-decoration: underline; }
.wire__snip { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.breaking {
  display: inline-block; background: var(--a-news); color: #fff; font-family: var(--mono);
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 2px;
}

/* ---- article -------------------------------------------------------------- */
.article { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 3.2rem); }
.article__head { border-bottom: 1px solid var(--rule); padding-bottom: 1.4rem; margin-bottom: 1.8rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--mono); font-size: .74rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.prose { max-width: var(--read); font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  border-left: 3px solid var(--mark); background: #FFFDF2; margin-left: 0;
  padding: .8rem 1.2rem; font-family: var(--display); font-size: 1.15rem;
}
.prose code { font-family: var(--mono); font-size: .88em; background: #EFF2F7; padding: .1em .35em; border-radius: 3px; }
.prose pre { background: var(--ink); color: #DCE3F0; padding: 1.1rem; border-radius: var(--r); overflow-x: auto; }
.prose pre code { background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
@media (min-width: 640px) { .prose table { display: table; } }
.prose th, .prose td { border: 1px solid var(--rule); padding: .55rem .7rem; text-align: left; }
.prose th { background: #F4F6FA; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.prose img { border-radius: var(--r); border: 1px solid var(--rule); }
.callout { border: 1px solid var(--rule); border-left: 3px solid var(--index); background: #F5F7FD; padding: 1rem 1.2rem; border-radius: var(--r); }

.author-box { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.5rem; }
.author-box img { width: 52px; height: 52px; border-radius: 50%; }

/* ---- ads: labelled, contained, never CLS ---------------------------------- */
/* An ad unit must never be wider than the thing it sits in. AdSense sizes its
   own iframe inline, so these need !important to win — without them a
   responsive unit drags the whole page sideways on a phone. */
.ad { margin: 2rem 0; text-align: center; max-width: 100%; overflow: hidden; }
.ad__label { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #9AA4B4; display: block; margin-bottom: .3rem; }
.ad ins.adsbygoogle { display: block !important; width: 100% !important; max-width: 100% !important; margin-inline: auto; }
.ad iframe, .ad img { max-width: 100% !important; }
.ad--article_top, .ad--article_mid, .ad--article_bottom { min-height: 100px; }
.ad--sidebar { min-height: 250px; margin-top: 0; }
.ad--sidebar ins.adsbygoogle { max-width: 300px !important; }
.ad--list_inline { margin: 1.5rem 0; }

/* ---- sidebar -------------------------------------------------------------- */
.side { position: sticky; top: 90px; display: grid; gap: 1.5rem; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.2rem; }
.panel h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin: 0 0 .8rem; }
.panel ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.panel li { padding: .4rem 0; border-bottom: 1px dashed var(--rule); }
.panel li:last-child { border: 0; }
.panel a { color: var(--ink-soft); text-decoration: none; }
.panel a:hover { color: var(--index); }

/* ---- newsletter ----------------------------------------------------------- */
.sub { background: var(--ink); color: #E8ECF4; border-radius: var(--r); padding: clamp(1.6rem, 4vw, 3rem); }
.sub h2 { color: #fff; max-width: 18ch; }
.sub p { color: #9EACC4; max-width: 46ch; }
.sub__form { display: flex; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.sub__form input {
  flex: 1 1 240px; padding: .75rem .9rem; border: 1px solid #2C3852; background: #131C2E;
  color: #fff; border-radius: var(--r); font: inherit;
}
.sub__form input::placeholder { color: #6B7A94; }
.btn {
  font-family: var(--mono); font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  background: var(--mark); color: var(--ink); border: 0; border-radius: var(--r);
  padding: .75rem 1.3rem; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { background: #FFF08C; }
.btn--ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
.btn--ghost:hover { background: var(--card); }

/* ---- tools ---------------------------------------------------------------- */
.serp-preview { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.3rem; font-family: arial, sans-serif; }
.serp-preview__url { font-size: .82rem; color: #202124; }
.serp-preview__title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin: .2rem 0; }
.serp-preview__desc { color: #4d5156; font-size: .87rem; }
.gauge { height: 5px; background: #E3E8F0; border-radius: 3px; overflow: hidden; margin-top: .35rem; }
.gauge__fill { height: 100%; background: var(--gain); transition: width .2s; }
.gauge__fill.is-warn { background: #C98A0B; }
.gauge__fill.is-over { background: var(--loss); }
.field { margin-bottom: 1.2rem; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: .3rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--rule); border-radius: var(--r);
  font: inherit; font-size: .95rem; background: var(--card); color: var(--ink);
}
.counter { font-family: var(--mono); font-size: .72rem; color: var(--slate); display: flex; justify-content: space-between; margin-top: .3rem; }

/* ---- pager / footer ------------------------------------------------------- */
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 2.5rem 0; font-family: var(--mono); font-size: .85rem; }
.pager__step { text-decoration: none; border: 1px solid var(--rule); background: var(--card); padding: .5rem .9rem; border-radius: var(--r); }
.pager__step:hover { border-color: var(--index); }
.pager__count { color: var(--slate); }

.foot { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 3rem 0 2rem; background: rgba(255,255,255,.5); }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.foot h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin: 0 0 .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: var(--index); text-decoration: underline; }
.foot__tag { color: var(--slate); font-size: .9rem; max-width: 34ch; }
.foot__bar { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; color: var(--slate); }
.socials { display: flex; gap: .5rem; margin-left: auto; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule);
  border-radius: var(--r); background: var(--card); color: var(--ink-soft);
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }

.empty { background: var(--card); border: 1px dashed var(--rule); border-radius: var(--r); padding: 3rem; text-align: center; }
.empty h3 { margin-bottom: .3rem; }
.empty p { color: var(--slate); margin: 0 0 1rem; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .side, .toc { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--card); border-bottom: 1px solid var(--rule); padding: .6rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem; }
  .top__search { display: none; }
  .top__bar { gap: .75rem; }
  .case-card__metrics { grid-template-columns: 1fr 1fr; }
  .metric { border-bottom: 1px dashed var(--rule); }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
  .socials { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .guide-card { grid-template-columns: 3.2rem 1fr; }
}