.brand-site{min-width:0}
/* Layout refinements; existing service, purchase, and authentication handlers stay in place. */
.brand-site .returning-bar{flex-wrap:wrap;gap:12px 24px;line-height:1.6}
.brand-site .footer nav{display:flex;gap:16px;flex-wrap:wrap}
.brand-site #home-voucher-code{min-width:0}
.brand-site .redeem-input-row{flex-wrap:wrap}
.brand-site .redeem-input-row input{flex:1 1 220px}
.brand-site .redeem-input-row .voucher-live-tip{flex:1 0 100%;margin:0!important;font-size:12px}
.brand-site a:focus-visible,.brand-site button:focus-visible,.brand-site summary:focus-visible{outline:2px solid #19734d;outline-offset:4px}
.brand-site .modal{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain}
#buyback-banner button{min-height:44px}
@media(max-width:760px){
 .brand-site .brand-hero-copy{min-width:0}
 .brand-site .hero-actions{flex-wrap:wrap;gap:12px}
 .brand-site .returning-bar{align-items:flex-start;padding-block:18px}
 .brand-site .returning-bar>span{flex-basis:100%}
 .brand-site .returning-bar>a,.brand-site .returning-bar>button{min-height:44px;display:inline-flex;align-items:center}
 .brand-site .redeem-input-row input,.brand-site select,.brand-site .modal input{font-size:16px;min-height:48px}
 .brand-site .redeem-input-row .button{min-height:48px}
 .brand-site .mobile-menu-panel a,.brand-site .mobile-menu-panel button{min-height:44px}
 .brand-site .footer{align-items:flex-start;gap:20px}
 .brand-site .footer nav a{min-height:44px;display:inline-flex;align-items:center}
 #buyback-banner{bottom:calc(18px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px)!important;width:calc(100vw - 24px);box-sizing:border-box}
}
@media(max-width:420px){.brand-site .redeem-input-row input{flex-basis:100%;width:100%}.brand-site .redeem-input-row .button{width:100%}.brand-site .hero-actions .button{flex:1 1 100%}.brand-site .footer{flex-direction:column}.brand-site .footer nav{gap:4px 18px}}
@media(prefers-reduced-motion:reduce){.brand-site *,#buyback-banner{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* User journey: explicit redemption scope, readable feedback, unobstructed forms. */
.brand-site .redeem-target-field{display:grid;gap:8px;margin:18px 0 12px}
.brand-site .redeem-target-field label{font-size:13px;font-weight:600;color:#244936}
.brand-site .redeem-target-field select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d7e2d1;border-radius:8px;background:#fff;color:#244936;font:inherit;font-size:14px}
.brand-site #home-target-note,.brand-site .redeem-balance-note{font-size:12px;line-height:1.7;color:#61735d;margin:0}
.brand-site .redeem-balance-note{margin:12px 0}.brand-site #home-balance-retry{min-height:44px}
.brand-site #balance-value{color:#244936;font-variant-numeric:tabular-nums}
.brand-site #redeem-section,.brand-site #home-voucher-code,.brand-site #school-start,.brand-site #pricing{scroll-margin-top:calc(var(--user-header-height,110px) + 20px)}
.brand-site.is-user-editing .help-fab,.brand-site.is-redeem-visible .help-fab,.brand-site.is-user-editing .to-top,.brand-site.is-redeem-visible .to-top{visibility:hidden;pointer-events:none}
.brand-site .service-options .section-head p{max-width:50ch;font-size:13px;line-height:1.7;color:#61735d}
@media(max-width:760px){.brand-site .help-fab{right:16px!important;bottom:calc(104px + env(safe-area-inset-bottom))!important}.brand-site .sticky-cta{padding-bottom:env(safe-area-inset-bottom)}.brand-site .redeem-target-field select{font-size:16px}.brand-site .sticky-cta-actions .button{min-height:44px}}


/* Keep the native mobile menu inside the screen at every small breakpoint. */
@media (max-width:760px) {
  .brand-site .topbar {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .brand-site .topbar .brand { min-width:0; }
  .brand-site .mobile-menu { flex:0 0 auto; margin-left:auto; }
  .brand-site .mobile-menu-trigger {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:60px;
    min-height:44px;
    padding:10px 14px;
    touch-action:manipulation;
  }
  .brand-site .mobile-menu-trigger:focus-visible {
    outline:2px solid #214f3b;
    outline-offset:3px;
  }
  .brand-site .mobile-menu-panel {
    top:calc(100% + 10px);
    right:0;
    width:min(280px, calc(100vw - 40px));
    max-height:calc(100vh - 104px);
    max-height:calc(100dvh - 104px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}


/* Column flex wrapping placed the redeem button beyond the clipped page edge. */
@media (max-width:900px) {
  .brand-site .redeem-input-row {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    width:100%;
  }
  .brand-site .redeem-input-row input,
  .brand-site .redeem-input-row .button {
    width:100%;
    min-width:0;
    min-height:48px;
    height:48px;
    box-sizing:border-box;
  }
  .brand-site .redeem-input-row input { font-size:16px; }
}

.brand-site #home-redeem-card{scroll-margin-top:calc(var(--user-header-height,110px) + 20px)}

.brand-site .brand-hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  padding-block: clamp(32px, 4.2vw, 66px) 24px;
}
.brand-site .brand-hero-copy,
.brand-site .brand-hero .hero-actions,
.brand-site .brand-visual { animation: none; }
.brand-site #hero-title {
  max-width: 10em;
  font-size: clamp(45px, 5vw, 76px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.13;
  text-wrap: balance;
}
.brand-site .brand-lede {
  margin: 22px 0 26px;
  color: #485d50;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}
.brand-site .hero-actions { align-items: center; gap: 12px 18px; }
.brand-site .hero-actions .button-primary {
  min-height: 48px;
  padding-inline: 19px;
  border: 1px solid #204938;
  border-radius: 11px;
  background: #1f4b38;
  box-shadow: 0 7px 15px #183b261b;
}
.brand-site .hero-actions .brand-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #234b37;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .26em;
}
.brand-site .brand-visual {
  height: clamp(288px, 29vw, 444px);
  border-radius: 46px 15px 15px 15px;
  outline: 1px solid #193b2966;
  outline-offset: -1px;
  box-shadow: 0 17px 38px #132e2421;
}
.brand-site .brand-visual img { object-position: 68% 62%; filter: none; }

.brand-site .returning-bar {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  margin: 0 0 clamp(18px, 3vw, 36px);
  padding: 7px 10px;
  border: 1px solid #d3e0d4;
  border-radius: 13px;
  background: #edf3ee;
}
.brand-site .returning-bar > span { padding-inline: 9px 16px; color: #415a49; }
.brand-site .returning-bar > :is(a, button) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #d9e4d9;
  border-radius: 8px;
  background: #fbfdfb;
  color: #234b37;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: start;
  text-decoration: none;
}
.brand-site .returning-bar > :is(a, button) > span { color: #46614e; }
.brand-site .brand-start { border-radius: 16px; }
.brand-site :is(.school-select-field input, .school-select-field select, .modal input):focus-visible {
  outline: 2px solid #22704c;
  outline-offset: 2px;
}

.brand-site dialog.modal-backdrop > .modal {
  border: 1px solid #dce7de;
  border-radius: 19px;
  box-shadow: 0 18px 62px #0d241b42;
}
.brand-site #query-form { display: grid; gap: 13px; }
.brand-site #query-form .query-input {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.brand-site #query-form .query-input span { color: #314d3e; font-size: 13px; }
.brand-site #query-form .query-input input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c5d5c9;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.brand-site #query-form .query-submit { min-height: 46px; border-radius: 9px; }
.brand-site .query-modal .query-lede { color: #4b6152; }
.brand-site .query-feedback { min-height: 25px; }
.brand-site .query-status,
.brand-site .query-feedback .query-error { margin: 6px 0; font-size: 13px; line-height: 1.55; }
.brand-site .query-status { color: #3f624e; }
.brand-site .clipboard-feedback { margin: 8px 0 0; font-size: 13px; color: #3f624e; }
.brand-site .clipboard-feedback:empty { margin: 0; }

@media (max-width: 760px) {
  .brand-site .brand-hero { gap: 18px; padding-block: 24px 15px; }
  .brand-site #hero-title { font-size: clamp(32px, 8vw, 48px); max-width: none; text-wrap: wrap; }
  .brand-site .brand-lede { margin: 12px 0 15px; font-size: 14px; }
  .brand-site .hero-actions .button-primary { flex: 0 1 auto; }
  .brand-site .hero-actions { gap: 6px 10px; }
  .brand-site .brand-visual { width: 100%; height: clamp(138px, 42vw, 245px); border-radius: 28px 11px 11px 11px; }
  .brand-site .returning-bar { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; padding: 7px; }
  .brand-site .returning-bar > span { grid-column: 1 / -1; padding-inline: 3px; font-size: 12px; }
  .brand-site .returning-bar > :is(a, button) { justify-content: center; padding-inline: 3px; font-size: 13px; }
  .brand-site .returning-bar > :is(a, button) > span { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .brand-site .returning-bar > :is(a, button):hover { background: #dfeee3; border-color: #a8c2af; }
  .brand-site .hero-actions .brand-link:hover { border-color: #cbdcce; background: #eaf2eb; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-site .returning-bar > :is(a, button),
  .brand-site .hero-actions .brand-link { transition: background-color 150ms ease, border-color 150ms ease; }
  .brand-site dialog.modal-backdrop[open] > .modal { animation: store-dialog-enter 200ms cubic-bezier(.21,.72,.26,1) both; }
  .brand-site .query-result:not([hidden]) { animation: store-dialog-enter 160ms ease-out both; }
  @keyframes store-dialog-enter {
    from { opacity: .82; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
