/* PoweredBy site styles — themed to match the HexTone theme (green #54af48,
   Plus Jakarta Sans) but self-contained: every page loads this; the homepage
   additionally loads the full theme CSS for its rich hero sections. Provides
   the header/footer and a themed component set matching the app markup. */

:root {
  /* values mirror the HexTone theme: ink #120036, Inter body + Plus Jakarta
     headings, cool grays; keep in sync with theme/css/main.css @layer theme */
  --pb-green: #54af48;
  --pb-green-dark: #418a38;
  --pb-ink: #120036;
  --pb-body: #4b5563;
  --pb-muted: #6b7280;
  --pb-line: #e7e9ee;
  --pb-bg: #ffffff;
  --pb-bg-soft: #f5f6f9;
  --pb-radius: 10px;
  --pb-shadow: 0 2px 12px rgba(18,0,54,.05);
  --pb-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --pb-font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* NOTE on the homepage: the theme CSS (loaded only there) lives entirely in
   @layer rules, and unlayered CSS beats layered CSS regardless of order or
   specificity. So every generic element/utility rule here is scoped to
   body:not(.home), or it would silently crush the theme's own styling.
   Class-scoped .site-* rules stay global: they must win on the homepage too. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
body:not(.home) {
  font-family: var(--pb-font-body); color: var(--pb-body);
  line-height: 1.6; font-size: 16px;
  /* same look as the homepage: the theme's hero wash behind the transparent
     absolute header, fading to white (mirrors .hero-3 + its :after fade).
     The image is stretched vertically; it's an abstract gradient, so the
     distortion is invisible and the fade hits solid white before it ends.
     padding-top clears the 84px header. */
  padding-top: 84px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .02) 0, #ffffff 460px),
    url('/assets/theme/images/hero-3.jpg') top center / 100% 560px no-repeat,
    var(--pb-bg);
}
body:not(.home) h1, body:not(.home) h2, body:not(.home) h3,
body:not(.home) h4, body:not(.home) h5, body:not(.home) h6 {
  color: var(--pb-ink); font-family: var(--pb-font); font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
body:not(.home) h1 { font-size: clamp(1.9rem, 1.15rem + 2vw, 2.5rem); letter-spacing: -.02em; }
body:not(.home) h2 { font-size: 1.5rem; }
body:not(.home) h3 { font-size: 1.2rem; }
/* content links only (scoped to main): header, footer, and the CTA banner
   style their own anchors and must render identically on every page */
body:not(.home) main a { color: var(--pb-green-dark); text-decoration: none; }
body:not(.home) main a:hover { color: var(--pb-green); text-decoration: underline; }
body:not(.home) p { margin: 0 0 1rem; }

body:not(.home) .container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
main { flex: 1 0 auto; padding: 3rem 0 4rem; }

/* ---- header ----
   Transparent on every page, laid over the hero wash (the hero section on the
   homepage, the body background band on inner pages), like the theme's
   tra-menu. The page below provides the clearance. */
.site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent;
  border-bottom: 0; z-index: 50; font-family: var(--pb-font); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 84px; }
.site-logo { font-weight: 800; font-size: 1.55rem; color: var(--pb-ink); letter-spacing: -.02em; font-family: var(--pb-font);
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo b { color: var(--pb-green); }
.site-logo img { display: block; }
.foot-brand .site-logo { font-size: 1.35rem; }
.site-nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.site-nav a { color: var(--pb-ink); font-weight: 600; font-size: 1.02rem; font-family: var(--pb-font); text-decoration: none; }
.site-nav a:hover { color: var(--pb-green); text-decoration: none; }
.site-search { margin-left: auto; display: flex; gap: .4rem; flex: 0 1 380px; }
.site-search input { flex: 1; min-width: 0; height: 46px; padding: 0 .9rem; border: 1px solid #fff;
  background: #fff; box-shadow: 0 4px 14px rgba(18, 0, 54, .08);
  border-radius: var(--pb-radius); font: inherit; font-size: .95rem; }
.site-search input:focus { outline: none; border-color: var(--pb-green); }
.site-search .btn { height: 46px; padding: .55rem 1.3rem; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--pb-ink); cursor: pointer; }

