/*
Theme Name: SerpTested
Theme URI: https://serptested.com/
Author: SerpTested
Description: The SerpTested site theme. Pages are laid out like a results page: blue is a claim, purple is something we checked.
Version: 0.3.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: serptested
*/

/* Fonts are served from this site. Schibsted Grotesk and Source Serif 4 are licensed under the SIL Open Font License 1.1. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/source-serif-4-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/source-serif-4-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --band: #f3f4f6;
  --rule: #dadce0;
  --rule-strong: #80868b;
  --ink: #202124;
  --ink-soft: #4d5156;
  --ink-faint: #5f6368;
  --link: #1a0dab;
  --visited: #681da8;
  --on-visited: #ffffff;
  --link-tint: #e8e7f6;
  --visited-tint: #f0e6f7;
  --mark: #ffe566;
  --pass: #137333;
  --pass-tint: #e3f3e8;
  --miss: #b3261e;
  --miss-tint: #fbe9e7;
  --focus: var(--link);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* SerpTested components. Colours, spacing, radii and font stacks come from tokens.css.
   Layout idea: the site is laid out like a results page. Logo left, search and tabs above
   one reading column, a narrow panel to the right. Blue is a claim, purple is something we checked. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 31px;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:visited, a.is-visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
mark { background: var(--mark); color: var(--ink); padding: 0 0.15em; border-radius: var(--radius-sm); }

/* ---------- type ---------- */
.st-display { font: 800 56px/58px var(--font-sans); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.st-h1 { font: 800 40px/44px var(--font-sans); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.st-finding { font: 800 30px/35px var(--font-sans); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.st-h2 { font: 700 27px/33px var(--font-sans); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.st-h3 { font: 700 20px/26px var(--font-sans); margin: 0; }
.st-lede { font: 400 22px/33px var(--font-serif); color: var(--ink-soft); margin: 0; }
.st-body { font: 400 19px/31px var(--font-serif); margin: 0; }
.st-snippet { font: 400 16px/25px var(--font-serif); color: var(--ink-soft); margin: 0; }
.st-ui { font: 500 15px/20px var(--font-sans); margin: 0; }
.st-data { font: 600 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; margin: 0; }
.st-meta { font: 400 14px/20px var(--font-sans); color: var(--ink-faint); margin: 0; }
.st-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- logo ---------- */
.st-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 23px/1 var(--font-sans); letter-spacing: -0.025em; color: var(--ink); text-decoration: none; }
.st-logo:visited { color: var(--ink); }
.st-logo svg { width: 34px; height: 34px; flex: none; }
.st-logo-lg { font-size: 44px; gap: 18px; }
.st-logo-lg svg { width: 64px; height: 64px; }
.st-mark-ground { fill: var(--visited); }
.st-mark-line { fill: none; stroke: var(--on-visited); stroke-width: 56; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font: 600 15px/20px var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.st-btn:visited { color: var(--ink); }
.st-btn:hover { border-color: var(--ink); text-decoration: none; }
.st-btn-primary, .st-btn-primary:visited { background: var(--visited); border-color: var(--visited); color: var(--on-visited); }
.st-btn-primary:hover { border-color: var(--visited); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- chips ---------- */
.st-chip { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--band); color: var(--ink-soft); font: 600 13px/18px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-chip-pass { background: var(--pass-tint); color: var(--pass); }
.st-chip-miss { background: var(--miss-tint); color: var(--miss); }
.st-chip-tested { background: var(--visited-tint); color: var(--visited); }

/* ---------- header ---------- */
.st-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.st-header-in { max-width: 1180px; margin: 0 auto; padding: var(--space-4) var(--space-5) 0; display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; column-gap: var(--space-5); row-gap: var(--space-3); align-items: center; }
.st-search { display: flex; max-width: 620px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--paper); }
.st-search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.st-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/22px var(--font-sans); padding: 10px var(--space-3); outline: none; }
.st-search input::placeholder { color: var(--ink-faint); opacity: 1; }
.st-search button { border: 0; border-left: 1px solid var(--rule); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: transparent; color: var(--link); font: 600 15px/20px var(--font-sans); padding: 0 var(--space-4); cursor: pointer; }
.st-tabs { grid-column: 2 / -1; display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs a { flex: none; padding: var(--space-2) 0 9px; border-bottom: 3px solid transparent; color: var(--ink-faint); font: 500 15px/20px var(--font-sans); text-decoration: none; }
.st-tabs a:visited { color: var(--ink-faint); }
.st-tabs a:hover { color: var(--ink); }
.st-tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--visited); }

/* ---------- page grid: rail | reading column | side panel ---------- */
.st-page { max-width: 1180px; margin: 0 auto; padding: var(--space-5) var(--space-5) var(--space-8); display: grid; grid-template-columns: 168px minmax(0, 620px) minmax(0, 296px); column-gap: var(--space-5); align-items: start; }
.st-rail { grid-column: 1; }
.st-main { grid-column: 2; min-width: 0; }
.st-side { grid-column: 3; min-width: 0; display: grid; gap: var(--space-5); }
.st-count { font: 400 14px/20px var(--font-sans); color: var(--ink-faint); margin: 0 0 var(--space-4); }
.st-section { margin-top: var(--space-7); display: grid; gap: var(--space-4); }

.st-rail h2 { font: 700 13px/18px var(--font-sans); color: var(--ink-faint); margin: 0 0 var(--space-2); }
.st-rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-rail a { display: block; padding: 4px 0; color: var(--ink-soft); font: 400 14px/20px var(--font-sans); text-decoration: none; }
.st-rail a:visited { color: var(--ink-soft); }
.st-rail a:hover { color: var(--ink); text-decoration: underline; }
.st-rail a[aria-current] { color: var(--ink); font-weight: 700; }
.st-rail-sticky { position: sticky; top: var(--space-5); }

/* ---------- result rows ---------- */
.st-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.st-result { display: grid; gap: var(--space-1); }
.st-result-path { font: 400 14px/20px var(--font-sans); color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.st-result-title { font: 600 21px/27px var(--font-sans); margin: 0; text-wrap: pretty; }
.st-result-title a { text-decoration: none; }
.st-result-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.st-result-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-1) 0 0; font: 400 14px/20px var(--font-sans); color: var(--ink-faint); }

/* ---------- answer box ---------- */
.st-answer { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-4); background: var(--paper); }
.st-answer .st-snippet { max-width: 58ch; }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3) var(--space-5); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.st-facts > div { min-width: 0; }
.st-facts dt { font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }
.st-facts dd { margin: 0; font: 600 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.st-facts-stack { grid-template-columns: minmax(0, 1fr); padding-top: 0; border-top: 0; }

/* ---------- claim bars: outlined = what the tool says, solid = what we measured ---------- */
.st-bars { margin: 0; display: grid; gap: var(--space-2); }
.st-bars figcaption { font: 400 14px/20px var(--font-sans); color: var(--ink-faint); margin-bottom: var(--space-1); }
.st-bars-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 58px 52px; grid-template-areas: "name track val diff"; column-gap: var(--space-3); align-items: center; font: 500 14px/20px var(--font-sans); }
.st-bars-name { grid-area: name; }
.st-bars-track { grid-area: track; position: relative; height: 20px; }
.st-bars-val { grid-area: val; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-bars-diff { grid-area: diff; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.st-bars-diff.is-miss { color: var(--miss); }
.st-bars-diff.is-pass { color: var(--pass); }
.st-bar { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--v) * 1%); border-radius: var(--radius-sm); }
.st-bar-claim { border: 2px solid var(--link); background: var(--link-tint); }
.st-bar-measured { background: var(--visited); }
.st-bars-ref .st-bars-track::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: calc(var(--ref) * 1%); border-left: 2px dashed var(--visited); }
.st-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-1) 0 0; padding: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }
.st-key { display: inline-block; width: 18px; height: 10px; margin-right: 6px; border-radius: 2px; }
.st-key-claim { border: 2px solid var(--link); background: var(--link-tint); }
.st-key-measured { background: var(--visited); }

