/*
Theme Name: Linkbook
Theme URI: https://freeinstantapprovalbacklinks.com/
Author: Atlantis Marketing
Description: Lightweight custom theme for off-page SEO submission lists. Searchable, filterable list tables built from plain HTML tables in posts. No page builder needed.
Version: 1.2.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: linkbook
*/

:root {
  --paper: #fbfbf9;
  --surface: #ffffff;
  --ink: #1b2430;
  --ink-2: #4a5566;
  --ink-3: #7b8594;
  --rule: #e3e6eb;
  --rule-strong: #c9cfd8;
  --link: #1f4fd8;
  --link-dark: #163aa3;
  --link-tint: #eaf0fd;
  --follow: #17784a;
  --follow-tint: #e5f4ec;
  --nofollow: #6b7483;
  --nofollow-tint: #eef0f3;
  --marker: #ffe58a;
  --done: #f2f7f4;
  --radius: 6px;
  --head: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; color: var(--ink); margin: 1.6em 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin-top: 0; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--surface); padding: 8px 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.g-listings { --g: #1f4fd8; --g-tint: #eaf0fd; }
.g-content { --g: #17784a; --g-tint: #e5f4ec; }
.g-media { --g: #9a3a7a; --g-tint: #f7e9f2; }
.g-local { --g: #b5531a; --g-tint: #fbeee5; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; position: relative; }
.brand { font-family: var(--head); font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--ink-3); letter-spacing: 0; }

.main-nav { flex: 1; display: flex; align-items: center; gap: 20px; }
.nav-top { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-top > li > a, .nav-btn { display: flex; align-items: center; gap: 4px; padding: 8px 12px; font: inherit; font-size: .97rem; color: var(--ink-2); text-decoration: none; border-radius: var(--radius); background: none; border: 0; cursor: pointer; }
.nav-top > li > a:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--ink); background: var(--paper); }
.nav-btn { font-weight: 600; color: var(--ink); }
.nav-btn .ic { width: 16px; height: 16px; transition: transform .15s; }
.nav-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav-btn .ic { transition: none; } }

.mega { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px); background: var(--surface); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px -18px rgba(27,36,48,.35); padding: 24px 24px 0; }
.mega.is-open { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mega-head { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.mega-head .ic { color: var(--g); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; }
.mega-col a:hover { background: var(--g-tint); color: var(--ink); }
.mega-col em { font-style: normal; font-family: var(--head); font-weight: 700; color: var(--g); font-size: .92rem; }
.mega-foot { margin: 20px -24px 0; padding: 12px 24px; background: var(--paper); border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-3); border-radius: 0 0 10px 10px; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-search { position: relative; }
.nav-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.nav-search input { width: 190px; font: inherit; font-size: .95rem; padding: 8px 12px 8px 34px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.nav-search input:focus { width: 230px; background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--link); border: 1px solid var(--link); }
.btn-ghost:hover { background: var(--link); color: #fff; }

.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }

@media (max-width: 480px) { .brand small { display: none; } }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; flex: none; }
  .header-row { gap: 12px; }
  .brand { white-space: normal; min-width: 0; line-height: 1.25; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px 16px 20px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 18px 40px -18px rgba(27,36,48,.35); }
  .main-nav.is-open { display: flex; }
  .nav-top { flex-direction: column; align-items: stretch; }
  .nav-btn { display: none; }
  .mega { display: block; position: static; border: 0; box-shadow: none; padding: 8px 0 12px; }
  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
  .mega-col a { margin: 0; padding: 10px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .mega-col li:last-child a { border-bottom: 0; }
  .nav-top > li > a { padding: 12px 4px; border-top: 1px solid var(--rule); border-radius: 0; }
  .mega-foot { margin: 12px 0 0; border-radius: var(--radius); }
  .nav-actions { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
  .nav-search input, .nav-search input:focus { width: 100%; }
}

/* ---------- Home ---------- */
.home-hero { padding: 56px 0 56px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 480px) { .home-search input { padding-left: 40px; } .home-search button { padding: 12px 14px; } .hero-stats { gap: 12px 24px; } }
.home-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 16ch; margin-bottom: 16px; }
.home-hero .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; }
.home-search { display: flex; gap: 8px; max-width: 560px; margin-top: 24px; position: relative; }
.home-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.home-search input { flex: 1; min-width: 0; font: inherit; padding: 13px 14px 13px 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); }
.home-search button, .btn {
  font: inherit; font-weight: 600; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--link); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap;
}
.home-search button:hover, .btn:hover { background: var(--link-dark); color: #fff; }
.hero-stats, .footer-stats, .post-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 28px 0 0; }
.hero-stats dt, .post-facts dt { font-size: .85rem; color: var(--ink-3); }
.hero-stats dd, .post-facts dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.01em; }

