/* ARCHELAOS 2.0 — Museum Minimal, shared spacing and editorial rhythm.
   Applies only to the six explicitly published pages, after their legacy CSS.
   Never changes overlays, shared navigation, chat widgets or form mechanics. */
html[data-archelaos-page] {
  --arc-yellow:#F4D83F;
  --arc-green:#176948;
  --arc-ink:#123b2b;
  --arc-line:#e5ebe6;
  --arc-content:1216px;
  --arc-outer:clamp(22px,4.1vw,64px);
  --arc-section:clamp(86px,8.1vw,116px);
  --arc-heading-gap:clamp(28px,3vw,42px);
  --arc-card-gap:clamp(16px,1.8vw,24px);
  --arc-card-pad:clamp(24px,2.4vw,32px);
  --arc-card-radius:20px;
}
html[data-archelaos-page] ::selection {background:var(--arc-yellow);color:var(--arc-ink)}
html[data-archelaos-page] :is(main h1,main h2,main h3) {
  text-wrap:balance;
  font-kerning:normal;
}
html[data-archelaos-page] :is(main h1,main h2){letter-spacing:-.047em}
html[data-archelaos-page] main :is(p,li){overflow-wrap:break-word}
html[data-archelaos-page] :is(a,button,input,textarea,select):focus-visible{
  outline:3px solid var(--arc-yellow);
  outline-offset:3px;
}
html[data-archelaos-page] main :is(a,button,input,textarea,select):focus-visible{
  scroll-margin-block:110px;
}
html[data-archelaos-page] :is(.hero,.section-heading,.pg-heading,.s2-section-intro,.c-section-copy) h2{
  text-wrap:balance;
}
/* Home: whitespace is the separator, not repeated borders and shadows. */
html[data-archelaos-page="home"] :is(.shell,.quote-section,.last-cta){
  padding-block:var(--arc-section)!important;
}
html[data-archelaos-page="home"] .departments-showcase{
  padding-block:clamp(82px,8vw,112px)!important;
}
html[data-archelaos-page="home"] .section-heading{
  margin-bottom:var(--arc-heading-gap);
  row-gap:18px;
}
html[data-archelaos-page="home"] .cards{
  gap:var(--arc-card-gap);
}
html[data-archelaos-page="home"] .card{
  border-radius:var(--arc-card-radius);
  border-color:var(--arc-line);
  box-shadow:none;
}
html[data-archelaos-page="home"] .card-link{padding:var(--arc-card-pad)}
html[data-archelaos-page="home"] .hero-copy p{max-width:56ch;line-height:1.76}
html[data-archelaos-page="home"] .hero-copy h1{margin-bottom:clamp(22px,3vw,34px)}
/* Museum: calmer archival catalog, consistent headings and card spacing. */
html[data-archelaos-page="museum"] #top .hero h1{
  /* Museum title should have the same restrained editorial weight as other page heroes. */
  font-weight:560;
}

html[data-archelaos-page="museum"] .collections{
  padding-block:clamp(42px,5.5vw,78px) var(--arc-section)!important;
}
html[data-archelaos-page="museum"] .museum-cards{gap:var(--arc-card-gap)}
html[data-archelaos-page="museum"] .museum-cards .collection{
  border-radius:var(--arc-card-radius);
  padding:var(--arc-card-pad);
  box-shadow:0 4px 18px rgba(9,62,38,.035);
  border-color:var(--arc-line);
}
html[data-archelaos-page="museum"] .museum-intro{
  margin-bottom:clamp(26px,3vw,42px);
}
html[data-archelaos-page="museum"] :is(.why-area,.archive){scroll-margin-top:110px}
/* Photographic archive: let original photos lead; subtle spacing and frames. */
html[data-archelaos-page="photos"] .pg-hero{
  padding-block:clamp(72px,7.5vw,112px) clamp(62px,6vw,92px);
}
html[data-archelaos-page="photos"] .pg-collection{
  padding-bottom:var(--arc-section);
}
html[data-archelaos-page="photos"] .pg-grid{gap:clamp(12px,1.65vw,22px)}
html[data-archelaos-page="photos"] .pg-tile{border-radius:10px;box-shadow:none}
html[data-archelaos-page="photos"] .pg-heading{margin-bottom:var(--arc-heading-gap)}
/* News: deliberate editorial rhythm with comfortable reading measures. */
html[data-archelaos-page="news"] .masthead{
  padding-block:clamp(66px,7vw,108px) clamp(42px,5vw,66px);
}
html[data-archelaos-page="news"] .content{
  padding-block:var(--arc-section);
}
html[data-archelaos-page="news"] .story-grid{gap:var(--arc-card-gap)}
html[data-archelaos-page="news"] .section-top{
  margin-bottom:var(--arc-heading-gap);
}
html[data-archelaos-page="news"] :is(.story,.story-image){
  box-shadow:none;
}
html[data-archelaos-page="news"] .story{border-color:var(--arc-line)}
html[data-archelaos-page="news"] .hero-copy p{max-width:52ch;line-height:1.7}
/* Support and contribution: a shared breathing rhythm, but preserve forms/tabs. */
html[data-archelaos-page="support"] .s2-section:not(.s2-hero){
  padding-block:var(--arc-section)!important;
}
html[data-archelaos-page="support"] .s2-section-intro{margin-bottom:var(--arc-heading-gap)}
html[data-archelaos-page="support"] .s2-impact-entry{border-color:var(--arc-line)}

