/*  Guides, reviews and tools — the pieces the privacy-document layout does
 *  not already have. Loaded only by those pages, after site.css, so nothing
 *  here can change the landing page. Colours are the site tokens; nothing
 *  new is introduced. */

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 9px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 20px; }
.crumbs > span:not([aria-hidden]) { color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }

.article h2 { scroll-margin-top: 96px; margin-top: clamp(30px, 4vw, 42px); }
.article > h2:first-of-type { margin-top: 10px; }
.article h3 { margin-top: 24px; }
.article code { font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,0.07); }

.article ol.steps { list-style: none; counter-reset: step; margin: 0 0 22px; display: grid; gap: 10px; }
.article ol.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 52px; border: 1px solid var(--line); border-radius: 14px; color: var(--text-2); background: rgba(255,255,255,0.02); }
.article ol.steps li::before { content: counter(step); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--on-light); background: var(--m8); transform: none; }

.app-cta { display: flex; gap: 18px; align-items: flex-start; margin: 26px 0; padding: 20px 22px; border-radius: 20px; background: rgba(232, 93, 4, 0.08); border: 1px solid rgba(232, 93, 4, 0.32); }
.app-cta img { border-radius: 14px; flex: none; }
.app-cta p { margin-bottom: 12px; }
.app-cta .app-cta-title { font-weight: 800; color: #fff; margin-bottom: 6px; }
.doc-body a.pill, .doc-body button.pill { color: #111; text-decoration: none; }
.doc-body a.pill:hover { color: #111; }
@media (max-width: 560px) { .app-cta { flex-direction: column; } }

/* ── tools ─────────────────────────────────────────────────────────── */
.tool { margin: 6px 0 28px; padding: clamp(18px, 3vw, 26px); border-radius: 22px; border: 1px solid var(--line-hi); background: rgba(255,255,255,0.035); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; }
.tool label, .tool .field-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.tool select, .tool input[type="number"] { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: var(--ink-1); color: #fff; font: inherit; font-size: 1rem; }
.tool select:focus, .tool input:focus { outline: 2px solid var(--m8); outline-offset: 1px; }
.tool-out { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tool-stat { padding: 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.tool-stat b { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.tool-stat span { display: block; margin-top: 6px; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.tool-note { margin-top: 14px; font-size: 0.82rem; color: var(--dim); }
.tool h3 { margin-top: 22px !important; }

.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 18px; border-radius: 18px; border: 2px dashed var(--line-hi); cursor: pointer; transition: border-color .3s, background .3s; }
.drop.is-over, .drop:hover { border-color: var(--m8); background: rgba(148, 210, 189, 0.06); }
.drop strong { font-size: 1.08rem; }
.drop small { color: var(--muted); }
.tool-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 16px; }
.tool-row input[type="range"] { width: 180px; accent-color: var(--accent); }
.tool-row .check { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 0.92rem; }
.file-list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.file-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-1); font-size: 0.9rem; padding-left: 14px !important; }
.file-list li::before { display: none; }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.file-list .fmeta { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; white-space: nowrap; }
.file-list a { color: var(--m8); }
.tool button.pill { border: 0; cursor: pointer; font: inherit; }
.tool button.pill[disabled] { opacity: .45; cursor: default; }

/* The drop zone is a <label> so the whole area opens the picker; undo the
   small mono label style the tool grid gives every other label. */
.tool label.drop { display: grid; font-family: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: #fff; font-weight: 400; margin: 0; }
.tool label.drop strong { font-size: 1.08rem; font-weight: 800; }
.tool label.drop small { display: block; font-size: 0.84rem; color: var(--muted); }
.tool .tool-row label.check { display: flex; margin: 0; font-family: inherit; font-size: 0.92rem; letter-spacing: normal; text-transform: none; color: var(--text-2); font-weight: 400; }
.tool .tool-row select { width: auto; padding: 8px 10px; }

/* Agent-written articles: QtA labels and tables. */
.article p.qta { margin: 26px 0 8px; font-weight: 800; color: #fff; font-size: 1.04rem; }
.article .table-wrap { overflow-x: auto; margin: 6px 0 24px; border: 1px solid var(--line); border-radius: 16px; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.article th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.03); }
.article tr:last-child td { border-bottom: 0; }
.article em { font-style: italic; }

/* ══ Blog ═══════════════════════════════════════════════════════════
   Archives and article heads. A category is carried by its colour from
   the month palette: the chip dot, the card cover, the article's tag and
   the featured band are all the same hue, so a topic reads the same
   everywhere. Covers end on the site's tilt (--tilt), cut with clip-path
   so the edge antialiases with the paint. */

/* Global `section` padding is for landing sections; these set their own. */
main > section.feature, main > section.archive, main > section.cross, main > section.more { padding: 0; }

/* ── archive head ── */
.archive-head { padding-bottom: clamp(26px, 3.4vw, 40px); }
.archive-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 0; max-width: 16ch; }
.archive-head .lede { margin-top: 18px; max-width: 40rem; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 32px); }
.topic-chips a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px;
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 700; color: var(--text-2); white-space: nowrap;
  transition: border-color .3s var(--e-out), color .3s var(--e-out), background .3s var(--e-out);
}
.topic-chips a:hover { border-color: var(--line-hi); color: #fff; }
.topic-chips i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--c); transform: rotate(-12deg); flex: none; }
.topic-chips span { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); }
.topic-chips a[aria-current] { background: #fff; border-color: #fff; color: #111; }
.topic-chips a[aria-current] span { color: rgba(17, 17, 17, 0.5); }
@media (max-width: 560px) {
  /* One scrollable row beats four wrapped rows of chips above the fold. */
  .topic-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .topic-chips::-webkit-scrollbar { display: none; }
}

/* ── featured: the newest post as a band ── */
main > section.feature { overflow-x: clip; padding: clamp(14px, 2vw, 22px) 0 clamp(54px, 7vw, 86px); }
.feature-band { display: block; color: #fff; }
.feature-band.light { color: var(--on-light); }
.feature-in { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 56px); }
.feature-copy { min-width: 0; max-width: 46rem; }
.feature-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 10px 2px; vertical-align: middle; opacity: .7; }
.feature-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1; letter-spacing: -0.04em; margin-top: 6px; text-wrap: balance; }
.feature-sub { max-width: 40rem; font-weight: 600; line-height: 1.5; }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(20px, 2.6vw, 28px); }
.feature-meta { display: inline-flex; gap: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.72; }
.feature-band:hover .pill svg { transform: translateX(4px); }
.feature-band:hover .pill { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32); }
.feature-glyph { flex: none; width: clamp(120px, 15vw, 210px); height: auto; stroke-width: 1.15; opacity: 0.26; transform: rotate(var(--tilt)); transition: transform .8s var(--e-out); }
.feature-band:hover .feature-glyph { transform: rotate(-6deg) scale(1.04); }
@media (max-width: 680px) { .feature-glyph { display: none; } }

