/* ==========================================================================
   Aviation24news — Component stylesheet
   Everything the homepage mockup did not cover: breaking news, the Newsroom
   category dropdown and filter bar, single-article layout, the 1–3 image
   gallery, About / Contact / Social pages, pagination and search.
   Same tokens, same mobile-first ordering as style.css.
   ========================================================================== */

/* ------------------------------ Breaking news ------------------------------ */
.breaking {
  background-color: var(--color-alert);
  color: #fff;
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
  min-width: 0;
}

.breaking__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.breaking__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #fff;
  animation: a24-pulse 1.8s ease-in-out infinite;
}

@keyframes a24-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.breaking__items {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.breaking__items::-webkit-scrollbar {
  display: none;
}

.breaking__link {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

.breaking__link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .breaking__label {
    font-size: 0.72rem;
  }

  .breaking__link {
    font-size: 0.86rem;
  }
}

/* --------------------------- Nav dropdown (desktop) ------------------------ */
.main-nav .menu-item-has-children > .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 12px;
  border-left: 2px solid var(--color-border);
  margin-block: 2px 6px;
}

.main-nav .sub-menu a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding-block: 8px;
}

.main-nav .sub-menu a:hover {
  color: var(--color-accent);
}

@media (min-width: 900px) {
  .main-nav .menu-item-has-children {
    position: relative;
  }

  /* Keeps the caret glued to its label. */
  .main-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .main-nav .menu-item-has-children > a::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition-fast);
  }

  .main-nav .menu-item-has-children:hover > a::after,
  .main-nav .menu-item-has-children:focus-within > a::after {
    transform: translateY(1px) rotate(225deg);
  }

  .main-nav .menu-item-has-children > .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -14px;
    min-width: 232px;
    padding: 8px;
    margin: 0;
    border: 1px solid var(--color-border);
    border-left-width: 1px;
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  /* Invisible bridge so the pointer can travel from label to panel. */
  .main-nav .menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }

  .main-nav .menu-item-has-children:hover > .sub-menu,
  .main-nav .menu-item-has-children:focus-within > .sub-menu,
  .main-nav .menu-item-has-children.is-expanded > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .sub-menu a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border-bottom: none;
    white-space: nowrap;
  }

  .main-nav .sub-menu a:hover {
    background-color: var(--color-bg-alt);
    border-bottom-color: transparent;
  }
}

/* ------------------------------- Page intro -------------------------------- */
.page-intro {
  padding-top: 26px;
}

.page-intro__title {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.page-intro__lede {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 68ch;
}

@media (min-width: 640px) {
  .page-intro__title {
    font-size: 2.1rem;
  }

  .page-intro__lede {
    font-size: 1rem;
  }
}

/* ------------------------------ Newsroom filters --------------------------- */
.filters {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
}

.filters__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filters__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.filters select,
.filters input[type='date'],
.filters input[type='search'] {
  width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filters select:focus,
.filters input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.filters__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.filters__reset {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  align-self: center;
}

.filters__reset:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.filters__summary {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .filters {
    padding: 20px;
  }

  .filters__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .filters__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ------------------------------ Archive grid ------------------------------- */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.empty-state {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
}

.empty-state__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ------------------------------- Pagination -------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.pagination a.page-numbers:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.pagination .page-numbers.current {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

/* -------------------------------- Article ---------------------------------- */
.article {
  padding-top: 22px;
}

.article__head {
  max-width: 78ch;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.article__title {
  font-family: var(--font-headline);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.article__lede {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.article__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.article__byline-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
}

.article__byline-author:hover {
  color: var(--color-accent);
}

.article__byline-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--color-placeholder-bg-1), var(--color-placeholder-bg-2));
  flex-shrink: 0;
}

.article__byline-sep {
  opacity: 0.5;
}

.article__body {
  max-width: 72ch;
  margin-top: 24px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article__body > * + * {
  margin-top: 1.15em;
}

.article__body h2,
.article__body h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin-top: 1.6em;
}

.article__body h2 { font-size: 1.3rem; }
.article__body h3 { font-size: 1.12rem; }

.article__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-text);
}

.article__body ul,
.article__body ol {
  padding-left: 20px;
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li + li {
  margin-top: 0.4em;
}

.article__body figure {
  margin: 1.4em 0;
}

.article__body figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .article__title {
    font-size: 2.3rem;
  }

  .article__lede {
    font-size: 1.1rem;
  }

  .article__body {
    font-size: 1.06rem;
  }
}

@media (min-width: 900px) {
  .article__title {
    font-size: 2.6rem;
  }
}

/* ------------------------- Article gallery (1–3 images) --------------------- */
/* Mobile: images stack vertically — nothing to swipe, nothing to miss.
   Desktop (>=900px): one image at a time with arrow controls. */
.gallery {
  margin-top: 22px;
  /* Slightly wider than the 72ch body column so the photography leads the
     page without dwarfing the text it belongs to. */
  max-width: 860px;
}

.gallery__viewport {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery__slide {
  margin: 0;
}

.gallery__slide .media {
  aspect-ratio: 16 / 9;
}

.gallery__caption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.gallery__controls {
  display: none;
}

@media (min-width: 900px) {
  .gallery--carousel .gallery__viewport {
    position: relative;
    display: block;
  }

  .gallery--carousel .gallery__slide {
    display: none;
  }

  .gallery--carousel .gallery__slide.is-active {
    display: block;
  }

  /* Only worth arrows when there is more than one frame. */
  .gallery--carousel.has-multiple .gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
  }

  .gallery__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .gallery__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  .gallery__arrow:hover:not(:disabled) {
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
  }

  .gallery__arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .gallery__arrow svg {
    width: 16px;
    height: 16px;
  }

  .gallery__counter {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
  }
}

/* ------------------------------ Share buttons ------------------------------ */
.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.share__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-right: 2px;
}

