/* ==========================================================================
   MSN India look-alike — front-end stylesheet
   1. Tokens            7. Hero + cards        13. Article
   2. Base              8. Sections/grids      14. Archives, pages, search
   3. Utilities         9. Rail                15. Auth screens
   4. Top bar          10. Video strip         16. Account
   5. Masthead         11. Newsletter          17. Overlays
   6. Nav + ticker     12. Footer              18. Ads / responsive / dark
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--accent: #0b7cff;
	--accent-dark: #0a63cc;
	--accent-soft: #eaf3ff;
	--ink: #16181d;
	--ink-2: #333b47;
	--muted: #5f6b7a;
	--line: #e5e9ef;
	--line-strong: #d2d9e3;
	--bg: #ffffff;
	--bg-soft: #f5f7fa;
	--surface: #ffffff;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 16px;
	--shadow: 0 18px 40px -30px rgba(14, 28, 52, 0.55);
	--shadow-soft: 0 1px 2px rgba(14, 28, 52, 0.06);
	--wrap: 1280px;
	--sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

[data-theme="dark"] {
	--ink: #f1f4f9;
	--ink-2: #d7dde7;
	--muted: #9aa6b6;
	--line: #242b36;
	--line-strong: #333c4a;
	--bg: #0d1117;
	--bg-soft: #141a23;
	--surface: #111721;
	--accent-soft: #14273e;
	--shadow: 0 18px 40px -30px #000;
	--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.is-locked {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -0.012em;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--surface);
}

input::placeholder,
textarea::placeholder {
	color: var(--muted);
	opacity: 0.85;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* 3. Utilities ------------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	z-index: 999;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 12px;
	color: var(--bg);
}

.icon {
	vertical-align: middle;
	flex: none;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid transparent;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	color: var(--ink-2);
	transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
	background: var(--bg-soft);
	color: var(--ink);
}

.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

.avatar--lg {
	width: 38px;
	height: 38px;
	font-size: 15px;
}

.avatar--xl {
	width: 58px;
	height: 58px;
	font-size: 22px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	text-decoration: none;
}

.btn--solid {
	background: var(--accent);
	color: #fff;
}

.btn--solid:hover {
	background: var(--accent-dark);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line-strong);
	color: var(--ink-2);
	background: transparent;
}

.btn--ghost:hover {
	border-color: var(--ink-2);
	color: var(--ink);
}

.btn--line {
	border-color: var(--accent);
	color: var(--accent);
	background: transparent;
}

.btn--line:hover {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.btn--text {
	background: transparent;
	color: var(--muted);
	padding: 0 8px;
}

.btn--block {
	width: 100%;
}

.btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.link-small {
	font-size: 12.5px;
	font-weight: 600;
}

.kicker {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 4px;
}

.meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}

.meta__dot {
	color: var(--line-strong);
}

.meta__source {
	font-weight: 600;
	color: var(--ink-2);
}

.save-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	padding: 3px 7px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.save-btn:hover {
	background: var(--bg-soft);
	color: var(--ink);
}

.save-btn.is-saved {
	color: var(--accent);
}

.save-btn.is-saved .icon path {
	fill: currentColor;
}

.follow-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 11px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: all 0.15s ease;
}

.follow-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.follow-btn.is-following {
	background: var(--accent-soft);
	border-color: color-mix(in srgb, var(--accent) 35%, transparent);
	color: var(--accent-dark);
}

[data-theme="dark"] .follow-btn.is-following {
	color: #a9cdff;
}

.follow-btn__name {
	font-weight: 700;
	color: var(--ink);
}

.follow-btn.is-following .follow-btn__name {
	color: inherit;
}

.article__publisher {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--ink-2);
}

.publisher-logo {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	object-fit: contain;
	background: var(--bg-soft);
}

/* 4. Top bar --------------------------------------------------------------- */
.topbar {
	background: var(--bg-soft);
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
}

.topbar__date {
	margin: 0;
	display: flex;
	gap: 8px;
	align-items: center;
}

.topbar__sep {
	opacity: 0.5;
}

.topbar__edition {
	font-weight: 600;
	color: var(--ink-2);
}

.topbar__links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.topbar__links a,
.topbar__menu a {
	color: var(--muted);
}

.topbar__links a:hover,
.topbar__menu a:hover {
	color: var(--accent);
	text-decoration: none;
}

.topbar__menu {
	display: flex;
	gap: 16px;
	margin: 0;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink-2);
	cursor: pointer;
}

.theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
	display: none;
}

[data-theme="dark"] .theme-toggle__moon {
	display: inline-flex;
}

/* 5. Masthead -------------------------------------------------------------- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s ease;
}

.masthead.is-stuck {
	box-shadow: 0 8px 22px -18px rgba(14, 28, 52, 0.6);
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.masthead__burger {
	display: none;
}

.brand {
	flex: none;
	display: flex;
	align-items: center;
}

.brand__link {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: var(--ink);
	text-decoration: none;
}

.brand__link:hover {
	text-decoration: none;
	color: var(--ink);
}

.brand__primary {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1;
}

.brand__primary::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	margin-left: 2px;
	vertical-align: 8px;
}

.brand__secondary {
	font-size: 21px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--muted);
}

.custom-logo {
	max-height: 42px;
	width: auto;
}

/* Scoped to the form: WordPress also puts a `search` class on <body> for
   search results, which must not become a flex container. */
