/* styles.css — extracted verbatim from the single-file prototype. Locked design system (July 2026): see project notes. */

  :root{
    --ink:#1E1C19;
    --grey:#767676;
    --white:#FFFEFB;
    --beige:#FBFAF5;
    --border:#ECECE5;
    --grey-on-beige:#676767;
    --magic-eye-color: rgb(105, 91, 126);
    --seance-color: rgb(87, 119, 158);
    --content-max: 1440px;
    --main-pad-x: 40px;
    --sidebar-w: 272px;
    --sidebar-w-collapsed: 68px;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html, body{
    width:100%;
    overflow-x:hidden;
  }
  body{
    font-family:'Inter',sans-serif;
    background:var(--beige);
    color:var(--ink);
    line-height:1.5;
    font-size:16px;
    font-weight:300;
  }
  button{font-family:inherit;}
  input{font-family:inherit; font-weight:inherit;}
  a{color:inherit;}

  h1{ font-size:32px; font-weight:700; line-height:1.2; }
  h2{ font-size:24px; font-weight:600; line-height:1.25; }
  h3{ font-size:20px; font-weight:600; line-height:1.3; }

  /* ---------- SIDEBAR — fixed to viewport, stretches with height ---------- */
  .sidebar{
    position:fixed;
    top:0; left:0; bottom:0;
    width:var(--sidebar-w);
    background:var(--beige);
    border-right:0.5px solid var(--border);
    display:flex;
    flex-direction:column;
    padding:20px 16px;
    transition:width .18s ease, transform .22s ease;
    z-index:20;
  }
  .sidebar.collapsed{
    width:var(--sidebar-w-collapsed);
    padding:20px 12px;
  }

  .sb-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:28px;
    min-height:28px;
  }
  .sidebar.collapsed .sb-top{ justify-content:center; }
  .icon-btn.mobile-close-btn{ display:none; }

  .logo{
    font-weight:700;
    font-size:18px;
    letter-spacing:-0.4px;
    display:flex;
    align-items:baseline;
    gap:1px;
    white-space:nowrap;
  }
  /* The sidebar logo is a link home; the auth-screen logos stay plain divs. */
  a.logo{ text-decoration:none; color:inherit; cursor:pointer; }
  .logo img{ height:22px; width:auto; display:block; }
  .logo sup{ font-size:10px; }
  .sidebar.collapsed .logo{ display:none; }

  .icon-btn{
    position:relative;
    display:flex; align-items:center; justify-content:center;
    padding:9px;
    border:none; background:none;
    border-radius:8px;
    cursor:pointer;
    color:var(--ink);
    flex-shrink:0;
  }
  .icon-btn:hover{ background:var(--border); }

  .shared-tooltip{
    position:fixed;
    background:var(--ink); color:var(--white);
    font-size:14px; font-weight:500;
    padding:6px 12px; border-radius:6px;
    white-space:nowrap;
    opacity:0; pointer-events:none;
    transition:opacity .12s;
    z-index:999;
  }
  .shared-tooltip.show{ opacity:1; }

  .nav{ display:flex; flex-direction:column; gap:2px; }
  .nav-item{
    position:relative;
    display:flex; align-items:center; gap:12px;
    padding:6px 10px;
    border-radius:8px;
    font-size:16px;
    font-weight:300;
    line-height:1.25;
    cursor:pointer;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
  }
  .nav-item:hover{ background:var(--border); }
  .nav-item.active{ background:var(--border); }
  .nav-item svg{ flex-shrink:0; width:16px; height:16px; }
  .nav-item .nav-label{ overflow:hidden; text-overflow:ellipsis; }
  .sidebar.collapsed .nav-item{ justify-content:center; padding:9px; }
  .sidebar.collapsed .nav-label{ display:none; }
  .sidebar.collapsed .nav-chevron{ display:none; }
  .sidebar.collapsed .nav-item.parent{ display:none; }
  .sidebar.collapsed .nav-children .nav-item{ padding-left:9px; }

  .nav-item.parent{ justify-content:space-between; }
  .nav-chevron{
    width:14px;height:14px;
    color:var(--grey-on-beige);
    transition:transform .15s;
    flex-shrink:0;
  }
  .nav-group.expanded .nav-chevron{ transform:rotate(180deg); }
  .nav-children{
    display:flex; flex-direction:column; gap:2px;
    max-height:0; overflow:hidden;
    transition:max-height .2s ease;
  }
  .nav-group.expanded .nav-children{ max-height:220px; margin-top:2px; }
  .nav-children .nav-item{ padding-left:32px; }
  .sidebar.collapsed .nav-children{ max-height:none !important; overflow:visible !important; }
  .sidebar.collapsed .nav-group{ overflow:visible !important; }

  .sb-spacer{ flex:1; }

  .sb-bottom{ display:flex; flex-direction:column; align-items:center; gap:10px; }
  .sb-divider{
    width:calc(100% + 32px);
    margin:0 -16px;
    border-top:0.5px solid var(--border);
    flex-shrink:0;
  }
  .sidebar.collapsed .sb-divider{ display:none; }
  .help-row{
    position:relative;
    width:100%;
    display:flex; align-items:center; justify-content:space-between;
    padding:9px 10px;
    font-size:16px; font-weight:300; line-height:1.25;
    cursor:pointer;
    border-radius:8px;
  }
  .help-row:hover{ background:var(--border); }
  .help-row .hr-left{ display:flex; align-items:center; gap:12px; }
  .sidebar.collapsed .help-row{ justify-content:center; }
  .sidebar.collapsed .help-row .nav-label,
  .sidebar.collapsed .help-row .nav-chevron{ display:none; }

  .account-row{
    display:flex; align-items:center; gap:10px;
    width:100%;
    padding:6px 8px;
    border-radius:8px;
    cursor:pointer;
  }
  .account-row:hover{ background:var(--border); }
  .account-row .nav-label{ flex:1; overflow:hidden; text-overflow:ellipsis; font-size:16px; font-weight:300; }
  .account-row-chevron{ width:16px; height:16px; color:var(--grey-on-beige); flex-shrink:0; }
  .sidebar.collapsed .account-row{ justify-content:center; padding:0; }
  .sidebar.collapsed .account-row .nav-label,
  .sidebar.collapsed .account-row-chevron{ display:none; }

  .account-avatar{
    border-radius:50%;
    background:var(--ink); color:var(--white);
    display:flex; align-items:center; justify-content:center;
    font-weight:600;
    overflow:hidden;
    flex-shrink:0;
  }
  .account-avatar img{ width:100%; height:100%; object-fit:cover; }
  .account-avatar--sm{ width:32px; height:32px; font-size:13px; }
  .account-avatar--md{ width:72px; height:72px; font-size:26px; }
  .account-avatar--lg{ width:140px; height:140px; font-size:48px; }

  .avatar-badge{
    position:absolute;
    bottom:0; right:0;
    border-radius:50%;
    background:var(--white);
    border:0.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    color:var(--ink);
  }
  .avatar-badge svg{ flex-shrink:0; }
  .avatar-badge--sm{ width:24px; height:24px; }
  .avatar-badge--sm svg{ width:12px; height:12px; }
  .avatar-badge--lg{ width:36px; height:36px; }
  .avatar-badge--lg svg{ width:16px; height:16px; }

  .checklist-card{
    width:100%;
    background:var(--white);
    border:0.5px solid var(--border);
    border-radius:14px;
    padding:14px 14px 12px;
  }
  .checklist-collapsed-icon{ display:none; }
  .checklist-header{ display:flex; align-items:center; cursor:pointer; }
  .checklist-title{ font-size:16px; font-weight:300; flex:1; }
  .checklist-count{ font-size:13px; color:var(--grey); margin-right:8px; }
  .checklist-chevron{ width:16px; height:16px; color:var(--grey-on-beige); transition:transform .15s; flex-shrink:0; }
  .checklist-card.expanded .checklist-chevron{ transform:rotate(180deg); }
  .checklist-items{
    display:flex; flex-direction:column;
    max-height:0; overflow:hidden;
    transition:max-height .2s ease;
  }
  .checklist-card.expanded .checklist-items{ max-height:220px; margin-top:8px; }
  .checklist-item{
    display:flex; align-items:center; gap:10px;
    padding:5px 0;
    font-size:14px;
    cursor:pointer;
  }
  .checklist-item.disabled{ cursor:default; }
  .checklist-check{
    width:19px; height:19px;
    border-radius:50%;
    border:1.5px solid var(--grey-on-beige);
    flex-shrink:0;
  }
  .checklist-check.checked{
    background:var(--ink); border-color:var(--ink);
    display:flex; align-items:center; justify-content:center;
    color:var(--white);
  }
  .checklist-check.checked svg{ width:10px; height:10px; }
  .checklist-item.disabled .checklist-check{ background:var(--beige); border-color:var(--grey); }
  .checklist-item-label{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .checklist-item.checked .checklist-item-label{ text-decoration:line-through; color:var(--ink); }
  .checklist-item.disabled .checklist-item-label{ color:var(--grey); }
  .checklist-item-chevron{ width:14px; height:14px; color:var(--grey); flex-shrink:0; }
  .checklist-progress{
    height:4px;
    background:var(--white);
    border-radius:99px;
    overflow:hidden;
    margin-top:10px;
  }
  .checklist-progress-fill{ height:100%; background:var(--ink); border-radius:99px; }

  .sidebar.collapsed .checklist-card{ background:none; border:none; padding:0; }
  .sidebar.collapsed .checklist-expanded{ display:none; }
  .sidebar.collapsed .checklist-collapsed-icon{
    display:flex; align-items:center; justify-content:center;
    padding:9px; border-radius:8px; color:var(--ink); cursor:pointer;
  }
  .sidebar.collapsed .checklist-collapsed-icon svg{ width:18px; height:18px; flex-shrink:0; }
  .sidebar.collapsed .checklist-collapsed-icon:hover{ background:var(--border); }

  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    gap:8px;
    border:none; border-radius:999px;
    padding:14px 26px;
    font-size:16px; font-weight:300; line-height:1;
    cursor:pointer;
    white-space:nowrap;
  }
  .btn:disabled{ opacity:.35; cursor:default; }
  .btn svg{ width:16px; height:16px; flex-shrink:0; }
  .btn-primary{ background:var(--ink); color:var(--white); }
  .btn-primary:hover{ opacity:.88; }
  .btn-ghost{ background:transparent; color:var(--ink); border:0.5px solid var(--border); }
  .btn-ghost:hover{ background:var(--border); }
  .btn-white{ background:var(--white); color:var(--ink); border:0.5px solid var(--border); }
  .btn-white:hover{ background:var(--beige); }

  .login-btn{ width:100%; }
  .sidebar.collapsed .login-btn .btn-label{ display:none; }
  .sidebar.collapsed .login-btn{ width:32px; height:32px; padding:0; border-radius:50%; }
  /* Collapsed, the label is hidden and the button becomes a 32px circle — without
     this the circle is empty. The icon only appears in that state so the expanded
     button stays the plain "Log in" it already was. */
  .login-btn-icon{ display:none; }
  .sidebar.collapsed .login-btn .login-btn-icon{ display:block; }

  /* floating mobile menu toggle — rounded rect, on brand (no circle, no shadow) */
  .mobile-fab{
    display:none;
    position:fixed;
    top:16px; left:16px;
    z-index:30;
    padding:9px;
    border-radius:8px;
    background:var(--white);
    border:0.5px solid var(--border);
    align-items:center; justify-content:center;
    cursor:pointer;
    color:var(--ink);
  }
  .mobile-backdrop{
    display:none;
    position:fixed; inset:0;
    background:rgba(0,0,0,0.3);
    z-index:19;
  }
  .mobile-backdrop.show{ display:block; }

  /* ---------- MAIN — offset by sidebar width, never overlapped ---------- */
  .main{
    margin-left:var(--sidebar-w);
    padding:32px var(--main-pad-x) 0;
    transition:margin-left .18s ease;
    min-height:100vh;
  }
  .sidebar.collapsed ~ .main{ margin-left:var(--sidebar-w-collapsed); }

  .hero{
    background:var(--ink);
    border-radius:14px;
    aspect-ratio:21/9;
    /* 21/9 is a wide-screen ratio: once the sidebar eats into the column it
       collapses to a letterbox strip (~178px tall at iPad portrait). The floor
       matches .side-media's 380px, so through the tablet range the hero and the
       Magic Eye card are the same height. Above ~1240px the ratio already
       exceeds this and wins, leaving full-screen untouched; below 720px the
       mobile rule overrides it. */
    min-height:380px;
    /* Explicit width is load-bearing: with only width:auto, aspect-ratio runs
       the other way and derives the width from that min-height (380 * 21/9 =
       887px), overflowing the column. body's overflow-x:hidden would have hidden
       the symptom rather than the cause. */
    width:100%;
    max-width:var(--content-max);
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:40px 20px;
    position:relative;
    overflow:hidden;
  }
  .hero::before{
    content:'';
    position:absolute; inset:0;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.05), transparent 60%),
      radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.04), transparent 55%);
  }
  .hero h1{
    font-family:'Instrument Serif', serif;
    font-weight:400;
    font-size:clamp(28px, 7vw, 64px);
    color:var(--white);
    position:relative;
    line-height:1.08;
  }
  .hero p{
    font-family:'Inter',sans-serif;
    font-size:16px;
    color:rgba(255,255,254,0.7);
    margin-top:10px;
    position:relative;
  }

  .section-head{ text-align:center; margin:80px 0 20px; }
  .section-head h2{ font-size:24px; font-weight:600; line-height:1.25; }

  .tabs{ display:flex; justify-content:center; margin-bottom:32px; }
  .tab-group{
    position:relative;
    display:inline-flex;
    border:0.5px solid var(--border);
    border-radius:999px;
  }
  .tab-slider{
    position:absolute;
    top:0; left:0;
    height:100%;
    background:var(--white);
    outline:0.5px solid var(--border);
    outline-offset:-0.5px;
    border-radius:999px;
    transition:left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
    z-index:0;
  }
  .tab-btn{
    position:relative;
    z-index:1;
    display:flex; align-items:center; gap:6px;
    border:none;
    background:none;
    padding:10px 18px;
    border-radius:999px;
    font-size:16px; font-weight:300; line-height:1;
    cursor:pointer;
    color:var(--grey);
  }
  .tab-btn.active{
    color:var(--ink);
  }
  .tab-btn svg{ width:16px; height:16px; }

  .content-grid{
    display:grid;
    grid-template-columns:3fr 2fr;
    gap:24px;
    width:100%;
    max-width:var(--content-max);
    margin:0 auto;
    align-items:start;
  }
  .content-grid > *{ min-width:0; }

  .ticket-list{ display:flex; flex-direction:column; gap:10px; }
  .ticket-card{
    border:0.5px solid var(--border);
    border-radius:12px;
    background:var(--white);
    overflow:hidden;
  }
  .ticket-head{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    align-items:center;
    position:relative;
    padding:16px 24px;
    cursor:pointer;
  }
  .ticket-city{ font-size:16px; font-weight:600; line-height:1.35; }
  .ticket-venue{ font-size:14px; line-height:1.5; color:var(--grey); margin-top:2px; }
  .ticket-date{ font-size:16px; font-weight:600; text-align:right; }
  .ticket-time{ font-size:14px; line-height:1.5; color:var(--grey); margin-top:2px; text-align:right; }
  .ticket-chevron{ position:absolute; right:24px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--grey); transition:transform .15s; flex-shrink:0; }
  .ticket-card.open .ticket-chevron{ transform:translateY(-50%) rotate(180deg); }

  .ticket-body{
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
    border-top:0.5px solid transparent;
  }
  .ticket-card.open .ticket-body{
    max-height:260px;
    border-top:0.5px solid var(--border);
  }
  .ticket-body-inner{ padding:22px 24px 24px; }
  .ticket-detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:18px;
  }
  /* Only one of Location/Parking present — don't leave a phantom second column. */
  .ticket-detail-grid--single{ grid-template-columns:1fr; }
  /* A row with nothing to expand into (Coming soon) shows its button inline
     instead of hiding it inside a collapsed body. */
  .ticket-card--flat .ticket-head{ cursor:default; }
  .ticket-head--single{ grid-template-columns:1fr; }
  .ticket-actions{ padding:0 24px 20px; }
  .td-label{ font-size:12px; font-weight:600; line-height:1.3; margin-bottom:4px; }
  .td-value{ font-size:13px; line-height:1.5; color:var(--grey); }

  .side-media{
    position:relative;
    height:380px;
    border-radius:14px;
    border:0.5px solid var(--border);
    overflow:hidden;
    display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
    text-align:center;
    padding:28px 22px;
    color:var(--white);
  }
  .side-media .photo-bg{
    position:absolute; inset:0;
    background-size:cover; background-position:center;
    z-index:0;
  }
  .side-media::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
  }
  .side-media.attr-magic-eye::after{
    background:
      radial-gradient(ellipse 90% 70% at 10% 65%, rgba(105, 91, 126, 0.55) 0%, rgba(105, 91, 126, 0) 65%),
      linear-gradient(
        to bottom,
        rgba(37, 23, 64, 0.02) 0%,
        rgba(50, 40, 70, 0.18) 45%,
        rgba(75, 63, 100, 0.55) 65%,
        rgba(105, 91, 126, 0.92) 82%,
        rgba(105, 91, 126, 1) 100%
      );
  }
  .side-media.attr-seance::after{
    background:
      radial-gradient(ellipse 90% 70% at 10% 65%, rgba(87, 119, 158, 0.55) 0%, rgba(87, 119, 158, 0) 65%),
      linear-gradient(
        to bottom,
        rgba(20, 27, 37, 0.02) 0%,
        rgba(28, 40, 55, 0.18) 45%,
        rgba(50, 70, 95, 0.55) 65%,
        rgba(87, 119, 158, 0.92) 82%,
        rgba(87, 119, 158, 1) 100%
      );
  }
  .side-media > *:not(.photo-bg){
    position:relative;
    z-index:2;
  }
  .side-media .lockup{ font-weight:700; font-size:20px; letter-spacing:1px; }
  .side-media .pill{
    display:inline-block;
    background:var(--white); color:var(--ink);
    font-size:11px; font-weight:600; line-height:1.2; letter-spacing:0.5px;
    padding:3px 11px; border-radius:99px;
    margin-top:8px;
  }
  .side-media .stword{ font-family:Georgia, serif; font-weight:700; letter-spacing:3px; font-size:19px; }
  .side-media .attraction-logo{ max-width:200px; width:60%; height:auto; display:block; margin:0 auto; }
  .side-media .tagline{ font-size:16px; margin-top:10px; opacity:0.9; max-width:340px; line-height:1.55; }

  .spot-waiting{ padding:0; margin-top:20px; }
  .spot-waiting h3{ font-size:20px; font-weight:600; line-height:1.3; margin-bottom:12px; }
  .spot-row{ display:flex; align-items:flex-start; gap:10px; font-size:16px; color:var(--ink); padding:9px 0; line-height:1.55; }
  .spot-row svg{ width:16px; height:16px; flex-shrink:0; margin-top:1px; color:var(--grey); }

  .about-section{
    width:calc(100% + 2 * var(--main-pad-x));
    margin-left:calc(-1 * var(--main-pad-x));
    margin-right:calc(-1 * var(--main-pad-x));
    background:var(--white);
    border-top:0.5px solid var(--border);
    border-bottom:0.5px solid var(--border);
    margin-top:80px;
    text-align:center;
  }
  .about-section-band{
    max-width:var(--content-max);
    margin:0 auto;
    padding:64px 24px;
  }
  .about-section-inner{
    max-width:640px;
    margin:0 auto;
  }
  .about-section h2{ font-size:24px; font-weight:600; line-height:1.25; margin-bottom:14px; }
  .about-section p{ font-size:16px; color:var(--grey); line-height:1.55; }

  .get-started{
    max-width:var(--content-max); margin:80px auto 0;
    padding:0 20px;
    text-align:center;
  }
  .get-started h2{ font-size:24px; font-weight:600; line-height:1.25; margin-bottom:32px; }
  .steps{ display:inline-flex; flex-direction:column; gap:32px; text-align:left; margin-bottom:40px; }
  .gs-actions{ display:flex; gap:10px; justify-content:center; }
  .step-row{ display:flex; gap:14px; align-items:center; }
  .step-num{
    width:38px; height:38px; border-radius:50%;
    background:var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:16px; font-weight:600;
    flex-shrink:0;
  }
  .step-title{ font-size:16px; font-weight:600; line-height:1.35; }
  .step-sub{ font-size:14px; color:var(--grey); margin-top:2px; line-height:1.55; }

  .trust-band{
    background:var(--ink); color:var(--white);
    margin-top:88px;
    width:calc(100% + 2 * var(--main-pad-x));
    margin-left:calc(-1 * var(--main-pad-x));
    margin-right:calc(-1 * var(--main-pad-x));
  }
  .trust-band-inner{
    max-width:var(--content-max);
    margin:0 auto;
    padding:44px 40px;
  }
  .trust-left{ padding-left:24px; font-size:13px; line-height:1.55; color:rgba(255,255,254,0.85); }
  .trust-left a{
    display:inline-block; margin-top:8px; font-weight:600; color:var(--white);
    text-decoration:none;
  }
  .trust-right{ text-align:right; font-size:13px; line-height:1.55; color:rgba(255,255,254,0.85); }

  /* ---------- Tickets page (signed-in) ---------- */
  #ticketsMain{ background:var(--beige); }
  #archetypeMain{ background:var(--beige); }
  #memoryMain{ background:var(--beige); }

  .about-card{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    min-height:380px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:28px 24px;
    color:var(--white);
    background:var(--ink);
  }
  .about-card .photo-bg{
    position:absolute; inset:0;
    background-size:cover; background-position:center;
    z-index:0;
  }
  .about-card::after{
    content:'';
    position:absolute; inset:0;
    z-index:1;
    background:linear-gradient(to bottom, rgba(20,28,45,0.15) 20%, rgba(35,48,72,0.6) 58%, rgba(42,58,85,0.92) 100%);
  }
  .about-card-content{ position:relative; z-index:2; }
  .about-card-content h3{ font-size:20px; font-weight:600; margin-bottom:10px; }
  .about-card-content p{ font-size:14px; line-height:1.6; opacity:0.92; }

  .toggle-switch{
    position:relative;
    width:36px; height:20px;
    border-radius:99px;
    background:var(--border);
    border:none;
    cursor:pointer;
    padding:0;
    flex-shrink:0;
    transition:background .15s;
  }
  .toggle-switch.on{ background:var(--ink); }
  .toggle-knob{
    position:absolute;
    top:3px; left:3px;
    width:14px; height:14px;
    border-radius:50%;
    background:var(--white);
    transition:left .15s;
  }
  .toggle-switch.on .toggle-knob{ left:19px; }

  .info-value{ color:var(--ink); }
  .info-value.muted{ color:var(--grey); }
  .section-title-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }

  .archetype-footer{ max-width:var(--content-max); margin:88px auto 0; padding-bottom:40px; text-align:center; }
  .archetype-footer p{ font-size:14px; color:var(--grey-on-beige); margin-bottom:8px; }
  .archetype-footer p:last-child{ margin-bottom:0; }
  .archetype-footer a{ text-decoration:underline; color:var(--ink); cursor:pointer; }

  /* ---------- Archetype quiz (renders inside the card, not full-page) ---------- */
  .quiz-container{ width:100%; max-width:440px; text-align:center; }
  .quiz-step{ display:none; }
  .quiz-step.active{ display:block; }
  .quiz-container h1{ font-size:24px; font-weight:600; margin-bottom:16px; line-height:1.25; }
  .quiz-sub{ font-size:16px; color:var(--ink); line-height:1.5; margin-bottom:32px; }
  .quiz-sub.grey{ color:var(--grey); }
  .quiz-input{
    width:100%;
    font-size:16px;
    font-family:inherit;
    font-weight:300;
    line-height:1;
    border:0.5px solid var(--grey);
    border-radius:999px;
    padding:14px 20px;
    background:var(--white);
    color:var(--ink);
    outline:none;
    text-align:left;
    margin-bottom:20px;
  }
  .quiz-input:focus{ outline:none; border-color:var(--ink); }
  .quiz-input::placeholder{ color:var(--grey); }
  .quiz-options{ display:flex; flex-direction:column; gap:10px; margin-bottom:20px; text-align:left; }
  .quiz-option{
    border:0.5px solid var(--border);
    border-radius:16px;
    padding:16px 20px;
    font-size:16px;
    font-weight:500;
    cursor:pointer;
    background:var(--white);
  }
  .quiz-option.selected{ border-color:var(--ink); }
  .quiz-option-desc{ font-size:13px; color:var(--grey); font-weight:400; margin-top:3px; }
  .quiz-skip{ margin-top:20px; font-size:15px; color:var(--ink); cursor:pointer; text-align:center; }
  .quiz-time-row{ display:flex; gap:10px; margin-bottom:20px; }
  .quiz-select-wrap{ position:relative; flex:1; }
  .quiz-select-wrap-period{ flex:0 0 84px; }
  .quiz-select{
    width:100%;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    font-size:16px;
    font-family:inherit;
    font-weight:300;
    line-height:1;
    border:0.5px solid var(--grey);
    border-radius:999px;
    padding:14px 30px 14px 20px;
    background:var(--white);
    color:var(--ink);
    outline:none;
    cursor:pointer;
    text-align:center;
  }
  .quiz-select:focus{ outline:none; border-color:var(--ink); }
  .quiz-select-chevron{
    position:absolute;
    right:12px; top:50%;
    transform:translateY(-50%);
    width:14px; height:14px;
    color:var(--grey-on-beige);
    pointer-events:none;
  }
  .quiz-top-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:36px; }
  .quiz-dots{ display:flex; justify-content:center; gap:6px; }
  .quiz-back-btn{
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px;
    border:none; background:none;
    border-radius:8px;
    cursor:pointer;
    color:var(--ink);
    flex-shrink:0;
  }
  .quiz-back-btn:hover{ background:var(--border); }
  .quiz-back-spacer{ width:36px; flex-shrink:0; }
  .quiz-location-wrap{ position:relative; }
  .quiz-suggestions{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--white);
    border:0.5px solid var(--border);
    border-radius:12px;
    margin-top:4px;
    max-height:160px;
    overflow-y:auto;
    text-align:left;
    z-index:10;
    box-shadow:0 4px 16px rgba(0,0,0,0.08);
  }
  .quiz-suggestions.show{ display:block; }
  .quiz-suggestion-item{
    padding:10px 20px;
    font-size:15px;
    cursor:pointer;
    border-bottom:0.5px solid var(--border);
  }
  .quiz-suggestion-item:last-child{ border-bottom:none; }
  .quiz-suggestion-item:hover{ background:var(--beige); }
  .quiz-dot{ width:6px; height:6px; border-radius:50%; background:var(--border); }
  .quiz-dot.done{ background:var(--ink); }
  .page-head{
    max-width:var(--content-max);
    margin:0 auto 36px;
    padding-bottom:20px;
    border-bottom:0.5px solid var(--border);
  }
  .ticket-section{
    max-width:var(--content-max);
    margin:0 auto 40px;
  }
  .ticket-section-title{ font-size:20px; font-weight:600; line-height:1.3; margin-bottom:16px; }
  .empty-card{
    background:var(--white);
    border:0.5px solid var(--border);
    border-radius:16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:40px 32px;
  }
  .empty-card--lg{ min-height:380px; }
  #archetypeQuizContainer.quiz-active{ justify-content:flex-start; }
  .empty-card--sm{ min-height:180px; }
  .empty-card-title{ font-size:20px; font-weight:600; line-height:1.3; }
  .empty-card-sub{ font-size:14px; color:var(--grey); line-height:1.5; margin-top:8px; max-width:420px; }
  .empty-card-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:24px; }

  /* ---------- Populated ticket (my group, entry word, actions) ---------- */
  .ticket-card.mine{ background:var(--white); }
  .ticket-card.mine.open .ticket-body{ max-height:1100px; }

  .group-label{ font-size:13px; font-weight:600; color:var(--grey); padding:12px 20px 6px; }
  .group-row{ display:flex; align-items:center; gap:12px; padding:10px 20px; }
  .group-avatar{
    width:36px; height:36px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:600;
    flex-shrink:0;
  }
  .group-avatar.joined{ background:var(--ink); color:var(--white); }
  .group-avatar.pending, .group-avatar.empty-seat{ background:transparent; color:var(--grey); border:1.5px dashed var(--grey-on-beige); }
  .group-avatar.empty-seat svg{ width:16px; height:16px; }
  .group-row-name{ flex:1; font-size:15px; color:var(--ink); }
  .group-row-you{ color:var(--grey); font-weight:400; }
  .group-row-tag{
    font-size:12px; color:var(--grey);
    border:0.5px solid var(--border);
    border-radius:99px;
    padding:2px 9px;
    margin-left:8px;
  }
  .group-row-status{ display:flex; align-items:center; gap:5px; font-size:14px; color:var(--grey); flex-shrink:0; white-space:nowrap; }
  .group-row-status svg{ width:14px; height:14px; }
  .group-open-seat-label{ flex:1; font-size:15px; color:var(--grey); }
  .group-copy-link{ display:flex; align-items:center; gap:6px; font-size:14px; color:var(--ink); cursor:pointer; flex-shrink:0; }
  .group-copy-link svg{ width:15px; height:15px; }
  .group-copy-link:hover{ opacity:.7; }

  .entry-word-section{
    text-align:center;
    padding:26px 20px;
    border-top:0.5px solid var(--border);
    border-bottom:0.5px solid var(--border);
    margin-top:6px;
  }
  .entry-word-label{ font-size:13px; color:var(--grey); }
  .entry-word{ font-size:26px; font-weight:700; letter-spacing:2px; margin-top:10px; }
  .entry-word-sub{ font-size:13px; color:var(--grey); margin-top:10px; }

  .action-row{
    position:relative;
    display:flex; align-items:center; justify-content:space-between;
    padding:13px 20px;
    cursor:pointer;
  }
  .action-row::after{
    content:'';
    position:absolute;
    left:20px; right:20px; bottom:0;
    height:0.5px;
    background:var(--border);
  }
  .action-row-left{ display:flex; align-items:center; gap:12px; font-size:15px; color:var(--ink); }
  .action-row-left svg{ width:18px; height:18px; color:var(--ink); flex-shrink:0; }
  .action-row-arrow{ width:16px; height:16px; color:var(--grey); flex-shrink:0; }
  .action-row > svg{ width:16px; height:16px; color:var(--grey); flex-shrink:0; }

  .ticket-confirmation{ font-size:13px; color:var(--grey); padding:16px 20px 20px; }

  .tickets-cta-row{ display:flex; gap:10px; justify-content:center; margin-top:16px; }
  @media (max-width: 720px){
    .tickets-cta-row{ flex-direction:column; }
    .tickets-cta-row .btn{ width:100%; }
  }

  /* Right rail of the Upcoming tickets grid — mirrors the home page's
     "Visit an attraction" two-column layout (3fr / 2fr, 24px gap). */
  .plan-next-visit{
    background:var(--white);
    border:0.5px solid var(--border);
    border-radius:16px;
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .plan-next-visit h3{ font-size:18px; font-weight:600; line-height:1.3; margin-bottom:4px; }
  .plan-next-visit .btn{ width:100%; }

  .change-plans-body h2{ margin-bottom:16px; }
  .change-plans-body p{ margin-bottom:16px; line-height:1.5; }
  .change-plans-body p.subhead{ font-weight:600; }
  .past-visit-inner{ padding:18px 20px 4px; }

  /* ---------- Data disclosure modal ---------- */
  .modal-overlay{
    display:none;
    position:fixed; inset:0;
    background:rgba(30,28,25,0.45);
    z-index:100;
    align-items:center;
    justify-content:center;
    padding:16px;
  }
  .modal-overlay.show{ display:flex; }
  .modal-card{ position:relative; width:100%; max-width:420px; }
  .modal-shell{
    position:relative;
    background:var(--white);
    border-radius:12px;
    overflow:hidden;
    max-height:92vh;
  }
  .modal-scroll{
    max-height:92vh;
    overflow-y:auto;
    padding:64px 24px 44px;
  }
  .modal-header-bar{
    position:absolute;
    top:0; left:0; right:0;
    z-index:2;
    display:flex;
    justify-content:flex-end;
    padding:16px 16px 8px;
    background:var(--white);
  }
  .modal-close{
    width:40px; height:40px;
    border-radius:50%;
    background:var(--white);
    border:0.5px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    color:var(--ink);
  }
  .modal-close:hover{ background:var(--border); }
  .disclosure-section{ margin-bottom:18px; }
  .disclosure-label{ font-size:13px; font-weight:600; color:var(--grey); margin-bottom:8px; }
  .disclosure-list{
    border:0.5px solid var(--border);
    border-radius:12px;
    overflow:hidden;
  }
  .disclosure-row{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
    padding:11px 18px;
    font-size:16px;
    background:var(--white);
    border-bottom:0.5px solid var(--border);
  }
  .disclosure-row:last-child{ border-bottom:none; }
  /* Popups are white; rows inside them are beige (opposite of the page
     pattern, where the page itself is beige and cards are white). */
  .modal-scroll .disclosure-row{ background:var(--beige); }
  .disclosure-tag{
    color:var(--grey-on-beige);
    background:var(--border);
    padding:5px;
    border-radius:99px;
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .disclosure-footnote{
    display:flex; align-items:flex-start; gap:8px;
    font-size:13px; color:var(--grey); line-height:1.55;
    margin-bottom:14px;
    margin-left:18px;
  }
  .disclosure-footnote .disclosure-tag{ margin-top:2px; }
  .disclosure-manage-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:9px 0;
    font-size:16px;
    color:var(--ink);
    cursor:pointer;
    margin-left:18px;
  }
  .disclosure-manage-row svg{ width:16px; height:16px; color:var(--grey); flex-shrink:0; }
  .help-row-external{ cursor:pointer; }
  .row-left{ display:flex; align-items:center; gap:12px; }
  .row-left svg{ width:18px; height:18px; color:var(--ink); flex-shrink:0; }
  .row-arrow{ width:16px; height:16px; color:var(--grey); flex-shrink:0; }

  .login-body{ text-align:center; }
  .login-body h2{ margin-bottom:8px; }
  .login-body p{ font-size:16px; color:var(--ink); margin-bottom:28px; }
  .login-input{
    display:block;
    width:100%;
    padding:14px 20px;
    border:0.5px solid var(--grey);
    border-radius:999px;
    font-size:16px;
    line-height:1;
    color:var(--ink);
    background:var(--white);
    margin-bottom:20px;
  }
  .login-input::placeholder{ color:var(--grey); }
  .login-input:focus{ outline:none; border-color:var(--ink); }
  .login-input:disabled{ background:var(--beige); color:var(--grey); cursor:not-allowed; }

  .account-menu-avatar-wrap{ position:relative; width:72px; margin:0 auto 24px; cursor:pointer; }
  .disclosure-label--indent{ margin-left:18px; }
  .sign-out-row{
    display:flex; align-items:center; gap:10px;
    margin-top:18px;
    padding:18px 2px 2px 18px;
    color:#C0392B;
    cursor:pointer;
    font-size:16px;
  }
  .sign-out-row svg{ width:18px; height:18px; flex-shrink:0; }
  .sign-out-row:hover{ opacity:.7; }

  .edit-avatar-wrap{ position:relative; width:140px; margin:0 auto 32px; cursor:pointer; }
  .edit-field{ text-align:left; margin-bottom:20px; }
  .edit-field-label{ display:block; font-size:14px; color:var(--ink); margin-bottom:6px; }

  /* ---------- Auth flow — full pages, not modals ---------- */
  .auth-page{
    display:none;
    position:fixed;
    inset:0;
    background:var(--white);
    z-index:200;
    overflow:hidden;
  }
  .auth-page.show{ display:block; }
  .auth-page-logo{ position:fixed; top:20px; left:16px; }
  .auth-wrap{
    height:100vh;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding:14vh 20px 40px;
  }
  .auth-container{ width:100%; max-width:420px; text-align:center; }
  .auth-container h2{ margin-bottom:8px; }
  .auth-container p{ font-size:16px; color:var(--ink); margin-bottom:28px; }
  .verify-resend{ margin-top:20px; font-size:15px; color:var(--ink); cursor:pointer; text-align:center; }
  /* The resend control is a real <button> so `disabled` blocks clicks and keyboard
     activation natively, but it keeps the text-link look the other .verify-resend
     elements have. Only font-family is inherited here — font-size and color still
     come from the rule above. */
  button.verify-resend{ display:block; width:100%; background:none; border:none; font-family:inherit; }
  /* Same disabled treatment as .checklist-item.disabled: greyed text, no pointer.
     .btn:disabled's opacity is for filled buttons and reads as a faded button here. */
  button.verify-resend:disabled{ color:var(--grey); cursor:default; }
  .auth-error{ margin-top:12px; font-size:14px; line-height:1.5; color:#C0392B; text-align:center; }
  .auth-footer{
    margin-top:40px;
    text-align:center;
    font-size:12px;
    color:var(--grey);
  }
  .auth-footer a{ color:var(--grey); text-decoration:none; }
  .auth-checkbox-row{
    display:flex; align-items:center; justify-content:flex-start; gap:10px;
    padding-left:20px;
    margin-bottom:24px;
    text-align:left;
    font-size:15px;
    color:var(--grey);
  }
  .auth-checkbox-row input[type="checkbox"]{
    width:18px; height:18px;
    border-radius:5px;
    accent-color:var(--ink);
    cursor:pointer;
    flex-shrink:0;
  }
  .auth-terms-note{ margin-top:40px; padding-left:20px; text-align:left; font-size:12px; color:var(--grey); line-height:1.5; }
  .auth-terms-note a{ color:var(--grey); text-decoration:underline; }

  /* Memory page */
  .memory-page-head{
    position:relative;
    text-align:center;
    max-width:none;
    width:calc(100% + 2 * var(--main-pad-x));
    margin-left:calc(-1 * var(--main-pad-x));
    margin-right:calc(-1 * var(--main-pad-x));
    padding-left:var(--main-pad-x);
    padding-right:var(--main-pad-x);
    margin-bottom:0;
  }
  .memory-view-toggle{
    position:absolute; left:var(--main-pad-x); top:0;
    width:40px; height:40px; flex-shrink:0;
    border-radius:10px;
    border:0.5px solid var(--border);
    background:var(--white);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
    color:var(--ink);
  }
  .memory-view-toggle svg{ width:19px; height:19px; }
  .memory-view-toggle:hover{ background:var(--border); }
  .memory-body{
    max-width:var(--content-max);
    margin:0 auto;
    display:flex;
    align-items:stretch;
    min-height:calc(100vh - 120px);
  }
  .memory-content{ flex:1; min-width:0; padding-top:24px; overflow:hidden; }
  .memory-rings-view, .memory-list-view{ transition:opacity .18s ease; }
  .memory-stage{
    position:relative;
    height:460px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .memory-stage svg{ overflow:visible; }
  .memory-ring-path{ fill:none; stroke:var(--border); stroke-width:1; pointer-events:none; transition:stroke .15s ease, stroke-width .15s ease; }
  .memory-ring-path.hover, .memory-ring-path.selected{ stroke:var(--grey); stroke-width:1.5; }
  .memory-ring-hitarea{ fill:none; stroke:transparent; stroke-width:22; cursor:pointer; }
  .memory-ring-marker{
    stroke:none;
    cursor:pointer;
    transform-box:fill-box;
    transform-origin:center;
    transition:transform .15s ease, stroke-width .15s ease;
  }
  .memory-ring-marker.hover{ stroke:var(--marker-stroke, var(--ink)); stroke-width:1; transform:scale(1.3); }
  .memory-ring-marker.selected{ stroke:var(--marker-stroke, var(--ink)); stroke-width:1; }
  .memory-center-node{
    position:absolute;
    width:52px; height:52px; border-radius:50%;
    background:var(--ink); color:var(--white);
    display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:600;
    cursor:pointer;
    z-index:5;
    transition:transform .15s ease;
  }
  .memory-center-node:hover{ transform:scale(1.08); }
  .memory-hover-tip{
    position:fixed;
    background:var(--ink); color:var(--white);
    font-size:13px; font-weight:500;
    padding:6px 12px;
    border-radius:8px;
    pointer-events:none;
    opacity:0; transition:opacity .12s ease;
    z-index:50;
    white-space:nowrap;
    transform:translate(14px, -50%);
  }
  .memory-hover-tip.show{ opacity:1; }
  .memory-list-view{ display:flex; flex-direction:column; gap:10px; }
  .memory-list-row{
    display:flex; align-items:center; gap:14px;
    padding:16px 18px;
    border:0.5px solid transparent;
    border-radius:14px;
    cursor:pointer;
    background:transparent;
    transition:background .15s ease, border-color .15s ease;
  }
  .memory-list-row:hover, .memory-list-row.selected{ background:var(--border); }
  .memory-list-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .memory-list-text{ flex:1; min-width:0; }
  .memory-list-title{ font-size:16px; font-weight:500; }
  .memory-list-sub{ font-size:14px; color:var(--grey-on-beige); margin-top:2px; }
  .memory-list-chevron{ width:18px; height:18px; color:var(--grey-on-beige); flex-shrink:0; }
  .memory-panel{
    width:0; overflow:hidden;
    flex-shrink:0;
    transition:width .25s ease;
  }
  .memory-panel.open{ width:320px; border-left:0.5px solid var(--border); background:var(--beige); margin-left:24px; }
  .memory-panel-inner{ position:relative; width:320px; padding:64px 28px 40px 32px; background:var(--beige); }
  .memory-panel-close-btn{ position:absolute; top:16px; right:16px; }
  .memory-panel-eyebrow{ font-size:20px; font-weight:600; line-height:1.3; color:var(--ink); margin-bottom:2px; }
  .memory-panel-title{ font-size:14px; font-weight:300; line-height:1.5; color:var(--grey); margin-bottom:24px; }
  .memory-panel-heading{ font-size:20px; font-weight:600; line-height:1.3; color:var(--ink); margin-bottom:24px; }
  .memory-panel-row{ padding:12px 0; border-bottom:0.5px solid var(--border); }
  .memory-panel-row:last-of-type{ border-bottom:none; }
  .memory-panel-row-label{ font-size:13px; font-weight:600; color:var(--grey); margin-bottom:8px; }
  .memory-panel-row-value{ font-size:14px; font-weight:300; line-height:1.55; color:var(--ink); }

  /* First-visit welcome popup — white card, brand standards, text + sample rings */
  .memory-welcome-card{
    position:relative;
    width:100%;
    max-width:900px;
    max-height:92vh;
    overflow:hidden;
    background:var(--white);
    border-radius:16px;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
  }
  .memory-welcome-text{ padding:56px 48px; }
  .memory-welcome-text h2{ font-size:28px; font-weight:700; line-height:1.2; margin-bottom:16px; }
  .memory-welcome-text p{ font-size:16px; font-weight:300; line-height:1.6; color:var(--ink); }
  .memory-welcome-media{ align-self:stretch; display:flex; align-items:center; justify-content:center; padding:24px; }
  .memory-welcome-media img{ width:100%; height:auto; max-height:100%; object-fit:contain; }
  .memory-welcome-close{ position:absolute; top:16px; right:16px; z-index:2; }
  @media (max-width: 720px){
    .memory-welcome-card{ grid-template-columns:1fr; max-width:420px; }
    .memory-welcome-text{ padding:56px 28px 16px; }
    .memory-welcome-media{ padding:0 28px 36px; }
  }

  @media (max-width: 860px){
    .content-grid{ grid-template-columns:1fr; }
    .side-card{ order:-1; }
  }

  @media (max-width: 720px){
    .sidebar{
      width:260px;
      transform:translateX(-100%);
    }
    .sidebar.mobile-open{ transform:translateX(0); }
    .sidebar.collapsed{ width:260px; padding:20px 16px; }
    .sidebar.collapsed .sb-top{ justify-content:space-between; }
    .sidebar.collapsed .logo{ display:flex; }
    .sidebar.collapsed .nav-label,
    .sidebar.collapsed .nav-chevron{ display:block; }
    .sidebar.collapsed .nav-item{ justify-content:flex-start; padding:9px 10px; }
    .sidebar.collapsed .help-row{ justify-content:space-between; }
    .sidebar.collapsed .help-row .nav-label,
    .sidebar.collapsed .help-row .nav-chevron{ display:inline; }
    .sidebar.collapsed .login-btn{ width:100%; height:auto; border-radius:999px; padding:13px 24px; }
    .sidebar.collapsed .login-btn .btn-label{ display:inline; }
    /* On mobile the drawer never really collapses, so the label is back and the
       icon goes away with it. */
    .sidebar.collapsed .login-btn .login-btn-icon{ display:none; }
    .sidebar.collapsed .account-row{ justify-content:flex-start; padding:9px 10px; }
    .sidebar.collapsed .account-row .nav-label,
    .sidebar.collapsed .account-row-chevron{ display:inline; }
    .sidebar.collapsed .checklist-card{ background:var(--white); border:0.5px solid var(--border); padding:14px 14px 12px; }
    .sidebar.collapsed .checklist-expanded{ display:block; }
    .sidebar.collapsed .checklist-collapsed-icon{ display:none; }
    .sidebar.collapsed .sb-divider{ display:block; }
    .sb-top .icon-btn.desktop-collapse{ display:none; }
    .icon-btn.mobile-close-btn{ display:flex; }
    .sidebar.collapsed .nav-item.parent{ display:flex; }
    .sidebar.collapsed .nav-children{ max-height:220px !important; margin-top:2px; }
    .sidebar.collapsed .nav-children .nav-item{ padding-left:32px; }
    .mobile-fab{ display:flex; }
    .main{ margin-left:0; padding:76px 20px 0; --main-pad-x: 20px; }
    .sidebar.collapsed ~ .main{ margin-left:0; }
    .trust-band-inner{ padding:28px 20px; }
    .hero{ aspect-ratio:unset; min-height:320px; }
    .page-head{ margin-bottom:28px; padding-bottom:16px; }
    .ticket-section{ margin-bottom:32px; }
    .empty-card--lg{ min-height:320px; padding:32px 20px; }
    .empty-card-actions{ flex-direction:column; width:100%; }
    .empty-card-actions .btn{ width:100%; }
    .memory-body{ flex-direction:column; }
    .memory-rings-view{ display:none !important; }
    .memory-list-view{ display:flex !important; }
    .memory-view-toggle{ display:none; }
    .memory-panel{
      position:fixed;
      top:0; left:0; right:0; bottom:0;
      width:100% !important;
      background:var(--white);
      border-left:none;
      transform:translateX(100%);
      transition:transform .25s ease;
      z-index:95;
      overflow-y:auto;
    }
    .memory-panel.open{ transform:translateX(0); margin-left:0; }
    .memory-panel-inner{ width:100%; padding:64px 20px 40px; }
    .memory-page-head{
      text-align:left;
      max-width:var(--content-max);
      width:auto;
      margin-left:auto;
      margin-right:auto;
      padding-left:0;
      padding-right:0;
    }
    .memory-page-head h1{ padding-left:0; }
  }

  /* ---------- Legal pages (terms.html, privacy.html) ---------- */
  .legal-back{
    position:fixed;
    top:26px; right:24px;
    font-size:15px;
    color:var(--ink);
    text-decoration:none;
    z-index:10;
  }
  .legal-back:hover{ opacity:.7; }
  .legal-main{
    max-width:720px;
    margin:0 auto;
    padding:140px 24px 96px;
  }
  .legal-main h1{ text-align:center; margin-bottom:12px; }
  .legal-effective{
    text-align:center;
    font-size:14px;
    color:var(--grey-on-beige);
    margin-bottom:64px;
  }
  .legal-main h2{ margin:44px 0 12px; }
  .legal-main p{ font-size:16px; line-height:1.6; margin-bottom:14px; }
  .legal-main ul{ margin:0 0 14px 22px; }
  .legal-main li{ font-size:16px; line-height:1.6; margin-bottom:8px; }
  .legal-main a{ color:var(--ink); }
  @media (max-width: 720px){
    .legal-main{ padding:110px 20px 72px; }
  }

  /* ---------- Accessibility ---------- */
  /* Visible keyboard focus. :focus-visible only shows for keyboard users,
     so mouse clicks stay visually clean. */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  [role="button"]:focus-visible,
  [tabindex]:focus-visible{
    outline:2px solid var(--ink);
    outline-offset:2px;
  }
  /* Rows that became real links keep the row layout, not link styling. */
  a.disclosure-row{ text-decoration:none; color:var(--ink); }
  /* Respect reduced-motion preferences. */
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
      animation-duration:0.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:0.01ms !important;
      scroll-behavior:auto !important;
    }
  }

