/*
 * Station Timeline — museum chronology, WMRN interior refresh.
 * Uses the original page-station-timeline.php history and navigation.
 * This is presentation only: no item text, date, or customizer data replaced.
 */
html body:not(.home) #content .page-hero:has(#history-hero-title) .page-hero-bg {
  object-position:center 46% !important;
  transform:none !important; /* Do not let legacy parallax move the split-image panel. */
}
html body:not(.home) #content .page-hero:has(#history-hero-title) .page-hero-title {
  max-width:620px;
}
html body:not(.home) #content .wmrn-history-facts {
  position:relative;
  z-index:2;
  width:100%;
  background:#0D2B63;
  border-top:1px solid rgba(248,217,143,.45);
  border-bottom:3px solid #D8A846;
}
html body:not(.home) #content .wmrn-history-facts__inner {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-width:1280px;
  width:calc(100% - 64px);
  margin:0 auto;
}
html body:not(.home) #content .wmrn-history-facts__item {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  padding:24px clamp(13px,2vw,30px) 25px;
  border-left:1px solid rgba(248,217,143,.25);
}
html body:not(.home) #content .wmrn-history-facts__item:first-child {
  border-left:0;
  padding-left:0;
}
html body:not(.home) #content .wmrn-history-facts__item:last-child {padding-right:0;}
html body:not(.home) #content .wmrn-history-facts__kicker {
  color:#F8D98F;
  font:800 11px/1.4 system-ui,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
html body:not(.home) #content .wmrn-history-facts__item strong {
  color:#FFFDF8;
  font:700 clamp(20px,2vw,29px)/1.05 "EB Garamond",Georgia,serif;
  letter-spacing:-.01em;
}
html body:not(.home) #content .wmrn-history-facts__item > span:last-child {
  color:#E5E8EE;
  font:500 12px/1.5 system-ui,sans-serif;
}

/* Compact interpretive lead-in, not another deep empty content band. */
html body:not(.home) #content .wmrn-history-facts + section.section-py-sm {
  margin:0 !important;
  padding:30px 20px !important;
  background:#FFFDF8;
}
html body:not(.home) #content .wmrn-history-facts + section.section-py-sm .wmrn-container-prose {
  max-width:1080px !important;
  margin:0 auto !important;
}
html body:not(.home) #content .wmrn-history-facts + section.section-py-sm #history-intro {
  margin:0;
  color:#243A55;
  font:400 clamp(17px,1.4vw,20px)/1.65 "EB Garamond",Georgia,serif;
}
html body:not(.home) #content .wmrn-history-facts ~ .ornament-divider {
  display:none !important;
}

/* The chronology is a museum exhibit with a sticky chronological index. */
html body:not(.home) #content #timeline-section {
  padding:clamp(45px,4.8vw,76px) 0 clamp(55px,6vw,95px) !important;
  background:#F5F1E9;
}
html body:not(.home) #content #timeline-section > .wmrn-container {
  width:calc(100% - 64px);
  max-width:1280px;
  margin-inline:auto;
}
html body:not(.home) #content #timeline-section > .wmrn-container > .fade-in:first-child {
  text-align:left !important;
  margin:0 0 36px !important;
  opacity:1 !important;
  transform:none !important;
}
html body:not(.home) #content #history-timeline-heading {
  position:relative;
  padding-top:26px;
  margin:0 !important;
  color:#061431;
  font:700 clamp(39px,4.5vw,66px)/1.04 "EB Garamond",Georgia,serif !important;
  letter-spacing:-.025em;
}
html body:not(.home) #content #history-timeline-heading:before {
  content:"THE WMRN BROADCAST CHRONOLOGY";
  position:absolute;
  top:0;
  left:0;
  color:#95691E;
  font:800 12px/1.4 system-ui,sans-serif;
  letter-spacing:.13em;
}