/* ---------- people also ask ---------- */
.st-asked { border-top: 1px solid var(--rule); }
.st-asked details { border-bottom: 1px solid var(--rule); }
.st-asked summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; font: 600 17px/24px var(--font-sans); }
.st-asked summary::-webkit-details-marker { display: none; }
.st-asked summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: rotate(45deg); transition: transform 0.15s; }
.st-asked details[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.st-asked details p { font: 400 16px/25px var(--font-serif); color: var(--ink-soft); margin: 0 0 var(--space-4); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .st-asked summary::after { transition: none; } }

/* ---------- tester panel ---------- */
.st-panel { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; }
.st-panel-head { display: flex; align-items: center; gap: var(--space-3); }
.st-avatar { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--visited-tint); color: var(--visited); font: 800 20px/1 var(--font-sans); }
.st-panel-name { font: 700 19px/24px var(--font-sans); margin: 0; }
.st-panel-title { font: 700 16px/22px var(--font-sans); margin: 0; }
.st-panel > p { font: 400 15px/23px var(--font-serif); color: var(--ink-soft); margin: 0; }
.st-panel-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; font: 500 14px/20px var(--font-sans); }

/* ---------- table ---------- */
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font: 400 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.st-table caption { caption-side: top; text-align: left; padding-bottom: var(--space-2); font: 400 14px/20px var(--font-sans); color: var(--ink-faint); }
.st-table th, .st-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.st-table thead th { border-bottom: 2px solid var(--ink); font-weight: 700; vertical-align: bottom; }
.st-table tbody th { font-weight: 600; }
.st-table .num { text-align: right; }
.st-table .is-reference th, .st-table .is-reference td { background: var(--visited-tint); }