.share__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.share__btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.share__btn svg {
  width: 17px;
  height: 17px;
}

.share__copied {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.share__copied.is-visible {
  opacity: 1;
}

/* ------------------------------ Author profile ----------------------------- */
.author-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 24px;
}

.author-hero__photo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--color-placeholder-bg-1), var(--color-placeholder-bg-2));
  flex-shrink: 0;
}

.author-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-hero__photo svg {
  width: 34px;
  height: 34px;
  stroke-width: 1;
  color: var(--color-placeholder-fg);
  opacity: 0.7;
}

.author-hero__name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.author-hero__role {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.author-hero__bio {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 68ch;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 14px;
}

.author-meta__item {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.author-meta__key {
  font-weight: 600;
  color: var(--color-text);
}

.author-meta a:hover {
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .author-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 30px;
  }

  .author-hero__photo {
    width: 108px;
    height: 108px;
  }
}

/* ------------------------------- Team grid --------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The team grid reuses .author-card but should not be width-capped. */
.team-grid .author-card {
  flex: 1 1 auto;
  max-width: none;
}

/* ------------------------------- Prose blocks ------------------------------ */
.prose {
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--color-text);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-top: 1.5em;
}

.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.08rem; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  list-style: disc;
}

.prose ol { list-style: decimal; }

/* ------------------------------ Contact / forms ---------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field .req {
  color: var(--color-alert);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* Honeypot — hidden from people, visible to naive bots. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
}

.form-notice--ok {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.form-notice--err {
  border-color: var(--color-alert);
  color: var(--color-alert);
}

.contact-aside {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 22px;
}

.contact-aside h2 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-aside__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-aside__key {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contact-aside__val {
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-aside__val a:hover {
  color: var(--color-accent);
}

/* -------------------------------- Social page ------------------------------ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.social-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (hover: hover) {
  .social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

.social-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.social-card__icon svg {
  width: 21px;
  height: 21px;
}

.social-card__name {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
}

.social-card__handle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.social-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Affiliates & sponsors live on the Social page (Agreement, Clause 1.1). */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 4px;
}

.partner {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.partner img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------- 404 ------------------------------------- */
.error-page {
  text-align: center;
  padding-block: 60px;
}

.error-page__code {
  font-family: var(--font-headline);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.error-page__title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 12px;
}

.error-page p {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.error-page .btn {
  margin-top: 24px;
}

/* ------------------------- About: ruled section headings -------------------
   Client feedback item 3 — a divider beneath each heading instead of plain
   space. Switchable in the Customizer so both treatments can be compared. */
.prose--ruled h2,
.prose--ruled h3 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

/* The first heading sits directly under the intro, so it does not need the
   extra top margin the default prose rhythm gives it. */
.prose--ruled > h2:first-child {
  margin-top: 0;
}

/* ---------------------------- Breaking news badge --------------------------
   Client feedback item 6 — breaking stories carry a distinct label. */
.badge-breaking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  background-color: var(--color-alert);
  border: 1px solid var(--color-alert);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}

.badge-breaking__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: a24-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* Sits above the card's stretched link so the rest of the card stays clickable. */
.card__meta .badge-breaking,
.latest-feed__meta .badge-breaking {
  position: relative;
  z-index: 1;
}

/* ------------------------ Breaking news homepage section -------------------
   Sits at the very top of the homepage. The whole block is tinted so it reads
   as a distinct band rather than another row of cards. */
.breaking-lead {
  border: 1px solid var(--color-alert);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: color-mix(in srgb, var(--color-alert) 5%, var(--color-surface));
}

.breaking-lead__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-alert);
}

.breaking-lead__heading h2 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-alert);
}

.breaking-lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* The newest breaking story leads at double width once there is room. */
.breaking-lead__grid .card:first-child .card__title {
  font-size: 1.2rem;
}

@media (min-width: 640px) {
  .breaking-lead {
    padding: 20px;
  }

  .breaking-lead__heading h2 {
    font-size: 1.5rem;
  }

  .breaking-lead__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .breaking-lead__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .breaking-lead__grid .card:first-child .card__title {
    font-size: 1.3rem;
  }
}

/* Article page: the label sits with the category tags. */
.article__tags .badge-breaking {
  align-self: center;
}

/* Pulse marker beside the Breaking News heading. */
.breaking-lead__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-alert);
  animation: a24-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.breaking-lead__heading .view-link {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-alert);
  white-space: nowrap;
}

.breaking-lead__heading .view-link:hover {
  text-decoration: underline;
}

/* A single breaking story runs as a wide lead — image beside the text —
   rather than one full-width card with an oversized photograph. */
@media (min-width: 640px) {
  .breaking-lead__grid--single {
    grid-template-columns: 1fr;
  }

  .breaking-lead__grid--single .card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto;
    column-gap: 20px;
    align-items: start;
  }

  .breaking-lead__grid--single .card .media {
    grid-row: 1 / -1;
    height: 100%;
  }

  .breaking-lead__grid--single .card .media img {
    height: 100%;
  }

  .breaking-lead__grid--single .card__meta {
    grid-column: 2;
    margin-top: 0;
  }

  .breaking-lead__grid--single .card__title {
    grid-column: 2;
    font-size: 1.5rem;
  }

  .breaking-lead__grid--single .card__deck {
    grid-column: 2;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .breaking-lead__grid--single .card__byline {
    grid-column: 2;
  }
}

@media (min-width: 1100px) {
  .breaking-lead__grid--single .card__title {
    font-size: 1.7rem;
  }
}