.check-log { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 20px 22px; }
.check-log-head { font-family: var(--head); font-weight: 700; margin: 0 0 8px; }
.check-log ol { list-style: none; margin: 0; padding: 0; }
.check-log li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--rule-strong); }
.check-log li:last-child { border-bottom: 0; }
.check-log .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--follow-tint); color: var(--follow); display: grid; place-items: center; }
.check-log .ok .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.check-log a { color: var(--ink); text-decoration: none; font-weight: 600; }
.check-log a:hover { color: var(--link); text-decoration: underline; }
.check-log .meta { font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.check-log-foot { margin: 10px 0 0; font-size: .88rem; color: var(--ink-3); }

.group { padding: 56px 0 8px; }
.group-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.group-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--g-tint); color: var(--g); display: grid; place-items: center; flex: none; }
.group-icon .ic { width: 24px; height: 24px; }
.group-head h2 { margin: 0 0 2px; }
.group-head p { margin: 0; color: var(--ink-2); }
.list-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .list-grid { grid-template-columns: 1fr; } }
.list-card { display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--g); border-radius: 8px; text-decoration: none; color: var(--ink); }
.list-card:hover { border-color: var(--g); border-top-color: var(--g); color: var(--ink); }
.list-count { font-family: var(--head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--g); letter-spacing: -0.02em; }
.list-count small { font-family: var(--body); font-size: .85rem; font-weight: 400; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.list-name { font-family: var(--head); font-weight: 700; font-size: 1.12rem; margin: 12px 0 4px; }
.list-desc { font-size: .95rem; color: var(--ink-2); flex: 1; }
.list-go { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--g); }
.list-go .ic { width: 16px; height: 16px; }
.list-card:hover .list-go { text-decoration: underline; text-underline-offset: 3px; }

.how { padding: 64px 0; margin-top: 56px; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how h2 { margin-top: 0; }
.how .lede { color: var(--ink-2); max-width: 66ch; font-size: 1.1rem; }
.how-steps { list-style: none; counter-reset: how; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { counter-increment: how; padding-top: 16px; border-top: 2px solid var(--ink); }
.how-steps li::before { content: counter(how); font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--link); display: block; margin-bottom: 10px; }
.how-steps b { display: block; font-family: var(--head); font-size: 1.15rem; margin-bottom: 4px; }
.how-steps span { color: var(--ink-2); }

.team-strip { background: var(--link-tint); padding: 44px 0; }
.team-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.team-strip h2 { margin: 0 0 6px; }
.team-strip p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { background: var(--surface); color: var(--link); border-color: var(--link); }
.btn-ghost-light:hover { background: var(--link); color: #fff; }

.latest { padding: 0 0 64px; }
.post-rows { list-style: none; margin: 0; padding: 0; }
.post-rows li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.post-rows a { font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.post-rows a:hover { text-decoration: underline; }
.post-rows time { display: block; font-size: .9rem; color: var(--ink-3); }

/* ---------- Single list post ---------- */
.post-head { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 36px 0 32px; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.group-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--g-tint, var(--link-tint)); color: var(--g, var(--link)); font-weight: 600; font-size: .9rem; }
.group-tag .ic { width: 16px; height: 16px; }
.post-head h1 { max-width: 24ch; }
.post-head .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 66ch; margin-bottom: 0; }
.post-facts { margin-top: 24px; }
.post-facts dd { font-size: 1.15rem; }

.related { padding: 48px 0 64px; border-top: 1px solid var(--rule); }
.related h2 { margin-top: 0; }
.related .list-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .related .list-grid { grid-template-columns: 1fr; } }
.related-all { margin: 20px 0 0; font-weight: 600; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

.entry > :first-child { margin-top: 0; }
.entry p, .entry ul, .entry ol { max-width: 72ch; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--link); color: var(--ink-2); }