form.search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	max-width: 520px;
}

.search__icon {
	position: absolute;
	left: 14px;
	display: inline-flex;
	color: var(--muted);
	pointer-events: none;
}

.search__input {
	width: 100%;
	height: 42px;
	padding: 0 100px 0 42px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--bg-soft);
	font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.search__input:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--surface);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.search__submit {
	position: absolute;
	right: 4px;
	height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.search__submit:hover {
	background: var(--accent-dark);
}

form.search--inline {
	max-width: 400px;
}

.masthead__tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.weather {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-right: 14px;
	border-right: 1px solid var(--line);
	color: var(--ink-2);
}

.weather__icon {
	color: var(--accent);
	display: inline-flex;
}

.weather__body {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.weather__temp {
	font-size: 15px;
	font-weight: 700;
}

.weather__meta {
	font-size: 11px;
	color: var(--muted);
}

.account {
	position: relative;
}

.account__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
}

.account__button:hover {
	text-decoration: none;
	color: var(--accent);
}

.account__name {
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 208px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 8px;
	display: none;
	z-index: 70;
}

.account:hover .account__menu,
.account:focus-within .account__menu {
	display: block;
}

.account__menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--ink-2);
	font-size: 13.5px;
}

.account__menu a:hover {
	background: var(--bg-soft);
	color: var(--accent);
	text-decoration: none;
}

.account__signout {
	color: var(--muted) !important;
	border-top: 1px solid var(--line);
	margin-top: 6px;
	padding-top: 10px !important;
}

/* 6. Nav + ticker ---------------------------------------------------------- */
.nav {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.nav__inner {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 50px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.nav__inner::-webkit-scrollbar {
	display: none;
}

.nav__foryou {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	margin-right: 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

.nav__foryou:hover,
.nav__foryou.is-active {
	background: var(--accent);
	color: #fff;
	text-decoration: none;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 13px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border-bottom: 3px solid transparent;
	box-sizing: border-box;
	white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
	text-decoration: none;
}

/* Menu items rendered by wp_nav_menu() do not carry our link class. */
.nav__list > li {
	display: flex;
}

.nav__list > li > a {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 13px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border-bottom: 3px solid transparent;
	box-sizing: border-box;
	white-space: nowrap;
}

.nav__list > li > a:hover,
.nav__list > li.current-menu-item > a,
.nav__list > li.current-menu-ancestor > a,
.nav__list > li.current-menu-parent > a {
	color: var(--accent);
	border-bottom-color: var(--accent);
	text-decoration: none;
}

.nav__personalize {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px dashed var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	flex: none;
}

.nav__personalize:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.ticker {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}

.ticker__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 42px;
	overflow: hidden;
}

.ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
	flex: none;
	padding-right: 14px;
	border-right: 1px solid var(--line);
}

.ticker__viewport {
	overflow: hidden;
	flex: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker__track {
	display: flex;
	gap: 0;
	width: max-content;
	animation: msn-ticker 46s linear infinite;
}

.ticker:hover .ticker__track {
	animation-play-state: paused;
}

.ticker__list {
	display: flex;
	gap: 0;
}

.ticker__list li {
	position: relative;
	padding: 0 18px 0 22px;
	white-space: nowrap;
}

.ticker__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--line-strong);
}

.ticker__list a {
	color: var(--ink-2);
	font-weight: 500;
}

.ticker__list a:hover {
	color: var(--accent);
}

@keyframes msn-ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Drawer ------------------------------------------------------------------- */
.drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(320px, 86vw);
	background: var(--surface);
	z-index: 120;
	padding: 18px;
	overflow-y: auto;
	box-shadow: var(--shadow);
}

.drawer[hidden] {
	display: none;
}

.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(9, 14, 22, 0.5);
	z-index: 110;
}

.drawer-backdrop[hidden] {
	display: none;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.drawer__title {
	font-size: 15px;
	font-weight: 700;
}

.drawer__nav {
	display: flex;
	flex-direction: column;
	padding: 12px 0;
}

.drawer__nav a {
	padding: 11px 4px;
	color: var(--ink-2);
	font-size: 15px;
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}

.drawer__nav a:hover {
	color: var(--accent);
	text-decoration: none;
}

.drawer__foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

/* 7. Homepage layout ------------------------------------------------------- */
.wrap--home {
	padding-top: 22px;
	padding-bottom: 64px;
}

.home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
}

.home-main {
	min-width: 0;
}

.home-tabs {
	display: flex;
	align-items: center;
	gap: 26px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
	overflow-x: auto;
	scrollbar-width: none;
}

.home-tabs::-webkit-scrollbar {
	display: none;
}

