/* Akede — main stylesheet.
   Mobile-first. Dark by default; [data-theme="light"] switches the palette.
   Layout: sticky header + sections bar, single column on phones, 2-column (content + 300px rail) from 1024px, bottom tab bar on phones only. */

:root {
	/* Default brand: red and black. Akede → Branding sets the accent and fonts (printed in <style id="akede-brand">). */
	--bg: #0F0F12;
	--card: #1A1A1F;
	--raise: #25252C;
	--line: #2F2F38;
	--ink: #F3F3F5;
	--muted: #A8A8B3;
	--accent: #D9271D;     /* accent red: fills (buttons, big story card) with --on text */
	--link: #FF6B5E;       /* red as text on dark */
	--hot: #FF5247;        /* numbers, live, likes */
	--butter: #FFC83D;
	--on: #FFFFFF;         /* text on red fills */
	--black: #111114;      /* brand black */
	--ad-bg: #F4F4F6;      /* ads always sit on light, so advertiser artwork reads as designed */
	--ad-ink: #3A3A44;
	--wa: #2BD46E;

	--display: 'Bricolage Grotesque Variable', 'Arial Black', system-ui, sans-serif;
	--body: 'Figtree Variable', 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--r-lg: 24px;
	--r-md: 16px;
	--r-sm: 12px;
	--gap: 16px;
	--prose: 18px;
	--tabs-h: 0px;
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #F6F6F7;
	--card: #FFFFFF;
	--raise: #EEEEF1;
	--line: #E1E1E6;
	--ink: #141416;
	--muted: #5C5C66;
	--link: #C41E14;
	--hot: #C41E14;
	color-scheme: light;
}
:root[data-size="s"] { --prose: 16px; }
:root[data-size="l"] { --prose: 21px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.ak-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--on); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.ak-skip:focus { top: 12px; }

