/* ======================================================
   HISTORY HERO
====================================================== */

.history-hero{ position:relative; min-height:250px; display:flex; align-items:flex-end; overflow:hidden; background:var(--charcoal); }

/* ==========================================
   Background Media
========================================== */

.history-hero-media{ position:absolute; inset:0; overflow:hidden; }

.history-hero-image{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:65% center; transform:scale(1.02); z-index:0; }

/* ==========================================
   Overlay
========================================== */

.history-hero-overlay{ position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(10,15,20,.88) 0%,rgba(10,15,20,.72) 35%,rgba(10,15,20,.45) 65%,rgba(10,15,20,.22) 100%),linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.78) 100%); }

/* ==========================================
   Topographic Overlay
========================================== */

.history-hero::before{ content:""; position:absolute; inset:0; z-index:2; pointer-events:none; background:radial-gradient(ellipse at 30% 20%,rgba(198,165,90,.08),transparent 55%),repeating-linear-gradient(115deg,rgba(255,255,255,.03) 0px,rgba(255,255,255,.03) 2px,transparent 2px,transparent 90px); opacity:.35; }

/* ==========================================
   Cinematic Vignette
========================================== */

.history-hero::after{ content:""; position:absolute; inset:0; z-index:3; pointer-events:none; background:radial-gradient(ellipse at center,transparent 35%,rgba(0,0,0,.18) 100%); }

/* ==========================================
   Hero Content
========================================== */

.history-hero-inner{ position:relative; z-index:5; width:100%; padding:80px 0 80px; }

.history-hero .eyebrow{ margin-bottom:26px; }

.history-hero h1{ max-width:780px; color:var(--white); font-size:clamp(2.4rem,4.8vw,4.3rem); line-height:1.12; margin-bottom:0; }

/* ==========================================
   Responsive
========================================== */

@media(max-width:992px){ .history-hero-inner{ padding:80px 0 80px; } .history-hero h1{ max-width:680px; } }

@media(max-width:768px){ .history-hero{ min-height:85vh; } .history-hero-inner{ padding:80px 0 70px; } .history-hero-image{ object-position:72% center; } }

@media(max-width:576px){ .history-hero{ min-height:85vh; } .history-hero-inner{ padding:0px 0 0px; } .history-hero h1{ font-size:clamp(2rem,9vw,3rem); } }

/* ============================================================
   HISTORIC SILVER GRADES — Section Styles
   ============================================================ */
