/* GIFT-Tech Media — public site styles. Light and dark themes share one set of tokens. */

:root {
	--ink: #111827;
	--ink-soft: #374151;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #ffffff;
	--surface: #f5f6f8;
	--surface-2: #eceef2;
	--brand: #d0021b;
	--brand-ink: #ffffff;
	--brand-soft: #fde8eb;
	--navy: #0b1b3f;
	--navy-ink: #e8ecf5;
	--success: #0f7a3d;
	--success-soft: #e3f5ea;
	--error: #b42318;
	--error-soft: #fdecea;
	--warn: #8a5a00;
	--warn-soft: #fff4d6;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f1f3f7;
		--ink-soft: #cfd4de;
		--muted: #9aa3b2;
		--line: #262c38;
		--bg: #0e1117;
		--surface: #161a22;
		--surface-2: #1d222c;
		--brand: #ff3b4f;
		--brand-soft: #3a1219;
		--navy: #070d1f;
		--success: #4ade80;
		--success-soft: #0f2b1b;
		--error: #ff8a80;
		--error-soft: #351412;
		--warn: #fcd34d;
		--warn-soft: #3a2c05;
		--shadow: 0 1px 2px rgb(0 0 0 / .4);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--ink: #f1f3f7;
	--ink-soft: #cfd4de;
	--muted: #9aa3b2;
	--line: #262c38;
	--bg: #0e1117;
	--surface: #161a22;
	--surface-2: #1d222c;
	--brand: #ff3b4f;
	--brand-soft: #3a1219;
	--navy: #070d1f;
	--success: #4ade80;
	--success-soft: #0f2b1b;
	--error: #ff8a80;
	--error-soft: #351412;
	--warn: #fcd34d;
	--warn-soft: #3a2c05;
	--shadow: 0 1px 2px rgb(0 0 0 / .4);
	color-scheme: dark;
}

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ------------------------------------------------------------ buttons, badges, alerts */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .65em 1.15em; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: #0b1b3f; }
.btn--light:hover { color: var(--brand); }
.btn--small { padding: .45em .9em; font-size: .875rem; }
.btn--large { padding: .85em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: .3em; font-size: .75rem; font-weight: 600; padding: .15em .55em; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--error { background: var(--error-soft); color: var(--error); }
.alert--info { background: var(--surface); }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .35em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .8em; font-size: .8rem; color: var(--muted); margin: .4em 0 0; }

/* ------------------------------------------------------------ top bar and masthead */

.topbar { background: var(--navy); color: var(--navy-ink); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar__links a, .topbar__links button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; }
.topbar__links a:hover, .topbar__links button:hover { color: #fff; }
.topbar__live { font-weight: 600; color: #fff !important; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 0 0 rgb(255 59 79 / .6); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(255 59 79 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 79 / 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
@media (max-width: 640px) { .topbar__date, .topbar__links a span { display: none; } }

.masthead { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.masthead__menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; font-size: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 1rem var(--sans); letter-spacing: -.02em; }
.brand__name { font: 700 1.35rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.brand__logo { height: 64px; width: auto; display: block; margin: -2px 0; }
.brand--footer .brand__logo { height: 70px; }
@media (max-width: 640px) { .masthead .brand__logo { height: 44px; } }
.search { flex: 1; display: flex; max-width: 420px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55em 1em; outline: none; }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--muted); }
.search--large { max-width: 640px; margin: 16px 0 0; background: var(--bg); }
.search--large input { padding: .8em 1.2em; font-size: 1.05rem; }
.masthead__account { display: flex; gap: 8px; align-items: center; }

.nav { border-top: 1px solid var(--line); }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { position: relative; }
.nav__item > a { display: block; padding: 12px 12px; font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav__item > a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.nav__item--mobile { display: none; }
.nav__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 40; }
.nav__sub a { display: block; padding: 8px 16px; font-size: .9rem; }
.nav__item--parent:hover .nav__sub, .nav__item--parent:focus-within .nav__sub { display: block; }

@media (max-width: 900px) {
	.masthead__inner { min-height: 60px; gap: 10px; }
	.masthead__menu { display: inline-flex; }
	.brand__name { font-size: 1.1rem; }
	.brand__mark { width: 34px; height: 34px; font-size: .9rem; }
	.search { display: none; }
	.masthead__account { margin-left: auto; }
	.nav { display: none; max-height: calc(100vh - 100px); overflow-y: auto; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; padding: 8px 0; overflow: visible; }
	.nav__item > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.nav__item--mobile { display: block; }
	.nav__sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 12px; }
}

