/* Source: marketing-nav.css — generated by scripts/build-homepage-extras.js. */
/* Shared marketing navigation: deliberate grouping, no cramped seven-tab row. */
.navbar-refined{background:#0b1d3a!important;border-bottom:1px solid rgba(225,191,111,.2);box-shadow:0 6px 24px rgba(8,22,44,.11)}
.navbar-refined .navbar-inner{max-width:1280px;height:76px;gap:clamp(12px,2vw,29px)}
.navbar-refined .navbar-logo{flex:none;white-space:nowrap;gap:9px;text-decoration:none}
.navbar-refined .logo-icon{width:39px;height:39px;border-radius:12px;background:#d6b35a;color:#122745;display:grid;place-items:center;font-weight:900}
.navbar-refined .logo-text{font-size:21px;letter-spacing:-.7px}
.navbar-refined .navbar-nav{flex:1;display:flex;justify-content:center;gap:3px;min-width:0}
.navbar-refined .navbar-nav a{color:#e5ebf5;font-size:13px;letter-spacing:0;font-weight:650;padding:11px 12px;border-radius:9px;white-space:nowrap;line-height:1.2;text-decoration:none;transition:background .16s,color .16s}
.navbar-refined .navbar-nav a:hover,.navbar-refined .navbar-nav a[aria-current=page]{background:rgba(255,255,255,.11);color:#fff}
.navbar-refined .navbar-nav .nav-primary{color:#f0d080}
.navbar-refined .navbar-cta{display:flex;gap:9px;flex:none;align-items:center}
.navbar-refined .nav-signin,.navbar-refined .nav-start{display:inline-flex;align-items:center;justify-content:center;min-height:42px;text-decoration:none;white-space:nowrap;border-radius:9px;font-size:13px;font-weight:750;padding:0 15px}
.navbar-refined .nav-signin{border:1px solid #71839e;color:#fff;background:transparent}
.navbar-refined .nav-start{background:#d6b35a;color:#102540;gap:10px;box-shadow:0 4px 12px rgba(0,0,0,.13)}
.navbar-refined .nav-start:hover{background:#efd080}.navbar-refined a:focus-visible,.navbar-refined button:focus-visible{outline:3px solid #efd080;outline-offset:3px}
.navbar-refined .hamburger{display:none;width:42px;height:42px;border:1px solid #667b9b;border-radius:10px;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:transparent;color:#fff;flex:none}
@media(max-width:1130px){.navbar-refined .navbar-nav a{padding:10px 8px;font-size:12px}.navbar-refined .navbar-inner{gap:12px}.navbar-refined .nav-how{display:none}}
@media(max-width:920px){.navbar-refined .navbar-inner{height:70px}.navbar-refined .hamburger{display:flex}.navbar-refined .navbar-nav{display:none;position:absolute;top:70px;left:0;right:0;background:#0d2341;border-top:1px solid #355071;padding:12px 20px 20px;box-shadow:0 18px 30px #06142844;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 70px);overflow:auto;z-index:1002}.navbar-refined .navbar-nav.open{display:flex}.navbar-refined .navbar-nav a{padding:13px 15px;font-size:14px}.navbar-refined .navbar-nav .nav-how{display:block}.navbar-refined .navbar-cta{margin-left:auto}}
@media(max-width:520px){.navbar-refined .navbar-inner{padding:0 15px;gap:9px}.navbar-refined .logo-icon{width:33px;height:33px}.navbar-refined .logo-text{font-size:19px}.navbar-refined .nav-signin{display:none}.navbar-refined .nav-start{font-size:12px;min-height:39px;padding:0 11px}.navbar-refined .hamburger{width:39px;height:39px}}


/* LessonInc brand lockup using the approved sample wordmark. */
.navbar-refined .brand-lockup{display:flex;align-items:center;min-width:0;text-decoration:none}
.navbar-refined .brand-mark{display:block;height:38px;width:auto;max-width:240px;object-fit:contain;flex:none}
@media(max-width:520px){.navbar-refined .brand-mark{height:32px;max-width:188px}}

/* Keep original lettering visible without a second text-based brand name. */
.navbar-refined .navbar-logo.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
.navbar-refined .navbar-logo.brand-lockup .brand-mark{display:block;width:205px;height:auto;max-width:205px}
.navbar-refined .navbar-logo.brand-lockup .brand-tagline-header{display:block;color:#edc967;font-size:9px;letter-spacing:.11em;margin:0 0 0 3px;line-height:1.2}
@media(max-width:520px){.navbar-refined .navbar-logo.brand-lockup .brand-mark{width:165px;max-width:165px}.navbar-refined .navbar-logo.brand-lockup .brand-tagline-header{font-size:8px;letter-spacing:.06em}}

/* brand-v3-wordmark-alignment */
.navbar-refined .navbar-logo.brand-lockup .brand-mark{width:218px;max-width:218px;height:auto}
.navbar-refined .navbar-logo.brand-lockup .brand-tagline-header{margin-left:13.49%;margin-top:1px}
@media(max-width:520px){.navbar-refined .navbar-logo.brand-lockup .brand-mark{width:175px;max-width:175px}.navbar-refined .navbar-logo.brand-lockup .brand-tagline-header{margin-left:13.49%}}

/* Uniform wordmark-width tagline; retain the homepage logo proportions. */
.navbar-logo.brand-lockup .brand-tagline-header{box-sizing:border-box;width:86.37%!important;max-width:86.37%!important;margin:1px 0 0 13.49%!important;align-self:flex-start;text-align:left;text-align-last:auto;letter-spacing:.08em!important;white-space:nowrap}

/* Shared brand proportions on enhanced marketing navigation. */
.navbar-refined .navbar-logo.brand-lockup .brand-mark {
  width: min(218px, 100%); height: auto; aspect-ratio: 1134 / 132; object-fit: contain;
}
@media(max-width:520px) { .navbar-refined .navbar-logo.brand-lockup .brand-mark { width: min(175px, 100%); } }

/* Final marketing-header brand normalization; asset/geometry comes from the shared lockup. */
.navbar-refined .navbar-logo.brand-lockup{width:218px!important;max-width:218px!important;gap:0!important}
.navbar-refined .navbar-logo.brand-lockup .brand-mark{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important}
.navbar-refined .navbar-logo.brand-lockup .brand-tagline-header{width:86.37%!important;max-width:86.37%!important;margin:1px 0 0 13.49%!important;letter-spacing:0!important}
@media(max-width:520px){.navbar-refined .navbar-logo.brand-lockup{width:175px!important;max-width:175px!important}.navbar-refined .navbar-logo.brand-lockup .brand-mark{width:100%!important;max-width:100%!important}}

/* Source: auth-modal.css — generated by scripts/build-homepage-extras.js. */
/* A single content-sized dialog; the backdrop dismisses it, with no X button. */
.lessoninc-auth-dialog{position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 85px rgba(2,10,25,.37);width:min(440px,calc(100vw - 28px));height:min(var(--auth-content-height,490px),calc(100dvh - 32px));max-width:none;max-height:none;overflow:hidden}
.lessoninc-auth-dialog::backdrop{background:rgba(5,15,34,.72);backdrop-filter:blur(5px)}
.lessoninc-auth-frame{display:block;border:0;width:100%;height:100%;background:#fff}
@media(max-width:560px){.lessoninc-auth-dialog{width:calc(100vw - 20px);height:min(var(--auth-content-height,490px),calc(100dvh - 20px));border-radius:15px}}

/* Google Identity Services runs in the top-level page, within the existing auth dialog. */
.lessoninc-google-panel{position:absolute;inset:0;z-index:3;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:26px 20px;text-align:center;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.lessoninc-google-panel::-webkit-scrollbar{display:none;width:0;height:0}
.lessoninc-google-panel[hidden]{display:none}
.lessoninc-google-panel h2{font:700 1.25rem/1.3 system-ui,sans-serif;color:#0b1d3a;margin:0}
.lessoninc-google-panel p{font:400 .85rem/1.5 system-ui,sans-serif;color:#52627c;margin:0}
.lessoninc-google-panel .lessoninc-google-back{position:absolute;top:16px;left:18px;padding:8px;border:0;background:transparent;color:#0b1d3a;font:600 .85rem system-ui,sans-serif;cursor:pointer}
.lessoninc-google-panel .lessoninc-google-back:focus-visible{outline:2px solid #b38b30;outline-offset:3px}
.lessoninc-google-panel .lessoninc-google-error{color:#b42318;min-height:1.4em}

/* Source: tutor-preview.css — generated by scripts/build-homepage-extras.js. */
.tutor-preview-overlay{position:fixed;inset:0;z-index:3000;background:rgba(7,22,43,.76);display:flex;align-items:center;justify-content:center;padding:clamp(8px,2vw,24px)}
.tutor-preview-dialog{width:min(1060px,100%);height:min(850px,94dvh);min-height:0;background:#fff;border-radius:18px;box-shadow:0 26px 70px rgba(0,0,0,.32);display:flex;flex-direction:column;overflow:hidden}
.tutor-preview-bar{min-height:58px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e2e8f0}
.tutor-preview-heading{font-size:1rem;font-weight:800;color:#132744}
.tutor-preview-actions{display:flex;align-items:center;gap:12px}
.tutor-preview-full{font-size:.81rem;font-weight:700;color:#173b70;text-decoration:none;white-space:nowrap}
.tutor-preview-full:hover{text-decoration:underline}
.tutor-preview-close{width:36px;height:36px;border:1px solid #dce3ef;border-radius:9px;background:#f5f7fb;color:#142745;cursor:pointer;font-size:1rem}
.tutor-preview-close:focus-visible,.tutor-preview-full:focus-visible{outline:3px solid #cca74e;outline-offset:2px}
.tutor-preview-frame{width:100%;flex:1;min-height:0;border:0;background:#fff}
@media(max-width:600px){.tutor-preview-overlay{padding:0}.tutor-preview-dialog{width:100%;height:100dvh;border-radius:0}.tutor-preview-bar{padding:9px 12px}.tutor-preview-full{font-size:.75rem}}

/* Source: chat-popup.css — generated by scripts/build-homepage-extras.js. */
/* Accessible responsive chat sheet; intentionally independent of tutor-card layout. */
.lesson-chat-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(9,22,42,.66);display:flex;align-items:center;justify-content:center;padding:18px}
.lesson-chat-dialog{background:#fff;width:min(920px,100%);height:min(780px,calc(100dvh - 36px));border-radius:20px;box-shadow:0 24px 85px rgba(0,0,0,.24);display:flex;flex-direction:column;overflow:hidden}
.lesson-chat-bar{height:52px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;background:#0b1d3a;color:white;gap:8px;font:600 14px Inter,system-ui,sans-serif}
.lesson-chat-bar>div{display:flex;align-items:center;gap:10px}
.lesson-chat-full{color:#fff;text-decoration:underline;font-size:12px}.lesson-chat-close{border:1px solid #b7c5d8;background:transparent;color:#fff;border-radius:9px;width:34px;height:32px;cursor:pointer;font-size:19px}
.lesson-chat-dialog iframe{width:100%;flex:1;min-height:0;border:0;background:#f5f7fb}
@media(max-width:640px){.lesson-chat-overlay{padding:0}.lesson-chat-dialog{width:100%;height:100dvh;border-radius:0}.lesson-chat-bar{height:50px}}

.tutor-card-chat{border:1px solid #cbd5e1;border-radius:9px;background:#eff6ff;color:#0b1d3a;font:600 12px Inter,system-ui,sans-serif;padding:8px 11px;cursor:pointer;min-height:36px}
.tutor-card-chat:hover,.tutor-card-chat:focus-visible{background:#dbeafe;border-color:#5676b5}

/* Source: brand-tagline-alignment.css — generated by scripts/build-homepage-extras.js. */
/* LessonInc universal brand lockup — single source of truth.
   HQ logo visible wordmark: L starts at 13.49% and final C ends at 99.86%.
   Every website/PWA brand lockup must inherit this geometry. */
:root{
  --lessoninc-brand-left:13.49%;
  --lessoninc-brand-width:86.37%;
  --lessoninc-brand-desktop:218px;
  --lessoninc-brand-mobile:175px;
  --lessoninc-tagline-size:9px;
  --lessoninc-tagline-size-mobile:8px;
}

.navbar-logo.brand-lockup,
.footer-brand .footer-brand-lockup,
.brand-lockup{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:0!important;
  min-width:0!important;
  text-decoration:none!important;
}
.navbar-logo.brand-lockup,
.footer-brand .footer-brand-lockup{
  width:var(--lessoninc-brand-desktop)!important;
  max-width:100%!important;
}
/* Keep every fixed website header vertically balanced. */
.navbar .navbar-logo.brand-lockup{
  justify-content:center!important;
  height:48px!important;
  align-self:center!important;
  overflow:visible!important;
}
.navbar-logo.brand-lockup .brand-mark,
.footer-brand .footer-brand-lockup .brand-mark,
.brand-lockup .brand-mark{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
}

/* Exact visible L → final C span. */
.navbar-logo.brand-lockup .brand-tagline-header,
.footer-brand .footer-brand-lockup .brand-tagline-header,
.brand-lockup .brand-tagline-header,
.tc-portal-brand .brand-tagline-header,
a.parent-brand-home .brand-tagline-header,
.mast a .brand-tagline-header,
.sb-brand-tag,
.school-brand small,
.sidebar .brand small{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:0!important;
  box-sizing:border-box!important;
  width:var(--lessoninc-brand-width)!important;
  max-width:var(--lessoninc-brand-width)!important;
  min-width:0!important;
  margin:-1px 0 0 var(--lessoninc-brand-left)!important;
  padding:0!important;
  align-self:flex-start!important;
  text-align:left!important;
  text-align-last:auto!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  font-size:var(--lessoninc-tagline-size)!important;
  line-height:1!important;
  font-weight:750!important;
  text-transform:none!important;
  color:#edc967!important;
  transform:none!important;
}
.navbar-logo.brand-lockup .brand-tagline-header>span,
.footer-brand .footer-brand-lockup .brand-tagline-header>span,
.brand-lockup .brand-tagline-header>span,
.tc-portal-brand .brand-tagline-header>span,
a.parent-brand-home .brand-tagline-header>span,
.mast a .brand-tagline-header>span,
.sb-brand-tag>span,
.school-brand small>span,
.sidebar .brand small>span{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  letter-spacing:0!important;
}

a.parent-brand-home img,
.mast a>img,
.school-brand>img,
.sidebar .brand>img{
  height:auto!important;
  object-fit:contain!important;
}

/* Portal/sidebar logo widths use the same wordmark geometry even when their
   overall lockup is narrower than the public header. */
.sb-brand-stack,
.tc-portal-brand,
.school-brand,
.sidebar .brand{
  gap:0!important;
}
.sb-brand-tag{margin-top:-1px!important;}

@media(max-width:520px){
  .navbar-logo.brand-lockup,
  .footer-brand .footer-brand-lockup{
    width:var(--lessoninc-brand-mobile)!important;
  }
  .navbar .navbar-logo.brand-lockup{height:44px!important;}
  .navbar-logo.brand-lockup .brand-tagline-header,
  .footer-brand .footer-brand-lockup .brand-tagline-header,
  .brand-lockup .brand-tagline-header,
  .tc-portal-brand .brand-tagline-header,
  a.parent-brand-home .brand-tagline-header,
  .mast a .brand-tagline-header,
  .sb-brand-tag,
  .school-brand small,
  .sidebar .brand small{
    font-size:var(--lessoninc-tagline-size-mobile)!important;
  }
}

/* Source: tutor-card-mobile.css — generated by scripts/build-homepage-extras.js. */
/* Tutor-card track sizing is fluid at every viewport. This base rule prevents
   a desktop three-column calculation from squeezing cards in device emulation. */
#top-teachers-grid .tutors-grid,
#featured-tutors-grid .tutors-grid,
#new-available-grid .tutors-grid{
  grid-auto-columns:minmax(0,min(340px,calc(100vw - 40px)))!important;
}
.all-tutors-catalog .tutors-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;
}
.tutor-card-quick-actions .tutor-card-chat{order:1}
.tutor-card-quick-actions .tutor-card-save{order:2}
.tutor-card-quick-actions .tutor-card-play{order:3}

/* Container fallback: the live homepage injects cards after page load. When the
   actual card region is narrow, use a real one-column list regardless of how a
   browser or DevTools reports the viewport width. */
#top-teachers-grid,
#featured-tutors-grid,
#new-available-grid,
.all-tutors-catalog{container-type:inline-size}

/* Equal-height tutor cards on desktop. Content grows inside the card while the
   footer stays pinned to the common bottom edge. */
@container (min-width:681px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid,
  .all-tutors-catalog .tutors-grid{
    grid-template-rows:1fr!important;
    grid-auto-rows:1fr!important;
    align-items:stretch!important;
  }
  #top-teachers-grid .tutors-grid>.tutor-card,
  #featured-tutors-grid .tutors-grid>.tutor-card,
  #new-available-grid .tutors-grid>.tutor-card,
  .all-tutors-catalog .tutors-grid>.tutor-card{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    align-self:stretch!important;
  }
}
@container (max-width:680px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid,
  .all-tutors-catalog .tutors-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    width:100%!important;
    gap:14px!important;
    overflow:visible!important;
    padding:2px 0 12px!important;
    scroll-snap-type:none!important;
  }
  #top-teachers-grid .tutors-grid>.tutor-card,
  #featured-tutors-grid .tutors-grid>.tutor-card,
  #new-available-grid .tutors-grid>.tutor-card,
  .all-tutors-catalog .tutors-grid>.tutor-card{
    width:100%!important;
    max-width:430px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 auto!important;
    align-self:start!important;
  }
  #top-teachers-grid .tutor-card-header,
  #featured-tutors-grid .tutor-card-header,
  #new-available-grid .tutor-card-header,
  .all-tutors-catalog .tutor-card-header{
    height:auto!important;
    min-height:76px!important;
    max-height:none!important;
    padding:11px 13px!important;
  }
  #top-teachers-grid .tutor-card-body,
  #featured-tutors-grid .tutor-card-body,
  #new-available-grid .tutor-card-body,
  .all-tutors-catalog .tutor-card-body{
    flex:0 0 auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #top-teachers-grid .tutor-card-footer,
  #featured-tutors-grid .tutor-card-footer,
  #new-available-grid .tutor-card-footer,
  .all-tutors-catalog .tutor-card-footer{margin-top:0!important}
  #top-teachers-grid .tutor-card-quick-actions,
  #featured-tutors-grid .tutor-card-quick-actions,
  #new-available-grid .tutor-card-quick-actions,
  .all-tutors-catalog .tutor-card-quick-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
  }
  #top-teachers-grid .tutor-card-quick-actions button,
  #featured-tutors-grid .tutor-card-quick-actions button,
  #new-available-grid .tutor-card-quick-actions button,
  .all-tutors-catalog .tutor-card-quick-actions button{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    padding:5px 4px!important;
    font-size:.66rem!important;
    line-height:1.2!important;
  }
  #top-teachers-grid .tutor-card-actions .btn,
  #featured-tutors-grid .tutor-card-actions .btn,
  #new-available-grid .tutor-card-actions .btn,
  .all-tutors-catalog .tutor-card-actions .btn{
    min-height:38px!important;
    padding:6px 5px!important;
    font-size:.69rem!important;
  }
}

/* Mobile tutor cards: content-sized, touch-friendly and intentionally compact. */
@media (max-width:680px){
  .tutors-grid{min-width:0;align-items:start!important}

  /* Homepage rails keep a visible next-card cue without stretching cards. */
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{
    grid-auto-columns:minmax(0,min(320px,calc(100vw - 48px)))!important;
    grid-template-rows:auto!important;
    align-items:start!important;
    gap:13px!important;
    padding:2px 1px 12px!important;
    scrollbar-width:none;
  }
  #top-teachers-grid .tutors-grid::-webkit-scrollbar,
  #featured-tutors-grid .tutors-grid::-webkit-scrollbar,
  #new-available-grid .tutors-grid::-webkit-scrollbar{display:none}

  .tutors-grid>.tutor-card,
  #top-teachers-grid .tutors-grid>.tutor-card,
  #featured-tutors-grid .tutors-grid>.tutor-card,
  #new-available-grid .tutors-grid>.tutor-card,
  .all-tutors-catalog .tutors-grid>.tutor-card{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-self:start!important;
    border-radius:14px;
    box-shadow:0 5px 18px rgba(12,36,67,.07);
  }
  .all-tutors-catalog .tutors-grid{
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:14px!important;
  }
  .all-tutors-catalog .tutor-card{max-width:430px;margin-inline:auto}

  .tutors-grid .tutor-card-header{
    height:auto!important;
    min-height:76px!important;
    max-height:none!important;
    flex:0 0 auto!important;
    padding:11px 13px!important;
    gap:11px!important;
    align-items:center;
  }
  .tutors-grid .tutor-avatar{width:52px;height:52px;border-width:2px}
  .tutors-grid .tutor-header-info{max-height:none;overflow:visible}
  .tutors-grid .tutor-name{
    display:flex;
    max-height:none;
    -webkit-line-clamp:unset;
    line-clamp:unset;
    flex-wrap:wrap;
    gap:4px;
    font-size:.91rem;
    line-height:1.35;
  }
  .tutors-grid .tutor-city{margin-top:3px;font-size:.69rem}
  .tutors-grid .tutor-status-badge{font-size:.56rem;padding:2px 6px}

  .tutors-grid .tutor-card-body{
    flex:0 0 auto!important;
    min-height:0!important;
    padding:11px 13px 12px!important;
    overflow:visible!important;
  }
  .tutors-grid .tutor-card-tagline{font-size:.73rem;line-height:1.45;margin-bottom:8px}
  .tutors-grid .tutor-detail-label{font-size:.61rem;margin-bottom:4px}
  .tutors-grid .tutor-subjects,
  .tutors-grid .tutor-subjects:not(.tutor-classes),
  .tutors-grid .tutor-classes{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:0 0 auto!important;
    gap:4px;
    margin:0 0 8px;
    overflow:visible;
  }
  .tutors-grid .subject-tag{font-size:.65rem;line-height:1.35;padding:3px 7px;white-space:normal}
  .tutors-grid .tutor-meta,
  .tutors-grid .tutor-rating{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:0 0 auto!important;
    font-size:.7rem;
    margin:0 0 6px;
    overflow:visible;
  }
  .tutor-card-credentials{gap:3px 9px!important;margin:5px 0!important;font-size:.68rem!important}
  .tutor-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px;margin-top:7px;padding-top:8px}
  .tutor-card-metric-label{font-size:.63rem}.tutor-card-metric-value{font-size:.7rem}
  .tutor-card-activity{font-size:.65rem}

  .tutors-grid .tutor-card-footer{
    margin-top:0!important;
    padding:10px 12px 12px!important;
    gap:8px!important;
  }
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    min-height:0!important;
    padding:0!important;
  }
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions button{
    width:100%;
    min-width:0;
    min-height:36px;
    padding:5px 4px;
    font-size:.66rem;
    white-space:normal;
  }
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions button:nth-child(3):last-child{grid-column:1/-1}
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions .tutor-card-chat,
  .tutors-list .list-right .tutor-card-quick-actions .tutor-card-chat{grid-column:1!important;grid-row:1!important}
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions .tutor-card-save,
  .tutors-list .list-right .tutor-card-quick-actions .tutor-card-save{grid-column:2!important;grid-row:1!important}
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions .tutor-card-play,
  .tutors-list .list-right .tutor-card-quick-actions .tutor-card-play{grid-column:1/-1!important;grid-row:2!important}
  .tutors-grid .tutor-card-footer .tutor-card-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    min-height:0!important;
    padding:0!important;
  }
  .tutors-grid .tutor-card-footer .tutor-card-actions .btn{
    width:100%;
    height:auto!important;
    min-height:38px;
    padding:6px 5px;
    font-size:.69rem;
    white-space:normal;
  }

  /* Search results become compact two-column identity cards, then full-width details. */
  .tutors-list>.tutor-list-card{
    box-sizing:border-box;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    width:100%;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:14px!important;
    gap:11px!important;
    align-items:start;
    text-align:left!important;
    border-radius:14px;
    transform:none!important;
  }
  .tutors-list .list-avatar{grid-column:1;width:58px;height:58px;margin:0!important}
  .tutors-list .list-info{
    grid-column:2;
    min-width:0;
    max-height:none!important;
    overflow:visible!important;
  }
  .tutors-list .list-name{
    justify-content:flex-start!important;
    gap:5px;
    max-height:none;
    font-size:.9rem;
    line-height:1.35;
  }
  .tutors-list .list-tagline{height:auto;max-height:39px;margin:4px 0 7px;font-size:.72rem;line-height:1.4}
  .tutors-list .list-subjects,
  .tutors-list .list-rating,
  .tutors-list .list-badges{justify-content:flex-start!important}
  .tutors-list .list-subjects{min-height:0;max-height:none;margin-bottom:7px;gap:4px}
  .tutors-list .list-badges{max-height:none;gap:4px}
  .tutors-list .subject-tag,.tutors-list .list-badge{font-size:.63rem;padding:3px 7px}
  .tutors-list .list-right{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%;
    height:auto!important;
    min-height:0!important;
    padding-top:10px;
    border-top:1px solid #edf1f6;
    gap:9px!important;
    align-items:stretch!important;
  }
  .tutors-list .list-right .tutor-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
  .tutors-list .list-right .tutor-card-quick-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:7px;
    padding:0;
  }
  .tutors-list .list-right .tutor-card-quick-actions button{width:100%;min-width:0;min-height:36px;padding:5px 4px;font-size:.66rem;line-height:1.2;white-space:normal}
  .tutors-list .list-right .tutor-card-quick-actions button:nth-child(3):last-child{grid-column:1/-1}
  .tutors-list .list-right .list-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:7px!important;
    margin:0;
  }
  .tutors-list .list-right .list-actions .btn{width:100%;max-width:none;min-height:38px;padding:6px 5px;font-size:.69rem;white-space:normal}
}

@media (max-width:360px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{grid-auto-columns:minmax(0,calc(100vw - 38px))!important}
  .tutors-grid .tutor-card-footer .tutor-card-quick-actions,
  .tutors-list .list-right .tutor-card-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
}

/* v8 — compact LessonInc tutor cards for phones and portrait tablets.
   Landscape tablets/desktop keep the existing detailed rail. */
.tutor-card-mobile-summary{display:none}
@media (max-width:680px), (min-width:681px) and (max-width:900px) and (orientation:portrait){
  /* Homepage tutor rails deliberately expose part of the next card as a swipe cue. */
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-template-columns:none!important;
    grid-template-rows:auto!important;
    grid-auto-columns:clamp(272px,82vw,320px)!important;
    gap:10px!important;
    width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:3px 16px 13px 1px!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:1px!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  #top-teachers-grid .tutors-grid::-webkit-scrollbar,
  #featured-tutors-grid .tutors-grid::-webkit-scrollbar,
  #new-available-grid .tutors-grid::-webkit-scrollbar{display:none}
  #top-teachers-grid .tutors-grid>.tutor-card,
  #featured-tutors-grid .tutors-grid>.tutor-card,
  #new-available-grid .tutors-grid>.tutor-card{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    scroll-snap-align:start;
  }

  /* The See-all catalogue stays a normal one-column page, but uses the same compact card. */
  .all-tutors-catalog .tutors-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:11px!important;
  }
  .all-tutors-catalog .tutors-grid>.tutor-card{max-width:430px!important;margin-inline:auto!important}

  /* Replace the tall desktop detail stack with the approved mobile summary. */
  .tutors-grid>.tutor-card>.tutor-card-header,
  .tutors-grid>.tutor-card>.tutor-card-body,
  .tutors-grid>.tutor-card>.tutor-card-footer{display:none!important}
  .tutors-grid>.tutor-card>.tutor-card-mobile-summary{display:block!important}
  .tutors-grid>.tutor-card{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#fff;
    box-shadow:0 5px 16px rgba(12,36,67,.08)!important;
    transform:none!important;
  }
  .tutors-grid>.tutor-card:hover{transform:none!important}
  .tutor-card-mobile-summary{padding:12px 12px 11px;color:#142b50}
  .mobile-card-top{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;gap:10px;align-items:start;min-width:0}
  .mobile-card-avatar-wrap{position:relative;width:64px;height:64px}
  .mobile-card-avatar{width:64px;height:64px;border-radius:50%;overflow:hidden;background:#eaf0f7;border:2px solid #fff;box-shadow:0 0 0 1px #d9e2ee;display:flex;align-items:center;justify-content:center;font-weight:800;color:#173451;font-size:1rem}
  .mobile-card-avatar img{width:100%;height:100%;object-fit:cover;display:block}
  .mobile-card-play{position:absolute;left:-2px;bottom:-2px;width:26px;height:26px;border:2px solid #fff;border-radius:50%;background:#173451;color:#fff;display:grid;place-items:center;padding:0;font-size:.65rem;line-height:1;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
  .mobile-card-identity{min-width:0;padding-top:1px}
  .mobile-card-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:.88rem;font-weight:800;line-height:1.28;color:#102744;min-width:0}
  .mobile-card-name .tutor-status-badge{position:static!important;display:inline-flex!important;font-size:.5rem!important;padding:1px 5px!important;line-height:1.2!important;white-space:nowrap}
  .mobile-card-subjects{margin-top:3px;font-size:.69rem;line-height:1.35;color:#314665;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-card-social{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:.67rem;line-height:1.25;color:#405877;white-space:nowrap;overflow:hidden}
  .mobile-rating-star{color:#f4ad13;font-size:.82rem}.mobile-review-count{color:#64748b}.mobile-new-rating{font-weight:700;color:#49705a}
  .mobile-card-save{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border:0!important;background:transparent!important;color:#173451!important;font-size:1.32rem!important;line-height:1!important;border-radius:50%!important;cursor:pointer;display:grid!important;place-items:center!important}
  .mobile-card-save.is-saved{color:#a1264b!important}
  .mobile-card-facts{display:flex;align-items:center;gap:10px;margin-top:9px;padding-top:8px;border-top:1px solid #e9eef5;min-width:0}
  .mobile-card-facts strong{font-size:.91rem;line-height:1.2;color:#102744;white-space:nowrap}
  .mobile-card-facts span{font-size:.68rem;color:#314665;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:1px solid #d7e0eb;padding-left:10px}
  .mobile-card-demo{display:flex;align-items:center;gap:6px;margin-top:7px;color:#314665;font-size:.67rem;line-height:1.3;white-space:nowrap;overflow:hidden}
  .mobile-card-demo span:last-child{overflow:hidden;text-overflow:ellipsis}
  .mobile-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
  .mobile-card-actions .btn{width:100%;min-width:0;min-height:36px!important;height:36px!important;padding:5px 6px!important;font-size:.68rem!important;line-height:1.1!important;border-radius:9px!important;white-space:nowrap!important}
  .mobile-card-actions .tutor-card-chat{background:#fff;color:#0b66d7;border:1px solid #0b66d7;font-weight:700}
}
@media (max-width:360px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{grid-auto-columns:clamp(265px,84vw,292px)!important}
  .tutor-card-mobile-summary{padding:11px 10px 10px}
  .mobile-card-top{grid-template-columns:58px minmax(0,1fr) 28px;gap:8px}
  .mobile-card-avatar-wrap,.mobile-card-avatar{width:58px;height:58px}
  .mobile-card-name{font-size:.82rem}.mobile-card-subjects,.mobile-card-social,.mobile-card-demo{font-size:.64rem}
  .mobile-card-facts strong{font-size:.84rem}.mobile-card-facts span{font-size:.64rem}
  .mobile-card-actions .btn{font-size:.64rem!important}
}

@media (min-width:681px) and (max-width:900px) and (orientation:portrait){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{
    grid-auto-columns:clamp(340px,72vw,420px)!important;
    gap:12px!important;
    padding-right:18px!important;
  }
}


/* v9: preserve full-size homepage cards: four visible on wide desktop, then
   3/2/compact by viewport. Extra cards scroll rather than compressing. */
@media (min-width:1200px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{grid-auto-columns:calc((100% - 54px)/4)!important}
}
@media (min-width:901px) and (max-width:1199px){
  #top-teachers-grid .tutors-grid,
  #featured-tutors-grid .tutors-grid,
  #new-available-grid .tutors-grid{grid-auto-columns:calc((100% - 36px)/3)!important}
}

/* Service discovery uses the same compact presentation as the mobile tutor card at every viewport. */
.tutors-list.service-results-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(250px,320px))!important;
  gap:16px!important;
  align-items:start!important;
}
.service-results-grid .service-tutor-card{
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.service-results-grid .service-tutor-card>.tutor-card-mobile-summary{display:block!important}
.service-results-grid .service-tutor-card>.tutor-card-header,
.service-results-grid .service-tutor-card>.tutor-card-body,
.service-results-grid .service-tutor-card>.tutor-card-footer{display:none!important}
@media(max-width:680px){.tutors-list.service-results-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Source: category-mobile.css — generated by scripts/build-homepage-extras.js. */
/* LessonInc homepage category rails: one section per learning type on every screen. */
#categories>.container{container-type:inline-size}
#why-us>.container{container-type:inline-size}
#categories-grid{display:block!important}
.category-swipe-hint{display:none!important}

.category-section-block{margin:0 0 clamp(22px,3vw,34px)}
.category-section-block:last-child{margin-bottom:0}
.category-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 11px}
.category-section-heading h3{margin:0;color:#102a4d;font-size:clamp(.96rem,1.15vw,1.14rem);font-weight:800;letter-spacing:-.015em}
.category-section-kicker{display:none}

.category-rail{
  display:flex!important;
  width:100%;
  gap:clamp(10px,1.25vw,16px);
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 12px;
  scroll-snap-type:x proximity;
  scroll-padding-inline:2px;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-x pan-y;
}
.category-rail::-webkit-scrollbar{display:none}

#categories-grid .category-card{
  position:relative;
  flex:0 0 clamp(154px,16.5vw,218px);
  width:clamp(154px,16.5vw,218px);
  min-height:clamp(112px,10.7vw,146px);
  padding:clamp(12px,1.35vw,18px) clamp(10px,1.25vw,16px);
  border-radius:clamp(12px,1.15vw,16px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
  box-shadow:0 5px 16px rgba(15,39,71,.055);
  transform:none;
}
#categories-grid .category-card:hover,
#categories-grid .category-card:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 11px 25px rgba(15,39,71,.11);
}
#categories-grid .category-card:focus-visible{outline:3px solid rgba(212,168,67,.34);outline-offset:2px}
#categories-grid .cat-icon{
  width:clamp(38px,4.3vw,54px);
  height:clamp(38px,4.3vw,54px);
  flex:0 0 clamp(38px,4.3vw,54px);
  margin:0 auto clamp(8px,.85vw,12px);
  border-radius:clamp(10px,1vw,14px);
  font-size:clamp(1.08rem,1.35vw,1.5rem);
}
#categories-grid .cat-name{
  width:100%;
  margin-bottom:4px;
  font-size:clamp(.74rem,.79vw,.91rem);
  line-height:1.28;
  text-align:center;
  overflow-wrap:anywhere;
}
#categories-grid .cat-count{
  width:100%;
  font-size:clamp(.61rem,.66vw,.76rem);
  line-height:1.35;
  text-align:center;
}

/* Premium visual treatment for non-academic language and skill cards. */
#categories-grid .category-card--service{
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(16,42,77,.12);
  background:
    radial-gradient(circle at 86% 8%,rgba(212,168,67,.16),transparent 34%),
    linear-gradient(145deg,#ffffff 0%,#fbfcff 56%,#f5f8fc 100%);
}
#categories-grid .category-card--service::before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#d4a843,#102a4d);
  opacity:.85;
}
#categories-grid .category-card--service::after{
  content:'';
  position:absolute;
  width:70px;
  height:70px;
  border-radius:50%;
  right:-31px;
  bottom:-34px;
  background:rgba(16,42,77,.035);
  z-index:-1;
}
#categories-grid .category-card--service .service-icon{
  color:#16365d;
  background:linear-gradient(145deg,#fff7df,#f4e6b8);
  border:1px solid rgba(212,168,67,.3);
  box-shadow:0 6px 15px rgba(112,82,21,.09);
}
#categories-grid .category-card--service .service-icon svg{
  width:58%;
  height:58%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#categories-grid .category-card--service:hover,
#categories-grid .category-card--service:focus-visible{
  border-color:rgba(212,168,67,.62);
}
#categories-grid .category-card--service:hover .service-icon,
#categories-grid .category-card--service:focus-visible .service-icon{
  color:#fff;
  background:#102a4d;
  border-color:#102a4d;
}

/* Competitive cards keep LessonInc's restrained gold emphasis without changing geometry. */
#categories-grid .category-rail--competitive .category-card.featured{
  background:linear-gradient(145deg,#fffdfa,#fff8e7);
}

/* Mobile size intentionally matches the previous compact card footprint. */
@media(max-width:680px){
  #categories .section-header{margin-bottom:22px}
  .category-section-block{margin-bottom:22px}
  .category-section-heading{margin-bottom:9px}
  .category-section-heading h3{font-size:.94rem}
  .category-rail{gap:9px;padding:2px 1px 10px;scroll-snap-type:x mandatory}
  #categories-grid .category-card{
    flex-basis:calc((100vw - 48px)/2);
    width:calc((100vw - 48px)/2);
    max-width:174px;
    min-width:148px;
    min-height:112px;
    padding:12px 8px;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(15,39,71,.045);
  }
  #categories-grid .cat-icon{
    width:38px;height:38px;flex-basis:38px;
    margin:0 auto 8px;border-radius:10px;font-size:1.1rem;
  }
  #categories-grid .cat-name{margin-bottom:3px;font-size:.74rem}
  #categories-grid .cat-count{font-size:.61rem}
}

/* Tablet scales the same card design rather than switching layouts. */
@media(min-width:681px) and (max-width:1024px){
  #categories-grid .category-card{
    flex-basis:clamp(172px,21vw,202px);
    width:clamp(172px,21vw,202px);
    min-height:126px;
  }
}

/* Keep all six Why Choose cards equal on desktop, regardless of copy length. */
@media (min-width:1025px){
  #why-us .why-grid{grid-auto-rows:1fr}
  #why-us .why-card{height:100%}
}

/* Compact Why Choose LessonInc cards only when their actual container is mobile. */
@container (max-width:680px){
  #why-us .section-header{margin-bottom:20px}
  #why-us .why-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  #why-us .why-card{min-height:0;padding:12px 13px;border-radius:12px;gap:11px;align-items:flex-start;box-shadow:0 2px 10px rgba(15,39,71,.035);transform:none}
  #why-us .why-icon{width:36px;height:36px;flex:0 0 36px;border-radius:9px;font-size:.95rem}
  #why-us .why-title{margin:1px 0 3px;font-size:.77rem;line-height:1.3}
  #why-us .why-desc{margin:0;font-size:.67rem;line-height:1.45}
}

/* Fallback for browsers without container-query support. */
@supports not (container-type:inline-size){
  @media(max-width:680px){
    #why-us .section-header{margin-bottom:20px}
    #why-us .why-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
    #why-us .why-card{min-height:0;padding:12px 13px;border-radius:12px;gap:11px;align-items:flex-start}
    #why-us .why-icon{width:36px;height:36px;flex:0 0 36px;border-radius:9px;font-size:.95rem}
    #why-us .why-title{margin:1px 0 3px;font-size:.77rem;line-height:1.3}
    #why-us .why-desc{margin:0;font-size:.67rem;line-height:1.45}
  }
}

/* Source: pwa-install.css — generated by scripts/build-homepage-extras.js. */
/* LessonInc PWA install controls shared by marketing and portal pages. */
[data-pwa-install][hidden]{display:none!important}
.nav-pwa-install{
  appearance:none;border:1px solid rgba(232,201,106,.7);background:rgba(232,201,106,.1);
  color:#f0d080;font:650 13px/1.2 Inter,system-ui,sans-serif;padding:10px 12px;
  border-radius:9px;white-space:nowrap;cursor:pointer;min-height:40px
}
.nav-pwa-install:hover,.nav-pwa-install:focus-visible{background:#e5bd55;color:#0b1d3a;border-color:#e5bd55}
.pwa-install-fab{
  position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:2147482000;display:inline-flex;align-items:center;
  justify-content:center;gap:7px;min-height:44px;padding:10px 15px;border:1px solid #d4ad48;
  border-radius:999px;background:#0b1d3a;color:#fff;box-shadow:0 10px 30px rgba(8,25,51,.24);
  font:700 13px/1.2 Inter,system-ui,sans-serif;cursor:pointer
}
.pwa-install-fab:hover,.pwa-install-fab:focus-visible{background:#163864;outline:3px solid rgba(212,173,72,.36);outline-offset:2px}
.pwa-install-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:rgba(5,17,35,.68)}
.pwa-install-dialog{width:min(440px,100%);border:1px solid #dce4ef;border-radius:18px;background:#fff;color:#172b49;box-shadow:0 22px 70px rgba(0,0,0,.28);padding:22px}
.pwa-install-dialog h2{margin:0 0 9px;font:800 1.2rem/1.3 Inter,system-ui,sans-serif;color:#0b1d3a}
.pwa-install-dialog p{margin:0 0 16px;font:400 .91rem/1.65 Inter,system-ui,sans-serif;color:#50627a}
.pwa-install-dialog button{min-height:42px;border:0;border-radius:9px;background:#0b1d3a;color:#fff;padding:9px 17px;font:700 13px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
@media(max-width:920px){.navbar-refined .navbar-nav .nav-pwa-install{width:100%;text-align:left;padding:13px 15px;font-size:14px}}
@media(max-width:520px){.pwa-install-fab{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.pwa-install-dialog{padding:18px}}
@media(display-mode:standalone){[data-pwa-install]{display:none!important}}

/* Safe PWA update prompt: downloaded in background, activated only on consent. */
.pwa-update-banner{
  position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:2147482500;
  width:min(650px,calc(100% - 28px));transform:translateX(-50%);display:flex;align-items:center;
  justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid rgba(212,173,72,.78);
  border-radius:14px;background:#0b1d3a;color:#fff;box-shadow:0 16px 44px rgba(5,17,35,.32);
  font-family:Inter,system-ui,sans-serif
}
.pwa-update-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.pwa-update-copy strong{font-size:14px;line-height:1.25;color:#fff}
.pwa-update-copy span{font-size:12px;line-height:1.45;color:#d8e1ee}
.pwa-update-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px}
.pwa-update-actions button{min-height:38px;border-radius:9px;padding:8px 12px;font:700 12px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.pwa-update-now{border:1px solid #e5bd55;background:#e5bd55;color:#0b1d3a}
.pwa-update-now:hover,.pwa-update-now:focus-visible{background:#f0d080;outline:2px solid rgba(240,208,128,.35);outline-offset:2px}
.pwa-update-now:disabled{cursor:wait;opacity:.72}
.pwa-update-later{border:1px solid rgba(255,255,255,.32);background:transparent;color:#fff}
.pwa-update-later:hover,.pwa-update-later:focus-visible{background:rgba(255,255,255,.09);outline:2px solid rgba(255,255,255,.18);outline-offset:2px}
@media(max-width:600px){
  .pwa-update-banner{align-items:stretch;flex-direction:column;gap:11px;bottom:max(12px,env(safe-area-inset-bottom))}
  .pwa-update-actions{width:100%}.pwa-update-actions button{flex:1}
}
