/* Theme "matchday": a dark sports-desk look - a white masthead sandwiched
   between a black utility topbar and a solid black main nav (red active-tab
   text), flat black rectangular section-heading labels matching the
   on-image category badges, and nearly every card - including the plain
   post-grid cards, not just the hero/lifestyle sections - rendered as a
   full-bleed photo with the headline baked directly into a bottom gradient
   overlay instead of sitting in a separate white text block below the
   image. Achieved CSS-only (no markup changes) by taking the image out of
   flow with absolute positioning and using justify-content: flex-end on
   the card so the remaining text children stack at the bottom. Sharp
   corners throughout. Same class-name contract as the other themes (see
   functions/_themes/matchday.js). */
:root {
  --ink: #121212; --muted: #6f6f6f; --line: #e6e6e6; --paper: #ffffff;
  --accent: #e2231a; --accent-ink: #ffffff; --sidebar-bg: #f4f4f4; --badge: #0a0a0a;
}
* { 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; font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.placeholder-img { display: flex; align-items: flex-end; justify-content: flex-start; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; padding: 10px; background: linear-gradient(135deg, #2a2a2a, #0a0a0a); }

.topbar { background: var(--ink); color: #b0b0b0; font-size: 12px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.social-dot { width: 22px; height: 22px; border-radius: 0; background: #262626; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.social-dot:hover { background: var(--accent); }

.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: center; padding: 24px; }
.logo-group { display: flex; align-items: center; gap: 12px; flex-direction: column; }
.logo-box { width: 46px; height: 46px; flex-shrink: 0; background: var(--badge); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 21px; }
.logo-img { height: 54px; width: auto; max-width: 360px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 33px; font-weight: 900; letter-spacing: -.01em; text-align: center; }
.site-tagline { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: center; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* Solid black main-nav; active tab is plain red text, no underline/fill. */
.main-nav { background: var(--badge); }
.main-nav .wrap { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 0; }
.main-nav a { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 15px 15px; border-bottom: 3px solid transparent; }
.main-nav a.home { color: var(--accent); }
.main-nav a:hover:not(.home) { color: var(--accent); }

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

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* Flat black rectangular label, sharp corners - matches the on-image
   category badge (.cat-tag) exactly, this theme's recurring motif. */
.section-heading { display: flex; align-items: stretch; gap: 0; margin: 0 0 22px; }
.section-heading h2 { background: var(--badge); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; padding: 9px 16px; white-space: nowrap; }
.section-heading::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); margin-bottom: 1px; }
.section-heading .see-all { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; align-self: center; margin-left: 12px; }
section.cat-section { margin-bottom: 46px; }

/* --- Full-bleed overlay trick, used repeatedly below ---
   Card is a flex column with justify-content: flex-end. The <img>/
   .placeholder-img is pulled out of flow with position:absolute so it no
   longer counts as a flex item; the remaining text children (which keep
   their existing, fixed HTML order - no markup changes) are then the only
   flex items left, and flex-end packs that whole stack against the
   bottom of the card. A ::before pseudo-element supplies the dark
   gradient wash so white text stays legible over any photo. */
.hero-main, .hero-side-item, .post-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: #fff;
}
.hero-main::before, .hero-side-item::before, .post-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 68%, rgba(0,0,0,.9) 100%);
}
.hero-main .placeholder-img, .hero-main > img,
.hero-side-item .placeholder-img, .hero-side-item > img,
.post-card .placeholder-img, .post-card > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; z-index: 0;
}
.hero-main > *:not(.placeholder-img):not(img),
.hero-side-item > *:not(.placeholder-img):not(img),
.post-card > *:not(.placeholder-img):not(img) {
  position: relative; z-index: 2;
}

