/* Scoped to the non-sticky strip: the existing header and page remain untouched. */
.news-ticker {
  --news-burgundy: #451c28;
  --news-champagne: #f0dfbc;
  position: relative;
  background: var(--news-burgundy);
  color: var(--news-champagne);
  border-bottom: 1px solid #72503d;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.news-ticker [hidden] { display: none !important; }
.news-ticker__inner {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--max));
  margin-inline: auto;
  min-height: calc(48px - 3mm);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'label headline controls';
  align-items: center;
  gap: 16px;
}
.news-ticker__label {
  grid-area: label;
  margin: 0;
  padding-inline-end: 16px;
  border-inline-end: 1px solid #a38a69;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.news-ticker__viewport {
  grid-area: headline;
  display: grid;
  min-width: 0;
  height: 2em;
  overflow: hidden;
}
.news-ticker__headline {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 3px 0;
  color: var(--news-champagne);
  text-decoration: none;
  border-radius: 3px;
}
.news-ticker__headline,
.news-ticker__headline > span { font: inherit; letter-spacing: 0; }
.news-ticker__headline > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.news-ticker__headline:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.news-ticker__headline:focus-visible {
  outline: 2px solid var(--news-champagne);
  outline-offset: -2px;
}
.news-ticker__controls { grid-area: controls; display: flex; gap: 0; justify-self: end; justify-content: flex-end; }
.news-ticker__control, .news-ticker__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
/* Compact desktop visuals retain a 44px transparent touch target. */
.news-ticker__control { position: relative; min-height: 32px; padding-block: 7px; flex-basis: 36px; width: 36px; padding-inline: 9px; }
.news-ticker__control::after { content: ''; position: absolute; inset-inline: 0; inset-block: -6px; }
.news-ticker__control:hover { background: #ffffff14; }
.news-ticker__control[aria-pressed='true'] { background: #ffffff1c; }
.news-ticker__control:focus-visible {
  outline: 2px solid var(--news-champagne);
  outline-offset: 0;
}
.news-ticker__headline[data-motion='out'] { animation: news-ticker-out 400ms ease-in-out both; pointer-events: none; }
.news-ticker__headline[data-motion='in'] { animation: news-ticker-in 400ms ease-in-out both; }
@keyframes news-ticker-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }
@keyframes news-ticker-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.news-ticker__dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #bca57b;
  border-radius: 8px;
  background: #fffaf0;
  color: #38242a;
  font: 16px/1.6 'DM Sans', Arial, sans-serif;
}
.news-ticker__dialog:not([open]) { display: none; }
.news-ticker__dialog::backdrop { background: #170b10b8; }
.news-ticker__dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.news-ticker__dialog-label { margin: 0; color: #6b3b46; font: 600 16px/1.4 'DM Sans', Arial, sans-serif; letter-spacing: 0; }
.news-ticker__close { flex-shrink: 0; }
.news-ticker__close:hover { background: #451c2810; }
.news-ticker__full-title {
  margin: 12px 0 20px;
  font: 500 21px/1.5 'DM Sans', Arial, sans-serif;
  letter-spacing: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.news-ticker__terms { margin: 0 0 18px; padding-inline-start: 14px; border-inline-start: 2px solid #8d6b43; font-size: 14px; }
.news-ticker__context, .news-ticker__social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 10px;
  color: #602b3b;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-ticker__social { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.news-ticker__dialog :focus-visible { outline: 2px solid #602b3b; outline-offset: 3px; }
.news-ticker__full-title:focus { outline: none; }
@media (max-width: 760px) {
  .news-ticker { font-size: 14px; }
  .news-ticker__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'headline controls';
    gap: 8px;
    min-height: calc(68px - 3mm);
    padding-block: calc(12px - 1.5mm);
  }
  .news-ticker__label { display: none; }
  .news-ticker__viewport { height: 2.7em; }
  .news-ticker__headline { padding-block: 0; }
  .news-ticker__headline > span { -webkit-line-clamp: 2; line-clamp: 2; }
  .news-ticker__controls { gap: 0; }
  .news-ticker__control { min-height: 44px; padding-block: 10px; }
  .news-ticker__control::after { inset-block: 0; }
  .news-ticker__dialog { padding: 18px; font-size: 14.85px; }
  .news-ticker__terms { font-size: 14.85px; }
  .news-ticker__full-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker__headline[data-motion] { animation: none; transform: none; }
}
