/*
Theme Name: NewsThat.Rocks
Description: Mobile-first creator news theme.
Version: 1.0.0
Text Domain: ntr
*/

@font-face { font-family: "Bricolage"; src: url(assets/fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(assets/fonts/figtree-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
	--bg: #0b0b0f; --bg2: #17171f; --ink: #f5f5f7; --ink2: #a8a8b3; --line: #2a2a35; --card: #15151c;
	--pink: #ff2e88; --yellow: #ffd60a; --lime: #c6ff00; --cyan: #00d1f0; --violet: #8b5cf6; --blue: #3d6bff;
	--shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -14px rgba(0,0,0,.8);
	--hard: 4px 4px 0 var(--pink);
	--r: 18px;
	--display: "Bricolage", "Arial Black", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #fff8ec; --bg2: #ffffff; --ink: #0b0b0f; --ink2: #52525b; --line: #eadfce; --card: #ffffff;
	--shadow: 0 1px 0 rgba(20,17,26,.06), 0 8px 24px -12px rgba(20,17,26,.25); --hard: 4px 4px 0 var(--ink);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--yellow); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.wrap { padding: 0 16px; max-width: 1180px; margin: 0 auto; }
.wrap-n { padding: 0 18px; max-width: 720px; margin: 0 auto; }

.ntr-consent[hidden], .ntr-cookie-settings[hidden] { display:none!important; }
.ntr-consent { position:fixed; z-index:1100; left:50%; bottom:max(12px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:min(680px,calc(100% - 24px)); max-height:75dvh; overflow:auto; padding:18px; color:var(--ink); background:var(--bg2); border:2px solid var(--line); border-radius:var(--r); box-shadow:var(--hard); font:15px/1.5 var(--body); }
.ntr-consent h2 { margin:0 0 8px; font:800 20px/1.3 var(--display); }
.ntr-consent p { margin:8px 0; }
.ntr-consent-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.ntr-consent-actions .btn { padding:9px 13px; font-size:14px; }
.ntr-cookie-settings { position:fixed; z-index:1003; bottom:max(10px,env(safe-area-inset-bottom)); left:max(10px,env(safe-area-inset-left)); border:1px solid var(--line); border-radius:9px; background:var(--bg2); color:var(--ink); padding:6px 10px; font:600 12px/1.4 var(--body); }

.discovery-intro { padding-top:24px; padding-bottom:8px; }
.discovery-intro h1 { margin:0 0 8px; font:800 clamp(25px,5vw,38px)/1.15 var(--display); letter-spacing:-.03em; }
.discovery-intro p { margin:0; max-width:75ch; color:var(--ink2); font-size:16px; }
.story-share { margin:22px 0; padding:16px; border:1px solid var(--line); border-radius:var(--r); background:var(--bg2); }
.story-share p { margin:0 0 12px; font-weight:800; }
.story-share > div { display:flex; flex-wrap:wrap; gap:10px; }
.story-share .btn { padding:9px 13px; font-size:14px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px 0 16px; max-width: 1180px; margin: 0 auto; }
.logo { text-decoration: none; font: 800 23px/1 var(--display); letter-spacing: -.04em; display: inline-flex; align-items: center; }
.logo-a { color: var(--ink); }
.logo-b { background: var(--pink); color: #0b0b0f; padding: 3px 7px 5px; border-radius: 9px; margin-left: 2px; transform: rotate(-4deg); display: inline-block; box-shadow: 2px 2px 0 var(--ink); }
.top-act { display: flex; gap: 4px; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; }
.ico:hover { background: var(--line); }
.i-moon { display: none; }
:root[data-theme="light"] .i-moon { display: block; } :root[data-theme="light"] .i-sun { display: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; max-width: 1180px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--ink); flex: none; text-decoration: none; font: 700 14px/1 var(--body); padding: 9px 13px; border-radius: 999px; background: var(--bg2); border: 1.5px solid var(--line); white-space: nowrap; }
.chip.on, .chip:hover { background: var(--c); border-color: var(--c); color: #0b0b0f; }
.chip:first-child.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { display: flex; gap: 8px; padding: 0 16px 12px; max-width: 760px; margin: 0 auto; }
.search[hidden] { display: none; }
.search input { flex: 1; min-width: 0; font: 600 17px var(--body); padding: 12px 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--bg2); color: var(--ink); }
.search button, .btn { font: 800 16px/1 var(--body); padding: 13px 18px; border-radius: 14px; border: 2px solid var(--ink); background: var(--yellow); color: #14111a; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--hard); transition: transform .12s, box-shadow .12s; }
.btn:hover, .search button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-tip { background: var(--pink); color: #0b0b0f; }
.search-inline { padding: 0; margin: 18px 0; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan)); }

/* ---------- Bits ---------- */
.sticker { --c: var(--pink); display: inline-flex; align-items: center; gap: 5px; text-decoration: none; background: var(--c); color: #0b0b0f; font: 800 12.5px/1 var(--body); letter-spacing: .02em; text-transform: uppercase; padding: 6px 9px 6px 7px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 2px 2px 0 rgba(0,0,0,.85); }
.sticker.sm { font-size: 11px; padding: 5px 7px 5px 6px; box-shadow: 1.5px 1.5px 0 rgba(0,0,0,.85); }
.tea { font-size: 12px; letter-spacing: -2px; white-space: nowrap; }
.tea b { letter-spacing: 0; font: 800 12px var(--body); text-transform: uppercase; margin-left: 6px; color: var(--ink2); }
.status { font: 800 11.5px/1 var(--body); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-radius: 7px; border: 1.5px solid currentColor; }
.status-ok { color: var(--lime); } .status-dev { color: var(--cyan); } .status-warn { color: #ffb020; }
:root[data-theme="light"] .status-ok { color: #4d6600; } :root[data-theme="light"] .status-dev { color: #0e7490; } :root[data-theme="light"] .status-warn { color: #b45309; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-when { font: 600 13px var(--body); color: var(--ink2); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; color: #0b0b0f; background: var(--lime); padding: 6px 9px; border-radius: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #0b0b0f; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.nothumb { --c: var(--pink); display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); font-size: 44px; aspect-ratio: 16/9; }

/* ---------- Stories rail ---------- */
.rail { overflow: hidden; }
.rail-in { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; max-width: 1180px; margin: 0 auto; }
.rail-in::-webkit-scrollbar { display: none; }
.bubble { --c: var(--pink); flex: none; width: 74px; text-align: center; text-decoration: none; scroll-snap-align: start; }
.bubble-ring { display: block; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--yellow), var(--pink), var(--violet), var(--cyan), var(--yellow)); margin: 0 auto; }
.bubble-ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); object-fit: cover; }
.ini { --c: var(--pink); display: grid; place-items: center; background: var(--c); color: #0b0b0f; font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.bubble-name { display: block; font: 700 12px/1.2 var(--body); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble:hover .bubble-ring { animation: spin 1.2s linear infinite; }
@keyframes spin { to { filter: hue-rotate(360deg); } }

/* ---------- Lead ---------- */
.lead { margin-top: 10px; }
.lead-card { --c: var(--pink); border-radius: 24px; overflow: hidden; position: relative; background: var(--c); border: 2px solid var(--ink); box-shadow: var(--hard); }
.lead-link { display: block; text-decoration: none; color: #0b0b0f; position: relative; }
.lead-img { display: block; position: relative; aspect-ratio: 4/3; border-bottom: 2px solid #0b0b0f; overflow: hidden; }
.lead-img img, .lead-img .nothumb { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }

.lead-body { position: relative; padding: 16px 18px 20px; display: grid; gap: 10px; }
.lead .sticker { background: #0b0b0f; color: var(--c); box-shadow: none; }
.lead .live { background: #0b0b0f; color: var(--lime); }
.lead .live i { background: var(--lime); }
.lead-title { font: 800 clamp(30px, 8.6vw, 60px)/.98 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lead-deck { font: 600 16px/1.4 var(--body); color: #0b0b0f; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead .card-when { color: rgba(11,11,15,.75); }
.lead-link:hover .lead-title { text-decoration: underline; text-decoration-color: #0b0b0f; text-decoration-thickness: 4px; text-underline-offset: 4px; }

/* ---------- Blocks ---------- */
.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h2, .trend h2, .sources h2 { font: 800 25px/1.05 var(--display); letter-spacing: -.03em; margin: 0; }
.hint { font: 700 13px var(--body); color: var(--ink2); }

/* Swipe cards */
.swipe { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 16px; max-width: 1180px; margin: 0 auto; }
.swipe::-webkit-scrollbar { display: none; }
.card-swipe { flex: none; width: 76vw; max-width: 300px; scroll-snap-align: start; border-radius: 20px; overflow: hidden; position: relative; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.card-swipe .card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-swipe .card-img { display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 4px solid var(--c); }
.card-swipe .card-img img, .card-swipe .nothumb { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }

.card-swipe .card-body { padding: 12px 14px 14px; display: grid; gap: 8px; align-content: start; }
.card-swipe .card-title { font: 800 20px/1.08 var(--display); letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-swipe .card-deck { display: none; }
.card-swipe .card-when { font-size: 12px; }

/* Feed */
.feed { display: grid; gap: 4px; }
.card-big { margin: 14px 0 10px; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-big .card-link { display: block; text-decoration: none; }
.card-big .card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.card-big .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-big:hover .card-img img { transform: scale(1.04); }
.card-big .card-body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.card-big .card-title { font: 800 25px/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.card-big .card-deck { color: var(--ink2); font-size: 16px; line-height: 1.4; }
.card-row { border-bottom: 1px solid var(--line); }
.card-row .card-link, .card-mini .card-link { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: start; padding: 14px 0; text-decoration: none; }
.card-row .card-img { order: 2; border-radius: 14px; overflow: hidden; aspect-ratio: 1; position: relative; }
.card-row .card-img img, .card-row .nothumb { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; font-size: 30px; }
.card-row .card-body { display: grid; gap: 7px; align-content: start; }
.card-row .card-title { font: 750 18.5px/1.18 var(--display); letter-spacing: -.02em; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.rank { position: absolute; left: 6px; top: 4px; font: 800 34px/1 var(--display); color: #fff; -webkit-text-stroke: 1.5px #000; }

/* Trending */
.trend { background: var(--bg2); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard); border-radius: 22px; padding: 18px 18px 8px; margin: 16px 0; }
.trend h2 { color: var(--pink); margin-bottom: 6px; }
.trend ol { list-style: none; margin: 0; padding: 0; }
.trend li a { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.trend li:first-child a { border-top: 0; }
.trend .n { font: 800 40px/.9 var(--display); color: transparent; -webkit-text-stroke: 1.6px var(--pink); }
.trend .t { font: 700 17px/1.25 var(--display); letter-spacing: -.01em; }
.trend a:hover .t { color: var(--pink); }
.trend-side { display: none; }

.tipbox { background: var(--yellow); color: #14111a; border: 2px solid #14111a; border-radius: 22px; padding: 18px; box-shadow: 5px 5px 0 #14111a; margin: 20px 0; }
.tipbox-k { font: 800 30px/1 var(--display); letter-spacing: -.03em; margin: 0 0 6px; }
.tipbox p { margin: 0 0 14px; }
.more { text-align: center; margin: 22px 0 6px; }

/* ---------- Archive ---------- */
.arch { --c: var(--pink); display: flex; gap: 16px; align-items: center; padding-top: 22px; padding-bottom: 6px; }
.arch-av { width: 86px; height: 86px; flex: none; }
.arch-k { margin: 0 0 4px; font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.arch-t { font: 800 clamp(34px, 9vw, 62px)/1 var(--display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.arch-d { color: var(--ink2); margin-top: 8px; }
.arch-d p { margin: 0; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.pager .page-numbers { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 800; }
.pager .current { background: var(--ink); color: var(--bg); }
.empty { text-align: center; padding: 50px 0; }
.empty-e { font-size: 64px; margin: 0; }
.empty-404 { max-width: 640px; }

/* ---------- Story ---------- */
.story-head { padding-top: 22px; display: grid; gap: 14px; }
.story-title { font: 800 clamp(32px, 8.8vw, 58px)/1 var(--display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.story-deck { font: 500 19px/1.42 var(--body); color: var(--ink2); margin: 0; text-wrap: pretty; }
.byline { display: flex; gap: 10px; align-items: center; padding: 4px 0 2px; }
.byline-av { border-radius: 50%; width: 40px; height: 40px; }
.byline-n { font-weight: 800; text-decoration: none; display: block; }
.byline-d { font-size: 13px; color: var(--ink2); }
.story-hero { margin: 18px auto 0; max-width: 900px; }
.story-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story-hero figcaption { font-size: 12px; color: var(--ink2); padding: 6px 18px 0; }
.story-hero figcaption a { color: inherit; }
.tldr { margin: 22px 0 6px; background: var(--yellow); color: #14111a; border: 2px solid #14111a; border-radius: 20px; padding: 16px 18px 6px; box-shadow: 5px 5px 0 #14111a; }
.tldr-k { margin: 0 0 4px; font: 800 14px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.tldr ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.tldr li { counter-increment: t; position: relative; padding: 8px 0 10px 40px; font: 650 17px/1.38 var(--body); border-top: 1.5px dashed rgba(0,0,0,.25); }
.tldr li:first-child { border-top: 0; }
.tldr li::before { content: counter(t); position: absolute; left: 0; top: 7px; width: 28px; height: 28px; border-radius: 50%; background: #14111a; color: var(--yellow); display: grid; place-items: center; font: 800 15px/1 var(--display); }
.tldr a { color: inherit; }

.prose { font-size: 18.5px; line-height: 1.62; margin-top: 20px; }
.prose > * { margin: 0 0 1.05em; }
.prose h2 { font: 800 27px/1.1 var(--display); letter-spacing: -.03em; margin: 1.5em 0 .5em; }
.prose h2::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--c); margin-bottom: 12px; }
.prose h3 { font: 800 21px/1.2 var(--display); letter-spacing: -.02em; margin: 1.3em 0 .4em; }
.prose a { color: inherit; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 650; }
.prose strong { font-weight: 800; }
.prose mark { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--yellow) 85%, transparent) 55%); color: inherit; padding: 0 2px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 6px solid var(--c); font: 700 22px/1.3 var(--display); letter-spacing: -.015em; }
.prose blockquote cite { display: block; font: 600 14px var(--body); font-style: normal; color: var(--ink2); margin-top: 8px; letter-spacing: 0; }
.prose figure { margin: 1.4em -18px; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: 13px; color: var(--ink2); padding: 6px 18px 0; }
.prose .embed, .prose .wp-block-embed { margin: 1.4em 0; }
.prose iframe { width: 100%; border: 0; border-radius: 16px; }
.prose .embed iframe[src*="youtube"] { aspect-ratio: 16/9; height: auto; }

/* Story blocks authors can use in content */
.timeline { list-style: none; padding: 0 !important; margin: 1.4em 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--c), var(--violet)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 18px 34px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 4px solid var(--c); }
.timeline time, .timeline .when { display: block; font: 800 13px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.callout { border-radius: 18px; padding: 16px 18px; background: var(--bg2); border: 2px solid var(--ink); box-shadow: var(--hard); }
.callout > :last-child { margin-bottom: 0; }
.callout-k { display: block; font: 800 13px var(--body); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; color: var(--c); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 1.4em 0; }
.vs > div { background: var(--bg2); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 15.5px; line-height: 1.4; }
.vs > div b { display: block; font: 800 18px/1.1 var(--display); margin-bottom: 6px; }
.vs > span { align-self: center; font: 800 22px var(--display); color: var(--c); }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1.4em 0; }
.stat > div { background: #0b0b0f; color: #f5f5f7; border: 2px solid var(--ink); border-radius: 16px; padding: 14px; }
.stat b { display: block; font: 800 32px/1 var(--display); letter-spacing: -.03em; color: var(--yellow); }
.stat span { font-size: 14px; line-height: 1.3; display: block; margin-top: 6px; }

/* Poll + reactions */
.poll, .react { margin: 26px 0; border-radius: 22px; padding: 18px; background: var(--bg2); border: 2px solid var(--ink); box-shadow: var(--hard); }
.poll-k, .react-k { margin: 0 0 4px; font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.poll-q { font: 800 23px/1.12 var(--display); letter-spacing: -.025em; margin: 0 0 14px; }
.poll-opts { display: grid; gap: 10px; }
.poll-opts button { position: relative; overflow: hidden; text-align: left; border: 2px solid var(--ink); background: var(--bg); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; font: 750 17px/1.2 var(--body); min-height: 54px; align-items: center; }
.poll-bar { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: color-mix(in srgb, var(--c) 30%, transparent); transition: transform .6s cubic-bezier(.2,.9,.2,1); }
.poll-l, .poll-p { position: relative; }
.poll-p { font-family: var(--display); font-weight: 800; }
.poll.done button { cursor: default; }
.poll.done button.mine { border-color: var(--c); }
.poll-n { margin: 10px 0 0; font-size: 13px; color: var(--ink2); min-height: 1em; }
.react-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.react-row button { border: 2px solid var(--line); background: var(--bg); border-radius: 16px; padding: 10px 0 8px; display: grid; justify-items: center; gap: 2px; transition: transform .15s; min-height: 64px; }
.react-row button:hover { transform: translateY(-3px); border-color: var(--ink); }
.react-row button.mine { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--bg)); }
.react-e { font-size: 28px; line-height: 1; }
.react-n { font: 800 13px var(--body); color: var(--ink2); }
.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 40% { transform: scale(1.35) rotate(-8deg); } }

.sources { margin: 26px 0; }
.sources-d { font-size: 14px; color: var(--ink2); margin: 6px 0 10px; }
.sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sources a { display: block; text-decoration: none; padding: 11px 14px; border-radius: 14px; background: var(--bg2); border: 1.5px solid var(--line); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.sources a:hover { border-color: var(--c); }
.sources a span { color: var(--ink2); font-size: 13px; }
.tagged { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.tagged > span { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin-right: 4px; }
.tag-c { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 800; font-size: 14px; }
.tag-c:hover { border-color: var(--c); }
.tag-av, .tag-av > * { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; object-fit: cover; }
.fix { font-size: 14px; color: var(--ink2); margin: 22px 0 10px; }

.sharebar { position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; gap: 6px; padding: 6px; background: #050507; border: 1.5px solid #2a2a35; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.2,.9,.2,1); }
.sharebar.show { transform: translate(-50%, 0); }
.sh { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #23232d; color: #f5f5f7; display: grid; place-items: center; text-decoration: none; font: 800 19px/1 var(--body); }
.sh-main { width: auto; padding: 0 16px; border-radius: 999px; display: flex; gap: 8px; background: var(--pink); color: #0b0b0f; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--yellow); color: #14111a; font-weight: 800; padding: 10px 16px; border-radius: 12px; border: 2px solid #14111a; z-index: 60; }

.upnext { margin-bottom: 40px; }

/* Page / form */
.page .prose h2::before { display: none; }
.tipform { display: grid; gap: 14px; margin: 10px 0 20px; }
.tipform label { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
.tipform small { font-weight: 500; color: var(--ink2); }
.tipform input:not([type=radio]), .tipform textarea { font: 500 17px var(--body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ink); background: var(--bg2); color: var(--ink); width: 100%; }
.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.kinds label { display: block; }
.kinds input { position: absolute; opacity: 0; }
.kinds span { display: block; padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg2); font-weight: 700; font-size: 14px; cursor: pointer; }
.kinds input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kinds input:focus-visible + span { outline: 3px solid var(--cyan); }
.tipform .btn { justify-self: start; }
.tipform-msg { font-weight: 800; min-height: 1.2em; margin: 0; }
.tipform-fine { font-size: 13px; color: var(--ink2); margin: 0; }

/* Footer */
.foot { margin-top: 50px; padding: 34px 0 calc(90px + env(safe-area-inset-bottom)); background: #050507; color: #f5f5f7; border-top: 1px solid var(--line); }
.foot .logo-a { color: #f5f5f7; }
.foot .logo-b { box-shadow: 2px 2px 0 #f5f5f7; }
.foot-tag { font: 700 20px/1.25 var(--display); margin: 14px 0 16px; max-width: 26ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 18px; }
.foot-nav a { font-weight: 700; text-decoration: none; opacity: .85; padding: 4px 0; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; }
.foot-small { font-size: 13px; opacity: .65; max-width: 70ch; }
.foot .btn { box-shadow: 4px 4px 0 #f5f5f7; border-color: #f5f5f7; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
	.wrap { padding: 0 24px; }
	.chips, .rail-in, .swipe, .top-in { padding-left: 24px; padding-right: 24px; }
	.lead-link { display: grid; grid-template-columns: 1.3fr 1fr; }
	.lead-img { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 2px solid #0b0b0f; }
	.lead-img img { position: absolute; inset: 0; }
	.lead-body { padding: 28px 30px 30px; align-content: center; }
	.lead-title { font-size: 42px; }
	.card-swipe { width: 280px; }
	.feed { grid-template-columns: 1fr 1fr; column-gap: 22px; }
	.feed > .block-head, .feed > .card-big, .feed > .trend, .feed > .more, .feed > .pager, .feed > .empty { grid-column: 1 / -1; }
	.card-big .card-link { display: grid; grid-template-columns: 1.25fr 1fr; }
	.card-big .card-img { aspect-ratio: auto; height: 100%; min-height: 280px; }
	.card-big .card-body { align-content: center; padding: 24px; }
	.card-big .card-title { font-size: 30px; }
	.prose figure { margin: 1.6em 0; }
	.prose figure img { border-radius: 16px; }
	.story-hero img { border-radius: 22px; }
	.sharebar { left: auto; right: 24px; transform: translateY(140%); }
	.sharebar.show { transform: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1040px) {
	body { font-size: 17.5px; }
	.top-in { height: 64px; }
	.logo { font-size: 27px; }
	.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
	.side { position: sticky; top: 130px; }
	.trend-side { display: block; margin-top: 30px; }
	.feed > .trend { display: none; }
	.lead-title { font-size: 52px; }
	.lead-img { min-height: 460px; }
	.swipe { overflow: visible; flex-wrap: wrap; }
	.card-swipe { width: calc((100% - 36px) / 4); max-width: none; }
	.card-swipe:nth-child(n+5) { display: none; }
	.sharebar { right: auto; left: max(24px, calc(50% - 470px)); top: 50%; bottom: auto; flex-direction: column; transform: translate(-30px, -50%); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
	.sharebar.show { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
	.sh-main { width: 46px; padding: 0; font-size: 0; gap: 0; justify-content: center; }
	.foot { padding-bottom: 40px; }
}

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

/* Tap-to-load embeds */
.facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000 center/cover no-repeat; border: 0; padding: 0; margin: 1.4em 0; color: #fff; text-align: left; }
.facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); }
.facade-play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--pink); color: #0b0b0f; display: grid; place-items: center; box-shadow: 4px 4px 0 #000; transition: transform .15s; }
.facade:hover .facade-play { transform: translate(-50%, -50%) scale(1.08); }
.facade-t { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font: 700 15px/1.25 var(--body); }
.facade-t small { display: block; opacity: .8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.facade-x { aspect-ratio: auto; min-height: 0; padding: 16px 18px; background: var(--bg2); color: var(--ink); border: 2px solid var(--line); display: grid; gap: 6px; }
.facade-x::after { display: none; }
.facade-x .facade-t { position: static; }
.facade-x .q { font: 650 17px/1.4 var(--body); }
.meter { margin: 1.4em 0; }
.meter-k { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.meter-bar { display: flex; height: 44px; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); }
.meter-bar span { display: flex; align-items: center; padding: 0 12px; font: 800 15px var(--display); color: #0b0b0f; white-space: nowrap; overflow: hidden; }
.meter-bar span:first-child { background: var(--pink); }
.meter-bar span:last-child { background: var(--blue); color: #fff; justify-content: flex-end; }
.meter-note { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.arch-cr { font-size: 12px; color: var(--ink2); margin: 6px 0 0; }
.arch-cr a { color: inherit; }
.prose dl { margin: 1.2em 0; display: grid; gap: 10px; }
.prose dt { font: 800 21px/1.1 var(--display); letter-spacing: -.02em; color: var(--c); margin-top: 6px; }
.prose dd { margin: 0; padding: 0 0 12px; border-bottom: 1px dashed var(--line); }
.prose dd em { color: var(--ink2); display: block; margin-top: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prose th { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.prose td:first-child { font: 800 18px var(--display); color: var(--c); width: 2.2em; }
