:root {
  --public-bg: #FEFDFA;
  --public-text: #1F1B17;
  --public-muted: #6B645C;
  --public-line: #E6E1D8;
  --public-brand: #B23F24;
  --public-peach: #FAEEE5;
  --public-surface: #F7F4EE;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--public-bg);
  color: var(--public-text);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
::selection { background: #EED4C4; color: var(--public-text); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--public-brand); }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--public-brand);
  outline-offset: 4px;
}

.shell { width: min(1060px, calc(100% - 72px)); margin: 0 auto; }
.header {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--public-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--public-text);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.1px;
  text-decoration: none;
}
.brand svg { width: 38px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; text-decoration: none; }
.nav > a:first-child { min-height: 24px; display: inline-flex; align-items: center; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 8px 15px;
  border: 1px solid var(--public-text);
  border-radius: 7px;
  background: var(--public-text);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #39322C; color: white; }
.arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.public-main { min-height: 530px; }

.document { min-height: 550px; padding: 34px 0 55px; }
.back {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  margin-bottom: 29px;
  color: var(--public-muted);
  font-size: 12px;
  text-decoration: none;
}
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 740px; margin: 0 auto; }
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--public-line);
}
.doc-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--public-muted);
  font-size: 12px;
  text-decoration: none;
}
.doc-tabs a[aria-current="page"] { background: var(--public-peach); color: var(--public-brand); font-weight: 600; }
.article { max-width: 740px; }
.article h1, .hub h1 {
  margin: 0 0 13px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
}
.article h2 { margin: 29px 0 9px; font-size: 17px; font-weight: 650; line-height: 1.4; }
.article p, .article li { color: var(--public-muted); font-size: 13px; line-height: 1.8; }
.article p { margin: 0 0 13px; }
.article li { margin: 6px 0; padding-left: 3px; }
.article ul { padding-left: 19px; }
.article section + section { margin-top: 25px; border-top: 1px solid var(--public-line); padding-top: 1px; }
.article .intro { font-size: 15px; }
.article dl { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 10px; font-size: 12px; }
.article dt { color: var(--public-text); }
.article dd { margin: 0; color: var(--public-muted); }
.article dd a { overflow-wrap: anywhere; }

