.group-records {
  --river: #377a70;
  --river-ink: #153f43;
  margin: clamp(32px, 5vw, 74px) 0 28px;
  border: 1px solid #cbdad5;
  border-radius: 9px;
  overflow: clip;
  background: #fbfcf9;
  scroll-margin-top: 12px;
}
.milestone-header {
  padding: clamp(26px,4vw,58px) clamp(20px,4vw,60px) 20px;
  color: #fff;
  background-color: #0c3436;
  background-image: linear-gradient(90deg, #0b3939 1%, #0b3939f2 31%, #0b363ac9 56%, #0b363a35),
                    url('/assets/betul-distillery-silos-aerial.jpg');
  background-position: center, right 51%;
  background-size: cover;
}
.milestone-range {margin: 0 0 8px; color: #d9f1c4; font: 650 .84rem/1.2 Arial,sans-serif; letter-spacing: .09em}
.milestone-header h2 {margin: 0; color: #fff; font: 500 clamp(2.35rem,4.7vw,4.45rem)/1.07 Georgia,serif; letter-spacing: -.042em}
.milestone-jumps {display:flex; gap: 4px; flex-wrap: wrap; margin: clamp(22px,3vw,40px) 0 0}
.milestone-jumps a {
  padding: 8px 13px; border: 1px solid #a4bbb5; border-radius: 20px;
  background: #103d40d9; color: #fff; font-size: .86rem;
  font-weight: 650; line-height: 1.1; text-decoration: none; font-variant-numeric: tabular-nums;
}
.milestone-jumps a:hover, .milestone-jumps a:focus-visible {color: #123c37; background: #daf0bf; border-color: #daf0bf}
.milestone-jumps a:focus-visible {outline: 2px solid white; outline-offset: 2px}
.milestone-flow, .milestone-events {list-style: none; margin: 0; padding: 0}
.milestone-flow {background: linear-gradient(90deg,#e5efea,#f0f5ee 24%,#fbfcf9 64%)}
.milestone-stage {
  display: grid;
  grid-template-columns: clamp(128px, 19%, 246px) minmax(0,1fr);
  padding: 0 clamp(14px,3.7vw,54px) 0 clamp(12px,1.5vw,27px); scroll-margin-top: 18px;
}
.milestone-year {position: relative; display: flex; align-items: center; justify-content: center; isolation:isolate}
.flow-rail {width: min(74%,150px); height: 100%; position: absolute; top: 0; z-index:-1; overflow:visible; fill:none}
.milestone-stage:nth-child(even) .flow-rail {transform: scaleX(-1)}
.flow-bank {stroke:#c8ddd2;stroke-width:15}
.flow-water {stroke:#86b2a3;stroke-width:6}
.flow-current {stroke:#eef7ef;stroke-width:1.6;stroke-dasharray:21 10}
.milestone-year h3 {
  margin: 0; padding: 3px 13px 6px; background: #edf4ed; border:1px solid #bdd3c8;
  border-radius: 40px; color:#1a554f; font:500 clamp(1.85rem,3.25vw,3.12rem)/1 Georgia,serif;
  letter-spacing:-.055em; font-variant-numeric:lining-nums tabular-nums;
}
.milestone-entries {
  align-self:stretch; display:flex; align-items:center; gap:clamp(18px,3.3vw,50px);
  margin-left:clamp(4px,1.3vw,22px); padding:clamp(22px,2.65vw,40px) 0;
}
.milestone-stage + .milestone-stage .milestone-entries {border-top:1px solid #cbdad1}
.milestone-events {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,3.3vw,50px); flex:1}
.milestone-event {min-width:0}
.milestone-event:only-child {grid-column:1 / -1}
.record-credit {display:block; margin-top:9px; color:#54685e; font-size:.84rem; line-height:1.4}
.milestone-event time {display:block; color:#365f52; font-size:.78rem; line-height:1.35; text-transform:uppercase; letter-spacing:.07em; font-weight:700}
.milestone-event time.year-only {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
.milestone-event h4 {margin:5px 0 7px; color:var(--river-ink); font:600 clamp(1.2rem,1.6vw,1.56rem)/1.16 Georgia,serif; letter-spacing:-.025em}
.milestone-event p {margin:0; color:#3b5356; font-size:.97rem; line-height:1.5; max-width:69ch}
.record-link {display:inline-block; margin-top:9px; color:#2b6655; font-size:.84rem; font-weight:630; line-height:1.4; text-decoration:underline; text-decoration-color:#aac1b3; text-underline-offset:3px}
.record-link:hover {text-decoration-color:currentColor}
.milestone-image {flex:0 1 36%; max-width:275px; margin:0}
.milestone-image img {display:block; width:100%; height:clamp(85px,8.6vw,125px); object-fit:cover; object-position:center 43%; border-radius:4px}
.milestone-image figcaption {margin-top:4px; color:#52665f; font-size:.74rem; line-height:1.3}
.milestone-stage:target .milestone-year h3 {color:white; background:#246657; border-color:#246657}
@media(max-width:820px) {
  .milestone-stage {grid-template-columns:98px minmax(0,1fr); padding-left:3px}
  .milestone-year h3 {font-size:1.95rem}
  .milestone-events {grid-template-columns:minmax(0,1fr); gap:18px}
  .milestone-image {flex-basis:32%}
}
@media(max-width:560px) {
  .milestone-header {padding:24px 16px 16px}
  .milestone-header h2 {font-size:clamp(2rem,8.1vw,2.65rem)}
  .milestone-jumps {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin-top:17px}
  .milestone-jumps a {padding:8px 1px; text-align:center; font-size:.76rem}
  .milestone-stage {display:block; position:relative; isolation:isolate; padding:18px 14px 21px 50px}
  .milestone-stage + .milestone-stage {border-top:1px solid #d6e2d9}
  .milestone-year {position:static; display:block}
  .flow-rail {left:7px; width:34px}
  .flow-bank {stroke-width:8}
  .flow-water {stroke-width:3.5}
  .flow-current {stroke-width:1.2}
  .milestone-year h3 {display:inline-block; font-size:1.6rem; padding:1px 10px 3px; margin-bottom:13px}
  .milestone-entries {margin:0; padding:0; display:block}
  .milestone-stage + .milestone-stage .milestone-entries {border-top:0}
  .milestone-image {margin-top:13px; max-width:250px}
  .milestone-image img {height:84px}
  .milestone-event h4 {font-size:1.22rem}
  .milestone-event p {font-size:.93rem}
}
@media(prefers-reduced-motion:no-preference) {
  .milestone-flow:hover .flow-current {animation:river-current 3s linear infinite}
  @keyframes river-current {to {stroke-dashoffset:-31}}
}

.milestone-all-years {margin-top:12px; max-width:55rem; color:#fff}
.milestone-all-years summary {width:fit-content; cursor:pointer; font-size:.88rem; font-weight:600; padding:4px 0}
.milestone-all-years nav {display:flex; flex-wrap:wrap; gap:0 12px; width:fit-content; background:#123b3c; padding:7px 11px; margin-top:4px}
.milestone-all-years a {display:inline-block; padding:5px 2px; color:#fff; font-size:.88rem; text-underline-offset:.2em}