/* ------------------------------------------------------------ cards */

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { font: 700 1.1rem/1.3 var(--serif); margin: 0; }
.card__title a:hover { color: var(--brand); }
.card__summary { color: var(--ink-soft); margin: .4em 0 0; font-size: .95rem; }
.card--lead .card__title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.card--lead .card__summary { font-size: 1.05rem; }
.card--row { flex-direction: row; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card--row .card__media { flex: 0 0 34%; max-width: 280px; }
.card--row .card__body { flex: 1; min-width: 0; }
.card--compact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.card--compact .card__title { font-size: 1rem; }
.front__side .card--row { padding: 12px 0; }
.front__side .card--row .card__media { flex-basis: 40%; }
.front__side .card--row .card__title { font-size: 1rem; }
.front__side .card--row .card__summary { display: none; }
@media (max-width: 560px) {
	.card--row .card__media { flex-basis: 38%; }
	.card--row .card__title { font-size: 1rem; }
	.card--row .card__summary { display: none; }
}

/* ------------------------------------------------------------ home */

.ticker { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ticker__label { flex: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--brand); padding: .25em .7em; border-radius: 999px; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; white-space: nowrap; width: max-content; animation: ticker 90s linear infinite; }
.ticker__track:hover ul, .ticker__track:focus-within ul { animation-play-state: paused; }
.ticker__track a { font-weight: 500; font-size: .9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { overflow-x: auto; } .ticker__track ul { animation: none; } }

.front { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin: 24px auto 8px; }
.front__side { display: flex; flex-direction: column; }
.front__side .card--row:first-child { padding-top: 0; }
@media (max-width: 900px) { .front { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin: 24px auto 48px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.section { margin: 32px 0; }
.section__head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 20px; }
.section__head::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--brand); }
.section__head h2 a { display: inline; font-size: inherit; font-weight: inherit; color: inherit; }
.section__head h2 a:hover { color: var(--brand); }
.section__head h2 { font: 700 1.35rem var(--serif); margin: 0; }
.section__head a { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 600; color: var(--brand); }
.section__head--light { border-top-color: #fff; }
.section__split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.section__split .stack .card--compact:first-child { padding-top: 0; }
@media (max-width: 640px) { .section__split { grid-template-columns: minmax(0, 1fr); } }
.section--muted { opacity: .85; }

.grid { display: grid; gap: 28px 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid__full { grid-column: 1 / -1; }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } .grid--4 { gap: 16px 12px; } }

