/* Extra styles for parts the CMS adds to the clone's design (site.css is the
   clone's globals.css, copied unchanged by scripts/sync-design.mjs). Only the
   design tokens of site.css are used here, so a new colour scheme in the repo
   carries over. */

/* Breaking-news banner above "Ultimas Noticias" (portada.breakingBanner). */
.breaking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 28px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: 4px solid var(--danger);
  color: var(--heading);
}
.breaking__label {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breaking__text {
  font-weight: 500;
}
a.breaking__text:hover {
  color: var(--accent);
}

/* Byline and subtitle on article pages. */
.article__byline {
  font-size: 14px;
  color: var(--muted);
}
.article__byline a {
  font-weight: 500;
  color: var(--heading);
}
.article__byline a:hover {
  color: var(--accent);
}
.article__subtitle {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

/* Caption under the featured image. */
.article__caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Listing pages (category, tag, author, /page/N/). */
.archive .article__crumbs {
  margin-bottom: 6px;
}
.archive__kicker {
  font-weight: 400;
  color: var(--muted);
}
.archive__empty {
  margin-top: 32px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}
.archive .pagination {
  margin-top: 48px;
}

/* Related articles next to the sidebar on article pages. */
.related__row {
  margin-top: 24px;
}
.related__row .latest__grid {
  margin-top: 0;
}

/* Home sections after the first one have no sidebar. */
.cms-row--full {
  grid-template-columns: 1fr;
}
.section-block + .section-block {
  margin-top: 64px;
}

/* Skip link: hidden until focused with the keyboard (WCAG 2.4.1). */
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--heading);
  box-shadow: var(--shadow);
}
#main-content {
  scroll-margin-top: var(--header-h);
}

/* Images the clone renders with next/image "fill": the banner slot's logo and
   the article sidebar's news tiles cover their box. */
.banner-slot__image,
.post-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Consent notice for the visitor statistics (templates.mjs consentBanner, site.js).
   Bottom left, clear of the translate button; never covers the whole page. */
.consent {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 35;
  max-width: 480px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; }
.consent__text a { color: var(--accent); text-decoration: underline; }
.consent__actions { display: flex; gap: 10px; margin-top: 12px; }
/* Same look for both: rejecting is as easy as accepting. */
.consent__btn {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.consent__btn:hover { background: var(--navy-deep); }
.consent__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 599px) {
  .consent { right: calc(76px + env(safe-area-inset-right)); max-width: none; }
}
