/*
Theme Name: Swindon Today
Theme URI: https://swindontoday.co.uk
Author: Swindon Today
Description: A clean, fast local news theme. Featured story on top, latest stories below. No categories, no clutter.
Version: 2.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swindon-today
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --st-accent: #0E7C66;
  --st-accent-dark: #0A5E4E;
  --st-sun: #F4B63F;
  --st-ink: #14181F;
  --st-ink-soft: #4A5260;
  --st-muted: #636A75;
  --st-line: #E6E8EB;
  --st-bg: #FFFFFF;
  --st-bg-soft: #F6F7F5;
  --st-dark: #14181F;
  color-scheme: light;
  --st-radius: 10px;
  --st-max: 1200px;
  --st-serif: "Bricolage Grotesque", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --st-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--st-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--st-ink);
  background: var(--st-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--st-accent); }
:focus-visible { outline: 3px solid var(--st-sun); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto;
  background: var(--st-ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}

.st-wrap { max-width: var(--st-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.st-header {
  border-bottom: 1px solid var(--st-line);
  background: var(--st-bg);
  position: sticky; top: 0; z-index: 50;
}
.st-header .st-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px;
}
.st-brand { display: flex; align-items: center; gap: 12px; }
.st-brand .custom-logo { max-height: 52px; width: auto; }
.st-wordmark {
  font-family: var(--st-serif);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--st-ink);
}
.st-wordmark span { color: var(--st-accent); }
.st-wordmark::after {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--st-sun); margin-left: 4px; vertical-align: top; margin-top: 4px;
}
.st-tagline { font-size: 13px; color: var(--st-muted); margin: 4px 0 0; }

.st-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.st-nav a { font-weight: 600; font-size: 15px; }
.st-nav .current-menu-item > a { color: var(--st-accent); }

.st-social { display: flex; gap: 8px; }
.st-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--st-bg-soft); color: var(--st-ink);
  transition: background .15s, color .15s;
}
.st-social a { color: var(--brand, var(--st-ink)); }
.st-social a:hover { background: var(--brand, var(--st-accent)); color: #fff; }
.st-social svg { width: 17px; height: 17px; fill: currentColor; }

.st-menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--st-ink);
}
.st-menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Featured ---------- */
.st-featured { padding: 36px 0 12px; }
.st-featured-card {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center;
}
.st-featured-media {
  position: relative; border-radius: var(--st-radius); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--st-bg-soft);
}
.st-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.st-featured-card:hover .st-featured-media img { transform: scale(1.03); }
.st-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--st-accent);
}
.st-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-sun); }
.st-featured h2 {
  font-family: var(--st-serif); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.st-featured p.st-excerpt { color: var(--st-ink-soft); font-size: 18px; margin: 0 0 18px; }
.st-meta { font-size: 13px; color: var(--st-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.st-meta .sep::before { content: "·"; }

.st-noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--st-accent) 0%, var(--st-accent-dark) 100%);
  color: rgba(255,255,255,.9); font-family: var(--st-serif); font-size: 28px; font-weight: 700;
}

/* ---------- Home button (mobile & web app) ---------- */
.st-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--st-line);
  display: none; place-items: center; color: var(--st-ink); background: var(--st-bg);
}
.st-icon-btn svg { width: 19px; height: 19px; }
.st-icon-btn:hover, .st-icon-btn[aria-current="page"] { border-color: var(--st-accent); color: var(--st-accent); }
@media (max-width: 760px) {
  .st-mast-sub { display: none; }
  .st-header-actions { gap: 10px; }
  .st-header.is-open .st-header-right .st-social a { width: 44px; height: 44px; }
  .st-header.is-open .st-header-right .st-social svg { width: 21px; height: 21px; }
  .st-header.is-open .st-header-right .st-social { flex-wrap: wrap; }
  .st-header.is-open .st-nav a { font-size: 17px; }
}

