/* Diamond Drilling page. CSS only: the core-size picker uses radio buttons, no script. */

/* Hero chips */

#core-sizes,details[id]{scroll-margin-top:96px}

/* On the day: five numbered steps joined by a line */
.dd-daywrap{padding:clamp(40px,4.4vw,64px) 0}
.dd-day{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none;counter-reset:none}
.dd-day li{position:relative;padding:0 22px 0 0}
.dd-day li::before{content:"";position:absolute;top:21px;left:44px;right:0;height:2px;background:var(--line)}
.dd-day li:last-child::before{display:none}
.dd-day b{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;margin-bottom:16px;border-radius:50%;background:var(--navy);color:#fff;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;transition:background .25s}
.dd-day li:hover b{background:var(--orange)}
.dd-day h3{margin-bottom:6px;font-size:19px}
.dd-day p{color:var(--muted);font-size:15px;line-height:1.45}

/* Photos, advantages, notes */
.dd-photo,.dd-core{margin:0;aspect-ratio:4/3;overflow:hidden;border-radius:4px;background:var(--line)}
.dd-photo img,.dd-core img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.dd-photo:hover img,.dd-core:hover img{transform:scale(1.04)}
.dd-h4{margin:28px 0 14px}
.dd-adv{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dd-adv li{display:flex;gap:12px;align-items:flex-start;padding:16px;background:#fff;border:1px solid var(--line);border-radius:4px;font-size:15px;line-height:1.45;transition:translate .25s var(--ease),border-color .25s}
.dd-adv li:hover{translate:0 -3px;border-color:var(--orange)}
.dd-ico{flex:none;width:26px;height:26px;color:var(--orange)}
.dd-note{padding:14px 16px;border-left:3px solid var(--orange);background:var(--ground);font-size:15.5px}
.ground .dd-note{background:#fff}
.dd-note strong:first-child{color:var(--orange)}

/* Depth figure in the core sizes section */
.dd-depth{display:flex;align-items:baseline;gap:14px;padding:4px 0 4px 16px;border-left:3px solid var(--orange)}
.dd-depth strong{flex:none;white-space:nowrap;color:var(--navy);font-size:clamp(34px,1.6vw + 26px,48px);font-weight:600;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.dd-depth span{color:var(--muted);font-size:15.5px}

/* Stitch drilling: overlapping cores trace an opening, one after another as the diagram scrolls in */
.dd-stitch{align-items:center}
.dd-stitch-fig{margin:0;padding:clamp(18px,3vw,36px);border:1px solid var(--rule-navy);border-radius:4px;view-timeline:--stitch block}
.dd-stitch-svg{width:100%;max-width:520px;margin:0 auto;overflow:visible}
.dd-stitch-svg .slab{fill:rgba(255,255,255,.04);stroke:rgba(255,255,255,.22);stroke-width:1}
.dd-stitch-svg circle{fill:rgba(255,77,1,.22);stroke:var(--orange);stroke-width:1.4}


/* CTA band */
.dd-ticks{grid-template-columns:repeat(3,1fr);margin:32px 0 0}
.q-co{display:block;color:var(--muted);font-weight:400}
.dd-cta{display:flex;align-items:center;justify-content:space-between;gap:24px 48px}
.dd-cta h3{max-width:30em}
.dd-cta .btns{flex:none}

/* Schmidt versus core */
.dd-vs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px}
.dd-vs article{height:100%;padding:24px 22px;border:1px solid var(--line);border-top:3px solid var(--navy);border-radius:4px;background:#fff}
.dd-vs article.on{border-top-color:var(--orange);box-shadow:0 22px 44px -30px rgba(0,34,91,.55)}
.dd-vs span{display:block;margin-bottom:6px;color:var(--muted);font-size:13px;font-weight:600}
.dd-vs h4{margin-bottom:14px;font-size:20px}
.dd-vs li{display:flex;gap:10px;padding:9px 0;border-top:1px solid var(--line);color:var(--navy);font-size:15px;font-weight:500}
.dd-vs i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--navy);color:#fff;font-size:14px;font-style:normal;font-weight:600}

/* Core-size picker drawn to scale (200 mm viewBox) */
.dd-sizes{position:sticky;top:110px;padding:clamp(20px,2.6vw,32px);background:#fff;border:1px solid var(--line);border-radius:4px}
.dd-sizes h4{margin-bottom:14px}
.dd-pick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.dd-pick li{display:flex}
.dd-pick label{flex:1}
.dd-pick label{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;min-height:96px;padding:12px 6px;border:1px solid var(--line);border-radius:4px;color:var(--navy);font-size:14px;line-height:1.25;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.dd-pick label:hover{border-color:var(--navy)}
.dd-dot{width:calc(var(--d) * 44px);height:calc(var(--d) * 44px);border:2px solid currentColor;border-radius:50%}
.dd-face{margin:18px 0 0}
.dd-face svg{width:100%;max-width:380px;margin:0 auto;overflow:visible}
.dd-face .cube{fill:none;stroke:#9aa5b8;stroke-width:1;stroke-dasharray:4 4}
.dd-face .ring{fill:rgba(0,34,91,.03);stroke:#cdd5e3;stroke-width:1.2;transition:fill .35s,stroke .35s,stroke-width .35s}
.dd-face figcaption{margin-top:12px;text-align:center;color:var(--navy);font-weight:600}
.dd-face figcaption>span{display:none}
.dd-face figcaption em{display:block;margin-top:6px;color:var(--muted);font-size:13px;font-style:normal;font-weight:400}
#d50:checked~.dd-face .r-d50,#d70:checked~.dd-face .r-d70,#d100:checked~.dd-face .r-d100,#d150:checked~.dd-face .r-d150,#d200:checked~.dd-face .r-d200{fill:rgba(255,77,1,.16);stroke:var(--orange);stroke-width:2.4}
#d50:checked~.dd-face .cap-d50,#d70:checked~.dd-face .cap-d70,#d100:checked~.dd-face .cap-d100,#d150:checked~.dd-face .cap-d150,#d200:checked~.dd-face .cap-d200{display:block}
#d50:checked~.dd-pick label[for=d50],#d70:checked~.dd-pick label[for=d70],#d100:checked~.dd-pick label[for=d100],#d150:checked~.dd-pick label[for=d150],#d200:checked~.dd-pick label[for=d200]{border-color:var(--orange);background:#fff4ee;color:var(--orange)}
#d50:focus-visible~.dd-pick label[for=d50],#d70:focus-visible~.dd-pick label[for=d70],#d100:focus-visible~.dd-pick label[for=d100],#d150:focus-visible~.dd-pick label[for=d150],#d200:focus-visible~.dd-pick label[for=d200]{outline:3px solid var(--orange);outline-offset:2px}

@media (max-width:1180px){
  .dd-vs{grid-template-columns:1fr}
  .dd-vs i{justify-self:center}
}
@media (max-width:900px){
  .dd-day{grid-template-columns:1fr;gap:0}
  .dd-day li{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:16px;padding:0 0 22px}
  .dd-day li::before{top:44px;bottom:0;left:21px;right:auto;width:2px;height:auto}
  .dd-day b{grid-row:1/span 2;margin:0}
  .dd-day h3{align-self:center;margin:10px 0 4px}
  .dd-cta{flex-direction:column;align-items:flex-start}
  .dd-ticks{grid-template-columns:1fr 1fr}
  .dd-sizes{position:static}
}
@media (max-width:640px){
  .dd-adv,.dd-ticks{grid-template-columns:1fr}
  .dd-pick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dd-pick li:last-child{grid-column:1/-1}
}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .dd-stitch-svg circle{animation:dd-core linear both;animation-timeline:--stitch;animation-range:cover calc(18% + var(--i) / var(--n) * 30%) cover calc(20% + var(--i) / var(--n) * 30%)}
    .dd-day li,.dd-adv li,.dd-vs article{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
    .dd-day b{animation:node linear both;animation-timeline:view();animation-range:cover 30% cover 45%}
  }
}

@keyframes dd-core{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
.dd-stitch-svg circle{transform-box:fill-box;transform-origin:center}