/* ---------- notes ---------- */
.st-note { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--band); }
.st-note h3 { font: 700 16px/22px var(--font-sans); margin: 0; }
.st-note p, .st-note li { font: 400 16px/25px var(--font-serif); color: var(--ink-soft); margin: 0; }
.st-note ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-1); }
.st-disclosure { font: 400 14px/20px var(--font-sans); color: var(--ink-faint); margin: 0; }

/* ---------- post ---------- */
.st-post-head { grid-column: 2 / -1; grid-row: 1; display: grid; gap: var(--space-3); max-width: 820px; margin-bottom: var(--space-6); }
.st-post .st-rail, .st-post .st-main, .st-post .st-side { grid-row: 2; }
.st-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-1); font: 400 14px/20px var(--font-sans); color: var(--ink-soft); }
.st-byline .st-avatar { width: 36px; height: 36px; font-size: 14px; }
.st-byline strong { color: var(--ink); font-weight: 700; }
.st-prose { display: grid; gap: var(--space-4); }
.st-prose > h2 { font: 700 27px/33px var(--font-sans); letter-spacing: -0.01em; margin: var(--space-5) 0 0; text-wrap: balance; }
.st-prose > p, .st-prose > ol > li, .st-prose > ul > li { font: 400 19px/31px var(--font-serif); margin: 0; }
.st-prose > ol, .st-prose > ul { margin: 0; padding-left: 1.3em; display: grid; gap: var(--space-2); }