/* ---------- Header search ---------- */
.st-hsearch { position: relative; display: flex; align-items: center; }
.st-hsearch input[type=search] {
  width: 230px; height: 40px; padding: 0 40px 0 16px; border-radius: 999px;
  border: 1px solid var(--st-line); background: var(--st-bg-soft); color: var(--st-ink);
  font: 500 14px var(--st-sans); transition: border-color .15s, width .2s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.st-hsearch input[type=search]::placeholder { color: var(--st-muted); }
.st-hsearch input[type=search]:focus { outline: none; border-color: var(--st-accent); background: var(--st-bg); width: 280px; }
.st-hsearch-go, .st-hsearch-toggle {
  border: 0; background: none; color: var(--st-ink-soft); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.st-hsearch-go { position: absolute; right: 6px; width: 30px; height: 30px; border-radius: 50%; }
.st-hsearch-go:hover { color: var(--st-accent); }
.st-hsearch svg { width: 18px; height: 18px; }
.st-hsearch-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--st-line); color: var(--st-ink); }
@media (max-width: 760px) {
  .st-hsearch-toggle { display: grid; }
  .st-hsearch input[type=search], .st-hsearch-go { display: none; }
  .st-header.is-search .st-hsearch {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--st-bg);
    padding: 12px 20px 14px; border-bottom: 1px solid var(--st-line); z-index: 60;
  }
  .st-header.is-search .st-hsearch input[type=search] { display: block; width: 100%; height: 46px; font-size: 16px; }
  .st-header.is-search .st-hsearch input[type=search]:focus { width: 100%; }
  .st-header.is-search .st-hsearch-go { display: grid; right: 26px; }
  .st-header.is-search .st-hsearch-toggle { display: none; }
}

/* ---------- Masthead header ---------- */
.st-masthead { background: var(--st-bg); text-align: center; padding: 34px 0 22px; }
.st-mast-link { display: inline-block; }
.st-mast-link:hover { color: inherit; }
.st-wordmark-xl { white-space: nowrap; font-size: clamp(44px, 8.2vw, 96px); letter-spacing: -0.045em; line-height: .95; display: inline-block; }
.st-wordmark-xl::after { width: .2em; height: .2em; margin-left: .06em; margin-top: .08em; }

.st-mast-logo { max-height: 110px; width: auto; margin: 0 auto; }
.st-mast-sub {
  margin: 14px 0 0; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted);
}
.st-mast-sub i { width: 5px; height: 5px; border-radius: 50%; background: var(--st-sun); display: inline-block; }

.st-mode-masthead .st-header { border-top: 1px solid var(--st-line); box-shadow: 0 1px 0 var(--st-line); border-bottom: 0; }
.st-mode-masthead .st-header .st-wrap { min-height: 58px; gap: 24px; }
.st-mode-masthead .st-header .st-brand { display: none; }
.st-mode-masthead .st-header .st-tagline { display: none; }
.st-mode-masthead .st-header .st-wordmark { font-size: 22px; }
.st-mode-masthead .st-header.is-stuck .st-brand { display: flex; animation: st-fade .25s ease; }
.st-mode-masthead .st-header-actions { flex: 1; }
.st-bar-date { display: none; font-size: 13px; font-weight: 600; color: var(--st-muted); }
@keyframes st-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 761px) {
  .st-mode-masthead .st-header-right { flex: 1; justify-content: space-between; }
}
@media (max-width: 760px) {
  .st-masthead { padding: 22px 0 16px; }
  .st-wordmark.st-wordmark-xl { font-size: clamp(34px, 10.6vw, 60px); white-space: nowrap; }
  .st-mast-sub { font-size: 11px; gap: 8px; margin-top: 10px; }
  .st-mast-sub span:last-child, .st-mast-sub i { display: none; }
  .st-mode-masthead .st-header .st-wrap { min-height: 54px; }
  .st-mode-masthead .st-header-actions { justify-content: flex-end; }
  .st-mode-masthead .st-bar-date { display: block; }
  .st-mode-masthead .st-header.is-stuck .st-bar-date { display: none; }
}