.ak-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ak-stack { display: flex; flex-direction: column; gap: 32px; padding-block: 20px 40px; }
.ak-stack-sm { display: flex; flex-direction: column; gap: 14px; }
.ak-spacer { flex: 1; }
.ak-muted { color: var(--muted); font-size: 13px; }
.ak-muted-ink { color: var(--on); opacity: .75; font-size: 13px; }
.ak-label { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ak-label--ink { color: var(--on); }
.ak-link { font-size: 14px; font-weight: 600; color: var(--link); }
.ak-empty { padding: 24px; border-radius: var(--r-md); background: var(--card); color: var(--muted); }
.ak-pagetitle { font-size: clamp(30px, 6vw, 44px); font-weight: 800; }

/* Icons */
.ico { width: 20px; height: 20px; flex: 0 0 auto; }
.ak-chipico { width: 30px; height: 30px; border-radius: 9px; background: var(--raise); color: var(--accent); display: inline-grid; place-items: center; flex: 0 0 auto; }
.ak-chipico .ico { width: 16px; height: 16px; }
.ak-chipico--lg { width: 42px; height: 42px; border-radius: 12px; }
.ak-chipico--lg .ico { width: 22px; height: 22px; }

/* Buttons */
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; }
.ak-btn--accent { background: var(--accent); color: var(--on); }
.ak-btn--accent:hover { color: var(--on); filter: brightness(1.08); }
.ak-btn--ink { background: var(--black); color: #FFFFFF; }
.ak-btn--ink:hover { color: #fff; }
.ak-btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ak-iconbtn { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; }
.ak-iconbtn--big { font-size: 18px; }
.ak-act { min-height: 36px; min-width: 36px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ak-act .ico { width: 16px; height: 16px; }
.ak-act[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on); }
.ak-act[aria-pressed="true"] .ico { fill: currentColor; }
.ak-act--label { min-height: 40px; padding: 0 14px; }

/* Theme toggle shows the icon for the mode you would switch to */
.ak-when-light { display: none; }
:root[data-theme="light"] .ak-when-light { display: inline; }
:root[data-theme="light"] .ak-when-dark { display: none; }

/* Top bar */
.ak-topbar { border-bottom: 1px solid var(--line); font-size: 13px; }
.ak-topbar__in { display: flex; align-items: center; gap: 16px; min-height: 36px; overflow-x: auto; scrollbar-width: none; }
.ak-topbar__in::-webkit-scrollbar { display: none; }
.ak-market { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.ak-market__item strong { font-variant-numeric: tabular-nums; }
.ak-topbar__date, .ak-market, .ak-topbar__nav { flex: 0 0 auto; white-space: nowrap; }
.ak-topbar__nav { margin-left: auto; }
.ak-topbar__date--short { display: none; }
@media (max-width: 719px) {
	.ak-topbar { font-size: 12px; }
	.ak-topbar__in { gap: 14px; min-height: 32px; }
	.ak-topbar__date--long { display: none; }
	.ak-topbar__date--short { display: inline; }
}
.ak-topbar__nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.ak-topbar__nav a { color: var(--muted); }
.ak-topbar__nav a:hover { color: var(--ink); }

/* Header */
.ak-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body.admin-bar .ak-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .ak-header { top: 32px; } }
.ak-header__in { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.ak-logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.ak-logo span { color: var(--accent); }
.ak-logo:hover { color: var(--ink); }
.ak-logo--img { display: inline-flex; align-items: center; }
.ak-logo--img img { height: 46px; width: auto; max-width: 62vw; display: block; object-fit: contain; }
.ak-logo--footer img { height: 52px; }
.ak-logo__dark { display: none !important; }
:root:not([data-theme="light"]) .ak-logo--has-dark .ak-logo__light { display: none !important; }
:root:not([data-theme="light"]) .ak-logo--has-dark .ak-logo__dark { display: block !important; }
/* No dark-mode logo uploaded yet: show the normal logo on a light plate in dark mode. */
:root:not([data-theme="light"]) .ak-logo--plate img { background: #FFFFFF; padding: 6px 12px; border-radius: 12px; box-sizing: content-box; }
@media (min-width: 1024px) { .ak-logo--img img { height: 64px; } }
.ak-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: color-mix(in srgb, var(--hot) 18%, transparent); color: var(--hot); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.ak-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: ak-pulse 1.4s infinite; }
@keyframes ak-pulse { 50% { opacity: .25; } }
.ak-sizer { display: flex; gap: 6px; }

.ak-sections { border-top: 1px solid var(--line); }
.ak-sections__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ak-sections__list::-webkit-scrollbar { display: none; }
.ak-sections__list a { display: block; padding: 14px 14px 13px; font-size: 16px; font-weight: 700; letter-spacing: -0.005em; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.ak-sections__list a:hover { border-bottom-color: var(--line); }
@media (min-width: 1024px) { .ak-sections__list a { font-size: 17px; padding-inline: 16px; } }
.ak-sections__list .current-menu-item > a,
.ak-sections__list .current-cat > a { color: var(--link); border-bottom-color: var(--accent); }

.ak-breaking { background: color-mix(in srgb, var(--hot) 14%, var(--bg)); border-top: 1px solid var(--line); }
.ak-breaking__in { display: flex; align-items: center; gap: 12px; padding-block: 10px; font-size: 14px; font-weight: 600; }
.ak-breaking__tag { flex: 0 0 auto; background: var(--hot); color: var(--on); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.ak-breaking a, .ak-breaking span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ak-search { border-bottom: 1px solid var(--line); background: var(--card); padding-block: 14px; }
.ak-searchform { display: flex; gap: 8px; }
.ak-searchform input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; }
.ak-searchpage { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }

.ak-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 25; height: 3px; pointer-events: none; }
.ak-progress i { display: block; height: 3px; width: 0; background: var(--accent); }

/* Chips */
.ak-rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ak-rowhead--rule { border-top: 1px solid var(--line); padding-top: 14px; }
.ak-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ak-chips::-webkit-scrollbar { display: none; }
.ak-chips--wrap { flex-wrap: wrap; overflow: visible; }
.ak-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .ak-chip:hover { border-color: var(--accent); color: var(--ink); } }
.ak-chip--quiet { min-height: 34px; padding: 0 12px; font-weight: 500; color: var(--muted); }
.ak-topicsbar { display: flex; flex-direction: column; gap: 12px; }

/* Topic chips: large, one colour each, rise in on load, lift on hover. */
.ak-chips--lg { gap: 10px; padding: 4px 2px 8px; }
.ak-chips--lg .ak-chip {
	min-height: 52px;
	padding: 0 22px;
	font-size: 16px;
	font-weight: 700;
	gap: 8px;
	border-radius: 26px;
	background: color-mix(in srgb, var(--c) 16%, var(--card));
	border-color: color-mix(in srgb, var(--c) 40%, transparent);
	color: color-mix(in srgb, var(--c) 55%, var(--ink));
	transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), background-color .25s, color .25s, box-shadow .25s;
	animation: ak-rise .5s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(var(--i, 0) * 60ms);
}
:root[data-theme="light"] .ak-chips--lg .ak-chip {
	background: color-mix(in srgb, var(--c) 13%, #FFFFFF);
	color: color-mix(in srgb, var(--c) 70%, #14162A);
}
.ak-chips--lg .ak-chip .ico { width: 18px; height: 18px; }
.ak-chips--lg .ak-chip:focus-visible,
.ak-chips--lg .ak-chip[aria-current="page"] {
	background: var(--c);
	border-color: var(--c);
	color: var(--black);
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
@media (hover: hover) {
	.ak-chips--lg .ak-chip:hover { background: var(--c); border-color: var(--c); color: var(--black); transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent); }
}
.ak-chips--lg .ak-chip:active { transform: translateY(0) scale(.98); }
.ak-chip--c0 { --c: #FF5A5F; }  /* red */
.ak-chip--c1 { --c: #FFB020; }  /* amber */
.ak-chip--c2 { --c: #2BB3F0; }  /* sea blue */
.ak-chip--c3 { --c: #2FC37A; }  /* green */
.ak-chip--c4 { --c: #9B7BFF; }  /* violet */
.ak-chip--c5 { --c: #FF7AB6; }  /* pink */
.ak-chip--c6 { --c: #19C4B0; }  /* teal */
.ak-chip--c7 { --c: #FF8A3D; }  /* orange */
.ak-chips--lg .ak-chip.ak-chip--all {
	--c: var(--accent);
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on);
	padding: 0 24px;
	font-size: 17px;
	font-weight: 800;
}
.ak-chip--all .ico { transition: transform .4s cubic-bezier(.2, .8, .2, 1.2); }
.ak-chip--all:hover .ico { transform: rotate(90deg); }
@keyframes ak-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Homepage lead + trending */
.ak-split { display: grid; gap: 28px; }
.ak-lead { border-radius: var(--r-lg); background: var(--accent); color: var(--on); overflow: hidden; display: grid; }
.ak-lead a:hover { color: var(--on); }
.ak-lead__media { display: block; aspect-ratio: 16 / 9; max-width: 100%; }
.ak-lead__media .ak-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.ak-lead__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ak-lead__title { font-weight: 800; font-size: clamp(28px, 6.5vw, 46px); line-height: 1; }
.ak-lead__dek { max-width: 60ch; }
.ak-trending { display: flex; flex-direction: column; }
.ak-trending .ak-label { margin-bottom: 4px; }

/* Hero slider: slides stack in one grid cell and cross-fade; the tallest slide sets the height, so nothing jumps. */
.ak-hero { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ak-hero__slides { display: grid; }
.ak-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ak-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.ak-slide .ak-img { transform: scale(1.04); transition: transform 7s ease-out; }
.ak-slide.is-active .ak-img { transform: scale(1); }
.ak-lead__num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--on); color: var(--accent); font-size: 12px; letter-spacing: 0; margin-right: 4px; }
.ak-hero__bar { display: flex; align-items: center; gap: 12px; }
.ak-hero__dots { display: flex; gap: 6px; flex: 1; }
.ak-dot { flex: 1; height: 28px; border: 0; background: transparent; padding: 12px 0; }
.ak-dot i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.ak-dot i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); }
.ak-dot[aria-current="true"] i::after { animation: ak-fill var(--hero-ms, 6500ms) linear forwards; }
.ak-hero.is-paused .ak-dot[aria-current="true"] i::after { animation-play-state: paused; }
.ak-dot.is-done i::after { width: 100%; }
@keyframes ak-fill { to { width: 100%; } }
.ak-hero__pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; }
.ak-hero__pause .ico { width: 14px; height: 14px; }
.ak-hero__pause .ak-p-play { display: none; }
.ak-hero.is-paused .ak-hero__pause .ak-p-play { display: inline; }
.ak-hero.is-paused .ak-hero__pause .ak-p-pause { display: none; }
.ak-trend { border-radius: 14px; transition: background-color .4s; }
.ak-trend .ak-row { padding-inline: 10px; }
/* On wide screens the trending list stretches to the hero's height, rows sharing the space evenly: no gap under no. 5. */
@media (min-width: 1024px) {
	.ak-split { align-items: stretch; }
	.ak-trending { height: 100%; }
	.ak-trend { flex: 1 1 0; display: flex; }
	.ak-trend .ak-row { flex: 1; align-items: center; }
	.ak-trend:last-child .ak-row { border-bottom: 0; }
}
.ak-trend.is-current { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ak-trend.is-current .ak-row { border-bottom-color: transparent; }

/* Rows */
.ak-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ak-row:hover { color: var(--ink); }
.ak-row:hover .ak-row__title { color: var(--link); }
.ak-row__n { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: .9; color: var(--hot); min-width: 30px; font-variant-numeric: tabular-nums; }
.ak-row__media { flex: 0 0 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.ak-row__media .ak-img { width: 100%; height: 100%; object-fit: cover; }
.ak-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ak-row__title { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.22; }

/* Cards */
.ak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ak-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ak-grid--list { grid-template-columns: 1fr; }
.ak-card { border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ak-card__media { display: block; aspect-ratio: 16 / 9; max-width: 100%; }
.ak-card__media .ak-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ak-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ak-topic { font-weight: 700; font-size: 13px; }
.ak-card__title { font-weight: 600; font-size: 20px; line-height: 1.16; }
.ak-card__dek { color: var(--muted); font-size: 15px; }
.ak-card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
/* List cards (topic pages, search, saved): compact rows — square thumbnail left, text right. */
.ak-grid--list .ak-card { flex-direction: row; align-items: stretch; }
.ak-grid--list .ak-card__media { flex: 0 0 112px; width: 112px; aspect-ratio: 1 / 1; max-width: none; align-self: flex-start; margin: 12px 0 12px 12px; border-radius: 14px; overflow: hidden; }
.ak-grid--list .ak-card__media .ak-img { height: 100%; }
.ak-grid--list .ak-card__body { padding: 12px 14px; gap: 8px; min-width: 0; }
.ak-grid--list .ak-card__title { font-size: 17px; line-height: 1.22; }
.ak-grid--list .ak-card__dek { display: none; }
@media (min-width: 720px) {
	.ak-grid--list .ak-card__media { flex-basis: 240px; width: 240px; aspect-ratio: 16 / 10; margin: 0; border-radius: 0; align-self: stretch; }
	.ak-grid--list .ak-card__body { padding: 16px 18px; }
	.ak-grid--list .ak-card__title { font-size: 21px; }
	.ak-grid--list .ak-card__dek { display: block; }
}
[data-saver] .ak-grid--list .ak-card__media { display: none !important; }

/* Images */
.ak-img { display: block; background: var(--raise); }
.ak-img--empty { width: 100%; height: 100%; min-height: 100%; aspect-ratio: inherit; display: grid; place-items: center; color: var(--accent); }
.ak-lead__media, .ak-card__media, .ak-feature__media, .ak-row__media { display: grid; }
.ak-lead__media > *, .ak-card__media > *, .ak-feature__media > *, .ak-row__media > * { grid-area: 1 / 1; }
.ak-img--empty .ico { width: 34%; height: 34%; max-width: 72px; max-height: 72px; stroke-width: 1.4; opacity: .8; }

/* Homepage sections */
.ak-section { display: flex; flex-direction: column; gap: 14px; }
.ak-section__title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }

.ak-signup { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: 24px; display: grid; gap: 16px; }
.ak-signup__title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.ak-signup p { color: var(--muted); }
.ak-signup__form .tnp, .ak-signup__form form { margin: 0; }
.ak-signup__form input[type="email"], .ak-signup__form input[type="text"] { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; color: var(--ink); }
.ak-signup__form input[type="submit"], .ak-signup__form button { min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: var(--on); font-weight: 700; }

/* Article */
.ak-article-layout { display: grid; gap: 32px; padding-block: 20px 40px; }
.ak-article { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ak-article--page { max-width: 760px; margin: 0 auto; padding-block: 24px 40px; }
.ak-article__head { display: flex; flex-direction: column; gap: 14px; }
.ak-article__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ak-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--accent); color: var(--on); font-size: 12px; font-weight: 700; }
.ak-tag:hover { color: var(--on); }
.ak-tag--sponsor { background: var(--butter); color: var(--black); }
.ak-article__title { font-weight: 800; font-size: clamp(30px, 7vw, 50px); line-height: 1.02; }
.ak-article__dek { font-size: 19px; color: var(--muted); max-width: 62ch; }
.ak-article__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-block: 12px; border-block: 1px solid var(--line); }
.ak-byline { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.ak-avatar { border-radius: 50%; display: block; }
.ak-article__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ak-article__figure .ak-img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; }

.ak-prose { font-size: var(--prose); line-height: 1.72; color: color-mix(in srgb, var(--ink) 92%, var(--bg)); display: flex; flex-direction: column; gap: 1.05em; min-width: 0; overflow-wrap: anywhere; }
.ak-prose > * { max-width: 68ch; }
.ak-prose > .ak-ad, .ak-prose > .ak-embed, .ak-prose > figure, .ak-prose > .wp-block-image, .ak-prose > .wp-caption, .ak-prose > table, .ak-prose > .wp-block-table { max-width: 100%; }
.ak-prose h2 { font-size: 1.45em; margin-top: .6em; }
.ak-prose h3 { font-size: 1.2em; margin-top: .4em; }
.ak-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ak-prose ul, .ak-prose ol { margin: 0; padding-left: 1.3em; }
.ak-prose li + li { margin-top: .35em; }
.ak-prose blockquote { margin: .4em 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); font-family: var(--display); font-size: 1.15em; font-weight: 600; line-height: 1.35; }
.ak-prose blockquote p + p { margin-top: .6em; }
.ak-prose img { border-radius: var(--r-md); }
.ak-prose figure { margin: 0; }
.ak-prose figcaption, .ak-prose .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ak-prose .wp-caption { width: auto !important; }
.ak-prose table { width: 100%; border-collapse: collapse; font-size: .85em; display: block; overflow-x: auto; }
.ak-prose th, .ak-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.ak-prose hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.ak-prose .alignleft, .ak-prose .alignright { float: none; margin: 0; }
.ak-prose .aligncenter { margin-inline: auto; }
.ak-embed { position: relative; width: 100%; }
.ak-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); display: block; }
.wp-embed-responsive .wp-has-aspect-ratio iframe { position: static; }

.ak-wa { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: var(--r-md); background: var(--wa); color: var(--black); font-weight: 700; }
.ak-wa:hover { color: var(--black); filter: brightness(1.06); }
.ak-author { display: flex; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.ak-author__name { font-weight: 700; font-size: 16px; }
.ak-author p { margin-top: 4px; font-size: 14px; }

/* Comments */
.ak-comments { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.ak-comments__list, .ak-comments__list .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ak-comments__list .children { margin-top: 10px; padding-left: 18px; border-left: 2px solid var(--line); }
.ak-comments__list .comment-body { padding: 12px 14px; border-radius: var(--r-md); background: var(--card); font-size: 15px; }
.ak-comments__list .comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ak-comments__list .comment-author .says { display: none; }
.ak-comments__list .comment-author img { border-radius: 50%; }
.ak-comments__list .comment-metadata, .ak-comments__list .reply { font-size: 12px; color: var(--muted); margin: 4px 0; }
.ak-comments__list .comment-content p + p { margin-top: .5em; }
.comment-respond { display: flex; flex-direction: column; gap: 10px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 12px 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { height: 48px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.comment-form-cookies-consent label { margin: 0; }

/* Sidebar + ads */
.ak-sidebar { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ak-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: var(--r-md); background: var(--ad-bg); color: var(--ad-ink); margin-inline: auto; max-width: 100%; overflow: hidden; }
.ak-ad__label { align-self: stretch; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ad-ink); opacity: .7; text-align: center; }
.ak-ad img { display: block; max-width: 100%; height: auto; }
.ak-ad--top { margin-top: 14px; width: fit-content; }
.ak-ad--box { width: fit-content; }
.ak-ad--tall { width: fit-content; }
.ak-ad--inline { margin-block: .4em; width: fit-content; }
.ak-ad--span { grid-column: 1 / -1; }
.ak-ad--empty { min-width: min(300px, 100%); min-height: 120px; justify-content: center; border: 1px dashed #9AA0BC; }

/* Topic pages */
.ak-topichead { border-bottom: 1px solid var(--line); background: var(--card); padding-block: 26px 18px; display: flex; flex-direction: column; gap: 16px; }
.ak-topichead__in { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ak-topichead__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--raise); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.ak-topichead__ico .ico { width: 28px; height: 28px; }
.ak-topichead__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ak-topichead__title { font-size: clamp(34px, 8vw, 56px); font-weight: 800; line-height: 1; }
.ak-feature { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: grid; }
.ak-feature__media { display: block; aspect-ratio: 16 / 9; max-width: 100%; }
.ak-feature__media .ak-img { width: 100%; height: 100%; object-fit: cover; }
.ak-feature__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ak-feature__title { font-size: clamp(24px, 5vw, 34px); font-weight: 800; line-height: 1.05; }

.ak-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 8px; }
.ak-pages .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; }
.ak-pages .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on); }
.ak-pages .dots { border: 0; }

.ak-topicgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.ak-topiccard { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ak-topiccard__link { display: flex; flex-direction: column; gap: 10px; }
.ak-topiccard__link strong { font-family: var(--display); font-size: 19px; line-height: 1.15; }
.ak-follow { min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: 14px; }
.ak-follow[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on); }

/* Footer */
.ak-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 24px; }
.ak-footer__in { display: grid; gap: 24px; padding-block: 32px 20px; }
.ak-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.ak-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.ak-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--raise); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.ak-social a:hover { background: var(--accent); color: var(--on); transform: translateY(-2px); }
.ak-social .ico { width: 18px; height: 18px; }
.ak-footer__topics { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.ak-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.ak-footer__base { padding-block: 14px 24px; border-top: 1px solid var(--line); }

/* Bottom tabs (phones and small tablets) */
.ak-tabs { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 24px)); display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ak-tab { flex: 1; min-height: 52px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; }
.ak-tab[aria-current="page"] { background: var(--accent); color: var(--on); }
.ak-tab:hover { color: inherit; }
body { --tabs-h: 88px; }

.ak-toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); background: var(--butter); color: var(--black); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }

