/* Public account flows and editorial pages share the homepage's paper, pine and type. */
@font-face {
  font-family: "GP Public";
  src: url("/fonts/red-hat-display/latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:is(.auth-page, .affiliate-page:has(.affiliate-login-shell), .legal-page, .gp-document,
    .ip:has(> .ip-wrap:first-child, > .gp-subnav + .ip-wrap, .ip-actions a[href*="registrati"])) {
  --paper: #f5f4ea;
  --ink: #172f24;
  --muted: #435b4c;
  --pine: #1b382b;
  --line: #b7c3b4;
  --gutter: clamp(18px, 5vw, 84px);
  color-scheme: light;
  font-family: "GP Public", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:is(.auth-page, .affiliate-page:has(.affiliate-login-shell)) {
  box-sizing: border-box;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 clamp(40px, 6vw, 90px);
  text-align: left;
}
:is(.auth-page, .affiliate-page) > :is(.auth-brand, .affiliate-brand):has(+ :is(.auth-panel,.affiliate-login-shell)) {
  position: static;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex: none;
  width: 100%;
  min-height: 70px;
  padding: 10px var(--gutter);
  background: #12231a;
}
:is(.auth-page, .affiliate-page) > :is(.auth-brand, .affiliate-brand):has(+ :is(.auth-panel,.affiliate-login-shell)) img {
  display: block; width: clamp(130px,12vw,165px); height: auto; filter: none;
}
.auth-page .auth-panel, .affiliate-login-shell .affiliate-form {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2 * var(--gutter)));
  max-width: none;
  padding: clamp(22px, 3.5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffef9;
  box-shadow: 0 10px 32px #223a2910;
  color: var(--ink);
}
.auth-page .auth-panel { margin: clamp(28px,5vw,72px) 0 0; }
.auth-page .auth-panel h1, .affiliate-login-shell .affiliate-copy h1, .legal-page .legal-document h1 {
  margin: .15em 0 .45em;
  color: var(--ink);
  font: 650 clamp(2.4rem,4.6vw,4rem)/1.01 "GP Public",system-ui,sans-serif;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.auth-page .auth-copy, .affiliate-login-shell .affiliate-copy p { color: var(--muted); line-height: 1.55; }
.auth-page .auth-license-note { color: #324e3a; background: #ebf0e5; border-color: #c4cfbd; }
.auth-page .auth-kicker, .affiliate-login-shell .affiliate-copy .affiliate-kicker {
  color: #416448; letter-spacing: .07em; font: 650 .77rem/1.5 ui-monospace, monospace;
}
.auth-page .auth-panel form label, .affiliate-login-shell .affiliate-form label { color: var(--ink); font-size: .94rem; font-weight: 650; }
.auth-page .auth-panel label span { color: inherit; }
.auth-page .auth-panel :is(input:not([type=checkbox]),select), .affiliate-login-shell .affiliate-form input {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #879a88;
  background: #fff; color: var(--ink); border-radius: 4px; font: 400 1rem/1.4 "GP Public",system-ui,sans-serif;
}
.auth-page .auth-panel input[type=checkbox] { accent-color: var(--pine); }
.auth-page .auth-panel :is(button[type=submit],.auth-link-button), .affiliate-login-shell .affiliate-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1rem;
  background: var(--pine); border: 1px solid var(--pine); border-radius: 4px; color: #fff; font: 650 1rem/1.4 "GP Public",system-ui,sans-serif;
}
.auth-page .auth-panel a:not(.auth-link-button), .affiliate-login-shell .affiliate-form a { color: #285d3b; text-underline-offset: .2em; }
.auth-page .auth-panel .auth-mode-switch { min-height: 44px; border: 1px solid #859780; background: transparent; color: var(--ink); }
.auth-page .auth-alert.error, .affiliate-login-shell .affiliate-alert.error { background: #fae7e2; color: #812c24; border-color: #d6a49e; }
.auth-page .auth-alert.success, .affiliate-login-shell .affiliate-alert.success { background: #ebf2e3; color: #2a5033; border-color: #b0c9a5; }
.auth-page .device-reset-card { color: #eff6eb; color-scheme: dark; }
.affiliate-page .affiliate-login-shell {
  width: min(1000px, calc(100% - 2 * var(--gutter))); margin: clamp(28px,6vw,85px) auto 0;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,6vw,86px);
}
.affiliate-login-shell .affiliate-copy { padding: .65rem 0; background: transparent; border: 0; box-shadow: none; }
.affiliate-login-shell .affiliate-form { width: 100%; }
:is(.auth-page,.affiliate-login-shell,.legal-page,.gp-document) :is(a,button,input,select,summary):focus-visible {
  outline: 3px solid #4d8045; outline-offset: 3px; box-shadow: none;
}
.legal-page .landing-nav { background: #12231a; color: #f2f5eb; }
.legal-page .landing-nav a { color: inherit; }
.legal-page .legal-shell {
  box-sizing: border-box; width: min(1120px,calc(100% - 2 * var(--gutter))); margin: auto;
  display: grid; grid-template-columns: minmax(8rem,13rem) minmax(0,45rem); gap: clamp(28px,7vw,100px);
  padding-block: clamp(30px,5vw,76px); text-align: left; align-items: start;
}
.legal-page .legal-sidebar { display: grid; gap: .3rem; padding: 1rem 0; border-top: 2px solid #738b74; }
.legal-page .legal-sidebar a { padding: .5rem .65rem; }
.legal-page .legal-sidebar .active { background: #e0e9d8; font-weight: 700; }
.legal-page .legal-document { color: var(--ink); font-size: 1.06rem; line-height: 1.65; overflow-wrap: anywhere; }
.legal-page .legal-document :is(h2,h3) { color: var(--ink); letter-spacing: -.03em; line-height: 1.2; margin: 1.6em 0 .45em; }
.legal-page .legal-document p, .legal-page .legal-document .public-crumbs { color: var(--muted); }
.legal-page .legal-shell a { color: #265c3b; text-underline-offset: .2em; }
.legal-page .legal-shell .landing-section-kicker { color: #496149; }
.legal-page .public-reading { padding: 0; margin-inline: 0; }
.legal-page .legal-document footer { border-top: 1px solid var(--line); }
body.gp-document {
  box-sizing: border-box; margin: 0; max-width: none; padding: 0; min-height: 100svh;
  font-size: 1.07rem; line-height: 1.65; overflow-wrap: anywhere;
}
.gp-document > :is(header,footer) { padding: 1rem var(--gutter); background: #12231a; color: #eff3ea; }
.gp-document > header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; box-sizing: border-box; }
.gp-document > header a, .gp-document > footer a { color: inherit; font-weight: 650; }
.gp-document header img { width: 145px; height: auto; display: block; }
.gp-document > main { box-sizing: border-box; width: min(100% - 2 * var(--gutter), 47rem); max-width: none; padding: clamp(32px,5vw,72px) 0; margin: auto; }
.gp-document main h1 { font-size: clamp(2.4rem,6vw,4.65rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 650; margin: .3em 0 .65em; }
.gp-document main h2 { font-size: clamp(1.6rem,3vw,2.1rem); line-height: 1.16; letter-spacing: -.035em; }
.gp-document main a { color: #285d3b; text-underline-offset: .2em; }
.gp-document main section { border-color: var(--line); }
.ip:has(> .ip-wrap:first-child, > .gp-subnav + .ip-wrap, .ip-actions a[href*="registrati"]) {
  background: #14281e; color: #ebf2e5;
  .ip-wrap { max-width: 58rem; padding-block: clamp(36px,6vw,84px); }
  h1 { font: 650 clamp(2.6rem,6.6vw,5rem)/1.02 "GP Public",system-ui,sans-serif; letter-spacing: -.055em; }
  article { background: #1c3328; border-color: #496252; }
  nav a, .ip-primary { min-height: 44px; display: inline-flex; align-items: center; }
  .ip-eyebrow { color: #c2e6a8; font: 650 .8rem/1.4 ui-monospace,monospace; }
}
@media (max-width: 720px) {
  .affiliate-page .affiliate-login-shell, .legal-page .legal-shell { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .legal-page .legal-sidebar { display: flex; flex-wrap: wrap; align-items: center; }
  .auth-page .auth-panel { margin-top: 24px; }
}

.auth-page:has(> .gp-subnav) { position: relative; }
.auth-page > .gp-subnav {
  position: absolute; top: 0; right: 0; z-index: 1;
  box-sizing: border-box; min-height: 70px; padding: 0 var(--gutter) 0 .4rem;
  background: #12231a; color: #eff3ea;
}
body:has(.auth-page, .ip .ip-actions a[href*="registrati"], .ip > .gp-subnav + .ip-wrap) { background: #f5f4ea; }
body:has(.auth-page, .ip .ip-actions a[href*="registrati"], .ip > .gp-subnav + .ip-wrap) #gp-marketing-preferences {
  background: #fdfcf5; border-color: #9faf9e; color: #294432; border-radius: 6px;
  font-family: "GP Public",system-ui,sans-serif;
}
body:has(.auth-page, .ip .ip-actions a[href*="registrati"], .ip > .gp-subnav + .ip-wrap) #gp-marketing-preferences a { color: #285d3b; }