.home-tabs__item {
	position: relative;
	padding: 12px 0 13px;
	color: var(--ink-2);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.home-tabs__item:hover {
	color: var(--accent);
	text-decoration: none;
}

.home-tabs__item.is-active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.home-tabs__item--foryou {
	color: var(--accent);
}

.hero-module {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 32px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.hero__media {
	display: block;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-soft);
	aspect-ratio: 16 / 9;
	max-height: 430px;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hero__media:hover img {
	transform: scale(1.02);
}

.hero__content {
	padding: 14px 0 18px;
}

.hero__title {
	font-size: clamp(23px, 2.3vw, 33px);
	line-height: 1.13;
	letter-spacing: -0.022em;
	margin: 6px 0 10px;
}

.hero__title a {
	color: var(--ink);
}

.hero__title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.hero__excerpt {
	font-size: 15.5px;
	color: var(--muted);
	max-width: 62ch;
}

.hero-stack {
	display: flex;
	flex-direction: column;
}

.hero-stack .card {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.hero-stack .card:first-child {
	padding-top: 0;
}

.hero-stack .card:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* Cards -------------------------------------------------------------------- */
.card {
	min-width: 0;
}

.card__media {
	display: block;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
	aspect-ratio: 16 / 9;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card__media:hover img {
	transform: scale(1.03);
}

.card__title {
	font-size: 17.5px;
	line-height: 1.32;
	letter-spacing: -0.01em;
	margin: 6px 0 8px;
}

.card__title a {
	color: var(--ink);
}

.card__title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.card__excerpt {
	font-size: 14px;
	color: var(--muted);
	margin: 0 0 8px;
}

.card--standard .card__body {
	padding-top: 12px;
}

.card--compact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px;
	gap: 14px;
	align-items: start;
}

.card--compact .card__media {
	order: 2;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-sm);
}

.card--compact .card__title {
	font-size: 15px;
	margin: 2px 0 6px;
}

.card--compact .meta {
	font-size: 11.5px;
}

.card--list .card__title {
	font-size: 14.5px;
	font-weight: 600;
	margin: 0 0 3px;
}

.card--list .card__body {
	padding: 0;
}

.card--row {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 22px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
	align-items: center;
}

.card--row:first-child {
	padding-top: 0;
}

.card--row .card__media {
	aspect-ratio: 3 / 2;
}

.card--row .card__title {
	font-size: 21px;
	margin: 4px 0 8px;
}

.card--overlay {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: #0b1220;
	min-height: 178px;
	display: flex;
	align-items: flex-end;
}

.card--overlay .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	border-radius: 0;
	z-index: 0;
}

.card--overlay .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 12, 20, 0.05) 30%, rgba(8, 12, 20, 0.86) 100%);
}

.card--overlay .card__body {
	position: relative;
	z-index: 1;
	padding: 16px;
	width: 100%;
}

.card--overlay .card__title {
	font-size: 15.5px;
	margin: 0 0 6px;
}

.card--overlay .card__title a {
	color: #fff;
}

.card--overlay .meta {
	color: rgba(255, 255, 255, 0.78);
	font-size: 11.5px;
}

.card--overlay .meta__source {
	color: #fff;
}

.card--overlay .meta__dot {
	color: rgba(255, 255, 255, 0.5);
}

.card--overlay .save-btn {
	color: rgba(255, 255, 255, 0.8);
}

.card__play {
	position: absolute;
	left: 14px;
	top: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0b1220;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.card__rank {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	color: var(--muted);
}

/* 8. Sections and grids ---------------------------------------------------- */
.section {
	margin-top: 44px;
}

.section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.section__title {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 21px;
	letter-spacing: -0.02em;
}

.section__bar {
	display: inline-block;
	width: 4px;
	height: 20px;
	border-radius: 3px;
	background: var(--accent);
}

.section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.section--related {
	margin-top: 40px;
}

.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__ad {
	grid-column: 1 / -1;
	padding: 2px 0;
}

.stack-list {
	display: flex;
	flex-direction: column;
}

.home-after-hero {
	margin: 26px 0 0;
}

/* 9. Rail ------------------------------------------------------------------ */
.rail {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 18px;
}

.panel__title {
	font-size: 16px;
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}

.panel__lede {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 12px;
}

.panel__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	margin-top: 12px;
}

.rank-list {
	display: flex;
	flex-direction: column;
}

