/* Theme "editorial": bold black/white minimal grid with a hot-magenta
   accent, a big lowercase-free wordmark with a trailing period, plain
   uppercase text labels instead of colored pill chips, drop-cap article
   openings, and short accent-underline section headings. Sidebar "Trending"
   bars are sized from real view counts, not decorative numbers. Same
   class-name contract as the other themes (see
   functions/_themes/editorial.js) — only the header/hero/heading treatment
   and stylesheet differ from "briefing"/"gazette". */
:root {
  --ink: #111111; --muted: #6f6f6f; --line: #ececec; --paper: #ffffff;
  --accent: #ff2d78; --accent-ink: #ffffff; --sidebar-bg: #f7f7f7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Inter', -apple-system, sans-serif; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: var(--accent); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; }

/* ---- Utility bar + masthead + nav ---- */
.utility-bar { background: var(--ink); }
.utility-bar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 8px 24px; }
.utility-bar .social-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; font-weight: 700; }
.utility-bar .social-dot:hover { color: var(--accent); }

.masthead { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 28px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wordmark { font-weight: 900; font-size: 42px; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; }
.logo-img { height: 72px; width: auto; max-width: 420px; object-fit: contain; }
.masthead-ad { width: 320px; max-width: 100%; height: 78px; background: var(--sidebar-bg); border: 1px dashed #ccc; color: #aaa; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.masthead-tagline { width: 100%; text-align: center; color: var(--muted); font-size: 13.5px; font-style: italic; margin-top: -6px; }

.top-nav { border-bottom: 1px solid var(--ink); }
.top-nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 16px 16px; display: block; }
.nav-links a.active { background: var(--accent); color: #fff; }
.nav-links a:hover:not(.active) { color: var(--accent); }
.nav-search { color: var(--ink); font-size: 15px; padding: 0 24px; }
.nav-search:hover { color: var(--accent); }

.cat-label { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cat-label.on-image { color: #fff; }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 32px 24px 20px; max-width: 1180px; margin: 0 auto; align-items: start; }

.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { font-weight: 600; color: var(--ink); }
.breadcrumb .sep { margin: 0 6px; color: #bbb; }

/* ---- Section heading: bold caps + short accent underline ---- */
.section-heading { margin: 0 0 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-heading h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.section-heading .rule { display: block; width: 46px; height: 4px; background: var(--accent); margin-top: 8px; }
.section-heading .see-all { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.section-heading .see-all:hover { color: var(--accent); }
.heading-block { margin-bottom: 22px; }
section.cat-section { margin-bottom: 50px; }

/* ---- Hero: big overlay feature + 2 stacked feature cards ---- */
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 50px; }
.hero-feature { position: relative; display: block; overflow: hidden; min-height: 440px; }
.hero-feature .placeholder-img, .hero-feature > img { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-feature-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.86)); }
.hero-feature-copy h1 { color: #fff; font-size: 27px; line-height: 1.22; font-weight: 800; margin: 8px 0 8px; text-transform: uppercase; }
.hero-feature-copy .byline { color: #d8d8d8; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.hero-side { display: flex; flex-direction: column; gap: 20px; }
.side-item { position: relative; display: block; overflow: hidden; flex: 1; min-height: 200px; }
.side-item .placeholder-img, .side-item > img { width: 100%; height: 100%; position: absolute; inset: 0; }
.side-item-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.side-item-copy h3 { color: #fff; font-size: 16px; line-height: 1.28; font-weight: 800; margin: 6px 0 0; text-transform: uppercase; }

/* ---- Section layout: plain grid (image/placeholder, title below, byline, excerpt) ---- */
.plain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: block; }
.post-card .placeholder-img, .post-card img { width: 100%; height: 190px; margin-bottom: 14px; font-size: 10px; }
.post-card h3 { font-size: 17px; line-height: 1.3; margin: 8px 0 6px; font-weight: 800; text-transform: uppercase; }
.post-card:hover h3 { color: var(--accent); }
.post-card .byline { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.post-card p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* ---- Section layout: overlay trio (3 equal image-overlay cards) ---- */
.overlay-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.overlay-card { position: relative; overflow: hidden; height: 260px; display: block; }
.overlay-card .placeholder-img, .overlay-card img { width: 100%; height: 100%; }
.overlay-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 42px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.82)); text-align: center; }
.overlay-copy h3 { color: #fff; font-size: 16px; line-height: 1.3; margin: 6px 0 0; font-weight: 800; text-transform: uppercase; }

/* ---- Section layout: plain compact rows ---- */
.plain-rows { border-top: 1px solid var(--line); }
.plain-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plain-row .placeholder-img, .plain-row img { width: 100px; height: 74px; flex-shrink: 0; font-size: 8px; }
.plain-row h3 { font-size: 15.5px; line-height: 1.3; font-weight: 800; margin: 4px 0 0; text-transform: uppercase; }
.plain-row:hover h3 { color: var(--accent); }

/* ---- Section layout: split feature + numbered badge list ---- */
.split-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.split-feature { position: relative; display: block; overflow: hidden; min-height: 280px; }
.split-feature .placeholder-img, .split-feature > img { width: 100%; height: 100%; position: absolute; inset: 0; }
.split-feature-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.split-feature-copy h3 { color: #fff; font-size: 20px; line-height: 1.26; font-weight: 800; margin: 6px 0 0; text-transform: uppercase; }
.badge-list { list-style: none; margin: 0; padding: 0; }
.badge-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid-column; -webkit-column-break-inside: avoid; }
.badge-list li:last-child { border-bottom: none; }
.badge-num { flex-shrink: 0; width: 30px; height: 30px; background: var(--accent); color: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.badge-title { font-size: 14px; font-weight: 800; line-height: 1.3; text-transform: uppercase; margin-top: 4px; }
.badge-title:hover { color: var(--accent); }

.cta-banner { background: var(--ink); color: #fff; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 50px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: 21px; margin-bottom: 6px; text-transform: uppercase; }
.cta-banner p { margin: 0; font-size: 13.5px; color: #b7b7b7; }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form input { padding: 12px 14px; border: 1px solid #444; font-size: 14px; width: 230px; font-family: inherit; background: #1c1c1c; color: #fff; }
.cta-form button { padding: 12px 22px; border: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }

/* ---- Sidebar ---- */
.sidebar .widget { margin-bottom: 30px; }
.widget-heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.widget-heading h3 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.widget-heading .rule { display: block; width: 30px; height: 3px; background: var(--accent); }
.search-widget-form { display: flex; background: var(--sidebar-bg); }
.search-widget-form input { flex: 1; border: none; background: transparent; padding: 13px 14px; font-size: 13.5px; font-family: inherit; }
.search-widget-form button { border: none; background: var(--ink); color: #fff; width: 44px; cursor: pointer; }
.trend-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.trend-row:last-child { border-bottom: none; }
.trend-row .trend-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; display: block; }
.trend-row .trend-title:hover { color: var(--accent); }
.trend-bar-track { height: 5px; background: var(--line); }
.trend-bar-fill { height: 100%; background: var(--accent); }
.trend-views { font-size: 11px; color: var(--muted); margin-top: 5px; display: block; text-transform: uppercase; letter-spacing: .03em; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-outline { border: 1px solid var(--ink); color: var(--ink); padding: 6px 13px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tag-outline:hover { background: var(--ink); color: #fff; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.newsletter-widget input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 11px; background: var(--ink); color: #fff; border: none; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.social-widget-row { display: flex; gap: 10px; }
.social-widget-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.social-widget-row a:hover { background: var(--accent); }
.ad-pair { display: flex; gap: 10px; }
.ad-pair .ad-widget-sm { flex: 1; aspect-ratio: 1; border: 1px dashed #ccc; background: var(--sidebar-bg); color: #aaa; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }

.category-title { font-size: 32px; margin: 0 0 8px; font-weight: 900; text-transform: uppercase; }
.category-desc { font-size: 14.5px; color: var(--muted); font-style: italic; margin: 0 0 26px; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.pagination a { color: var(--accent); }

/* ---- Single post (centered header) ---- */
.single-post { max-width: 760px; margin: 0 auto; }
.single-post-header { text-align: center; margin-bottom: 26px; }
.single-post-header .cat-label { margin-bottom: 10px; }
.single-post-header h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 12px; font-weight: 900; text-transform: uppercase; }
.meta-row { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.single-post-image { margin-bottom: 26px; }
.single-post-image img { width: 100%; max-height: 460px; object-fit: cover; }
.single-post-content { font-size: 18px; }
.single-post-content > p:first-of-type::first-letter { font-size: 64px; font-weight: 900; float: left; line-height: .8; padding: 6px 10px 0 0; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 24px; margin: 34px 0 16px; font-weight: 900; text-transform: uppercase; }
.single-post-content h3 { font-size: 19px; margin: 26px 0 12px; font-weight: 800; }
.single-post-content img { margin: 24px 0; width: 100%; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { border: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 13px; text-transform: uppercase; letter-spacing: .02em; }
.tag-pill-link:hover { background: var(--ink); color: #fff; }

.related-posts { max-width: 760px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 30px; }

.site-footer { background: var(--ink); color: #b7b7b7; padding: 54px 24px 30px; margin-top: 20px; text-align: center; }
.footer-wordmark { color: #fff; font-size: 34px; font-weight: 900; text-transform: uppercase; margin-bottom: 18px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #7a7a7a; margin-bottom: 22px; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #444; color: #fff; }
.back-to-top:hover { background: var(--accent); border-color: var(--accent); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 28px; text-transform: uppercase; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; font-weight: 700; text-transform: uppercase; }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); font-size: 15px; font-family: inherit; }
.search-form button { background: var(--ink); color: #fff; border: none; padding: 0 20px; font-weight: 700; cursor: pointer; text-transform: uppercase; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero-grid, .split-wrap { grid-template-columns: 1fr; }
  .plain-grid, .overlay-trio { grid-template-columns: 1fr 1fr; }
  .masthead { flex-direction: column; }
}
@media (max-width: 560px) {
  .plain-grid, .overlay-trio { grid-template-columns: 1fr; }
}
