/* Public sign-in, the resident writing pad and its receipt use the same document shell. */
@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 100 499;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-650.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Montserrat, sans-serif;
  --ink: #112d28;
  --brand: #005743;
  --bg: #ecf0eb;
  --surface: #fff;
  --muted: #465c56;
  --line: #b5c4ba;
  --edge: #76877f;
  --soft: #e0efdf;
  --focus: #934600;
  --error: #9d3529;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --rail: 10.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  caret-color: transparent;
}
[hidden] { display: none !important; }
body[data-session-covered] > :not(.session-check) { display: none !important; }
.session-check { max-width: 28rem; margin: 20vh auto 0; padding: var(--gutter); text-align: center; }
.session-check button { margin-top: 1rem; min-height: 44px; padding: .5rem 1rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
a, button, summary, input, textarea, select { font: inherit; }
a { text-underline-offset: .24em; }
:where(.b-resident) a { color: var(--brand); }
button, summary, select { cursor: pointer; }
.b-resident button, .r-mast button { color: inherit; }
button:disabled { cursor: wait; }
textarea, input:not([type="checkbox"]) { caret-color: auto; }
input, select, textarea { max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; flex: none; stroke-width: 1.75; }
:where(a, button, input, textarea, summary, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.r-skip:not(:focus), .sr-only, .visually-hidden {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.r-skip:focus { position: fixed; z-index: 6; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; }
.r-mast {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 4.4rem; padding: .65rem var(--gutter);
  background: white; border-bottom: 1px solid var(--line);
}
.brand, .r-session, .r-signout { display: inline-flex; align-items: center; }
.brand { min-height: 44px; min-width: 0; text-decoration: none; }
.brand picture { display: flex; min-width: 0; }
.brand-mark { width: 10.3rem; max-width: 100%; height: auto; background: transparent; }
.brand-name { display: none; }
.brand-logo-failed .brand-name { display: inline; color: var(--ink); font-weight: 700; }
.brand-logo-failed .brand-mark { display: none; }
.r-session { gap: .35rem; }
.environment-badge { color: var(--muted); font-size: .6875rem; font-weight: 650; letter-spacing: .04em; white-space: nowrap; }
.r-signout { justify-content: center; width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: .5rem; }
.r-signout:disabled { opacity: .55; }
.r-session-error:not(:empty) { flex-basis: 100%; padding: .6rem; color: var(--error); }
.r-mast:has(.r-session-error:not(:empty)) { flex-wrap: wrap; }
.r-session-error:empty { display: none; }
@media (prefers-color-scheme: dark) and (max-width: 47.999rem) {
  .r-mast {
    color-scheme: dark;
    --ink: #edf6ee; --brand: #bbebca; --muted: #bdd0c5; --soft: #284a3f; --focus: #f3c67d;
    color: var(--ink); background: #152b24; border-bottom-color: #435d51;
  }
}
.r-main { max-width: 90rem; margin: auto; padding: 0 var(--gutter); }
.r-main:focus { outline: none; }
.r-deck {
  max-width: 70rem; margin: 1.4rem auto 0; overflow: hidden; border-radius: 1.15rem;
}
.r-pad { padding: 1.5rem; background: #173e36; color: #f6fbf4; }
.r-kicker { display: flex; align-items: center; gap: .55rem; font-size: .75rem; font-weight: 650; letter-spacing: .015em; }
.r-pad .r-kicker { color: #d2e4d7; }
.r-pad h1 {
  margin: 1.65rem 0; font-size: clamp(2.75rem, 5.4vw, 5.8rem);
  line-height: 1.02; font-weight: 620; letter-spacing: -.07em;
  overflow-wrap: anywhere;
}
.r-write, .r-receipt-link, .r-back {
  display: inline-flex; min-height: 44px; align-items: center; gap: .8rem; font-weight: 650;
}
.r-write {
  gap: min(2.6rem, 12vw); padding: .72rem 1.15rem; border-radius: 2rem;
  background: #d6ed9d; color: #173626; text-decoration: none;
}
.r-pad :focus-visible { outline-color: white; }
.r-slip { padding: 1.25rem 1.5rem 1.5rem; background: #fffcf1; border-top: 2px dashed #819587; }
.r-slip .r-kicker { color: #586142; }
.r-slip h2 { margin: 1rem 0 .35rem; font-size: 1.55rem; letter-spacing: -.045em; }
.r-slip p:not(.r-kicker) { max-width: 24rem; color: #4b5c50; }
.r-intro { max-width: 31ch; color: #d2e4d7; }
.signin-panel h2 { margin: 0 0 .5rem; }
.signin-panel form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.signin-panel label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 650; }
.signin-panel input {
  min-width: 0; width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--edge);
  border-radius: .4rem; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 500;
}
.signin-panel .r-write {
  width: fit-content; max-width: 100%; justify-content: space-between;
  border: 0; background: var(--brand); color: white;
}
.signin-panel .r-write svg { color: #d6ed9d; }
.signin-panel .r-write:disabled { opacity: .65; }
.signin-panel [data-result] { margin-top: 1rem; padding-left: .8rem; border-left: 3px solid var(--brand); }
.signin-panel .error-result { border-color: var(--error); }
.signin-panel .error-result strong { color: var(--error); }
.r-receipt-link { margin-top: .35rem; }
.r-destinations {
  position: fixed; z-index: 3; inset: auto 0 0; display: flex; justify-content: space-evenly;
  background: #fcfefa; border-top: 1px solid var(--line);
  padding: .22rem 1rem max(.25rem, env(safe-area-inset-bottom));
}
.r-destinations a {
  display: grid; justify-items: center; align-content: center; gap: 1px;
  min-width: 3.5rem; min-height: 48px; color: var(--ink); text-decoration: none;
  font-size: .8125rem; font-weight: 600;
}
.r-destinations [aria-current] { color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
.r-task-sheet { max-width: 42rem; margin: auto; padding: 1rem 0 1.5rem; }
.r-back { gap: .25rem; margin-bottom: .65rem; color: var(--muted); font-size: .875rem; text-decoration: none; }
.r-back svg { width: 1rem; }
.r-task-sheet h1 {
  margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 635; letter-spacing: -.055em; overflow-wrap: anywhere;
}
.r-overview {
  max-width: 70rem; margin: 2rem auto; padding: 0 .125rem;
}
.r-overview h2 { margin: 0 0 .8rem; font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.25; }
.r-overview-ways { display: grid; margin: 0; }
.r-overview-ways > div { padding: .85rem 0; border-top: 1px solid var(--line); }
.r-overview dt, .r-overview-rules h3 { margin: 0 0 .25rem; color: var(--brand); font-size: 1rem; font-weight: 650; }
.r-overview dd, .r-overview-rules p { margin: 0; max-width: 68ch; }
.r-overview-rules { padding: 1rem 0 0; border-top: 1px solid var(--line); }
.r-overview-safety { max-width: 68ch; margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; }
@media (min-width: 56rem) {
  .r-overview-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .r-overview-ways > div { padding-bottom: 1.25rem; }
}
@media (hover: hover) {
  .r-write:hover { background: #e5f5bc; }
  .signin-panel .r-write:hover:enabled { background: #173e36; }
  .r-back:hover, .r-receipt-link:hover { text-decoration: underline; }
  .r-signout:hover, .r-destinations a:hover { background: var(--soft); }
}
@media (max-width: 47.999rem) {
  html:has([data-role="resident"][data-surface="resident-landing"]) { scroll-padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  [data-role="resident"][data-surface="resident-landing"] { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  .r-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: min(.85rem, 3vw); }
  .r-destinations a { justify-self: center; }
  body:not([data-surface="resident-landing"]) .r-destinations { display: none; }
}
@media (max-width: 23rem) {
  .r-pad { padding-inline: 1.125rem; }
  .r-pad h1 { font-size: 2.5rem; }
}
@media (max-width: 47.999rem) and (max-height: 40rem) {
  [data-role="guest"] .r-mast { min-height: 3.5rem; padding-block: .3rem; }
  [data-role="guest"] .r-deck { margin-top: .75rem; }
  [data-role="guest"] .r-pad, .signin-panel { padding-block: 1rem; }
  [data-role="guest"] .r-pad h1 { margin: .65rem 0; font-size: 2.25rem; }
  .signin-panel form { gap: .65rem; margin-top: .75rem; }
}
@media (max-width: 23rem) and (max-height: 37rem) {
  [data-role="guest"] .r-kicker { display: none; }
  [data-role="guest"] .r-pad h1 { margin-top: 0; }
  [data-role="guest"] .r-intro, .signin-panel .section-heading p { margin-block: .35rem 0; }
}
@media (min-width: 48rem) {
  [data-role="resident"] { padding-left: var(--rail); }
  [data-role="resident"] .r-mast { justify-content: flex-end; min-height: 4.2rem; padding-block: .5rem; background: transparent; border: 0; }
  [data-role="resident"] .r-mast .brand { position: fixed; top: 1rem; left: .85rem; z-index: 4; max-width: calc(var(--rail) - 1.7rem); }
  [data-role="resident"] .brand-mark { width: 8.7rem; }
  [data-role="guest"] .r-mast { padding-inline: max(var(--gutter), calc((100% - 70rem) / 2)); }
  .r-destinations {
    inset: 0 auto 0 0; width: var(--rail); flex-direction: column; justify-content: flex-start;
    gap: .3rem; padding: 6.2rem .8rem .8rem; background: #dce6db; border: 0; overflow-y: auto;
  }
  .r-destinations a { display: flex; justify-content: flex-start; align-items: center; gap: .72rem; padding: .75rem; font-size: .95rem; }
  .r-destinations [aria-current] { background: #edf5e7; border-radius: .4rem; }
  .r-deck { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr); margin-top: 2rem; }
  .r-pad, .r-slip { padding: clamp(1.5rem, 3.4vw, 3.5rem); }
  .r-pad h1 { margin: 2rem 0; }
  .r-slip { align-content: center; border-top: 0; border-left: 2px dashed #819587; }
  .r-slip h2 { font-size: clamp(1.6rem, 2.7vw, 2.8rem); }
  .r-task-sheet { margin: 2rem auto; padding: 1.7rem 2rem 2.3rem; background: #fcfdf9; border-radius: 1rem; }
}
@media (min-width: 48rem) and (max-width: 57rem) {
  .r-deck { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
  .r-receipt-link { gap: .4rem; }
}