.rank-list__item {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.rank-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rank-list__num {
	font-size: 19px;
	font-weight: 800;
	color: var(--line-strong);
	line-height: 1.2;
}

.rank-list .kicker,
.rank-list .save-btn {
	display: none;
}

.rank-list .meta {
	font-size: 11.5px;
}

.rail-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rail-cards .card {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.rail-cards .card:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.topic-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.weather-panel {
	background: linear-gradient(160deg, var(--accent), #0a4fa8);
	border: 0;
	color: #fff;
}

.weather-panel__top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.weather-panel__icon {
	opacity: 0.95;
}

.weather-panel__temp {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.weather-panel__city {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: 0.88;
}

.weather-panel__desc {
	margin: 10px 0 14px;
	font-size: 13px;
	opacity: 0.9;
}

.weather-panel__hourly {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.weather-panel__hour {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 11.5px;
	opacity: 0.92;
}

.weather-panel__hour strong {
	font-size: 14px;
}

/* 10. Video strip ---------------------------------------------------------- */
.section--video .section__head {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 14px;
}

.video-strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(228px, 1fr);
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
}

.video-strip .card {
	scroll-snap-align: start;
}

/* 11. Newsletter ----------------------------------------------------------- */
.newsletter {
	background: linear-gradient(120deg, var(--accent-dark), var(--accent));
	color: #fff;
	padding: 40px 0;
	margin-top: 20px;
}

.newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.newsletter__copy h2 {
	color: #fff;
	font-size: 26px;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}

.newsletter__copy p {
	margin: 0;
	max-width: 56ch;
	opacity: 0.9;
	font-size: 14.5px;
}

.newsletter__form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.newsletter__form input {
	height: 46px;
	min-width: 260px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 14px;
}

.newsletter__form input::placeholder {
	color: rgba(255, 255, 255, 0.8);
}

.newsletter__form input:focus {
	outline: none;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.22);
}

.newsletter__form .btn {
	height: 46px;
	background: #fff;
	color: var(--accent-dark);
}

.newsletter__form .btn:hover {
	background: #eaf3ff;
	color: var(--accent-dark);
}

/* 12. Footer --------------------------------------------------------------- */
.footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	padding-top: 46px;
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 34px;
	padding-bottom: 36px;
}

.footer__wordmark {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--ink);
}

.footer__about {
	margin: 10px 0 14px;
	color: var(--muted);
	font-size: 13.5px;
	max-width: 42ch;
}

.footer__social {
	display: flex;
	gap: 10px;
}

.footer__social a,
.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--ink-2);
}

.footer__social a:hover,
.social-list a:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.social-list {
	display: flex;
	gap: 10px;
}

.footer__col h3 {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer__col a {
	color: var(--ink-2);
	font-size: 13.5px;
}

.footer__col a:hover {
	color: var(--accent);
}

.footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 24px 26px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}

.footer__bottom p {
	margin: 0;
}

/* RSS subscribe block */
.footer__feeds {
	padding: 24px 24px 26px;
	border-top: 1px solid var(--line);
}

.feeds {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.feeds__logo {
	display: block;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
}

.feeds__body {
	min-width: 0;
}

.feeds__title {
	margin: 0 0 2px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}

.feeds__note {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: var(--muted);
}

.feeds__list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.feeds__list a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-soft);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
}

.feeds__list a:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.feeds__icon,
.feed-link__icon {
	display: inline-flex;
	color: var(--accent);
}

.feeds__item-logo {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	object-fit: cover;
	flex: 0 0 auto;
}

.feed-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
}

.feed-link:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

@media (max-width: 600px) {
	.feeds {
		flex-direction: column;
		gap: 12px;
	}
}

.footer__fineprint {
	opacity: 0.85;
}

/* 13. Article -------------------------------------------------------------- */
.wrap--article {
	padding-top: 18px;
	padding-bottom: 64px;
}

.crumbs {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.crumbs a {
	color: var(--muted);
}

.crumbs a:hover {
	color: var(--accent);
}

.crumbs [aria-current="page"] {
	color: var(--ink-2);
}

.article-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 46px;
}

.article {
	min-width: 0;
}

.article__title {
	font-size: clamp(28px, 3.4vw, 43px);
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 6px 0 14px;
}

.article__standfirst {
	font-size: 18px;
	line-height: 1.55;
	color: var(--muted);
	max-width: 70ch;
}

.article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	margin: 18px 0 8px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
}

.article__byline-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.article__author {
	font-size: 14px;
	font-weight: 700;
}

.article__meta {
	font-size: 12px;
	color: var(--muted);
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.article__byline-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.article__media {
	margin: 22px 0;
}

.article__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.article__media figcaption {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 8px;
}

.entry-content {
	font-size: 17.5px;
	line-height: 1.75;
	color: var(--ink-2);
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content h2 {
	font-size: 25px;
	margin: 1.8em 0 0.6em;
	color: var(--ink);
}

.entry-content h3 {
	font-size: 20px;
	margin: 1.5em 0 0.5em;
	color: var(--ink);
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 22px;
	border-left: 3px solid var(--accent);
	font-size: 21px;
	line-height: 1.5;
	font-family: var(--serif);
	color: var(--ink);
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
	margin-bottom: 1.1em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content code {
	background: var(--bg-soft);
	padding: 2px 6px;
	border-radius: 5px;
	font-size: 0.9em;
}

.share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0;
}

.share__label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 4px;
}

.share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--ink-2);
	background: transparent;
	cursor: pointer;
}

.share__link:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.article__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 26px 0;
	font-size: 12px;
	color: var(--muted);
}

.article__tags-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 11px;
}

.article__tags a {
	padding: 4px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--ink-2);
	font-weight: 600;
}

.article__tags a:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.article__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 16px 20px;
	margin: 26px 0;
	background: var(--accent-soft);
	border-radius: var(--radius);
	border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.article__cta strong {
	font-size: 14.5px;
}

.article__cta p {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.author-box {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin: 30px 0;
}

.author-box__name {
	margin: 0;
	font-weight: 700;
	font-size: 15px;
}

.author-box__bio {
	margin: 4px 0 8px;
	font-size: 13.5px;
	color: var(--muted);
}

.author-box__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
}

