/* Public payment and policy pages share the studio's graphite and silver palette. */
body:not(.portal-site) {
  --doc-paper: #0b0c0e;
  --doc-panel: #141619;
  --doc-line: #35383d;
  --doc-title: #f1f1ee;
  --doc-text: #c5c6c7;
  --doc-muted: #abadb1;
  background: var(--doc-paper);
  color: var(--doc-title);
}

body:not(.portal-site) ::selection { background: #cdd0d2; color: #111316; }
body:not(.portal-site) :focus-visible { outline: 2px solid #f1f1ee; outline-offset: 4px; }
body:not(.portal-site) .wrap { width: min(1140px, calc(100% - clamp(36px, 9vw, 120px))); }
body:not(.portal-site) .header,
body:not(.portal-site) footer { background: #101113; border-color: var(--doc-line); }
body:not(.portal-site) .nav { min-height: 72px; padding-block: 8px; }
body:not(.portal-site) .brand > span:last-child { color: var(--doc-title); }
body:not(.portal-site) .brand small { color: var(--doc-muted); }
body:not(.portal-site) .nav .brand img { width: 48px; height: 46px; }
body:not(.portal-site) .button {
  min-height: 44px;
  border: 1px solid #505257;
  border-radius: 3px;
  box-shadow: none;
  color: var(--doc-title);
  background: transparent;
}
body:not(.portal-site) .button:hover { background: #222429; border-color: #888a8f; }
body:not(.portal-site) .button.primary { background: #e7e7e3; color: #121315; border-color: #e7e7e3; }
body:not(.portal-site) .button.primary:hover { background: #fff; border-color: #fff; }
body:not(.portal-site) .footer {
  min-height: 100px;
  padding-block: 22px;
  color: var(--doc-muted);
  gap: 12px 28px;
}
body:not(.portal-site) .footer-brand img { width: 52px; height: 48px; object-fit: contain; }
body:not(.portal-site) .footer nav { gap: 6px 20px; }
body:not(.portal-site) .footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
body:not(.portal-site) .footer a:hover { color: #fff; }

body:not(.portal-site) .document {
  max-width: 1140px;
  padding-block: clamp(54px, 7.5vw, 105px) clamp(64px, 8vw, 116px);
  min-width: 0;
}
body:not(.portal-site) .document > .eyebrow,
body:not(.portal-site) .payment-index {
  font: 600 .7rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
  color: var(--doc-muted);
}
body:not(.portal-site) .document > .eyebrow { margin: 0; }
body:not(.portal-site) .document > h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.6rem, 6.5vw, 5.3rem);
  font-weight: 550;
  line-height: 1.03;
  letter-spacing: -.064em;
  color: var(--doc-title);
}
body:not(.portal-site) .document > .document-date {
  margin: 0 0 25px;
  font: .8rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--doc-muted);
}
body:not(.portal-site) .document > p { color: var(--doc-text); line-height: 1.75; }
body:not(.portal-site) .document > .document-date + p,
body:not(.portal-site) .document > .payment-intro {
  max-width: 65ch;
  margin: 0 0 clamp(26px, 4vw, 46px);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
}
body:not(.portal-site) .document > h2 {
  padding-top: 26px;
  margin: 0 0 8px;
  color: var(--doc-title);
  border-top: 1px solid var(--doc-line);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 550;
  line-height: 1.24;
  letter-spacing: -.035em;
}
body:not(.portal-site) .document > h2 + p { margin: 0 0 25px; overflow-wrap: anywhere; }
body:not(.portal-site) .document p a,
body:not(.portal-site) .payment-help nav a {
  color: var(--doc-title);
  text-decoration: underline;
  text-decoration-color: #77797c;
  text-underline-offset: .2em;
}
body:not(.portal-site) .document p a:hover,
body:not(.portal-site) .payment-help nav a:hover { text-decoration-color: #fff; }

@media (min-width: 810px) {
  body:not(.portal-site) .document:has(> .document-date) {
    display: grid;
    grid-template-columns: minmax(200px, .75fr) minmax(0, 1.6fr);
    align-content: start;
  }
  body:not(.portal-site) .document:has(> .document-date) > :is(.eyebrow, h1, .document-date, .document-date + p) { grid-column: 1 / -1; }
  body:not(.portal-site) .document > h2 { margin: 0; padding: 25px 36px 25px 0; }
  body:not(.portal-site) .document > h2 + p { margin: 0; border-top: 1px solid var(--doc-line); padding-block: 25px; }
}

body:not(.portal-site) .payment-nav { margin: 0 0 clamp(25px, 4vw, 46px); gap: 7px 12px; }
body:not(.portal-site) .payment-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--doc-line);
  border-radius: 3px;
  color: var(--doc-text);
  font-size: .86rem;
}
body:not(.portal-site) .payment-nav a:hover { color: #fff; border-color: #707278; }
body:not(.portal-site) .payment-options { border-color: var(--doc-line); }
body:not(.portal-site) .payment-option {
  gap: 24px clamp(32px, 7vw, 92px);
  padding: clamp(26px, 4vw, 46px) 0;
  border-color: var(--doc-line);
  grid-template-columns: minmax(0, 1fr) minmax(208px, 26%);
  scroll-margin-top: 20px;
}
body:not(.portal-site) .payment-copy h2 {
  margin: 9px 0 15px;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 550;
  letter-spacing: -.04em;
}
body:not(.portal-site) .payment-copy p { max-width: 67ch; color: var(--doc-text); }
body:not(.portal-site) .payment-copy .payment-condition { margin-bottom: 0; color: var(--doc-muted); font-size: .9rem; }
body:not(.portal-site) .payment-action { justify-self: stretch; min-width: 0; }
body:not(.portal-site) .payment-amount { margin: 0 0 18px; color: var(--doc-title); font: 550 clamp(2.2rem, 4vw, 3.25rem)/1 var(--font-heading); letter-spacing: -.05em; }
body:not(.portal-site) .payment-variable { font-size: clamp(1.5rem, 2.6vw, 2rem); }
body:not(.portal-site) .payment-amount span { margin-top: 7px; color: var(--doc-muted); font: .78rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .015em; }
body:not(.portal-site) .payment-action .button { gap: 14px; padding: 13px 16px; }
body:not(.portal-site) .payment-help {
  padding: clamp(22px, 4vw, 38px);
  margin-top: clamp(38px, 6vw, 72px);
  border: 1px solid var(--doc-line);
  background: var(--doc-panel);
  color: var(--doc-text);
}
body:not(.portal-site) .payment-help h2 { color: var(--doc-title); font-size: 1.45rem; }
body:not(.portal-site) .payment-help nav a { display: inline-flex; align-items: center; min-height: 36px; }

@media (max-width: 700px) {
  body:not(.portal-site) .nav { min-height: 65px; }
  body:not(.portal-site) .nav .brand img { width: 40px; height: 38px; }
  body:not(.portal-site) .nav > .button { padding: 9px 11px; }
  body:not(.portal-site) .payment-option { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body:not(.portal-site) .payment-action { width: 100%; max-width: 340px; }
  body:not(.portal-site) .footer { justify-content: flex-start; }
  body:not(.portal-site) .footer nav { width: 100%; }
}