.band { background: var(--navy); color: #fff; padding: 8px 0 40px; margin: 40px 0 0; }
.band .section__head h2, .band .section__head a { color: #fff; }
.video-tile { display: block; color: #fff; }
.video-tile:hover { color: #fff; }
.video-tile__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-tile__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-tile__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgb(208 2 27 / .92); display: grid; place-items: center; color: #fff; }
.video-tile__play .icon { fill: currentColor; }
.video-tile__title { display: block; margin-top: 10px; font-weight: 600; font-size: .92rem; line-height: 1.35; }

.promo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px auto; }
.promo { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.promo .icon { width: 32px; height: 32px; color: var(--brand); }
.promo strong { display: block; font-size: 1rem; color: var(--ink); }
.promo:hover { border-color: var(--brand); color: var(--muted); }
@media (max-width: 900px) { .promo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .promo-row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ sidebar */

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel__title { display: flex; align-items: center; gap: 8px; font: 700 1.05rem var(--serif); margin: 0 0 12px; }
.panel p { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; }
.panel--brand { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel--brand p { color: var(--navy-ink); }
.panel--listen { background: var(--surface); }
.ranked { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.ranked li { counter-increment: rank; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.ranked li:first-child { border-top: 0; padding-top: 0; }
.ranked li::before { content: counter(rank); font: 700 1.5rem/1 var(--serif); color: var(--brand); min-width: 1.2em; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-weight: 600; font-size: .92rem; }
.datebox { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 46px; height: 50px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); line-height: 1; }
.datebox span { font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.datebox strong { font-size: 1.3rem; }
.datebox--large { width: 64px; height: 68px; }
.datebox--large strong { font-size: 1.7rem; }

.ad { width: 100%; text-align: center; margin: 24px auto; max-width: var(--wrap); padding: 0 16px; min-height: 90px; }
.ad__label { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sidebar .ad, .prose .ad { padding: 0; }

/* ------------------------------------------------------------ article */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.crumbs a:last-child { color: var(--brand); }
.page-head--dark .crumbs, .page-head--dark .crumbs a:last-child { color: #fff; }
.story__head { margin-bottom: 20px; }
.story__title { font: 700 clamp(1.8rem, 4vw, 2.7rem)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.story__standfirst { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 16px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 600; }
.byline__sep { margin: 0 .35em; }
.byline__tools { display: flex; align-items: center; gap: 8px; }
.byline__tools .btn[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.share { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.story__image { margin: 20px 0 24px; }
.story__image img { width: 100%; border-radius: var(--radius); }
.story__image figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.prose { font-size: 1.1rem; line-height: 1.75; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); margin: 1.6em 0 .6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius-sm); margin: 0 auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--brand); font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose iframe { border: 0; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose::after { content: ""; display: table; clear: both; }
.embed-frame { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 1.6em 0; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.speaking { background: var(--brand-soft); border-radius: 4px; }

.paywall { text-align: center; padding: 32px 24px; margin: -40px 0 32px; position: relative; background: linear-gradient(180deg, transparent, var(--bg) 40px); border-bottom: 1px solid var(--line); }
.paywall > .icon { width: 36px; height: 36px; color: var(--brand); margin: 30px auto 8px; display: block; }
.paywall h2 { font-family: var(--serif); }
.paywall p { color: var(--ink-soft); }
.paywall__signin { font-size: .9rem; }
.paywall__signin a { color: var(--brand); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.tags a, .chips a { display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 500; }
.tags a:hover, .chips a:hover { background: var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.author-box { padding: 18px; border-radius: var(--radius); background: var(--surface); margin: 24px 0; }
.author-box p { margin: 6px 0 0; color: var(--ink-soft); }

.comments { margin: 40px 0; padding-top: 16px; border-top: 3px solid var(--ink); }
.comments h2 { font-family: var(--serif); }
.comments__list, .comments__children { list-style: none; padding: 0; margin: 0 0 24px; }
.comments__children { margin: 12px 0 0 20px; border-left: 2px solid var(--line); padding-left: 16px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment__head { display: flex; gap: 10px; align-items: baseline; }
.comment__head time { font-size: .8rem; color: var(--muted); }
.comment__body { margin: 6px 0; }
.comment__reply { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: .85rem; cursor: pointer; }

/* ------------------------------------------------------------ page headers, lists, pagination */

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.page-head h1 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--serif); margin: 0; }
.page-head__kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.page-head__lede { margin: 12px 0 0; color: var(--ink-soft); max-width: 680px; }
.page-head--dark { background: var(--navy); color: #fff; border: 0; }
.page-head--dark .page-head__kicker { color: #ff8090; }
.list .card--row:first-child { padding-top: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.pagination__current { background: var(--ink); color: var(--bg); border-color: var(--ink) !important; }
.pagination__gap { border: 0 !important; }

/* ------------------------------------------------------------ forms */

.form { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea, .form select { width: 100%; padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-weight: 400; font-size: 1rem; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__check { flex-direction: row !important; align-items: center; font-weight: 500 !important; }
.form__hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ events */

.events { list-style: none; padding: 0; margin: 0; }
.event-row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row h3 { font: 700 1.2rem var(--serif); margin: 0 0 4px; }
.event-row .meta { margin: 2px 0; font-size: .9rem; }
.event { padding-top: 24px; padding-bottom: 48px; }
.event__facts { display: grid; gap: 16px; margin: 0 0 24px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.event__facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.event__facts dt { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.event__facts dd { margin: 0; }
.event__facts a { color: var(--brand); }
.event__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
@media (max-width: 560px) { .event__facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ------------------------------------------------------------ live TV, radio, video, podcast */

.live { background: var(--navy); color: #fff; padding: 28px 0 48px; }
.live__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.live__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.live__title { font: 700 clamp(1.5rem, 3vw, 2.2rem) var(--serif); }
.live__screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.live__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live__about, .live__note { color: var(--navy-ink); }
.live__note { font-size: .85rem; opacity: .8; }
.live__channels h2 { font: 700 1.1rem var(--serif); margin-top: 34px; }
.live__channels ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.live__channels a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .06); font-weight: 600; }
.live__channels a:hover { background: rgb(255 255 255 / .12); color: #fff; }
.live__channels a[aria-current="page"] { background: var(--brand); }
@media (max-width: 900px) { .live__grid { grid-template-columns: minmax(0, 1fr); } .live__channels h2 { margin-top: 0; } }

.radio { background: linear-gradient(135deg, var(--navy), #2a0a17); color: #fff; padding: 56px 0; }
.radio__inner { display: flex; align-items: center; gap: 32px; }
.radio__inner h1 { font: 700 clamp(1.8rem, 4vw, 2.8rem) var(--serif); }
.radio__inner p { color: var(--navy-ink); }
.radio__logo { width: 160px; height: 160px; object-fit: contain; border-radius: 20px; background: #fff; padding: 12px; flex: none; }
@media (max-width: 640px) { .radio__inner { flex-direction: column; align-items: flex-start; } .radio__logo { width: 110px; height: 110px; } }

.video { margin: 0; }
.video__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video figcaption { font-weight: 600; margin-top: 8px; line-height: 1.35; }
.podcast-player { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.podcast-player iframe { width: 100%; border: 0; display: block; }

/* ------------------------------------------------------------ accounts and membership */

.auth { max-width: 460px; margin: 48px auto; padding: 0 16px; }
.auth--wide { max-width: 860px; }
.auth__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); background: var(--bg); }
.auth h1 { font: 700 1.8rem var(--serif); }
.auth__alt { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 16px; }
.auth__alt a { color: var(--brand); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 8px 0 24px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400 !important; }
.plan:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan input { accent-color: var(--brand); width: 18px; height: 18px; }
.plan__name { font: 700 1.2rem var(--serif); }
.plan__price { font: 700 2rem/1 var(--serif); }
.plan__price small { font: 500 .9rem var(--sans); color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: .92rem; }
.gateways { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.gateways legend { font-weight: 700; margin-bottom: 8px; }
.gateway { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.gateway:has(input:checked) { border-color: var(--brand); }
.gateway input { accent-color: var(--brand); }
.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin: 32px auto 64px; }
.account__nav { display: flex; flex-direction: column; gap: 4px; }
.account__nav a, .account__nav button { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; font-size: 1rem; }
.account__nav a[aria-current="page"] { background: var(--surface); color: var(--brand); }
.account__nav form { margin: 0; }
.account h1 { font: 700 1.8rem var(--serif); }
.account h2 { font: 700 1.25rem var(--serif); margin-top: 32px; }
@media (max-width: 760px) { .account { grid-template-columns: minmax(0, 1fr); gap: 16px; } .account__nav { flex-direction: row; overflow-x: auto; } .account__nav a, .account__nav button { white-space: nowrap; width: auto; } }
.status { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.status--active, .status--complete, .status--approved, .status--published { background: var(--success-soft); color: var(--success); }
.status--pending, .status--scheduled, .status--draft { background: var(--warn-soft); color: var(--warn); }
.status--failed, .status--expired, .status--cancelled, .status--spam, .status--trash { background: var(--error-soft); color: var(--error); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.summary-box { padding: 20px; border-radius: var(--radius); background: var(--surface); margin: 16px 0; }
.summary-box dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px; margin: 0; }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .summary-box dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .summary-box dd { margin-bottom: 8px; } }

/* ------------------------------------------------------------ footer and radio player */

.footer { background: var(--navy); color: var(--navy-ink); margin-top: 48px; padding: 48px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__about p { margin: 14px 0; max-width: 340px; }
.brand--footer .brand__name { color: #fff; }
.footer__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .08); }
.footer__legal { margin-top: 40px; padding: 18px 16px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0b1b3f; color: #fff; box-shadow: 0 -4px 20px rgb(0 0 0 / .2); }
.player__inner { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.player__button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #d0021b; color: #fff; cursor: pointer; flex: none; }
.player__button .icon { fill: currentColor; }
.player__info { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.player__info span { font-size: .8rem; color: #e8ecf5; }
.player__more { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.player__more:hover { color: #fff; text-decoration: underline; }
.player__close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
body.has-player { padding-bottom: 64px; }
@media (max-width: 480px) { .player__more { display: none; } }

/* ------------------------------------------------------------ radio station */

.player__badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: .2em .6em; border-radius: 999px; background: #d0021b; color: #fff; }
.radio .radio__logo { display: grid; place-items: center; color: #d0021b; }
.radio .radio__logo .icon { width: 72px; height: 72px; }
.radio__now { font-size: 1.25rem; margin: 0 0 4px; }
.radio__meta, .radio__next, .radio__hint { color: var(--navy-ink); font-size: .9rem; margin: 0 0 8px; }
.radio__hint { margin-top: 12px; opacity: .8; }
[data-radio-mode][data-mode="off"] { opacity: .7; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.schedule__day { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.schedule__day--today { border-color: var(--brand); }
.schedule__day h3 { font: 700 1.05rem var(--serif); margin: 0 0 10px; }
.schedule__day ul { list-style: none; margin: 0; padding: 0; }
.schedule__day li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.schedule__day li:first-child { border-top: 0; }
.schedule__day li.is-on { color: var(--brand); }
.schedule__day time { flex: none; width: 92px; font-variant-numeric: tabular-nums; color: var(--muted); }
.song-list { list-style: none; margin: 16px 0 0; padding: 0; }
.song-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.song-list form { display: flex; gap: 8px; align-items: center; }
.song-list input[name="name"] { padding: .45em .8em; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); width: 190px; }
@media (max-width: 560px) { .song-list form, .song-list input[name="name"] { width: 100%; } }

/* ------------------------------------------------------------ big video player, reCAPTCHA */
.video-stage { margin: 28px 0 8px; scroll-margin-top: 90px; }
.video-stage .embed-frame { margin: 0; box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
.video-stage__title { margin: 12px 0 0; font: 700 clamp(1.1rem, 2.4vw, 1.5rem)/1.3 var(--serif); }
.video.is-playing .video__poster { outline: 3px solid var(--brand, #d0021b); outline-offset: 2px; }
.video.is-playing figcaption::before { content: "Now playing · "; color: var(--brand, #d0021b); }
.recaptcha { min-height: 78px; }
.recaptcha--missing { outline: 2px solid var(--brand, #d0021b); outline-offset: 4px; border-radius: 4px; width: max-content; max-width: 100%; }
.song-list .recaptcha { transform: scale(.85); transform-origin: left top; min-height: 66px; }

/* ------------------------------------------------------------ home page, 2026-11 redesign */

/* Lead story: the headline sits on the picture. */
.front { align-items: start; }
.front__lead .card--lead { position: relative; gap: 0; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: #0b1b3f; box-shadow: var(--shadow); }
.front__lead .card--lead .card__media { aspect-ratio: 16 / 10; border-radius: 0; }
.front__lead .card--lead:not(.card--no-image) .card__body { position: absolute; inset: auto 0 0; padding: 140px clamp(18px, 3vw, 32px) clamp(18px, 3vw, 28px); background: linear-gradient(180deg, transparent, rgb(5 10 25 / .6) 35%, rgb(5 10 25 / .92)); color: #fff; }
.front__lead .card--lead .card__title a { color: #fff; }
.front__lead .card--lead .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.front__lead .card--lead .kicker { background: var(--brand); color: #fff; padding: .35em .7em; border-radius: 4px; margin-bottom: .7em; }
.front__lead .card--lead .card__summary { color: rgb(255 255 255 / .85); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.front__lead .card--lead .meta { color: rgb(255 255 255 / .7); }
.front__lead .card--lead.card--no-image .card__body { padding: 28px; color: #fff; }
.front__label { display: flex; align-items: center; gap: 10px; font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.front__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.front__side .card--row:last-child { border-bottom: 0; }
@media (max-width: 640px) {
	.front__lead .card--lead:not(.card--no-image) .card__body { position: static; padding: 16px 18px 20px; background: #0b1b3f; }
	.front__lead .card--lead .card__title { font-size: 1.45rem; }
}

/* Watch and listen shortcuts under the top stories */
.quicklinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; margin-bottom: 8px; }
.quicklink { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .84rem; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.quicklink:hover { border-color: var(--brand); color: var(--muted); transform: translateY(-2px); box-shadow: var(--shadow); }
.quicklink strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); }
.quicklink__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.quicklink__icon .icon { width: 22px; height: 22px; }
.quicklink--live .quicklink__icon, .quicklink--radio .quicklink__icon { background: var(--brand); color: #fff; }
@media (max-width: 900px) { .quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .quicklink { padding: 12px; gap: 10px; } .quicklink__icon { width: 38px; height: 38px; } .quicklink span:last-child { font-size: 0; } .quicklink strong { font-size: .95rem; } }

/* Story grids in the main column */
.layout__main .grid--3 .card__title { font-size: 1.05rem; }
.layout__main .grid--3 .card { padding-bottom: 4px; }

/* Small picture beside the headline */
.card--mini { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card--mini:first-child { padding-top: 0; }
.card--mini:last-child { border-bottom: 0; }
.card--mini .card__media { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--mini .card__title { font-size: .98rem; }
.card--mini .meta { margin-top: .3em; }

/* Wide feature: big picture at the side */
.card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card--feature.card--no-image { grid-template-columns: minmax(0, 1fr); }
.card--feature .card__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
@media (max-width: 640px) { .card--feature { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Headlines in two columns */
.headlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 8px; }
.headlines .card--compact { padding: 14px 0; }
.headlines .card--compact .card__title { font-size: .98rem; }
@media (max-width: 640px) { .headlines { grid-template-columns: minmax(0, 1fr); } }

/* The last sidebar box follows the reader down the page. */
@media (min-width: 1001px) { .layout .sidebar > :last-child { position: sticky; top: 96px; } }

/* Videos: one big, three beside it */
.video-wall { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px 24px; }
.video-wall .video-tile--big { grid-row: span 3; }
.video-tile--big .video-tile__title { font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--serif); margin-top: 14px; }
.video-tile--big .video-tile__play { width: 72px; height: 72px; }
.video-tile--big .video-tile__play .icon { width: 30px; height: 30px; }
.video-wall .video-tile:not(.video-tile--big) { display: flex; gap: 14px; align-items: center; }
.video-wall .video-tile:not(.video-tile--big) .video-tile__thumb { flex: 0 0 46%; }
.video-wall .video-tile:not(.video-tile--big) .video-tile__title { margin: 0; }
.video-wall .video-tile:not(.video-tile--big) .video-tile__play { width: 38px; height: 38px; }
.video-tile:hover .video-tile__title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
	.video-wall { grid-template-columns: minmax(0, 1fr); }
	.video-wall .video-tile--big { grid-row: auto; }
}

/* Stories without a picture keep the grid even with a branded panel. */
.card__media--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle at 30% 20%, #1c3470, #0b1b3f 70%); color: #fff; }
.card__placeholder-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand); font: 800 1.1rem var(--sans); letter-spacing: .02em; transition: transform .4s; }
.card:hover .card__placeholder-mark { transform: scale(1.06); }
.card__placeholder-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .75); }

/* ------------------------------------------------------------ light / dark switch */
.mode-switch { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.mode-switch__track { position: relative; display: inline-block; flex: none; width: 52px; height: 28px; border-radius: 999px; background: #dfe3ea; box-shadow: inset 0 1px 2px rgb(0 0 0 / .15); transition: background .25s; }
.mode-switch__thumb { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #f59e0b; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .25s, background .25s, color .25s; }
.mode-switch__thumb .icon { width: 14px; height: 14px; grid-area: 1 / 1; }
.mode-switch__moon, .mode-switch[aria-checked="true"] .mode-switch__sun { display: none; }
.mode-switch[aria-checked="true"] .mode-switch__moon { display: block; }
.mode-switch[aria-checked="true"] .mode-switch__track { background: #2b3a67; }
.mode-switch[aria-checked="true"] .mode-switch__thumb { transform: translateX(24px); background: #0b1b3f; color: #ffd166; }
.mode-switch__to-light, .mode-switch[aria-checked="true"] .mode-switch__to-dark { display: none; }
.mode-switch[aria-checked="true"] .mode-switch__to-light { display: inline; }
.mode-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .mode-switch__track, .mode-switch__thumb { transition: none; } }
.masthead__account .mode-switch { margin-right: 4px; color: var(--muted); }
@media (max-width: 640px) { .mode-switch__label { display: none; } .mode-switch__track { width: 46px; height: 26px; } .mode-switch__thumb { width: 20px; height: 20px; } .mode-switch[aria-checked="true"] .mode-switch__thumb { transform: translateX(20px); } }
/* A short colour fade when the reader switches. */
.theme-changing, .theme-changing * { transition: background-color .3s, color .3s, border-color .3s !important; }

/* "Also read" link inside a story */
.prose .also-read { border-left: 3px solid var(--brand); padding: .5em 0 .5em 1em; font-size: 1rem; }
.prose .also-read strong { text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; margin-right: .3em; }
.prose .also-read a { font-weight: 600; text-decoration: none; }
.prose .also-read a:hover { text-decoration: underline; }

/* Source credit under a story */
.story-source { margin: 24px 0 0; padding: 12px 14px; background: var(--surface); border-radius: 8px; font-size: .9rem; color: var(--ink-soft); }
.story-source a { color: var(--brand); font-weight: 600; }

/* If AdSense Auto ads place a unit inside the top bar or header, it gets its own full-width
   line instead of squeezing the date, links, logo and menu. (To keep Auto ads out of the
   header entirely, exclude that area in AdSense > Ads > By site.) */
.topbar__inner, .masthead__inner { flex-wrap: wrap; }
.topbar .google-auto-placed, .topbar ins.adsbygoogle, .masthead .google-auto-placed, .masthead ins.adsbygoogle { flex: 0 0 100%; order: 99; max-width: 100%; margin: 0 auto; }

/* Phone header: menu, logo, light/dark switch, Sign in and Join on one row. */
@media (max-width: 640px) {
	.masthead__inner { gap: 8px; min-height: 56px; }
	.masthead__menu { padding: 4px; margin-left: -4px; }
	.masthead .brand { flex: none; }
	.masthead .brand__logo { height: 34px; margin: 0; }
	.masthead__account { gap: 6px; }
	.masthead__account .mode-switch { margin-right: 0; }
	.masthead__account .btn--small { padding: .4em .75em; font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 360px) {
	.masthead__inner { gap: 6px; }
	.masthead .brand__logo { height: 30px; }
	.masthead__account { gap: 4px; }
	.masthead__account .btn--small { padding: .4em .55em; }
	.masthead__account .mode-switch__track { width: 40px; height: 24px; }
	.masthead__account .mode-switch__thumb { width: 18px; height: 18px; }
	.masthead__account .mode-switch[aria-checked="true"] .mode-switch__thumb { transform: translateX(16px); }
}
