/* AESA Intelligence News — public website (homepage ticker and /intelligence/news).
 * Uses the public site's tokens and type scale: the homepage .sec-eye / .sec-h headings
 * and the .pub-c "Recent Intelligence" cards. */

/* Component display rules must never override the hidden attribute. */
[data-aesa-news-ticker][hidden], .aesa-ticker [hidden], .aesa-news-page [hidden] { display: none !important; }

.aesa-news-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Category label: the site's small green type label (as .pub-c__type). */
.aesa-news-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--pt-green, #16A34A); line-height: 1.3;
}
.aesa-news-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.aesa-news-flag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pt-text-muted, #9CA3AF); }

/* ── Homepage ticker ───────────────────────────────────────────────────── */
/* Faint olive tint (the site's muted olive green, --pt-green-muted #548135) marks the news area. */
.aesa-ticker {
  background: linear-gradient(180deg, rgba(84,129,53,0.075) 0%, rgba(84,129,53,0.045) 100%);
  border-top: 1px solid rgba(84,129,53,0.14); border-bottom: 1px solid rgba(84,129,53,0.14);
}
.aesa-ticker { --aesa-ticker-gutter: max(64px, calc((100% - 1200px) / 2 + 64px)); padding-bottom: 30px; }
@media (max-width: 860px) { .aesa-ticker { --aesa-ticker-gutter: 24px; padding-bottom: 24px; } }
.aesa-ticker__inner { max-width: 1200px; margin: 0 auto; padding: 48px 64px 0; }
@media (max-width: 860px) { .aesa-ticker__inner { padding: 40px 24px 0; } }
.aesa-ticker__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.aesa-ticker__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--pt-green, #16A34A); margin-bottom: 8px;
}
.aesa-ticker__live { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-green, #16A34A); box-shadow: 0 0 0 0 rgba(22,163,74,0.45); animation: aesa-ticker-pulse 2.4s infinite; }
@keyframes aesa-ticker-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.45); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.aesa-ticker__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--pt-text-primary, #111827); margin: 0; line-height: 1.3; }
.aesa-ticker__actions { display: flex; align-items: center; gap: 14px; }
.aesa-ticker__all { font-size: 0.79rem; font-weight: 700; color: var(--pt-green, #16A34A); text-decoration: none; padding: 6px 0; }
.aesa-ticker__all:hover { text-decoration: underline; }
.aesa-ticker__toggle {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px;
  font: inherit; font-size: 0.74rem; font-weight: 600; color: var(--pt-text-secondary, #6B7280);
  background: var(--pt-surface-base, #fff); border: 1px solid var(--pt-border-default, #E5E7EB); border-radius: 8px; cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.aesa-ticker__toggle:hover { border-color: var(--pt-green, #16A34A); color: var(--pt-green, #16A34A); }
.aesa-ticker__toggle .msi { font-size: 16px; }
.aesa-ticker__toggle:focus-visible, .aesa-ticker a:focus-visible { outline: 2px solid var(--pt-green, #16A34A); outline-offset: 2px; border-radius: 6px; }

/* Full-bleed moving row: spans the section edge to edge and fades only at the window edges,
   so no card is cut at the content column. Vertical padding leaves room for the hover shadow. */
.aesa-ticker__viewport {
  overflow: hidden; position: relative; padding: 14px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(28px, 7vw, 120px), #000 calc(100% - clamp(28px, 7vw, 120px)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 clamp(28px, 7vw, 120px), #000 calc(100% - clamp(28px, 7vw, 120px)), transparent 100%);
}
.aesa-ticker__track { display: flex; width: max-content; will-change: transform; }
/* Without motion: a scrollable row that starts on the page column. */
.aesa-ticker.is-static .aesa-ticker__viewport {
  overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory;
  padding-left: var(--aesa-ticker-gutter); padding-right: var(--aesa-ticker-gutter); scroll-padding-left: var(--aesa-ticker-gutter);
}
.aesa-ticker.is-static .aesa-ticker-card { scroll-snap-align: start; }

/* Ticker card: the homepage .pub-c card. */
.aesa-ticker-card {
  flex: 0 0 auto; width: 300px; margin-right: 12px; padding: 18px;
  background: var(--pt-surface-base, #fff); border: 1px solid rgba(84,129,53,0.16); border-radius: 12px;
  display: flex; flex-direction: column; gap: 7px;
  transition: border-color 150ms, box-shadow 150ms;
}
.aesa-ticker-card:hover { border-color: var(--pt-green, #16A34A); box-shadow: 0 4px 16px rgba(22,163,74,0.08); }
@media (max-width: 600px) { .aesa-ticker-card { width: 270px; } }
.aesa-ticker-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aesa-ticker-card__date { font-size: 0.67rem; color: var(--pt-text-muted, #9CA3AF); white-space: nowrap; }
.aesa-ticker-card__headline { font-size: 0.84rem; font-weight: 700; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aesa-ticker-card__headline a { color: var(--pt-text-primary, #111827); text-decoration: none; }
.aesa-ticker-card__headline a:hover { color: var(--pt-green, #16A34A); }
.aesa-ticker-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto;
  font-size: 0.67rem; color: var(--pt-text-muted, #9CA3AF); border-top: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); padding-top: 7px;
}
.aesa-ticker-card__authority { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aesa-ticker-card__foot .aesa-ticker-card__date { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .aesa-ticker__live { animation: none; }
  .aesa-ticker-card { transition: none; }
}

/* ── Public news page ──────────────────────────────────────────────────── */
.aesa-news-page { max-width: 1200px; margin: 0 auto; padding: 0 64px 72px; }
@media (max-width: 860px) { .aesa-news-page { padding: 0 24px 56px; } }
.aesa-news-hero { padding: 64px 0 32px; border-bottom: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); margin-bottom: 28px; }
@media (max-width: 860px) { .aesa-news-hero { padding: 44px 0 26px; } }
.aesa-news-hero__eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--pt-green, #16A34A); background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.18);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.aesa-news-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.12; color: var(--pt-text-primary, #111827); margin: 0 0 16px; }
.aesa-news-hero h1 .hl { color: var(--pt-green, #16A34A); }
.aesa-news-hero p { font-size: 1.05rem; line-height: 1.78; color: var(--pt-text-secondary, #6B7280); max-width: 720px; margin: 0; }
@media (max-width: 600px) { .aesa-news-hero p { font-size: 0.95rem; } }

.aesa-news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.aesa-news-filter {
  font: inherit; font-size: 0.79rem; font-weight: 600; min-height: 36px; padding: 0 16px; border-radius: 20px; cursor: pointer;
  background: var(--pt-surface-base, #fff); color: var(--pt-text-secondary, #6B7280); border: 1px solid var(--pt-border-default, #E5E7EB);
  transition: border-color 150ms, color 150ms, background 150ms;
}
.aesa-news-filter:hover { border-color: var(--pt-green, #16A34A); color: var(--pt-green, #16A34A); }
.aesa-news-filter[aria-pressed="true"] { background: var(--pt-green, #16A34A); color: #fff; border-color: var(--pt-green, #16A34A); }
.aesa-news-filter:focus-visible, .aesa-news-more:focus-visible, .aesa-news-card a:focus-visible, .aesa-news-dialog a:focus-visible, .aesa-news-dialog button:focus-visible { outline: 2px solid var(--pt-green, #16A34A); outline-offset: 2px; }

.aesa-news-status { font-size: 0.85rem; color: var(--pt-text-secondary, #6B7280); padding: 28px; border: 1px dashed var(--pt-border-default, #E5E7EB); border-radius: 12px; text-align: center; background: var(--pt-surface-elevated, #F8FAFB); margin: 0; }
.aesa-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .aesa-news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aesa-news-list { grid-template-columns: 1fr; } }

/* News card: the homepage .pub-c card at page scale. */
.aesa-news-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  background: var(--pt-surface-elevated, #F8FAFB); border: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); border-radius: 12px;
  transition: border-color 150ms, box-shadow 150ms;
}
.aesa-news-card:hover { border-color: var(--pt-green, #16A34A); box-shadow: 0 4px 16px rgba(22,163,74,0.08); }
.aesa-news-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aesa-news-card__headline { font-size: 0.92rem; font-weight: 700; line-height: 1.4; margin: 0; }
.aesa-news-card__headline a { color: var(--pt-text-primary, #111827); text-decoration: none; }
.aesa-news-card__headline a:hover { color: var(--pt-green, #16A34A); }
.aesa-news-card__summary { font-size: 0.78rem; line-height: 1.66; color: var(--pt-text-secondary, #6B7280); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.aesa-news-card__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.67rem; color: var(--pt-text-muted, #9CA3AF); border-top: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); padding-top: 8px; margin-top: auto; }
.aesa-news-source { font-size: 0.76rem; font-weight: 700; color: var(--pt-green, #16A34A); text-decoration: none; align-self: flex-start; }
.aesa-news-source::after { content: ' \2197'; }
.aesa-news-source:hover { text-decoration: underline; }
.aesa-news-more {
  display: block; margin: 28px auto 0; font: inherit; font-size: 0.82rem; font-weight: 700; min-height: 42px; padding: 0 22px;
  border-radius: 8px; border: 1px solid var(--pt-green, #16A34A); color: var(--pt-green, #16A34A); background: var(--pt-surface-base, #fff); cursor: pointer;
}
.aesa-news-more:hover { background: rgba(22,163,74,0.06); }
.aesa-news-disclaimer { margin: 36px 0 0; font-size: 0.72rem; line-height: 1.65; color: var(--pt-text-muted, #9CA3AF); border-top: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); padding-top: 18px; }

/* Story view */
.aesa-news-dialog {
  /* The site reset removes the user-agent auto margin; restore centring explicitly. */
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto;
  padding: 0; border: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); border-radius: 14px;
  background: var(--pt-surface-base, #fff); color: var(--pt-text-primary, #111827);
  box-shadow: 0 24px 64px rgba(17,24,39,0.18);
}
.aesa-news-dialog::backdrop { background: rgba(17,24,39,0.45); }
.aesa-news-dialog__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px 14px 0; background: var(--pt-surface-base, #fff); }
.aesa-news-dialog__close {
  font: inherit; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--pt-border-default, #E5E7EB); background: var(--pt-surface-base, #fff); color: var(--pt-text-secondary, #6B7280);
  cursor: pointer; font-weight: 600; font-size: 0.76rem;
}
.aesa-news-dialog__close:hover { border-color: var(--pt-green, #16A34A); color: var(--pt-green, #16A34A); }
.aesa-news-dialog__close .msi { font-size: 16px; }
.aesa-news-dialog__body { padding: 2px 28px 28px; }
@media (max-width: 600px) { .aesa-news-dialog__body { padding: 2px 18px 22px; } }
.aesa-news-dialog__headline { font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin: 10px 0 14px; color: var(--pt-text-primary, #111827); }
.aesa-news-notice {
  font-size: 0.76rem; line-height: 1.6; color: var(--pt-text-secondary, #6B7280);
  background: rgba(22,163,74,0.04); border: 1px solid rgba(22,163,74,0.18); border-left: 3px solid var(--pt-green, #16A34A);
  border-radius: 8px; padding: 10px 12px; margin: 0 0 16px;
}
.aesa-news-dialog__summary { font-size: 0.88rem; line-height: 1.75; color: var(--pt-text-secondary, #6B7280); margin: 0 0 18px; }
.aesa-news-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.79rem; margin: 0 0 20px; }
.aesa-news-facts dt { color: var(--pt-text-muted, #9CA3AF); }
.aesa-news-facts dd { margin: 0; color: var(--pt-text-primary, #111827); }
.aesa-news-dialog__sub { font-size: 0.69rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--pt-green, #16A34A); margin: 0 0 10px; }
.aesa-news-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aesa-news-sources li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--pt-surface-elevated, #F8FAFB); border: 1px solid var(--pt-border-subtle, rgba(0,0,0,0.06)); border-radius: 10px; }
.aesa-news-sources__role { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pt-text-muted, #9CA3AF); }
.aesa-news-sources__meta { font-size: 0.67rem; color: var(--pt-text-muted, #9CA3AF); }

/* Full intelligence and offer copy: never truncate the requirement. */
.aesa-news-card__summary{display:block;overflow:visible;-webkit-line-clamp:unset}
.aesa-news-card__summary{font-size:.93rem;line-height:1.7}.aesa-news-card__headline{font-size:1.08rem;line-height:1.45}
.aesa-news-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
@media(max-width:700px){.aesa-news-list{grid-template-columns:1fr}}