/* ---------- footer ---------- */
.st-footer { border-top: 1px solid var(--rule); background: var(--band); }
.st-footer-in { max-width: 1180px; margin: 0 auto; padding: var(--space-6) var(--space-5); display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: var(--space-5); row-gap: var(--space-6); }
.st-related { grid-column: 2; display: grid; gap: var(--space-3); }
.st-related ul { list-style: none; margin: 0; padding: 0; max-width: 620px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.st-related a { display: block; padding: var(--space-3) var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font: 500 15px/20px var(--font-sans); text-decoration: none; }
.st-related a:visited, .st-related a.is-visited { color: var(--visited); }
.st-related a:hover { border-color: var(--rule-strong); text-decoration: underline; }
.st-footer-base { grid-column: 1 / -1; display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: var(--space-5); row-gap: var(--space-3); align-items: start; padding-top: var(--space-5); border-top: 1px solid var(--rule); }
.st-footer-base p { font: 400 14px/21px var(--font-sans); color: var(--ink-soft); margin: 0; max-width: 64ch; }
.st-footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-3) 0 0; padding: 0; font: 500 14px/20px var(--font-sans); }
.st-footer-links a, .st-footer-links a:visited { color: var(--ink-soft); }

/* ---------- preview helpers ---------- */
.st-demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-5); }
.st-demo-col { display: grid; gap: var(--space-5); padding: var(--space-5); max-width: 700px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .st-page { grid-template-columns: 168px minmax(0, 1fr); }
  .st-side { grid-column: 2; margin-top: var(--space-6); }
  .st-post .st-side { grid-row: 3; }
}
@media (max-width: 760px) {
  .st-h1 { font-size: 32px; line-height: 36px; }
  .st-finding { font-size: 25px; line-height: 30px; }
  .st-lede { font-size: 19px; line-height: 29px; }
  .st-header-in { grid-template-columns: minmax(0, 1fr) auto; padding-inline: var(--space-4); }
  .st-header-in > .st-logo { grid-column: 1; grid-row: 1; }
  .st-header-in > .st-btn { grid-column: 2; grid-row: 1; min-height: 36px; padding: 0 var(--space-3); }
  .st-search { grid-column: 1 / -1; max-width: none; }
  .st-tabs { grid-column: 1 / -1; gap: var(--space-4); }
  .st-page { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-4); padding-bottom: var(--space-7); }
  .st-rail, .st-main, .st-side, .st-post-head { grid-column: 1; }
  .st-post .st-rail, .st-post .st-main, .st-post .st-side { grid-row: auto; }
  .st-post-head { grid-row: auto; margin-bottom: var(--space-5); }
  .st-rail { margin-bottom: var(--space-5); }
  .st-rail-sticky { position: static; }
  .st-rail ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
  .st-answer, .st-panel { padding: var(--space-4); }
  .st-bars-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name val diff" "track track track"; row-gap: var(--space-1); }
  .st-bars-diff { min-width: 44px; }
  .st-prose > p, .st-prose > ol > li, .st-prose > ul > li { font-size: 18px; line-height: 29px; }
  .st-footer-in, .st-footer-base { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-4); }
  .st-footer-base { padding-inline: 0; }
  .st-related { grid-column: 1; }
  .st-related ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--visited); color: var(--on-visited); font: 600 15px/20px var(--font-sans); }
.st-skip:visited { color: var(--on-visited); }
.st-skip:focus { top: var(--space-2); }
.st-header-flat { padding-bottom: var(--space-4); }
h1.st-count { margin-bottom: var(--space-4); }
.st-empty { display: grid; gap: var(--space-4); padding-block: var(--space-6); max-width: 34em; }
.st-legend-stack { display: grid; gap: var(--space-2); margin: 0; }
.st-results-list { margin-top: var(--space-5); }
.st-page-title { margin-bottom: var(--space-5); }
.st-footer-base-only { padding-top: 0; border-top: 0; }
.st-footer-copy { margin-top: var(--space-3); color: var(--ink-faint); }
.st-footer-base .st-footer-copy { color: var(--ink-faint); }
.st-preview-flag { margin: 0; padding: var(--space-2) var(--space-5); background: var(--mark); color: var(--ink); font: 600 14px/20px var(--font-sans); text-align: center; }

