/* White Rabbit Sanctum — consolidated style overrides (hero photo, pathway cards, nav).
   Replaces round3-overrides.css + round4-hero.css + round5-polish.css, which defined the SAME
   selectors across three separate files (safe in normal cascade, but risky to keep stacking
   per the round 6 instruction to consolidate rather than add a 4th override file). */

/* ---- Hero: real photo (round 4 asset), final gradient/typography (round 5 refinement) ---- */
.showcase-img::before{
  inset:0;transform:none;filter:none;
  background-image:url('white-rabbit-hero-opt.jpg');
  background-position:center 38%;background-size:cover;
}
.showcase-inner{
  align-items:center;justify-content:flex-end;text-align:center;
  min-height:min(86svh,900px);
  padding:40px clamp(20px,6vw,80px) clamp(26px,3.5vw,54px);
}
.showcase-inner .sub{margin:0 auto 1.1em;max-width:570px}
.showcase-inner h1{max-width:680px;font-size:clamp(2.4rem,4.6vw,4.5rem);line-height:1.09;margin-bottom:.3em}
.showcase-inner .btn{margin-left:6px}
@media (min-width:901px){
  .showcase-img::after{background:linear-gradient(to top, rgba(9,9,18,.93) 0%, rgba(9,9,18,.66) 18%, rgba(9,9,18,.10) 44%, transparent 55%);}
}
@media (max-width:900px){
  .showcase-img::after{background:linear-gradient(to top, rgba(9,9,18,.93) 0%, rgba(9,9,18,.72) 22%, rgba(9,9,18,.22) 48%, transparent 62%);}
}

/* Hidden on desktop; the mobile "stacked" image shown in normal document flow. */
.hero-mobile-img{display:none}

@media(max-width:760px){
  /* Mobile: stacked layout — real image at natural aspect ratio (never cropped), then a
     separate solid text panel below. Guarantees the rabbit/doorway are always visible. */
  .hero-mobile-img{display:block;width:100%;height:auto}
  .showcase-img::before,.showcase-img::after{display:none}
  .showcase-img{background:var(--plum)}
  .showcase-inner{
    align-items:center;justify-content:center;
    padding:22px 20px 28px;min-height:0;
  }
  .showcase-inner h1{font-size:clamp(2rem,8.3vw,2.9rem);line-height:1.1;margin-bottom:.32em}
  .showcase-inner .sub{margin-bottom:1em}
  .showcase-inner .btn{margin-left:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}

/* ---- Five pathway cards: gothic-arch shape (round 3), lighter/refined overlay (round 5) ---- */
.pathways-grid{gap:clamp(10px,1.4vw,20px);}
.pway{
  min-height:410px;overflow:hidden;
  border-radius:46% 46% 8px 8px / 19% 19% 8px 8px;
  border:2px solid rgba(197,160,106,.72);
  padding:28px 17px 22px;justify-content:flex-end;
  box-shadow:0 10px 35px #0007;
}
.pway::before{inset:0;filter:none;transform:none;background-position:center;background-size:cover;}
.pway::after{background:linear-gradient(to bottom, rgba(9,9,18,.02) 0%, rgba(9,9,18,.06) 42%, rgba(9,9,18,.78) 70%, rgba(9,9,18,.97) 100%);}
.pway .icon-svg{margin-bottom:auto;filter:drop-shadow(0 2px 4px #000);}
.pway .tag,.pway h3,.pway p,.pway .enter{text-shadow:0 2px 6px #000;position:relative;z-index:1}
.pway p{flex-grow:0;}
.pway:focus-visible,.btn:focus-visible{outline:3px solid #f4ebdd;outline-offset:4px;}
@media(max-width:1100px) and (min-width:761px){.pathways-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pway{min-height:460px;}}
@media(max-width:760px){
  .pathways-grid{grid-template-columns:minmax(0,1fr);}
  .pway{min-height:430px;max-width:470px;width:100%;margin-inline:auto;}
}
@media(prefers-reduced-motion:reduce){.pway{transition:none;}.pway:hover{transform:none;}}

/* ---- Header / nav (breakpoint moved to 900px directly in main stylesheet, not here) ---- */
@media(max-width:760px){
  .brand{font-size:clamp(.66rem,2.8vw,.92rem);letter-spacing:.035em;white-space:normal;line-height:1.3;max-width:calc(100% - 76px);}
  header>nav{padding:12px 16px;}
}
