/* Shared navigation and subpage system */

body.shell-ready{
  min-height:100vh;
  color:var(--ink);
  background:var(--paper);
  font-family:var(--sans);
}

body.shell-ready h1,
body.shell-ready h2,
body.shell-ready h3,
body.shell-ready .h2{
  font-family:var(--serif);
  letter-spacing:-.025em;
}

body.shell-ready p,
body.shell-ready li{
  line-height:1.65;
}

/* Site navigation */
.shell-nav{
  position:sticky;
  top:0;
  z-index:100;
  border-top:5px solid var(--cardinal);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.98);
  box-shadow:none;
  backdrop-filter:blur(14px);
}

.shell-nav .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  width:100%;
  max-width:1320px;
  min-height:78px;
  margin:0 auto;
  padding:10px 32px;
}

.shell-nav .brand{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:12px;
  color:var(--ink);
  text-decoration:none;
}

.shell-nav .brand:hover{
  opacity:1;
  text-decoration:none;
}

.shell-nav .brand-mark{
  width:42px;
  height:42px;
  object-fit:contain;
}

.shell-nav .brand-copy{
  display:grid;
  line-height:1.05;
}

.shell-nav .brand .title{
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:1.8rem;
  font-weight:700;
  letter-spacing:-.03em;
}

.shell-nav .brand-subtitle{
  margin-top:4px;
  color:var(--muted);
  font-size:.76rem;
}

.shell-nav .navlinks{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:22px;
  min-width:0;
}

.shell-nav .navlinks>a,
.shell-nav .nav-menu-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ink);
  font-family:var(--sans);
  font-size:.91rem;
  font-weight:680;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.shell-nav .navlinks>a::after,
.shell-nav .nav-menu-toggle::after{
  content:"";
  position:absolute;
  right:100%;
  bottom:2px;
  left:0;
  height:2px;
  background:var(--cardinal);
  transition:right .18s ease;
}

.shell-nav .navlinks>a:hover::after,
.shell-nav .navlinks>a[aria-current="page"]::after,
.shell-nav .nav-group.is-current .nav-menu-toggle::after,
.shell-nav .nav-group[data-open="true"] .nav-menu-toggle::after{
  right:0;
}

.shell-nav .navlinks>a[aria-current="page"],
.shell-nav .nav-group.is-current .nav-menu-toggle{
  color:var(--cardinal);
}

.nav-group{
  position:relative;
}

.nav-menu-toggle{
  gap:5px;
}

.nav-menu-toggle svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease;
}

.nav-group[data-open="true"] .nav-menu-toggle svg{
  transform:rotate(180deg);
}

.nav-menu-panel{
  position:absolute;
  top:calc(100% + 9px);
  right:-18px;
  display:none;
  width:285px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  box-shadow:0 18px 46px rgba(43,31,24,.14);
}

.nav-group[data-open="true"] .nav-menu-panel,
.nav-group:focus-within .nav-menu-panel{
  display:grid;
}

.nav-menu-panel a{
  display:grid;
  gap:2px;
  padding:12px 13px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  text-decoration:none;
}

.nav-menu-panel a:hover,
.nav-menu-panel a[aria-current="page"]{
  background:var(--paper);
  color:var(--cardinal);
  text-decoration:none;
}

.nav-menu-panel strong{
  font-size:.9rem;
}

.nav-menu-panel span{
  color:var(--muted);
  font-size:.75rem;
  font-weight:500;
}

.shell-nav .hamburger{
  display:none;
  width:44px;
  height:44px;
  margin-left:auto;
  padding:10px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  box-shadow:none;
  flex-direction:column;
  gap:4px;
}

.shell-nav .hamburger span[aria-hidden="true"]{
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
}

/* Shared trust strip */
.shell-trust{
  border-bottom:1px solid var(--line);
  background:var(--paper);
  color:#434541;
  font-size:.82rem;
}

.shell-trust .container{
  display:flex;
  justify-content:center;
  gap:24px;
  max-width:1280px;
  padding:9px 32px;
}

.shell-trust span+span::before{
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 12px 3px 0;
  border-radius:50%;
  background:var(--cardinal);
}

/* Shared subpage foundations */
body.shell-ready:not(.page-home) main{
  color:var(--ink);
}

body.shell-ready:not(.page-home):not(.page-not-found) main h1{
  margin:0 0 16px;
  color:var(--ink);
  font-size:clamp(2.7rem,5vw,4.25rem);
  font-weight:700;
  line-height:1.02;
}

body.shell-ready:not(.page-home):not(.page-not-found) main h2{
  color:var(--ink);
}

.page-resources .resource-hero,
.page-privacy .privacy-hero,
.page-advice .advice-hero,
.page-ask .ask-hero,
.page-tips .tips-hero,
.page-clubs>.hero{
  padding:clamp(58px,7vw,88px) 0;
  border-bottom:1px solid var(--line);
  background:var(--white);
  background-image:none;
}