/* ---------- Top stories carousel ---------- */
.st-top { padding: 30px 0 4px; }
.st-top-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.st-top-head h2 { font-family: var(--st-serif); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; margin: 0; }
.st-top-controls { display: flex; align-items: center; gap: 10px; }
.st-dots { display: flex; gap: 6px; margin-right: 6px; }
.st-dots { gap: 0; }
.st-dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.st-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--st-line); transition: width .25s, background .25s; }
.st-dot.is-active::before { width: 22px; background: var(--st-accent); }
.st-dot.is-active { width: 34px; }
.st-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--st-bg);
  color: var(--st-ink); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, opacity .15s;
}
.st-arrow:hover { border-color: var(--st-accent); color: var(--st-accent); }
.st-arrow[disabled] { opacity: .35; cursor: default; }
.st-arrow svg { width: 18px; height: 18px; }
.st-top-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  gap: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.st-top-track::-webkit-scrollbar { display: none; }
.st-slide { flex: 0 0 100%; scroll-snap-align: start; }
.st-slide h3 {
  font-family: var(--st-serif); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px;
}
.st-slide .st-excerpt { color: var(--st-ink-soft); font-size: 18px; margin: 0 0 18px; }
@media (max-width: 760px) {
  .st-top { padding-top: 22px; }
  .st-top-head h2 { font-size: 24px; }
  .st-arrow { display: none; }
  .st-dots { margin-right: 0; }
  .st-top-track { gap: 14px; }
  .st-slide { flex-basis: 88%; }
  .st-slide:last-child { margin-right: 12%; }
  .st-slide h3 { font-size: 24px; margin-bottom: 10px; }
  .st-slide .st-excerpt { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Section heading ---------- */
.st-section-head {
  display: flex; align-items: center; gap: 14px; margin: 44px 0 22px;
}
.st-section-head h2 {
  font-family: var(--st-serif); font-weight: 800; font-size: 28px; margin: 0; letter-spacing: -0.03em;
}
.st-section-head::after { content: ""; flex: 1; height: 1px; background: var(--st-line); }

/* ---------- Grid ---------- */
.st-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px;
}
.st-card-media {
  border-radius: var(--st-radius); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--st-bg-soft); margin-bottom: 14px;
}
.st-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.st-card:hover .st-card-media img { transform: scale(1.04); }
.st-card h3 {
  font-family: var(--st-serif); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.st-card p { color: var(--st-ink-soft); font-size: 15px; margin: 0 0 10px; }
.st-card .st-noimg { font-size: 18px; }

.st-slot { margin: 44px 0 0; text-align: center; }

/* ---------- List layout (square photo left, text right) ---------- */
.st-list { display: flex; flex-direction: column; }
.st-list .st-card {
  display: grid; grid-template-columns: 190px 1fr; column-gap: 30px;
  grid-template-areas: "media ." "media title" "media excerpt" "media meta" "media .";
  grid-template-rows: 1fr auto auto auto 1fr;
  padding: 24px 0; border-bottom: 1px solid var(--st-line);
}
.st-list .st-card:first-child { padding-top: 0; }
.st-list .st-card > a { display: contents; }
.st-list .st-card-media { grid-area: media; aspect-ratio: 1 / 1; margin: 0; }
.st-list .st-card h3 { grid-area: title; font-size: 25px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 4px 0 10px; }
.st-list .st-card p { grid-area: excerpt; font-size: 16px; line-height: 1.55; margin: 0 0 12px; max-width: 640px; }
.st-list .st-card .st-meta { grid-area: meta; }
.st-list .st-card:hover h3 { color: var(--st-accent); }
@media (max-width: 760px) {
  .st-list .st-card {
    grid-template-columns: 108px 1fr; column-gap: 16px; padding: 18px 0;
    grid-template-areas: "media ." "media title" "media meta" "media .";
    grid-template-rows: 1fr auto auto 1fr;
  }
  .st-list .st-card h3 { font-size: 18px; margin: 0 0 8px; }
  .st-list .st-card p { display: none; }
}


/* ---------- Load more / pagination ---------- */
.st-more { text-align: center; margin: 48px 0 10px; }
.st-btn {
  display: inline-block; background: var(--st-ink); color: var(--st-bg); border: 0; cursor: pointer;
  font: 600 15px var(--st-sans); padding: 14px 30px; border-radius: 999px;
  transition: background .15s;
}
.st-btn:hover { background: var(--st-accent); color: #fff; }
.st-btn[disabled] { opacity: .6; cursor: wait; }
.st-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.st-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--st-line); border-radius: 999px; font-weight: 600; font-size: 14px;
}
.st-pagination .page-numbers.current { background: var(--st-ink); color: var(--st-bg); border-color: var(--st-ink); }
.js .st-pagination { display: none; }
.no-js .st-more { display: none; }