/* 14. Archives, pages, search --------------------------------------------- */
.wrap--page {
	padding-top: 26px;
	padding-bottom: 60px;
}

.archive-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 18px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
}

.archive-head__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.archive-head__title {
	font-size: clamp(28px, 3.2vw, 40px);
	letter-spacing: -0.03em;
}

.archive-head__desc,
.archive-head__count {
	color: var(--muted);
	font-size: 14px;
	margin: 8px 0 0;
	max-width: 66ch;
}

.archive-head__desc p {
	margin: 0;
}

.archive-head__actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.archive-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
}

.archive-main {
	min-width: 0;
}

.pagination {
	margin-top: 34px;
}

.pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	color: var(--ink-2);
	font-size: 13.5px;
	font-weight: 600;
}

.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination .screen-reader-text {
	display: none;
}

.empty-state {
	text-align: center;
	padding: 64px 24px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-lg);
	background: var(--bg-soft);
}

.empty-state h2 {
	font-size: 22px;
	margin-bottom: 8px;
}

.empty-state p {
	color: var(--muted);
	max-width: 46ch;
	margin: 0 auto 18px;
}

.empty-state .search {
	margin: 0 auto 16px;
}

.empty-state--compact {
	padding: 28px;
}

.notfound {
	text-align: center;
	padding: 40px 0 20px;
}

.notfound__code {
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--line-strong);
	margin: 0;
}

.notfound h1 {
	font-size: clamp(24px, 3vw, 34px);
	margin: 10px 0 12px;
}

.notfound p {
	color: var(--muted);
	max-width: 52ch;
	margin: 0 auto 18px;
}

.notfound .search {
	margin: 0 auto 18px;
}

.notfound .btn {
	margin-bottom: 34px;
}

.notfound__grid {
	text-align: left;
}

.page__head {
	margin-bottom: 18px;
}

.page__title {
	font-size: clamp(28px, 3vw, 38px);
	letter-spacing: -0.03em;
}

.wrap--page .entry-content {
	max-width: 72ch;
}

/* Comments ----------------------------------------------------------------- */
.comments {
	margin-top: 44px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.comments__title,
.comments__form-title {
	font-size: 20px;
	margin-bottom: 16px;
}

.comments__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.comments__list .comment-body {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 14.5px;
}

.comments__list .comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 12.5px;
	color: var(--muted);
}

.comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--ink);
}

.comments__list .avatar {
	border-radius: 50%;
}

.comments__list .children {
	margin-top: 14px;
	padding-left: 18px;
	border-left: 2px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.comment-form label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 14.5px;
}

.comment-form textarea {
	min-height: 120px;
}

.comment-form .form-submit {
	margin: 0;
}

.comments__notes,
.comments__closed {
	font-size: 12.5px;
	color: var(--muted);
}

/* 15. Auth screens --------------------------------------------------------- */
.wrap--auth {
	padding-top: 36px;
	padding-bottom: 72px;
	max-width: 1120px;
}

.auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--surface);
}

.auth__aside {
	background: linear-gradient(155deg, var(--accent), var(--accent-dark));
	color: #fff;
	padding: 46px 42px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.92;
}

.auth__title {
	color: #fff;
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0;
}

.auth__lede {
	margin: 0;
	opacity: 0.92;
	font-size: 14.5px;
	max-width: 38ch;
}

.auth__list {
	margin: 14px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth__list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.45;
}

.auth__list .icon {
	margin-top: 2px;
	opacity: 0.92;
}

.auth__aside-note {
	margin: auto 0 0;
	font-size: 11.5px;
	opacity: 0.75;
}

.auth__card {
	padding: 40px 42px;
}

.auth__tabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
}

.auth__tab {
	padding: 10px 0 12px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--muted);
	border-bottom: 2px solid transparent;
}

.auth__tab:hover {
	color: var(--ink);
	text-decoration: none;
}

.auth__tab.is-active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.auth__form {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ink-2);
	margin-bottom: 6px;
}

.field input,
.field textarea,
.form-panel input,
.form-panel textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.form-panel input:focus,
.form-panel textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.field__hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.field--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.field--stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-2);
	cursor: pointer;
}

.checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--accent);
}

.auth__alt {
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--muted);
	text-align: center;
}

.auth__staff {
	margin: 24px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
	text-align: center;
}

.notice {
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 13.5px;
	margin-bottom: 18px;
	border: 1px solid var(--line);
	background: var(--bg-soft);
}

.notice--error {
	border-color: #f2c4c4;
	background: #fdf2f2;
	color: #9b1c1c;
}

.notice--success {
	border-color: #bfe3c9;
	background: #f1faf3;
	color: #14602f;
}

[data-theme="dark"] .notice--error {
	background: #2a1618;
	border-color: #5b2626;
	color: #ffb4b4;
}

[data-theme="dark"] .notice--success {
	background: #12231a;
	border-color: #26543a;
	color: #a6e6bd;
}

/* 16. Account -------------------------------------------------------------- */
.wrap--account {
	padding-top: 28px;
	padding-bottom: 72px;
}