/* ── card grid ── */
main > section.archive { padding-bottom: clamp(60px, 8vw, 96px); }
.archive-h { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; margin-bottom: clamp(18px, 2.4vw, 26px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.post-card { min-width: 0; }
.post-link {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color .35s var(--e-out), background .35s var(--e-out);
}
.post-link:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, 0.045); }
.post-cover {
  position: relative; height: 128px; padding: 16px 18px; overflow: hidden;
  background: var(--c); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.post-cover.light { color: var(--on-light); }
.post-cat { position: relative; z-index: 1; font-family: var(--mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.post-glyph { position: absolute; right: 10px; bottom: -8px; width: 112px; height: 112px; stroke-width: 1.3; opacity: 0.3; transform: rotate(var(--tilt)); transition: transform .7s var(--e-out); }
.post-link:hover .post-glyph { transform: rotate(-7deg) translateY(-4px); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 8px 20px 20px; }
.post-title { font-size: 1.14rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.post-excerpt {
  margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--dim); }

/* ── elsewhere ── */
main > section.cross { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; padding-bottom: clamp(70px, 9vw, 112px); }
.cross-card { display: block; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); transition: border-color .3s var(--e-out); }
.cross-card:hover { border-color: var(--line-hi); }
.cross-card b { display: block; font-size: 1.05rem; font-weight: 800; }
.cross-card span { display: block; margin: 6px 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.cross-card svg { width: 18px; height: 18px; stroke-width: 2.2; color: var(--m8); transition: transform .45s var(--e-out); }
.cross-card:hover svg { transform: translateX(4px); }
.cross-app { background: rgba(232, 93, 4, 0.08); border-color: rgba(232, 93, 4, 0.34); }
.cross-app svg { color: var(--accent); }

/* ── article head ── */
.post-head h1 { margin-top: 0; max-width: 22ch; }
.cat-link { display: inline-block; margin-bottom: 18px; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 6px 13px 6px 9px; border-radius: 100px;
  background: var(--c); color: #fff; font-size: 0.8rem; font-weight: 800; letter-spacing: -0.01em;
}
.cat-link .cat-tag { margin-bottom: 0; transition: filter .3s var(--e-out); }
.cat-link:hover .cat-tag { filter: brightness(1.1); }
.cat-tag.light { color: var(--on-light); }
.cat-tag svg { width: 16px; height: 16px; }
.post-head-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--dim); }

/* ── keep reading ── */
main > section.more { width: min(100% - (var(--pad) * 2), 1060px); padding: clamp(40px, 5vw, 60px) 0 clamp(70px, 9vw, 110px); border-top: 1px solid var(--line); }
.doc:has(+ .more) { padding-bottom: clamp(44px, 6vw, 70px); }
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 26px); }
.more-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; }
