/* The Associated Guess - newspaper chrome */
:root {
  --ink: #111;
  --muted: #555;
  --rule: #d4d4d2;
  --accent: #8b0000;
  --bg: #e8e8e6;
  --surface: #f2f2f0;
  --featured-bg: #f6f1e8;
  --featured-border: #e5dcc8;
  --footer: #1a1a1a;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Subscribe hidden until subscription launch */
.subscribe-cta {
  display: none !important;
}

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.utility-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
}

.weather-widget {
  font-size: 0.8rem;
  color: var(--muted);
}

.masthead-center {
  text-align: center;
}

.masthead-logo {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.masthead-logo:hover {
  text-decoration: none;
}

.masthead-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.masthead-edition {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.masthead-edition a {
  font-weight: 600;
}

.headlines-ticker {
  display: flex;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  background: #111;
  color: #f2f2f0;
  font-size: 0.78rem;
}

.ticker-label {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  background: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding: 0.45rem 1rem;
  overflow-x: auto;
}

.ticker-item {
  color: inherit;
  white-space: nowrap;
}

.ticker-item:hover {
  text-decoration: underline;
}

.home-publication-stats {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.section-rail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.section-view-all {
  font-size: 0.85rem;
  font-weight: 600;
}

.section-rail-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 62ch;
}

.search-box input {
  width: 100%;
  max-width: 180px;
  margin-left: auto;
  display: block;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--rule);
  font: inherit;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-disclaimer {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.footer-disclaimer p {
  margin: 0;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, 0.85);
}

.article-footer-notes {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.article-footer-notes .article-disclaimer-top {
  margin: 0 0 0.5rem !important;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.82rem !important;
  color: var(--muted);
}

.article-disclaimer-top {
  margin: 0 0 1rem !important;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e6dcc4;
  background: #fffaf0;
  font-family: var(--sans) !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.page-home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
}

.home-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.fold-random {
  margin-bottom: 2rem;
}

.featured-section {
  margin-bottom: 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--featured-bg);
  border: 1px solid var(--featured-border);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.featured-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c9b896;
}

.featured-header .section-title {
  margin: 0;
}

.featured-lede {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
}

.featured-badge-today {
  background: #1a1a1a;
}

.fold-hero.shell {
  min-height: 280px;
  margin-bottom: 1rem;
  transition: opacity 0.35s ease;
}

.fold-hero-fading {
  opacity: 0.2;
}

.fold-grid.shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-height: 200px;
}

.fold-hero .story-card,
.fold-grid .story-card {
  border: none;
}

.fold-hero .story-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.hero-layout .story-headline {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0.5rem 0;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.story-card {
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}

.story-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.story-headline {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.story-dek {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.story-meta,
.article-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.story-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.5rem;
  background: #eee;
}

.section-rail,
.secondary-grid,
.opinion-block,
.community-notices,
.long-archive {
  margin: 2.5rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.home-sidebar {
  position: sticky;
  top: 1rem;
}

.trending-box {
  border: 1px solid var(--rule);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--muted);
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trending-list.hidden {
  display: none;
}

.trending-list li {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
}

.trend-rank {
  font-weight: 700;
  color: var(--accent);
  min-width: 1.25rem;
}

.newsletter-box {
  background: var(--surface);
  padding: 1rem;
  border: 1px solid var(--rule);
}

.newsletter-box h3 {
  font-family: var(--serif);
  margin: 0 0 0.35rem;
}

.newsletter-box input {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid var(--rule);
  font: inherit;
}

.newsletter-box button {
  width: 100%;
  padding: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.archive-month h3 {
  font-family: var(--serif);
  margin: 1.5rem 0 0.5rem;
}

.archive-month ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-month li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.archive-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.page-article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(170px, 220px);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 820px;
  justify-self: center;
  width: 100%;
}

.article-rail {
  position: sticky;
  top: 1rem;
}

.related-heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-item:hover .related-title {
  text-decoration: underline;
}

.related-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.4rem;
  background: #eee;
}

.related-kicker {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.related-title {
  display: block;
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.25;
}

.article-related-mobile {
  display: none;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.related-list-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0.5rem 0;
}

.article-dek {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.article-quick-links {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper-warm, #faf9f6);
}

.article-quick-links-label {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-quick-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.article-quick-link:hover {
  text-decoration: none;
  background: #f0f0f0;
}

.article-quick-link-primary {
  background: var(--accent, #8b0000);
  border-color: var(--accent, #8b0000);
  color: #fff;
}

.article-quick-link-primary:hover {
  background: #6d0000;
  color: #fff;
}

.article-hero img {
  width: 100%;
  margin: 1rem 0;
  background: #111;
}

.article-hero-fit-contain img {
  height: auto;
  max-height: min(92vh, 980px);
  object-fit: contain;
}

.article-hero-fit-cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.back-link {
  margin-top: 2rem;
  font-weight: 600;
}

.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--rule);
}

.article-breadcrumb li[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 600;
}

.article-share-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 0.72rem;
}

.author-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.author-box-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.author-box-name {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.author-box-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-section .section-page-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 65ch;
}

.page-section .section-page-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.page-section .section-page-grid {
  margin-top: 1.5rem;
}

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.newsroom-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  background: #fff;
}

.newsroom-card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.newsroom-role {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.newsroom-note {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.footer-rss {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.about-newsroom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.article-tips-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule, #ddd);
  background: var(--paper-alt, #f8f6f1);
}

.article-tips-cta .tips-cta-heading {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.article-tips-cta p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-satire-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule, #ddd);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted, #666);
}

.article-subhead {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}

.article-body .article-list {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.article-body .article-list a {
  font-weight: 600;
}

.page-static {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-static h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 1.25rem;
}

.page-static p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.page-static .about-lede {
  font-size: 1.2rem;
  font-weight: 700;
}

.page-static .about-signature {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.page-static .about-real {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule, #ddd);
}

.page-static h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.75rem 0 0.75rem;
}

.page-static ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-static li {
  margin-bottom: 0.35rem;
}

.footer-parent {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.footer-parent a {
  color: inherit;
  font-weight: 600;
}

.page-search {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.search-page-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.search-page-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.search-status {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.search-result-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.search-result-link:hover .search-result-title {
  text-decoration: underline;
}

.search-result-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--rule);
}

.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
}

.search-result-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

.search-result-dek {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .search-result-link {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
  }

  .search-result-title {
    font-size: 1.05rem;
  }
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0.35rem 0;
}

.site-footer {
  background: var(--footer);
  color: #ccc;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #eee;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.25rem 0;
}

.footer-disclaimer {
  font-size: 0.8rem;
  margin: 0.5rem 0;
}

@media (max-width: 960px) {
  .home-top {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
  }

  .card-grid.four-up {
    grid-template-columns: repeat(2, 1fr);
  }

  .fold-grid.shell {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .masthead-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .search-box input {
    margin: 0 auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-rail-left,
  .article-rail-right {
    display: none;
  }

  .article-main {
    max-width: none;
  }

  .article-related-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  .card-grid.four-up {
    grid-template-columns: 1fr;
  }

  .main-nav .nav-link {
    display: none;
  }

  .main-nav.open .nav-link {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .related-list-mobile {
    grid-template-columns: 1fr;
  }
}

.ad-slot {
  margin: 0;
  min-height: 0;
}

.ad-slot:empty {
  display: none;
}

.ad-slot-header {
  max-width: 970px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.5rem;
  border-bottom: 1px solid var(--rule, #d4d0c8);
  background: var(--paper-warm, #faf9f6);
}

.ad-slot-header:not(:has(ins[data-ad-status="filled"])) {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* In-flow promos share the same column width as adjacent editorial content */
.home-main .ad-slot-header,
.home-main .house-ad-block,
.page-article .ad-slot-header,
.page-article .house-ad-block,
.page-static .ad-slot-header,
.page-static .house-ad-block {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.article-main .ad-slot-header,
.article-main .house-ad-block {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.home-main .ad-slot-header {
  margin-bottom: 0.75rem;
  padding-left: 0;
  padding-right: 0;
  border-bottom: none;
  background: transparent;
}

.page-article .ad-slot-header,
.page-static .ad-slot-header {
  margin-bottom: 1rem;
  padding-left: 0;
  padding-right: 0;
  border-bottom: none;
  background: transparent;
}

.page-static .house-ad-page-bottom {
  margin-top: 2rem;
}

.ad-slot-in-content {
  max-width: 728px;
  margin: 1.25rem auto;
  padding: 0.25rem 0;
}

.ad-slot-footer {
  max-width: 970px;
  margin: 1rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule, #d4d0c8);
}

.ad-unit-header,
.ad-unit-footer,
.ad-unit-in-content {
  display: block;
  text-align: center;
  min-height: 0;
}

.ad-unit-header {
  max-height: 120px;
  overflow: hidden;
}

/* House promos - display-ad shape with site artwork, clearly labeled */
.house-ad-block {
  display: block;
  max-width: 728px;
  margin: 0 auto;
  padding: 0.65rem 0.85rem 0.85rem;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  background: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: var(--sans, "Source Sans 3", sans-serif);
}

.home-sidebar .house-ad-block {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.house-ad-article-top {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.house-ad-article-bottom,
.house-ad-page-bottom {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.house-ad-page-top {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.house-ad-page-mid {
  margin-top: 1.25rem;
}

.house-ad-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 2px;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.house-ad-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.house-ad-link:hover .house-ad-title {
  text-decoration: underline;
}

.house-ad-media {
  flex: 0 0 120px;
  width: 120px;
  max-height: 72px;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
  border: 1px solid #e0e0e0;
}

.house-ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.house-ad-copy {
  flex: 1;
  min-width: 0;
}

.house-ad-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.house-ad-line {
  display: block;
  font-size: 0.8125rem;
  color: #3c4043;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.house-ad-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #188038;
}

@media (max-width: 520px) {
  .house-ad-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .house-ad-media {
    width: 100%;
    max-width: 100%;
    flex: none;
    max-height: 100px;
  }
}
