/* ============================================================
   AdGUARD — blog
   Layered on top of ../styles.css: tokens, reset, fonts, .nav,
   .brand, .btn, .foot and .eyebrow all come from there, so the
   blog cannot drift from the main site. Only blog-specific
   layout and long-form typography live here.
   ============================================================ */

.container { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* the current page in the header nav */
.nav__links a.active { color: var(--text); font-weight: 600; }

/* ── listing hero ─────────────────────────────────────────── */
.blog-hero { padding: 4rem 0 0; }
.blog-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.04;
  letter-spacing: -.032em; color: var(--text); margin: .9rem 0 1rem;
}
.blog-hero > p { font-size: 1.06rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; }

.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.2rem 0 2.4rem; }
.blog-filter {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .52rem .85rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper-2); color: var(--text-2); cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.blog-filter:hover { border-color: var(--text-3); color: var(--text); }
.blog-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── post cards ───────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem; padding-bottom: 4.5rem;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2);
  padding: 1.5rem 1.4rem; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.post-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(10,20,40,.35);
}
.pc-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-card h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; line-height: 1.28;
  letter-spacing: -.016em; color: var(--text); margin: .65rem 0 .5rem;
}
.post-card p { font-size: .9rem; line-height: 1.6; color: var(--text-2); }
.pc-meta { display: flex; gap: .45rem; font-family: var(--mono); font-size: .68rem; color: var(--text-3); margin-top: 1.05rem; }
.pc-arrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--accent); margin-top: 1rem; }

/* ── article ──────────────────────────────────────────────── */
/* declared after .container so the reading column wins */
.article { max-width: 768px; margin: 0 auto; padding: 3.2rem 28px 2.6rem; }

.crumb { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .69rem; letter-spacing: .04em; color: var(--text-3); }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--text); }
.crumb a + a::before { content: "/"; margin-right: .55rem; color: var(--line); }

.a-tag {
  display: inline-block; margin: 1.6rem 0 0;
  font-family: var(--mono); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg); border-radius: 5px; padding: .3rem .55rem;
}
.article h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.85rem, 3.9vw, 2.55rem); line-height: 1.09;
  letter-spacing: -.032em; color: var(--text); margin: .9rem 0 1.1rem;
}
.a-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .04em; color: var(--text-3);
  padding-bottom: 1.7rem; border-bottom: 1px solid var(--line);
}
.a-lead { font-size: 1.13rem !important; line-height: 1.65; color: var(--text) !important; margin: 1.9rem 0 0 !important; }

.article h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.46rem; line-height: 1.2;
  letter-spacing: -.022em; color: var(--text); margin: 2.7rem 0 .95rem;
}
.article h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
  letter-spacing: -.014em; color: var(--text); margin: 2rem 0 .6rem;
}
.article p { font-size: 1rem; line-height: 1.75; color: var(--text-2); margin: 0 0 1.1rem; }
.article strong { color: var(--text); font-weight: 600; }
.article a {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: rgba(37,99,235,.34); text-underline-offset: 3px;
}
.article a:hover { text-decoration-color: var(--accent); }

.article ul, .article ol { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.article li { position: relative; padding-left: 1.4rem; font-size: 1rem; line-height: 1.7; color: var(--text-2); margin-bottom: .55rem; }
.article li::before { content: ""; position: absolute; left: .25rem; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.article ol { counter-reset: li; }
.article ol li::before { content: none; }
.article ol li { counter-increment: li; }
.article ol li::after {
  content: counter(li) "."; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
}

.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1.9rem; font-size: .92rem; }
.article th {
  text-align: left; font-family: var(--mono); font-size: .67rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3); font-weight: 400;
  padding: .7rem .85rem; background: var(--line-soft); border-bottom: 1px solid var(--line);
}
.article td { padding: .78rem .85rem; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; line-height: 1.55; }
.article tr:hover td { background: var(--line-soft); }

.callout {
  background: var(--accent-bg); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.2rem 1.35rem; margin: 1.8rem 0;
}
.callout p { margin: 0; font-size: .96rem; line-height: 1.65; color: var(--text); }

.a-cta { margin: 3.2rem 0 0; background: var(--ink); border-radius: var(--r); padding: 2.3rem 2rem; text-align: center; }
.a-cta h3 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: #fff; margin: 0 0 .65rem; }
.a-cta p { color: var(--on-dark-2); font-size: .96rem; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 46ch; }

/* ── related ──────────────────────────────────────────────── */
.related { max-width: 768px; margin: 0 auto; padding: 0 28px 4.5rem; }
.related h3 {
  font-family: var(--mono); font-weight: 400; font-size: .71rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2);
  padding-bottom: .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem;
}
.related-grid { display: grid; gap: .7rem; }
.related-grid a {
  font-size: .95rem; line-height: 1.45; color: var(--text);
  padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper-2); transition: border-color .16s, color .16s;
}
.related-grid a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .article { padding: 2.4rem 20px 2rem; }
  .related { padding: 0 20px 3rem; }
  .blog-hero { padding: 2.6rem 0 0; }
  .a-cta { padding: 1.8rem 1.3rem; }
}
.guide-shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 3.2rem 0 2.6rem; align-items: start; }

.guide-toc { position: sticky; top: 92px; }
.guide-toc__label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.guide-toc__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.3; color: var(--text-2); text-decoration: none; margin-bottom: 2px; }
.guide-toc__item .n { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.guide-toc__item:hover { background: var(--paper-2); color: var(--text); }
.guide-toc__item.active { background: rgba(59,130,246,.09); color: var(--text); font-weight: 600; }
.guide-toc__item.active .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-toc__all { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; }
.guide-toc__all:hover { text-decoration: underline; }

.guide-article.article { max-width: 720px; margin: 0; padding: 0; }
.guide-step-chip { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--accent); background: rgba(59,130,246,.08); border-radius: 999px; padding: 4px 13px; margin-bottom: 16px; }

.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.guide-pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.guide-pager a:hover { border-color: var(--accent); background: var(--paper-2); }
.guide-pager .dir { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.guide-pager .t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.guide-pager__next { text-align: right; }
.guide-pager__next .dir { text-align: right; }
.guide-pager__all { grid-column: 1 / -1; text-align: center; }
.guide-pager__all .t { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; padding-top: 2rem; }
  .guide-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .guide-toc__label, .guide-toc__all { display: none; }
  .guide-toc__item { flex-shrink: 0; white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 560px) {
  .guide-pager { grid-template-columns: 1fr; }
  .guide-pager__next { text-align: left; }
  .guide-pager__next .dir { text-align: left; }
}

/* ---------- Guide hub page (guide.html): numbered step badges in headings ---------- */
.guide-article h2 .ft-num,
.ft-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:rgba(59,130,246,.1);color:var(--accent);font-family:var(--mono);font-weight:700;font-size:12px;margin-right:9px;vertical-align:middle}
.guide-article h2{scroll-margin-top:24px}
