/* 0.48.0 visitor history fixes */

/* Proper base layout for pages that use the subhero component. */
.subhero{
  position:relative;
  min-height:460px;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:88px max(24px,calc((100vw - 1180px)/2));
  color:#fff;
  isolation:isolate;
}
.subhero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(4,28,45,.22),rgba(4,28,45,0));
  pointer-events:none;
}
.subhero-inner{width:min(860px,100%);position:relative;z-index:1}
.subhero h1{
  font-family:"Fraunces",serif;
  font-size:clamp(48px,6vw,76px);
  line-height:.98;
  letter-spacing:-.04em;
  margin:14px 0 20px;
}
.subhero p{
  max-width:760px;
  margin:0;
  color:rgba(255,255,255,.88);
  font-size:17px;
  line-height:1.72;
}
.subhero .hero-inline-actions{margin-top:28px}
.subhero .light-btn{background:#fff;color:#0c4f88}
.subhero .ghost-light{color:#fff;background:rgba(5,38,62,.28);border-color:rgba(255,255,255,.56)}

/* Make the Floyd hero use its actual historical imagery instead of a flat block. */
.floyd-hero{
  background:
    linear-gradient(90deg,rgba(25,25,24,.94),rgba(55,45,39,.78) 58%,rgba(55,45,39,.35)),
    url("archive/pretty-boy-floyd-portrait.webp") center 28%/cover no-repeat;
}

/* Heritage Trail gets the same stable hero treatment. */
.heritage-hero.trail-hero{
  background:
    linear-gradient(90deg,rgba(5,32,52,.95),rgba(10,71,110,.70) 60%,rgba(10,71,110,.35)),
    url("history-river-1.jpg") center/cover no-repeat;
}

/* Rock Springs hero buttons: explicit contrast instead of inherited white-on-white. */
[data-page="rock-springs-park"] .hero-place-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}
[data-page="rock-springs-park"] .hero-place-actions .button-link{
  min-height:48px;
  padding:13px 19px;
  border-radius:13px;
  font-weight:800;
  text-decoration:none;
}
[data-page="rock-springs-park"] .hero-place-actions .button-link:first-child{
  background:#fff;
  color:#0c4f88;
  border:1px solid #fff;
}
[data-page="rock-springs-park"] .hero-place-actions .button-link:last-child{
  background:rgba(4,37,61,.36);
  color:#fff;
  border:1px solid rgba(255,255,255,.58);
}

/* Story Room cards: remove browser button spacing/appearance and force media to fill. */
.story-room-card{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  flex-direction:column;
  width:100%;
  margin:0;
  padding:0;
  font:inherit;
  color:inherit;
  line-height:normal;
  vertical-align:top;
}
.story-room-image{
  width:100%;
  height:230px;
  min-height:230px;
  flex:0 0 230px;
  margin:0;
  border:0;
  background-color:#17364f;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
}
.story-room-card>div:last-child{flex:1}

/* Diamond chapter */
.diamond-hero{
  background:
    linear-gradient(90deg,rgba(5,31,49,.94),rgba(9,64,99,.72) 60%,rgba(9,64,99,.28)),
    url("archive/diamond-postcard.jpg") center/cover no-repeat;
}
.history-fact-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:30px;
}
.history-fact-grid article{
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  padding:22px;
}
.history-fact-grid small{
  display:block;
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.history-fact-grid strong{
  display:block;
  margin-top:8px;
  font:700 25px/1.05 "Fraunces",serif;
}
.diamond-story-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.diamond-story-grid article{
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px;
  background:#fff;
}
.diamond-story-grid h3{
  font:700 30px/1.04 "Fraunces",serif;
  margin:8px 0 12px;
}
.diamond-story-grid p{color:var(--muted);line-height:1.72}
.diamond-story-grid .eyebrow{color:var(--blue)}
.history-source-list{display:grid;gap:10px;margin-top:22px}
.history-source-list a{color:var(--blue);font-weight:800;text-decoration:none}

@media(max-width:800px){
  .subhero{min-height:390px;padding-top:64px;padding-bottom:64px}
  .subhero h1{font-size:clamp(42px,12vw,60px)}
  .history-fact-grid{grid-template-columns:1fr 1fr}
  .diamond-story-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .history-fact-grid{grid-template-columns:1fr}
  .story-room-image{height:210px;min-height:210px;flex-basis:210px}
}