.hub { max-width: 730px; min-height: 460px; margin: 18px auto 55px; }
.hub > p { margin: 0 0 32px; color: var(--public-muted); font-size: 14px; }
.legal-row {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--public-line);
  text-decoration: none;
}
.legal-row:last-of-type { border-bottom: 1px solid var(--public-line); }
.legal-row > span { min-width: 0; display: flex; flex-direction: column; }
.legal-row strong { margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.legal-row span span { color: var(--public-muted); font-size: 13px; }
.legal-row .arrow { flex: 0 0 auto; }
.contact-note { margin-top: 25px !important; font-size: 12px !important; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0 26px;
  border-top: 1px solid var(--public-line);
  color: var(--public-muted);
  font-size: 12px;
}
.copyright { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.footlinks { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
.footlinks > a { min-height: 24px; display: inline-flex; align-items: center; text-decoration: none; }
.footlinks > a:hover { text-decoration: underline; }
.legal-menu { position: relative; }
.legal-menu summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  cursor: pointer;
  list-style: none;
}
.legal-menu summary::-webkit-details-marker { display: none; }
.legal-menu summary::marker { content: ""; }
.legal-menu summary .arrow { width: 13px; height: 13px; }
.legal-popup {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(210px, calc(100vw - 40px));
  padding: 6px;
  border: 1px solid var(--public-line);
  border-radius: 7px;
  background: var(--public-bg);
}
.legal-popup a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}
.legal-popup a:hover { background: var(--public-peach); text-decoration: none; }

.art { height: 340px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--public-peach); }
.art .mascot { width: 185px; height: 155px; position: relative; transform: rotate(-8deg); }
.art .mascot svg { width: 100%; height: 100%; }
.art .orbit { width: 340px; height: 245px; position: absolute; border: 1px solid #D7B8A6; border-radius: 50%; transform: rotate(-31deg); }
.art .orbit.two { width: 445px; height: 310px; border-color: #E4CBBC; transform: rotate(28deg); }
.art .speck { width: 9px; height: 9px; position: absolute; top: 87px; left: 66px; border-radius: 50%; background: var(--public-brand); }
.art .speck.two { width: 6px; height: 6px; top: auto; right: 62px; bottom: 74px; left: auto; background: #BE8F70; }
.art .caption { position: absolute; right: 8px; bottom: 24px; left: 8px; color: #855C47; font-size: 12px; letter-spacing: .02em; text-align: center; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header { height: 78px; }
  .brand { gap: 8px; font-size: 23px; }
  .brand svg { width: 33px; }
  .nav { gap: 16px; }
  .nav > a:first-child { display: none; }
  .document { padding-top: 25px; }
  .back { margin-bottom: 20px; }
  .doc-grid { gap: 24px; }
  .doc-tabs { gap: 2px; padding-bottom: 12px; }
  .doc-tabs a { padding: 7px 9px; }
  .article h1, .hub h1 { font-size: 29px; }
  .article dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .article dd { margin-bottom: 12px; }
  .hub { min-height: 420px; margin-top: 0; }
  .legal-row strong { font-size: 15px; }
  .legal-row span span { font-size: 12px; }
  .foot { align-items: flex-start; flex-direction: column; gap: 14px; padding-bottom: 46px; }
  .footlinks { gap: 20px; }
  .legal-popup { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 360px) {
  .header { height: auto; min-height: 78px; flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .nav { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .nav .button { white-space: nowrap; }
}

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--public-brand);
  outline-offset: 3px;
}

.home { padding-top: 54px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  max-width: 530px;
  margin: 0 0 23px;
  font-size: clamp(34px, 3.7vw, 48px);
  font-weight: 650;
  letter-spacing: -1.7px;
  line-height: 1.13;
  text-wrap: balance;
}
.hero h1 em { color: var(--public-brand); font-style: normal; }
.hero p {
  max-width: 440px;
  margin: 0 0 13px;
  color: var(--public-muted);
  font-size: 15px;
  line-height: 1.7;
}
.hero p.secondary { margin-bottom: 25px; font-size: 14px; }
.home .home-cta { min-height: 48px; padding: 12px 19px; font-size: 14px; }
.hero p.note { margin: 14px 0 0; font-size: 12px; }
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 43px;
  padding: 25px 0 30px;
  border-top: 1px solid var(--public-line);
}
.overview h2 { margin: 0 0 5px; font-size: 14px; font-weight: 650; letter-spacing: -.15px; }
.overview p { max-width: 245px; margin: 0; color: var(--public-muted); font-size: 12px; }

.login {
  min-height: 535px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 85px;
  padding: 54px 60px;
}
.login-copy { width: min(400px, 100%); min-width: 0; margin: 0 auto; }
.login h1 {
  margin: 0 0 13px;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
}
.login-intro { margin: 0 0 26px; color: var(--public-muted); font-size: 14px; }
.login .notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--public-brand);
  background: var(--public-peach);
  color: #762713;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.login .field {
  display: block;
  margin: 0 0 7px;
  color: var(--public-text);
  font-size: 12px;
  font-weight: 600;
}
.login input, .login select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #D6CFC4;
  border-radius: 6px;
  background: white;
  color: var(--public-text);
  font: inherit;
  font-size: 14px;
}
.login input { caret-color: var(--public-brand); }
.login .btn {
  width: 100%;
  min-height: 46px;
  margin-top: 13px;
  padding: 11px 15px;
  border: 1px solid var(--public-text);
  border-radius: 7px;
  background: var(--public-text);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login .btn:hover { background: #39322C; }
.form-help { margin: 17px 0 0; color: var(--public-muted); font-size: 12px; }
.login .art { height: 335px; }
.login .art .mascot { width: 150px; }

@media (max-width: 760px) {
  .home { padding-top: 35px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { max-width: 450px; margin-bottom: 20px; font-size: 38px; letter-spacing: -1.2px; }
  .hero p { font-size: 14px; }
  .hero .art { height: 210px; }
  .art .mascot { width: 135px; height: 110px; }
  .art .orbit { width: 280px; height: 170px; }
  .art .orbit.two { width: 360px; height: 230px; }
  .art .caption { bottom: 14px; font-size: 12px; }
  .overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 28px;
    padding: 10px 0 20px;
  }
  .overview > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--public-line);
  }
  .overview > div:last-child { border-bottom: 0; }
  .overview h2 { font-size: 13px; }
  .overview p { max-width: none; font-size: 12px; }
  .login { grid-template-columns: minmax(0, 1fr); gap: 25px; min-height: 510px; padding: 46px 0 55px; }
  .login .art { display: none; }
  body[data-public-page="login"] .nav > a:first-child { display: inline-flex; }
}