.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 44px; }
.hero-main { height: 420px; padding: 26px; }
.cat-tag { color: #fff; background: var(--badge); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 11px; display: inline-block; align-self: flex-start; margin-bottom: 10px; }
.hero-main h1 { font-size: 29px; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.hero-main p { color: #d9d9d9; font-size: 15px; margin: 0 0 8px; font-weight: 400; }
.meta { color: #b9b9b9; font-size: 12.5px; font-weight: 500; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item { height: 189px; padding: 16px; }
.hero-side-item h3 { color: #fff; font-size: 15px; line-height: 1.3; margin-top: 6px; }

.tech-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-item { display: block; }
.tech-item .placeholder-img, .tech-item img { width: 100%; height: 110px; margin-bottom: 10px; font-size: 9px; }
.tech-item h3 { font-size: 14px; line-height: 1.3; }

.picks-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; background: var(--sidebar-bg); padding: 26px; }
.picks-feature { display: block; }
.picks-feature .placeholder-img, .picks-feature img { width: 100%; height: 236px; margin-bottom: 14px; font-size: 10px; }
.picks-feature h3 { font-size: 22px; line-height: 1.26; margin: 8px 0; }
.picks-list { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.picks-list li { counter-increment: pick; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e2e2e2; }
.picks-list li:last-child { border-bottom: none; }
.picks-list li::before { content: counter(pick); font-size: 20px; font-weight: 900; color: var(--accent); width: 26px; flex-shrink: 0; }
.picks-list .p-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lifestyle-card { position: relative; overflow: hidden; height: 254px; display: block; }
.lifestyle-card .placeholder-img, .lifestyle-card img { width: 100%; height: 100%; }
.lifestyle-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.lifestyle-overlay h3 { color: #fff; font-size: 16px; margin-top: 4px; }

.travel-feature { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--badge); color: #fff; overflow: hidden; margin-bottom: 20px; }
.travel-feature .placeholder-img, .travel-feature > img { width: 100%; height: 100%; min-height: 254px; }
.travel-copy { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.travel-copy h3 { color: #fff; font-size: 23px; margin: 10px 0 12px; line-height: 1.26; }
.travel-copy p { color: #d6d6d6; font-size: 14px; margin: 0; font-weight: 400; }
.travel-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.travel-small .placeholder-img, .travel-small img { width: 100%; height: 128px; margin-bottom: 10px; font-size: 9px; }
.travel-small h3 { font-size: 14.5px; line-height: 1.3; }

.business-list { border-top: 1px solid var(--line); }
.business-row { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.business-row .placeholder-img, .business-row img { width: 88px; height: 64px; flex-shrink: 0; font-size: 8px; }
.business-row h3 { font-size: 15px; line-height: 1.3; margin: 4px 0 4px; }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.popular-list li { counter-increment: pop; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.popular-list li::before { content: counter(pop); font-size: 20px; font-weight: 900; color: var(--accent); width: 26px; flex-shrink: 0; }
.popular-list .pop-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.cta-banner { background: var(--badge); color: #fff; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.cta-banner p { margin: 0; font-size: 14px; color: #cfcfcf; font-weight: 400; }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form input { padding: 12px 14px; border: none; font-size: 14px; width: 220px; font-family: inherit; }
.cta-form button { padding: 12px 22px; border: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }

.widget { background: var(--sidebar-bg); border: none; padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.weather-widget { background: var(--badge); color: #fff; }
.weather-widget h3 { color: #fff; border-left-color: var(--accent); }
.weather-now { display: flex; align-items: center; justify-content: space-between; }
.weather-now .temp-big { font-size: 40px; font-weight: 800; }
.weather-now .cond { font-size: 13px; color: #d6d6d6; }
.weather-date { font-size: 12.5px; color: #a3a3a3; margin-top: 12px; border-top: 1px solid #333; padding-top: 12px; }
.weather-date .clock { font-weight: 800; color: #fff; font-size: 15px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e2e2; }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before { content: counter(trend); font-size: 20px; font-weight: 900; color: var(--accent); flex-shrink: 0; width: 24px; }
.trending-list .t-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.trending-list .t-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.newsletter-widget input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid #ddd; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.tag-cloud a:hover { background: var(--badge); color: #fff; border-color: var(--badge); }
.social-row { display: flex; gap: 10px; }
.social-row a { flex: 1; background: #fff; border: 1px solid #ddd; text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 800; }
.ad-widget { border: 1px dashed #ccc; background: transparent; text-align: center; color: #a3a3a3; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 60px 10px; }

/* Post-grid: same full-bleed overlay treatment as the hero, not a
   thumbnail-above-text card - the theme's standout differentiator. */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.post-card { height: 260px; padding: 16px; }
.post-card h3 { font-size: 16px; line-height: 1.3; margin: 0 0 6px; color: #fff; }
.post-card p { display: none; }
.post-card .featured-ribbon { align-self: flex-start; margin-bottom: 8px; }
.post-card .cat-tag { align-self: flex-start; margin-bottom: auto; }

.category-title { font-size: 30px; margin: 0 0 8px; }
.category-desc { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-weight: 400; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.pagination a { color: var(--accent); }

.single-post { max-width: 760px; }
.single-post-header h1 { font-size: 36px; line-height: 1.22; margin: 10px 0 14px; }
.single-post-headline { width: 100%; max-height: 470px; object-fit: cover; margin: 20px 0 30px; }
.single-post-content { font-size: 18px; font-weight: 400; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 25px; margin: 36px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.single-post-content img { margin: 24px 0; width: 100%; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-header .cat-tag { display: inline-block; }

.related-posts { max-width: 760px; margin: 60px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.related-posts h2 { font-size: 19px; margin-bottom: 20px; }

.site-footer { background: var(--badge); color: #cfcfcf; padding: 48px 24px 20px; margin-top: 20px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding-bottom: 30px; border-bottom: 1px solid #2e2e2e; }
.footer-grid h4 { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-grid p { font-size: 13px; color: #a3a3a3; line-height: 1.6; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-bottom { padding-top: 18px; font-size: 12px; color: #6b6b6b; }

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

.featured-ribbon {
  display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 10px; margin-bottom: 6px;
}
.single-post-header .featured-ribbon { margin: 6px 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--sidebar-bg); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 14px; }
.tag-pill-link:hover { background: var(--accent); color: #fff; }

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

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero, .picks-split, .travel-feature { grid-template-columns: 1fr; }
  .tech-row, .lifestyle-grid, .travel-small, .popular-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
