:root {
  color-scheme: light;
  --ink: #153c3c;
  --muted: #526667;
  --green: #00685b;
  --line: #cddbd4;
  --paper: #f8faf6;
  --cream: #f4f4e7;
  --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid #1172a0; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .75rem; background: white; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topbar { border-bottom: 1px solid var(--line); background: white; }
.topbar-inner, .page, .footer-inner { width: min(72rem, calc(100% - 6rem)); margin-inline: auto; }
.topbar-inner { min-height: 5.45rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; padding: .3rem 0; }
.brand img { width: 6rem; height: auto; display: block; }
.guide-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: .93rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .26em; text-decoration-color: #99b7a9; }
.page { flex: 1; padding-block: clamp(1.75rem, 4vw, 3.75rem) 3.5rem; }
.page:focus { outline: 0; }
.loading, .status-panel { padding-block: 3rem; }
.status-panel h1 { font-family: var(--serif); line-height: 1.1; }
.welcome { position: relative; isolation: isolate; display: grid; grid-template-columns: .97fr 1.03fr; min-height: 30rem; overflow: hidden; border: 1px solid #c9d8c9; border-radius: 1.15rem; background: var(--cream); }
.welcome-copy { align-self: center; padding: clamp(2rem,4.3vw,4.25rem); }
.eyebrow { display: flex; align-items: center; gap: .56rem; color: var(--green); font-size: .8rem; font-weight: 750; line-height: 1.3; text-transform: uppercase; letter-spacing: .13em; }
.sparkles { color: #9b6412; font-size: 1.32rem; line-height: 1; }
.display { margin: 1.1rem 0 1.2rem; font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 6.1vw, 6.1rem); letter-spacing: -.068em; line-height: .94; }
.display em { color: var(--green); font-weight: inherit; }
.welcome-copy > p:not(.notice) { max-width: 26rem; color: #354f4c; margin: 1.55rem 0 1.8rem; font-size: 1.09rem; line-height: 1.55; }
.google-button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3.1rem; padding: .64rem 1.2rem; border: 1px solid #899896; border-radius: .55rem; background: white; color: #1f2827; text-decoration: none; font-family: Roboto, Arial, sans-serif; font-weight: 500; box-shadow: 0 2px 0 #153c3c12; }
.google-button:hover { background: #f7faf9; border-color: var(--green); }
.artwork, .banner-art { overflow: hidden; background: #548e80; }
.artwork img, .banner-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artwork { position: relative; }
.artwork img { position: absolute; inset: 0; }
.guide { padding-top: clamp(2rem, 4vw, 3.75rem); scroll-margin-top: 1.5rem; }
.guide h2, .panel h2, .activity h2 { font-family: var(--serif); font-size: clamp(1.75rem,3vw,2.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.044em; margin: 0; }
.guide-items { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1.3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.guide-item { display: flex; align-items: flex-start; gap: 1rem; }
.icon-tile { display: grid; place-items: center; flex: 0 0 3.05rem; height: 3.05rem; border-radius: .78rem; }
.icon-tile .icon { width: 1.7rem; height: 1.7rem; }
.award-tile { background: #f7e8b5; color: #775819; }
.point-tile { background: #d8eee4; color: #136958; }
.guide-item h3 { font-size: 1.12rem; font-weight: 680; margin: -.12rem 0 .2rem; }
.guide-item p { margin: 0; color: var(--muted); max-width: 28rem; }
footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.8rem; display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; }
.footer-ornament { color: #937021; }
.account { position: relative; max-width: 70%; }
.account summary, .roster summary { display: flex; align-items: center; gap: .65rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
.account summary { min-height: 44px; font-size: .95rem; font-weight: 600; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; flex: 0 0 2.15rem; height: 2.15rem; place-items: center; border-radius: 50%; background: #ddede6; color: #165c56; font-size: .8rem; font-weight: 720; }
.chevron { width: 1rem; height: 1rem; }
details[open] > summary .chevron { transform: rotate(180deg); }
.account-menu { position: absolute; z-index: 2; right: 0; top: calc(100% + .35rem); min-width: 10.5rem; padding: .45rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; box-shadow: 0 8px 25px #153c3c16; }
.account-menu button { border: 0; border-radius: .25rem; background: transparent; text-align: left; width: 100%; min-height: 44px; padding: .5rem .8rem; }
.account-menu button:hover { background: #eff6f1; }
.account-menu p { margin: .3rem; font-size: .9rem; color: #80352f; }
.event-banner { display: flex; align-items: stretch; justify-content: space-between; min-height: 9.5rem; border-radius: .9rem; border: 1px solid #c9d8c9; overflow: hidden; background: var(--cream); }
.banner-copy { align-self: center; padding: 1.7rem 2.15rem; }
.banner-copy .display { margin: .6rem 0 0; font-size: clamp(2.4rem, 4.5vw, 4.35rem); line-height: .98; }
.banner-art { position: relative; flex: 0 0 27%; }
.banner-art img { position: absolute; inset: 0; object-position: 50% 49%; }
.workspace { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(0,.9fr); gap: 1.6rem; margin-top: 1.8rem; align-items: start; }
.forms, .activity, .roster { background: white; border: 1px solid var(--line); border-radius: .85rem; }
.switcher { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); padding-inline: clamp(.75rem, 2.2vw, 1.8rem); }
.switcher button { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.5rem; border: 0; background: none; color: var(--muted); font-weight: 650; padding: .8rem 1rem; }
.switcher button[aria-selected=true] { color: var(--green); }
.switcher button[aria-selected=true]::after { position: absolute; left: .5rem; right: .5rem; bottom: -1px; height: 3px; content: ""; background: var(--green); }
.switcher button:hover { background: #f5f9f6; }
.panel, .activity { padding: clamp(1.35rem, 3vw, 2.15rem); }
.panel h2 { font-size: clamp(1.85rem,3.1vw,2.65rem); }
.intro { margin: .65rem 0 1.55rem; color: var(--muted); }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; margin-bottom: 1.15rem; }
label { font-size: .95rem; font-weight: 650; }
select, textarea, input[type=search] { border: 1px solid #96aaa2; border-radius: .45rem; background-color: white; color: var(--ink); width: 100%; min-height: 3rem; padding: .6rem .8rem; line-height: 1.45; }
select { appearance: none; padding-right: 2.5rem; background-image: url("/media/chevron.svg"); background-position: right .85rem center; background-size: 1rem; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 6rem; }
::placeholder, select:required:invalid { color: #5b6d69; opacity: 1; }
.hint { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.award-description { margin: 0; }
.primary { min-height: 2.95rem; border-radius: .5rem; padding: .65rem 1.2rem; border: 1px solid transparent; background: var(--green); color: #fff; font-weight: 650; }
.primary:hover { background: #045047; }
:disabled, fieldset:disabled button { cursor: default; opacity: .7; }
.notice { background: #fff2d8; color: #654715; border-inline-start: 3px solid #ad7d26; border-radius: .2rem; padding: .65rem .8rem; font-size: .95rem; margin: 1rem 0 0; overflow-wrap: anywhere; }
.notice[data-kind=success] { background: #e5f5ec; color: #155444; border-color: #4b9270; }
.notice[data-kind=error] { background: #fff0eb; color: #80352f; border-color: #b86753; }
.side { display: grid; gap: 1rem; }
.activity { background: #eef5ef; }
.activity h2 { font-size: 1.7rem; }
.activity dl { margin: .85rem 0 0; }
.activity dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid #cbdcd0; padding: .7rem 0; }
.activity dl div:last-child { padding-bottom: 0; }
.activity dd { margin: 0; color: var(--green); font-size: 1.55rem; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.roster summary { padding: 1rem 1.2rem; min-height: 3.5rem; font-weight: 640; }
.roster-size { margin-left: auto; font-weight: 500; color: var(--muted); }
.roster-body { padding: 0 1.2rem 1rem; }
.roster-body ul { max-height: 15rem; overflow: auto; list-style: none; margin: .5rem 0 0; padding: 0; }
.roster-body li { padding: .45rem .15rem; overflow-wrap: anywhere; }
.roster-body li + li { border-top: 1px solid #e1e9e4; }
@media (max-width: 54rem) {
  .topbar-inner, .page, .footer-inner { width: calc(100% - 3rem); }
  .welcome { min-height: 25rem; grid-template-columns: 1fr .86fr; }
  .welcome-copy { padding: 2rem; }
  .workspace { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
  .roster summary { padding-inline: .85rem; }
}
@media (max-width: 44rem) {
  .topbar-inner, .page, .footer-inner { width: calc(100% - 2rem); }
  .topbar-inner { min-height: 4.2rem; }
  .brand img { width: 4.9rem; }
  .page { padding-block: 1rem 2.25rem; }
  .welcome { display: flex; flex-direction: column; min-height: 0; border-radius: .85rem; }
  .welcome-copy { width: 100%; padding: 1.65rem 1.4rem 1.55rem; }
  .display { margin: .8rem 0; font-size: clamp(3.25rem, 12vw, 4.4rem); }
  .welcome-copy .display br { display: none; }
  .welcome-copy .display em::before { content: " "; }
  .welcome-copy > p:not(.notice) { margin: 1rem 0 1.25rem; font-size: 1rem; }
  .artwork { aspect-ratio: 1.95; max-height: 14rem; background: #548e80; }
  .artwork img { object-position: 50% 49%; }
  .guide-items { grid-template-columns: 1fr; gap: 1.4rem; margin-top: .9rem; padding-top: 1.2rem; }
  .guide-item { gap: .8rem; }
  .footer-inner { flex-wrap: wrap; gap: .5rem; min-height: 3.8rem; font-size: .8rem; }
  .event-banner { min-height: 6.65rem; }
  .banner-copy { padding: 1rem; }
  .banner-copy .eyebrow { font-size: .68rem; }
  .banner-copy .display { font-size: clamp(1.85rem, 7vw, 2.85rem); margin: .43rem 0 0; }
  .banner-art { flex-basis: 23%; }
  .workspace { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
  .forms, .side { width: 100%; }
  .switcher { padding: 0 .3rem; gap: 0; }
  .switcher button { flex: 1; padding: .65rem .25rem; }
  .panel, .activity { padding: 1.25rem; }
  .intro { margin: .6rem 0 1.2rem; }
  .panel .primary { width: 100%; }
  .activity dl { display: flex; gap: 1.4rem; }
  .activity dl div { flex: 1; display: flex; flex-direction: column-reverse; gap: .2rem; padding: .7rem 0 0; font-size: .9rem; }
}
@media (max-width: 24rem) {
  .topbar-inner, .page, .footer-inner { width: calc(100% - 1.4rem); }
  .welcome-copy { padding: 1.35rem 1.05rem; }
  .banner-art { flex-basis: 19%; }
  .panel, .activity { padding: 1rem; }
  .switcher button { gap: .3rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