/* Finish the Support hero-to-content rhythm without changing other sections. */
html[data-archelaos-page="support"] #s2-intro.s2-hero{
  padding-bottom:clamp(42px,4vw,60px);
}
html[data-archelaos-page="support"] #s2-needs.s2-values-section{
  padding-top:clamp(36px,4vw,52px)!important;
}

html[data-archelaos-page="contribute"] .c-section:not(.c-hero){
  padding-block:var(--arc-section)!important;
}
html[data-archelaos-page="contribute"] .c-process-list{gap:var(--arc-card-gap)}
html[data-archelaos-page="contribute"] .c-process-item{padding-top:clamp(20px,2vw,30px)}
/* Smaller screens still need purposeful rhythm, never desktop-sized empty gaps. */
@media(max-width:760px){
 html[data-archelaos-page]{
  --arc-outer:22px;
  --arc-section:72px;
  --arc-heading-gap:28px;
  --arc-card-gap:16px;
  --arc-card-pad:24px;
  --arc-card-radius:17px;
 }
 html[data-archelaos-page="home"] :is(.shell,.quote-section,.last-cta){
  padding-block:72px!important;
 }
 html[data-archelaos-page="home"] .departments-showcase{
  padding-block:72px!important;
 }
 html[data-archelaos-page="home"] .hero-copy p{margin-inline:auto}
 html[data-archelaos-page="museum"] .collections{
  padding-block:34px 72px!important;
 }
 html[data-archelaos-page="museum"] .museum-cards .collection{
  min-height:0;
  padding:24px;
 }
 html[data-archelaos-page="photos"] .pg-hero{padding-block:68px 74px}
 html[data-archelaos-page="photos"] .pg-grid{gap:12px}
 html[data-archelaos-page="news"] .masthead{padding-block:60px 42px}
 html[data-archelaos-page="news"] .content{padding-block:72px}
 html[data-archelaos-page="support"] .s2-section:not(.s2-hero),
 html[data-archelaos-page="contribute"] .c-section:not(.c-hero){
  padding-block:72px!important;
 }
}
@media(max-width:390px){
 html[data-archelaos-page]{--arc-outer:20px;--arc-card-pad:22px}
 html[data-archelaos-page="photos"] .pg-grid{gap:10px}
}
@media(prefers-reduced-motion:reduce){
 html[data-archelaos-page]{scroll-behavior:auto}
 html[data-archelaos-page] :is(.reveal,.c-reveal,.s2-line-motion,.v62-dual-lines){
  transition-duration:.01ms!important;
  animation-duration:.01ms!important;
 }
}

/* ARCHELAOS SPORT LINES v1 — decorative track lanes, never controls or content.
   Scoped to two pages; no JS, no animation, no change to historic photographs. */