.grades-section{ background:var(--off-white); }
.grades-grid{ display:grid; grid-template-columns:1fr 1.35fr; gap:56px; align-items:start; }
@media(max-width:900px){ .grades-grid{ grid-template-columns:1fr; gap:36px; } }
.feature-list{ display:flex; flex-direction:column; gap:10px; }
.feature-item{ display:flex; align-items:center; gap:16px; width:100%; padding:16px 18px; background:var(--white); border:1px solid var(--line-dark); border-left:3px solid transparent; border-radius:6px; cursor:pointer; text-align:left; position:relative; transition:border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .25s ease; }
.feature-item:hover{ border-color:rgba(198,165,90,0.5); transform:translateY(-1px); }
.feature-item:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.feature-item.is-active{ background:var(--navy); border-color:var(--navy); border-left-color:var(--gold); box-shadow:0 12px 28px rgba(13,41,67,0.18); }
.feature-icon{ width:46px; height:46px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:var(--off-white); border:1px solid var(--line-dark); transition:background .3s ease, border-color .3s ease; }
.feature-item.is-active .feature-icon{ background:rgba(198,165,90,0.14); border-color:rgba(198,165,90,0.4); }
.feature-icon img{ width:24px; height:24px; object-fit:contain; display:block; transition:opacity .3s ease; }
.feature-item.is-active .feature-icon img{ opacity:0.9; }
.feature-text{ display:flex; flex-direction:column; gap:2px; line-height:1.3; }
.feature-lead{ font-weight:700; font-size:0.95rem; color:var(--gold); transition:color .3s ease; }
.feature-item.is-active .feature-lead{ color:var(--gold-light); }
.feature-rest{ font-size:0.95rem; font-weight:500; color:var(--charcoal); transition:color .3s ease; }
.feature-item.is-active .feature-rest{ color:var(--white); }
.feature-indicator{ margin-left:auto; width:8px; height:8px; border-radius:50%; background:var(--line-dark); flex-shrink:0; transition:background .3s ease, box-shadow .3s ease; }
.feature-item.is-active .feature-indicator{ background:var(--gold); box-shadow:0 0 0 4px rgba(198,165,90,0.22); }
.feature-descriptions{ position:relative; margin-top:28px; padding-top:26px; border-top:1px solid var(--line-dark); min-height:96px; }
.feature-desc{ font-size:0.96rem; font-weight:300; color:#26292E; line-height:1.75; opacity:0; transform:translateY(6px); transition:opacity .45s ease, transform .45s ease; }
.feature-desc[hidden]{ display:none; }
.feature-desc.is-active{ opacity:1; transform:translateY(0); }
.grades-right{ display:flex; flex-direction:column; gap:20px; }
.grade-visual{ position:relative; width:100%; aspect-ratio:16/11; border-radius:8px; overflow:hidden; background:var(--charcoal-light); border:1px solid var(--line-dark); box-shadow:0 24px 50px rgba(13,15,17,0.14); }
.grade-panel{ position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .5s ease; }
.grade-panel[hidden]{ display:block; }
.grade-panel.is-active{ opacity:1; pointer-events:auto; }
.grade-image{ width:100%; height:100%; object-fit:cover; display:block; }
.grade-callout{ position:absolute; top:var(--callout-top, 50%); left:var(--callout-left, 50%); transform:translate(-50%, 12px); background:var(--white); border:1.5px solid var(--gold); border-radius:4px; padding:10px 16px; min-width:150px; text-align:center; box-shadow:0 10px 26px rgba(13,15,17,0.18); }
.grade-callout::before{ content:''; position:absolute; top:-46px; left:50%; width:1.5px; height:46px; background:var(--gold); transform:translateX(-50%); }
.grade-callout::after{ content:''; position:absolute; top:-52px; left:50%; width:8px; height:8px; border-radius:50%; background:var(--gold); transform:translate(-50%, -50%); box-shadow:0 0 0 4px rgba(198,165,90,0.22); }
.callout-lead{ display:block; font-family:var(--serif); font-size:1.15rem; color:var(--gold); line-height:1.2; }
.callout-rest{ display:block; font-size:0.68rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--charcoal); margin-top:2px; }
.grade-legend{ position:relative; min-height:32px; }
.legend-list{ list-style:none; display:flex; flex-wrap:wrap; gap:20px; opacity:0; transform:translateY(6px); transition:opacity .45s ease, transform .45s ease; }
.legend-list[hidden]{ display:none; }
.legend-list.is-active{ opacity:1; transform:translateY(0); }
.legend-item{ display:flex; align-items:center; gap:9px; font-size:0.84rem; color:#26292E; font-weight:500; }
.legend-swatch{ width:22px; height:0; flex-shrink:0; position:relative; display:inline-block; }
.swatch-fill{ height:10px; border-radius:2px; background:linear-gradient(90deg, var(--gold), var(--gold-light)); }
.swatch-dashed{ border-top:2px dashed var(--gold); margin-top:5px; }
.swatch-line{ border-top:2px solid var(--charcoal); margin-top:5px; }
@media(max-width:900px){ .grade-visual{ aspect-ratio:4/3; } .grade-callout{ min-width:130px; padding:8px 12px; } .callout-lead{ font-size:1rem; } }
@media(max-width:560px){ .feature-item{ padding:14px; } .grade-visual{ aspect-ratio:1/1; } .legend-list{ gap:14px; } }

  /* ============================================================
     UNDERGROUND WORKINGS — website section
     ============================================================ */
 
  .uw-section{ padding:110px 0 110px; }
  @media(max-width:900px){ .uw-section{ padding:64px 0 72px; } }
 
  /* ---- Heading ---- */
  .uw-head{ max-width:760px; margin-bottom:60px; }
  .uw-head .eyebrow{ margin-bottom:16px; }
  .uw-head h2{
    font-size:clamp(1.9rem, 3.6vw, 2.7rem);
    color:var(--navy);
    line-height:1.18;
  }
  .uw-head p{
    margin-top:18px;
    font-size:1.02rem;
    font-weight:300;
    color:#4b4f54;
    max-width:620px;
    line-height:1.7;
  }
 
  /* ---- Main geological visual ---- */
  .uw-visual{ margin-bottom:20px; }
 
  .uw-figure{
    background:var(--charcoal);
    border:1px solid var(--line-dark);
    border-radius:4px;
    box-shadow:0 20px 46px rgba(13,15,17,0.08);
    padding:14px;
  }
 
  .uw-figure-scroll{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
 
  .uw-figure-scroll img{
    width:100%;
    min-width:760px;
    height:auto;
    display:block;
    border-radius:2px;
  }
 
  .uw-caption{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid var(--line-dark);
    font-size:0.8rem;
    color:var(--steel);
  }
  .uw-caption strong{
    color:var(--charcoal);
    font-weight:600;
  }
  .uw-caption .uw-scroll-hint{
    display:none;
    font-style:italic;
  }
  @media(max-width:700px){
    .uw-caption .uw-scroll-hint{ display:inline; }
  }
 
  /* ---- Panel legend strip (levels reference) ---- */
  .uw-levels{
    display:flex;
    flex-wrap:wrap;
    gap:10px 26px;
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid var(--line-dark);
  }
  .uw-levels-label{
    font-size:0.7rem;
    letter-spacing:0.1em;
    text-transform:uppercase;
    font-weight:700;
    color:var(--gold);
    margin-right:4px;
  }
  .uw-level-chip{
    font-size:0.8rem;
    color:#4b4f54;
    padding:4px 0;
  }
  .uw-level-chip::after{
    content:'ft';
    margin-left:2px;
    color:var(--steel);
  }
 
  /* ---- Supporting information grid ---- */
  .uw-info{
    margin-top:76px;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:0;
    border-top:1px solid var(--line-dark);
  }
  @media(max-width:900px){
    .uw-info{ grid-template-columns:1fr 1fr; }
  }
  @media(max-width:560px){
    .uw-info{ grid-template-columns:1fr; }
  }
 
  .uw-col{
    padding:20px 30px 30px 20px;
    border-right:1px solid var(--line-dark);
  }
  .uw-col:last-child{ border-right:none; }
  @media(max-width:900px){
    .uw-col{ padding:28px 24px 20px 0; }
    .uw-col:nth-child(2n){ border-right:none; }
    .uw-col:nth-child(n+3){
      border-top:1px solid var(--line-dark);
      padding-top:26px;
    }
  }
  @media(max-width:560px){
    .uw-col{ border-right:none; padding:26px 0; }
    .uw-col:first-child{ padding-top:0; }
    .uw-col:not(:first-child){ border-top:1px solid var(--line-dark); }
  }
 
  .uw-col-label{
    font-size:0.7rem;
    letter-spacing:0.12em;
    text-transform:uppercase;
    font-weight:700;
    color:var(--gold);
    margin-bottom:18px;
  }
 
  .uw-shaft-item{ margin-bottom:16px; }
  .uw-shaft-item:last-child{ margin-bottom:0; }
  .uw-shaft-name{
    font-family:var(--serif);
    font-size:1.02rem;
    color:var(--charcoal);
    margin-bottom:4px;
  }
  .uw-shaft-meta{
    font-size:0.85rem;
    color:#5c6066;
    font-weight:300;
    line-height:1.6;
  }
 
  .uw-orebody-list{ list-style:none; }
  .uw-orebody-list li{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:9px 0;
    border-bottom:1px solid var(--line-dark);
    font-size:0.85rem;
  }
  .uw-orebody-list li:last-child{ border-bottom:none; }
  .uw-orebody-name{
    font-weight:600;
    color:var(--charcoal);
    white-space:nowrap;
  }
  .uw-orebody-range{
    color:#6b6f74;
    font-weight:300;
    text-align:right;
  }
 
  .uw-key-list{ list-style:none; }
  .uw-key-list li{
    position:relative;
    padding-left:16px;
    margin-bottom:13px;
    font-size:0.87rem;
    color:#3a3d41;
    font-weight:300;
    line-height:1.65;
  }
  .uw-key-list li::before{
    content:'';
    position:absolute;
    left:0;
    top:9px;
    width:5px;
    height:5px;
    background:var(--gold);
    border-radius:50%;
  }
  .uw-key-list li:last-child{ margin-bottom:0; }
 
  .uw-refs{
    font-size:0.84rem;
    color:#5c6066;
    font-weight:300;
    line-height:1.75;
  }
  .uw-refs p{ margin-bottom:12px; }
  .uw-refs p:last-child{ margin-bottom:0; }
  .uw-refs .uw-ref-tag{
    display:inline-block;
    font-size:0.68rem;
    letter-spacing:0.06em;
    text-transform:uppercase;
    font-weight:700;
    color:var(--navy);
    background:rgba(13,41,67,0.06);
    padding:3px 8px;
    border-radius:2px;
    margin-bottom:8px;
  }