/* Desktop index stays clickable, while native timeline JS tracks active era. */
@media(min-width:980px) {
  html body:not(.home) #content #timeline-section .timeline-mobile {
    display:none !important;
  }
  html body:not(.home) #content #timeline-section .timeline-desktop {
    display:grid !important;
    grid-template-columns:minmax(210px,260px) minmax(0,1fr) !important;
    gap:clamp(28px,3.5vw,55px) !important;
    align-items:start;
  }
  html body:not(.home) #content #timeline-section .timeline-sidebar {
    position:sticky !important;
    align-self:start;
    top:124px !important;
    margin:0 !important;
    padding:24px 22px 24px 24px;
    border-top:4px solid #D8A846;
    border-radius:3px;
    color:#FFFDF8;
    background:linear-gradient(160deg,#0D2B63,#061431) !important;
    box-shadow:0 14px 27px rgba(6,20,49,.14);
  }
  html body:not(.home) #content #timeline-section .timeline-sidebar:before {
    content:"BROWSE BY ERA";
    display:block;
    margin:0 0 17px 0;
    color:#F8D98F;
    font:800 11px/1.3 system-ui,sans-serif;
    letter-spacing:.15em;
  }
  html body:not(.home) #content #timeline-section .timeline-sidebar-line {
    top:12px;
    left:13px;
    background:rgba(216,168,70,.32);
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item {
    display:flex;
    align-items:center;
    width:100%;
    min-height:42px;
    gap:12px;
    margin:1px 0;
    padding:9px 12px;
    text-align:left;
    color:#E7E9EF !important;
    border:1px solid transparent;
    border-radius:3px;
    background:transparent !important;
    cursor:pointer;
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item:hover,
  html body:not(.home) #content #timeline-section .timeline-nav-item:has(.timeline-dot.active) {
    color:#FFFDF8 !important;
    border-color:rgba(248,217,143,.22);
    background:rgba(216,168,70,.17) !important;
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item .timeline-dot {
    width:12px;
    height:12px;
    flex:0 0 12px;
    background:#061431;
    border:2px solid #B88A38;
    border-radius:100%;
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item .timeline-dot.active {
    background:#D8A846;
    border-color:#F8D98F;
    box-shadow:0 0 0 3px rgba(216,168,70,.22);
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item .timeline-year {
    color:#EDF0F6 !important;
    font:700 16px/1.3 system-ui,sans-serif !important;
    letter-spacing:0;
  }
  html body:not(.home) #content #timeline-section .timeline-nav-item:has(.timeline-dot.active) .timeline-year {
    color:#F8D98F !important;
  }
  html body:not(.home) #content #timeline-section .timeline-content-sections {
    position:relative;
    display:flex;
    flex-direction:column;
    gap:30px !important;
    margin:0;
    padding:0 0 0 25px;
  }
  html body:not(.home) #content #timeline-section .timeline-content-sections:before {
    content:"";
    position:absolute;
    left:0;
    top:36px;
    bottom:25px;
    width:2px;
    background:linear-gradient(180deg,#D8A846 0%,rgba(216,168,70,.4) 75%,rgba(216,168,70,.12) 100%);
  }
  html body:not(.home) #content #timeline-section .timeline-section-item:before {
    content:"";
    position:absolute;
    top:37px;
    left:-33px;
    width:17px;
    height:17px;
    background:#D8A846;
    border:4px solid #F5F1E9;
    border-radius:50%;
    box-shadow:0 0 0 1px #B88A38;
  }
}

/* Story cards: larger writing, clear headings, and original source images. */
html body:not(.home) #content #timeline-section .timeline-content {
  min-width:0;
}
html body:not(.home) #content #timeline-section .timeline-watermark {
  display:none !important;
}
html body:not(.home) #content #timeline-section .timeline-section-item {
  padding:clamp(26px,3vw,44px) !important;
  margin:0 !important;
  background:#FFFDF8 !important;
  border:1px solid rgba(13,43,99,.17) !important;
  border-top:4px solid #D8A846 !important;
  border-radius:3px !important;
  box-shadow:0 10px 25px rgba(6,20,49,.07) !important;
  scroll-margin-top:126px;
}
html body:not(.home) #content #timeline-section .timeline-era-label {
  display:inline-flex;
  padding:7px 10px;
  margin:0 0 16px;
  color:#061431 !important;
  background:#F1E4C4;
  border-left:3px solid #B88A38;
  font:800 12px/1.2 system-ui,sans-serif !important;
  letter-spacing:.1em;
}
html body:not(.home) #content #timeline-section .timeline-section-title {
  max-width:830px;
  color:#061431 !important;
  font:700 clamp(31px,3.1vw,45px)/1.07 "EB Garamond",Georgia,serif !important;
  margin:0 0 24px;
  letter-spacing:-.025em;
}
html body:not(.home) #content #timeline-section .timeline-section-text {
  max-width:78ch !important;
}
html body:not(.home) #content #timeline-section .timeline-section-text p {
  color:#30425F !important;
  font:400 clamp(16px,1.25vw,18px)/1.76 "EB Garamond",Georgia,serif !important;
  margin:0 0 15px;
}
html body:not(.home) #content #timeline-section .timeline-section-text p:last-child {
  margin-bottom:0;
}
html body:not(.home) #content #timeline-section .timeline-img-wrap {
  width:100%;
  max-width:100%;
  margin:0 0 25px;
  border-radius:2px;
}
html body:not(.home) #content #timeline-section .timeline-img-wrap img {
  height:auto;
  max-height:390px;
  object-fit:contain;
  transition:none;
}
html body:not(.home) #content #timeline-section .timeline-img-wrap img:hover {
  transform:none;
}