html[data-archelaos-page="home"] .hero {
  isolation:isolate;
}
html[data-archelaos-page="home"] .hero::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:clamp(74px,11vw,148px);
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%201440%20148'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23176948'%20stroke-width%3D'1.55'%20stroke-linecap%3D'round'%3E%3Cpath%20opacity%3D'.69'%20d%3D'M-40%20141%20C215%20116%20397%20133%20628%2075%20S1093%2020%201480%2061'%2F%3E%3Cpath%20opacity%3D'.48'%20d%3D'M-40%20155%20C215%20130%20405%20149%20638%2094%20S1093%2037%201480%2078'%2F%3E%3Cpath%20opacity%3D'.31'%20d%3D'M-40%20169%20C215%20144%20413%20163%20648%20113%20S1093%2055%201480%2096'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size:100% 100%;
  background-repeat:no-repeat;
  pointer-events:none;
  opacity:.72;
  z-index:0;
}
html[data-archelaos-page="home"] .hero > .hero-content {
  position:relative;
  z-index:1;
}
/* The lanes return quietly at the departments showcase, not in each card. */
html[data-archelaos-page="home"] .departments-showcase {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
html[data-archelaos-page="home"] .departments-showcase::before,
html[data-archelaos-page="home"] .departments-showcase::after {
  content:"";
  position:absolute;
  inset-inline:0;
  height:clamp(64px,8vw,106px);
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%201440%20148'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23176948'%20stroke-width%3D'1.55'%20stroke-linecap%3D'round'%3E%3Cpath%20opacity%3D'.69'%20d%3D'M-40%20141%20C215%20116%20397%20133%20628%2075%20S1093%2020%201480%2061'%2F%3E%3Cpath%20opacity%3D'.48'%20d%3D'M-40%20155%20C215%20130%20405%20149%20638%2094%20S1093%2037%201480%2078'%2F%3E%3Cpath%20opacity%3D'.31'%20d%3D'M-40%20169%20C215%20144%20413%20163%20648%20113%20S1093%2055%201480%2096'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size:100% 100%;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:0;
}
html[data-archelaos-page="home"] .departments-showcase::before {
  top:0;
  transform:scaleX(-1);
  opacity:.34;
}
html[data-archelaos-page="home"] .departments-showcase::after {
  bottom:0;
  transform:scaleY(-1);
  opacity:.28;
}
html[data-archelaos-page="home"] .departments-showcase > .departments-inner {
  position:relative;
  z-index:1;
}
/* On Support, a quiet curved line introduces the existing 01 / 02 / 03 sequence.
   The actual numbered entries stay untouched, readable, and clickable. */
html[data-archelaos-page="support"] #s2-impact .s2-impact-sequence {
  position:relative;
  isolation:isolate;
}
html[data-archelaos-page="support"] #s2-impact .s2-impact-sequence::before {
  content:"";
  position:absolute;
  top:-45px;
  right:0;
  width:min(100%,720px);
  height:84px;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%201440%20148'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23176948'%20stroke-width%3D'1.55'%20stroke-linecap%3D'round'%3E%3Cpath%20opacity%3D'.69'%20d%3D'M-40%20141%20C215%20116%20397%20133%20628%2075%20S1093%2020%201480%2061'%2F%3E%3Cpath%20opacity%3D'.48'%20d%3D'M-40%20155%20C215%20130%20405%20149%20638%2094%20S1093%2037%201480%2078'%2F%3E%3Cpath%20opacity%3D'.31'%20d%3D'M-40%20169%20C215%20144%20413%20163%20648%20113%20S1093%2055%201480%2096'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size:100% 100%;
  background-repeat:no-repeat;
  pointer-events:none;
  opacity:.36;
  z-index:0;
}
html[data-archelaos-page="support"] #s2-impact .s2-impact-entry {
  position:relative;
  z-index:1;
}
@media(max-width:760px){
  html[data-archelaos-page="home"] .hero::after {
    height:72px;
    opacity:.46;
  }
  html[data-archelaos-page="home"] .departments-showcase::before,
  html[data-archelaos-page="home"] .departments-showcase::after {
    height:58px;
    opacity:.23;
  }
  html[data-archelaos-page="support"] #s2-impact .s2-impact-sequence::before {
    top:-27px;
    height:52px;
    opacity:.25;
  }
}
@media(max-width:390px){
  html[data-archelaos-page="home"] .hero::after{height:56px;opacity:.34}
}
