/* The New Bit — single stylesheet for every page (home, listing, detail).
   Sections:
     1. Base, header, ticker and sub-nav (all pages)
     2. Home page
     3. Listing page
     4. Detail (article) page
     5. Footer (all pages)
     6. Typography system (all pages) — edit font sizes here
   ========================================================================== */

/* ==========================================================================
   1. BASE, HEADER, TICKER, SUB-NAV (all pages)
   ========================================================================== */
:root {
  --sec-gap: 64px;
  --red: #e50914;
  --black: #0d0d0d;
  --text: rgb(89, 89, 89);
  --heading: #000;
  --muted: rgb(89, 89, 89);
  --line: #e6e6e6;
  --bg: #ffffff;
  --chip: #f1f1f1;
}
body.dark {
  --text: #bdbdbd; --heading: #f2f2f2; --muted: #a0a0a0; --line: #2a2a2a; --bg: #121212; --chip: #222;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Inter", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: "Fraunces", "Newsreader", Georgia, serif; font-weight: 400; color: var(--heading); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1448px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--black); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 35px; }

/* Header */
.header, .header a, .header .icon-btn, .subnav a { color: #000; }
body.dark .header, body.dark .header a, body.dark .header .icon-btn, body.dark .subnav a { color: #f2f2f2; }
.header a.btn-news, body.dark .header a.btn-news, .header .badge { color: #fff; }
.header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: center; height: 60px; }
.logo img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 15px; font-weight: 500; border-radius: 6px; position: relative; }
.nav a:hover { color: var(--red); }
.nav a.active { background: var(--chip); }
.badge { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; }
.actions { display: flex; align-items: center; gap: 16px; }
.btn-news { background: var(--black); color: #fff; font-size: 12px; font-weight: 700; padding: 9px 18px; border-radius: 4px; }
body.dark .btn-news { background: var(--red); }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-toggle { display: none; }

/* Ticker */
.ticker { background: var(--black); color: #fff; display: flex; align-items: center; height: 36px; overflow: hidden; }
.ticker-label { background: var(--red); color: #fff; padding: 0 18px; height: 100%; display: flex; align-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.ticker-label svg { width: 18px; height: 18px; }
.ticker-track { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-move { flex-shrink: 0; display: flex; align-items: center; height: 100%; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { font-family: "Fraunces", "Newsreader", Georgia, serif; font-size: 14px; line-height: 1; font-weight: 400; color: #fff; padding: 0 28px; position: relative; display: inline-flex; align-items: center; gap: 12px; }
.ticker-move a:hover { color: #ffb3b6; }
.ticker-move a b { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.ticker-move a::after { content: ""; position: absolute; right: 0; top: 50%; height: 14px; margin-top: -7px; width: 1px; background: rgba(255,255,255,.25); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sub nav */
.subnav { border-bottom: 1px solid var(--line); }
.subnav { position: sticky; top: 61px; z-index: 49; background: #fff; transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.subnav.is-hidden { transform: translateY(-101%); }
.subnav.is-stuck { box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.subnav .container { display: flex; justify-content: center; align-items: center; height: 42px; }
.subnav ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.subnav li a { font-size: 13px; font-weight: 600; padding: 0 16px; border-left: 1px solid var(--line); display: block; white-space: nowrap; }
.subnav li:first-child a { border-left: 0; padding-left: 0; display: flex; gap: 8px; align-items: center; }
.subnav li a:hover { color: var(--red); }
.socials { display: flex; gap: 14px; font-size: 13px; font-weight: 700; justify-self: end; }
.socials a:hover { color: var(--red); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.search-btn { background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.search-btn svg { width: 16px; height: 16px; }
.search-btn:hover { color: var(--red); }

/* Mobile menu (hamburger + slide-in drawer) — below 900px the sub-nav moves in here */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; flex-shrink: 0; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #000; border-radius: 2px; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.m-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: 90; }
.m-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 100; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.22,.8,.3,1), visibility .35s; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-shadow: -12px 0 40px rgba(0,0,0,.18); }
.m-head { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.m-logo img { height: 34px; width: auto; display: block; }
.m-close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #000; }
.m-close svg { width: 22px; height: 22px; }
.m-nav { padding: 6px 20px; flex: 1; }
.m-nav ul { list-style: none; }
.m-nav li { border-bottom: 1px solid var(--line); }
.m-nav a { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-family: var(--serif, "Fraunces", Georgia, serif); font-size: 20px; line-height: 1.2; color: #000; transition: color .2s, padding-left .25s; }
.m-nav a:hover, .m-nav a:focus-visible { color: var(--red); padding-left: 6px; }
.m-nav a .trend { display: none; }
.m-foot { padding: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.m-foot .m-date { font-size: 12px; color: #6b6b6b; }
.m-foot .socials a { color: #000; }
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .m-overlay { opacity: 1; visibility: visible; }
html.menu-open .m-menu { transform: none; visibility: visible; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .header .container { justify-content: space-between; }
  .subnav { display: none; }
}
@media (min-width: 1101px) { .m-menu, .m-overlay { display: none; } }

/* ==========================================================================
   2. HOME PAGE
   ========================================================================== */
/* Hero */
.hero { padding: 24px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1fr 610px 408px; gap: 0; align-items: start; }
.lead { padding-right: 30px; }
.hero-img { margin-right: 40px; display: block; }
.side-list { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; }
.cat, .side-list .c, .bottom-row .c { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--red); }
.cat::after, .side-list .c::after, .bottom-row .c::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cat { margin-bottom: 14px; }
.bottom-row .meta b { font-weight: 600; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.lead { align-self: center; }
.lead h1 { font-size: 40px; line-height: 1.2; font-weight: 400; margin-bottom: 18px; letter-spacing: -0.3px; }
.lead p { color: var(--muted); font-size: 14px; line-height: 24px; margin-bottom: 20px; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.hero-img img { width: 100%; height: 300px; object-fit: cover; display: block; }

.side-list article { flex: 1; display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-list article:first-child { align-items: flex-start; padding-top: 0; }
.side-list article:last-child { align-items: flex-end; padding-bottom: 0; border-bottom: 0; }
.side-list .txt { flex: 1; }
.side-list .c { margin-bottom: 6px; }
.side-list h3, .bottom-row h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list h3 { font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: 4px; }
.side-list img { width: 110px; height: 82px; object-fit: cover; flex-shrink: 0; }

.bottom-row { grid-column: 1 / 3; grid-row: 2; margin-right: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 20px; }
.bottom-row h3 { font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: 10px; }
.bottom-row .meta { justify-content: flex-start; gap: 8px; font-size: 12px; }
.bottom-row .meta .save { margin-left: auto; }
.trend { color: var(--muted); margin-right: 4px; }
.small-date { display: block; font-size: 12.5px; color: var(--muted); }
.card { position: relative; }
.stretched { color: inherit; padding-bottom: 2px; background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px; transition: background-size .5s ease, color .3s ease; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .stretched, .lead:hover h1 a { background-size: 100% 2px; }
.c, .cat { position: relative; z-index: 2; }
.hero-img { overflow: hidden; }
.hero-img img, .side-list img { transition: transform .4s, filter .3s; }
.hero-img:hover img, .side-list .card:hover img { transform: scale(1.04); filter: grayscale(1); }
.cards-4 .card:hover .thumb { filter: grayscale(1); }
.side-list .card { overflow: hidden; }

/* Category section */
.section { padding: 0 0 28px; }
.trends-gap { padding-bottom: 64px; }
.section-inner { border-top: 1px solid var(--line); padding-top: 10px; }
.section-head { display: flex; align-items: center; line-height: 28px; margin-bottom: 20px; margin-top: 10px; }
.section-head a { display: inline-flex; align-items: center; gap: 8px; }
.section-head a:hover { color: var(--red); }
.section-head svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.cards-4 .thumb { display: block; width: 100%; aspect-ratio: 6 / 3; object-position: top; object-fit: cover; margin-bottom: 10px; transition: transform .4s, filter .3s; }
.cards-4 .frame { overflow: hidden; margin-bottom: 10px; }
.cards-4 .frame .thumb { margin-bottom: 0; }
.cards-4 .card:hover .thumb { transform: scale(1.04); }
.cards-4 .c { display: inline-block; font-size: 12px; color: var(--heading); margin-bottom: 8px; }
.cards-4 h3 { font-size: 16px; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

/* Gaming section */
.section-top { display: flex; justify-content: space-between; align-items: center; }
.section-top .section-head { margin-bottom: 20px; }
.health-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.health-lead { position: relative; overflow: hidden; min-height: 340px; color: #fff; }
.health-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.health-lead:hover img { transform: scale(1.04); filter: grayscale(1); }
.health-lead::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 80%); pointer-events: none; }
.health-lead .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 2; pointer-events: none; }
.health-lead .cover { position: absolute; inset: 0; z-index: 3; }
.health-lead .stretched::after { display: none; }
.health-lead h3 { color: #fff; font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
.health-lead p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); margin-bottom: 16px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.byline b { font-weight: 600; }
.byline .rule { width: 28px; height: 1px; background: currentColor; opacity: .7; }
.byline .read { display: inline-flex; align-items: center; gap: 5px; }
.byline svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.health-list { display: grid; grid-template-columns: 1fr 1fr; }
.health-list .card { padding: 20px 24px; display: flex; flex-direction: column; }
.health-list .card:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
.health-list .card:nth-child(even) { padding-right: 0; }
.health-list .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.health-list h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.health-list p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.health-list .byline { margin-top: auto; color: var(--muted); }
@media (max-width: 1100px) { .health-grid { grid-template-columns: 1fr; gap: 24px; } .health-lead { min-height: 360px; } }
@media (max-width: 640px) {
  .health-lead h3 { font-size: 26px; }
  .health-list { grid-template-columns: 1fr; }
  .health-list .card, .health-list .card:nth-child(odd), .health-list .card:nth-child(even) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .health-list .card:last-child { border-bottom: 0; }
}

/* Markets ticker */
.markets { display: flex; align-items: stretch; height: 52px; margin-bottom: 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.markets-label { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 52px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 1; }
.markets-label svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 2.4; }
.markets-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.markets-move { display: flex; flex-shrink: 0; align-items: center; animation: markets 70s linear infinite; }
.markets-track:hover .markets-move { animation-play-state: paused; }
.mk { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--line); height: 24px; }
.mk b { font-weight: 700; color: var(--heading); letter-spacing: .3px; }
.mk .px { color: var(--text); font-variant-numeric: tabular-nums; }
.mk .chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.mk.up .chg { color: #0f9d58; }
.mk.down .chg { color: #d93025; }
@keyframes markets { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.section-flush .section-inner { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .markets { height: 46px; } .markets-label { width: 46px; } }

/* Technology section (dark) */
.tech { background: #0d0d0d; color: #fff; padding: var(--sec-gap) 0; }
.tech .section-head { margin-top: 0; }
.tech .section-head a:hover { color: var(--red); }
.tech h2, .tech h3 { color: #fff; }
.tech-grid { display: grid; grid-template-columns: 1fr 1.2fr .8fr; }
.tech-col { min-width: 0; }
.tech-left { padding-right: 32px; display: flex; flex-direction: column; justify-content: center; }
.tech-mid { padding: 0 32px; border-left: 1px solid #2c2c2c; border-right: 1px solid #2c2c2c; }
.tech-right { padding-left: 32px; }
.t-item { padding: 24px 0; border-bottom: 1px solid #2c2c2c; }
.t-item:first-child { padding-top: 0; }
.t-item:last-child { border-bottom: 0; padding-bottom: 0; }
.t-item h3 { font-size: 20px; line-height: 1.3; margin-bottom: 14px; }
.t-item p { font-size: 14px; line-height: 1.6; color: #9a9a9a; margin-bottom: 16px; }
.t-date { display: block; font-size: 12.5px; color: #8a8a8a; }
.read-time { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #8a8a8a; }
.tech-fig { margin-bottom: 0; }
.tech-fig .frame { overflow: hidden; }

.tech-fig img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s, filter .3s; }
.tech-fig figcaption { text-align: right; font-size: 12px; font-style: italic; color: #8a8a8a; padding: 10px 0 18px; }
.tech-feature:hover .tech-fig img { transform: scale(1.04); filter: grayscale(1); }
.tech-feature h3 { font-size: 26px; line-height: 1.3; margin-bottom: 14px; }
.tech-feature p { font-size: 14px; line-height: 1.6; color: #9a9a9a; margin-bottom: 16px; }
.tech-right .t-item { padding: 18px 0; }
.tech-right .t-item:first-child { padding-top: 0; }
.tech-right .t-item:last-child { padding-bottom: 0; }
.tech-right h3 { font-size: 16px; line-height: 1.35; margin-bottom: 10px; }
@media (max-width: 1100px) {
  .tech-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .tech-mid { order: 1; padding: 0; border: 0; }
  .tech-left { order: 2; padding: 32px 0 0; border-top: 1px solid #2c2c2c; }
  .tech-right { order: 3; padding: 32px 0 0; border-top: 1px solid #2c2c2c; }
}
@media (max-width: 640px) { .tech-feature h3 { font-size: 22px; } }

/* Gaming (text left, image right) & Trends (text) */
.gaming-flip { grid-template-columns: 1fr 1.1fr; }
.gaming-flip .health-lead { order: -1; }
@media (max-width: 820px) { .gaming-flip { grid-template-columns: 1fr; } }
.trends-sec { padding: 24px 0 28px 0; }
.trends-sec .section-head { margin-top: 0; }
/* Sports: horizontal picks carousel */
.pick-sec { overflow-x: clip; }
.pick-top { align-items: center; margin-bottom: 24px; }
.pick-top .section-head { margin-bottom: 0; }
.pick-actions { display: flex; align-items: center; gap: 10px; }
.pick-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d9d9d9; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.pick-arrow svg { width: 16px; height: 16px; }
.pick-arrow:hover { background: #000; color: #fff; border-color: #000; }
.pick-arrow:disabled { opacity: .35; cursor: default; background: #fff; color: #000; border-color: #d9d9d9; }
.pick-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-left: calc(var(--gutter, 24px) * -1); margin-right: calc(var(--gutter, 24px) * -1); padding-left: var(--gutter, 24px); padding-right: var(--gutter, 24px); scroll-padding-left: var(--gutter, 24px); }
.pick-track::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 min(320px, 74vw); scroll-snap-align: start; display: flex; flex-direction: column; }
.pick-frame { overflow: hidden; margin-bottom: 14px; background: #eee; }
.pick-frame img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .45s, filter .3s; }
.pick:hover .pick-frame img { transform: scale(1.05); filter: grayscale(1); }
.pick-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; position: relative; z-index: 2; }
.pick-tag::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pick h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick time { font-size: 12.5px; color: var(--muted); margin-top: auto; }
@media (max-width: 700px) { .pick-track { gap: 14px; } }

/* Trends: 3 text columns + 1 feature (image) column */
.trend-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 0; }
.trend-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; align-content: start; padding-right: 32px; }
.trend-3 .card { padding: 28px 24px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trend-3 .card:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.trend-3 .card:nth-child(3n) { padding-right: 0; }
.trend-3 .card:nth-child(-n+3) { padding-top: 0; }
.trend-3 .card:nth-child(n+4) { padding-bottom: 0; border-bottom: 0; }
.trend-3 h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.trend-3 p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-feature { border-left: 1px solid var(--line); padding-left: 32px; }
.trend-feature .frame { overflow: hidden; margin-bottom: 16px; }
.trend-feature img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; transition: transform .4s, filter .3s; }
.trend-feature:hover img { transform: scale(1.04); filter: grayscale(1); }
.trend-feature h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.trend-feature p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) {
  .trend-layout { grid-template-columns: 1fr; row-gap: 40px; }
  .trend-feature { order: -1; border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .trend-feature .frame { grid-row: 1 / span 3; margin-bottom: 0; }
  .trend-feature img { aspect-ratio: 4 / 3; }
  .trend-3 { padding-right: 0; grid-template-columns: 1fr 1fr; }
  .trend-3 .card, .trend-3 .card:nth-child(n+4) { padding: 20px 24px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trend-3 .card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trend-3 .card:nth-child(even) { padding-right: 0; }
  .trend-3 .card:nth-child(-n+2) { padding-top: 0; }
  .trend-3 .card:nth-child(n+5) { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 560px) {
  .trend-feature { display: block; }
  .trend-feature .frame { margin-bottom: 16px; }
  .trend-3 { grid-template-columns: 1fr; }
  .trend-3 .card, .trend-3 .card:nth-child(odd), .trend-3 .card:nth-child(even), .trend-3 .card:nth-child(n+4) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trend-3 .card:first-child { padding-top: 0; }
  .trend-3 .card:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 700px) { :root { --sec-gap: 40px; } }

/* Ad banner (above Trends) */
.ad-sec { padding: 64px 0 var(--sec-gap); }
.img-banner-sec { padding: 64px 0 var(--sec-gap); }
.img-banner { display: block; overflow: hidden; }
.img-banner img { display: block; width: 100%; height: auto; }
.ad-banner { position: relative; display: flex; align-items: center; min-height: 240px; overflow: hidden; color: #fff; background: #1b1209; }
.ad-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: transform .7s ease; }
.ad-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,8,3,.9) 0%, rgba(14,8,3,.7) 40%, rgba(14,8,3,.1) 100%); }
.ad-banner:hover img { transform: scale(1.04); }
.ad-body { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 48px; }
.ad-label { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 3px 8px; }
.ad-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: #f3d9b1; margin-bottom: 14px; }
.ad-banner h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; color: #fff; max-width: 620px; margin-bottom: 12px; }
.ad-banner p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 480px; }
.ad-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; font-size: 14px; font-weight: 600; padding: 14px 28px; transition: background .3s, color .3s, transform .3s; }
.ad-btn svg { width: 16px; height: 16px; transition: transform .3s; }
.ad-banner:hover .ad-btn { background: var(--red); color: #fff; }
.ad-banner:hover .ad-btn svg { transform: translateX(4px); }
@media (max-width: 800px) {
  .ad-banner { min-height: 0; }
  .ad-banner::before { background: linear-gradient(0deg, rgba(14,8,3,.92) 0%, rgba(14,8,3,.6) 60%, rgba(14,8,3,.25) 100%); }
  .ad-body { flex-direction: column; align-items: flex-start; padding: 56px 22px 28px; gap: 20px; }
}

/* Large desktop (Full HD and up) */
@media (min-width: 1600px) {
  .container { max-width: 1600px; }
  .hero-grid { grid-template-columns: 1fr 720px 440px; }
  .hero-img { margin-right: 40px; }
  .hero-img img { height: 390px; }
  .bottom-row { margin-right: 40px; gap: 36px; }
  .lead { padding-right: 40px; }
  .lead h1 { font-size: 46px; }
  .lead p { font-size: 15px; line-height: 26px; }
  .side-list img { width: 124px; height: 90px; }
  .side-list h3 { font-size: 16px; }
  .side-list .c, .small-date, .meta { font-size: 11px; }
  .bottom-row h3 { font-size: 16px; }
  .subnav li a { font-size: 14px; padding: 0 20px; }
  .cards-4 { gap: 48px; }
  .cards-4 .thumb { aspect-ratio: 6 / 3; object-fit: cover; object-position: top; }
  .cards-4 h3 { font-size: 17px; }
}

/* Tablet & mobile: image -> lead -> bottom stories -> side list */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .hero-img { order: 1; margin-right: 0; grid-column: 1; grid-row: auto; }
  .lead { order: 2; padding-right: 0; grid-column: 1; grid-row: auto; align-self: start; }
  .bottom-row { order: 3; grid-column: 1; grid-row: auto; margin: 0; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .side-list { order: 4; grid-column: 1; grid-row: auto; align-self: start; padding-top: 24px; border-top: 1px solid var(--line); }
  .side-list article, .side-list article:first-child, .side-list article:last-child { flex: none; align-items: center; padding: 16px 0; }
  .side-list article:first-child { padding-top: 0; }
  .side-list article:last-child { padding-bottom: 0; }
  .hero-img img { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .lead h1 { font-size: 30px; }
  .bottom-row { grid-template-columns: 1fr; }
  .side-list img { width: 110px; height: 82px; }
}

/* ==========================================================================
   3. LISTING PAGE
   ========================================================================== */
/* ===== Listing page ===== */
.stretched { color: inherit; }
.card { position: relative; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.list-tag-link, .l-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--red); margin-bottom: 8px; }
.l-tag::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* category hero: same split layout as the detail page */
.detail-hero.cat-hero { min-height: 460px; max-height: none; }
.cat-hero a.detail-media { display: block; }
.cat-hero .detail-media img { transition: transform .6s ease, filter .3s; }
.cat-hero a.detail-media:hover img { transform: scale(1.04); filter: grayscale(1); }
.cat-hero .detail-content h1 { display: flex; align-items: center; gap: .18em; }
.cat-hero .detail-content h1::after { content: ""; width: .2em; height: .2em; border-radius: 50%; background: var(--red); margin-top: .35em; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .4px; color: #a8a8a8; margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; font-weight: 500; }
.cat-hero .dek { margin-bottom: 26px; }
.cat-feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: baseline; }
.cat-feature-label { grid-row: 1 / span 2; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: var(--red); padding: 4px 8px; }
.cat-feature-title { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: #fff; background: linear-gradient(#fff, #fff) no-repeat 0 100% / 0 1px; transition: background-size .5s ease; padding-bottom: 2px; }
.cat-feature:hover .cat-feature-title { background-size: 100% 1px; }
.cat-feature .pub { margin-top: 2px; }

/* toolbar under the hero */
.list-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.list-count { font-size: 13px; color: #6b6b6b; white-space: nowrap; }
.list-count b { color: #000; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; color: #333; background: #fff; border: 1px solid #d9d9d9; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chip:hover { border-color: #000; transform: translateY(-2px); }
.chip.active { background: #000; color: #fff; border-color: #000; }

.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 40px 0 var(--sec-gap); align-items: start; }
.l-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.l-card { display: flex; flex-direction: column; animation: lfade .45s ease both; }
.l-card.hide { display: none; }
@keyframes lfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.l-frame { overflow: hidden; margin-bottom: 14px; background: #eee; }
.l-card .l-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s, filter .3s; }
.l-card:hover .l-frame img { transform: scale(1.05); filter: grayscale(1); }
.l-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.l-card h3 { color: #000; margin-bottom: 10px; }
.l-card h3 a { background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px; transition: background-size .5s ease; padding-bottom: 2px; }
.l-card:hover h3 a { background-size: 100% 2px; }
.l-card p { color: #595959; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-card time { margin-top: auto; color: #6b6b6b; }
.l-empty { display: none; padding: 48px 0; text-align: center; color: #6b6b6b; font-size: 16px; }
.l-empty.show { display: block; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pager a { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border: 1px solid #e1e1e1; border-radius: 4px; font-size: 14px; font-weight: 500; color: #333; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.pager a:hover { border-color: #000; transform: translateY(-2px); }
.pager a.current { background: #000; border-color: #000; color: #fff; }
.pager .gap { color: #8a8a8a; padding: 0 4px; }
.pager .nav { padding: 0 18px; gap: 8px; display: inline-flex; align-items: center; }

.side { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 40px; }
.side h4 { font-family: "Fraunces", "Newsreader", Georgia, serif; font-weight: 400; font-size: 22px; color: #000; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.side h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--red); }
.pop { list-style: none; counter-reset: p; }
.pop li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pop li:first-child { padding-top: 0; }
.pop li:last-child { border-bottom: 0; padding-bottom: 0; }
.pop-n { font-family: "Fraunces", "Newsreader", Georgia, serif; font-size: 34px; line-height: 1; color: #cfcfcf; min-width: 30px; transition: color .25s; }
.pop li:hover .pop-n { color: var(--red); }
.pop a { font-family: "Fraunces", "Newsreader", Georgia, serif; font-size: 16px; line-height: 1.35; color: #000; display: block; margin-bottom: 6px; }
.pop time { font-size: 12px; color: #6b6b6b; }
.box-news { background: #0d0d0d; color: #fff; padding: 28px 26px; }
.box-news h4 { color: #fff; border-bottom-color: #2c2c2c; }
.box-news p { font-size: 14px; line-height: 1.65; color: #b5b5b5; margin-bottom: 16px; }
.box-news .f-form { background: #141414; }
.box-news .f-msg { margin-top: 10px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics a { font-size: 13px; color: #333; border: 1px solid #e1e1e1; padding: 6px 12px; border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.topics a:hover { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 1100px) {
  .cat-hero .detail-content h1 { flex-wrap: wrap; }
  .list-layout { grid-template-columns: 1fr; gap: 48px; }
  .side { position: static; }
  .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .list-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 0; }
  .l-grid { grid-template-columns: 1fr; gap: 32px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .pager a:not(.current):not(.nav) { display: none; }
  .pager a.current { display: grid; }
}

/* the home-page underline effect is not used on the popular list */
.pop .stretched { padding-bottom: 0; background: none; }

/* ==========================================================================
   4. DETAIL (ARTICLE) PAGE
   ========================================================================== */
/* Detail hero */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: max(560px, calc(100vh - 176px)); max-height: 820px; background: #000; color: #fff; overflow: hidden; }
.detail-media { position: relative; overflow: hidden; background: #111; }
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.detail-panel { position: relative; display: flex; align-items: center; padding: 56px 8vw 56px 5.5vw; background: #000; overflow: hidden; }
.streak { position: absolute; top: -20%; bottom: -20%; left: 46%; width: 26%; transform: skewX(-12deg); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.14) 45%, rgba(255,255,255,0) 100%); filter: blur(18px); pointer-events: none; }
.detail-content { position: relative; width: 100%; max-width: 580px; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: #e8e8e8; margin-bottom: 28px; }
.kicker::before { content: ""; width: 48px; height: 1px; background: #bdbdbd; }
.detail-content h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -.5px; color: #fff; margin-bottom: 28px; }
.dek { font-size: 17px; line-height: 1.7; color: #d4d4d4; margin-bottom: 28px; }
.rule { height: 1px; background: rgba(255,255,255,.75); margin-bottom: 26px; transform-origin: left center; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }
.author { display: flex; align-items: center; gap: 14px; }
.avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.author-name { font-size: 14px; font-weight: 500; color: #fff; }
.author-role { font-size: 12px; color: #a8a8a8; margin-top: 2px; }
.author-meta { padding-right: 16px; border-right: 1px solid rgba(255,255,255,.35); }
.pub { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: #bdbdbd; }

/* Article body */
.article-body { background: #fff; padding: 56px 0 72px; }
.article-wrap { max-width: 880px; margin: 0 auto; }
.article-body p, .article-body li { font-size: 16px; line-height: 1.7; color: #595959; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-family: "Fraunces", "Newsreader", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.3; color: #000; margin: 32px 0 12px; }
.article-wrap:not(.nb-page-wrap) > p:first-of-type::first-letter { float: left; font-family: "Fraunces", "Newsreader", Georgia, serif; font-weight: 400; font-size: 7em; line-height: .8; color: #000; padding: 6px 14px 0 0; margin-top: 2px; }
.article-body ul { margin: 0 0 20px 0; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--red); }
.article-body blockquote { position: relative; margin: 28px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--red); }
.article-body blockquote p { font-family: "Fraunces", "Newsreader", Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.5; color: #000; margin-bottom: 10px; }
.article-body blockquote cite { display: block; font-family: "Inter", sans-serif; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #6b6b6b; }
.article-body blockquote cite::before { content: "— "; }
@media (max-width: 700px) {
  .article-body { padding: 36px 0 48px; }
  .article-body p, .article-body li { font-size: 15.5px; line-height: 1.7; }
  .article-wrap:not(.nb-page-wrap) > p:first-of-type::first-letter { font-size: 5.6em; padding-right: 10px; }
  .article-body h2 { font-size: 19px; margin-top: 28px; }
  .article-body blockquote { padding-left: 18px; margin: 24px 0; }
  .article-body blockquote p { font-size: 18px; }
}

/* Sticky share bar */
.article-layout { display: grid; grid-template-columns: 52px minmax(0, 880px); column-gap: 48px; justify-content: center; align-items: stretch; }
.article-wrap { margin: 0; }
.share-col { position: relative; }
.share { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.share-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8a; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.share-label::after { content: ""; width: 1px; height: 36px; background: #d6d6d6; }
.share-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #333; border: 1px solid #e1e1e1; cursor: pointer; padding: 0; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover, .share-btn:focus-visible { transform: translateY(-3px) scale(1.06); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.18); outline: none; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.x:hover { background: #000; border-color: #000; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.li:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.copy:hover, .share-btn.copy.done { background: var(--red); border-color: var(--red); color: #fff; }
.share-tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%); background: #000; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 6px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.share-btn.copy.done .share-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .share-col { position: static; }
  .share { position: fixed; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.95); border: 1px solid #e6e6e6; border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,.18); z-index: 50; }
  .share-label { display: none; }
  .share-btn { width: 40px; height: 40px; }
  .share-tip { left: 50%; top: auto; bottom: calc(100% + 10px); transform: translate(-50%, 6px); }
  .share-btn.copy.done .share-tip { transform: translate(-50%, 0); }
  .article-body { padding-bottom: 96px; }
}

@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; max-height: none; min-height: 0; }
  .detail-media { aspect-ratio: 16 / 11; }
  .detail-media img { position: static; }
  .detail-panel { padding: 40px 20px 48px; }
  .streak { display: none; }
  .kicker { margin-bottom: 20px; }
  .detail-content h1 { font-size: 32px; }
  .dek { font-size: 15px; }
}
@media (max-width: 480px) { .author { flex-wrap: wrap; row-gap: 10px; } .author-meta { border-right: 0; } }
/* article lists keep their bullets (the global reset removes them) */
.article-body ul { list-style: disc; }

/* ==========================================================================
   5. FOOTER (all pages)
   ========================================================================== */
/* Footer */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer { background: #0d0d0d; color: #a8a8a8; padding: var(--sec-gap) 0 0; font-family: "Inter", "Segoe UI", Arial, sans-serif; }
.footer a { color: inherit; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.9fr .7fr .8fr 1.3fr; gap: 48px; padding-bottom: 48px; }
.f-logo img { height: 38px; width: auto; display: block; margin-bottom: 20px; }
.f-brand p { font-size: 14px; line-height: 1.75; max-width: 460px; margin-bottom: 22px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2c2c2c; display: grid; place-items: center; color: #fff; transition: transform .25s, filter .25s, box-shadow .25s; }
.f-social a:nth-child(1) { background: #1877f2; border-color: #1877f2; }
.f-social a:nth-child(2) { background: #000; border-color: #4a4a4a; }
.f-social a:nth-child(3) { background: #0a66c2; border-color: #0a66c2; }
.f-social a:nth-child(4) { background: #ff0000; border-color: #ff0000; }
.f-social a:nth-child(5) { background: #f26522; border-color: #f26522; }
.f-social a:hover { transform: translateY(-3px); filter: brightness(1.15); box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.f-social svg { width: 16px; height: 16px; }
.footer h3 { font-family: "Fraunces", "Newsreader", Georgia, serif; font-weight: 400; font-size: 20px; color: #fff; margin: 0 0 20px; padding-bottom: 14px; position: relative; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--red, #e50914); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 11px; }
.f-cols-2 { columns: 2; column-gap: 24px; }
.f-cols-2 li { break-inside: avoid; }
.f-col li a { position: relative; font-size: 14px; display: inline-block; transition: color .25s, transform .25s; }
.f-col li a:hover { color: #fff; transform: translateX(4px); }
.f-news p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.f-form { display: flex; border: 1px solid #2c2c2c; border-radius: 4px; overflow: hidden; background: #141414; transition: border-color .25s; }
.f-form:focus-within { border-color: #6b6b6b; }
.f-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; padding: 13px 14px; }
.f-form input::placeholder { color: #6f6f6f; }
.f-form button { border: 0; background: var(--red, #e50914); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 0 18px; cursor: pointer; transition: background .25s; }
.f-form button:hover { background: #c40812; }
.f-news small { display: block; margin-top: 10px; font-size: 12px; color: #6f6f6f; }
.f-msg { min-height: 0; margin-top: 10px; font-size: 13px; }
.f-msg.ok { color: #4ade80; }
.f-msg.err { color: #ff6b6b; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid #242424; font-size: 13px; }
.f-bottom p { margin: 0; }
.f-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.f-bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (max-width: 600px) {
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   6. TYPOGRAPHY SYSTEM (all pages)
   ========================================================================== */
:root {
  /* Lead / big headline (hero title) */
  --fs-lead: 40px;  --lh-lead: 1.2;  --ls-lead: -0.3px;
  /* Card title (hero side + bottom stories) */
  --fs-title: 15px; --lh-title: 1.4;
  /* Paragraph / excerpt (hero description) */
  --fs-body: 14px;  --lh-body: 24px;
  /* Dates and meta lines */
  --fs-meta: 12px;
  /* Category tag */
  --fs-tag: 10px;   --ls-tag: .5px;
  /* Section heading (World, Gaming, Technology…) */
  --fs-sec: 24px;
  --serif: "Fraunces", "Newsreader", Georgia, serif;
}
@media (min-width: 1600px) {
  :root { --fs-lead: 46px; --fs-title: 16px; --fs-body: 15px; --lh-body: 26px; --fs-meta: 11px; --fs-tag: 11px; }
}
@media (max-width: 700px) {
  :root { --fs-lead: 30px; }
}

/* ---- Lead headlines ---- */
body .lead h1,
body .health-lead h3,
body .tech-feature h3,
body .ad-banner h2,
body .detail-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}

/* ---- Card titles ---- */
body .side-list h3,
body .bottom-row h3,
body .cards-4 h3,
body .health-list h3,
body .t-item h3,
body .tech-right h3,
body .pick h3,
body .trend-3 h3,
body .trend-feature h3,
body .l-card h3,
body .pop a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: 0;
}

/* ---- Paragraphs / excerpts ---- */
body .lead p,
body .health-lead p,
body .health-list p,
body .t-item p,
body .tech-feature p,
body .pick p,
body .trend-3 p,
body .trend-feature p,
body .l-card p,
body .ad-banner p,
body .detail-content .dek,
body .box-news p,
body .f-brand p,
body .f-news p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ---- Dates / meta ---- */
body .meta,
body .bottom-row .meta,
body .small-date,
body .pick time,
body .l-card time,
body .t-date,
body .pop time,
body .detail-content .pub,
body .byline {
  font-size: var(--fs-meta);
}

/* ---- Category tags ---- */
body .cat,
body .side-list .c,
body .bottom-row .c,
body .cards-4 .c,
body .pick-tag,
body .l-tag {
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
}

/* ---- Section headings ---- */
body .section-head,
body .side h4,
body .footer h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-sec);
}

/* ---- Header + layout width (same on every page) ---- */
@media (min-width: 1600px) {
  body .container { max-width: 1600px; }
  body .subnav li a { font-size: 14px; padding: 0 20px; }
}
body .subnav .trend { color: #595959; margin-right: 4px; }
body .subnav ul, body .subnav li { list-style: none; }

/* ---- Exception: Technology feature headline ---- */
body .tech-feature h3 { font-size: 28px; }

/* ==========================================================================
   7. RESPONSIVE REFINEMENTS (tablet <=1100px, mobile <=700px, small <=480px)
   Comes last so it wins over the earlier rules.
   ========================================================================== */
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* ---- Tablet & mobile (<= 1100px) ---- */
@media (max-width: 1100px) {
  /* hero: keep the big image from getting huge on wide tablets */
  .hero-img img { max-height: 480px; }
  /* hero: the 4 stories under the lead get dividers */
  .bottom-row .card { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .bottom-row .card:nth-last-child(-n+2) { padding-bottom: 0; border-bottom: 0; }
  .side-list article:last-child { border-bottom: 0; }

  /* technology: image story on top, then 2 columns (not one very long column) */
  .tech-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 32px; }
  .tech-mid { grid-column: 1 / -1; order: 1; padding: 0; border: 0; }
  .tech-left { order: 2; padding: 0; border-top: 0; }
  .tech-right { order: 3; padding: 0 0 0 40px; border-top: 0; border-left: 1px solid #2c2c2c; }
  .tech-feature { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 32px; align-items: start; }
  .tech-feature .tech-fig { grid-row: 1 / span 3; }
  .tech-feature h3 { margin-top: 4px; }
}

/* ---- Tablet portrait & mobile (<= 700px) ---- */
@media (max-width: 700px) {
  /* top bar: keep it on one line (socials live in the menu) */
  .topbar .socials { display: none; }
  .topbar .container { height: 38px; }

  /* hero: one story per row with dividers */
  .bottom-row .card, .bottom-row .card:nth-last-child(-n+2) { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
  .bottom-row .card:last-child { padding-bottom: 0; border-bottom: 0; }
  .side-list article, .side-list article:first-child { padding: 18px 0; }
  .side-list article:first-child { padding-top: 0; }
  .side-list article:last-child { padding-bottom: 0; }

  /* world: stacked cards get dividers */
  .cards-4 { gap: 0; }
  .cards-4 .card { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .cards-4 .card:first-child { padding-top: 0; }
  .cards-4 .card:last-child { padding-bottom: 0; border-bottom: 0; }

  /* technology: single column */
  .tech-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .tech-left { padding-top: 28px; border-top: 1px solid #2c2c2c; }
  .tech-right { padding: 28px 0 0; border-left: 0; border-top: 1px solid #2c2c2c; }
  .tech-feature { display: block; }
  body .tech-feature h3 { font-size: 22px; }

  /* sports slider arrows stay, title row tighter */
  .pick-top { gap: 12px; }

  /* trends: tidy single column */
  .trend-layout { row-gap: 28px; }
  .trend-feature { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

  /* footer: stacked columns with dividers */
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 8px; }
  .footer-grid > * { padding: 28px 0; border-bottom: 1px solid #242424; min-width: 0; }
  .footer-grid > *:first-child { padding-top: 0; }
  .footer-grid > *:last-child { border-bottom: 0; }
  .f-form { flex-wrap: nowrap; }
  .f-bottom { gap: 12px; }
}

/* ---- Footer tablet (2 columns) ---- */
@media (min-width: 701px) and (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > * { min-width: 0; }
}

/* ---- Small phones (<= 480px) ---- */
@media (max-width: 480px) {
  .section-head { margin-top: 4px; }
  .pick { flex-basis: min(280px, 78vw); }
  .ad-body { padding: 52px 18px 24px; }
  .f-form input { padding: 12px; }
  .f-form button { padding: 0 14px; }
  .markets-label { width: 40px; }
  .mk { padding: 0 18px; }
}

/* ---- Small laptops (1101px - 1439px): fluid hero instead of fixed pixel columns ---- */
@media (min-width: 1101px) and (max-width: 1439px) {
  :root { --fs-lead: 32px; }
  .hero-grid { grid-template-columns: .88fr 1.5fr 1fr; }
  .lead { padding-right: 24px; }
  .hero-img, .bottom-row { margin-right: 32px; }
  .side-list img { width: 96px; height: 72px; }
}

/* dates never break across lines; label and date wrap as a pair instead */
time { white-space: nowrap; }
.bottom-row .meta { flex-wrap: wrap; row-gap: 2px; }

/* ==========================================================================
   8. MOBILE TYPE SCALE, LOGO & MENU (home, listing, article)
   ========================================================================== */
/* ---- Tablet (701px - 1100px): headings between desktop and mobile ---- */
@media (min-width: 701px) and (max-width: 1100px) {
  :root { --fs-lead: 34px; --lh-lead: 1.2; --ls-lead: -0.3px; --fs-sec: 22px; }
  body .tech-feature h3 { font-size: 24px; }
}

/* ---- Mobile (<= 700px): no heading bigger than 25px ---- */
@media (max-width: 700px) {
  :root { --fs-lead: 25px; --lh-lead: 1.25; --ls-lead: -0.2px; --fs-sec: 20px; --fs-title: 15px; --lh-title: 1.4; }
  body .tech-feature h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.1px; }
  body .health-list h3, body .t-item h3, body .pick h3, body .trend-3 h3, body .trend-feature h3 { font-size: 16px; line-height: 1.35; }
  .section-head { line-height: 1.3; }
  .lead h1 { margin-bottom: 14px; }
  .detail-content h1 { margin-bottom: 20px; }
  .cat-hero .detail-content h1::after { margin-top: .3em; }
  .cat-feature-title { font-size: 16px; }
  .article-body h2 { font-size: 18px; line-height: 1.35; }
  .article-body blockquote p { font-size: 17px; line-height: 1.5; }
  .side h4 { font-size: 20px; }
  .pop-n { font-size: 28px; }

  /* logo: 30px tall on every page */
  .logo img, .m-logo img { height: 30px; }
  .header .container { height: 56px; }
  .subnav { top: 57px; }

  /* hamburger drawer: smaller type */
  .m-head { height: 56px; padding: 0 8px 0 16px; }
  .m-close svg { width: 20px; height: 20px; }
  .m-nav { padding: 4px 16px; }
  .m-nav a { font-size: 16px; line-height: 1.3; letter-spacing: 0; padding: 13px 0; }
  .m-foot { padding: 16px; }
  .m-foot .m-date { font-size: 11px; }
  .m-foot .socials { font-size: 12px; gap: 12px; }
}

/* ---- Small phones (<= 380px) ---- */
@media (max-width: 380px) {
  :root { --fs-lead: 23px; }
  .container { padding: 0 14px; }
  .m-nav a { font-size: 15px; }
}

/* ==========================================================================
   9. SUB-NAV DROPDOWNS (all pages) — desktop hover/focus, accordion in the drawer
   ========================================================================== */
.subnav > .container > ul { overflow: visible; }
.subnav .has-dd { position: relative; }
.subnav .has-dd > a { display: inline-flex; align-items: center; gap: 6px; }
.dd-caret { width: 12px; height: 12px; flex-shrink: 0; transition: transform .25s ease; }
.subnav .has-dd:hover > a, .subnav .has-dd:focus-within > a { color: var(--red); }
.subnav .has-dd:hover .dd-caret, .subnav .has-dd:focus-within .dd-caret { transform: rotate(180deg); }

/* panel: the transparent top border bridges the gap so hover isn't lost */
.subnav .dd { position: absolute; top: 100%; left: 2px; z-index: 60; display: block; min-width: 210px; padding: 8px 0; border-top: 13px solid transparent; background: #fff padding-box; box-shadow: 0 14px 32px rgba(0,0,0,.13); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.subnav .dd::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.subnav .has-dd:hover .dd, .subnav .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.subnav .dd li a, .subnav .dd li:first-child a { display: block; border-left: 0; padding: 9px 20px; font-size: 13px; font-weight: 500; color: #000; white-space: nowrap; transition: color .2s, background .2s, padding-left .2s; }
.subnav .dd li a:hover, .subnav .dd li a:focus-visible { color: var(--red); background: #f6f6f6; padding-left: 24px; outline: none; }

/* drawer: the whole row is a button; the sub-list opens only after a tap */
.m-dd-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: var(--serif); font-size: 20px; line-height: 1.2; color: #000; transition: color .2s; }
.m-dd-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s ease; }
.m-dd-toggle:hover, .m-has-dd.open .m-dd-toggle { color: var(--red); }
.m-has-dd.open .m-dd-toggle svg { transform: rotate(180deg); }
.m-nav .m-dd { display: none; padding: 0 0 12px; }
.m-nav .m-has-dd.open .m-dd { display: block; animation: mddIn .25s ease both; }
@keyframes mddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.m-nav .m-dd li { border-bottom: 0; }
.m-nav .m-dd a { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 14px; padding: 9px 0 9px 14px; color: #595959; border-left: 2px solid var(--line); }
.m-nav .m-dd li:first-child a { font-weight: 600; color: #000; }
.m-nav .m-dd a:hover, .m-nav .m-dd a:focus-visible { color: var(--red); border-left-color: var(--red); }
@media (max-width: 700px) {
  .m-dd-toggle { font-size: 16px; line-height: 1.3; padding: 13px 0; }
  .m-nav .m-dd a { font-size: 13.5px; padding: 8px 0 8px 12px; }
}
@media (max-width: 380px) { .m-dd-toggle { font-size: 15px; } }

/* ==========================================================================
   10. SEARCH PAGE (search.html)
   ========================================================================== */
.sr-hero { position: relative; overflow: hidden; background: #0d0d0d; color: #fff; padding: 64px 0 56px; }
.sr-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 0%, rgba(229,9,20,.28) 0%, rgba(229,9,20,0) 60%), radial-gradient(50% 90% at 0% 100%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%); pointer-events: none; }
.sr-hero-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.sr-crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .4px; color: #a8a8a8; margin-bottom: 18px; }
.sr-crumbs a:hover { color: #fff; }
.sr-crumbs span:last-child { color: #fff; font-weight: 500; }
.sr-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -.5px; color: #fff; margin-bottom: 30px; }

.sr-form { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 8px; padding: 6px 6px 6px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.35); border: 2px solid transparent; transition: border-color .25s, box-shadow .25s; }
.sr-form:focus-within { border-color: var(--red); box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 5px rgba(229,9,20,.18); }
.sr-form-icon { display: grid; place-items: center; color: #8a8a8a; flex-shrink: 0; }
.sr-form-icon svg { width: 20px; height: 20px; }
.sr-form input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: #000; padding: 0 10px; }
.sr-form input::placeholder { color: #9a9a9a; }
.sr-form input::-webkit-search-cancel-button { display: none; }
.sr-clear { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f1f1; color: #333; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.sr-clear:hover { background: #000; color: #fff; }
.sr-clear svg { width: 14px; height: 14px; }
.sr-clear[hidden] { display: none; }
.sr-kbd { font: 600 12px/1 "Inter", sans-serif; color: #8a8a8a; border: 1px solid #ddd; border-bottom-width: 2px; border-radius: 4px; padding: 4px 7px; margin-right: 8px; }
.sr-form:focus-within .sr-kbd { display: none; }
.sr-submit { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: background .25s; }
.sr-submit:hover { background: #c40812; }
.sr-submit svg { width: 18px; height: 18px; display: none; }

.sr-trending { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.sr-trending-label { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #a8a8a8; margin-right: 4px; }
.sr-trending button { font: inherit; font-size: 13px; color: #e8e8e8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.sr-trending button:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* toolbar: category chips + sort */
.sr-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sr-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sr-filters::-webkit-scrollbar { display: none; }
.sr-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 500; color: #333; background: #fff; border: 1px solid #d9d9d9; border-radius: 999px; padding: 7px 8px 7px 15px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.sr-chip span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #f1f1f1; color: #6b6b6b; font-size: 11px; font-weight: 600; text-align: center; transition: background .25s, color .25s; }
.sr-chip:hover { border-color: #000; }
.sr-chip.active { background: #000; border-color: #000; color: #fff; }
.sr-chip.active span { background: var(--red); color: #fff; }
.sr-sort { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; color: #6b6b6b; }
.sr-sort select { font: inherit; font-size: 13px; font-weight: 600; color: #000; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; border: 1px solid #d9d9d9; border-radius: 4px; padding: 8px 32px 8px 12px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sr-sort select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* results */
.sr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 32px 0 var(--sec-gap); align-items: start; }
.sr-status { font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 400; color: #595959; margin-bottom: 8px; }
.sr-status b { color: #000; font-weight: 700; }
.sr-status q { color: #000; font-weight: 600; quotes: "\201C" "\201D"; }
.sr-status span { margin-left: 6px; font-size: 13px; color: #8a8a8a; }
.sr-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); animation: lfade .45s ease both; }
.sr-thumb { display: block; overflow: hidden; background: #eee; }
.sr-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s, filter .3s; }
.sr-item:hover .sr-thumb img { transform: scale(1.05); filter: grayscale(1); }
.sr-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: #6b6b6b; }
.sr-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.sr-cat::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #bdbdbd; }
.sr-item h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; color: #000; margin-bottom: 10px; }
.sr-item h3 a { background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px; transition: background-size .5s ease; padding-bottom: 2px; }
.sr-item:hover h3 a { background-size: 100% 2px; }
.sr-item p { font-size: 14px; line-height: 1.65; color: #595959; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item mark { background: rgba(229,9,20,.12); color: inherit; padding: 0 2px; border-radius: 2px; box-shadow: inset 0 -2px 0 rgba(229,9,20,.55); }
.sr-cat mark { background: none; box-shadow: none; padding: 0; color: inherit; }

.sr-more { display: block; margin: 36px auto 0; font: inherit; font-size: 14px; font-weight: 600; color: #000; background: #fff; border: 1px solid #000; border-radius: 4px; padding: 13px 28px; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.sr-more:hover { background: #000; color: #fff; transform: translateY(-2px); }
.sr-more[hidden], .sr-empty[hidden], .sr-side [hidden] { display: none; }

.sr-empty { text-align: center; padding: 64px 20px; border: 1px dashed #d9d9d9; border-radius: 8px; margin-top: 16px; }
.sr-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f6f6f6; color: var(--red); margin-bottom: 18px; }
.sr-empty-icon svg { width: 26px; height: 26px; }
.sr-empty h3 { font-family: var(--serif); font-size: 24px; color: #000; margin-bottom: 10px; }
.sr-empty p { max-width: 440px; margin: 0 auto 22px; font-size: 14px; line-height: 1.65; color: #595959; }
.sr-empty b { color: #000; }
.sr-reset { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #000; border: 0; border-radius: 4px; padding: 12px 24px; cursor: pointer; transition: background .25s; }
.sr-reset:hover { background: var(--red); }

.sr-recent li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: #333; text-align: left; cursor: pointer; transition: color .2s, padding-left .2s; }
.sr-recent li button svg { width: 15px; height: 15px; color: #a8a8a8; flex-shrink: 0; }
.sr-recent li button:hover { color: var(--red); padding-left: 4px; }
.sr-recent .sr-recent-clear button { border-bottom: 0; padding-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .4px; color: #8a8a8a; }

/* tablet */
@media (max-width: 1100px) {
  .sr-layout { grid-template-columns: 1fr; gap: 48px; }
  .sr-item { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
}
/* mobile */
@media (max-width: 700px) {
  .sr-hero { padding: 40px 0 36px; }
  .sr-hero h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.2px; margin-bottom: 20px; }
  .sr-crumbs { margin-bottom: 12px; }
  .sr-form { padding: 4px 4px 4px 14px; }
  .sr-form input { height: 46px; font-size: 16px; padding: 0 8px; }
  .sr-kbd { display: none; }
  .sr-submit { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .sr-submit span { display: none; }
  .sr-submit svg { display: block; }
  .sr-trending { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 18px -16px 0; padding: 0 16px; }
  .sr-trending::-webkit-scrollbar { display: none; }
  .sr-trending button { flex-shrink: 0; }
  .sr-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 0; }
  .sr-filters { margin: 0 -16px; padding: 0 16px; }
  .sr-sort { justify-content: space-between; }
  .sr-layout { padding-top: 22px; }
  .sr-item { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; align-items: start; padding: 18px 0; }
  .sr-thumb { order: 2; }
  .sr-thumb img { aspect-ratio: 1 / 1; }
  .sr-meta { margin-bottom: 6px; gap: 10px; }
  .sr-item h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
  .sr-item p { font-size: 13px; line-height: 1.55; }
  .sr-empty { padding: 44px 16px; }
  .sr-empty h3 { font-size: 20px; }
}
@media (max-width: 380px) {
  .sr-item { grid-template-columns: minmax(0, 1fr) 88px; }
  .sr-item p { display: none; }
}
.sr-clear:not([hidden]) ~ .sr-kbd { display: none; }

/* ==========================================================================
   11. ARTICLE SOURCE CREDIT (detail hero) — e.g. "Source  Reuters"
   ========================================================================== */
.author { flex-wrap: wrap; row-gap: 10px; }
/* label and name share one size and baseline: "Source — Reuters" */
.source { display: inline-flex; align-items: baseline; gap: 8px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); font-size: 12px; line-height: 1.2; letter-spacing: .2px; color: #bdbdbd; }
.source-label { color: #a8a8a8; }
.source-label::after { content: "\2014"; margin-left: 8px; color: #6b6b6b; }
.source-name { font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
.source svg { width: 11px; height: 11px; align-self: center; color: var(--red); transition: transform .25s ease; }
.source:hover .source-name, .source:focus-visible .source-name { text-decoration-color: var(--red); }
.source:hover svg, .source:focus-visible svg { transform: translate(2px, -2px); }
@media (max-width: 480px) { .source { padding-left: 0; border-left: 0; flex-basis: 100%; } }

/* Technology feature: space between photo and headline (no caption under the photo) */
.tech-fig { margin-bottom: 20px; }
@media (min-width: 701px) and (max-width: 1100px) { .tech-fig { margin-bottom: 0; } }
@media (max-width: 700px) { .tech-fig { margin-bottom: 16px; } }

/* Ad banner photo (boutique interior): keep the lamps and shelves in frame */
.ad-banner img { object-position: center 14%; }
@media (max-width: 800px) { .ad-banner img { object-position: center 30%; } }