.page-advice .advice-hero .inner,
.page-ask .ask-hero .inner,
.page-tips .tips-hero .inner{
  width:min(1120px,calc(100% - 64px));
  max-width:1120px;
  margin:0 auto;
}

.page-clubs>.hero .wrap{
  max-width:1120px;
  padding:0 32px;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.7fr);
  gap:58px;
}

.page-clubs>.hero h1,
.page-advice .advice-title,
.page-ask .ask-title,
.page-tips .tips-title{
  max-width:850px;
  color:var(--ink);
  text-shadow:none;
}

.page-clubs>.hero h1,
.page-clubs>.hero>.container.wrap>div:first-child p,
.page-clubs>.hero>.container.wrap>div:first-child .small{
  color:var(--ink)!important;
  text-shadow:none!important;
}

.page-advice .advice-kicker,
.page-ask .ask-kicker,
.page-tips .tips-kicker,
.page-about .about-hero .eyebrow,
.page-clubs>.hero .badge{
  display:block;
  width:auto;
  margin:0 0 14px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--cardinal);
  font-family:var(--sans);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.1em;
  line-height:1.3;
  text-transform:uppercase;
  text-shadow:none;
}

.page-advice .advice-sub,
.page-ask .ask-sub,
.page-tips .tips-sub,
.page-advice .advice-hero-note,
.page-ask .ask-hero-note,
.page-tips .tips-hero-note,
.page-clubs>.hero p{
  max-width:720px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.7;
  text-shadow:none;
}

.page-advice .advice-hero-note{
  width:auto;
  max-width:720px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
}

.page-clubs>.hero .card{
  padding:26px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:none;
  color:var(--ink);
}

.page-clubs>.hero .badgeline{
  gap:8px 18px;
  margin-top:18px;
}

.page-clubs>.hero .badgeline .tag{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:.8rem;
  text-shadow:none;
  backdrop-filter:none;
}

.page-clubs .club-directory-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:18px
}

.page-clubs .club-card--compact{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:13px 16px;
  align-content:start;
  padding:24px
}

.page-clubs .club-card-mark{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border:1px solid #c8a7ae;
  border-radius:50%;
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:.95rem;
  font-weight:800
}

.page-clubs .club-card--compact .title{
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:1.45rem
}

.page-clubs .club-card--compact>p,
.page-clubs .club-card-tags,
.page-clubs .club-card-link,
.page-clubs .club-card-links{
  grid-column:1/-1
}

.page-clubs .club-card--compact>p{
  margin:0;
  color:var(--muted)
}

.page-clubs .club-card-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.page-clubs .club-card-tags .tag{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:#555851;
  font-size:.72rem
}

.page-clubs .club-card-link{
  width:max-content;
  max-width:100%;
  padding-bottom:2px;
  border-bottom:1px solid currentColor;
  color:var(--cardinal);
  font-size:.78rem;
  font-weight:720;
  text-decoration:none
}

.page-clubs .club-card-links{
  display:flex;
  gap:12px 20px;
  flex-wrap:wrap
}

/* Open editorial content instead of mismatched floating page shells */
.page-advice .advice-layout,
.page-ask .ask-layout,
.page-tips .tips-layout{
  padding:64px 32px 80px;
  background:var(--paper);
}

.page-about .about-page{
  padding:64px 0 80px;
  background:var(--paper);
}

.page-about .about-wrap{
  max-width:1120px;
  padding:0 32px;
}

.page-about .about-hero{
  margin:0 0 54px;
  padding:0 0 42px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.page-about .about-hero .lead{
  max-width:760px;
  color:var(--muted);
  font-size:1.05rem;
}

.page-about .about-jump{
  gap:14px 24px;
  margin-top:26px;
}

.page-about .about-jump a,
.page-ask .ask-hero-links a{
  padding:0 0 3px;
  border:0;
  border-bottom:1px solid currentColor;
  border-radius:0;
  background:transparent;
  color:var(--cardinal);
  font-weight:680;
}

.page-dates #main{
  width:min(1120px,100%);
  max-width:1120px;
  padding:64px 32px 82px;
}

.page-dates .page-center{
  max-width:1040px;
}

.page-dates .page-center>h1,
.page-dates .page-center>.desc{
  text-align:left;
}

.page-dates .page-center>.desc{
  max-width:760px;
  color:var(--muted);
  font-size:1rem;
}

.page-dates .dates-controls{
  justify-items:start;
  margin:30px 0 44px;
}

.page-dates #term-chips,
.page-dates #type-chips{
  justify-content:flex-start;
}

/* Shared cards and sections */
.page-advice .hub-card,
.page-advice .hub-small-card,
.page-ask .ask-main-card,
.page-ask .ask-side-card,
.page-tips .tips-card,
.page-tips .tips-note-card,
.page-about .about-card,
.page-dates .card,
.page-clubs main .card{
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
  box-shadow:none;
}

.page-advice .hub-card,
.page-advice .hub-small-card,
.page-ask .ask-main-card,
.page-ask .ask-side-card,
.page-tips .tips-card,
.page-tips .tips-note-card,
.page-about .about-card{
  padding:clamp(22px,3vw,32px);
}

