/*
Theme Name: Afrikan Stories
Theme URI: https://afrika.ng/
Author: Afrikan Stories
Description: A fast, storybook-style block theme for Afrikan Stories: African folktales, myths, history and culture. No page builder, two self-hosted fonts, one small script.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
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: afrikan-stories
*/

/* Indigo night sky, ochre and terracotta from cloth and clay, palm green. Fraunces for story titles, Inter for reading. */

:root {
	--as-ink: var(--wp--preset--color--ink, #17152a);
	--as-muted: var(--wp--preset--color--muted, #5b586f);
	--as-line: var(--wp--preset--color--line, #e3e1ee);
	--as-mist: var(--wp--preset--color--mist, #f5f4fa);
	--as-indigo: var(--wp--preset--color--indigo, #1f1d5c);
	--as-deep: var(--wp--preset--color--indigo-deep, #14123f);
	--as-ochre: var(--wp--preset--color--ochre, #e0a21b);
	--as-terra: var(--wp--preset--color--terracotta, #c2431d);
	--as-green: var(--wp--preset--color--green, #2f7d4f);
	--as-display: var(--wp--preset--font-family--display, Georgia, serif);
	--as-r: 10px;
	--as-gutter: max(16px, 5vw);
	--as-surface: #fff;
	--as-ink-bg: #17152a;
	--as-on-ochre: #17152a;
	--as-link: var(--as-indigo);
	--as-page: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--as-ochre); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.as-main { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Layout helpers ---------- */
.as-wrap { max-width: 1240px; margin-inline: auto; }
.as-band { padding: clamp(2.25rem, 5vw, 4.5rem) var(--as-gutter); }
.as-band h2 { margin: 0 0 1rem; }
.as-band--mist { background: var(--as-mist); }
.as-band--indigo { background: var(--as-indigo); color: #f3f1ff; }
.as-band--deep { background: var(--as-deep); color: #f3f1ff; }
.as-band--ochre { background: var(--as-ochre); color: var(--as-on-ochre); }
.as-band--indigo h1, .as-band--indigo h2, .as-band--indigo h3,
.as-band--deep h1, .as-band--deep h2, .as-band--deep h3 { color: #fff; }
.as-band--indigo a, .as-band--deep a { color: #fff; }
.as-weave { height: 12px; background: repeating-linear-gradient(90deg, var(--as-ochre) 0 46px, var(--as-terra) 46px 60px, var(--as-indigo) 60px 74px, var(--as-green) 74px 88px, var(--as-ochre) 88px 120px); }
.as-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.as-head-row h2 { margin: 0; }
.as-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.as-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.as-kicker { margin: 0 0 .5rem; font-size: .875rem; font-weight: 600; color: var(--as-ochre); }

/* ---------- Buttons and chips ---------- */
.as-btn, .wp-element-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.35rem; border-radius: 999px; background: var(--as-ochre); color: var(--as-on-ochre) !important; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; }
.as-btn:hover { background: var(--as-surface); }
.as-btn--ghost { background: transparent; border: 2px solid var(--as-ink); color: var(--as-ink) !important; }
.as-btn--ghost:hover { background: var(--as-ink-bg); color: #fff !important; }
.as-link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.as-link-arrow::after { content: " →"; }
.as-chip { display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1; padding: .4rem .7rem; border-radius: 999px; text-decoration: none; background: var(--as-mist); color: var(--as-ink) !important; }
.as-chip--folktales { background: #fbecc6; color: #6b4a00 !important; }
.as-chip--myths-legends { background: #f8dccf; color: #8a2c10 !important; }
.as-chip--history { background: #dedcf7; color: var(--as-link) !important; }
.as-chip--culture { background: #d7eedf; color: #1d5634 !important; }
.as-chip--features { background: #e7e6ee; color: #3d3b4f !important; }
.as-meta { display: block; font-size: .875rem; color: var(--as-muted); margin-top: .5rem; white-space: nowrap; }

/* ---------- Header ---------- */
/* Sticky header: the sticky element must be the template-part wrapper, a direct child of .wp-site-blocks. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } } /* The admin bar scrolls away on phones. */
html { scroll-padding-top: 84px; }
.as-header { position: relative; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--as-line); transition: box-shadow .2s ease; }
.is-stuck .as-header { box-shadow: 0 6px 20px -12px rgba(23, 21, 42, .35); }
.as-header__inner { max-width: 1240px; margin-inline: auto; padding: .5rem var(--as-gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.as-logo { flex: none; }
.as-logo img { display: block; width: 150px; max-width: none; height: auto; }
.as-logo--light img { filter: invert(1); }
.as-nav { display: flex; align-items: center; gap: 1rem; }
.as-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.as-nav a { display: block; padding: .6rem .8rem; border-radius: 999px; text-decoration: none; color: var(--as-ink); font-weight: 500; font-size: 1rem; }
.as-nav a:hover, .as-nav a[aria-current] { background: var(--as-mist); color: var(--as-link); }
.as-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--as-ochre); border-radius: 6px; }
.as-search { display: flex; align-items: center; border: 1px solid var(--as-line); border-radius: 999px; padding: 2px 4px 2px 14px; background: var(--as-surface); }
.as-search input { border: 0; outline: 0; font: inherit; font-size: 16px; width: 150px; background: transparent; min-height: 40px; color: var(--as-ink); }
.as-search button { border: 0; background: var(--as-ink-bg); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.as-nav__toggle { display: none; }
.as-nav__toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.as-nav__toggle summary::-webkit-details-marker { display: none; }
.as-burger, .as-burger::before, .as-burger::after { display: block; width: 22px; height: 2.5px; background: var(--as-ink); border-radius: 2px; position: relative; }
.as-burger::before, .as-burger::after { content: ""; position: absolute; left: 0; }
.as-burger::before { top: -7px; } .as-burger::after { top: 7px; }
.as-nav__toggle[open] .as-burger { background: transparent; }
.as-nav__toggle[open] .as-burger::before { top: 0; transform: rotate(45deg); }
.as-nav__toggle[open] .as-burger::after { top: 0; transform: rotate(-45deg); }
.as-nav__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; background: var(--as-surface); border-bottom: 1px solid var(--as-line); padding: .75rem var(--as-gutter) 1.25rem; box-shadow: 0 18px 30px -18px rgba(23, 21, 42, .35); }
.as-nav__panel ul { flex-direction: column; margin-bottom: .75rem; }
.as-nav__panel a { font-size: 1.125rem; padding: .75rem .5rem; }
.as-nav__panel .as-search input { width: 100%; }
@media (max-width: 1080px) { .as-nav > .as-search { display: none; } }
@media (max-width: 1020px) {
	.as-nav .as-nav__bar, .as-nav > .as-search { display: none; }
	.as-nav__toggle { display: block; }
}

/* ---------- Home hero ---------- */
.as-home-hero { padding-top: clamp(1.75rem, 4vw, 3.25rem); }
.as-home-hero__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.06; margin: 0 0 clamp(1.25rem, 3vw, 2.25rem); max-width: 22ch; color: #fff; }
.as-home-hero__title span { color: var(--as-ochre); font-style: italic; }
.as-hero-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 3rem); align-items: center; }
.as-hero-card__img { display: block; border-radius: var(--as-r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--as-deep); }
.as-hero-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-hero-card__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .85rem 0 .65rem; }
.as-hero-card__title a { text-decoration: none; }
.as-hero-card p { color: #d9d6f5; margin: 0 0 .75rem; }
.as-hero-card .as-meta { color: #c4c1ea; margin-bottom: 1.25rem; }

/* ---------- Cards ---------- */
.as-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.as-card { display: flex; flex-direction: column; background: var(--as-surface); border-radius: var(--as-r); overflow: hidden; border: 1px solid var(--as-line); transition: transform .2s ease, box-shadow .2s ease; }
.as-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(23, 21, 42, .35); }
.as-card__img { display: block; aspect-ratio: 16 / 10; background: var(--as-mist); overflow: hidden; }
.as-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-card__body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.as-card__title { font-size: 1.3rem; margin: .7rem 0 .45rem; line-height: 1.2; }
.as-card__title a { color: var(--as-ink); text-decoration: none; }
.as-card__title a:hover { color: var(--as-terra); }
.as-card p { font-size: 1rem; color: var(--as-muted); margin: 0; line-height: 1.55; }
.as-card .as-meta { margin-top: auto; padding-top: .75rem; }
.as-noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--as-mist) 0 14px, #ebe9f4 14px 28px); }
.as-band--deep .as-card, .as-band--indigo .as-card { border-color: transparent; }

.as-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; counter-reset: n; }
.as-num { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--as-line); }
.as-num__n { font: 700 2.4rem/1 var(--as-display); color: var(--as-ochre); min-width: 1.4ch; }
.as-num h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.as-num h3 a { color: var(--as-ink); text-decoration: none; }
.as-num h3 a:hover { color: var(--as-terra); }
.as-split__intro p { color: var(--as-muted); }

.as-list { display: grid; gap: 1rem; }
.as-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; }
.as-row__img { display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--as-mist); }
.as-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-row h3 { font-size: 1.1rem; margin: .45rem 0 0; line-height: 1.25; }
.as-row h3 a { color: var(--as-ink); text-decoration: none; }

/* ---------- Pillars ---------- */
.as-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.as-pillar { position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 220px; padding: 1.4rem 1.3rem; border-radius: var(--as-r); text-decoration: none; color: #fff !important; overflow: hidden; transition: transform .2s ease; }
.as-pillar:hover { transform: translateY(-3px); }
.as-pillar::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .16); }
.as-pillar--ochre { background: var(--as-ochre); color: var(--as-on-ochre) !important; }
.as-pillar--terracotta { background: var(--as-terra); }
.as-pillar--indigo { background: var(--as-indigo); }
.as-pillar--green { background: var(--as-green); }
.as-pillar__name { font: 700 1.55rem/1.1 var(--as-display); }
.as-pillar__blurb { font-size: 1rem; line-height: 1.5; opacity: .92; }
.as-pillar__count { margin-top: auto; font-weight: 600; font-size: .9rem; }

/* ---------- Series ---------- */
.as-series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.as-series { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--as-r); overflow: hidden; display: flex; flex-direction: column; }
.as-series-grid.is-full .as-series { background: var(--as-surface); border-color: var(--as-line); }
.as-series__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.as-series__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-series__body { padding: 1rem 1.15rem 1.25rem; }
.as-series h3 { font-size: 1.3rem; margin: 0 0 .35rem; }
.as-series h3 a { text-decoration: none; }
.as-series p { margin: 0; font-size: 1rem; opacity: .85; }
.as-band--deep .as-series .as-meta { color: var(--as-ochre); }
.as-series__parts { margin: .75rem 0 0; padding-left: 1.2rem; font-size: 1rem; }
.as-series__parts li { margin: .3rem 0; }

/* ---------- Regions ---------- */
.as-regions { display: flex; flex-wrap: wrap; gap: .5rem; }
.as-region { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--as-line); text-decoration: none; color: var(--as-ink) !important; font-weight: 500; font-size: .95rem; background: var(--as-surface); }
.as-region span { color: var(--as-muted); font-size: .8rem; }
.as-region:hover { border-color: var(--as-ink); }
.as-regions--post { margin: 2rem 0; }

/* ---------- Newsletter ---------- */
.as-nl__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.as-nl h2 { margin-bottom: .4rem; }
.as-nl p { margin: 0; }
.as-nl input[type=email], .as-nl input[type=text] { width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--as-ink); padding: 0 1.1rem; font-size: 16px; background: var(--as-surface); }
.as-nl input[type=submit] { min-height: 48px; border-radius: 999px; border: 0; padding: 0 1.4rem; background: var(--as-ink-bg); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: .5rem; }
.as-nl .as-btn { background: var(--as-ink-bg); color: #fff !important; }
.as-admin-note { background: var(--as-surface); border: 2px dashed var(--as-ink); padding: .75rem 1rem; border-radius: 8px; font-size: .9rem; }

/* ---------- Archive head ---------- */
.as-archive-head { padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.as-archive__title { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0; color: #fff; }
.as-archive__desc, .as-archive-head .wp-block-term-description { color: #d9d6f5; max-width: 62ch; margin: .75rem 0 0; font-size: 1.1rem; }
.as-archive-head .wp-block-term-description p { margin: 0; }
.as-pages { margin-top: 2.5rem; }
.as-pages ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.as-pages a, .as-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--as-line); text-decoration: none; color: var(--as-ink); }
.as-pages .current { background: var(--as-ink-bg); color: #fff; border-color: var(--as-ink); }
.as-empty p { font-size: 1.15rem; margin-bottom: 1.5rem; }

/* ---------- Single story ---------- */
.as-article { padding: clamp(1.75rem, 4vw, 3.25rem) var(--as-gutter) 0; }
.as-article__head { text-align: left; }
.as-article__title { margin: .9rem 0 .6rem; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.06; }
.as-byline { color: var(--as-muted); font-size: .95rem; margin: 0; }
.as-byline a { color: var(--as-ink); font-weight: 600; text-decoration: none; }
.as-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.25rem 0 0; padding: .75rem 0; border-top: 1px solid var(--as-line); border-bottom: 1px solid var(--as-line); }
.as-listen { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--as-indigo); color: #fff; border: 0; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.as-listen[aria-pressed=true] { background: var(--as-terra); }
.as-share { display: flex; flex-wrap: wrap; gap: .35rem; }
.as-share a, .as-share button { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--as-line); background: var(--as-surface); color: var(--as-ink); text-decoration: none; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.as-share__wa { background: #1f8f4e !important; color: #fff !important; border-color: #1f8f4e !important; }
.as-article__img { margin-top: clamp(1.5rem, 3vw, 2.25rem) !important; }
.as-article__img img { border-radius: var(--as-r); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.as-content { font-size: 1.15rem; line-height: 1.8; padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.as-content > * { margin-block: 0 1.35rem; }
.as-content h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin-top: 2.5rem; }
.as-content h3 { font-size: 1.4rem; margin-top: 2rem; }
.as-content img { border-radius: 8px; }
.as-content figure, .as-content .wp-caption { max-width: 100%; margin-inline: auto; }
.as-content figcaption, .as-content .wp-caption-text { font-size: .9rem; color: var(--as-muted); text-align: center; margin-top: .5rem; }
.as-content iframe { max-width: 100%; }
.as-content .as-embed { position: relative; aspect-ratio: 16 / 9; }
.as-content .as-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.as-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.as-content td, .as-content th { border: 1px solid var(--as-line); padding: .5rem .7rem; }
.as-content blockquote { border-left: 4px solid var(--as-ochre); margin-left: 0; padding-left: 1.25rem; font-family: var(--as-display); font-size: 1.3rem; }
.as-cat-folktales .as-content > p:first-of-type::first-letter,
.as-cat-myths-legends .as-content > p:first-of-type::first-letter { float: left; font: 700 4.2rem/.85 var(--as-display); padding: .35rem .6rem 0 0; color: var(--as-terra); }
.as-article__foot { padding-bottom: 2.5rem; }
.as-seriesbox { background: var(--as-mist); border-left: 6px solid var(--as-ochre); border-radius: var(--as-r); padding: 1.25rem 1.4rem; margin: 2.5rem 0 1rem; }
.as-seriesbox__label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--as-muted); }
.as-seriesbox h2 { font-size: 1.45rem; margin: .2rem 0 .6rem; }
.as-seriesbox h2 a { text-decoration: none; color: var(--as-ink); }
.as-seriesbox ol { margin: 0; padding-left: 1.3rem; }
.as-seriesbox li { margin: .35rem 0; }
.as-seriesbox li[aria-current] { font-weight: 700; }
.as-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem 0; border-top: 1px solid var(--as-line); border-bottom: 1px solid var(--as-line); }
.as-author__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--as-indigo); color: #fff; font: 700 1.5rem var(--as-display); }
.as-author__name { margin: 0; font-weight: 600; }
.as-author__name a { color: var(--as-ink); }
.as-author p { margin: .3rem 0 0; font-size: 1rem; color: var(--as-muted); }
.as-comments { margin-top: 2rem; }
.as-comments textarea, .as-comments input[type=text], .as-comments input[type=email], .as-comments input[type=url] { width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--as-line); border-radius: 8px; padding: .7rem .8rem; }
.as-page-content { padding-bottom: clamp(2rem, 5vw, 4rem); padding-inline: var(--as-gutter); }

/* ---------- Footer ---------- */
.as-footer { background: var(--as-deep); color: #d9d6f5; }
.as-footer__inner { max-width: 1240px; margin-inline: auto; padding: clamp(2.5rem, 5vw, 4rem) var(--as-gutter) 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.as-footer a { color: #fff; }
.as-footer__brand p { margin: 1rem 0; max-width: 34ch; font-size: 1rem; }
.as-footer__h { font: 600 1rem/1.3 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0; color: var(--as-ochre); margin: .5rem 0 .75rem; }
.as-flinks, .as-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: 1rem; }
.as-flinks a, .as-social a { text-decoration: none; display: inline-block; padding: .2rem 0; }
.as-flinks a:hover, .as-social a:hover { color: var(--as-ochre); }
.as-social { grid-template-columns: repeat(3, max-content); gap: .25rem 1rem; }
.as-footer__inner p { font-size: 1rem; overflow-wrap: anywhere; }
.as-footer__legal { max-width: 1240px; margin: 0 auto; padding: 1.25rem var(--as-gutter) 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: #a9a6cf; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.as-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.as-split, .as-two, .as-nl__inner { grid-template-columns: minmax(0, 1fr); }
	.as-hero-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.as-grid, .as-nums, .as-pillars, .as-footer__inner { grid-template-columns: minmax(0, 1fr); }
	.as-pillar { min-height: 0; }
	.as-logo img { width: 124px; }
	.as-content { font-size: 1.075rem; }
	.as-tools { flex-direction: column; align-items: stretch; }
	.as-listen { justify-content: center; }
	.as-social { grid-template-columns: repeat(2, max-content); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.as-header, .as-footer, .as-tools, .as-band--mist, .as-comments { display: none !important; }
}

/* Footer credits */
.as-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.as-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.as-footer__legal a:hover { color: var(--wp--preset--color--ochre); }
.as-footer__legal .as-cr8r { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; white-space: nowrap; text-decoration: none; }
.as-footer__legal .as-cr8r span { text-decoration: underline; text-underline-offset: 2px; }
.as-cr8r-icon { flex: none; display: block; }
.as-footer__legal a.as-login { color: inherit; text-decoration: none; cursor: default; padding: 0; }

/* =====================================================================
   Site features
   ===================================================================== */

/* Shared bits */
.as-btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .9375rem; }
.as-btn--line { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor; }
.as-btn--line:hover { background: rgba(255, 255, 255, .12); }
.as-btn--ink { background: var(--as-indigo); color: #fff !important; }
.as-btn--ink:hover { background: var(--as-deep); }
.as-linkbtn { background: none; border: 0; padding: .25rem 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.as-noscroll { overflow: hidden; }

/* Newsletter form (MC4WP) */
.as-nlf { display: flex; flex-wrap: wrap; gap: .6rem; }
.as-nlf__field { flex: 1 1 180px; margin: 0; }
.as-nlf__field--name { flex-basis: 140px; }
.as-nlf input { width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid var(--as-ink); padding: 0 1.1rem; font: inherit; font-size: 16px; background: var(--as-surface); color: var(--as-ink); }
.as-nlf__btn { min-height: 48px; flex: 0 0 auto; }
.as-nlf__note { margin: .6rem 0 0 !important; font-size: .8125rem; opacity: .8; }
.mc4wp-response .mc4wp-alert { margin-top: .75rem; padding: .75rem 1rem; border-radius: var(--as-r); font-weight: 600; background: var(--as-surface); color: var(--as-ink); }
.mc4wp-response .mc4wp-success { background: #d7eedf; color: #1d5634; }
.mc4wp-response .mc4wp-error, .mc4wp-response .mc4wp-notice { background: #f8dccf; color: #8a2c10; }
.mc4wp-response p { margin: 0; }

/* End-of-story newsletter box */
.as-nlbox { margin: 2rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: var(--as-ochre); color: var(--as-on-ochre); display: grid; gap: 1rem; }
.as-nlbox h2, .as-nlbox p, .as-nlbox label { color: var(--as-on-ochre); }
.as-nlbox h2 { margin: .15rem 0 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.as-nlbox__kicker { margin: 0; font-weight: 600; font-size: .875rem; }
.as-nlbox .as-nlf__btn { background: var(--as-ink-bg); color: #fff !important; }

/* Cookie notice */
.as-cookie { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; display: grid; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: 16px; background: var(--as-deep); color: #e9e7ff; box-shadow: 0 18px 50px rgba(10, 8, 40, .35); transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.as-cookie.is-in { transform: none; opacity: 1; }
.as-cookie p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.as-cookie a { color: #fff; }
.as-cookie__title { font-family: var(--as-display); font-size: 1.15rem !important; color: #fff; margin-bottom: .3rem !important; }
.as-cookie__prefs { display: grid; gap: .6rem; margin-top: .9rem; }
.as-cookie__opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; line-height: 1.45; }
.as-cookie__opt input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--as-ochre); flex: none; }
.as-cookie__opt strong { color: #fff; }
.as-cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.as-cookie .as-btn:not(.as-btn--line):hover { background: var(--as-surface); }
@media (min-width: 760px) { .as-cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .as-cookie__actions { flex-direction: column; align-items: stretch; } .as-cookie__actions .as-linkbtn { text-align: center; } }

/* Newsletter popup */
.as-pop { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--as-surface); color: var(--as-ink); box-shadow: 0 30px 80px rgba(10, 8, 40, .4); overflow: hidden; }
.as-pop::backdrop { background: rgba(20, 18, 63, .62); backdrop-filter: blur(2px); }
.as-pop[open] { animation: as-pop-in .28s ease-out; }
@keyframes as-pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.as-pop__body { padding: clamp(1.5rem, 4vw, 2.25rem); text-align: center; }
.as-pop__kicker { margin: 0 0 .4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--as-terra); }
.as-pop h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; }
.as-pop__text { margin: 0 0 1.25rem; color: var(--as-muted); }
.as-pop .as-nlf { text-align: left; }
.as-pop .as-nlf__field { flex-basis: 100%; }
.as-pop .as-nlf__btn { width: 100%; justify-content: center; background: var(--as-indigo); color: #fff !important; }
.as-pop .as-nlf__note { text-align: center; }
.as-pop__no { margin-top: .9rem; font-size: .875rem; color: var(--as-muted); }
.as-pop__close { position: absolute; top: 18px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--as-mist); color: var(--as-ink); cursor: pointer; }
.as-pop__close:hover { background: var(--as-line); }

/* Story player */
.as-listen[aria-pressed=true] { background: var(--as-terra); }
.as-reading { background: #fff4d6; box-shadow: -10px 0 0 #fff4d6, 10px 0 0 #fff4d6; border-radius: 4px; transition: background .3s ease; }
body.as-player-on .as-content p, body.as-player-on .as-content li, body.as-player-on .as-content h2, body.as-player-on .as-content h3 { cursor: pointer; }
.as-player { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; background: var(--as-deep); color: #fff; box-shadow: 0 -10px 30px rgba(10, 8, 40, .25); transform: translateY(100%); transition: transform .3s ease; padding-bottom: env(safe-area-inset-bottom); }
.as-player.is-in { transform: none; }
.as-player__track { height: 4px; background: rgba(255, 255, 255, .15); }
.as-player__track span { display: block; height: 100%; width: 0; background: var(--as-ochre); transition: width .4s linear; }
.as-player__row { max-width: 1240px; margin: 0 auto; padding: .6rem var(--as-gutter); display: flex; align-items: center; gap: .75rem 1rem; }
.as-player__ctrls, .as-player__opts { display: flex; align-items: center; gap: .35rem; flex: none; }
.as-player__btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.as-player__btn:hover { background: rgba(255, 255, 255, .12); }
.as-player__play { width: 48px; height: 48px; background: var(--as-ochre); color: var(--as-on-ochre); }
.as-player__play:hover { background: var(--as-surface); }
.as-player__info { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.as-player__info strong { font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-player__time { font-size: .8125rem; color: #c4c1ea; }
.as-player__speed { min-width: 52px; height: 36px; padding: 0 .6rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; }
.as-player__voice { max-width: 190px; height: 36px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: var(--as-deep); color: #fff; font: inherit; font-size: .8125rem; padding: 0 .6rem; }
@media (max-width: 700px) {
	.as-player__row { flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
	.as-player__info { order: -1; flex-basis: 100%; }
	.as-player__opts { margin-left: auto; }
	.as-player__voice { max-width: 120px; }
}

/* Reading progress and back to top */
.as-progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.admin-bar .as-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .as-progress { top: 46px; } }
.as-progress span { display: block; height: 100%; background: var(--as-terra); transform: scaleX(0); transform-origin: 0 50%; }
.as-top { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--as-indigo); color: #fff; box-shadow: 0 8px 24px rgba(10, 8, 40, .25); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, bottom .3s ease; }
.as-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.as-top:hover { background: var(--as-terra); }
body.as-player-on .as-top { bottom: 96px; }
@media (max-width: 700px) { body.as-player-on .as-top { bottom: 128px; } }

/* Breadcrumbs */
.as-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .875rem; color: var(--as-muted); }
.as-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--as-line); }
.as-crumbs a { color: var(--as-link); text-decoration: none; font-weight: 600; }
.as-crumbs a:hover { text-decoration: underline; }

/* Contents box */
.as-toc { margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: var(--as-r); background: var(--as-mist); border-left: 4px solid var(--as-ochre); }
.as-toc summary { font-weight: 700; cursor: pointer; }
.as-toc ol { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.as-toc a { color: var(--as-link); }
.as-content h2[id] { scroll-margin-top: 90px; }

/* Contact and story forms */
.as-form { margin: 2.5rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: var(--as-mist); scroll-margin-top: 80px; }
.as-form__title { margin: 0 0 1rem; }
.as-form p { margin: 0 0 1rem; }
.as-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.as-form input[type=text], .as-form input[type=email], .as-form input[type=url], .as-form select, .as-form textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 2px solid var(--as-line); border-radius: var(--as-r); background: var(--as-surface); font: inherit; font-size: 16px; color: var(--as-ink); }
.as-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.as-form input:focus, .as-form select:focus, .as-form textarea:focus { border-color: var(--as-indigo); outline: none; box-shadow: 0 0 0 3px rgba(31, 29, 92, .15); }
.as-form.is-checked :invalid { border-color: var(--as-terra); }
.as-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.as-form__opt { font-weight: 400; color: var(--as-muted); }
.as-form__hint { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--as-muted); }
.as-form__check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.as-form__check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--as-indigo); }
.as-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-form__status { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: var(--as-r); font-weight: 600; }
.as-form__status--ok { background: #d7eedf; color: #1d5634; }
.as-form__status--err { background: #f8dccf; color: #8a2c10; }
.as-form button[disabled] { opacity: .7; cursor: wait; }

/* Footer cookie-settings link */
.as-flinks .as-linkbtn { text-decoration: none; color: inherit; font-size: inherit; }
.as-flinks .as-linkbtn:hover { text-decoration: underline; }

@media print { .as-cookie, .as-pop, .as-player, .as-progress, .as-top, .as-nlbox, .as-form { display: none !important; } }

/* Subscribe button in the header */
.as-subscribe { flex: none; min-height: 40px; padding: .45rem 1rem; border: 0; border-radius: 999px; background: var(--as-ochre); color: var(--as-on-ochre); font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.as-subscribe:hover { background: var(--as-indigo); color: #fff; }
@media (max-width: 1020px) { .as-subscribe { order: -1; min-height: 38px; padding: .4rem .9rem; font-size: .875rem; } }
@media (max-width: 1400px) and (min-width: 1021px) { .as-nav > .as-search { display: none; } }

/* Reading progress sits on the bottom edge of the sticky header, under the mobile menu */
.as-header .as-progress, .admin-bar .as-header .as-progress { position: absolute; top: auto; bottom: -1px; left: 0; right: 0; height: 3px; z-index: 1; }
.as-nav__panel { z-index: 2; }
.as-header:has(.as-nav__toggle[open]) .as-progress { opacity: 0; }
.as-nav__bar a, .as-subscribe { white-space: nowrap; }

/* =====================================================================
   Mobile optimisation
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, select, label { -webkit-tap-highlight-color: rgba(224, 162, 27, .25); touch-action: manipulation; }
@media (hover: none) { .as-card:hover, .as-pillar:hover { transform: none; box-shadow: none; } }

/* The whole card, numbered row or list row is one tap target; the category chip stays its own link. */
.as-card, .as-num, .as-row { position: relative; }
.as-card__title a::after, .as-num h3 a::after, .as-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.as-card .as-chip, .as-row .as-chip { position: relative; z-index: 2; }
.as-card:has(.as-card__title a:focus-visible) { outline: 3px solid var(--as-ochre); outline-offset: 2px; }
.as-card__title a:focus-visible, .as-num h3 a:focus-visible { outline: 0; }
.as-card__body > .as-chip { align-self: flex-start; }
.as-chip { display: inline-flex; align-items: center; min-height: 28px; }

/* Header slides away while reading down and comes back on the slightest scroll up (menu breakpoint and below). */
.wp-site-blocks > header.wp-block-template-part { transition: transform .25s ease; }
.wp-site-blocks > header.wp-block-template-part.is-hidden { transform: translateY(calc(-100% + 2px)); }
.is-hidden .as-header { box-shadow: none; }

/* Player leaves room at the end of the story */
body.as-player-on { padding-bottom: 84px; }
.as-pop { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 600px) {
	html { scroll-padding-top: 72px; }
	.as-header__inner { min-height: 60px; padding-block: .3rem; gap: .5rem; }
	.as-logo img { width: 112px; }
	.as-nav__panel { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
	.as-nav__panel a { padding: .7rem .5rem; }

	/* Story cards: first one large, the rest as compact rows */
	.as-grid { gap: .75rem; }
	.as-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.as-grid > .as-card ~ .as-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
	.as-grid > .as-card ~ .as-card .as-card__img { aspect-ratio: auto; height: 100%; min-height: 104px; }
	.as-grid > .as-card ~ .as-card .as-card__body { padding: .7rem .85rem .75rem; }
	.as-grid > .as-card ~ .as-card .as-chip { font-size: .75rem; min-height: 24px; padding: .25rem .55rem; }
	.as-grid > .as-card ~ .as-card .as-card__title { font-size: 1.05rem; line-height: 1.25; margin: .4rem 0 0; }
	.as-grid > .as-card ~ .as-card p { display: none; }
	.as-grid > .as-card ~ .as-card .as-meta { padding-top: .35rem; font-size: .8125rem; }
	.as-card__title { font-size: 1.2rem; }
	.as-num { padding: .85rem 0; }
	.as-num__n { font-size: 2rem; }
	.as-num h3 { font-size: 1.1rem; }
	.as-pillar { padding: 1.15rem 1.15rem 1.1rem; gap: .35rem; }
	.as-pillar__name { font-size: 1.4rem; }
	.as-link-arrow { display: inline-block; padding: .5rem 0; }
	.as-head-row { align-items: center; }

	/* Story page */
	.as-crumbs li:last-child { display: none; }
	.as-crumbs a { display: inline-block; padding: .3rem 0; }
	.as-crumbs ol { margin-bottom: .25rem; }
	.as-article__title { font-size: clamp(1.9rem, 8.4vw, 2.3rem); margin-top: .4rem; }
	.as-tools { gap: .6rem; margin-top: 1rem; }
	.as-share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
	.as-share a, .as-share button { justify-content: center; min-height: 44px; padding: .4rem .25rem; font-size: .8125rem; white-space: nowrap; }
	.as-content { line-height: 1.75; }
	.as-content h2 { margin-top: 2rem; }
	.as-content blockquote { font-size: 1.15rem; padding-left: 1rem; }
	.as-content .alignwide, .as-content .alignfull { margin-inline: calc(-1 * var(--as-gutter)); max-width: none; width: auto; }
	.as-content ul, .as-content ol { padding-left: 1.25rem; }
	.as-toc { padding: .85rem 1rem; }
	.as-toc a { display: inline-block; padding: .2rem 0; }
	.as-seriesbox { padding: 1rem 1.1rem; }
	.as-seriesbox li, .as-series__parts li { margin: .5rem 0; }
	.as-region { min-height: 44px; }
	.comment-form .form-submit input, .as-form button[type=submit] { width: 100%; justify-content: center; }

	/* Newsletter forms stack cleanly */
	.as-nlf__field, .as-nlf__field--name { flex-basis: 100%; }
	.as-nlf__btn { width: 100%; justify-content: center; }

	/* Footer: brand full width, link lists side by side, roomy tap targets */
	.as-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 1rem; padding-top: 2.25rem; }
	.as-footer__brand, .as-footer__inner > div:last-child { grid-column: 1 / -1; }
	.as-flinks, .as-social { gap: 0; }
	.as-flinks a, .as-social a, .as-flinks .as-linkbtn { display: inline-block; padding: .55rem 0; min-width: 44px; }
	.as-social { grid-template-columns: repeat(3, max-content); column-gap: 1.25rem; }
	.as-footer__legal { flex-direction: column; align-items: flex-start; padding-bottom: 1.5rem; }
	.as-footer__legal a { display: inline-block; padding: .3rem 0; }
	.as-footer__inner p a { display: inline-block; padding: .4rem 0; }

	/* Pop-ups */
	.as-cookie { left: 10px; right: 10px; bottom: 10px; padding: 1rem; gap: .75rem; }
	.as-cookie p { font-size: .875rem; }
	.as-cookie__actions .as-btn { flex: 1 1 auto; justify-content: center; }
	.as-pop { width: calc(100% - 20px); border-radius: 18px; }
	.as-pop__body { padding: 1.5rem 1.15rem 1.25rem; }
	.as-pop h2 { font-size: 1.55rem; }
	.as-pop__text { font-size: .9375rem; margin-bottom: 1rem; }
	.as-pop__close { top: 14px; right: 8px; }
	.as-top { right: 12px; bottom: 12px; width: 44px; height: 44px; }
}

/* Player: two short rows on phones (title/time, then controls) */
@media (max-width: 700px) {
	body.as-player-on { padding-bottom: 112px; }
	.as-player__row { gap: .35rem .5rem; padding-top: .45rem; padding-bottom: .4rem; }
	.as-player__ctrls { gap: .15rem; }
	.as-player__btn { width: 40px; height: 40px; }
	.as-player__play { width: 44px; height: 44px; }
	.as-player__opts { gap: .3rem; }
	.as-player__speed { min-width: 46px; height: 36px; padding: 0 .45rem; }
	.as-player__voice { max-width: 104px; }
	body.as-player-on .as-top { bottom: 118px; }
}
@media (max-width: 360px) {
	.as-player__voice { max-width: 84px; }
	.as-share a, .as-share button { font-size: .75rem; }
	.as-subscribe { padding: .4rem .7rem; }
	.as-logo img { width: 100px; }
}

/* =====================================================================
   Ads
   ===================================================================== */
.as-ad { display: block; }
.as-ad[hidden] { display: none !important; }
.as-ad__inner { position: relative; max-width: 1240px; margin-inline: auto; text-align: center; }
.as-ad__label { margin: 0 0 .4rem; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted); }
.as-ad__body { display: flex; justify-content: center; }
.as-ad__body > * { max-width: 100%; }
.as-ad__code { width: 100%; min-height: 50px; overflow: hidden; }
.as-adimg { display: inline-block; line-height: 0; border-radius: 8px; overflow: hidden; }
.as-adimg img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--as-ad-h, 300px); }
.as-ad--header, .as-ad--footer { --as-ad-h: 120px; }
.as-ad--home_after_hero, .as-ad--home_mid, .as-ad--list_inline { --as-ad-h: 250px; }
.as-ad--mobile_sticky { --as-ad-h: 100px; }
.as-adimg:focus-visible, .as-adcard:focus-visible { outline: 3px solid var(--as-ochre); outline-offset: 3px; }

/* Sponsored card in the site style */
.as-adcard { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 1rem 1.25rem; width: 100%; max-width: 760px; padding: 1rem 1.25rem; border: 1px solid var(--as-line); border-left: 5px solid var(--as-ochre); border-radius: var(--as-r); background: var(--as-surface); color: var(--as-ink) !important; text-align: left; text-decoration: none; transition: box-shadow .2s ease; }
.as-adcard.has-img { grid-template-columns: 96px minmax(0, 1fr); }
.as-adcard:hover { box-shadow: 0 14px 30px -18px rgba(23, 21, 42, .35); }
.as-adcard__img { display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--as-mist); }
.as-adcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-adcard__body { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.as-adcard__brand { flex-basis: 100%; font-size: .8125rem; font-weight: 600; color: var(--as-terra); }
.as-adcard__title { flex-basis: 100%; font: 700 1.2rem/1.25 var(--as-display); }
.as-adcard__text { flex: 1 1 240px; font-size: .9375rem; line-height: 1.5; color: var(--as-muted); }
.as-adcard__btn { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; background: var(--as-ochre); color: var(--as-on-ochre); font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.as-adcard:hover .as-adcard__btn { background: var(--as-indigo); color: #fff; }

/* Places */
.as-ad--header { background: var(--as-mist); border-bottom: 1px solid var(--as-line); padding: .75rem var(--as-gutter) 1rem; }
.as-ad--footer, .as-ad--home_after_hero, .as-ad--home_mid { padding: clamp(1.5rem, 3vw, 2.25rem) var(--as-gutter); }
.as-ad--footer { background: var(--as-mist); border-top: 1px solid var(--as-line); }
.as-ad--home_mid { padding-top: 0; }
.as-ad--home_mid .as-ad__inner { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.as-band--mist + .as-ad--home_mid { background: var(--as-mist); }
.as-content > .as-ad { margin-block: 2rem 2.25rem; padding-block: 1rem; border-top: 1px solid var(--as-line); border-bottom: 1px solid var(--as-line); }
.as-grid > .as-ad { grid-column: 1 / -1; padding: 1rem 0; }
.as-ad--manual { margin-block: 2rem; }

/* Phones: sticky bottom bar */
/* Phones: a slim floating bar that slides in while reading and steps aside near the footer, menus and pop-ups */
.as-ad--mobile_sticky { --as-ad-h: 52px; position: fixed; z-index: 75; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 0; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border: 1px solid rgba(23, 21, 42, .08); border-radius: 16px; box-shadow: 0 12px 32px -14px rgba(23, 21, 42, .4); transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.as-ad--mobile_sticky.is-up { transform: none; opacity: 1; pointer-events: auto; }
.as-ad--mobile_sticky .as-ad__inner { display: flex; align-items: center; gap: .25rem; padding: .4rem .3rem .4rem .45rem; text-align: left; }
.as-ad--mobile_sticky .as-ad__label { position: absolute; top: -7px; left: 14px; margin: 0; padding: 0 .4rem; border-radius: 999px; background: var(--as-ink-bg); color: #fff; font-size: 0; line-height: 14px; letter-spacing: .06em; }
.as-ad--mobile_sticky .as-ad__label::after { content: "AD"; font-size: 9px; font-weight: 700; }
.as-ad--mobile_sticky .as-ad__body { flex: 1 1 auto; min-width: 0; max-height: 60px; overflow: hidden; justify-content: flex-start; }
.as-ad--mobile_sticky .as-adimg { border-radius: 10px; }
.as-ad--mobile_sticky .as-adcard, .as-ad--mobile_sticky .as-adcard:hover { padding: 0; gap: .65rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; }
.as-ad--mobile_sticky .as-adcard.has-img { grid-template-columns: 44px minmax(0, 1fr); }
.as-ad--mobile_sticky .as-adcard__img { width: 44px; height: 44px; border-radius: 10px; }
.as-ad--mobile_sticky .as-adcard__text, .as-ad--mobile_sticky .as-adcard__brand { display: none; }
.as-ad--mobile_sticky .as-adcard__body { flex-wrap: nowrap; gap: .5rem; }
.as-ad--mobile_sticky .as-adcard__title { flex: 1 1 auto; min-width: 0; font: 600 .875rem/1.3 var(--wp--preset--font-family--body, Inter, sans-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-ad--mobile_sticky .as-adcard__btn { min-height: 34px; padding: .3rem .8rem; font-size: .8125rem; }
.as-ad__close { flex: none; order: 3; display: grid; place-items: center; width: 36px; height: 36px; margin-left: .1rem; border: 0; border-radius: 50%; background: transparent; color: var(--as-muted); cursor: pointer; }
.as-ad__close:hover, .as-ad__close:focus-visible { background: var(--as-mist); color: var(--as-ink); }
body.as-sticky-up .as-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.as-player-on .as-ad--mobile_sticky { display: none !important; }
@media (min-width: 761px) { .as-ad--mobile_sticky { display: none !important; } }

@media (max-width: 600px) {
	.as-adcard { padding: .85rem 1rem; gap: .75rem; }
	.as-adcard.has-img { grid-template-columns: 72px minmax(0, 1fr); }
	.as-adcard__img { width: 72px; height: 72px; }
	.as-adcard__title { font-size: 1.075rem; }
	.as-adcard__btn { min-height: 36px; font-size: .875rem; }
	.as-ad--header { padding-block: .5rem .75rem; --as-ad-h: 100px; }
}
@media print { .as-ad { display: none !important; } }

/* =====================================================================
   Reader accounts and members-only stories
   ===================================================================== */

/* Members badge */
.as-badge { display: inline-flex; align-items: center; gap: .3rem; min-height: 24px; padding: .2rem .6rem .2rem .5rem; margin-left: .35rem; border-radius: 999px; background: var(--as-ink-bg); color: var(--as-ochre); font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.as-badge svg { flex: none; }
.as-card__body > .as-badge, .as-hero-card__body > .as-badge { align-self: flex-start; }
.as-card__body:has(> .as-badge) { display: flex; flex-flow: row wrap; align-items: center; gap: .4rem 0; }
.as-card__body:has(> .as-badge) > :not(.as-chip):not(.as-badge) { flex: 0 0 100%; }
.as-hero-card .as-badge { background: var(--as-ochre); color: var(--as-on-ochre); }
.as-num .as-badge { margin: .35rem 0 0; }
.as-num .as-meta + .as-badge { display: inline-flex; }
.as-badge--byline { margin-left: .5rem; position: relative; top: -1px; }

/* Locked story: teaser fades into the invitation */
.as-teaser { position: relative; }
.as-teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%); pointer-events: none; }
.as-gate { position: relative; margin: .5rem 0 2.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 16px; background: var(--as-mist); border-top: 4px solid var(--as-ochre); text-align: center; }
.as-gate__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--as-ink-bg); color: var(--as-ochre); margin-bottom: .75rem; }
.as-gate__kicker { margin: 0 0 .35rem !important; font-size: .8125rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--as-terra); }
.as-content .as-gate__title, .as-gate__title { margin: 0 0 .6rem !important; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.15; }
.as-gate__text { max-width: 46ch; margin: 0 auto 1.25rem !important; color: var(--as-muted); font-size: 1rem !important; line-height: 1.6 !important; }
.as-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 !important; }
.as-gate__actions .as-btn { min-width: 11rem; justify-content: center; }
.as-locked .as-nlbox, .as-locked .as-toc { display: none; }

/* Save button in the story tools */
.as-save { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--as-ink); background: var(--as-surface); color: var(--as-ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; margin-right: auto; }
.as-save:hover { background: var(--as-mist); }
.as-save[aria-pressed=true] { background: var(--as-ink-bg); color: var(--as-ochre); }
.as-save[aria-pressed=true] path { fill: currentColor; }
.as-save[aria-busy=true] { opacity: .6; }

/* Account link in the header */
.as-acct { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--as-line); color: var(--as-ink); text-decoration: none; margin-left: .5rem; transition: border-color .15s ease, background .15s ease; }
.as-acct:hover, .as-acct[aria-current] { border-color: var(--as-ink); }
.as-acct.is-in { background: var(--as-indigo); border-color: var(--as-indigo); color: #fff; font-weight: 700; font-size: 1rem; }
.as-acct.is-in:hover { background: var(--as-deep); }
@media (max-width: 1020px) { .as-acct { order: -1; width: 38px; height: 38px; margin: 0 .35rem 0 .4rem; } }

/* Sign in / create account */
.as-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin: 0 0 3rem; }
.as-acct__intro { padding-top: .5rem; }
.as-acct__intro h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 1.25rem; line-height: 1.1; }
.as-acct__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.as-acct__perks li { display: flex; gap: .7rem; align-items: center; font-size: 1.0625rem; }
.as-acct__perks svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--as-mist); color: var(--as-link); }
.as-acct__card { background: var(--as-surface); border: 1px solid var(--as-line); border-radius: 16px; padding: clamp(1.25rem, 3.5vw, 2rem); box-shadow: 0 24px 40px -30px rgba(23, 21, 42, .45); }
.as-acct__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 1.25rem; border-radius: 999px; background: var(--as-mist); }
.as-acct__tab { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--as-muted) !important; }
.as-acct__tab[aria-current] { background: var(--as-surface); color: var(--as-ink) !important; box-shadow: 0 2px 6px rgba(23, 21, 42, .12); }
.as-acct__form p { margin: 0 0 1rem; }
.as-form input[type=password] { width: 100%; min-height: 48px; padding: .7rem 3rem .7rem .9rem; border: 2px solid var(--as-line); border-radius: var(--as-r); background: var(--as-surface); font: inherit; font-size: 16px; color: var(--as-ink); }
.as-pw { position: relative; display: block; }
.as-pw__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--as-muted); cursor: pointer; border-radius: 8px; }
.as-pw__toggle[aria-pressed=true] { color: var(--as-link); }
.as-form__hint { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--as-muted); }
.as-acct__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9375rem; }
.as-acct__remember { display: inline-flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; margin: 0 !important; }
.as-acct__remember input { width: 20px; height: 20px; accent-color: var(--as-indigo); }
.as-acct__submit { width: 100%; justify-content: center; min-height: 50px; font-size: 1.0625rem; }
.as-acct__alt { text-align: center; color: var(--as-muted); font-size: .9375rem; margin: 0 !important; }
.as-acct__alt a, .as-acct__row a, .as-form__check a { color: var(--as-link); font-weight: 600; }

/* Reader dashboard */
.as-dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: 3rem; }
.as-dash__side { position: sticky; top: 90px; background: var(--as-mist); border-radius: 16px; padding: 1.25rem; }
.as-dash__me { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; min-width: 0; }
.as-dash__me > span:last-child { min-width: 0; }
.as-dash__me strong, .as-dash__me small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-dash__me small { color: var(--as-muted); font-size: .8125rem; }
.as-dash__avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--as-indigo); color: var(--as-ochre); font-family: var(--as-display); font-size: 1.4rem; font-weight: 700; }
.as-dash__nav { display: grid; gap: 2px; }
.as-dash__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .5rem .8rem; border-radius: 10px; text-decoration: none; color: var(--as-ink); font-weight: 500; }
.as-dash__nav a:hover { background: var(--as-surface); }
.as-dash__nav a[aria-current] { background: var(--as-surface); font-weight: 700; box-shadow: inset 3px 0 0 var(--as-ochre); }
.as-dash__nav .as-dash__out { margin-top: .5rem; border-top: 1px solid var(--as-line); border-radius: 0 0 10px 10px; color: var(--as-terra); }
.as-dash__count { min-width: 24px; padding: 0 .45rem; border-radius: 999px; background: var(--as-ochre); color: var(--as-on-ochre); font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center; }
.as-dash__main > h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.as-dash__main h3 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.as-dash__main .as-head-row h3 { margin: 0; }
.as-dash__main .as-head-row { margin: 2rem 0 1rem; }
.as-dash__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.as-dash__stats > * { padding: 1.1rem 1.25rem; border: 1px solid var(--as-line); border-radius: 14px; text-decoration: none; color: var(--as-ink); }
.as-dash__stats a:hover { border-color: var(--as-ink); }
.as-dash__stats strong { display: block; font-family: var(--as-display); font-size: 1.75rem; line-height: 1.1; }
.as-dash__stats span { color: var(--as-muted); font-size: .9375rem; }
.as-grid--dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-dash__empty { padding: 1.5rem; border: 2px dashed var(--as-line); border-radius: 14px; color: var(--as-muted); }
.as-dash__empty p:last-child { margin-bottom: 0; }
.as-dash__form h3 { margin-top: 1.5rem; }
.as-dash__main .as-nlbox { margin-top: 2.5rem; }

@media (max-width: 900px) {
	.as-auth { grid-template-columns: minmax(0, 1fr); }
	.as-acct__intro { order: 2; }
	.as-dash { grid-template-columns: minmax(0, 1fr); }
	.as-dash__side { position: static; padding: 1rem; }
	.as-dash__nav { display: flex; overflow-x: auto; gap: .35rem; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; }
	.as-dash__nav::-webkit-scrollbar { display: none; }
	.as-dash__nav a { flex: none; background: var(--as-surface); border-radius: 999px; min-height: 40px; white-space: nowrap; gap: .4rem; }
	.as-dash__nav a[aria-current] { background: var(--as-ink-bg); color: #fff; box-shadow: none; }
	.as-dash__nav .as-dash__out { margin: 0; border: 0; border-radius: 999px; }
	.as-grid--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.as-grid--dash { grid-template-columns: minmax(0, 1fr); }
	.as-acct__intro h2 { font-size: 1.5rem; }
	.as-gate__actions .as-btn { flex: 1 1 100%; }
	.as-save { flex: 1 1 0; justify-content: center; margin-right: 0; }
	.as-tools .as-listen { flex: 1 1 0; }
	.as-badge--byline { margin: .4rem 0 0; display: inline-flex; }
}

/* Members Only page */
.as-mhub__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; margin: 0 0 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; background: var(--as-ink-bg); color: #fff; }
.as-mhub__bar h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.as-mhub__bar p { margin: 0; color: #d9d6f5; }
.as-mhub__bar .as-gate__icon { margin: 0; background: var(--as-ochre); color: var(--as-on-ochre); }
.as-mhub__bar .as-gate__actions { justify-content: flex-end; }
.as-mhub__bar .as-btn--ghost { border-color: #fff; color: #fff !important; }
.as-mhub__bar .as-btn--ghost:hover { background: var(--as-surface); color: var(--as-ink) !important; }
.as-mhub__bar.is-in { grid-template-columns: auto minmax(0, 1fr) auto; background: var(--as-mist); color: var(--as-ink); padding: 1rem 1.25rem; }
.as-mhub__bar.is-in p { color: var(--as-ink); font-weight: 600; }
.as-mhub__bar.is-in svg { color: var(--as-ochre); }
.as-mhub__bar.is-in .as-btn--ghost { border-color: var(--as-ink); color: var(--as-ink) !important; }
.as-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.as-pager a, .as-pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--as-line); text-decoration: none; color: var(--as-ink); font-weight: 600; }
.as-pager .current { background: var(--as-ink-bg); color: #fff; border-color: var(--as-ink); }
@media (max-width: 760px) {
	.as-mhub__bar { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
	.as-mhub__bar .as-gate__actions { justify-content: center; width: 100%; }
	.as-mhub__bar.is-in { grid-template-columns: minmax(0, 1fr); }
}

/* Account icon: beat the generic nav link styles */
.as-nav a.as-acct { display: inline-grid; place-items: center; padding: 0; border-radius: 50%; box-shadow: none; font-weight: 700; }
.as-nav a.as-acct:hover { background: var(--as-mist); }
.as-nav a.as-acct.is-in, .as-nav a.as-acct.is-in:hover { background: var(--as-indigo); color: #fff; }
.as-nav a.as-acct[aria-current] { border-color: var(--as-ochre); }
/* Forms inside the account card and dashboard sit flat */
.as-acct__card .as-form, .as-dash .as-form { margin: 0; padding: 0; background: none; border-radius: 0; }
@media (max-width: 600px) { .as-dash__stats strong { font-size: 1.35rem; } .as-dash__stats > * { padding: .9rem 1rem; } }

/* =====================================================================
   Members Only in the menu
   ===================================================================== */
.as-nav li.as-nav__members a { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .5rem .4rem; border-radius: 10px; background: color-mix(in srgb, var(--as-ochre) 10%, transparent); color: var(--as-ink); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--as-ochre) 45%, transparent); overflow: hidden; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.as-nav li.as-nav__members a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--as-ochre) 0 18px, var(--as-terra) 18px 24px, var(--as-indigo) 24px 30px, var(--as-green) 30px 36px, var(--as-ochre) 36px 48px); }
.as-nav li.as-nav__members a .as-nav__key { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--as-ochre); color: #1a1208; flex: none; }
.as-nav li.as-nav__members a .as-nav__key svg { width: 12px; height: 12px; }
.as-nav li.as-nav__members a:hover, .as-nav li.as-nav__members a:focus-visible, .as-nav li.as-nav__members a[aria-current] { background: var(--as-ink-bg); color: #fff; box-shadow: inset 0 0 0 1px var(--as-ochre); }
[data-theme=dark] .as-nav li.as-nav__members a:hover, [data-theme=dark] .as-nav li.as-nav__members a:focus-visible, [data-theme=dark] .as-nav li.as-nav__members a[aria-current] { background: var(--as-ochre); color: #1a1208; }
[data-theme=dark] .as-nav li.as-nav__members a:hover .as-nav__key, [data-theme=dark] .as-nav li.as-nav__members a[aria-current] .as-nav__key { background: #1a1208; color: var(--as-ochre); }
.as-nav__panel li.as-nav__members a { display: flex; margin: .35rem 0; padding: .65rem 1rem .75rem .65rem; }
@media (prefers-reduced-motion: reduce) { .as-nav li.as-nav__members a { transition: none; } }

/* Chip + Members badge on one row */
.as-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; position: relative; z-index: 2; }
.as-tags .as-badge { margin: 0; }
.as-card__body > .as-tags { align-self: flex-start; }

/* =====================================================================
   Dark mode
   ===================================================================== */
.as-theme { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: .35rem; border: 0; border-radius: 50%; background: transparent; color: var(--as-ink); cursor: pointer; }
.as-theme:hover { background: var(--as-mist); }
.as-theme__sun { display: none; }
[data-theme=dark] .as-theme__sun { display: block; }
[data-theme=dark] .as-theme__moon { display: none; }
.as-theme--row { display: flex; width: 100%; height: auto; min-height: 48px; gap: .75rem; justify-content: flex-start; padding: .5rem .5rem; margin: .5rem 0 0; border-radius: 10px; font: inherit; font-size: 1.0625rem; font-weight: 500; border-top: 1px solid var(--as-line); }
.as-theme--row .as-theme__label::after { content: " · off"; color: var(--as-muted); font-weight: 400; }
[data-theme=dark] .as-theme--row .as-theme__label::after { content: " · on"; }
@media (max-width: 1020px) { .as-theme--bar { display: none; } }

html[data-theme=dark] {
	color-scheme: dark;
	--wp--preset--color--base: #11101d;
	--wp--preset--color--mist: #1c1b2f;
	--wp--preset--color--line: #2f2d4a;
	--wp--preset--color--muted: #aeabc8;
	--wp--preset--color--ink: #eeedf7;
	--as-surface: #19182b;
	--as-page: #11101d;
	--as-ink-bg: #272552;
	--as-link: #b9b4ff;
}
[data-theme=dark] body { background: var(--as-page); color: var(--as-ink); }
:where([data-theme=dark]) body a:where(:not(.wp-element-button)) { color: var(--as-link); }
[data-theme=dark] .as-header { background: rgba(17, 16, 29, .94); }
[data-theme=dark] .as-logo img { filter: invert(1); }
[data-theme=dark] .as-nav__panel { background: var(--as-surface); }
[data-theme=dark] .as-teaser::after { background: linear-gradient(to bottom, rgba(17, 16, 29, 0), var(--as-page) 92%); }
[data-theme=dark] .as-ad--mobile_sticky { background: rgba(25, 24, 43, .95); border-color: rgba(255, 255, 255, .08); }
[data-theme=dark] .as-band--indigo, [data-theme=dark] .as-archive-head { background: #1b1946; }
[data-theme=dark] .as-footer { background: #0b0a14; }
[data-theme=dark] .as-card, [data-theme=dark] .as-acct__card { border-color: var(--as-line); }
[data-theme=dark] .as-card:hover { box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); }
[data-theme=dark] .as-chip { background: #26243e; color: var(--as-ink) !important; }
[data-theme=dark] .as-content img, [data-theme=dark] .as-card__img img { filter: brightness(.92); }
[data-theme=dark] .as-form input, [data-theme=dark] .as-form select, [data-theme=dark] .as-form textarea, [data-theme=dark] .as-search input { background: #141325; color: var(--as-ink); border-color: var(--as-line); }
[data-theme=dark] .as-form input:focus, [data-theme=dark] .as-form textarea:focus { border-color: var(--as-link); box-shadow: 0 0 0 3px rgba(185, 180, 255, .2); }
[data-theme=dark] .as-btn--ghost:hover { background: var(--as-ink); color: var(--as-page) !important; }
[data-theme=dark] .as-btn--ink { background: #3b38a0; }
[data-theme=dark] .as-btn--ink:hover { background: #4a47c0; }
[data-theme=dark] .as-form__status--ok { background: #163626; color: #a9e4c0; }
[data-theme=dark] .as-form__status--err { background: #3d1c12; color: #f6b9a3; }
[data-theme=dark] .as-share__wa { background: #1b7a43 !important; }
[data-theme=dark] .as-gate { background: #1c1b2f; }
[data-theme=dark] .as-save[aria-pressed=true] { background: var(--as-ochre); color: var(--as-on-ochre); border-color: var(--as-ochre); }
[data-theme=dark] .as-dash__nav a:hover, [data-theme=dark] .as-dash__nav a[aria-current] { background: var(--as-surface); }
[data-theme=dark] .as-acct__tab[aria-current] { background: var(--as-surface); }
[data-theme=dark] .as-mhub__bar.is-in { background: var(--as-surface); }
[data-theme=dark] .wp-block-separator, [data-theme=dark] hr { border-color: var(--as-line); }
[data-theme=dark] .as-content blockquote { border-color: var(--as-ochre); }
[data-theme=dark] .as-content table td, [data-theme=dark] .as-content table th { border-color: var(--as-line); }
[data-theme=dark] .mc4wp-form input[type=email] { background: #141325; color: var(--as-ink); }

/* =====================================================================
   Profile editing
   ===================================================================== */
.as-ava { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--as-indigo); }
.as-ava--initial { display: grid; place-items: center; color: var(--as-ochre); font-family: var(--as-display); font-weight: 700; line-height: 1; }
.as-acct img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.as-nav a.as-acct:has(img) { border-color: var(--as-ochre); overflow: hidden; }
.as-dash__me a { display: block; font-size: .8125rem; color: var(--as-link); font-weight: 600; }
.as-avatar-edit { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1.25rem; }
.as-avatar-edit > div { display: grid; gap: .45rem; justify-items: start; }
.as-file { position: relative; cursor: pointer; min-height: 42px; padding: .45rem 1.1rem; }
.as-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.as-avatar-edit__rm { display: inline-flex !important; gap: .4rem; align-items: center; font-weight: 400 !important; font-size: .9rem; margin: 0 !important; }
.as-prefix { display: flex; align-items: stretch; border: 2px solid var(--as-line); border-radius: var(--as-r); overflow: hidden; background: var(--as-surface); }
.as-prefix > span { display: grid; place-items: center; padding: 0 .7rem; background: var(--as-mist); color: var(--as-muted); font-size: .9rem; white-space: nowrap; }
.as-form .as-prefix input { border: 0 !important; border-radius: 0; min-width: 0; flex: 1; box-shadow: none !important; }
.as-prefix:focus-within { border-color: var(--as-link); }
.as-prefix--wide > span { font-size: .8125rem; max-width: 55%; overflow: hidden; text-overflow: ellipsis; justify-content: start; }
.as-picks, .as-swatches, .as-pins { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.as-picks legend, .as-swatches legend, .as-pins legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.as-pick { position: relative; }
.as-pick input, .as-swatch input { position: absolute; opacity: 0; }
.as-pick span { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--as-line); cursor: pointer; font-weight: 500; }
.as-pick input:checked + span { background: var(--as-ink-bg); border-color: var(--as-ink-bg); color: var(--as-ochre); }
.as-pick input:focus-visible + span, .as-swatch input:focus-visible + span { outline: 3px solid var(--as-ochre); outline-offset: 2px; }
.as-swatch { position: relative; }
.as-swatch span { display: flex; align-items: flex-end; width: 112px; height: 64px; padding: .4rem .55rem; border-radius: 12px; color: #fff; font-size: .8125rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 3px transparent; }
.as-swatch input:checked + span { box-shadow: inset 0 0 0 3px var(--as-surface), 0 0 0 3px var(--as-ochre); }
.as-swatch--indigo span, .as-mp--indigo { --mp: #1f1d5c; --mp2: #e0a21b; }
.as-swatch--ochre span, .as-mp--ochre { --mp: #b9800c; --mp2: #17152a; }
.as-swatch--terra span, .as-mp--terra { --mp: #a8391a; --mp2: #f3c66b; }
.as-swatch--green span, .as-mp--green { --mp: #22603c; --mp2: #e0a21b; }
.as-swatch--ink span, .as-mp--ink { --mp: #0e0d18; --mp2: #c2431d; }
.as-swatch span { background: var(--mp); background-image: repeating-linear-gradient(90deg, var(--mp2) 0 10px, transparent 10px 22px); background-size: 100% 8px; background-repeat: no-repeat; background-position: top; }
.as-pins { display: grid; gap: .4rem; }
.as-pin { display: flex !important; gap: .6rem; align-items: center; padding: .55rem .75rem; border: 1px solid var(--as-line); border-radius: 10px; font-weight: 500 !important; margin: 0 !important; cursor: pointer; }
.as-pin input { width: 18px; height: 18px; accent-color: var(--as-indigo); flex: none; }
.as-toggles { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.as-toggle { display: flex !important; gap: .9rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--as-line); border-radius: 12px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.as-toggle input { position: absolute; opacity: 0; }
.as-toggle__ui { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--as-line); transition: background .2s; }
.as-toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.as-toggle input:checked + .as-toggle__ui { background: var(--as-green); }
.as-toggle input:checked + .as-toggle__ui::after { transform: translateX(18px); }
.as-toggle input:focus-visible + .as-toggle__ui { outline: 3px solid var(--as-ochre); outline-offset: 2px; }
.as-toggle strong, .as-toggle small { display: block; }
.as-toggle small { color: var(--as-muted); font-size: .8125rem; }
.as-meter { margin: 1.25rem 0 0; padding: 1rem 1.25rem; border-radius: 14px; background: var(--as-mist); }
.as-meter__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.as-meter__bar { display: block; height: 8px; border-radius: 999px; background: var(--as-line); overflow: hidden; }
.as-meter__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--as-ochre), var(--as-terra)); }
.as-meter p { margin: .6rem 0 0; color: var(--as-muted); font-size: .875rem; }
.as-danger { margin-top: 2.5rem; border: 1px solid rgba(194, 67, 29, .4); border-radius: 12px; padding: .9rem 1.1rem; }
.as-danger summary { cursor: pointer; color: var(--as-terra); font-weight: 600; }
.as-danger .as-form { margin-top: 1rem; }
.as-btn--danger { background: var(--as-terra); color: #fff !important; }
.as-dash__main .as-head-row h2 { margin: 0; }
.as-dash__main > .as-head-row:first-child { margin-top: 0; margin-bottom: 1.25rem; }

/* =====================================================================
   Public member page
   ===================================================================== */
.as-mp { margin-bottom: 3rem; }
.as-mp__cover { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; padding: 5.5rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem; border-radius: 20px; background: var(--mp); color: #fff; overflow: hidden; }
.as-mp__pattern { position: absolute; inset: 0 0 auto; height: 4.25rem; background: repeating-linear-gradient(90deg, var(--mp2) 0 22px, transparent 22px 34px, rgba(255, 255, 255, .35) 34px 40px, transparent 40px 56px); opacity: .85; }
.as-mp__ava { position: relative; border: 5px solid var(--mp); box-shadow: 0 0 0 3px var(--mp2); }
.as-mp__id { position: relative; min-width: 0; }
.as-mp__name { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; }
.as-mp__name .as-badge { font-family: var(--wp--preset--font-family--body, inherit); }
.as-badge--team { background: var(--as-ochre); color: var(--as-on-ochre); }
.as-mp__headline { margin: 0 0 .6rem; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.as-mp__facts { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.as-mp__facts span { display: inline-flex; gap: .35rem; align-items: center; }
.as-mp__facts a { color: #fff !important; }
.as-mp__edit { position: relative; align-self: start; }
.as-mp__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; align-items: start; }
.as-mp__about { padding: 1.25rem; border-radius: 16px; background: var(--as-mist); }
.as-mp__about h3, .as-mp__main h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.as-mp__about h3 ~ h3 { margin-top: 1.25rem; }
.as-mp__about p { margin: 0; }
.as-mp__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.as-mp__links { display: grid; gap: .35rem; }
.as-mp__links a { font-weight: 600; overflow-wrap: anywhere; }
.as-mp__main h3 ~ h3 { margin-top: 2rem; }
@media (max-width: 860px) {
	.as-mp__cover { grid-template-columns: minmax(0, 1fr); justify-items: start; padding-top: 5rem; gap: 1rem; }
	.as-mp__edit { position: absolute; top: 5.25rem; right: 1rem; }
	.as-mp__body { grid-template-columns: minmax(0, 1fr); }
	.as-mp__ava { width: 104px !important; height: 104px !important; }
	.as-avatar-edit { align-items: flex-start; }
}

/* Dark mode: keep the gold newsletter box readable */
[data-theme=dark] .as-nlbox input[type=email], [data-theme=dark] .as-nlbox input[type=text] { background: #fff; color: #17152a; }
[data-theme=dark] .as-btn:not(.as-btn--ghost):not(.as-btn--ink):not(.as-btn--danger):not(.as-btn--line):hover { background: #f3c66b; }
.as-band--ochre h2, .as-band--ochre h3, .as-band--ochre p, .as-band--ochre label { color: var(--as-on-ochre); }

/* Branded card ads: the advertiser's own colours */
.as-adcard.is-brand { --ad-accent-c: var(--ad-accent, var(--as-ochre)); border-left-color: var(--ad-accent-c); }
.as-adcard.has-bg { background: var(--ad-bg); color: var(--ad-fg, #fff) !important; border-color: transparent; border-left-color: var(--ad-accent-c); }
.as-adcard.has-bg .as-adcard__title { color: var(--ad-fg, #fff); }
.as-adcard.has-bg .as-adcard__text { color: var(--ad-fg, #fff); opacity: .82; }
.as-adcard.is-brand .as-adcard__brand { color: var(--ad-accent-c); letter-spacing: .02em; }
.as-adcard.is-brand .as-adcard__btn { background: var(--ad-accent-c); color: var(--ad-on-accent, #17152a); }
.as-adcard.is-brand:hover .as-adcard__btn { background: var(--ad-fg, var(--as-indigo)); color: var(--ad-bg, #fff); }
.as-adcard.is-wide { max-width: 860px; padding: 0; overflow: hidden; gap: 0; }
.as-adcard.is-wide.has-img { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.as-adcard.is-wide .as-adcard__img { width: 100%; height: 100%; min-height: 170px; border-radius: 0; aspect-ratio: 16 / 9; }
.as-adcard.is-wide .as-adcard__body { padding: 1.1rem 1.35rem; }
.as-adcard.is-wide .as-adcard__title { font-size: 1.35rem; }
@media (max-width: 600px) {
	.as-adcard.is-wide.has-img { grid-template-columns: minmax(0, 1fr); }
	.as-adcard.is-wide .as-adcard__img { min-height: 0; aspect-ratio: 1312 / 600; }
	.as-adcard.is-wide .as-adcard__body { padding: .9rem 1rem 1rem; }
}
/* In the slim phone bar the brand shows as a coloured chip and button */
.as-ad--mobile_sticky .as-adcard.is-brand .as-adcard__img { box-shadow: 0 0 0 2px var(--ad-accent-c); }
.as-ad--mobile_sticky .as-adcard.has-bg, .as-ad--mobile_sticky .as-adcard.has-bg:hover { background: transparent; color: var(--as-ink) !important; }
.as-ad--mobile_sticky .as-adcard.has-bg .as-adcard__title { color: var(--as-ink); }
.as-ad--mobile_sticky .as-adcard.is-wide.has-img { grid-template-columns: 44px minmax(0, 1fr); }
.as-ad--mobile_sticky .as-adcard.is-wide .as-adcard__img { width: 44px; height: 44px; min-height: 0; aspect-ratio: 1; border-radius: 10px; }
.as-ad--mobile_sticky .as-adcard.is-wide .as-adcard__body { padding: 0; }
.as-ad--mobile_sticky .as-adcard.is-wide { padding: 0; gap: .65rem; }
.as-adcard__brand { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.as-adcard__tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-style: normal; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; background: var(--ad-accent-c, var(--as-ochre)); color: var(--ad-on-accent, var(--as-on-ochre)); }
.as-adcard__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: as-pulse 1.6s ease-in-out infinite; }
@keyframes as-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .as-adcard__tag::before { animation: none; } }
/* The phone bar hides the brand line but keeps the tag, stacked over the title */
.as-ad--mobile_sticky .as-adcard__body:has(.as-adcard__tag) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .5rem; align-items: center; }
.as-ad--mobile_sticky .as-adcard:has(.as-adcard__tag) .as-adcard__brand { display: flex; grid-column: 1; font-size: 0; gap: 0; }
.as-ad--mobile_sticky .as-adcard__tag { font-size: .5625rem; padding: .12rem .4rem; }
.as-ad--mobile_sticky .as-adcard__body:has(.as-adcard__tag) .as-adcard__title { grid-column: 1; -webkit-line-clamp: 1; }
.as-ad--mobile_sticky .as-adcard__body:has(.as-adcard__tag) .as-adcard__btn { grid-column: 2; grid-row: 1 / span 2; }
.as-adcard.is-fit .as-adcard__img { background: var(--ad-bg, var(--as-mist)); }
.as-adcard.is-fit .as-adcard__img img { object-fit: contain; }
.as-adcard.is-fit.is-wide .as-adcard__img { display: grid; place-items: center; }

/* =====================================================================
   Ad rotation: every place cycles through its ads
   ===================================================================== */
.as-ad__body { display: grid; justify-items: center; }
.as-ad__item { grid-area: 1 / 1; display: flex; justify-content: center; width: 100%; min-width: 0; }
.as-ad__item > * { max-width: 100%; }
.as-ad__body.is-rotating > .as-ad__item { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.as-ad__body.is-rotating > .as-ad__item.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.as-ad__body.is-calm > .as-ad__item { transition: none !important; }
.as-ad__ctl { display: flex; justify-content: center; align-items: center; gap: .15rem; margin-top: .5rem; }
.as-ad__dot, .as-ad__pause { appearance: none; border: 0; background: none; padding: 0; width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; color: var(--as-muted, #6b6b6b); }
.as-ad__dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .35; transition: width .25s ease, opacity .25s ease; }
.as-ad__dot[aria-current="true"]::before { width: 18px; opacity: .9; }
.as-ad__dot:hover::before { opacity: .7; }
.as-ad__dot:focus-visible, .as-ad__pause:focus-visible { outline: 2px solid var(--as-ochre); outline-offset: 1px; border-radius: 6px; }
.as-ad__pause svg { fill: currentColor; opacity: .55; }
.as-ad__pause .g, .as-ad.is-paused .as-ad__pause .p { display: none; }
.as-ad.is-paused .as-ad__pause .g { display: inline; }
.as-ad--mobile_sticky .as-ad__item { justify-content: flex-start; }
.as-ad--mobile_sticky .as-ad__ctl { display: none; }

/* Logo tiles (ads set to "fit"): a brand-dark tile with a soft accent glow, so light and white logos stay visible in light and dark mode */
.as-adcard.is-fit .as-adcard__img { display: grid; place-items: center; box-sizing: border-box; padding: 14%; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--ad-accent, #8a8a8a) 30%, transparent) 0, transparent 68%), var(--ad-bg, var(--as-ink-bg)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.as-adcard.is-fit .as-adcard__img img { width: 100%; height: 100%; object-fit: contain; }
.as-adcard.is-fit.is-wide .as-adcard__img { padding: 1.25rem; box-shadow: none; }
.as-adcard.is-fit.is-wide .as-adcard__img img { width: min(46%, 150px); height: auto; max-height: 100%; }
.as-ad--mobile_sticky .as-adcard.is-fit.is-wide .as-adcard__img img { width: 100%; height: 100%; }
.as-ad--mobile_sticky .as-adcard.is-fit .as-adcard__img, .as-ad--mobile_sticky .as-adcard.is-fit.is-wide .as-adcard__img { padding: 6px; }
.as-ad__item { align-self: center; }

/* =====================================================================
   Home hero (v2): promise + lead story + two more
   ===================================================================== */
.as-hero2 { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.25rem, 5vw, 4.25rem); background: radial-gradient(120% 90% at 100% 0%, rgba(224, 162, 27, .16) 0, transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(194, 65, 12, .14) 0, transparent 60%), var(--as-indigo); }
.as-hero2::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: repeating-linear-gradient(90deg, var(--as-ochre) 0 46px, var(--as-terra) 46px 60px, var(--as-indigo) 60px 74px, var(--as-green) 74px 88px, var(--as-ochre) 88px 120px); opacity: .9; }
.as-hero2__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.as-hero2__kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .35rem .8rem .35rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #e9e6ff; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.as-hero2__kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--as-ochre); box-shadow: 0 0 0 4px rgba(224, 162, 27, .25); }
.as-hero2__title { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -.01em; max-width: 14ch; }
.as-hero2__title span { color: var(--as-ochre); font-style: italic; }
.as-hero2__lede { margin: 0 0 1.5rem; max-width: 40ch; color: #d9d6f5; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; }
.as-hero2__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.as-hero2 .as-btn:hover { background: #fff; color: var(--as-ink) !important; }
.as-btn--line { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.as-hero2 .as-btn--line:hover { background: rgba(255, 255, 255, .12); color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }
.as-hero2__feature { position: relative; border-radius: calc(var(--as-r) + 4px); overflow: hidden; background: var(--as-deep); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); isolation: isolate; }
.as-hero2__media { aspect-ratio: 16 / 10; }
.as-hero2__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.as-hero2__feature:hover .as-hero2__media img { transform: scale(1.03); }
.as-hero2__cap { position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(1rem, 2.5vw, 1.75rem); padding-top: 5rem; background: linear-gradient(180deg, rgba(14, 12, 40, 0) 0%, rgba(14, 12, 40, .72) 42%, rgba(14, 12, 40, .94) 100%); color: #fff; }
.as-hero2__cap .as-tags, .as-hero2__cap .as-chip, .as-hero2__cap .as-badge { position: relative; z-index: 2; }
.as-hero2__h { margin: .6rem 0 .4rem; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.12; color: #fff; }
.as-hero2__h a { color: #fff; text-decoration: none; }
.as-hero2__h a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.as-hero2__h a:focus-visible { outline: none; }
.as-hero2__feature:has(.as-hero2__h a:focus-visible) { outline: 3px solid var(--as-ochre); outline-offset: 3px; }
.as-hero2__ex { margin: 0 0 .5rem; max-width: 58ch; color: #e4e1fb; font-size: .9375rem; line-height: 1.5; }
.as-hero2__cap .as-meta { color: #c9c6ee; margin: 0; }
.as-hero2__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.as-hero2__mini { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .6rem; border-radius: var(--as-r); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s ease; }
.as-hero2__mini:hover { background: rgba(255, 255, 255, .11); }
.as-hero2__thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--as-deep); }
.as-hero2__thumb img, .as-hero2__thumb .as-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-hero2__cat { display: block; margin-bottom: .2rem; color: var(--as-ochre); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.as-hero2__mini h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.as-hero2__mini h3 a { color: #fff; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-hero2__mini h3 a::after { content: ""; position: absolute; inset: 0; }
.as-hero2__mini h3 a:focus-visible { outline: none; }
.as-hero2__mini:has(h3 a:focus-visible) { outline: 3px solid var(--as-ochre); outline-offset: 2px; }
.as-hero2__mini .as-badge { margin-top: .35rem; }
.as-hero2 + .as-weave { display: none; }
@media (max-width: 1020px) {
	.as-hero2__grid { grid-template-columns: minmax(0, 1fr); }
	.as-hero2__title { max-width: 18ch; }
}
@media (max-width: 760px) {
	.as-hero2 { padding-block: 1.25rem 1.75rem; }
	.as-hero2__grid { gap: 1.25rem; }
	.as-hero2__kicker { gap: .45rem; margin-bottom: .7rem; padding: .25rem .65rem .25rem .5rem; font-size: .6875rem; letter-spacing: .03em; }
	.as-hero2__kicker span { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(224, 162, 27, .25); }
	.as-hero2__title { max-width: none; margin-bottom: .55rem; font-size: clamp(1.7rem, 8.2vw, 2.15rem); line-height: 1.08; }
	.as-hero2__lede { max-width: 36ch; margin-bottom: 1rem; font-size: .9375rem; line-height: 1.5; }
	.as-hero2__ctas { gap: .5rem; margin-bottom: 0; }
	.as-hero2__ctas .as-btn { flex: 1 1 0; justify-content: center; min-height: 44px; padding: .55rem .9rem; font-size: .9375rem; }
	.as-hero2__feature { border-radius: 14px; }
	.as-hero2__media { aspect-ratio: 3 / 2; }
	.as-hero2__ex { display: none; }
	.as-hero2__cap { padding: 3.5rem .95rem .9rem; }
	.as-hero2__cap .as-chip, .as-hero2__cap .as-badge { font-size: .75rem; }
	.as-hero2__h { margin: .45rem 0 .25rem; font-size: 1.3rem; line-height: 1.15; }
	.as-hero2__cap .as-meta { font-size: .8125rem; }
	.as-hero2__more { display: flex; gap: .6rem; margin: .6rem calc(var(--as-gutter, 1rem) * -1) 0; padding: 0 var(--as-gutter, 1rem) .15rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--as-gutter, 1rem); scrollbar-width: none; }
	.as-hero2__more::-webkit-scrollbar { display: none; }
	.as-hero2__mini { flex: 0 0 min(80%, 300px); grid-template-columns: 56px minmax(0, 1fr); gap: .65rem; padding: .5rem; border-radius: 12px; scroll-snap-align: start; }
	.as-hero2__thumb { width: 56px; height: 56px; border-radius: 8px; }
	.as-hero2__cat { margin-bottom: .1rem; font-size: .6875rem; }
	.as-hero2__mini h3 { font-size: .9375rem; line-height: 1.25; }
	.as-hero2::after { height: 5px; }
}
@media (max-width: 360px) {
	.as-hero2__kicker { font-size: .625rem; }
	.as-hero2__ctas .as-btn { padding-inline: .6rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .as-hero2__media img { transition: none; } .as-hero2__feature:hover .as-hero2__media img { transform: none; } }

/* =====================================================================
   Header ad on phones: one slim strip, not a block over the content
   ===================================================================== */
@media (max-width: 760px) {
	.as-ad--header { padding: .45rem var(--as-gutter, 1rem) .5rem; }
	.as-ad--header .as-ad__inner { position: relative; }
	.as-ad--header .as-ad__label { position: absolute; z-index: 2; top: -4px; left: 10px; margin: 0; padding: 0 .4rem; border-radius: 999px; background: var(--as-ink-bg); color: #fff; font-size: 0; line-height: 14px; }
	.as-ad--header .as-ad__label::after { content: "AD"; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
	.as-ad--header .as-ad__ctl { display: none; }
	.as-ad--header .as-adcard, .as-ad--header .as-adcard.is-wide { max-width: none; padding: .45rem .5rem .45rem .5rem; gap: .6rem; border-left-width: 3px; border-radius: 12px; }
	.as-ad--header .as-adcard.has-img, .as-ad--header .as-adcard.is-wide.has-img { grid-template-columns: 38px minmax(0, 1fr); }
	.as-ad--header .as-adcard__img, .as-ad--header .as-adcard.is-wide .as-adcard__img { width: 38px; height: 38px; min-height: 0; aspect-ratio: 1; border-radius: 8px; }
	.as-ad--header .as-adcard.is-fit .as-adcard__img { padding: 5px; }
	.as-ad--header .as-adcard.is-fit .as-adcard__img img { width: 100%; height: 100%; }
	.as-ad--header .as-adcard__text, .as-ad--header .as-adcard__brand { display: none; }
	.as-ad--header .as-adcard__body, .as-ad--header .as-adcard.is-wide .as-adcard__body { flex-wrap: nowrap; gap: .5rem; padding: 0; }
	.as-ad--header .as-adcard__title { flex: 1 1 auto; min-width: 0; font: 600 .8125rem/1.3 var(--wp--preset--font-family--body, Inter, sans-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.as-ad--header .as-adcard__btn { min-height: 32px; padding: .25rem .75rem; font-size: .75rem; }
	.as-ad--header .as-adimg img { max-height: 64px; width: auto; }
	.as-ad--header .as-adimg { display: block; max-height: 64px; overflow: hidden; border-radius: 10px; }
}
