/* ==========================================================================
   Abhira Media — editorial polish (v4)
   Loads after style.css. Cleaner header, image-first cards, cinematic hero,
   generated cover art, and a much better reading experience for articles.
   ========================================================================== */

::selection { background: var(--accent); color: #fff; }

/* ---------- Generated cover art (posts without a featured image) ---------- */
.cover-art { display: block; width: 100%; height: 100%; }
.card__media--cover { position: relative; }
.card__media--cover .cover-art { aspect-ratio: 16 / 10; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media--cover .cover-art { transform: scale(1.05); }
.lead-story__media .cover-art, .mini-story__media .cover-art, .mega-post__img .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-story__media, .mega-post__img { position: relative; overflow: hidden; }
.lead-story:hover .lead-story__media .cover-art { transform: scale(1.03); }
.lead-story__media .cover-art { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cat-block__img { position: relative; display: block; overflow: hidden; }
.cat-block__img .cover-art { width: 100%; height: 100%; min-height: 64px; }
.footer-post__placeholder { display: block; position: relative; overflow: hidden; border-radius: 10px; flex: none; }
.footer-post__placeholder .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-thumb--cover { margin: 24px 0 34px; }
.entry-thumb--cover .cover-art { aspect-ratio: 21 / 9; height: auto; border-radius: 22px; box-shadow: var(--shadow); }

/* ---------- Header: cleaner, calmer ---------- */
.site-branding .site-description { display: none; }
.header-main { padding-block: 16px; }
.main-nav { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.primary-menu > li > a { font-weight: 600; font-size: .92rem; letter-spacing: .005em; }
.ticker { border-bottom: 0; background: color-mix(in srgb, var(--bg-soft) 80%, var(--bg)); }

/* Trending topics: one tidy scrolling row instead of wrapping chips */
.topics { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 18px 0 22px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.topics::-webkit-scrollbar { display: none; }
.topics > * { flex: none; }
.topics__label { font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }

/* ---------- Hero ---------- */
.home-eyebrow { margin-bottom: 16px; }
.mag-hero { gap: 20px; }
.hero-slider { min-height: 540px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.lead-story h1, .lead-story__title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.lead-story p { font-size: 17px; line-height: 1.55; color: #e5ebf5; }
.lead-story::after { background: linear-gradient(180deg, rgba(5, 8, 16, 0) 20%, rgba(5, 8, 16, .5) 55%, rgba(5, 8, 16, .93) 100%); }
.lead-story__overlay { padding: 40px; }
.hero-stack { gap: 16px; }
.mini-story { grid-template-columns: 150px 1fr; border-radius: 18px; }
.mini-story__media { min-height: 132px; }
.mini-story h2 { font-size: 16.5px; font-weight: 700; line-height: 1.28; margin: 8px 0 8px; }

/* ---------- Coverage tiles: always one tidy row ---------- */
.coverage { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.coverage__tile { border-top-width: 4px; border-radius: 16px; padding: 18px 20px 20px; position: relative; }
.coverage__tile strong { font-family: var(--font-head); font-size: 16px; }
.coverage__tile::after { content: "\2192"; position: absolute; right: 18px; top: 16px; color: var(--ink-soft); transition: transform .2s, color .2s; }
.coverage__tile:hover::after { transform: translateX(4px); color: var(--accent-ink); }

/* ---------- Trending strip ---------- */
.trending-strip { border-radius: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.trend-item__num { font-size: 26px; }

/* ---------- Cards: image-first, editorial kicker labels ---------- */
.latest-grid, .grid { gap: 24px; }
.card { border-radius: 18px; box-shadow: var(--shadow-sm); }
.card__body { padding: 16px 20px 20px; gap: 9px; }
.card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.27; letter-spacing: -.025em; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card__excerpt { -webkit-line-clamp: 2; line-clamp: 2; font-size: 14.5px; }
.card .meta { border-top: 1px solid var(--line); width: 100%; padding-top: 12px; margin-top: auto; }

/* Category label as a coloured kicker rather than a heavy pill (hero keeps its pill) */
.card .badge, .mini-story .badge, .cat-block .badge, .mega-post .badge { background: none !important; padding: 0; border-radius: 0; font-size: 11px; letter-spacing: .13em; color: color-mix(in srgb, var(--badge, var(--accent)) 78%, var(--ink)); }
.card .badge:hover, .mini-story .badge:hover { filter: none; text-decoration: underline; }

/* ---------- Sidebar ---------- */
.side-box { border-radius: 18px; }
.popular-list li { grid-template-columns: 34px 1fr; }
.popular-num { width: auto; height: auto; background: none; font-family: var(--font-head); font-size: 24px; font-weight: 900; letter-spacing: -.04em; color: color-mix(in srgb, var(--accent) 70%, var(--bg-soft)); justify-content: start; }
.popular-list li:first-child .popular-num { color: var(--accent); }

/* ---------- Article page: a proper reading experience ---------- */
.single .entry-title { font-weight: 800; font-size: clamp(2.05rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.single .entry-meta { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.entry-content { font-size: 1.125rem; line-height: 1.8; max-width: 760px; }
.entry-content > p:first-child { font-size: 1.22em; line-height: 1.6; color: var(--ink); font-weight: 450; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.035em; margin: 2.3em 0 .6em; scroll-margin-top: 90px; }
.entry-content h2::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: .55em; }
.entry-content h3 { font-size: 1.22rem; font-weight: 700; margin: 1.8em 0 .45em; letter-spacing: -.02em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.5em; }
.entry-content li { margin: .5em 0; padding-left: .2em; }
.entry-content li::marker { color: var(--accent); font-weight: 800; }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content a { text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* Tables: clean, rounded, zebra, scrolls on small screens */
.entry-content table { display: block; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; line-height: 1.55; margin: 1.8em 0; box-shadow: var(--shadow-sm); }
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: top; }
.entry-content th { background: var(--bg-soft); font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content td:first-child { font-weight: 650; }

/* ---------- Footer: brighter recent-posts art ---------- */
.footer-post { align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.hero-slider { min-height: 460px; }
	.lead-story__overlay { padding: 28px; }
}
@media (max-width: 720px) {
	.hero-slider { min-height: 420px; border-radius: 18px; }
	.lead-story__overlay { padding: 22px 20px 54px; }
	.lead-story p { display: none; }
	.mini-story { grid-template-columns: 112px 1fr; }
	.coverage { grid-template-columns: 1fr 1fr; gap: 12px; }
	.entry-content { font-size: 1.06rem; }
	.entry-thumb--cover .cover-art { aspect-ratio: 16 / 9; border-radius: 16px; }
}
@media (max-width: 440px) {
	.coverage { grid-template-columns: 1fr; }
}

/* ---------- Video editorial note + article link ---------- */
.video-showcase__take { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--bg-soft); }
.video-showcase__take[hidden], .video-showcase__take-text[hidden], .video-showcase__article[hidden] { display: none; }
.video-showcase__take-label { margin: 0 0 6px; font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.video-showcase__take-text { margin: 0 0 12px; color: var(--ink); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.video-showcase__article { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; color: var(--ink); text-decoration: none; font-size: 14px; }
.video-showcase__article span { color: var(--accent-ink); font-weight: 700; }
.video-showcase__article strong { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.shorts-viewer__article { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.shorts-viewer__article[hidden] { display: none; }

/* ---------- Watch experience: tools, chapters, up-next, video page ---------- */
.video-showcase__screen { position: relative; }
.video-showcase__upnext { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 18px 20px; background: linear-gradient(0deg, rgba(5, 8, 16, .94), rgba(5, 8, 16, .7)); color: #fff; }
.video-showcase__upnext[hidden] { display: none; }
.video-showcase__upnext p { margin: 0; font-size: 15px; }
.video-showcase__upnext-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fca5a5; margin-right: 6px; }
.video-showcase__upnext button { font: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; cursor: pointer; }
.video-showcase__upnext-play { background: var(--accent) !important; border-color: var(--accent) !important; }

.video-showcase__tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.video-showcase__tools label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.video-showcase__tools select { font: inherit; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.video-showcase__permalink, .video-showcase__copylink { font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.video-showcase__resume { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.video-showcase__resume[hidden], .video-showcase__chapters[hidden] { display: none; }
.video-showcase__resume button { font: inherit; font-weight: 700; color: var(--accent-ink); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0 0 0 6px; }

.video-showcase__chapters { margin-top: 16px; }
.video-showcase__chapters-label { margin: 0 0 8px; font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.video-showcase__chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.video-showcase__chapters button { width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-soft); border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.video-showcase__chapters button:hover { background: color-mix(in srgb, var(--accent) 12%, var(--bg-soft)); }
.video-showcase__chapters button.is-current { background: color-mix(in srgb, var(--accent) 16%, var(--bg-soft)); box-shadow: inset 3px 0 0 var(--accent); font-weight: 650; }
.video-showcase__chapter-time { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent-ink); }

.video-page-main { padding-top: 22px; padding-bottom: 50px; }
.video-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); }
.video-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.video-breadcrumb a:hover { color: var(--accent-ink); }
.video-page-main h1.video-showcase__current-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; }
.video-related { margin-top: 48px; }

/* ---------- Watch hub, cards, subscribe nudge, install button ---------- */
.video-showcase__subscribe { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 18px 20px; background: linear-gradient(0deg, rgba(5, 8, 16, .94), rgba(5, 8, 16, .72)); color: #fff; }
.video-showcase__subscribe[hidden] { display: none; }
.video-showcase__subscribe p { margin: 0; font-size: 15px; }
.video-showcase__subscribe-btn { font-weight: 700; font-size: 13px; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; }

.video-hub { padding-top: 26px; padding-bottom: 60px; }
.video-hub__head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.045em; margin: 4px 0 8px; }
.video-hub__lead { color: var(--ink-soft); max-width: 60ch; margin: 0 0 20px; }
.video-hub__tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 26px; }
.video-hub__tools input[type="search"] { flex: 1 1 260px; max-width: 380px; font: inherit; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.video-hub__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.video-hub__chips button { font: inherit; font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.video-hub__chips button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.vrow { margin-bottom: 38px; }
.vrow[hidden], .vtopic[hidden], .vcard[hidden], .video-hub__empty[hidden] { display: none; }
.vrow__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 18px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.vcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #111827, #3b1d2a); box-shadow: var(--shadow-sm); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
.vcard__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.vcard__play::after { content: ""; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.vcard__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .3); }
.vcard__progress[hidden] { display: none; }
.vcard__progress span { display: block; height: 100%; background: var(--accent); }
.vcard__title { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.02em; }
.vcard__title a { color: var(--ink); text-decoration: none; }
.vcard__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.vcard__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__later { align-self: flex-start; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.video-hub__empty, .video-hub__more { color: var(--ink-soft); }
.video-hub__more a { color: var(--accent-ink); font-weight: 700; }

.pwa-install { position: fixed; left: 16px; bottom: 16px; z-index: 60; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); cursor: pointer; }