@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--pb-line); padding: .5rem 20px 1rem; gap: .25rem;
    box-shadow: 0 12px 24px rgba(18, 0, 54, .08); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  /* inner pages keep the search as a second header row (it is the product's
     main action); the homepage hides it, its hero has a search right below.
     body prefix: ties with body:not(.home) .container's padding shorthand at
     (0,2,1) so this later rule keeps its vertical padding. */
  body .site-header .container { flex-wrap: wrap; height: auto; padding-top: .7rem; padding-bottom: .8rem; }
  .site-search { flex-basis: auto; width: 100%; order: 3; }
  body:not(.home) { padding-top: 122px; }
  body.home .site-header .container { height: 64px; padding-top: 0; padding-bottom: 0; }
  body.home .site-search { display: none; }
}

/* homepage-only: match the theme container width used by the hero content */
body.home .site-header .container, body.home .site-footer .container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- footer (theme-style link columns; the CTA banner always precedes it) ---- */
.site-footer { background: #fff; border-top: 1px solid var(--pb-line); padding: 3.25rem 0 1.75rem;
  font-size: .95rem; color: var(--pb-body); }
.site-footer a { color: var(--pb-body); text-decoration: none; }
.site-footer a:hover { color: var(--pb-green); text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 2rem 2.5rem; margin-bottom: 2.5rem; }
.foot-brand .site-logo { display: inline-flex; margin-bottom: .9rem; }
.foot-brand p { max-width: 34ch; margin: 0; color: var(--pb-body); }
.foot-head { display: block; font-weight: 700; color: var(--pb-ink); font-size: 1.02rem; margin-bottom: .9rem; font-family: var(--pb-font); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.foot-bottom { border-top: 1px solid var(--pb-line); padding-top: 1.4rem; color: var(--pb-muted); font-size: .85rem; }
.foot-bottom a { color: var(--pb-muted); text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---- buttons (scoped: the homepage uses the theme's .btn system) ---- */
body:not(.home) .btn { display: inline-block; font: inherit; font-family: var(--pb-font); font-weight: 600; padding: .6rem 1.4rem; border-radius: var(--pb-radius);
  border: 1px solid transparent; cursor: pointer; text-align: center; line-height: 1.3; transition: background .15s, color .15s; }
body:not(.home) .btn:hover { text-decoration: none; }
body:not(.home) .btn-primary { background: var(--pb-green); color: #fff; }
body:not(.home) .btn-primary:hover { background: var(--pb-ink); color: #fff; }
body:not(.home) .btn-outline-primary { border-color: var(--pb-green); color: var(--pb-green-dark); background: #fff; }
body:not(.home) .btn-outline-primary:hover { background: var(--pb-green); color: #fff; }
body:not(.home) .btn-sm { padding: .35rem .85rem; font-size: .85rem; }
body:not(.home) .btn:disabled { opacity: .6; cursor: default; }

/* ---- typography helpers ---- */
.lead { font-size: 1.18rem; color: var(--pb-muted); }
.display-5, .display-6 { font-weight: 800; letter-spacing: -.02em; }
.display-5 { font-size: 2.6rem; } .display-6 { font-size: 2rem; }
/* heading-size helpers: scoped to outrank the body:not(.home) h1-h6 rules */
body:not(.home) .h5, .h5 { font-size: 1.3rem; }
body:not(.home) .h6, .h6 { font-size: .92rem; letter-spacing: .04em; }
.text-body-secondary, .text-muted-sm { color: var(--pb-muted); }
.small, .text-muted-sm { font-size: .85rem; }
.fw-bold { font-weight: 700; } .fw-semibold { font-weight: 600; }
.text-center { text-align: center; } .text-end { text-align: right; }
/* spacing utils share names with theme utilities at different values: keep off the homepage */
body:not(.home) .mt-2{margin-top:.5rem}body:not(.home) .mt-3{margin-top:1rem}body:not(.home) .mt-4{margin-top:1.5rem}body:not(.home) .mt-5{margin-top:2.5rem}
body:not(.home) .mb-2{margin-bottom:.5rem}body:not(.home) .mb-3{margin-bottom:1rem}body:not(.home) .mb-4{margin-bottom:1.5rem}body:not(.home) .me-2{margin-right:.5rem}body:not(.home) .ms-2{margin-left:.5rem}
body:not(.home) .py-4{padding-top:1.5rem;padding-bottom:1.5rem}body:not(.home) .py-5{padding-top:3rem;padding-bottom:3rem}
.stack-version { color: var(--pb-muted); font-size: .9em; }
/* ---- domain-page stack cards (compact grid per category) ---- */
/* the category sections are themselves items on the same 168px track grid,
   so one-tech categories tile side by side instead of each taking a row;
   inner and outer share gap+minmax, which keeps the tracks aligned */
.pb-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  column-gap: .5rem; row-gap: 1.4rem; margin-top: 1.1rem; }
/* thin rule above every section: reads as a divider between category rows
   (the small breaks at column gaps are intentional) */
.pb-stack-cat { grid-column: 1 / -1; min-width: 0;
  border-top: 1px solid var(--pb-line); padding-top: .85rem; }
.pb-stack-cat > h2 { margin-bottom: .5rem; }
@media (min-width: 480px) {
  .pb-cat-w1 { grid-column: span 1; }
  .pb-cat-w2, .pb-cat-w3, .pb-cat-w4 { grid-column: span 2; }
}
@media (min-width: 768px) {
  .pb-cat-w3, .pb-cat-w4 { grid-column: span 3; }
}
@media (min-width: 1200px) {
  .pb-cat-w4 { grid-column: span 4; }
}
.pb-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .5rem; }
.pb-tcard { border: 1px solid var(--pb-line); border-radius: 10px; background: #fff;
  padding: .5rem .7rem; min-width: 0; }
/* long tech names span columns instead of wrapping to 3 lines; spans only
   activate at widths where that many tracks exist (span > tracks overflows) */
@media (min-width: 480px) {
  .pb-tcard-w2, .pb-tcard-w3 { grid-column: span 2; }
}
@media (min-width: 768px) {
  .pb-tcard-w3 { grid-column: span 3; }
}
.pb-tcard:hover { border-color: var(--pb-green); }
body:not(.home) main .pb-tcard a { font-weight: 600; overflow-wrap: anywhere; }
.pb-tcard-date { font-size: .78rem; color: var(--pb-muted); margin-top: .1rem; }
/* wide tables scroll inside their own box; the page never scrolls sideways */
.pb-scroll-x { overflow-x: auto; }
/* ---- usage-trend chart (tech pages; hover layer in assets/chart.js) ---- */
.pb-chart { margin: .5rem 0 .75rem; outline: none; }
.pb-chart:focus-visible .pb-chart-plot { box-shadow: 0 0 0 2px var(--pb-green); border-radius: 4px; }
.pb-chart-plot { position: relative; height: 280px; }
.pb-chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pb-chart-area { fill: rgba(84, 175, 72, .10); }
.pb-chart-line { fill: none; stroke: var(--pb-green-dark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pb-gridline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #eef0f4; }
.pb-gridline span { position: absolute; top: 3px; left: 0; font-size: .74rem; color: var(--pb-muted);
  background: rgba(255, 255, 255, .75); padding: 0 3px; border-radius: 3px; line-height: 1.4;
  font-variant-numeric: tabular-nums; }
.pb-chart-x { position: relative; height: 1.5rem; margin-top: .35rem; }
.pb-chart-x span { position: absolute; transform: translateX(-50%); font-size: .78rem; color: var(--pb-muted);
  white-space: nowrap; }
.pb-chart-x span:first-child { transform: none; }
.pb-chart-x span:last-child { transform: translateX(-100%); }
.pb-xhair { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid #c9cdd6; pointer-events: none; }
.pb-chart-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--pb-green-dark);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(18, 0, 54, .25); transform: translate(-50%, -50%);
  pointer-events: none; }
.pb-chart-tip { position: absolute; top: 0; left: 0; transform: translate(-50%, calc(-100% - 12px)); background: #fff;
  border: 1px solid var(--pb-line); border-radius: 8px; box-shadow: 0 6px 20px rgba(18, 0, 54, .12);
  padding: .4rem .65rem; pointer-events: none; white-space: nowrap; z-index: 5; }
.pb-chart-tip.below { transform: translate(-50%, 14px); }
.pb-chart-tip strong { display: block; color: var(--pb-ink); font-size: .95rem; line-height: 1.25;
  font-variant-numeric: tabular-nums; }
.pb-chart-tip span { display: block; color: var(--pb-muted); font-size: .78rem; }

/* ---- cards / grid ---- */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class^="col"] { padding: 0 12px; }
.col { flex: 1; } .col-auto { flex: 0 0 auto; }
.col-lg-8 { flex: 0 0 66.66%; max-width: 66.66%; } .col-lg-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col-lg-5 { flex: 0 0 41.66%; max-width: 41.66%; } .col-lg-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.g-3 > * , .g-4 > * { margin-bottom: 1rem; }
.row-cols-2 > * { flex: 0 0 50%; max-width: 50%; }
@media (min-width: 768px) { .row-cols-md-4 > * { flex: 0 0 25%; max-width: 25%; } }
@media (max-width: 992px) { [class^="col-lg"] { flex: 0 0 100%; max-width: 100%; } }
.card { background: #fff; border: 1px solid var(--pb-line); border-radius: 14px; box-shadow: var(--pb-shadow); }
.card:hover { border-color: var(--pb-green); }
.card-body { padding: 1rem 1.1rem; }
.h-100 { height: 100%; }

/* ---- tables ---- */
.table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.table th, .table td { padding: .65rem .75rem; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: middle; }
.table thead th { color: var(--pb-muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--pb-line); }
.table-sm th, .table-sm td { padding: .45rem .6rem; }
.table-hover tbody tr:hover { background: var(--pb-bg-soft); }
/* .table's own th/td alignment outweighs bare .text-end — restate at higher
   specificity so numeric columns can right-align */
.table th.text-end, .table td.text-end { text-align: right; }

/* ---- compare page: centered readable measure, paired switcher tables ---- */
.pb-cmp { max-width: 52rem; margin: 0 auto; }
/* head-to-head banner: name | vs | name stay on one grid row at every width */
.pb-cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 .75rem; align-items: start; }
.pb-cmp-head > div { min-width: 0; }
.pb-cmp-head .display-6 { overflow-wrap: anywhere; }
/* side colors follow the vs-bars (A dark green, B light green). The bar
   tint #a9d7b6 is 1.6:1 on white, unreadable as text, so side B's name
   uses a legible light green and the exact-tint dot maps it to the bars.
   body:not(.home) prefix so these outrank the generic main-link color. */
body:not(.home) .pb-cmp-head .pb-side-a a { color: var(--pb-green-dark); }
body:not(.home) .pb-cmp-head .pb-side-b a { color: #4e9b67; }
.pb-cmp-head .pb-dot { width: .8rem; height: .8rem; vertical-align: 1px; }
.pb-cmp-vs { align-self: center; }
@media (max-width: 560px) { .pb-cmp-head .display-6 { font-size: 1.3rem; } }
.pb-cmp-switch { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 992px) { .pb-cmp-switch.pb-cmp-2col { grid-template-columns: 1fr 1fr; } }
.pb-cmp-switch > div { min-width: 0; }

/* ---- domain page: recent-changes list breathing room ---- */
.pb-changes li { margin-bottom: .6rem; }
.pb-changes li:last-child { margin-bottom: 0; }
.pb-changes .badge { min-width: 4.9em; text-align: center; }

/* ---- domain page grid: stack left + sidebar right on desktop; on phones
   the summary blocks (audience/OPR/search traffic) jump above the stack ---- */
.pb-dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.pb-dgrid > div { min-width: 0; }
@media (max-width: 992px) { .pb-dtop { order: -1; } }
@media (min-width: 993px) {
  .pb-dgrid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "main atop" "main arest"; grid-template-rows: auto 1fr;
    column-gap: 2.5rem; row-gap: 0; }
  .pb-dmain { grid-area: main; }
  .pb-dtop { grid-area: atop; }
  .pb-drest { grid-area: arest; }
}

/* ---- history page: tenure chips + timeline rail ---- */
/* 70rem = the 1160px container's content width; chips flow 4-up on large
   desktops (52rem capped them at 3-up, Akash 2026-07-16) */
.pb-hist { max-width: 70rem; margin: 0 auto; }
.pb-hist h1 { overflow-wrap: anywhere; }
.pb-spark svg { display: block; width: 100%; height: 92px; }
.pb-spark-line { fill: none; stroke: var(--pb-green); stroke-width: 2; }
.pb-spark-area { fill: var(--pb-green); opacity: .12; }
.pb-spark-x { display: flex; justify-content: space-between;
  color: var(--pb-muted); font-size: .78rem; margin-top: .2rem; }
/* intrinsic-width chips in a wrapping flow: every chip is exactly as wide
   as its "Name  since Mon YYYY" content, so long names never wrap and rows
   never stretch to a tall neighbor (the old fixed 240px grid did both) */
.pb-now { display: flex; flex-wrap: wrap; gap: .5rem .55rem; padding: 0;
  margin: .75rem 0 0; list-style: none; }
.pb-now li { display: inline-flex; align-items: baseline; gap: .55rem;
  background: #fff; border: 1px solid var(--pb-line); border-radius: 10px;
  padding: .42rem .8rem; max-width: 100%; }
.pb-now li a { font-weight: 600; }
.pb-now .pb-since { color: var(--pb-muted); font-size: .8rem; white-space: nowrap; }
.pb-past li { background: var(--pb-bg-soft); }
.pb-tl { position: relative; margin: .9rem 0 0 .35rem; padding-left: 1.6rem;
  border-left: 2px solid var(--pb-line); }
.pb-tl-year { position: relative; margin: 1.5rem 0 .65rem; }
.pb-tl-year:first-child { margin-top: .2rem; }
.pb-tl-year::before { content: ''; position: absolute; left: calc(-1.6rem - 5px);
  top: .18em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--pb-green); box-shadow: 0 0 0 3px #fff; }
.pb-tl ul { list-style: none; padding: 0; margin: 0 0 .4rem; }
.pb-tl li { margin-bottom: .55rem; display: flex; align-items: baseline;
  gap: .55rem; flex-wrap: wrap; }
.pb-tl .badge { min-width: 4.9em; text-align: center; }
.pb-tl-year-n { color: var(--pb-muted); font-size: .8rem; font-weight: 400; margin-left: .3rem; }
.pb-sw-arrow { color: var(--pb-muted); }
.text-bg-switch { background: var(--pb-ink); color: #fff; }

/* ---- badges ---- */
.badge { display: inline-block; padding: .28em .75em; font-size: .76rem; font-weight: 600; border-radius: 999px; line-height: 1.2; }
.text-bg-light { background: var(--pb-bg-soft); color: var(--pb-body); border: 1px solid var(--pb-line); }
.text-bg-success { background: var(--pb-green); color: #fff; }
.text-bg-danger { background: #e5533c; color: #fff; }
.text-bg-warning { background: #d99a26; color: #fff; } /* CWV needs-improvement */
/* sidebar CWV: content-width table so values sit next to their labels */
.pb-cwv { width: auto; }
.pb-cwv td:first-child { color: var(--pb-muted); padding-right: 1.1rem; }
/* tech-page CWV: one row of stat chips instead of a lopsided half column */
.pb-cwv-strip { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: .35rem 0 .5rem; }
.pb-cwv-chip { border: 1px solid var(--pb-line); border-radius: 999px; background: #fff;
  padding: .3rem .4rem .3rem .8rem; color: var(--pb-muted); font-size: .88rem;
  display: inline-flex; align-items: center; gap: .45rem; }
/* phones: shrink the four chips so LCP/INP/CLS/TTFB sit on one line */
@media (max-width: 480px) {
  .pb-cwv-strip { gap: .35rem .4rem; }
  .pb-cwv-chip { font-size: .76rem; padding: .22rem .28rem .22rem .55rem; gap: .3rem; }
  .pb-cwv-chip .badge { font-size: .66rem; padding: .24em .5em; }
}
/* phones: drop a table's nice-to-have columns instead of x-scrolling,
   swap in short header labels, and tighten the type a notch */
.pb-xs-only { display: none; }
@media (max-width: 560px) {
  .pb-xs-hide { display: none; }
  .pb-xs-only { display: inline; }
  .pb-scroll-x .table { font-size: .82rem; }
  .pb-scroll-x .table th, .pb-scroll-x .table td { padding: .3rem .35rem; }
}
/* tech-page authority tiers: each bar = the tech's share of one web-wide
   Open Page Rank tier (share-of-tier keeps 9+ and 5+ bars comparable even
   though the tiers differ by three orders of magnitude in size) */
.pb-tiers { display: grid; gap: .55rem; max-width: 640px; margin: .45rem 0 .6rem; }
.pb-tier { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) minmax(11.5rem, auto);
  align-items: center; gap: .8rem; }
.pb-tier-label { font-weight: 700; color: var(--pb-ink); font-size: .95rem;
  text-align: right; font-variant-numeric: tabular-nums; }
.pb-tier-track { height: 12px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.pb-tier-fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--pb-green-dark), var(--pb-green)); }
.pb-tier-n { font-size: .88rem; color: var(--pb-muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.pb-tier-n strong { color: var(--pb-ink); }
@media (max-width: 560px) {
  .pb-tier { grid-template-columns: 2.4rem minmax(0, 1fr); row-gap: .15rem; }
  .pb-tier-n { grid-column: 2; }
}
/* tech-page top countries: compact responsive grid; the count hugs its
   country name, the leftover cell width separates it from the next one */
.pb-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .4rem 2.2rem; margin: .35rem 0 .5rem; }
.pb-cgrid-item { display: flex; justify-content: flex-start; align-items: baseline;
  gap: .55rem; border-bottom: 1px solid var(--pb-line); padding: .3rem 0; }
.pb-cgrid-n { font-variant-numeric: tabular-nums; color: var(--pb-muted); }
/* compare page: per-country A-vs-B split bars */
.pb-cmp-cwv { width: auto; min-width: 60%; }
.pb-cmp-crow { display: grid; grid-template-columns: minmax(130px, 170px) 78px 1fr 78px;
  gap: .6rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--pb-line); }
.pb-cmp-cname { min-width: 0; overflow-wrap: anywhere; }
.pb-cmp-cn { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--pb-muted); }
.pb-vsbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #eef0f4; }
.pb-vsbar span { display: block; height: 100%; }
.pb-vsbar-a, .pb-dot-a { background: var(--pb-green-dark); }
.pb-vsbar-b, .pb-dot-b { background: #a9d7b6; } /* light green vs dark green */
.pb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; vertical-align: -1px; }
@media (max-width: 479px) {
  .pb-cmp-crow { grid-template-columns: 1fr 70px 70px; }
  .pb-cmp-crow .pb-vsbar { grid-column: 1 / -1; order: 4; }
}
/* self-hosted country flags (assets/flags/, 4x3 SVGs) */
.pb-flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--pb-line); vertical-align: -2px; margin-right: .4rem; }
.pb-countries li { margin-bottom: .3rem; }
/* audience device split: stacked bar + icon legend */
.pb-devbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden;
  background: #eef0f4; margin: .4rem 0 .5rem; }
.pb-devbar span { display: block; height: 100%; }
.pb-devbar .pb-dev-phone { background: var(--pb-green-dark); }
.pb-devbar .pb-dev-desktop { background: var(--pb-green); }
.pb-devbar .pb-dev-tablet { background: #b9d9c3; }
.pb-devleg { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.pb-devleg li { display: flex; align-items: center; gap: .35rem; color: var(--pb-muted); }
.pb-devleg svg { width: 16px; height: 16px; flex: none; }
.pb-devleg li.pb-dev-phone svg { color: var(--pb-green-dark); }
.pb-devleg li.pb-dev-desktop svg { color: var(--pb-green); }
.pb-devleg li.pb-dev-tablet svg { color: #8fbf9d; }
.pb-devleg strong { color: var(--pb-ink); }
.rank-b { display: inline-block; min-width: 4.5em; text-align: center; }

/* ---- list groups ---- */
.list-group { list-style: none; padding: 0; margin: 0 0 1rem; border: 1px solid var(--pb-line); border-radius: 12px; overflow: hidden; }
.list-group-item { padding: .6rem .9rem; border-bottom: 1px solid var(--pb-line); background: #fff; }
.list-group-item:last-child { border-bottom: 0; }
.list-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.list-inline-item { display: inline-block; }
.list-unstyled { list-style: none; padding: 0; }

/* ---- breadcrumb ---- */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--pb-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: .4rem; color: #9ca3af; }

/* ---- alerts ---- */
.alert { padding: 1rem 1.2rem; border-radius: var(--pb-radius); margin-bottom: 1rem; border: 1px solid transparent; }
.alert-secondary { background: var(--pb-bg-soft); border-color: var(--pb-line); }
.alert-info { background: #eaf4fb; border-color: #cfe6f5; }
.alert-primary { background: #eaf6e8; border-color: #cfe8ca; }
.alert-success { background: #eaf6e8; border-color: var(--pb-green); }
.alert-warning { background: #fdf3e4; border-color: #f3d9a8; }

/* ---- pagination ---- */
.pagination { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 1rem 0; }
.page-link { display: block; padding: .4rem .8rem; border: 1px solid var(--pb-line); border-radius: 8px; color: var(--pb-body); }
.page-link:hover { border-color: var(--pb-green); text-decoration: none; }
.page-item.disabled .page-link { color: var(--pb-muted); background: var(--pb-bg-soft); }

/* ---- forms (scoped: the homepage's hero/banner forms are theme-styled) ---- */
body:not(.home) .form-control, body:not(.home) .form-select { width: 100%; height: 44px; padding: 0 .9rem; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); font: inherit; }
body:not(.home) .form-control:focus, body:not(.home) .form-select:focus { outline: none; border-color: var(--pb-green); }
body:not(.home) textarea.form-control { height: auto; padding: .6rem .9rem; }
body:not(.home) .form-label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; }

/* ---- utilities used in templates ---- */
.d-flex { display: flex; } .justify-content-between { justify-content: space-between; } .align-middle td, .align-middle th { vertical-align: middle; }
.flex-grow-1 { flex: 1; } .text-break { word-break: break-word; } .text-uppercase { text-transform: uppercase; }
.bg-body-tertiary { background: var(--pb-bg-soft); } .border-top { border-top: 1px solid var(--pb-line); }
.text-decoration-none { text-decoration: none; }
[hidden] { display: none !important; }

main.full { padding: 0; }

/* ---- homepage hero preview cards ----
   Browser-window mockups matching the old hero-preview.svg design, but built
   from real lookup data (controller rotates the domains hourly). */
/* no display here: grid items blockify on their own, and an unlayered display
   would override the theme's layered max-md:hidden on the 2nd/3rd cards */
.pb-mock { background: #fff; border: 1px solid var(--pb-line); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(18, 0, 54, .12); overflow: hidden; text-decoration: none; }
.pb-mock:hover { text-decoration: none; border-color: var(--pb-green); }
.pb-mock-bar { display: flex; align-items: center; gap: .4rem; background: #f6f9f6;
  padding: .65rem .9rem; border-bottom: 1px solid var(--pb-line); }
.pb-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.pb-mock-url { flex: 1; min-width: 0; margin-left: .35rem; background: #eef2ef; border-radius: 999px;
  padding: .18rem .8rem; font-size: .85rem; color: var(--pb-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-mock-body { display: block; padding: 1.05rem 1.2rem 1.2rem; }
.pb-mock-title { display: block; font-family: var(--pb-font); font-size: 1.18rem; font-weight: 800;
  color: #120036; letter-spacing: -.01em; }
.pb-mock-meta { display: block; font-size: .82rem; color: var(--pb-muted); margin: .15rem 0 .7rem; }
.pb-mock-row { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; }
.pb-check { width: 20px; height: 20px; border-radius: 50%; background: #eaf6e8; flex: none;
  display: inline-flex; align-items: center; justify-content: center; }
.pb-check svg { width: 11px; height: 11px; display: block; }
.pb-mock-name { font-size: .92rem; font-weight: 600; color: var(--pb-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-mock-cat { margin-left: auto; padding-left: .6rem; flex: none; font-size: .76rem; color: var(--pb-muted); }
.pb-mock-btn { display: inline-block; margin-top: .8rem; background: var(--pb-green); color: #fff;
  font-weight: 700; font-size: .85rem; border-radius: 10px; padding: .5rem 1.15rem; }
.pb-mock:hover .pb-mock-btn { background: #120036; }

/* ---- documentation pages (doc_layout(): methodology, bot) ----
   Prose keeps a readable 46rem measure; the rest of the width carries a
   sticky "On this page" contents list. */
.doc-grid { display: grid; grid-template-columns: minmax(0, 46rem) 15rem; justify-content: space-between;
  gap: 2rem 3rem; }
.doc-main { min-width: 0; }
.doc-main h2 { scroll-margin-top: 1.25rem; }
.doc-toc { position: sticky; top: 2rem; border-left: 2px solid var(--pb-line); padding-left: 1.15rem;
  font-size: .9rem; line-height: 1.45; }
.doc-toc .toc-head { display: block; font-family: var(--pb-font); font-weight: 700; color: var(--pb-ink);
  font-size: .95rem; margin-bottom: .7rem; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
body:not(.home) .doc-toc a { color: var(--pb-muted); text-decoration: none; }
body:not(.home) .doc-toc a:hover { color: var(--pb-green-dark); text-decoration: none; }
@media (max-width: 1023px) {
  .doc-grid { grid-template-columns: minmax(0, 46rem); }
  .doc-aside { display: none; }
}

/* ---- shared bottom CTA banner (templates/_cta.php, every page) ----
   Deliberately self-contained pb-* rules: unlayered, so it renders the same
   with the theme CSS (homepage) and without it (inner pages). section.pb-cta
   selectors outrank the body:not(.home) element rules above. */
.pb-cta { background: #1d2135 url('/assets/theme/images/bg-02.jpg') center / cover no-repeat;
  padding: 4.5rem 20px 4.75rem; text-align: center; }
section.pb-cta h2 { color: #fff; font-family: var(--pb-font); font-weight: 700; margin: 0 0 .3em;
  font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.75rem); letter-spacing: -.02em; line-height: 1.25; }
section.pb-cta p { color: rgba(255, 255, 255, .88); font-size: clamp(1.02rem, .9rem + .5vw, 1.35rem);
  margin: 0 auto 1.9rem; }
.pb-cta form { display: flex; gap: .4rem; background: #fff; border-radius: 10px; padding: 6px;
  max-width: 580px; margin: 0 auto; }
.pb-cta input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent;
  padding: 0 1.1rem; font: inherit; font-size: 1.05rem; color: var(--pb-ink); border-radius: 8px; }
.pb-cta input:focus { outline: none; }
.pb-cta button { height: 52px; border: 0; background: var(--pb-green); color: #fff; cursor: pointer;
  font-family: var(--pb-font); font-weight: 700; font-size: 1rem; padding: 0 2.1rem; border-radius: 8px;
  transition: background .15s; }
.pb-cta button:hover { background: var(--pb-ink); }
.pb-cta-note { display: flex; justify-content: center; align-items: center; gap: .9rem;
  margin-top: 1.5rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.pb-cta-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .4); }
@media (max-width: 560px) {
  .pb-cta form { flex-direction: column; background: transparent; padding: 0; gap: .7rem; }
  /* flex:1 has basis 0, which collapses the input's height once the form's
     main axis turns vertical: reset it so height:52px applies */
  .pb-cta input { background: #fff; width: 100%; flex: none; }
  .pb-cta button { width: 100%; }
}

/* ===== theme animation override (homepage) =====
   The HexTone markup uses WOW.js + animate.css (.wow) which hides elements
   until scroll-triggered by jQuery. We don't ship that heavy JS (100KB+), so
   force all animated elements visible and static. */
.wow, .animate__animated { visibility: visible !important; opacity: 1 !important;
  animation: none !important; transform: none !important; }