.account {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.account__side {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 18px;
	position: sticky;
	top: 88px;
	background: var(--surface);
}

.account__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.account__name {
	margin: 0;
	font-weight: 700;
	font-size: 15px;
}

.account__email {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--muted);
	word-break: break-word;
}

.account-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 12px;
}

.account-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--ink-2);
	font-size: 13.5px;
	font-weight: 600;
}

.account-nav__item:hover {
	background: var(--bg-soft);
	color: var(--ink);
	text-decoration: none;
}

.account-nav__item.is-active {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

[data-theme="dark"] .account-nav__item.is-active {
	color: #a9cdff;
}

.account-nav__item--out {
	margin-top: 8px;
	border-top: 1px solid var(--line);
	padding-top: 14px;
	color: var(--muted);
	border-radius: 0;
}

.account__body {
	min-width: 0;
}

.account__head {
	margin-bottom: 24px;
}

.account__head h1 {
	font-size: clamp(24px, 2.6vw, 32px);
	letter-spacing: -0.03em;
	margin-bottom: 6px;
}

.account__head p {
	color: var(--muted);
	margin: 0;
	font-size: 14px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 34px;
}

.stat {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--surface);
}

.stat:hover {
	border-color: var(--accent);
	text-decoration: none;
}

.stat strong {
	font-size: 26px;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.stat span {
	font-size: 12.5px;
	color: var(--muted);
}

.account__section {
	margin-bottom: 36px;
}

.account__section h2 {
	font-size: 18px;
	margin-bottom: 14px;
}

.account__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.account__section-head h2 {
	margin: 0;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.topic-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	background: var(--surface);
}

.topic-card.is-following {
	border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

.topic-card__name {
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ink);
}

.topic-card__name:hover {
	color: var(--accent);
	text-decoration: none;
}

.topic-card__meta {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.form-panel {
	margin-bottom: 20px;
}

.form-panel .field {
	max-width: 520px;
}

.danger-zone {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.danger-zone p {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

/* For you feed ------------------------------------------------------------- */
.archive-head--feed .archive-head__eyebrow .icon {
	margin-right: 2px;
}

.feed-toolbar {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.load-more {
	display: flex;
	justify-content: center;
	margin: 34px 0 10px;
}

.feed-signin {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 34px;
	background: var(--bg-soft);
}

.feed-signin p {
	margin: 0;
	font-size: 13.5px;
	color: var(--muted);
}

.feed-signin__actions {
	display: flex;
	gap: 10px;
}

/* 17. Overlays ------------------------------------------------------------- */
.onboard {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.onboard[hidden] {
	display: none;
}

.onboard__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 13, 22, 0.62);
	backdrop-filter: blur(4px);
}

.onboard__panel {
	position: relative;
	width: min(680px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	background: var(--surface);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 40px 80px -40px rgba(6, 12, 24, 0.6);
	border: 1px solid var(--line);
}

.onboard__close {
	position: absolute;
	right: 14px;
	top: 14px;
}

.onboard__eyebrow {
	margin: 0 0 8px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.onboard__panel h2 {
	font-size: clamp(23px, 2.6vw, 30px);
	letter-spacing: -0.03em;
	margin-bottom: 8px;
}

.onboard__lede {
	color: var(--muted);
	font-size: 14px;
	max-width: 54ch;
	margin-bottom: 20px;
}

.onboard__topics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 8px;
	margin-bottom: 22px;
}

.chip {
	position: relative;
	display: block;
}

.chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.chip span {
	display: block;
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-2);
	transition: all 0.15s ease;
}

.chip input:hover + span {
	border-color: var(--accent);
	color: var(--accent);
}

.chip input:checked + span {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.chip input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.onboard__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.onboard__note {
	margin: 16px 0 0;
	font-size: 12px;
	color: var(--muted);
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translate(-50%, 16px);
	background: var(--ink);
	color: var(--bg);
	padding: 11px 20px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	z-index: 300;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}

.toast[hidden] {
	display: none;
}

.toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* 18. Ads ------------------------------------------------------------------ */
.ad {
	padding: 4px 0;
	text-align: center;
}

.ad__label {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	opacity: 0.75;
	margin-bottom: 6px;
}

.ad__slot {
	border-radius: var(--radius);
	overflow: hidden;
}

.ad--header {
	background: var(--bg-soft);
	border-bottom: 1px solid var(--line);
	padding: 10px 16px 12px;
}

.ad--header .ad__slot {
	max-width: 970px;
	margin: 0 auto;
}

.ad--home-top .ad__slot {
	max-width: 728px;
	margin: 0 auto;
	padding: 10px 0 18px;
}

.ad--feed-top {
	padding: 6px 0 22px;
}

.ad__placeholder {
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	padding: 22px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: repeating-linear-gradient(135deg, transparent, transparent 10px, color-mix(in srgb, var(--accent) 4%, transparent) 10px, color-mix(in srgb, var(--accent) 4%, transparent) 20px);
	color: var(--muted);
}

.ad__placeholder strong {
	font-size: 13px;
	color: var(--ink-2);
}

.ad__placeholder span {
	font-size: 11.5px;
}

.ad__placeholder small {
	font-size: 11px;
	opacity: 0.85;
}

.ad--in-content {
	margin: 28px 0;
}

.ad--sticky {
	position: sticky;
	top: 90px;
}

.ad--sidebar .ad__slot,
.ad--sidebar_sticky .ad__slot {
	max-width: 300px;
	margin: 0 auto;
}

.ad--footer {
	max-width: 970px;
	margin: 0 auto;
	padding: 22px 16px;
}

/* Widgets ------------------------------------------------------------------ */
.widget {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 18px;
	background: var(--surface);
}

.widget + .widget {
	margin-top: 18px;
}

.widget__title {
	font-size: 16px;
	margin-bottom: 10px;
}

.widget__lede {
	font-size: 13px;
	color: var(--muted);
}

.widget__more {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
}

.widget ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.widget ul li a {
	color: var(--ink-2);
	font-size: 13.5px;
}

/* 19. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
	.nav__personalize {
		display: none;
	}

	.home-grid,
	.archive-grid,
	.article-grid {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 30px;
	}

	.hero-module {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 24px;
	}

	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wrap {
		padding-left: 18px;
		padding-right: 18px;
	}
}

@media (max-width: 1024px) {
	.topbar {
		display: none;
	}

	.auth__list {
		display: none;
	}

	.auth__aside {
		padding: 26px 28px;
	}

	.masthead__inner {
		gap: 16px;
	}

	.weather {
		display: none;
	}

	.home-grid,
	.archive-grid,
	.article-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rail {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.ad--sticky {
		position: static;
	}

	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-grid .rail,
	.archive-grid .rail {
		margin-top: 10px;
	}

	.account {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.account__side {
		position: static;
	}

	.account-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.account-nav__item--out {
		border-top: 0;
		margin-top: 0;
		padding-top: 10px;
	}

	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.auth {
		grid-template-columns: 1fr;
	}

	.auth__aside {
		padding: 30px 28px;
	}

	.auth__aside-note {
		margin-top: 10px;
	}

	.auth__card {
		padding: 30px 28px;
	}
}

@media (max-width: 860px) {
	.masthead__burger {
		display: inline-flex;
	}

	.masthead__inner {
		flex-wrap: wrap;
		row-gap: 12px;
		position: relative;
	}

	.brand__primary {
		font-size: 26px;
	}

	.brand__secondary {
		font-size: 17px;
	}

	form.search {
		order: 3;
		flex: 1 0 100%;
		max-width: none;
	}

	.masthead__tools .btn--ghost {
		display: none;
	}

	.hero-module {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-stack {
		border-top: 1px solid var(--line);
		padding-top: 14px;
	}

	.hero-stack .card:first-child {
		padding-top: 0;
	}

	.card--row {
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 16px;
	}

	.card--row .card__title {
		font-size: 17px;
	}

	.stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.topic-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.grid--2,
	.grid--3,
	.grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.rail {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__title {
		font-size: 26px;
	}

	.newsletter__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.newsletter__form {
		width: 100%;
	}

	.newsletter__form input {
		flex: 1 1 100%;
		min-width: 0;
	}

	.newsletter__form .btn {
		width: 100%;
	}

	.footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		padding-left: 16px;
		padding-right: 16px;
	}

	.video-strip {
		grid-auto-columns: 78%;
	}

	.auth__card,
	.auth__aside {
		padding: 24px 20px;
	}

	.account__head h1 {
		font-size: 24px;
	}

	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article__byline-actions {
		margin-left: 0;
		width: 100%;
	}

	.article__cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.card--compact {
		grid-template-columns: minmax(0, 1fr) 96px;
	}

	.card--compact .card__media img {
		border-radius: 8px;
	}

	.archive-head {
		align-items: flex-start;
	}

	.onboard__panel {
		padding: 24px 20px;
	}
}

@media (max-width: 480px) {
	.brand__secondary {
		display: none;
	}

	.card--row {
		grid-template-columns: minmax(0, 1fr);
	}

	.card--row .card__media {
		aspect-ratio: 16 / 9;
	}

	.account-nav__item span {
		font-size: 12.5px;
	}

	.home-tabs {
		gap: 18px;
	}
}

/* 20. Motion, print -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.ticker__track {
		animation: none;
	}
}

@media print {
	.topbar,
	.masthead,
	.nav,
	.ticker,
	.rail,
	.newsletter,
	.footer,
	.share,
	.ad,
	.onboard {
		display: none !important;
	}

	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------------
   Sentiment, context layer, paywall and plans
   --------------------------------------------------------------------------- */

.sentiment {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 7px 13px 7px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-soft);
	font-size: 12.5px;
	color: var(--ink-2);
}

.sentiment__icon {
	display: inline-flex;
	color: var(--muted);
}

.sentiment__label {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.sentiment__meter {
	position: relative;
	width: 64px;
	height: 6px;
	border-radius: 99px;
	background: var(--line);
	overflow: hidden;
}

.sentiment__fill {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: currentColor;
	opacity: 0.55;
}

.sentiment__score {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--muted);
}

.sentiment__summary {
	flex-basis: 100%;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.45;
	padding-left: 22px;
}

.sentiment--positive {
	border-color: #bfe6cd;
	background: #f1fbf5;
	color: #166534;
}

.sentiment--negative {
	border-color: #f3c9c9;
	background: #fdf3f3;
	color: #991b1b;
}

.sentiment--positive .sentiment__icon,
.sentiment--negative .sentiment__icon {
	color: currentColor;
}

[data-theme="dark"] .sentiment--positive {
	border-color: #1d5038;
	background: #0f2a1c;
	color: #7ee2b0;
}

[data-theme="dark"] .sentiment--negative {
	border-color: #5c2626;
	background: #2a1213;
	color: #ffa8a8;
}

.why {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--accent-soft);
}

[data-theme="dark"] .why {
	background: #10233a;
}

.why__label {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-dark);
}

[data-theme="dark"] .why__label {
	color: #9cc9ff;
}

.why__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-2);
}