/* home: hero, steps and sections */
.st-hero { display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-2); }
.st-hero .st-lede { max-width: 30em; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: st-step; }
.st-steps li { counter-increment: st-step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--space-3); row-gap: 2px; }
.st-steps li::before { content: counter(st-step); grid-row: 1 / span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--visited-tint); color: var(--visited); font: 800 16px/1 var(--font-sans); }
.st-steps h3 { grid-column: 2; margin: 4px 0 0; font: 700 17px/24px var(--font-sans); }
.st-steps p { grid-column: 2; margin: 0; font: 400 16px/25px var(--font-serif); color: var(--ink-soft); }
.st-topics { gap: var(--space-5); }
.st-topics .st-result-title { color: var(--ink); }

/* author photo and profile */
.st-avatar-photo { display: block; object-fit: cover; object-position: 50% 12%; }
.st-panel-name a, .st-panel-name a:visited { color: var(--ink); text-decoration: none; }
.st-panel-name a:hover { text-decoration: underline; }
.st-byline a { font-weight: 700; }
.st-author { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.st-author .st-avatar { width: 120px; height: 120px; border-radius: var(--radius-lg); font-size: 40px; }
.st-author-title { margin: var(--space-2) 0 0; font: 400 17px/24px var(--font-sans); color: var(--ink-soft); }
.st-author-facts { margin-top: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.st-author-links { margin-top: var(--space-4); font-size: 15px; }
@media (max-width: 760px) {
  .st-author { align-items: flex-start; gap: var(--space-4); }
  .st-author .st-avatar { width: 88px; height: 88px; }
}

/* pages and posts */
.st-page-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.st-prose h2 { scroll-margin-top: var(--space-5); }
.st-post-head .st-disclosure { max-width: 60ch; }

.st-pager { margin-top: var(--space-6); font: 500 15px/20px var(--font-sans); }
.st-pager .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.st-pager .page-numbers.current { color: var(--ink); font-weight: 700; }

/* content written in the editor */
.st-prose > h3 { font: 700 20px/26px var(--font-sans); margin: var(--space-3) 0 0; }
.st-prose > h4 { font: 700 17px/24px var(--font-sans); margin: var(--space-2) 0 0; }
.st-prose > blockquote { margin: 0; padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--radius-md); background: var(--band); }
.st-prose > blockquote p { font: 400 19px/31px var(--font-serif); margin: 0; }
.st-prose > blockquote cite { display: block; margin-top: var(--space-2); font: 400 14px/20px var(--font-sans); font-style: normal; color: var(--ink-faint); }
.st-prose > figure, .st-prose > .wp-block-image { margin: var(--space-2) 0; }
.st-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.st-prose figcaption { margin-top: var(--space-2); font: 400 14px/20px var(--font-sans); color: var(--ink-faint); text-align: left; }
.st-prose > hr, .st-prose > .wp-block-separator { width: 100%; margin: var(--space-4) 0; border: 0; border-top: 1px solid var(--rule); }
.st-prose code { font-size: 0.9em; padding: 1px 5px; border-radius: var(--radius-sm); background: var(--band); }
.st-prose pre { margin: 0; padding: var(--space-4); overflow-x: auto; border-radius: var(--radius-md); background: var(--band); font-size: 15px; line-height: 23px; }
.st-prose pre code { padding: 0; background: none; }
.st-prose > .wp-block-table, .st-prose > table { margin: 0; overflow-x: auto; }
.st-prose table { width: 100%; border-collapse: collapse; font: 400 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.st-prose table th, .st-prose table td { padding: var(--space-2) var(--space-3); border: 0; border-bottom: 1px solid var(--rule); text-align: left; }
.st-prose table thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.st-prose > .alignwide, .st-prose > .alignfull { max-width: 100%; }

@media (max-width: 760px) {
  .st-display { font-size: 38px; line-height: 41px; }
  .st-preview-flag { padding-inline: var(--space-4); }
}
