/* Grand Herald — Miami Herald-inspired regional newspaper */
*, *::before, *::after { box-sizing: border-box; }

body.theme-herald {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #fff;
}

.theme-herald a { color: inherit; text-decoration: none; }
.theme-herald a:hover { text-decoration: underline; }

.herald-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.herald-header {
  border-bottom: 3px solid #0a3d6b;
}

.herald-utility {
  background: #fff;
  color: #333;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8ef;
}
.herald-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  flex-wrap: wrap;
}
.herald-utility-left,
.herald-utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.herald-e-edition {
  color: #0a3d6b !important;
  text-decoration: none !important;
  font-weight: 700;
}
.herald-e-edition:hover { color: #d0021b !important; text-decoration: none !important; }
.herald-utility-sep { color: #ccc; font-weight: 400; }
.herald-date {
  color: #666;
  text-transform: capitalize;
  font-weight: 500;
}
.herald-utility-link {
  color: #333 !important;
  text-decoration: none !important;
}
.herald-utility-link:hover { color: #0a3d6b !important; text-decoration: none !important; }

.herald-masthead {
  background: #fff;
  padding: 18px 0 10px;
  text-align: center;
  border-bottom: 1px solid #e2e8ef;
}
.herald-logo {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.2em;
}
.herald-logo-grand {
  font-family: Lora, Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  color: #0a3d6b;
  letter-spacing: -0.02em;
}
.herald-logo-herald {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 4px solid #d0021b;
  padding-bottom: 2px;
}
.herald-tagline {
  margin: 8px 0 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

.herald-nav {
  background: #f4f7fa;
  border-bottom: 1px solid #d8e2ec;
}
.herald-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.herald-nav-list::-webkit-scrollbar { display: none; }
.herald-nav-list li { flex-shrink: 0; }
.herald-nav-list a {
  display: block;
  padding: 11px 14px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a3d6b;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
}
.herald-nav-list a:hover,
.herald-nav-list a.is-active {
  color: #d0021b;
  border-bottom-color: #d0021b;
  background: #fff;
}

/* Breaking bar */
.herald-breaking {
  margin: 16px 0;
  padding: 8px 12px;
  background: #d0021b;
  color: #fff;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.herald-breaking span {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 8px;
  background: #fff;
  color: #d0021b;
}

.herald-home-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8ef;
  font-size: 14px;
}
.herald-home-promo .herald-ad-label { margin: 0; flex-basis: 100%; }
@media (min-width: 640px) {
  .herald-home-promo .herald-ad-label { flex-basis: auto; margin-right: 4px; }
}

/* Typography */
.herald-kicker {
  margin: 0 0 4px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a3d6b;
}
.herald-kicker--breaking { color: #d0021b; }
.herald-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
  font-family: "Barlow Condensed", Arial, sans-serif;
}
.herald-block-title,
.herald-section-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid #0a3d6b;
  color: #0a3d6b;
}
.herald-section-title a { text-decoration: none !important; }
.herald-section-more {
  display: inline-block;
  margin-top: 10px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a3d6b;
}

/* Ads */
.herald-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.herald-leader-ad {
  background: #f4f7fa;
  border-bottom: 1px solid #e2e8ef;
  padding: 10px 0;
  font-size: 14px;
}
.herald-leader-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.herald-btn {
  display: inline-block;
  padding: 7px 14px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #0a3d6b;
  background: transparent;
  color: #0a3d6b !important;
  text-decoration: none !important;
}
.theme-herald a.herald-btn:hover {
  text-decoration: none !important;
}
.herald-btn:hover { background: #0a3d6b; color: #fff !important; }
.herald-btn--navy { background: #0a3d6b; color: #fff !important; border-color: #0a3d6b; }
.herald-btn--navy:hover { background: #072d52; border-color: #072d52; color: #fff !important; }
.herald-btn--subscribe {
  background: #d0021b;
  color: #fff !important;
  border-color: #d0021b;
  padding: 6px 16px;
}
.herald-btn--subscribe:hover { background: #a80116; border-color: #a80116; color: #fff !important; }
.herald-btn--outline { border-color: #888; color: #333 !important; }
.herald-btn--outline:hover { background: #333; color: #fff !important; }
.herald-inline-ad, .herald-banner-ad { margin: 20px 0; padding: 14px; background: #f4f7fa; font-size: 14px; }
.herald-rail-ad {
  margin-bottom: 20px;
  padding: 16px;
  background: #f4f7fa;
  border: 1px solid #e2e8ef;
  font-size: 14px;
}
.herald-rail-ad-name { font-weight: 700; margin-bottom: 6px; }

/* Cover strip vitrazh */
.herald-cover-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
  margin-bottom: 20px;
}
.herald-cover-strip .herald-tile--c0 { grid-column: span 3; }
.herald-cover-strip .herald-tile--c1 { grid-column: span 2; }
.herald-cover-strip .herald-tile--c2 { grid-column: span 1; }
.herald-cover-strip .herald-tile--c3 { grid-column: span 2; }

/* Vitrazh */
.herald-vitrazh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px 22px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8ef;
}
.herald-vitrazh-col { min-width: 0; }
.herald-vitrazh-col--center { display: flex; flex-direction: column; gap: 14px; }

.herald-lead-title {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}
.herald-lead-title a:hover { color: #0a3d6b; text-decoration: none; }
.herald-lead-img { display: block; overflow: hidden; }
.herald-lead-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.herald-lead-deck { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: #333; }

.herald-side-story-title,
.herald-tile-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.herald-side-story-img,
.herald-tile-img {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
}
.herald-side-story-img img,
.herald-tile-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/10;
}

.herald-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8ef;
}
.herald-mini-stack--dense { gap: 10px; }
.herald-mini-stack--inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
  border-top: none;
  padding-top: 0;
}

.herald-compact {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
}
.herald-compact-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
}
.herald-compact-title {
  font-family: Lora, Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.herald-center-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.herald-headline-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}
.herald-headline {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8ef;
}
.herald-headline-title {
  font-family: Lora, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.herald-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.herald-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.herald-mosaic--vitrazh {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}
.herald-mosaic--vitrazh .herald-tile--m0,
.herald-mosaic--vitrazh .herald-tile--m1,
.herald-mosaic--vitrazh .herald-tile--m2 { grid-column: span 2; }
.herald-mosaic--vitrazh .herald-tile--m3,
.herald-mosaic--vitrazh .herald-tile--m4 { grid-column: span 3; }

.herald-tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.herald-section { margin-bottom: 28px; }

.herald-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.herald-rail-box {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0a3d6b;
}
.herald-rail-title {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a3d6b;
  margin: 0 0 10px;
}
.herald-most-read {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.4;
}
.herald-most-read li { margin-bottom: 8px; }

/* Article */
.herald-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  padding: 18px 0 36px;
}
.herald-article-header h1 {
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 10px;
}
.herald-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  margin: 14px 0;
}
.herald-article-body { font-size: 18px; line-height: 1.65; }
.herald-article-body p { margin: 0 0 1em; }
.herald-mid-ad {
  margin: 22px 0;
  padding: 14px;
  background: #f4f7fa;
  border-left: 4px solid #0a3d6b;
}
.herald-source {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e2e8ef;
  font-size: 14px;
}

/* Category */
.herald-breadcrumb {
  font-size: 13px;
  color: #888;
  margin: 14px 0 6px;
}
.herald-page-h {
  font-family: Lora, Georgia, serif;
  font-size: 2rem;
  color: #0a3d6b;
  margin: 0 0 18px;
}
.herald-story {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8ef;
}
.herald-story--text { grid-template-columns: 1fr; }
.herald-story h2 {
  font-family: Lora, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.herald-story-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.herald-pagination {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  font-size: 14px;
}

/* Footer */
.herald-footer {
  background: #0a3d6b;
  color: #c8d9e8;
  padding: 28px 0;
  margin-top: 36px;
  font-size: 14px;
}
.herald-footer a { color: #fff; }
.herald-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 16px;
}
.herald-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.herald-footer .theme-footer-meta { color: #8ab0cc; font-size: 12px; }
.herald-footer .site-contact-emails { color: #b8d4ea; }

@media (max-width: 1024px) {
  .herald-cover-strip { grid-template-columns: repeat(4, 1fr); }
  .herald-cover-strip .herald-tile--c0,
  .herald-cover-strip .herald-tile--c3 { grid-column: span 2; }
  .herald-mosaic { grid-template-columns: repeat(3, 1fr); }
  .herald-tile-row { grid-template-columns: repeat(2, 1fr); }
  .herald-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .herald-vitrazh { grid-template-columns: 1fr; }
  .herald-vitrazh-col--center { order: -1; }
  .herald-center-mosaic { grid-template-columns: 1fr; }
  .herald-headline-list { grid-template-columns: 1fr; }
  .herald-mini-stack--inline { grid-template-columns: 1fr; }
  .herald-home-layout,
  .herald-article-layout { grid-template-columns: 1fr; }
  .herald-cover-strip { grid-template-columns: 1fr 1fr; }
  .herald-cover-strip .herald-tile--c0,
  .herald-cover-strip .herald-tile--c1,
  .herald-cover-strip .herald-tile--c2,
  .herald-cover-strip .herald-tile--c3 { grid-column: span 1; }
  .herald-mosaic--vitrazh { grid-template-columns: 1fr 1fr; }
  .herald-mosaic--vitrazh .herald-tile--m0,
  .herald-mosaic--vitrazh .herald-tile--m1,
  .herald-mosaic--vitrazh .herald-tile--m2,
  .herald-mosaic--vitrazh .herald-tile--m3,
  .herald-mosaic--vitrazh .herald-tile--m4 { grid-column: span 1; }
  .herald-story { grid-template-columns: 1fr; }
  .herald-footer-grid { grid-template-columns: 1fr; }
  .herald-nav-list { flex-wrap: nowrap; }
}
