/* Shared corrections from the October 2026 site audit. */
:where(a,button,summary,[role="button"]):focus-visible{outline:2px solid #c0d1c6;outline-offset:4px}
.site-nav>a[aria-current="page"]{color:#fff!important;text-decoration:underline;text-underline-offset:7px}
.email-link{overflow-wrap:anywhere;word-break:normal}
.footer-bottom,.goodletite-atlas-source{color:#8fa198}
.article-rail{align-self:stretch}
.rail-inner{max-height:calc(100dvh - 130px);overflow-y:auto}
.site-header .site-nav a{white-space:nowrap}
@media(max-width:1400px){
 .site-header .nav-shell{position:relative}
 .js .site-header .menu-toggle{display:block;flex-shrink:0;cursor:pointer}
 .js .site-header .site-nav{position:absolute;left:0;right:0;top:100%;display:none!important;flex-direction:column;align-items:stretch;gap:0!important;max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain;background:#08120f;border:1px solid rgba(189,207,196,.3);padding:12px 18px}
 .js .site-header .site-nav.open{display:flex!important}
 .site-header .site-nav a,.site-header .site-nav a:not([aria-current="page"]):not(.preview-pill){display:block!important;min-height:44px;padding:10px 0!important;font-size:.95rem!important;line-height:1.5}
 .site-header .site-nav>a[aria-current="page"]::after{display:none}
 .site-header .listen-pill{border-radius:0;border:0;border-top:1px solid rgba(189,207,196,.3);margin-top:6px}
 html:not(.js) .site-header .nav-shell{height:auto;min-height:70px;flex-wrap:wrap;padding-block:14px}
 html:not(.js) .site-header .menu-toggle{display:none}
 html:not(.js) .site-header .site-nav{position:static;display:flex!important;width:100%;flex-direction:row;flex-wrap:wrap;gap:4px 20px;padding:10px 0;background:transparent}
}
.goodletite-locality-item{border-bottom:1px solid var(--line)}
.goodletite-locality-item>.goodletite-atlas-row{list-style:none;border-bottom:0;grid-template-columns:50px minmax(0,1fr) minmax(175px,.65fr) 28px}
.goodletite-locality-item>summary::-webkit-details-marker{display:none}
.goodletite-locality-item>summary::marker{content:""}
.goodletite-locality-content{padding:12px 24px 26px 78px;max-width:900px}
.disclosure-icon{position:relative;width:28px;height:28px;display:block;color:var(--sage2)}
.disclosure-icon::before,.disclosure-icon::after{content:"";position:absolute;left:7px;top:13px;width:14px;height:2px;background:currentColor}
.disclosure-icon::after{transform:rotate(90deg)}
.goodletite-locality-item[open] .disclosure-icon::after{transform:rotate(0)}
.goodletite-locality-item[open]>summary{background:rgba(143,174,155,.06)}
.goodletite-atlas-hit:focus-visible{outline:3px solid #fff;outline-offset:2px;background:rgba(0,0,0,.2)}
.goodletite-locality-content .goodletite-atlas-type{margin-bottom:10px}
.goodletite-locality-content .goodletite-atlas-summary{font-size:.95rem;line-height:1.65}
.goodletite-locality-content .goodletite-atlas-evidence,.goodletite-locality-content .goodletite-atlas-source{font-size:.8rem;line-height:1.5}
@media(max-width:760px){
 .goodletite-locality-item>.goodletite-atlas-row{grid-template-columns:30px minmax(0,1fr) 28px;gap:10px}
 .goodletite-locality-content{padding:10px 16px 24px}
 .goodletite-atlas-copy{padding:16px}
 .goodletite-atlas-detail{grid-template-columns:1fr}
 .goodletite-atlas-thumb{display:none}
 .goodletite-atlas-summary{font-size:.95rem;line-height:1.6}
 .goodletite-atlas-type{font-size:.7rem;line-height:1.4}
 .goodletite-atlas-evidence,.goodletite-atlas-source{font-size:.8rem;line-height:1.5}
 .hydrogrossular-page .article-title-grid h1{font-size:clamp(2.2rem,10vw,4.5rem);line-height:.95}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}


/* October 13 follow-up: keep the active navigation treatment to one line. */
.site-nav>a[aria-current="page"]{
  color:#fff!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-decoration-color:var(--sage2);
  text-underline-offset:7px;
  border-bottom:0!important;
}
.site-header .site-nav>a[aria-current="page"]::after{display:none!important}

/* Stone Atlas uses self-contained page CSS; make its desktop header match the
   shared site navigation instead of the older compact/wrapping atlas version. */
.atlas-page .site-header{
  background:rgba(7,17,15,.79);
  border-bottom:1px solid transparent;
}
.atlas-page .site-header.scrolled{border-color:var(--line)}
.atlas-page .site-nav{flex-wrap:nowrap}
@media(min-width:1401px){
  .atlas-page .site-nav{gap:27px}
  .atlas-page .site-nav>a{font-size:.84rem}
  .atlas-page .wordmark{font-size:.77rem;letter-spacing:.2em}
}

/* Keep short story titles from being pushed down by a taller standfirst.
   Goodletite/Aotea establish the title-top reference on two-column desktop. */
@media(min-width:1051px){
  .gold-page .article-title-grid>div:first-child,
  .amazonite-page .article-title-grid>div:first-child{align-self:start}
}
@media(min-width:1401px){
  .atlas-page .site-nav>a[aria-current="page"]{padding-bottom:0!important}
}

/* October 20: consistent headings and resilient article columns. */
.article-title-grid>*,.article-main,.article-body{min-width:0}
.article-title-grid h1{overflow-wrap:normal;word-break:normal}
.article-title-grid>.article-standfirst{margin:0}
@media(min-width:1051px){
  .article-title-grid{grid-template-columns:minmax(0,1fr) minmax(0,.72fr);align-items:start}
}
.article-hero-image figcaption{flex-wrap:wrap;gap:8px 24px}
.platform-row{min-width:0;flex-wrap:wrap}

/* Keep both atlas panels on the map. Give long descriptions their own
   scroll area so larger text cannot cover the markers or escape the card. */
.atlas-page .map-info-stack .detail-copy{
  display:flex!important;flex-direction:column;max-height:58%;
}
.atlas-page .map-info-stack .detail-summary{
  min-height:0;overflow-y:auto!important;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#8fa198 #10241b;
  font-size:.875rem!important;line-height:1.45!important;
}
.atlas-page .map-info-stack .detail-title,
.atlas-page .map-info-stack .detail-actions{flex-shrink:0}
.atlas-page .detail-summary:focus-visible{outline:2px solid #c0d1c6;outline-offset:2px}
.atlas-page .map-info-stack .detail-title{overflow-wrap:anywhere;line-height:1.08!important}
.atlas-page .map-info-stack .detail-link{font-size:.8125rem!important;min-height:44px;align-items:center}
.atlas-page .map-photo-locale .map-photo-region{font-size:.65rem!important;letter-spacing:.06em!important}
.atlas-page .map-photo-locale strong{font-size:.8rem!important;line-height:1.25!important}
@media(max-width:650px){
  .atlas-page .map-info-stack .detail-copy{
    right:1.8%!important;bottom:3%!important;width:43%!important;
    max-height:56%;padding:10px!important;
  }
  .atlas-page .map-info-stack .detail-title{font-size:1.125rem!important;margin-bottom:8px!important}
  .atlas-page .map-info-stack .detail-summary{margin-bottom:6px!important}
  .atlas-page .map-info-stack .detail-image-wrap{width:34%!important;height:26%!important}
  .atlas-page .map-photo-locale{padding:26px 7px 7px!important}
}

/* Display consistency pass: keep platform names together while rows wrap. */
.episode-main{min-width:0}
.episode-actions{flex-wrap:wrap;gap:8px 18px}
.episode-actions a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}

/* Size long stone names against their actual title column, without splitting
   a name mid-word. The viewport rules provide a fallback for older browsers. */
.article-title-grid>div:first-child{container-type:inline-size}
body[class] .article-title-grid h1{font-size:clamp(2rem,8vw,10rem)}
body.hydrogrossular-page .article-title-grid h1{font-size:clamp(2rem,4.695vw,4.27rem)}
@media(max-width:1050px){
  body[class] .article-title-grid h1{font-size:clamp(2rem,18vw,10rem)}
  body.hydrogrossular-page .article-title-grid h1{font-size:clamp(2rem,10vw,4.27rem)}
}
@supports(font-size:1cqi){
  body[class] .article-title-grid h1{font-size:clamp(2rem,20cqi,10rem)}
  body.hydrogrossular-page .article-title-grid h1{font-size:clamp(2rem,13cqi,4.27rem)}
}
.atlas-page .site-header,.atlas-page .site-footer{line-height:1.65}
.atlas-page .site-footer{padding:62px 0 24px;background:#050d0b;color:var(--muted)}
.atlas-page .footer-grid{display:grid;grid-template-columns:1.5fr .6fr .7fr;gap:70px}
.atlas-page .footer-mark{font-size:1.5rem}
.atlas-page .footer-grid p{max-width:440px;font-size:.86rem}
.atlas-page .footer-links,.atlas-page .footer-meta{display:flex;flex-direction:column;gap:8px}
.atlas-page .footer-grid a{font-size:.86rem}
.atlas-page .footer-bottom{display:flex;justify-content:space-between;margin-top:48px;padding-top:18px;font-size:.7rem;letter-spacing:.11em;color:#8fa198}
@media(max-width:1050px){
  .atlas-page .footer-grid{grid-template-columns:1fr 1fr}
  .atlas-page .footer-grid>div:first-child{grid-column:1/-1}
}
@media(max-width:760px){
  .atlas-page .shell{width:calc(100% - 30px)}
  .atlas-page .nav-shell{height:62px}
  .atlas-page .site-header{background:rgba(7,17,15,.94)}
  .atlas-page .wordmark{font-size:.64rem;letter-spacing:.18em;gap:7px;white-space:nowrap}
  .atlas-page .wordmark em{font-size:.93rem;letter-spacing:.02em}
  .atlas-page .menu-toggle{width:40px;height:40px;padding:8px}
  .atlas-page .footer-grid{grid-template-columns:1fr;gap:30px}
  .atlas-page .footer-grid>div:first-child{grid-column:auto}
  .atlas-page .footer-bottom{flex-direction:column;gap:8px}
  .atlas-page .footer-bottom span{margin:0}
}
.atlas-scroll-hint{visibility:hidden;flex-shrink:0;color:var(--sage2);font-size:.7rem;line-height:1.4;padding-bottom:4px}
.has-scroll .atlas-scroll-hint{visibility:visible}