/* ---------- Single article ---------- */
.st-article { padding: 28px 0 20px; }
.st-article .screen-reader-text + .st-content, .st-article .st-wrap > .st-content:first-child { margin-top: 8px; }
.st-article-head { max-width: 780px; margin: 0 auto; text-align: center; }
.st-article-head h1 {
  font-family: var(--st-serif); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.st-standfirst { font-size: 20px; color: var(--st-ink-soft); margin: 0 0 20px; }
.st-article-head .st-meta { justify-content: center; }
.st-article-image { max-width: 1040px; margin: 32px auto 0; }
.st-article-image img { border-radius: var(--st-radius); width: 100%; }
.st-article-image figcaption { font-size: 13px; color: var(--st-muted); margin-top: 8px; }

.st-content { max-width: 700px; margin: 36px auto 0; font-size: 19px; line-height: 1.75; }
.st-content p { margin: 0 0 1.3em; }
.st-content h2, .st-content h3 { font-family: var(--st-serif); line-height: 1.25; margin: 1.8em 0 .6em; }
.st-content h2 { font-size: 28px; }
.st-content h3 { font-size: 23px; }
.st-content a { color: var(--st-accent); text-decoration: underline; text-underline-offset: 3px; }
.st-content blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--st-sun);
  font-family: var(--st-serif); font-weight: 600; font-size: 23px; line-height: 1.4; color: var(--st-ink);
}
.st-content blockquote p { margin: 0 0 .5em; }
.st-content blockquote cite, .st-content .wp-block-quote cite {
  display: block; margin-top: .6em; font: 500 15px/1.4 var(--st-sans); font-style: normal; color: var(--st-muted); letter-spacing: 0;
}
.st-content blockquote cite::before { content: "— "; }
.st-content .wp-block-pullquote { border: 0; padding: 0; text-align: left; }
.st-content img, .st-content figure { border-radius: var(--st-radius); margin: 1.6em 0; }
.st-content figcaption { font-size: 14px; color: var(--st-muted); text-align: left; }
.st-content ul, .st-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.st-content iframe { max-width: 100%; }
.st-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.st-content .aligncenter { margin-left: auto; margin-right: auto; }

.st-share {
  max-width: 700px; margin: 36px auto 0; padding: 22px 0; border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.st-share strong { font-size: 14px; margin-right: 6px; }
.st-share a, .st-share button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--st-bg-soft); border: 0; font: 600 14px var(--st-sans); color: var(--st-ink); cursor: pointer;
}
.st-share a svg { fill: var(--brand, currentColor); }
.st-share a:hover, .st-share button:hover { background: var(--brand, var(--st-accent)); color: #fff; }
.st-share a:hover svg { fill: #fff; }
.st-share svg { width: 16px; height: 16px; fill: currentColor; }

.st-related { background: var(--st-bg-soft); padding: 10px 0 56px; margin-top: 56px; }

/* ---------- Pages / archive ---------- */
.st-page-head { padding: 48px 0 8px; }
.st-page-head h1 { font-family: var(--st-serif); font-size: clamp(32px, 4vw, 46px); margin: 0; letter-spacing: -0.02em; }
.st-page-head p { color: var(--st-ink-soft); margin: 8px 0 0; }
.st-empty { text-align: center; padding: 80px 0; }
.st-empty h1 { font-family: var(--st-serif); font-size: 44px; margin: 0 0 10px; }

.st-search { display: flex; gap: 8px; max-width: 520px; margin: 22px auto 0; }
.st-search input[type=search] {
  flex: 1; padding: 13px 18px; border: 1px solid var(--st-line); border-radius: 999px;
  font: 16px var(--st-sans); background: var(--st-bg); color: var(--st-ink);
}

/* ---------- Comments ---------- */
.st-comments { max-width: 700px; margin: 40px auto 0; }
.st-comments h2 { font-family: var(--st-serif); }
.st-comments ol { list-style: none; padding: 0; }
.st-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--st-line); }
.st-comments textarea, .st-comments input[type=text], .st-comments input[type=email], .st-comments input[type=url] {
  width: 100%; padding: 12px; border: 1px solid var(--st-line); border-radius: 8px; font: 16px var(--st-sans);
}
.st-comments input[type=submit] {
  background: var(--st-ink); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px; font: 600 15px var(--st-sans); cursor: pointer;
}

