/*
Theme Name: PWI Modern Tabloid
Theme URI: https://propertywealthinsider.co.uk/
Author: Digital Marketing Desk
Author URI: https://digitalmarketingdesk.co.uk/web-design/
Description: Bold, high-energy news theme for Property Wealth Insider — tabloid headlines, live ONS market panel, Landlord Alliance and Digital Marketing Desk promo units with UTM tracking.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: pwi
*/

:root {
	--navy: #0d1a2d;
	--navy-2: #14243d;
	--navy-3: #1d3150;
	--red: #e4151f;
	--red-dark: #b90f18;
	--yellow: #fcc419;
	--ink: #0f172a;
	--body: #1f2937;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f3f5f8;
	--card: #fff;
	--green: #16a34a;
	--pink: #fdecee;
	--display: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
	--cond: "Oswald", "Arial Narrow", sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r: 6px;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--body); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { flex: none; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--sans); padding: 12px 18px; border-radius: var(--r); border: 0; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffd43b; color: var(--ink); }
.btn--ghost { background: var(--navy-3); color: #fff; }
.btn--ghost:hover { background: #28416a; color: #fff; }
.btn--block { width: 100%; }

/* Masthead */
.masthead { background: var(--navy); color: #fff; }
.masthead__inner { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.logo { display: flex; flex-direction: column; font: 800 38px/0.9 var(--sans); letter-spacing: -0.035em; color: #fff; }
.logo:hover { color: #fff; }
.logo span { white-space: nowrap; }
.logo em { font-style: normal; color: var(--red); }
.masthead__tag { margin: 0; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.2); font: 600 12px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #cbd5e1; }
.search { position: relative; margin-left: auto; width: 340px; }
.search input { width: 100%; height: 44px; border-radius: var(--r); border: 0; padding: 0 44px 0 16px; font: 15px var(--sans); background: #fff; color: var(--ink); }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.search--big { width: 100%; max-width: 560px; margin: 0 0 24px; }
.search--big input { border: 1px solid var(--line); }
.icon-btn { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; place-items: center; cursor: pointer; }
.icon-btn .ic { width: 24px; height: 24px; }
.masthead__cta .short { display: none; }

/* Category nav */
.catnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar .catnav { top: 32px; }
.catnav__inner { display: flex; align-items: center; }
.catnav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__list a { display: flex; align-items: center; height: 50px; padding: 0 14px; font: 600 14px var(--sans); color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav__list a:hover, .catnav__list a[aria-current], .catnav__list .current-menu-item a { color: var(--red); border-bottom-color: var(--red); }
.catnav__home a { color: var(--red); padding-left: 0; }
.catnav__yt { display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.yt-dot { display: grid; place-items: center; width: 26px; height: 18px; background: #ff0000; color: #fff; border-radius: 4px; }
.yt-dot .ic { width: 12px; height: 12px; fill: #fff; stroke: none; }

/* Ticker */
.ticker { background: var(--navy-2); color: #fff; }
.ticker__inner { display: flex; align-items: center; height: 42px; overflow: hidden; }
.ticker__label { display: flex; align-items: center; gap: 6px; background: var(--red); height: 42px; padding: 0 16px 0 12px; margin-left: -20px; font: 600 15px var(--cond); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px; }
.ticker__label .ic { width: 16px; height: 16px; fill: #fff; stroke: none; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker__move { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker__track:hover .ticker__move, .ticker__track:focus-within .ticker__move { animation-play-state: paused; }
.ticker__move a { font: 500 14px var(--sans); padding: 0 22px; border-right: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.ticker__move a:hover { color: var(--yellow); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__move { animation: none; } }

/* Kicker + meta */
.kicker { display: inline-block; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 6px; }
a.kicker:hover { color: var(--red-dark); }
.meta { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.meta .dot { opacity: .6; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; font: 800 14px/0.95 var(--sans); letter-spacing: -0.02em; text-align: left; }
.ph b { color: var(--red); }
.ph { overflow: hidden; padding: 6px; }
.hero .ph span { display: none; }
.stack__img .ph, .row__img .ph { font-size: 11px; }

/* Top section */
.top { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) 300px; background: #fff; margin-top: 20px; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.hero { position: relative; min-height: 520px; color: #fff; display: flex; align-items: flex-end; background: var(--navy); }
.hero__img { position: absolute; inset: 0; }
.hero__img img, .hero__img .ph { width: 100%; height: 100%; object-fit: cover; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,28,.92) 0%, rgba(8,15,28,.72) 48%, rgba(8,15,28,.15) 100%), linear-gradient(0deg, rgba(8,15,28,.85) 0%, transparent 55%); }
.hero__body { position: relative; padding: 30px 30px 26px; max-width: 640px; }
.hero .kicker { background: var(--red); color: #fff; padding: 6px 8px; border-radius: 3px; }
.hero__title { font: 400 clamp(38px, 4.4vw, 62px)/1.08 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 10px 0 14px; }
.hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero__title mark, .article__title mark { background: var(--red); color: #fff; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__dek { font-size: 17px; line-height: 1.5; color: #e2e8f0; margin: 0 0 18px; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero .meta { color: #cbd5e1; font-size: 14px; }

.stack { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stack__item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex: 1; align-items: start; }
.stack__item:last-child { border-bottom: 0; }
.stack__img { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; }
.stack__img img, .stack__img .ph { width: 100%; height: 100%; object-fit: cover; }
.stack__title { font: 700 18px/1.2 var(--sans); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }

/* Market panel */
.market { background: var(--navy); color: #fff; padding: 18px 18px 20px; display: flex; flex-direction: column; }
.market__title { display: flex; align-items: baseline; justify-content: space-between; font: 700 22px var(--cond); text-transform: uppercase; margin: 0 0 6px; padding-left: 12px; border-left: 5px solid var(--red); line-height: 1; }
.market__title small { font: 600 12px var(--sans); text-transform: none; color: #94a3b8; }
.market__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l l" "v s" "c s"; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.market__label { grid-area: l; font-size: 13px; color: #cbd5e1; }
.market__val { grid-area: v; font: 700 24px/1.1 var(--sans); letter-spacing: -0.02em; }
.market__row .chg { grid-area: c; }
.market__row .spark { grid-area: s; align-self: center; }
.market__src { font-size: 11.5px; color: #94a3b8; margin: 12px 0; line-height: 1.45; }
.market__src a { text-decoration: underline; }
.market .btn { margin-top: auto; }
.chg { font: 700 13px var(--sans); }
.chg.up { color: #22c55e; }
.chg.down { color: #f87171; }
.chg.flat { color: #94a3b8; }
.spark.up { color: #22c55e; }
.spark.down { color: #f87171; }
.market--compact { border-radius: var(--r); }
.market--compact .market__val { font-size: 20px; }

/* Landlord Alliance wide banner */
.tla-banner { margin: 20px 0; }
.tla-banner__link { display: flex; align-items: center; gap: 24px; padding: 18px 24px; border-radius: var(--r); color: #fff; background: radial-gradient(120% 180% at 100% 0%, #25406a 0%, var(--navy-2) 45%, var(--navy) 100%); border: 1px solid #22385a; }
.tla-banner__link:hover { color: #fff; }
.tla-banner__link:hover .btn { background: #ffd43b; }
.tla-brand { display: flex; align-items: center; gap: 14px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.18); }
.tla-brand strong { display: block; font: 700 24px/1.1 var(--sans); letter-spacing: -0.02em; }
.tla-brand small { display: block; font-size: 13px; color: var(--yellow); margin-top: 3px; }
.tla-logo { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--yellow); color: var(--yellow); border-radius: 12px; flex: none; }
.tla-logo .ic { width: 30px; height: 30px; }
.tla-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; flex: 1; min-width: 0; }
.tla-brand { flex: none; }
.tla-feats span { white-space: nowrap; display: flex; align-items: center; gap: 8px; font: 500 13px/1.25 var(--sans); color: #e2e8f0; }
.tla-feats .ic { width: 24px; height: 24px; color: #fff; }

/* Section headings */
.sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec > span { font: 700 22px/1 var(--cond); text-transform: uppercase; color: var(--ink); padding-left: 14px; position: relative; }
.sec > span::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 5px; background: var(--red); transform: skewX(-14deg); }
.sec a { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--sans); color: var(--ink); }
.sec a .ic { width: 14px; height: 14px; }

/* Three columns */
.cols { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 0; background: #fff; border-radius: var(--r); padding: 22px 0; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.col { padding: 0 22px; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.row { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.row__img img, .row__img .ph { width: 100%; height: 100%; object-fit: cover; }
.row .kicker { margin-bottom: 3px; }
.row__title { font: 700 15.5px/1.25 var(--sans); color: var(--ink); margin: 0 0 4px; }
.row__dek { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.4; }
.row--guide { grid-template-columns: 124px 1fr; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font: 600 15px/1.3 var(--sans); color: var(--ink); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(r); font: 400 30px/1 var(--display); color: var(--red); }
.ranked--sm li { font-size: 14px; grid-template-columns: 30px 1fr; }
.ranked--sm li::before { font-size: 24px; }

/* Cards */
.more { margin: 26px 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.06); padding-bottom: 14px; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 12px; }
.card__img img, .card__img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__img img { transform: scale(1.03); }
.card > .kicker, .card__title, .card__dek, .card > .meta { margin-left: 14px; margin-right: 14px; }
.card__title { font: 700 17px/1.25 var(--sans); color: var(--ink); margin-top: 0; margin-bottom: 8px; }
.card__dek { font-size: 14px; color: var(--muted); margin-top: 0; margin-bottom: 10px; }
.card > .meta { margin-top: auto; }

/* YouTube + join */
.lower { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin: 26px 0 40px; align-items: stretch; }
.yt { background: var(--pink); border-radius: var(--r); padding: 20px; }
.yt__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.yt__item { display: flex; flex-direction: column; gap: 6px; }
.yt__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.yt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt__play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 24px; background: #ff0000; border-radius: 6px; display: grid; place-items: center; }
.yt__play .ic { width: 14px; height: 14px; fill: #fff; stroke: none; }
.yt__title { font: 600 14px/1.3 var(--sans); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yt__item:hover .yt__title { color: var(--red); }
.join { background: var(--pink); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--red); }
.join__icon .ic { width: 40px; height: 40px; color: var(--ink); stroke-width: 1.6; }
.join h2 { font: 800 26px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.join__eyebrow { display: block; font: 700 14px var(--cond); text-transform: uppercase; color: var(--red); letter-spacing: .03em; margin-bottom: 4px; }
.join p { margin: 0 0 6px; color: var(--body); }
.join .btn { margin-top: auto; }

/* Single article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin: 24px 0; align-items: start; }
.article { background: #fff; border-radius: var(--r); padding: 30px 40px 36px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.article--page { margin: 24px auto; max-width: 860px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--red); }
.article__title { font: 400 clamp(34px, 4.2vw, 54px)/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; letter-spacing: .005em; }
.article--page .article__title { text-transform: none; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.article__meta strong { color: var(--ink); }
.article__img { margin: 0 0 26px; }
.article__img img { width: 100%; border-radius: 4px; }
.article__img figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose { font-size: 18px; line-height: 1.7; color: #1e293b; max-width: 720px; }
.prose > * { margin-top: 0; margin-bottom: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; margin-top: 1.6em; margin-bottom: .5em; }
.prose h2 { font-size: 27px; font-weight: 800; }
.prose h3 { font-size: 22px; font-weight: 800; }
.prose > h3:first-child, .prose > h2:first-child { margin-top: 0; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose blockquote { border-left: 5px solid var(--red); margin-left: 0; padding: 4px 0 4px 20px; font-size: 21px; font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: 4px; }
.prose .wp-block-image { margin-left: 0; margin-right: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags a { font-size: 13px; background: var(--bg); padding: 5px 10px; border-radius: 20px; color: var(--muted); }

/* In-article promos */
.promo { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; border-radius: 8px; padding: 20px 22px; margin: 28px 0 !important; font-size: 15px; line-height: 1.5; }
.promo__icon { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; align-self: start; }
.promo__icon .ic { width: 30px; height: 30px; }
.promo__body strong { display: block; font: 800 20px/1.2 var(--sans); letter-spacing: -0.01em; margin-bottom: 4px; }
.promo__body p { margin: 0; }
.promo__eyebrow { display: block; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.promo .btn { grid-column: 2; justify-self: start; margin-top: 8px; text-decoration: none; font-weight: 700; }
.promo--tla { background: var(--navy); color: #e2e8f0; }
.promo--tla .promo__icon { border: 2px solid var(--yellow); color: var(--yellow); }
.promo--tla strong { color: #fff; }
.promo--tla .promo__eyebrow { color: var(--yellow); }
.prose .promo--tla .btn { color: var(--ink); }
.promo--dmd { background: #fff7ed; border: 2px dashed var(--red); color: var(--body); }
.promo--dmd .promo__icon { background: var(--red); color: #fff; }
.promo--dmd strong { color: var(--ink); }
.promo--dmd .promo__eyebrow { color: var(--red); }
.promo--dmd .free { background: var(--red); color: #fff; padding: 0 6px; border-radius: 3px; }
.prose .promo--dmd .btn { color: #fff; }

.btn--green { background: #0f9d58; color: #fff; }
.btn--green:hover { background: #0b7d46; color: #fff; }
.promo--sec { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--body); }
.promo--sec .promo__icon { background: #0f9d58; color: #fff; }
.promo--sec strong { color: var(--ink); }
.promo--sec .promo__eyebrow { color: #0b7d46; }
.prose .promo--sec .btn { color: #fff; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 70px; }
.admin-bar .sidebar { top: 102px; }
.side-tla { background: var(--navy-2); color: #e2e8f0; border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.side-tla strong { font: 700 20px var(--sans); color: #fff; }
.side-tla p { margin: 0 0 6px; font-size: 14px; }
.side-box { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.side-dmd { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; background: #fff7ed; border: 2px dashed var(--red); border-radius: var(--r); padding: 16px; color: var(--ink); font-size: 15px; }
.side-dmd .ic { width: 34px; height: 34px; color: var(--red); grid-row: span 2; }
.side-dmd b { color: var(--red); }
.side-dmd__cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--red); font-size: 14px; }
.side-dmd__cta .ic { width: 14px; height: 14px; }

/* Archive */
.arch-head { padding: 28px 0 18px; }
.arch-head h1 { font: 400 clamp(36px, 5vw, 56px)/1 var(--display); text-transform: uppercase; color: var(--ink); margin: 0; }
.arch-head__sub { color: var(--muted); max-width: 760px; font-size: 16px; }
.grid--arch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 44px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r); background: #fff; font-weight: 600; border: 1px solid var(--line); }
.pager .current { background: var(--red); color: #fff; border-color: var(--red); }
.empty { font-size: 18px; }

/* Market data page */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--navy); color: #fff; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi__label { font-size: 13px; color: #cbd5e1; }
.kpi__val { font: 700 30px/1.1 var(--sans); letter-spacing: -0.02em; }
.kpi .spark { margin-top: 8px; width: 100%; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.data caption { text-align: left; font-weight: 700; padding: 16px 18px 8px; color: var(--ink); }
.data th, .data td { padding: 11px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.data thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.data tbody th { font-weight: 600; color: var(--ink); }
.data .chg.up { color: var(--green); }
.data .chg.down { color: var(--red); }
.data .spark.up { color: var(--green); }
.data .spark.down { color: var(--red); }
.arch-head ~ .market__src, .wrap > .market__src { color: var(--muted); font-size: 13px; }

/* Footer */
.footer { background: var(--navy); color: #cbd5e1; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.logo--footer { font-size: 32px; margin-bottom: 12px; }
.footer__brand p { font-size: 14px; margin: 0 0 16px; max-width: 320px; }
.footer__h { font: 700 16px var(--cond); text-transform: uppercase; color: #fff; letter-spacing: .04em; margin: 0 0 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer__list li { margin-bottom: 7px; font-size: 14px; }
.footer__list a:hover { color: #fff; }
.footer__promo p { font-size: 14px; margin: 0 0 14px; }
.footer__promo strong { color: var(--yellow); }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); }
.footer__base-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; color: #94a3b8; }
.footer__base p { margin: 0; }
.credit a { font-weight: 700; color: #fff; white-space: nowrap; }
.credit a:hover { color: var(--yellow); }

/* Mobile tab bar */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
	.tla-feats span:nth-child(n+3) { display: none; }
}
@media (max-width: 1180px) {
	.top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.top .market { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px; }
	.top .market__title, .top .market__src { grid-column: 1 / -1; }
	.top .market .btn { grid-column: 1 / -1; justify-self: start; }
	.masthead__tag { display: none; }
	.tla-feats { display: none; }
	.tla-banner__link { justify-content: space-between; }
	.tla-brand { border-right: 0; }
}
@media (max-width: 980px) {
	.search { width: 260px; }
	.cols { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.cols .col:nth-child(2) { border-right: 0; }
	.cols .col:last-child { grid-column: 1 / -1; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lower { grid-template-columns: 1fr; }
	.article-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .catnav { top: 0; }
}
@media (max-width: 760px) {
	body { padding-bottom: 64px; }
	.wrap { padding: 0 14px; }
	.masthead__inner { gap: 10px; min-height: 64px; }
	.icon-btn { display: grid; }
	.logo { font-size: 24px; }
	.search { display: none; position: absolute; left: 0; right: 0; top: 64px; width: auto; padding: 10px 14px; background: var(--navy); z-index: 30; margin: 0; }
	.search.is-open { display: block; }
	.search button { right: 18px; top: 14px; }
	.masthead { position: relative; }
	.search-toggle { margin-left: auto; }
	.masthead__cta { padding: 10px 14px; }
	.masthead__cta .long { display: none; }
	.masthead__cta .short { display: inline; }
	.masthead__cta .ic { display: none; }
	.catnav { position: static; }
	.catnav__inner { display: block; }
	.catnav__yt { display: none; }
	.catnav__list { display: none; flex-direction: column; }
	.catnav.is-open .catnav__list { display: flex; }
	.catnav__list a { height: 46px; border-bottom: 1px solid var(--line); }
	.catnav__home { display: none; }
	.ticker__label { padding-right: 18px; font-size: 13px; margin-left: -14px; }
	.top { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; margin-left: -14px; margin-right: -14px; }
	.hero { min-height: 480px; }
	.hero__img::after { background: linear-gradient(0deg, rgba(8,15,28,.96) 0%, rgba(8,15,28,.8) 50%, rgba(8,15,28,.2) 100%); }
	.hero__body { padding: 20px 16px; }
	.hero__title { text-transform: none; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; font-size: 32px; line-height: 1.05; }
	.hero__dek { font-size: 15px; }
	.stack { border-right: 0; }
	.stack__item { grid-template-columns: 96px 1fr; padding: 12px 14px; }
	.stack__img { aspect-ratio: 4 / 3; }
	.stack__title { font-size: 16px; }
	.top .market { display: flex; margin: 14px; border-radius: var(--r); }
	.market__row { grid-template-columns: 1fr auto auto; grid-template-areas: "l v c" "l s s"; align-items: center; padding: 9px 0; }
	.market__row .spark { display: none; }
	.market__val { font-size: 17px; }
	.tla-banner__link { flex-wrap: wrap; padding: 16px; gap: 14px; }
	.tla-brand strong { font-size: 20px; }
	.tla-brand { flex: 1 1 100%; min-width: 0; }
	.tla-banner .btn { width: 100%; }
	.cols { grid-template-columns: 1fr; padding: 18px 0; }
	.col { border-right: 0; padding: 0 16px; }
	.cols .col:last-child { grid-column: auto; }
	.grid, .grid--arch { grid-template-columns: 1fr; gap: 12px; }
	.card { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; padding: 10px; }
	.card__img { grid-row: 1 / span 4; margin: 0; aspect-ratio: 4 / 3; border-radius: 4px; }
	.card > .kicker, .card__title, .card__dek, .card > .meta { margin-left: 0; margin-right: 0; }
	.card__title { font-size: 15.5px; margin-bottom: 4px; }
	.card__dek { display: none; }
	.yt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article { padding: 20px 16px 26px; margin: 0 -14px; border-radius: 0; }
	.article-layout { margin-top: 0; gap: 20px; }
	.article__title { text-transform: none; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; font-size: 30px; line-height: 1.1; }
	.prose { font-size: 17px; }
	.promo { grid-template-columns: 1fr; padding: 18px; }
	.promo__icon { grid-row: auto; width: 46px; height: 46px; }
	.promo .btn { grid-column: auto; width: 100%; white-space: normal; text-align: center; }
	.footer__grid { grid-template-columns: 1fr; gap: 26px; }
	.footer__base-inner { flex-direction: column; align-items: flex-start; }
	.kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
	.kpi__val { font-size: 22px; }
	.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
	.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11px var(--sans); color: var(--muted); }
	.tabbar a[aria-current] { color: var(--red); }
	.tabbar .ic { width: 22px; height: 22px; }
}

/* ---------- Article toolkit: calculators, key facts, checklists, charts ---------- */
.pwi-keyfacts { background: var(--navy); color: #e2e8f0; border-radius: 8px; padding: 20px 22px; font-size: 16px; }
.pwi-keyfacts h2, .pwi-keyfacts h3 { color: #fff; margin: 0 0 10px !important; font: 700 20px var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.pwi-keyfacts ul { margin: 0; padding-left: 1.1em; }
.pwi-keyfacts li { margin-bottom: 6px; }
.pwi-keyfacts strong { color: var(--yellow); }
.pwi-toc { background: var(--bg); border-left: 5px solid var(--red); border-radius: 4px; padding: 14px 18px; font-size: 15px; }
.pwi-toc strong { display: block; font: 700 14px var(--cond); text-transform: uppercase; margin-bottom: 6px; color: var(--ink); }
.pwi-toc ol { margin: 0; padding-left: 1.2em; }
.prose .pwi-toc a { font-weight: 500; text-decoration: none; color: var(--ink); }
.prose .pwi-toc a:hover { color: var(--red); }
.pwi-tool { border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; background: #fff; font-size: 15px; line-height: 1.45; }
.pwi-tool__head { background: var(--navy); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.pwi-tool__head span { background: var(--yellow); color: var(--ink); font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 3px; }
.prose .pwi-tool__head h3, .pwi-tool__head h3 { color: #fff; margin: 0 !important; font: 700 19px/1.2 var(--sans); }
.pwi-tool__body { padding: 18px; }
.pwi-tool__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pwi-tool label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; color: var(--ink); font-size: 14px; }
.pwi-tool label small { font-weight: 400; color: var(--muted); }
.pwi-tool input, .pwi-tool select { font: 500 16px var(--sans); padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.pwi-tool input:focus, .pwi-tool select:focus { outline: 2px solid var(--red); border-color: var(--red); }
.pwi-tool label.pwi-inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.pwi-tool label.pwi-inline input { width: auto; }
.pwi-tool__out { margin-top: 16px; background: var(--bg); border-radius: 8px; padding: 16px; }
.pwi-tool__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pwi-stat { background: #fff; border-radius: 6px; padding: 12px; border: 1px solid var(--line); }
.pwi-stat b { display: block; font: 800 24px/1.1 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.pwi-stat small { color: var(--muted); font-size: 12.5px; }
.pwi-stat.good b { color: var(--green); }
.pwi-stat.bad b { color: var(--red); }
.pwi-verdict { margin: 12px 0 0; font-weight: 600; color: var(--ink); }
.pwi-tool__note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.pwi-check { list-style: none; padding: 0 !important; }
.pwi-check li { position: relative; padding: 10px 12px 10px 44px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px !important; background: #fff; }
.pwi-check li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--red); border-radius: 4px; }
.pwi-chart { margin: 26px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.pwi-chart svg { width: 100%; height: auto; display: block; }
.pwi-chart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pwi-callout { border-left: 5px solid var(--yellow); background: #fffbeb; padding: 14px 18px; border-radius: 4px; font-size: 16px; }
.pwi-sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.pwi-sources a { font-weight: 500 !important; }
.pwi-table-wrap { overflow-x: auto; }
.prose .pwi-table-wrap table th { background: var(--navy); color: #fff; }

/* Keep wide content (tables, charts, tools) inside the column on mobile */
.article-layout > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.pwi-table-wrap table { display: table; }
.pwi-chart, .pwi-tool { max-width: 100%; }

@media (max-width: 760px) {
	.pwi-tool__grid, .pwi-tool__results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pwi-tool__body { padding: 14px; }
	.pwi-stat b { font-size: 20px; }
	.pwi-tool label { font-size: 13px; }
}
