/*
Theme Name: Leivra News Pro
Theme URI: https://blog.leivra.com.br/
Author: Leivra
Author URI: https://leivra.com.br/
Description: Tema editorial independente para o Blog Leivra, otimizado para leitura, desempenho, acessibilidade e SEO.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: valley-news-pro
Tags: blog, news, education, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

:root {
  --valley-blue: #075985;
  --valley-blue-bright: #0284c7;
  --valley-navy: #0f172a;
  --valley-gold: #f59e0b;
  --valley-ink: #1e293b;
  --valley-muted: #64748b;
  --valley-bg: #f5f7fb;
  --valley-card: #ffffff;
  --valley-line: #e2e8f0;
  --valley-radius: 16px;
  --valley-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  --valley-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--valley-ink);
  background: var(--valley-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--valley-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--valley-blue-bright); }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 32px), var(--valley-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { position: fixed; z-index: 99999; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: #111; }

.announcement { background: var(--valley-navy); color: #fff; font-size: 14px; }
.announcement .site-shell { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 38px; text-align: center; }
.announcement a { color: #fde68a; font-weight: 800; }
.site-header { background: #fff; border-bottom: 1px solid var(--valley-line); }
.branding-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.site-branding { min-width: 0; }
.custom-logo { max-height: 64px; width: auto; }
.site-title { margin: 0; font-size: clamp(25px, 4vw, 38px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.site-title a { color: var(--valley-navy); text-decoration: none; }
.site-title span { color: var(--valley-blue-bright); }
.site-description { margin: 8px 0 0; color: var(--valley-muted); font-size: 14px; }
.main-navigation { background: var(--valley-blue); }
.main-navigation .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 13px 15px; color: #fff; font-size: 15px; font-weight: 750; text-decoration: none; border-radius: 7px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: rgba(255,255,255,.14); }

.site-content { padding-block: 36px 64px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.page-header { margin-bottom: 24px; }
.page-title { margin: 0; color: var(--valley-navy); font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.archive-description { color: var(--valley-muted); }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; background: var(--valley-card); border: 1px solid var(--valley-line); border-radius: var(--valley-radius); box-shadow: 0 5px 18px rgba(15,23,42,.05); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--valley-shadow); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: #dbeafe; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 22px; }
.post-category { display: inline-flex; margin-bottom: 10px; color: var(--valley-blue-bright); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.post-card-title { margin: 0 0 10px; color: var(--valley-navy); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-excerpt { margin: 0 0 16px; color: var(--valley-muted); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--valley-muted); font-size: 13px; }
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { padding: 8px 13px; border: 1px solid var(--valley-line); border-radius: 8px; background: #fff; text-decoration: none; }
.nav-links .current { background: var(--valley-blue); color: #fff; }

.article-shell, .page-shell { overflow: hidden; background: #fff; border: 1px solid var(--valley-line); border-radius: var(--valley-radius); box-shadow: var(--valley-shadow); }
.article-header, .page-shell > header { padding: clamp(24px, 5vw, 54px); padding-bottom: 28px; }
.entry-title { margin: 8px 0 14px; color: var(--valley-navy); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.04em; }
.featured-media { margin: 0; aspect-ratio: 16/8; overflow: hidden; background: #dbeafe; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { padding: clamp(24px, 5vw, 54px); padding-top: 36px; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--valley-navy); line-height: 1.2; letter-spacing: -.02em; }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(27px, 4vw, 37px); }
.entry-content h3 { margin-top: 1.7em; font-size: 25px; }
.entry-content blockquote { padding: 18px 24px; border-left: 5px solid var(--valley-gold); background: #fffbeb; color: #713f12; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--valley-line); }
.entry-footer { padding: 0 clamp(24px, 5vw, 54px) 40px; color: var(--valley-muted); font-size: 14px; }

.widget-area { display: grid; gap: 20px; }
.widget { padding: 22px; background: #fff; border: 1px solid var(--valley-line); border-radius: 14px; }
.widget-title { margin: 0 0 14px; color: var(--valley-navy); font-size: 19px; }
.widget ul { margin: 0; padding-left: 20px; }
.widget li + li { margin-top: 8px; }
.valley-course-box { background: linear-gradient(145deg, var(--valley-navy), #164e63); color: #fff; }
.valley-course-box .widget-title { color: #fff; }
.valley-course-box p { color: #cbd5e1; }
.valley-course-box a { display: inline-flex; padding: 10px 14px; border-radius: 9px; background: var(--valley-gold); color: var(--valley-navy); font-weight: 900; text-decoration: none; }

.comments-area { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--valley-line); border-radius: var(--valley-radius); }
.comment-list { padding-left: 24px; }
input, textarea, select { max-width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
button, input[type="submit"] { padding: 11px 16px; border: 0; border-radius: 8px; background: var(--valley-blue); color: #fff; font-weight: 800; cursor: pointer; }
.site-footer { background: var(--valley-navy); color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #e2e8f0; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--valley-muted); font-size: 13px; text-align: center; }
.sticky { outline: 2px solid var(--valley-gold); }

/* Magazine homepage */
.home .site-content { padding-block: 0; }
.magazine-home { padding: 24px 0 72px; }
.branding-row { display: grid; grid-template-columns: minmax(190px, 300px) minmax(300px, 728px); justify-content: space-between; }
.header-ad-slot { width: 100%; max-width: 728px; margin-inline: auto; }
.header-ad-slot .ad-placeholder { min-height: 78px; }
.ad-widget img { width: 100%; height: auto; }
.ad-widget > * { max-width: 100%; margin: 0 auto; }
.ad-widget { width: 100%; overflow: hidden; text-align: center; }
.ad-widget .adsbygoogle { width: 100%; min-width: 0; }
.valley-ad-label { display: block; margin-bottom: 5px; color: var(--valley-muted); font-size: 10px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.magazine-ad-band { margin-top: 28px; }
.magazine-ad-mid { margin-top: 42px; }
.ad-placeholder {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 14px 24px;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #f8fafc 12px, #f8fafc 24px);
  color: var(--valley-muted);
}
.ad-placeholder > span { padding: 7px 10px; border: 2px solid var(--valley-navy); color: var(--valley-navy); font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.ad-placeholder > strong { color: var(--valley-ink); font-size: 15px; text-align: center; }
.ad-placeholder > small { white-space: nowrap; font-size: 11px; }
.magazine-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--valley-line);
  border-radius: 10px;
  background: #fff;
}
.magazine-ticker > strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--valley-gold);
  color: var(--valley-navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker-items { display: flex; gap: 28px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ticker-items a { color: var(--valley-ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.ticker-items a + a::before { content: "•"; margin-right: 28px; color: var(--valley-gold); }

.magazine-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr); gap: 12px; }
.hero-lead, .hero-small { overflow: hidden; border-radius: 14px; background: var(--valley-navy); }
.hero-lead > a, .hero-small > a { position: relative; display: block; height: 100%; color: #fff; text-decoration: none; }
.hero-media { min-height: 520px; }
.hero-media > img, .hero-small img { width: 100%; height: 100%; object-fit: cover; }
.hero-media > img { position: absolute; inset: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.03) 24%, rgba(15,23,42,.92) 100%); }
.hero-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: clamp(24px, 5vw, 48px); }
.hero-copy h1 { max-width: 820px; margin: 12px 0; color: #fff; font-size: clamp(32px, 5vw, 55px); line-height: 1.02; letter-spacing: -.04em; }
.hero-copy p { max-width: 720px; margin: 0 0 14px; color: #e2e8f0; font-size: 16px; }
.magazine-label { display: inline-flex; padding: 5px 9px; border-radius: 6px; background: var(--valley-gold); color: var(--valley-navy); font-size: 11px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.magazine-meta { color: #cbd5e1; font-size: 12px; font-weight: 700; }
.hero-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-small { min-height: 254px; }
.hero-small img { position: absolute; inset: 0; }
.hero-small-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 18px; }
.hero-small h2 { margin: 9px 0 7px; color: #fff; font-size: clamp(17px, 2vw, 21px); line-height: 1.15; letter-spacing: -.02em; }

.magazine-content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; margin-top: 46px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 3px solid var(--valley-navy); }
.section-heading > div > span, .popular-panel header > span { color: var(--valley-blue-bright); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.section-heading h2, .popular-panel h2 { margin: 2px 0 0; color: var(--valley-navy); font-size: clamp(25px, 4vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.section-heading > a { color: var(--valley-blue); font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.magazine-posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.magazine-posts-grid .post-card-body, .category-showcase-grid .post-card-body { padding: 18px; }
.magazine-posts-grid .post-card-title, .category-showcase-grid .post-card-title { font-size: 20px; }

.magazine-sidebar { display: grid; gap: 22px; }
.popular-panel { padding: 24px; border-radius: 14px; background: #fff; border: 1px solid var(--valley-line); }
.popular-panel header { padding-bottom: 16px; border-bottom: 3px solid var(--valley-gold); }
.popular-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: valley-ranking; }
.popular-panel li { counter-increment: valley-ranking; }
.popular-panel li + li { border-top: 1px solid var(--valley-line); }
.popular-panel li a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px 0; color: var(--valley-navy); text-decoration: none; }
.popular-panel li a::before { content: counter(valley-ranking, decimal-leading-zero); color: var(--valley-gold); font-size: 20px; font-weight: 950; }
.popular-panel li strong { display: block; font-size: 15px; line-height: 1.3; }
.popular-panel li span { grid-column: 2; color: var(--valley-muted); font-size: 11px; }
.magazine-course-cta { padding: 28px; border-radius: 16px; background: linear-gradient(145deg, var(--valley-navy), #164e63); color: #fff; box-shadow: var(--valley-shadow); }
.magazine-course-cta > span { color: #fde68a; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.magazine-course-cta h2 { margin: 8px 0 12px; color: #fff; font-size: 25px; line-height: 1.12; }
.magazine-course-cta p { color: #cbd5e1; font-size: 14px; }
.magazine-course-cta a { display: inline-flex; margin-top: 8px; padding: 10px 14px; border-radius: 8px; background: var(--valley-gold); color: var(--valley-navy); font-weight: 900; text-decoration: none; }
.side-widget { padding: 24px; border: 1px solid var(--valley-line); border-radius: 14px; background: #fff; }
.side-widget h2 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--valley-gold); color: var(--valley-navy); font-size: 21px; }
.side-search .search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.side-search label { min-width: 0; }
.side-search input[type="search"] { width: 100%; }
.side-categories ul { margin: 0; padding: 0; list-style: none; }
.side-categories li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--valley-line); color: var(--valley-muted); font-size: 13px; }
.side-categories a { color: var(--valley-ink); font-weight: 750; text-decoration: none; }

.category-showcase { margin-top: 52px; }
.category-showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-showcase-grid .post-card-title { font-size: 18px; }
.category-showcase-grid .post-excerpt { display: none; }
.category-showcase.layout-grid .category-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-showcase.layout-feature .category-showcase-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.category-showcase.layout-feature .post-card:nth-child(-n+2) { grid-column: span 2; }
.category-showcase.layout-feature .post-card:nth-child(-n+2) .post-card-image { aspect-ratio: 16/8.5; }
.category-showcase.layout-feature .post-card:nth-child(-n+2) .post-card-title { font-size: 23px; }
.category-showcase.layout-compact .category-showcase-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.category-showcase.layout-compact .post-card { display: grid; grid-template-columns: 116px minmax(0,1fr); box-shadow: none; }
.category-showcase.layout-compact .post-card-image { height: 100%; min-height: 116px; aspect-ratio: auto; }
.category-showcase.layout-compact .post-card-body { padding: 14px; }
.category-showcase.layout-compact .post-card-title { margin-bottom: 7px; font-size: 16px; }
.category-showcase.layout-compact .post-category { margin-bottom: 5px; font-size: 10px; }
.category-showcase.layout-compact .post-meta { font-size: 11px; }

/* Image-overlay cards across the magazine homepage */
.home .magazine-posts-grid .post-card,
.home .category-showcase:not(.layout-compact) .post-card {
  position: relative;
  min-height: 310px;
  border: 0;
  background: var(--valley-navy);
  color: #fff;
}
.home .magazine-posts-grid .post-card::after,
.home .category-showcase:not(.layout-compact) .post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,.02) 20%, rgba(15,23,42,.3) 48%, rgba(15,23,42,.96) 100%);
}
.home .magazine-posts-grid .post-card-image,
.home .category-showcase:not(.layout-compact) .post-card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  background: #1e293b;
}
.home .magazine-posts-grid .post-card-body,
.home .category-showcase:not(.layout-compact) .post-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 22px;
}
.home .magazine-posts-grid .post-category,
.home .category-showcase:not(.layout-compact) .post-category {
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--valley-gold);
  color: var(--valley-navy);
  font-size: 10px;
}
.home .magazine-posts-grid .post-card-title,
.home .category-showcase:not(.layout-compact) .post-card-title {
  margin-bottom: 9px;
  color: #fff;
  font-size: clamp(19px, 2.1vw, 25px);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.home .magazine-posts-grid .post-excerpt,
.home .category-showcase:not(.layout-compact) .post-excerpt { display: none; }
.home .magazine-posts-grid .post-meta,
.home .category-showcase:not(.layout-compact) .post-meta { color: #e2e8f0; font-size: 11px; font-weight: 700; }
.home .category-showcase.layout-feature .post-card:nth-child(-n+2) { min-height: 380px; }
.home .category-showcase.layout-feature .post-card:nth-child(-n+2) .post-excerpt {
  display: block;
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 13px;
}

.footer-grid { grid-template-columns: 1.2fr 1.1fr .8fr 1.1fr; }
.footer-brand .custom-logo { max-width: 230px; max-height: 70px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer .menu { margin: 0; padding: 0; list-style: none; }
.site-footer .menu li + li { margin-top: 7px; }
.site-footer .menu a { text-decoration: none; }
.footer-post-list { margin: 0; padding: 0; list-style: none; }
.footer-post-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-post-list a { display: block; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.footer-post-list span { display: block; margin-top: 4px; color: #94a3b8; font-size: 11px; }

@media (max-width: 940px) {
  .branding-row { grid-template-columns: minmax(180px, 240px) 1fr; }
  .header-ad-slot { grid-column: 2; }
  .content-layout { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .magazine-hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 480px; }
  .hero-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .magazine-content { grid-template-columns: 1fr; }
  .magazine-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-showcase-grid, .category-showcase.layout-grid .category-showcase-grid, .category-showcase.layout-feature .category-showcase-grid, .category-showcase.layout-compact .category-showcase-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-showcase.layout-feature .post-card:nth-child(-n+2) { grid-column: span 1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .branding-row { grid-template-columns: 1fr; align-items: center; }
  .site-branding { text-align: center; }
  .site-branding .custom-logo { margin-inline: auto; }
  .header-ad-slot { display: block; grid-column: 1; width: 100%; }
  .header-ad-slot .ad-placeholder { min-height: 100px; }
  .posts-grid, .footer-grid, .widget-area { grid-template-columns: 1fr; }
  .main-navigation .menu { flex-wrap: nowrap; overflow-x: auto; }
  .main-navigation a { white-space: nowrap; }
  .article-header, .entry-content, .page-shell > header { padding-left: 22px; padding-right: 22px; }
  .magazine-home { padding-top: 14px; }
  .magazine-ticker { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
  .magazine-ticker > strong { padding-inline: 12px; }
  .ticker-items a:not(:first-child) { display: none; }
  .hero-media { min-height: 430px; }
  .hero-copy { padding: 24px; }
  .hero-copy p { display: none; }
  .hero-secondary { grid-template-columns: 1fr 1fr; }
  .hero-small { min-height: 220px; }
  .hero-small-copy { padding: 14px; }
  .hero-small h2 { font-size: 16px; }
  .magazine-content { margin-top: 36px; }
  .magazine-posts-grid, .magazine-sidebar, .category-showcase-grid, .category-showcase.layout-grid .category-showcase-grid, .category-showcase.layout-feature .category-showcase-grid, .category-showcase.layout-compact .category-showcase-grid { grid-template-columns: 1fr; }
  .category-showcase.layout-compact .post-card { grid-template-columns: 105px minmax(0,1fr); }
  .home .magazine-posts-grid .post-card,
  .home .category-showcase:not(.layout-compact) .post-card,
  .home .category-showcase.layout-feature .post-card:nth-child(-n+2) { min-height: 290px; }
  .ad-placeholder { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .ad-placeholder > span { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: center; }
  .category-showcase { margin-top: 40px; }
}

@media (max-width: 430px) {
  .hero-secondary { grid-template-columns: 1fr; }
  .hero-small { min-height: 205px; }
  .magazine-label { font-size: 10px; }
}