/* The native page includes two chronology variants; use the original mobile
 * content below 980px so long entries remain comfortably readable. */
@media(max-width:979px) {
  html body:not(.home) #content #timeline-section .timeline-desktop {
    display:none !important;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile {
    display:flex !important;
    flex-direction:column;
    gap:20px;
    position:relative;
    padding:0 0 0 22px;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile:before {
    content:"";
    position:absolute;
    top:25px;
    bottom:25px;
    left:7px;
    width:2px;
    background:rgba(184,138,56,.55);
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-item {
    position:relative;
    margin:0 !important;
    padding:clamp(21px,4vw,32px) !important;
    background:#FFFDF8 !important;
    border:1px solid rgba(13,43,99,.17) !important;
    border-top:4px solid #D8A846 !important;
    border-radius:3px !important;
    box-shadow:0 7px 19px rgba(6,20,49,.065);
    opacity:1 !important;
    transform:none !important;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-item:before {
    content:"";
    position:absolute;
    top:27px;
    left:-24px;
    width:14px;
    height:14px;
    border-radius:100%;
    border:3px solid #F5F1E9;
    background:#B88A38;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-era {
    display:inline-flex;
    margin:0 0 13px;
    padding:7px 11px;
    background:#F1E4C4;
    color:#061431 !important;
    border-left:3px solid #B88A38;
    font:800 12px/1.3 system-ui,sans-serif !important;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-title {
    margin:0 0 16px;
    color:#061431;
    font:700 clamp(29px,4vw,39px)/1.09 "EB Garamond",Georgia,serif;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-text {
    color:#30425F;
    font:400 clamp(17px,2vw,19px)/1.7 "EB Garamond",Georgia,serif;
    margin:0 0 15px;
  }
  html body:not(.home) #content #timeline-section .timeline-mobile-text:last-child{margin-bottom:0}
  html body:not(.home) #content #timeline-section .timeline-mobile-img img {
    max-height:300px;
    height:auto;
    object-fit:contain;
  }
}
@media(max-width:860px) {
  html body:not(.home) #content .wmrn-history-facts__inner {
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:calc(100% - 38px);
  }
  html body:not(.home) #content .wmrn-history-facts__item:nth-child(odd) {
    padding-left:0;
    border-left:0;
  }
  html body:not(.home) #content .wmrn-history-facts__item:nth-child(n+3) {
    border-top:1px solid rgba(248,217,143,.2);
  }
}
@media(max-width:600px) {
  html body:not(.home) #content .wmrn-history-facts__item {
    padding:19px 10px !important;
  }
  html body:not(.home) #content .wmrn-history-facts__kicker {font-size:10px}
  html body:not(.home) #content .wmrn-history-facts__item strong {font-size:clamp(19px,5.5vw,22px)}
  html body:not(.home) #content #timeline-section {
    padding:40px 0 55px !important;
  }
  html body:not(.home) #content #timeline-section > .wmrn-container {
    width:calc(100% - 32px);
  }
  html body:not(.home) #content #history-timeline-heading {
    padding-top:34px;
    font-size:42px !important;
  }
  html body:not(.home) #content #history-timeline-heading:before {
    font-size:10px;
    letter-spacing:.08em;
  }
  html body:not(.home) #content .wmrn-history-facts + section.section-py-sm {
    padding:25px 20px !important;
  }
}