.page-about .about-grid{
  gap:18px;
}

.page-advice .hub-card h2,
.page-advice .hub-small-card h3,
.page-ask .ask-main-card h2,
.page-ask .ask-side-card h3,
.page-tips .tips-card h2,
.page-tips .tips-note-card h3,
.page-about .about-card h2{
  color:var(--cardinal);
  font-size:clamp(1.35rem,2vw,1.8rem);
}

.page-advice .hub-actions .button,
.page-tips .tips-cta{
  min-height:46px;
  padding:10px 17px;
  border-radius:7px;
}

.page-tips .tips-cta{
  background:var(--cardinal);
}

.page-resources .resource-directory,
.page-privacy .privacy-content{
  padding-top:70px;
  padding-bottom:80px;
}

.page-resources .urgent-band,
.page-resources .urgent-band h2,
.page-resources .urgent-band p,
.page-resources .urgent-band a:not(.button){
  color:var(--white)!important;
}

.page-not-found .not-found>.brand{
  display:none;
}

.page-not-found .not-found{
  padding-top:clamp(70px,10vw,120px);
}

/* Shared footer */
.shell-footer{
  margin:0;
  border-top:1px solid var(--line);
  background:var(--paper);
}

.shell-footer .inner{
  max-width:1280px;
  margin:0 auto;
  padding:28px 32px 22px;
  color:#343632;
}

.shell-footer .foot-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding-bottom:20px;
}

.shell-footer .foot-top>p{
  max-width:480px;
  margin:0;
  font-size:.87rem;
}

.shell-footer .footer-links{
  display:flex;
  justify-content:flex-end;
  gap:24px;
  flex-wrap:wrap;
}

.shell-footer a{
  color:var(--cardinal);
  text-underline-offset:3px;
}

.shell-footer .subfooter{
  display:flex;
  justify-content:space-between;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.78rem;
}

@media (max-width:1120px){
  .shell-nav .inner{gap:18px}
  .shell-nav .navlinks{gap:15px}
  .shell-nav .navlinks>a,
  .shell-nav .nav-menu-toggle{font-size:.85rem}
}

@media (max-width:940px){
  .shell-nav .inner{
    min-height:70px;
    padding:10px 20px;
    flex-wrap:wrap;
  }

  .shell-nav .hamburger{
    display:flex;
  }

  .shell-nav .navlinks{
    display:none;
    flex:0 0 100%;
    width:100%;
    padding:8px 0 6px;
  }

  .shell-nav .navlinks.open{
    display:grid;
    grid-template-columns:1fr;
    justify-content:stretch;
    gap:0;
  }

  .shell-nav .navlinks>a,
  .shell-nav .nav-menu-toggle{
    width:100%;
    justify-content:space-between;
    min-height:48px;
    padding:13px 2px;
    border-top:1px solid var(--line);
    font-size:.92rem;
  }

  .shell-nav .navlinks>a::after,
  .shell-nav .nav-menu-toggle::after{
    display:none;
  }

  .nav-group{
    width:100%;
  }

  .nav-menu-panel{
    position:static;
    display:none;
    width:100%;
    padding:0 0 10px 16px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .nav-group[data-open="true"] .nav-menu-panel{
    display:grid;
  }

  .nav-menu-panel a{
    padding:10px 13px;
    border-left:2px solid var(--line);
    border-radius:0;
  }

  .page-clubs>.hero .wrap{
    grid-template-columns:1fr;
    gap:28px;
  }
}

@media (max-width:700px){
  .shell-nav .brand .title{font-size:1.55rem}
  .shell-nav .brand-subtitle{font-size:.72rem}
  .shell-nav .brand-mark{width:36px;height:36px}

  .shell-trust{
    font-size:.75rem;
  }

  .shell-trust .container{
    justify-content:center;
    gap:4px 14px;
    padding:8px 20px;
    flex-wrap:wrap;
    overflow:visible;
    text-align:center;
    white-space:normal;
  }

  .shell-trust span+span::before{
    margin-right:8px;
  }

  .page-advice .advice-hero .inner,
  .page-ask .ask-hero .inner,
  .page-tips .tips-hero .inner{
    width:calc(100% - 40px);
  }

  .page-clubs>.hero .wrap,
  .page-about .about-wrap,
  .page-dates #main{
    padding-right:20px;
    padding-left:20px;
  }

  .page-clubs .club-directory-grid{grid-template-columns:1fr}

  .page-advice .advice-layout,
  .page-ask .ask-layout,
  .page-tips .tips-layout{
    padding:46px 20px 64px;
  }

  .page-resources .resource-directory,
  .page-privacy .privacy-content{
    padding-top:52px;
    padding-bottom:62px;
  }

  .page-tips .tips-card-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .page-tips .tips-label{
    white-space:normal;
  }

  .shell-footer .inner{
    padding:26px 20px 20px;
  }

  .shell-footer .foot-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .shell-footer .footer-links{
    justify-content:flex-start;
    gap:14px 20px;
  }

  .shell-footer .subfooter{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
}
