/* DiarioArista: an editorial masthead and a restrained red/blue identity. */
:root {
  --canvas: #f5f5f5;
  --canvas-soft: #ededed;
  --surface: #fff;
  --ink: #191919;
  --ink-soft: #383838;
  --muted: #666;
  --hairline: #e2e2e2;
  --brand-blue: #083a90;
  --accent: #e81b23;
  --link: #c51620;
  --font-display: Arial, Helvetica, system-ui, sans-serif;
}

::selection { background: #dce7fa; color: var(--brand-blue); }
.container { max-width: 1280px; padding-inline: 24px; }
.main-content { padding-bottom: 48px; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  padding-block: 25px 22px;
  text-align: left;
}
.brand-lockup { display: flex; align-items: center; gap: 25px; min-width: 0; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 36px/1 var(--font-display);
  letter-spacing: -1.4px;
  white-space: nowrap;
  color: var(--brand-blue);
}
.brand-symbol { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { display: inline-flex; }
.brand-d { font-weight: 500; }
.brand-a { font-weight: 800; color: var(--accent); }
.wordmark:hover { text-decoration: none; }
.brand-line {
  max-width: 150px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid #d4d4d4;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.edition-strip { gap: 28px; padding: 0; flex-shrink: 0; }
.edition-date { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.edition-date time { display: block; font-size: 13px; color: var(--ink-soft); }
.edition-label { margin: 0; font-size: 12px; }
.search-link {
  min-height: 44px;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
}
.search-link:hover { border-color: var(--ink); text-decoration: none; }
.site-nav { border: 1px solid #dedede; border-radius: 8px; background: #e9e9e9; padding: 4px; }
.nav-links { gap: 2px; min-height: 44px; }
.nav-links > a { min-height: 44px; padding: 10px 16px; border-radius: 5px; font-size: 14px; font-weight: 500; }
.nav-links > a:hover { background: #f8f8f8; text-decoration: none; }
.nav-links > a[aria-current=page] { background: var(--surface); color: var(--link); font-weight: 700; text-decoration: none; }
.nav-about { margin-left: auto; }
.section-heading { border: 0; padding-block: 25px 16px; gap: 16px; }
.section-heading h1, .section-heading h2 { font-size: 14px; text-transform: none; letter-spacing: 0; }
.home-heading h1 { display: flex; align-items: center; gap: 9px; }
.home-heading h1::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section-heading > span { font-size: 13px; }
.eyebrow { color: var(--link); font-size: 12px; font-weight: 500; letter-spacing: .15px; text-transform: none; }
.sponsored-label { border-color: #ddd; color: var(--ink-soft); border-radius: 3px; font-size: 12px; letter-spacing: 0; }

.brief-grid, .featured-grid, .news-grid, .category-grid, .related-grid {
  display: grid;
  gap: 12px;
  padding: 0;
  align-items: stretch;
}
.brief-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-grid-single { grid-template-columns: minmax(0, 1fr); }
.news-grid, .category-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card {
  --card-padding: 24px;
  min-width: 0;
  padding: var(--card-padding);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
.story-card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.story-card h2 { margin-top: 12px; font: 700 25px/1.2 var(--font-display); letter-spacing: -.45px; color: var(--brand-blue); }
.story-card h2 a:hover { color: var(--link); text-decoration: none; }
.card-intro { margin-top: 14px; font: 400 16px/1.5 var(--font-interface); color: var(--ink-soft); }
.story-card .story-meta { margin-top: auto; padding-top: 22px; font-size: 14px; gap: 5px 9px; }
.story-meta > span:first-child { font-weight: 400; color: var(--muted); }
.story-brief { --card-padding: 20px; min-height: 206px; }
.story-brief h2 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.15px; }
.story-brief .story-meta { padding-top: 20px; font-size: 14px; }
.story-feature { --card-padding: 28px; min-height: 318px; }
.story-feature h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.8px; }
.story-feature .card-intro { font-size: 17px; line-height: 1.5; margin-top: 18px; }
.featured-grid-single .story-feature { --card-padding: 36px; min-height: 0; }
.featured-grid-single .story-card-content { max-width: 960px; }
.featured-grid-single .story-feature h2 { font-size: 44px; }
.featured-grid-single .card-intro { max-width: 850px; }
.story-card.has-image { padding: 0; }
.card-figure { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.card-image {
  display: block;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: var(--canvas-soft);
  border-radius: 7px 7px 0 0;
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.card-image-portrait img { object-position: center 20%; }
.card-figure .story-card-content { padding: var(--card-padding) var(--card-padding) 0; }
.story-card.has-image > .story-meta { margin: 0; padding: 16px var(--card-padding) var(--card-padding); }
.image-attribution { font-size: 14px; }
.card-figure > .image-attribution { margin: 12px var(--card-padding) 0; padding: 0; }
.image-credits { border-top: 1px solid var(--hairline); }
.image-credits summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font: 400 13px/1.4 var(--font-interface);
  cursor: pointer;
  list-style: none;
}
.image-credits summary::-webkit-details-marker { display: none; }
.image-credits summary:hover { color: var(--link); }
.image-credits summary > span { font-size: 18px; line-height: 1; }
.image-credits[open] summary > span { transform: rotate(45deg); }
.image-credits .image-caption-text { padding-bottom: 12px; font: 400 14px/1.5 var(--font-interface); overflow-wrap: anywhere; }
.story-brief.has-image { padding: var(--card-padding); }
.story-brief .card-figure { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 0 12px; align-content: start; }
.story-brief .story-card-content { grid-area: 1 / 1; padding: 0; }
.story-brief .card-image { grid-area: 1 / 2; width: 64px; aspect-ratio: 1; border-radius: 4px; margin-top: 27px; }
.story-brief .image-attribution { grid-column: 1 / -1; margin: 12px 0 0; }
.story-brief.has-image > .story-meta { padding: 10px 0 0; margin-top: auto; }
.latest-section { margin-top: 4px; }
.latest-section .section-heading, .related-section .section-heading { border: 0; }
.category-grid { padding-block: 24px; }
.category-grid > .story-card { border: 1px solid var(--hairline); }
.story-list { display: grid; gap: 12px; }
.story-row { padding: 24px; }
.story-row h2 { font-size: 22px; line-height: 1.25; }
.story-row .card-intro { max-width: 850px; }
.story-row .story-meta { margin-top: 0; padding-top: 16px; }
.story-row.has-image { --thumbnail-width: 200px; display: flex; padding: var(--card-padding); }
.story-row .card-figure { display: grid; grid-template-columns: var(--thumbnail-width) minmax(0, 1fr); gap: 0 24px; align-items: start; }
.story-row .card-image { grid-area: 1 / 1; border-radius: 4px; }
.story-row .story-card-content { grid-area: 1 / 2; padding: 0; }
.story-row .image-attribution { grid-column: 1 / -1; margin: 16px 0 0; font-size: 14px; }
.story-row.has-image > .story-meta { padding: 12px 0 0; }
.related-grid h2 { font-size: 23px; }
.related-grid > .story-card:last-child { display: flex; }

.editorial-note { margin-top: 36px; padding: 28px 0; border-block: 1px solid #d6d6d6; }
.editorial-note > .eyebrow { color: var(--muted); }
.editorial-note > p { font: 700 24px/1.25 var(--font-display); letter-spacing: -.4px; }
.editorial-note > a { color: var(--link); }
.page-heading { padding-block: 36px 24px; border-bottom: 1px solid #d6d6d6; }
.page-heading h1 { font-size: 44px; font-weight: 700; letter-spacing: -1px; }
.page-heading > p { font-family: var(--font-interface); font-size: 18px; }
.empty-state h2 { font-weight: 700; }
.home-empty { padding: 40px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; }
.home-empty h2 { font-size: 48px; letter-spacing: -1px; }
.button { border-radius: 5px; background: var(--link); border-color: var(--link); font-size: 15px; }
.button:hover { background: #a8111b; border-color: #a8111b; text-decoration: none; }
.button-outline { background: var(--surface); border-color: #d3d3d3; color: var(--ink); }
.button-outline:hover { background: #e9e9e9; border-color: #bcbcbc; }
.search-form input { border-color: #bcbcbc; border-radius: 5px; }
.search-form input:focus-visible { outline-color: var(--link); }

.article-page, .information-body {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0 32px 40px;
  margin-top: 24px;
}
.article-header { max-width: 960px; }
.article-header h1 { font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -1.2px; text-wrap: initial; color: var(--brand-blue); }
.article-intro { font-size: 22px; line-height: 1.5; }
.article-image { max-width: 960px; }
.article-image-frame { background: var(--canvas); border-radius: 6px; overflow: hidden; }
.article-image img { width: 100%; height: auto; max-height: 760px; object-fit: contain; }
.article-image > .image-attribution { padding-top: 12px; line-height: 1.6; }
.article-body h2 { font-weight: 700; }
.source-box { border-color: #d6d6d6; }
.source-box h2 { font-size: 14px; }
.correction-note, .information-notice { background: var(--canvas); border-left-color: var(--accent); }
.information-body { padding-top: 4px; }
.footer-brand > a { display: inline-flex; align-items: center; gap: 10px; font: 800 32px/1 var(--font-display); letter-spacing: -1.2px; --logo-blue: #fff; }
.footer-brand > a:hover { text-decoration: none; }
.footer-brand .brand-name, .footer-brand .brand-a { color: #fff; }
.footer-brand .brand-symbol { width: 38px; height: 38px; }
.footer-brand p { font-size: 13px; }

@media (min-width: 1024px) {
  .featured-grid > .story-feature:not(.has-image) { background: #fff5f3; border-color: #efdfdc; }
  .featured-grid > .story-feature:not(.has-image) .story-card-content { justify-content: center; }
  .featured-grid > .story-feature:not(.has-image) h2 { font-size: 40px; line-height: 1.12; }
  .news-grid > .story-card:not(.has-image) .story-card-content,
  .category-grid > .story-card:not(.has-image) .story-card-content,
  .related-grid > .story-card:not(.has-image) .story-card-content { justify-content: center; }
  .featured-grid-single .story-feature.has-image .card-figure { display: grid; grid-template-columns: 1.1fr 1fr; }
  .featured-grid-single .card-image { grid-area: 1 / 1; border-radius: 7px 0 0 0; }
  .featured-grid-single .card-figure .story-card-content { grid-area: 1 / 2; }
  .featured-grid-single .card-figure .image-attribution { grid-column: 1 / -1; }
  .featured-grid-single .story-feature.has-image h2 { font-size: 34px; }
}

@media (max-width: 1023px) {
  .brand-line { display: none; }
  .nav-links > a { padding-inline: 13px; }
  .nav-about { margin-left: 0; }
  .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid, .category-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-feature { --card-padding: 24px; }
  .story-feature h2 { font-size: 28px; }
  .article-header h1 { font-size: 42px; }
  .story-row.has-image { --thumbnail-width: 160px; }
}

@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .masthead { gap: 14px; padding-block: 20px 16px; }
  .wordmark { font-size: 26px; letter-spacing: -.9px; gap: 8px; }
  .brand-symbol { width: 32px; height: 32px; }
  .edition-strip { gap: 0; }
  .edition-date { display: none; }
  .search-link { width: 44px; height: 44px; justify-content: center; padding: 10px; }
  .search-link > span { display: none; }
  .site-nav { padding: 0; }
  .mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 46px; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { border-bottom: 1px solid #d4d4d4; }
  .mobile-nav[open] summary > span:last-child { transform: rotate(45deg); }
  .mobile-nav .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; }
  .mobile-nav .nav-links > a { padding-inline: 12px; min-height: 44px; border: 0; }
  .section-heading { padding-block: 22px 14px; }
  .section-heading h1, .section-heading h2 { font-size: 13px; }
  .brief-grid, .featured-grid, .news-grid, .category-grid, .related-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brief-grid { background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding-inline: 18px; gap: 0; margin-bottom: 10px; }
  .story-brief, .story-brief.has-image { min-height: 0; border: 0; border-radius: 0; padding: 18px 0; }
  .story-brief + .story-brief { border-top: 1px solid var(--hairline); }
  .story-brief h2 { font-size: 18px; margin-top: 7px; }
  .story-brief .story-meta { padding-top: 10px; }
  .story-card:not(.story-brief) { --card-padding: 20px; }
  .story-brief .card-figure { grid-template-columns: minmax(0, 1fr) 72px; gap: 0 14px; }
  .story-brief .card-image { width: 72px; margin-top: 24px; }
  .story-card h2 { font-size: 24px; }
  .story-brief h2 { font-size: 18px; }
  .story-feature { min-height: 0; }
  .story-feature h2, .featured-grid-single .story-feature h2 { font-size: 29px; line-height: 1.14; letter-spacing: -.65px; }
  .story-feature .card-intro { font-size: 16px; margin-top: 14px; }
  .story-card .story-meta { font-size: 14px; }
  .eyebrow { font-size: 12px; letter-spacing: .1px; }
  .sponsored-label { font-size: 12px; }
  .latest-section { margin-top: 2px; }
  .category-grid { padding-block: 20px; }
  .related-grid > .story-card + .story-card { padding-top: var(--card-padding); }
  .related-grid > .story-card.has-image + .story-card.has-image,
  .related-grid > .story-card + .story-card.has-image { padding-top: 0; }
  .story-row h2 { font-size: 21px; }
  .story-row.has-image { padding: 0; }
  .story-row .card-figure { display: flex; gap: 0; }
  .story-row.has-image .card-image { max-width: none; border-radius: 7px 7px 0 0; }
  .story-row .story-card-content { padding: var(--card-padding) var(--card-padding) 0; }
  .story-row .image-attribution { margin: 12px var(--card-padding) 0; }
  .story-row.has-image > .story-meta { padding: 16px var(--card-padding) var(--card-padding); }
  .page-heading { padding-block: 28px 22px; }
  .page-heading h1 { font-size: 34px; letter-spacing: -.75px; }
  .page-heading > p { font-size: 17px; }
  .home-empty { padding: 28px 20px; }
  .home-empty h2 { font-size: 34px; letter-spacing: -.6px; }
  .home-empty p { font-size: 18px; }
  .editorial-note { margin-top: 28px; padding-block: 24px; }
  .editorial-note > p { font-size: 24px; }
  .article-page, .information-body { margin-top: 20px; padding: 0 18px 28px; }
  .article-header h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.7px; overflow-wrap: anywhere; }
  .article-intro { font-size: 20px; }
  .article-image img { max-height: 70vh; max-height: 70svh; }
  .article-body { font-size: 18px; }
  .article-body h2 { font-size: 25px; }
  .article-byline, .article-image figcaption { font-size: 14px; }
  .source-box { overflow-wrap: anywhere; }
  .footer-brand > a { font-size: 26px; }
}

@media (max-width: 359px) {
  .wordmark { font-size: 23px; }
  .wordmark .brand-symbol { width: 30px; height: 30px; }
}

@media print {
  :root { --canvas: #fff; --ink: #000; }
  .article-page, .information-body { border: 0; padding: 0; margin: 0; }
  .article-header h1 { font-size: 32px; }
  .story-card { break-inside: avoid; }
}