/* ---------- Footer ---------- */
.st-footer { background: var(--st-dark); color: #C9CED6; margin-top: 72px; padding: 44px 0 24px; font-size: 15px; }
.st-related + .st-footer { margin-top: 0; }
.st-footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.st-footer .st-wordmark { color: #fff; font-size: 28px; }
.st-footer .st-wordmark span { color: #4FD1AE; }
.st-footer-about { max-width: 360px; margin: 12px 0 0; }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.st-footer a:hover { color: #fff; }
.st-footer .st-social a { background: rgba(255,255,255,.08); color: #fff; }
.st-footer .st-social a:hover { background: var(--brand, var(--st-accent)); }
.st-footer .st-social a[aria-label="TikTok"]:hover, .st-footer .st-social a[aria-label="X"]:hover { background: #fff; color: #000; }
.st-footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.st-footer-links ul { gap: 18px; }
.st-footer-links a { color: #A3AAB5; }
.st-footer-links a:hover { color: #fff; }
.st-footer-top { align-items: center; flex-direction: column; text-align: center; gap: 22px; }
.st-footer-top .st-footer-about { margin-left: auto; margin-right: auto; }
.st-footer-top .st-social { justify-content: center; }
.st-footer .st-social a { width: 42px; height: 42px; }
.st-footer .st-social svg { width: 20px; height: 20px; }
.st-footer-bottom {
  padding-top: 22px; font-size: 13px; color: #A3AAB5;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- About / Complaints pages ---------- */
.st-content .st-about-hero { margin: 0 0 2em; padding-bottom: 1.6em; border-bottom: 1px solid var(--st-line); }
.st-content .st-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .4em;
  font: 700 12px var(--st-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--st-accent);
}
.st-content .st-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-sun); }
.st-content .st-about-hero h2 {
  font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 .45em;
}
.st-content > .st-about-hero:first-child, .st-content > .st-about-hero:first-child h2 { margin-top: 0;
}
.st-content .st-lead { font-size: 21px; color: var(--st-ink-soft); line-height: 1.6; }
.st-content h2 { font-weight: 800; letter-spacing: -0.025em; }
.st-content h3 { font-weight: 700; letter-spacing: -0.015em; }
.st-cards > .wp-block-group__inner-container,
.st-cards:not(:has(> .wp-block-group__inner-container)) {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 1.4em;
}
.st-content .st-tile { background: var(--st-bg-soft); border-radius: var(--st-radius); padding: 18px 20px; }
.st-content .st-tile h3 { font-size: 19px; margin: 0 0 .3em; }
.st-content .st-tile p { font-size: 15px; line-height: 1.5; color: var(--st-ink-soft); margin: 0; }
.st-content .st-callout {
  background: var(--st-bg-soft); border-left: 4px solid var(--st-accent);
  border-radius: 0 var(--st-radius) var(--st-radius) 0; padding: 20px 24px; margin: 1.8em 0;
}
.st-content .st-callout h3 { margin: 0 0 .4em; font-size: 21px; }
.st-content .st-callout p:last-child, .st-content .st-callout ul:last-child { margin-bottom: 0; }
.st-content .st-callout li { margin-bottom: .3em; }
.st-content .st-small { font-size: 15px; color: var(--st-muted); }
.st-content ol li, .st-content ul li { margin-bottom: .45em; }
@media (max-width: 560px) {
  .st-cards > .wp-block-group__inner-container,
  .st-cards:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
  .st-content .st-lead { font-size: 18px; }
}

.st-content .st-sample-note {
  background: #FFF4D6; color: #5A4300; border-left: 4px solid var(--st-sun);
  border-radius: 0 var(--st-radius) var(--st-radius) 0; padding: 14px 18px; font-size: 16px; line-height: 1.5;
}
[data-theme="dark"] .st-content .st-sample-note { background: #2A2412; color: #F6E3A8; }

.st-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  background: var(--st-ink); color: var(--st-bg); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: st-up .3s ease;
  max-width: 520px; margin: 0 auto;
}
.st-install-text { flex: 1; font-size: 14px; line-height: 1.4; }
.st-install-text strong { display: block; font-family: var(--st-serif); font-size: 16px; margin-bottom: 2px; }
.st-install-go { background: var(--st-accent); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: 700 14px var(--st-sans); cursor: pointer; }
.st-install-x { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; width: 36px; height: 36px; cursor: pointer; opacity: .7; }
@keyframes st-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (display-mode: standalone) { .st-header { padding-top: env(safe-area-inset-top); } }

/* ---------- Day / night toggle ---------- */
.st-header-actions { display: flex; align-items: center; gap: 14px; }
.st-theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--st-line);
  background: var(--st-bg); color: var(--st-ink); display: grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.st-theme-toggle:hover { border-color: var(--st-accent); color: var(--st-accent); }
.st-theme-toggle svg { width: 18px; height: 18px; }
.st-theme-toggle .st-moon { display: block; }
.st-theme-toggle .st-sun { display: none; }
[data-theme="dark"] .st-theme-toggle .st-moon { display: none; }
[data-theme="dark"] .st-theme-toggle .st-sun { display: block; color: var(--st-sun); }

/* ---------- Night mode ---------- */
[data-theme="dark"] {
  --st-accent: #2FBF98;
  --st-accent-dark: #1E9A7A;
  --st-ink: #F1F3F5;
  --st-ink-soft: #B4BBC6;
  --st-muted: #9098A4;
  --st-line: #27303A;
  --st-bg: #0F1318;
  --st-bg-soft: #1A2129;
  --st-dark: #080A0D;
  color-scheme: dark;
}
[data-theme="dark"] .st-social a[aria-label="TikTok"],
[data-theme="dark"] .st-social a[aria-label="X"] { color: var(--st-ink); }
[data-theme="dark"] .st-social a[aria-label="TikTok"]:hover,
[data-theme="dark"] .st-social a[aria-label="X"]:hover { background: #fff; color: #000; }
[data-theme="dark"] .st-share a[href*="x.com"] svg,
[data-theme="dark"] .st-share a.st-share-x svg { fill: var(--st-ink); }
[data-theme="dark"] .st-noimg { background: linear-gradient(135deg, #12584A 0%, #0B3B32 100%); }
[data-theme="dark"] img { filter: brightness(.92); }
body, .st-header, .st-card h3, .st-share a { transition: background-color .25s, color .25s; }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--st-muted); }
.sticky, .bypostauthor {}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .st-featured-card { grid-template-columns: 1fr; gap: 22px; }
  .st-grid { grid-template-columns: repeat(2, 1fr); }
  .st-content .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .st-header .st-wrap { min-height: 64px; }
  .st-wordmark { font-size: 25px; }
  .st-tagline { display: none; }
  .st-menu-toggle { display: block; }
  .st-header-right { display: none; }
  .st-header.is-open .st-header-right {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--st-bg); border-bottom: 1px solid var(--st-line); padding: 18px 20px 22px;
  }
  .st-header.is-open .st-nav ul { flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .st-featured { padding-top: 22px; }
  .st-featured p.st-excerpt { font-size: 16px; }
  .st-grid { grid-template-columns: 1fr; gap: 28px; }
  .st-content { font-size: 18px; }
  .st-footer-top { flex-direction: column; }
  .st-footer-bottom, .st-footer-links { justify-content: center; text-align: center; }
}
@media (min-width: 761px) {
  .st-header-right { display: flex; align-items: center; gap: 28px; }
}