.ak-hide-mobile { display: none; }

/* Wider screens */
@media (min-width: 720px) {
	.ak-lead { grid-template-columns: 1.15fr 1fr; }
	.ak-lead__media { aspect-ratio: auto; min-height: 100%; }
	.ak-lead__body { justify-content: center; padding: 28px; }
	.ak-feature { grid-template-columns: 1.2fr 1fr; }
	.ak-feature__media { aspect-ratio: auto; min-height: 280px; }
	.ak-feature__body { justify-content: center; }
	.ak-signup { grid-template-columns: 1fr 1fr; align-items: center; }
	.ak-footer__in { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 1024px) {
	.ak-hide-mobile { display: inline-grid; }
	.ak-split { grid-template-columns: 1.6fr 1fr; align-items: start; }
	.ak-article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 48px; }
	.ak-sidebar { position: sticky; top: 140px; }
	.ak-stack { padding-block: 28px 56px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.ak-topbar, .ak-header, .ak-tabs, .ak-sidebar, .ak-ad, .ak-comments, .ak-wa, .ak-footer { display: none !important; }
	body { background: #fff; color: #000; }
}

/* =====================================================================
   Stage 2: reader features
   ===================================================================== */

.ak-btn--line { background: transparent; border: 1px solid var(--line); color: var(--ink); align-self: center; }
.ak-btn--line:hover { border-color: var(--accent); color: var(--ink); }

/* Likes */
.ak-like[aria-pressed="true"] { background: color-mix(in srgb, var(--hot) 18%, transparent); border-color: var(--hot); color: var(--hot); }
.ak-like[aria-pressed="true"] .ico { fill: currentColor; }
.ak-like [data-like-count]:empty { display: none; }
.ak-like.is-pop .ico, .ak-q__btn.is-pop .ico { animation: ak-pop .45s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes ak-pop { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Follow buttons */
.ak-follow { padding: 0 16px; color: var(--ink); }
.ak-follow--lg { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 14px; background: var(--accent); border-color: var(--accent); color: var(--on); }
.ak-follow--lg[aria-pressed="true"] { background: transparent; color: var(--ink); border-color: var(--line); }
.ak-follow--chip { min-height: 44px; border-radius: 22px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 6px; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ak-follow--chip::before { content: "+"; font-weight: 800; font-size: 18px; line-height: 1; width: 18px; text-align: center; }
.ak-follow--chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--black); }
.ak-follow--chip[aria-pressed="true"]::before { content: "✓"; font-size: 14px; }
.ak-topichead__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* For you */
.ak-foryou__empty { border-radius: var(--r-lg); border: 1px dashed var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ak-foryou__empty p { color: var(--muted); }
.ak-foryou__empty strong { color: var(--ink); }

/* Data saver */
.ak-saverbtn[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); color: var(--black); }
[data-saver] .ak-card__media, [data-saver] .ak-row__media, [data-saver] .ak-lead__media,
[data-saver] .ak-feature__media, [data-saver] .ak-q__media { display: none !important; }
[data-saver] .ak-prose img:not(.is-shown), [data-saver] .ak-article__figure img:not(.is-shown) { display: none; }
[data-saver] .ak-embed:not(.is-shown) { display: none; }
@media (min-width: 720px) {
	[data-saver] .ak-lead, [data-saver] .ak-feature { grid-template-columns: 1fr; }
}
.ak-reveal { align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--muted); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }

/* Glossary */
.ak-gloss { font: inherit; color: inherit; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 0; border-radius: 4px; padding: 0 3px; margin: 0 -1px; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ak-gloss::after { content: "i"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 3px; border-radius: 50%; background: var(--accent); color: var(--on); font: 700 10px/1 var(--body); font-style: italic; vertical-align: 2px; }
.ak-gloss:hover, .ak-gloss[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ak-glosspop { position: absolute; z-index: 45; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.45; }
.ak-glosspop strong { font-family: var(--display); font-size: 17px; color: var(--link); }
.ak-glosspop { border-color: var(--accent); }

/* Listen */
.ak-act--listen[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on); }
.ak-player { position: fixed; z-index: 31; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--butter); color: var(--black); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ak-player__btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--black); color: var(--butter); display: grid; place-items: center; flex: 0 0 auto; }
.ak-player__btn .ico { width: 16px; height: 16px; }
.ak-player__btn--ghost { background: transparent; color: var(--black); }
.ak-player .ak-p-play { display: none; }
.ak-player.is-paused .ak-p-play { display: inline; }
.ak-player.is-paused .ak-p-pause { display: none; }
.ak-player__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ak-player__text strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-player__bar { height: 4px; border-radius: 2px; background: rgba(17, 17, 20, .2); }
.ak-player__bar i { display: block; height: 4px; border-radius: 2px; background: var(--black); width: 0; transition: width .4s; }
.ak-player__part { font-size: 11px; font-weight: 700; }

/* Install prompt */
.ak-install { position: fixed; z-index: 32; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.ak-install__text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.ak-install__btns { display: flex; gap: 8px; }

/* Tabs: saved badge */
.ak-tab { position: relative; }
.ak-tab__badge { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: var(--black); font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* Quick Reads */
body.ak-view-quick { overflow: hidden; }
body.ak-view-quick .ak-footer, body.ak-view-quick .ak-ad--top, body.ak-view-quick .ak-topbar { display: none; }
.ak-quick { --q-h: calc(100dvh - 220px); height: var(--q-h); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; position: relative; }
.ak-quick::-webkit-scrollbar { display: none; }
.ak-quick__topic { position: sticky; top: 8px; z-index: 2; display: flex; justify-content: center; height: 0; overflow: visible; }
.ak-quick__topic .ak-chip { background: var(--card); min-height: 36px; gap: 6px; }
.ak-q { height: var(--q-h); scroll-snap-align: start; scroll-snap-stop: always; padding: 10px max(12px, env(safe-area-inset-left, 0px)); display: flex; justify-content: center; }
.ak-q__card { position: relative; flex: 1; max-width: 560px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: var(--q-bg); color: var(--q-ink); }
.ak-q--c0 { --q-bg: var(--accent); --q-ink: #FFFFFF; }
.ak-q--c1 { --q-bg: var(--black); --q-ink: #FFFFFF; }
.ak-q--c2 { --q-bg: var(--card); --q-ink: var(--ink); }
.ak-q--c3 { --q-bg: var(--butter); --q-ink: var(--black); }
.ak-q--c2 { border: 1px solid var(--line); }
.ak-q__media { flex: 0 1 42%; min-height: 0; overflow: hidden; }
.ak-q__media .ak-img { width: 100%; height: 100%; object-fit: cover; }
.ak-q__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 20px 84px 22px 20px; min-height: 0; }
.ak-q__meta { color: inherit; opacity: .8; }
.ak-q__title { font-weight: 800; font-size: clamp(26px, 7vw, 40px); line-height: 1; }
.ak-q__title a:hover { color: inherit; text-decoration: underline; }
.ak-q__dek { font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ak-q__read { align-self: flex-start; background: var(--black); color: #FFFFFF; }
.ak-q--c1 .ak-q__read { background: var(--accent); }
.ak-q__read:hover { color: #fff; }
.ak-q--c2 .ak-q__read { background: var(--accent); color: var(--on); }
.ak-q__hint { font-size: 12px; opacity: .75; }
.ak-q__rail { position: absolute; right: 12px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.ak-q__btn { width: 56px; border: 0; background: transparent; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 0; }
.ak-q__btn > span { width: 50px; height: 50px; border-radius: 50%; background: rgba(17, 17, 20, .14); display: grid; place-items: center; }
.ak-q--c2 .ak-q__btn > span { background: var(--raise); }
.ak-q__btn .ico { width: 22px; height: 22px; }
.ak-q__btn[aria-pressed="true"] .ico { fill: currentColor; }
.ak-q__btn b:empty { display: none; }
.ak-q--ad { align-items: center; }
.ak-ad--quick { max-width: 560px; width: 100%; height: 100%; justify-content: center; }
.ak-foryou__empty.is-compact { border: 0; padding: 0; }

/* Empty-image placeholder always centres its icon, whatever box it sits in. */
.ak-img.ak-img--empty { display: grid !important; place-items: center; }

/* Phones: keep the header to one row. Text size moves into the article's own toolbar. */
.ak-sizecycle { display: none; }
@media (max-width: 719px) {
	.ak-header__in { gap: 6px; }
	.ak-iconbtn { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; }
	.ak-sizer { display: none; }
	.ak-sizecycle { display: inline-flex; }
	.ak-logo { font-size: 22px; }
	.ak-logo--img img { height: 40px; max-width: 46vw; }
}

/* For-you picker */
.ak-picker { border-radius: var(--r-lg); border: 1px dashed var(--line); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ak-picker__intro { color: var(--muted); }
.ak-picker__intro strong { color: var(--ink); }
.ak-picker__bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ak-picker__bar .ak-btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.ak-picker__count { font-variant-numeric: tabular-nums; }
.ak-follow--chip { transition: transform .2s cubic-bezier(.2, .8, .2, 1.3), background-color .2s, color .2s; }
.ak-follow--chip:active { transform: scale(.96); }
.ak-follow--chip[aria-pressed="true"] { transform: scale(1.03); }

/* Followed topics in the sections menu */
.ak-sections__list a.is-followed::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: 3px; }

/* Quick Reads: For you / All switch */
.ak-quickswitch { display: flex; justify-content: center; gap: 6px; padding: 10px 16px 0; }
.ak-quickswitch a { min-height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; }
.ak-quickswitch a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on); }

/* Colour defaults that never override a chip's own colour class. */
:where(.ak-follow--chip), :where(.ak-chips--lg .ak-chip) { --c: var(--accent); }
:root[data-theme="light"] .ak-chips--lg .ak-chip.ak-chip--all,
.ak-chips--lg .ak-chip.ak-chip--all:hover { background: var(--accent); border-color: var(--accent); color: var(--on); }
.ak-follow--chip[aria-pressed="true"] { color: #111114; }
.ak-follow--chip.ak-chip--c0[aria-pressed="true"] { color: #FFFFFF; }

/* Bottom tab bar on every screen size; a little wider on laptops. */
@media (min-width: 1024px) {
	.ak-tabs { width: 520px; bottom: 18px; }
	.ak-tab { flex-direction: row; gap: 8px; font-size: 13px; min-height: 48px; }
	.ak-tab__badge { position: static; }
}

/* Images always fill their frame and never push text down (fixes overlapping card meta). */
.ak-card__media, .ak-lead__media, .ak-feature__media, .ak-row__media, .ak-q__media { position: relative; overflow: hidden; }
.ak-card__media > img, .ak-lead__media > img, .ak-feature__media > img, .ak-row__media > img, .ak-q__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-lead__media, .ak-feature__media { min-height: 220px; }

/* Install prompt: iPhone instructions variant */
.ak-install__ios { display: none; }
.ak-install.is-ios .ak-install__ios { display: block; }
.ak-install.is-ios [data-install] { display: none; }
.ak-footer__app { justify-self: start; }
.ak-install__android { display: none; }
.ak-install.is-android .ak-install__android { display: block; }
.ak-install.is-android [data-install] { display: none; }

/* Market strip changes */
.ak-market__chg { font-style: normal; font-weight: 700; font-size: 12px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.ak-market__chg--up { color: #2FC37A; }
.ak-market__chg--down { color: var(--hot); }
:root[data-theme="light"] .ak-market__chg--up { color: #0E7A43; }

/* Narrow phones (under 400px): keep logo, LIVE and the three buttons on one line. */
@media (max-width: 399px) {
	.ak-header__in { gap: 5px; }
	.ak-logo { font-size: 19px; min-width: 0; }
	.ak-logo--img img { max-width: 132px; height: auto; max-height: 44px; }
	.ak-live { padding: 0 7px; letter-spacing: .05em; gap: 4px; }
	.ak-iconbtn { min-width: 38px; height: 38px; padding: 0 6px; }
}

/* ---------------------------------------------------------------------------
   Live coverage and polls (markup from Akede Core).
   --------------------------------------------------------------------------- */
.ak-tag--live { gap: 6px; background: var(--hot); color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.ak-tag--live:hover { color: #fff; }
.ak-tag--live i, .ak-livekick i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ak-pulse 1.4s infinite; }
.ak-livekick { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.ak-liveblog { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.ak-liveblog__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--hot); }
.ak-liveblog.is-ended .ak-liveblog__head { border-bottom-color: var(--line); }
.ak-liveblog__status { font-weight: 700; }
.ak-liveblog__ended { font-weight: 700; color: var(--muted); }
.ak-liveblog__count { margin-left: auto; color: var(--muted); font-size: 14px; }
.ak-keypoints { padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--butter); }
.ak-keypoints h3 { margin: 0 0 8px; font-family: var(--display); font-size: 18px; }
.ak-keypoints ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ak-keypoints a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.ak-liveblog__new {
	position: sticky; top: 76px; z-index: 5; align-self: center; height: 40px; padding: 0 18px; border: 0; border-radius: 20px;
	background: var(--hot); color: #fff; font: 700 14px var(--body); cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
	animation: ak-rise .35s ease both;
}
.ak-liveblog__feed { display: flex; flex-direction: column; }
.ak-update { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ak-update:first-child { border-top: 0; }
.ak-update__time { white-space: nowrap; display: flex; flex-direction: column; font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; position: relative; }
.ak-update__time span { color: var(--muted); font-weight: 500; font-size: 12px; }
.ak-update__key { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 8px; background: var(--butter); color: var(--black); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ak-update__title { margin: 0 0 6px; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.ak-update__text { font-size: var(--prose); line-height: 1.65; overflow-wrap: anywhere; }
.ak-update__text p { margin: 0 0 .7em; }
.ak-update__text a { color: var(--link); }
.ak-update__text img { height: auto; border-radius: var(--r-sm); }
.ak-update__link { font-size: 13px; color: var(--muted); }
.ak-update.is-new { animation: ak-newupdate 4s ease; }
@keyframes ak-newupdate { 0% { background: color-mix(in srgb, var(--hot) 16%, transparent); transform: translateY(-10px); opacity: 0; } 10% { opacity: 1; transform: none; } 100% { background: transparent; } }
.ak-update:target { background: color-mix(in srgb, var(--butter) 14%, transparent); border-radius: var(--r-sm); }
@media (max-width: 719px) { .ak-update { grid-template-columns: 1fr; gap: 6px; } .ak-update__time { flex-direction: row; gap: 8px; align-items: baseline; } }

.ak-poll { margin-top: 28px; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ak-poll__head { display: flex; align-items: center; gap: 10px; }
.ak-poll__tag { background: var(--accent); color: var(--on); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; }
.ak-poll__status { color: var(--muted); font-size: 13px; font-weight: 600; }
.ak-poll__q { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.ak-poll__opts { display: flex; flex-direction: column; gap: 10px; }
.ak-poll__opt {
	position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; overflow: hidden;
	border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--raise); color: var(--ink);
	font: 650 16px var(--body); text-align: left; cursor: pointer; transition: border-color .2s, transform .15s;
}
.ak-poll__opt:not(:disabled):hover { border-color: var(--accent); }
.ak-poll__opt:not(:disabled):active { transform: scale(.98); }
.ak-poll__opt:disabled { cursor: default; opacity: 1; }
.ak-poll__bar { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: color-mix(in srgb, var(--ink) 10%, transparent); transition: width .9s cubic-bezier(.2, .8, .2, 1.05); }
.ak-poll__opt.is-top .ak-poll__bar { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ak-poll__label, .ak-poll__pct { position: relative; }
.ak-poll__label { flex: 1; }
.ak-poll__pct { font-weight: 800; font-variant-numeric: tabular-nums; }
.ak-poll__opt.is-mine { border-color: var(--accent); }
.ak-poll__opt.is-mine .ak-poll__label::after { content: " ✓"; color: var(--link); font-weight: 800; }
.ak-poll__opt.is-picked { border-color: var(--accent); }
.ak-poll.is-sending .ak-poll__opt { pointer-events: none; }
.ak-poll__foot { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------------------
   Header structure and styles (Akede → Design → Header).
   --------------------------------------------------------------------------- */
.ak-header__start, .ak-header__brand, .ak-header__tools { display: flex; align-items: center; gap: inherit; min-width: 0; }
.ak-header__tools { margin-left: auto; flex: 0 0 auto; }
.ak-iconbtn--label { gap: 8px; display: inline-flex; padding: 0 14px; }
.ak-iconbtn--label .ico { width: 20px; height: 20px; }
@media (max-width: 719px) { .ak-iconbtn--label span { display: none; } .ak-iconbtn--label { padding: 0 8px; } }

/* Centred masthead */
.ak-header--masthead .ak-header__in { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 14px; }
.ak-header--masthead .ak-header__start { justify-self: start; }
.ak-header--masthead .ak-header__brand { flex-direction: column; gap: 6px; justify-self: center; }
.ak-header--masthead .ak-header__tools { justify-self: end; margin-left: 0; }
.ak-header--masthead .ak-logo { font-size: 30px; }
.ak-header__date { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ak-header--masthead .ak-sections__list { justify-content: safe center; }
@media (min-width: 1024px) {
	.ak-header--masthead .ak-header__in { padding-block: 22px; }
	.ak-header--masthead .ak-logo { font-size: 46px; }
	.ak-header--masthead .ak-logo--img img { height: 80px; }
}
@media (max-width: 719px) { .ak-header--masthead .ak-header__date { display: none; } .ak-header--masthead .ak-header__in { grid-template-columns: auto 1fr auto; } .ak-header--masthead .ak-header__brand { justify-self: start; flex-direction: row; } }

/* Compact: one slim row; the menu moves into the header on computers. */
.ak-header__menu { display: none; min-width: 0; flex: 1 1 auto; }
.ak-header--compact .ak-header__in { padding-block: 6px; }
.ak-header--compact .ak-logo { font-size: 22px; }
.ak-header--compact .ak-logo--img img { height: 38px; }
@media (min-width: 1024px) {
	.ak-header--compact .ak-header__menu { display: block; }
	.ak-header--compact .ak-header__menu .ak-sections__list a { padding: 10px 12px; font-size: 15.5px; border-bottom-width: 2px; }
	.ak-header--compact .ak-sections { display: none; }
	.ak-header--compact .ak-header__tools { margin-left: 0; }
}

/* Bold bar: the header in the brand colour. */
.ak-header--bold { background: var(--accent); border-bottom-color: transparent; color: var(--on); }
.ak-header--bold .ak-header__in .ak-iconbtn { background: color-mix(in srgb, var(--on) 14%, transparent); border-color: transparent; color: var(--on); }
.ak-header--bold .ak-logo, .ak-header--bold .ak-logo:hover { color: var(--on); }
.ak-header--bold .ak-logo span { color: var(--on); opacity: .72; }
.ak-header--bold .ak-logo--has-dark .ak-logo__light { display: none !important; }
.ak-header--bold .ak-logo--has-dark .ak-logo__dark { display: block !important; }
.ak-header--bold .ak-logo--plate img { background: #FFFFFF; padding: 6px 12px; border-radius: 12px; box-sizing: content-box; }
.ak-header--bold .ak-live { background: #FFFFFF; color: #C41E14; }
.ak-header--bold .ak-sections { background: color-mix(in srgb, var(--accent) 82%, #000); border-top-color: transparent; }
.ak-header--bold .ak-sections__list a { color: var(--on); opacity: .88; }
.ak-header--bold .ak-sections__list a:hover, .ak-header--bold .ak-sections__list .current-cat > a, .ak-header--bold .ak-sections__list .current-menu-item > a { color: var(--on); opacity: 1; border-bottom-color: var(--on); }
.ak-header--bold .ak-header__date { color: var(--on); opacity: .8; }

/* Minimal: logo and a Sections button that opens a full-screen sheet. */
.ak-header--minimal .ak-header__in { padding-block: 12px; }
.ak-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); display: flex; justify-content: flex-end; animation: ak-fade .2s ease both; }
.ak-sheet[hidden] { display: none; }
.ak-sheet__panel { width: min(440px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 16px 20px 40px; display: flex; flex-direction: column; gap: 18px; animation: ak-slidein .3s cubic-bezier(.2, .8, .2, 1) both; }
.ak-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ak-sheet__list, .ak-sheet__nav .ak-sections__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; overflow: visible; white-space: normal; }
.ak-sheet__list a, .ak-sheet__nav .ak-sections__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.ak-sheet__list a:hover { color: var(--link); }
html.ak-sheet-open { overflow: hidden; }
@keyframes ak-fade { from { opacity: 0; } }
@keyframes ak-slidein { from { transform: translateX(40px); opacity: 0; } }

/* ---------------------------------------------------------------------------
   Card style (Akede → Design → Cards).
   --------------------------------------------------------------------------- */
body.ak-corners-sharp { --r-lg: 4px; --r-md: 4px; --r-sm: 3px; }
body.ak-corners-sharp .ak-card, body.ak-corners-sharp .ak-lead, body.ak-corners-sharp .ak-bigcard, body.ak-corners-sharp .ak-tile, body.ak-corners-sharp .ak-feature, body.ak-corners-sharp .ak-row__media, body.ak-corners-sharp .ak-tl__media, body.ak-corners-sharp .ak-grid--list .ak-card__media, body.ak-corners-sharp .ak-poll, body.ak-corners-sharp .ak-keypoints { border-radius: 4px; }
body.ak-corners-sharp .ak-chip, body.ak-corners-sharp .ak-iconbtn, body.ak-corners-sharp .ak-act, body.ak-corners-sharp .ak-btn { border-radius: 4px; }
body.ak-ratio-standard .ak-card__media, body.ak-ratio-standard .ak-bigcard__media { aspect-ratio: 4 / 3; }
body.ak-ratio-square .ak-card__media, body.ak-ratio-square .ak-bigcard__media { aspect-ratio: 1 / 1; }

/* ---------------------------------------------------------------------------
   Section styles (homepage sections and topic pages).
   --------------------------------------------------------------------------- */
.ak-section { display: flex; flex-direction: column; gap: 14px; }
.ak-bigcard { display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.ak-bigcard__media { display: block; aspect-ratio: 16 / 9; }
.ak-bigcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.ak-bigcard__title { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.12; letter-spacing: -.015em; }
.ak-bigcard__title a:hover { color: var(--link); }

/* Lead + list */
.ak-sx--lead { display: grid; gap: 14px; }
.ak-sx__rows { display: flex; flex-direction: column; }
.ak-sx__rows .ak-row:first-child { padding-top: 0; }
@media (min-width: 900px) { .ak-sx--lead { grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; } }

/* Timeline */
.ak-sx--timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: flex; flex-direction: column; }
.ak-sx--timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 10%, transparent)); }
.ak-tl { position: relative; display: grid; grid-template-columns: 1fr 96px; grid-template-areas: "time media" "body media"; gap: 4px 14px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.ak-tl:last-child { border-bottom: 0; }
.ak-tl::before { content: ""; position: absolute; left: -22px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.ak-tl:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.ak-tl__time { grid-area: time; font-size: 13px; font-weight: 800; color: var(--link); letter-spacing: .02em; }
.ak-tl__body { grid-area: body; display: flex; flex-direction: column; gap: 4px; }
.ak-tl__title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.22; }
.ak-tl__body:hover .ak-tl__title { color: var(--link); }
.ak-tl__dek { color: var(--muted); font-size: 14.5px; }
.ak-tl__media { grid-area: media; display: block; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; align-self: start; }
@media (max-width: 519px) { .ak-tl { grid-template-columns: 1fr 72px; } .ak-tl__media { width: 72px; height: 72px; } .ak-tl__dek { display: none; } }

/* Picture tiles */
.ak-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; min-height: 220px; background: var(--raise); color: #FFFFFF; isolation: isolate; }
.ak-tile:hover { color: #FFFFFF; }
.ak-tile__media { position: absolute; inset: 0; z-index: -1; }
.ak-tile__media .ak-img, .ak-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ak-tile:hover .ak-tile__media img { transform: scale(1.05); }
.ak-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82)); }
.ak-tile__body { position: absolute; inset: auto 0 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ak-tile__kicker { align-self: flex-start; padding: 3px 9px; border-radius: 8px; background: var(--accent); color: var(--on); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ak-tile__title { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.ak-tile.is-big .ak-tile__title { font-size: 26px; }
.ak-tile__when { font-size: 12.5px; opacity: .8; }
.ak-sx--tiles { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ak-sx--tiles .ak-tile.is-big { grid-column: 1 / -1; min-height: 300px; }
@media (min-width: 900px) { .ak-sx--tiles { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; } .ak-sx--tiles .ak-tile { min-height: 0; } .ak-sx--tiles .ak-tile.is-big { grid-column: auto; grid-row: span 2; } .ak-sx--tiles .ak-tile:nth-child(4) { grid-column: span 2; } }
@media (max-width: 519px) { .ak-sx--tiles { grid-template-columns: 1fr; } .ak-sx--tiles .ak-tile { min-height: 200px; } }

/* Carousel */
.ak-sx--carousel { position: relative; }
.ak-sx__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.ak-sx__track::-webkit-scrollbar { display: none; }
.ak-sx__track > * { scroll-snap-align: start; }
.ak-sx__track .ak-card__title { font-size: 17px; }
.ak-sx__nav { display: none; position: absolute; top: 28%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); cursor: pointer; place-items: center; z-index: 2; transition: opacity .2s; }
.ak-sx__nav--prev { left: -14px; }
.ak-sx__nav--next { right: -14px; }
.ak-sx__nav--next .ico { transform: scaleX(-1); }
@media (hover: hover) and (min-width: 720px) { .ak-sx__nav { display: grid; } }
.ak-sx--carousel.at-start .ak-sx__nav--prev, .ak-sx--carousel.at-end .ak-sx__nav--next { opacity: 0; pointer-events: none; }

/* Ranked */
.ak-sx--ranked { display: grid; column-gap: 28px; }
@media (min-width: 900px) { .ak-sx--ranked { grid-template-columns: 1fr 1fr; } }
.ak-sx--ranked .ak-row__n { font-size: 44px; min-width: 40px; color: var(--accent); -webkit-text-stroke: 0; }
.ak-sx--ranked .ak-row:nth-child(n+2) .ak-row__n { color: transparent; -webkit-text-stroke: 1.5px var(--muted); }

/* Magazine */
.ak-sx--magazine { display: grid; gap: 14px; }
.ak-sx--magazine .ak-tile.is-big { min-height: 320px; }
.ak-sx__stack { display: grid; gap: 14px; }
@media (min-width: 720px) { .ak-sx__stack { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
	.ak-sx--magazine { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
	.ak-sx--magazine .ak-tile.is-big { min-height: 420px; }
	.ak-sx__stack { grid-template-columns: 1fr; }
	.ak-sx__stack .ak-card { flex-direction: row; }
	.ak-sx__stack .ak-card__media { flex: 0 0 42%; aspect-ratio: auto; }
	.ak-sx__stack .ak-card__title { font-size: 17px; }
}

/* Topic page: list after a styled opening block */
.ak-grid--after { margin-top: 8px; }
.ak-header--bold .ak-breaking { color: var(--ink); }