.toc { position: sticky; top: 96px; align-self: start; font-size: .95rem; }
.toc p { font-family: var(--head); font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--link); border-left-color: var(--link); }

/* Steps: real sequence, so numbered */
.entry ol.steps { list-style: none; counter-reset: step; padding: 0; }
.entry ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 48px; margin: 0; }
.entry ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--link);
  color: var(--link); font-family: var(--head); font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
.entry ol.steps > li strong { display: block; font-family: var(--head); }

/* FAQ */
.entry details.faq { border-bottom: 1px solid var(--rule); max-width: 72ch; }
.entry details.faq:first-of-type { border-top: 1px solid var(--rule); }
.entry details.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-family: var(--head); font-weight: 700; list-style: none; position: relative; }
.entry details.faq summary::-webkit-details-marker { display: none; }
.entry details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--link); }
.entry details.faq[open] summary::after { content: "\2212"; }
.entry details.faq > div { padding-bottom: 16px; color: var(--ink-2); }

/* ---------- The list table (the centrepiece) ---------- */
.lb-tool { margin: 28px 0 40px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 8px; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px; border-bottom: 1px solid var(--rule); position: sticky; top: 68px; background: var(--surface); z-index: 5; border-radius: 8px 8px 0 0; }
.admin-bar .lb-bar { top: 100px; }
.lb-search { flex: 1 1 240px; position: relative; }
.lb-search input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px 10px 38px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); }
.lb-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-chip { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.lb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lb-meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .9rem; color: var(--ink-3); }
.lb-meta button { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.lb-scroll { overflow-x: auto; }
table.lb-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.lb-table th { text-align: left; font-family: var(--head); font-size: .85rem; font-weight: 700; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; background: var(--paper); }
.lb-table th[data-sort] { cursor: pointer; user-select: none; }
.lb-table th[data-sort]::after { content: " \2195"; color: var(--ink-3); font-weight: 400; }
.lb-table th[aria-sort="ascending"]::after { content: " \2191"; color: var(--link); }
.lb-table th[aria-sort="descending"]::after { content: " \2193"; color: var(--link); }
.lb-table td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover { background: #f7f9fe; }
.lb-table tr[hidden] { display: none; }
.lb-table td.num { color: var(--ink-3); font-variant-numeric: tabular-nums; width: 1%; }
.lb-table .site b { display: block; font-family: var(--head); font-weight: 700; color: var(--ink); }
.lb-table .site span { font-size: .9rem; color: var(--ink-3); }
.lb-table td.da, .lb-table td.rank { font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-table td.rank small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.rank-bar { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--rule); margin-top: 4px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--follow); }
.rank-note { font-size: .92rem; color: var(--ink-2); background: var(--paper); border-left: 3px solid var(--link); padding: 10px 14px; max-width: 72ch; }
.tag { display: inline-block; font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag-dofollow { background: var(--follow-tint); color: var(--follow); }
.tag-nofollow { background: var(--nofollow-tint); color: var(--nofollow); }
.tag-plain { background: var(--link-tint); color: var(--link-dark); }
.lb-table a.go { display: inline-block; padding: 6px 12px; border: 1px solid var(--link); border-radius: var(--radius); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.lb-table a.go:hover { background: var(--link); color: #fff; }
.lb-table td.tick { width: 1%; text-align: center; }
.lb-table td.tick input { width: 20px; height: 20px; accent-color: var(--follow); cursor: pointer; }
.lb-table tr.is-done { background: var(--done); }
.lb-table tr.is-done .site b { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-2); }
.lb-table mark { background: var(--marker); color: inherit; padding: 0 1px; border-radius: 2px; }
.lb-empty { padding: 32px 16px; text-align: center; color: var(--ink-2); }

@media (max-width: 640px) {
  .lb-bar { position: static; }
  .lb-table thead { display: none; }
  .lb-table, .lb-table tbody, .lb-table tr, .lb-table td { display: block; width: 100%; }
  .lb-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--rule); }
  .lb-table tr[hidden] { display: none; }
  .lb-table td { padding: 0; border: 0; grid-column: 1 / -1; }
  .lb-table td.num { display: none; }
  .lb-table td.site { grid-column: 1; }
  .lb-table td.tick { grid-column: 2; grid-row: 1; width: auto; }
  .lb-table td.da::before { content: "DA "; font-weight: 400; color: var(--ink-3); }
  .lb-table td.rank::before { content: "Tranco rank "; font-family: var(--body); font-weight: 400; color: var(--ink-3); }
  .lb-table td.rank small, .rank-bar { display: none; }
  .lb-table td.go-cell { grid-column: 1 / -1; }
}

/* ---------- Archive, pages, footer ---------- */
.archive-head { padding: 40px 0 24px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.page-body { padding-top: 40px; padding-bottom: 64px; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.site-footer { background: var(--ink); color: #b9c1cd; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light { color: #fff; margin-bottom: 14px; }
.brand-light:hover { color: #fff; }
.footer-brand p { max-width: 42ch; }
.footer-stats { margin-top: 20px; gap: 10px 28px; }
.footer-stats dt { font-size: .8rem; color: #8e98a6; }
.footer-stats dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: #fff; }
.site-footer h2 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer h2 .ic { color: var(--g); width: 18px; height: 18px; filter: brightness(1.6); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #2c3644; }
.footer-col li span { color: #8e98a6; font-variant-numeric: tabular-nums; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #3a4452; margin-top: 40px; padding-top: 20px; color: #8e98a6; font-size: .88rem; }
.footer-base p { margin: 0; max-width: 70ch; }
.footer-base ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-base a { color: #c9cfd8; }

/* Team proven badge */
.lb-table .pick{display:inline-flex;align-items:center;gap:.25em;margin-left:.5em;padding:.1em .5em;border-radius:999px;background:#e6f4ec;color:var(--follow,#17784a);font:600 .72rem/1.5 var(--head,inherit);letter-spacing:.02em;vertical-align:middle;white-space:nowrap;font-style:normal}
.lb-table .pick::before{content:"\2713";font-size:.9em}
.lb-table .site .pick + span{display:block}
.lb-table tr[data-pick] td.site b{color:var(--ink)}
.lb-chip-pick[aria-pressed="true"]{background:var(--follow,#17784a);border-color:var(--follow,#17784a);color:#fff}
.pick-note{border-left:3px solid var(--follow,#17784a);background:#f1f8f4;padding:.75rem 1rem;border-radius:6px}

/* Home FAQ */
.home-faq{padding:3.5rem 0;border-top:1px solid var(--line,#e6e4dc)}
.home-faq .wrap{max-width:820px}
.home-faq h2{margin:0 0 1.25rem}
.home-faq details.faq{border:1px solid var(--line,#e6e4dc);border-radius:10px;background:#fff;margin:0 0 .75rem;padding:0}
.home-faq details.faq summary{cursor:pointer;padding:1rem 1.25rem;font-weight:600;font-family:var(--head,inherit);list-style:none;display:flex;justify-content:space-between;gap:1rem}
.home-faq details.faq summary::-webkit-details-marker{display:none}
.home-faq details.faq summary::after{content:"+";color:var(--link,#1f4fd8);font-size:1.25em;line-height:1}
.home-faq details.faq[open] summary::after{content:"\2212"}
.home-faq details.faq p{margin:0;padding:0 1.25rem 1.1rem;color:var(--muted,#4a5565)}

/* Guides */
.group-tag-guide{color:#5b3fd0}
.home-guides{padding:3.5rem 0;border-top:1px solid var(--line,#e6e4dc)}
.home-guides h2{margin:0 0 .4rem}
.guide-cards{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:1rem}
.guide-card{display:flex;flex-direction:column;gap:.5rem;height:100%;padding:1.25rem;border:1px solid var(--line,#e6e4dc);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.guide-card:hover{border-color:var(--link,#1f4fd8);box-shadow:0 4px 14px rgba(27,36,48,.07)}
.guide-title{font:700 1.08rem/1.35 var(--head,inherit)}
.guide-desc{color:var(--muted,#4a5565);font-size:.95rem;flex:1}
.guide-card .list-go{color:var(--link,#1f4fd8);font-weight:600;font-size:.9rem;display:inline-flex;align-items:center;gap:.3rem}
.guide-list{margin:.5rem 0 1rem;padding-left:1.2rem}
.guide-list li{margin:.35rem 0}
.more-guides-h{margin-top:2rem}
.entry .callout{border-left:3px solid var(--link,#1f4fd8);background:#f3f6fd;padding:.9rem 1.1rem;border-radius:6px;margin:1.25rem 0}
.entry .callout.warn{border-color:#b5531a;background:#fdf5ef}

/* Guides in nav and footer */
.nav-top > li.has-sub{position:relative}
.nav-top > li.has-sub > a .ic{width:16px;height:16px}
.nav-sub{list-style:none;margin:0;padding:8px;position:absolute;top:100%;left:0;z-index:60;min-width:320px;background:var(--surface,#fff);border:1px solid var(--rule,#e6e4dc);border-radius:10px;box-shadow:0 12px 30px rgba(27,36,48,.12);display:none}
.nav-top > li.has-sub:hover > .nav-sub,.nav-top > li.has-sub:focus-within > .nav-sub{display:block}
.nav-sub a{display:block;padding:9px 12px;border-radius:6px;color:var(--ink-2,#333);text-decoration:none;font-size:.94rem;line-height:1.35}
.nav-sub a:hover{background:var(--paper,#fbfbf9);color:var(--ink)}
@media (max-width:1060px){
  .nav-top > li.has-sub > a .ic{display:none}
  .nav-sub{display:block;position:static;min-width:0;border:0;box-shadow:none;padding:0 0 8px 12px;background:none}
  .nav-sub a{padding:8px 4px;font-size:.92rem;color:var(--ink-2,#555)}
}
@media (max-width:1200px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:960px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr}}
.footer-guides li{line-height:1.35;margin-bottom:8px}
.nav-top > li > a,.nav-btn{white-space:nowrap}
.blog-guides{border-top:0;padding-top:0}

/* Guide page footer sections */
.related-guides .list-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1000px){.related-guides .list-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.related-guides .list-grid-4{grid-template-columns:minmax(0,1fr)}}
.related-guides h2.more-guides-h{margin:3rem 0 0}
.related-guides .guide-cards{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem}
@media (max-width:700px){.related-guides .guide-cards{grid-template-columns:minmax(0,1fr)}}
.related-guides .related-all{margin-top:2rem}

/* Guide images */
.entry .guide-hero,.entry .guide-fig{margin:1.75rem 0}
.entry .guide-hero{margin-top:0}
.entry .guide-hero img,.entry .guide-fig img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--rule,#e3e1d9)}
.guide-card{padding:0;overflow:hidden}
.guide-card .guide-thumb{display:block;aspect-ratio:16/9;background:#f1efe8;border-bottom:1px solid var(--rule,#e3e1d9)}
.guide-card .guide-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.guide-card .guide-title{padding:1.1rem 1.25rem 0}
.guide-card .guide-desc{padding:0 1.25rem}
.guide-card .list-go{padding:0 1.25rem 1.2rem}