.numbers {
	margin: 20px 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.numbers__label {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.numbers__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.numbers__item {
	min-width: 110px;
}

.numbers__value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.numbers__desc {
	display: block;
	font-size: 12px;
	color: var(--muted);
	text-transform: capitalize;
}

.cluster {
	margin: 26px 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.cluster__title {
	margin: 0;
	font-size: 17px;
}

.cluster__lede {
	margin: 4px 0 12px;
	font-size: 13px;
	color: var(--muted);
}

.cluster__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cluster__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
}

.cluster__source {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent);
}

.cluster__headline {
	color: var(--ink);
	font-weight: 600;
}

.cluster__time {
	font-size: 12px;
	color: var(--muted);
}

.paywall {
	margin: 22px 0;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-soft);
}

.paywall__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.paywall__head .icon {
	color: var(--accent);
}

.paywall__title {
	margin: 0;
	font-size: 19px;
}

.paywall__lede {
	margin: 8px 0 0;
	color: var(--ink-2);
	font-size: 14px;
}

.paywall__plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin: 16px 0 12px;
}

.paywall__plan {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.paywall__plan-name {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.paywall__plan-price {
	margin: 2px 0 10px;
	font-size: 19px;
	font-weight: 700;
}

.paywall__features {
	display: grid;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	color: var(--ink-2);
}

.paywall__features li::before {
	content: "✓";
	margin-right: 6px;
	color: var(--accent);
	font-weight: 700;
}

.paywall__foot {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.plan-badge {
	display: inline-block;
	padding: 3px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--ink-2);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.plan-badge--plus {
	border-color: transparent;
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.plan-badge--pro {
	border-color: transparent;
	background: var(--ink);
	color: var(--bg);
}

[data-theme="dark"] .plan-badge--plus {
	color: #9cc9ff;
}

.plan-current {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.plan-current__label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.plan-current__name {
	margin: 2px 0 0;
	font-size: 24px;
}

.plan-current__price {
	margin: 0;
	font-size: 15px;
	color: var(--ink-2);
}

.plan-current__meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.plan-card {
	display: flex;
	flex-direction: column;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.plan-card.is-current {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-soft);
}

.plan-card__name {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.plan-card__price {
	margin: 2px 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.plan-card__tagline {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--ink-2);
}

.plan-card__features {
	display: grid;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--ink-2);
}

.plan-card__features li::before {
	content: "✓";
	margin-right: 6px;
	color: var(--accent);
	font-weight: 700;
}

.plan-card__badge {
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
}

.plan-card .btn {
	margin-top: auto;
}

.plan-note {
	margin-top: 12px;
	font-size: 12.5px;
	color: var(--muted);
}

.billing-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.billing-list__item {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-size: 13.5px;
}

.billing-list__date {
	color: var(--muted);
}

.billing-list__event {
	color: var(--ink-2);
	text-transform: capitalize;
}

.notice {
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-soft);
	font-size: 14px;
}

.notice p {
	margin: 0;
}

.notice--ok {
	border-color: #bfe6cd;
	background: #f1fbf5;
	color: #166534;
}

.notice--warn {
	border-color: #f3d4a8;
	background: #fff8ec;
	color: #8a4b00;
}

[data-theme="dark"] .notice--ok {
	border-color: #1d5038;
	background: #0f2a1c;
	color: #7ee2b0;
}

[data-theme="dark"] .notice--warn {
	border-color: #5c431d;
	background: #2b1f0d;
	color: #ffcf87;
}

.meta .chip--sentiment {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--muted);
	border: 1px solid var(--line);
}

.meta .chip--positive {
	color: #166534;
	border-color: #bfe6cd;
	background: #f1fbf5;
}

.meta .chip--negative {
	color: #991b1b;
	border-color: #f3c9c9;
	background: #fdf3f3;
}

[data-theme="dark"] .meta .chip--positive {
	color: #7ee2b0;
	border-color: #1d5038;
	background: #0f2a1c;
}

[data-theme="dark"] .meta .chip--negative {
	color: #ffa8a8;
	border-color: #5c2626;
	background: #2a1213;
}

.account__plan {
	margin: 6px 0 0;
}

@media (max-width: 640px) {
	.sentiment {
		border-radius: var(--radius-sm);
	}
	.sentiment__summary {
		padding-left: 0;
	}
	.plan-current {
		padding: 16px;
	}
	.paywall {
		padding: 16px;
		border-radius: var(--radius);
	}
}
