/* Shared site chrome for inner pages.
   Mirrors the landing page header, footer and container (style.css + design-refinements.css)
   so every page lines up with index.html at every width. Load after pages.css. */
:root{--u:1px;--dark:#0b152f}
@media(min-width:951px){:root{--u:min(.0520833333vw,1px)}}

/* Container: same widths as the landing page */
body .container{width:75%;max-width:calc(1440 * var(--u));margin-inline:auto}
@media(max-width:950px){body .container{width:88%;max-width:none}}
@media(max-width:600px){body .container{width:90%}}

/* Header */
body .site-header{height:calc(90 * var(--u));background:#f2faff;border-bottom:0;box-shadow:0 4px 15px #163d5810;position:relative;z-index:6}
body .site-header .header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:calc(25 * var(--u))}
body .site-header .brand{width:calc(180 * var(--u));flex-shrink:0;font:400 calc(25 * var(--u)) Inter,Arial,sans-serif;letter-spacing:-.06em;color:var(--blue)}
body .brand i{font-family:'Instrument Serif',Georgia,serif;font-size:1.45em;color:var(--navy);font-weight:400}
body .brand b{font-weight:750}
body .site-header nav{display:flex;flex:1;justify-content:flex-start;gap:calc(36 * var(--u));margin-left:calc(94 * var(--u));font-size:calc(18 * var(--u));color:var(--navy)}
body .site-header nav a{color:var(--navy)}
body .site-header nav a:hover{color:var(--blue)}
body .site-header nav a[aria-current]{color:var(--blue);text-decoration:underline;text-underline-offset:8px}
body .site-header .header-actions{display:flex;align-items:center;gap:calc(30 * var(--u));font-size:calc(14 * var(--u));white-space:nowrap}
body .site-header .header-actions .button{font-size:calc(13 * var(--u));border-radius:calc(30 * var(--u));padding:calc(12 * var(--u)) calc(20 * var(--u));gap:5px}
body .site-header .plus{font-size:calc(26 * var(--u));line-height:calc(18 * var(--u))}
body .site-header .text-button{background:none;padding:0;font-size:calc(14 * var(--u));font-weight:600;color:var(--ink)}
body .site-header .text-button.blue{color:var(--blue)}
body .site-header .menu-toggle{display:none;background:none;font-size:25px;color:var(--navy)}

/* Footer */
body .site-footer{background:var(--dark);color:#a6afc2;position:relative;overflow:hidden;height:calc(324 * var(--u));margin:calc(79 * var(--u)) 0 0;padding:calc(50 * var(--u)) 0 calc(20 * var(--u))}
body .site-footer .footer-grid{display:grid;grid-template-columns:calc(260 * var(--u)) repeat(4,minmax(0,1fr));gap:calc(58 * var(--u));position:relative;z-index:1}
body .site-footer .brand,body .site-footer .brand i{color:#d6def0}
body .site-footer .brand{font:400 calc(25 * var(--u)) Inter,Arial,sans-serif;letter-spacing:-.06em}
body .site-footer .footer-grid p{font-size:calc(14 * var(--u));line-height:calc(18 * var(--u));margin:calc(17 * var(--u)) 0 0;max-width:calc(230 * var(--u))}
body .site-footer h4{font:500 calc(14 * var(--u))/calc(20 * var(--u)) Inter,Arial,sans-serif;letter-spacing:calc(.7 * var(--u));color:#e4e8f1;margin:0 0 calc(15 * var(--u));white-space:nowrap}
body .site-footer .footer-grid>div>a:not(.brand){display:block;font-size:calc(12 * var(--u));line-height:calc(16 * var(--u));margin:0 0 calc(10 * var(--u));color:inherit}
body .site-footer .footer-grid a:hover{color:#fff}
body .site-footer .socials{display:flex;gap:calc(17 * var(--u));align-items:center;margin-top:calc(35 * var(--u));color:#fff}
body .site-footer .socials span{font-size:calc(20 * var(--u))}
body .site-footer .socials span:first-child,body .site-footer .socials span:last-child{background:#1688ec;border-radius:50%;width:calc(24 * var(--u));height:calc(24 * var(--u));text-align:center;font-weight:bold}
body .site-footer .socials span:last-child{font-size:calc(14 * var(--u));padding-top:calc(4 * var(--u))}
body .site-footer .copyright{width:calc(390 * var(--u));max-width:90%;margin:calc(8 * var(--u)) auto 0;border-top:1px solid #ffffff20;padding-top:calc(24 * var(--u));text-align:center;font-size:calc(10 * var(--u));line-height:calc(14 * var(--u));color:#dfe5f3}
body .site-footer .footer-watermark{position:absolute;right:calc(-10 * var(--u));bottom:calc(-25 * var(--u));font-size:calc(140 * var(--u));line-height:1;letter-spacing:-.055em;color:#ffffff2a;pointer-events:none;white-space:nowrap}
body .site-footer .footer-watermark i{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:1.2em}

/* Tablet & mobile: same breakpoints and values as the landing page */
@media(max-width:950px){
  body .site-header{height:75px}
  body .site-header .header-inner{gap:15px}
  body .site-header .brand{width:auto;font-size:23px}
  body .site-header .menu-toggle{display:block;margin-left:auto}
  body .site-header .header-actions{gap:15px;font-size:12px}
  body .site-header .header-actions>span{display:none}
  body .site-header .header-actions .button{font-size:12px;border-radius:30px;padding:9px 18px}
  body .site-header .plus{font-size:23px;line-height:16px}
  body .site-header nav{display:none;position:absolute;top:75px;left:0;right:0;margin:0;padding:25px 6%;gap:18px;flex-wrap:wrap;font-size:15px;background:#f2faff;box-shadow:0 8px 10px #0001;z-index:5}
  body .site-header nav.open{display:flex}
  body .site-footer{height:auto;padding:45px 0 20px;margin-top:65px}
  body .site-footer .footer-grid{grid-template-columns:repeat(3,1fr);gap:35px}
  body .site-footer .brand{font-size:23px}
  body .site-footer .footer-grid p{font-size:12px;line-height:1.3;margin-top:13px;max-width:190px}
  body .site-footer h4{font-size:12px;line-height:1.3;letter-spacing:.6px;margin-bottom:14px}
  body .site-footer .footer-grid>div>a:not(.brand){font-size:10px;line-height:1.4;margin-bottom:10px}
  body .site-footer .socials{gap:15px;margin-top:30px}
  body .site-footer .socials span{font-size:17px}
  body .site-footer .socials span:first-child,body .site-footer .socials span:last-child{width:20px;height:20px}
  body .site-footer .socials span:last-child{font-size:12px;padding-top:3px}
  body .site-footer .copyright{width:325px;margin-top:25px;padding-top:22px;font-size:9px;line-height:1.4}
  body .site-footer .footer-watermark{font-size:90px;right:-10px;bottom:-35px}
}
@media(max-width:600px){
  body .site-header{height:68px}
  body .site-header .header-inner{gap:10px}
  body .site-header .brand{font-size:21px}
  body .brand i{font-size:1.3em}
  body .site-header .header-actions .button{font-size:10px;padding:9px}
  body .site-header .plus{font-size:16px}
  body .site-header nav{top:68px;flex-direction:column}
  body .site-footer{margin-top:35px}
  body .site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:30px 20px}
  body .site-footer .footer-grid>div:first-child{grid-column:1/-1}
  body .site-footer .footer-grid p{max-width:280px}
  body .site-footer h4{font-size:10px;white-space:normal}
  body .site-footer .socials{margin-top:15px}
  body .site-footer .footer-watermark{font-size:65px;bottom:-12px}
  body .site-footer .copyright{margin-top:40px;position:relative;z-index:1;padding-bottom:30px}
}

/* Page titles use the landing page's hero typeface, with its light rays */
body .page-hero{position:relative;overflow:hidden}
body .page-hero:before{content:'';position:absolute;inset:0;background:url('assets/hero-rays.svg') center top / 100% auto no-repeat;opacity:.45;pointer-events:none;mask-image:linear-gradient(#000,transparent 85%)}
body .page-hero>.container{position:relative}
body .page-hero h1{font-family:Comfortaa,'Plus Jakarta Sans',sans-serif;font-weight:500;letter-spacing:-.04em}
body .page-hero h1 em{font-size:1.15em;letter-spacing:-.025em}
body .account-shell{min-height:calc(100vh - calc(90 * var(--u)))}

/* Readable scaling on laptops (never below 85% of the 1920px design) */
@media(min-width:951px){:root{--u:max(.85px,min(.0520833333vw,1px))}}
@media(min-width:951px) and (max-width:1279px){body .container{width:90%}}
@media(min-width:1280px) and (max-width:1599px){body .container{width:84%}}
@media(min-width:951px) and (max-width:1279px){body .site-header .brand{width:auto}body .site-header nav{margin-left:28px;gap:20px;font-size:15px;white-space:nowrap}body .site-header .header-actions{gap:16px}}
