:root {
  color-scheme: light;
  --ink: #153c3c;
  --muted: #526667;
  --green: #00685b;
  --line: #cddbd4;
  --paper: #f8faf6;
  --cream: #f4f4e7;
}
* { 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 system-ui, sans-serif; }
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), #point-message[data-kind=success] { 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 { line-height: 1.1; }
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 24rem; 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: block; color: var(--green); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.display { margin: 1.1rem 0 1.2rem; font-family: Georgia, serif; font-weight: 400; font-size: clamp(3rem, 5.3vw, 5rem); letter-spacing: -.045em; line-height: 1.02; }
.title-accent { color: var(--green); }
.welcome .title-accent { display: block; }
.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-weight: 600; box-shadow: 0 2px 0 #153c3c12; }
.google-button:hover { background: #f7faf9; border-color: var(--green); }
.portrait { justify-self: center; width: min(calc(100% - 3rem), 357px); }
.portrait img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.guide { padding-top: clamp(2rem, 4vw, 3.75rem); scroll-margin-top: 1.5rem; }
.guide h2, .panel h2, .activity h2 { font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; 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: 600; 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; }
.account { position: relative; max-width: 70%; }
.account 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: 700; }
.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; }
.page:has(#member:not([hidden])) { padding-block: 1rem 2rem; }
.topbar-inner:has(#account:not([hidden])) { min-height: 3.6rem; }
.topbar-inner:has(#account:not([hidden])) .brand img { width: 4.75rem; }
.event-banner { display: flex; align-items: stretch; justify-content: space-between; min-height: 5.2rem; border-radius: .7rem; border: 1px solid #c9d8c9; overflow: hidden; background: var(--cream); }
.banner-copy { align-self: center; padding: .65rem 1.2rem; }
.banner-copy .display { margin: .16rem 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.banner-art { position: relative; flex: 0 0 min(24%, 8.3rem); overflow: hidden; }
.banner-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; }
.workspace { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 1rem; margin-top: .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: 2.85rem; border: 0; background: none; color: var(--muted); font-weight: 600; padding: .45rem 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; }
:is(.panel, .roster, .activity) { padding: clamp(1rem, 2vw, 1.4rem); }
.panel h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
#nomination-form { margin-top: .85rem; }
.nomination-deadline { color: var(--muted); font-size: .94rem; margin: .3rem 0; }
.nomination-guide { border-block-end: 1px solid var(--line); }
.nomination-guide summary { display: list-item; padding: .5rem 0; min-height: 44px; font-weight: 600; color: var(--green); }
.nomination-guide summary::-webkit-details-marker { display: inline; }
.nomination-guide p, .nomination-guide dd { font-size: .96rem; margin: .5rem 0 .8rem; }
.nomination-guide dt { font-weight: 650; }
.nomination-guide dl { margin: .9rem 0; }
fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: .22rem; margin-bottom: .75rem; }
label { font-size: .95rem; font-weight: 600; }
select, textarea, input[type=search] { border: 1px solid #96aaa2; border-radius: .45rem; background-color: white; color: var(--ink); width: 100%; min-height: 2.75rem; padding: .5rem .72rem; 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: 4.5rem; }
::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: 600; }
.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: .75rem; }
.activity { background: #eef5ef; }
.activity h2 { font-size: 1.15rem; }
.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: 600; font-variant-numeric: tabular-nums; }
#roster-side:not(:has(#staff-roster)) { display: none; }
.roster-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.roster-heading h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.roster-size { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.roster-hint { margin: .3rem 0 .7rem; color: var(--muted); font-size: .93rem; line-height: 1.4; }
#roster-engagement .roster { padding: 0; border: 0; }
#roster-list { list-style: none; margin: .45rem 0 0; padding: 0; }
#roster-side #roster-list { max-height: 24rem; overflow-y: auto; }
#roster-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .65rem; min-height: 3rem; padding: .1rem 0; line-height: 1.3; }
#roster-list li + li { border-top: 1px solid #e1e9e4; }
#roster-list li > span:first-child { overflow-wrap: anywhere; }
.roster-point { min-height: 44px; padding: .35rem .72rem; border: 1px solid #b9d4c8; border-radius: .45rem; background: #f0f7f2; color: var(--green); font-size: .9rem; line-height: 1.2; font-weight: 600; }
.roster-point:hover { border-color: var(--green); background: #e2f2e8; }
.roster-point[aria-disabled=true] { cursor: progress; color: var(--muted); }
.roster-point[data-status=success] { background: #d9eee3; border-color: #8eb7a2; }
.roster-point:focus-visible { outline-offset: -3px; }
.roster-self { padding-inline: .72rem; color: var(--muted); font-size: .9rem; }
#point-message { margin: .5rem 0 0; }
#point-message[data-kind=success] { margin: -1px; padding: 0; border: 0; }
@media (max-width: 54rem) {
  .topbar-inner, .page, .footer-inner { width: calc(100% - 3rem); }
  .welcome { min-height: 0; grid-template-columns: 1fr .9fr; }
  .welcome-copy { padding: 2rem; }
  .workspace { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@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(2.6rem, 10vw, 3.5rem); }
  .welcome-copy > p:not(.notice) { margin: 1rem 0 1.25rem; font-size: 1rem; }
  .portrait { align-self: flex-start; width: min(calc(100% - 2.8rem), 357px); margin: 0 1.4rem 1.55rem; }
  .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; }
  .page:has(#member:not([hidden])) { padding-block: .55rem 1.25rem; }
  .topbar-inner:has(#account:not([hidden])) { min-height: 3rem; }
  .topbar-inner:has(#account:not([hidden])) .brand img { width: 4.15rem; }
  .event-banner { min-height: 4rem; }
  .banner-copy { padding: .45rem .75rem; }
  .banner-copy .eyebrow { font-size: .8rem; }
  .banner-copy .display { font-size: clamp(1.4rem, 5.4vw, 2rem); margin: .1rem 0 0; }
  .banner-art { flex-basis: 5.5rem; }
  .workspace { display: flex; flex-direction: column; gap: .65rem; margin-top: .6rem; }
  .forms, .side { width: 100%; }
  .switcher { padding: 0 .3rem; gap: 0; }
  .switcher button { flex: 1; padding: .4rem .25rem; }
  :is(.panel, .roster, .activity) { padding: .9rem; }
  .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; }
  .portrait { width: calc(100% - 2.1rem); margin: 0 1.05rem 1.35rem; }
  .banner-art { flex-basis: 4.4rem; }
  .switcher button { gap: .3rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page:has(#organiser:not([hidden])) { padding-block: 1rem 2rem; }
.organiser-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.organiser-header h1 { margin: .15rem 0 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.035em; }
.organiser-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; align-items: start; }
.organiser-card { min-width: 0; padding: clamp(1rem,2vw,1.4rem); border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.organiser-card h2, .result-section h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; }
.organiser-card p:not(.notice) { margin: .45rem 0 .75rem; }
.awards-card { grid-column: 1 / -1; }
.secondary { min-height: 44px; padding: .5rem .85rem; color: var(--green); background: #fff; border: 1px solid #9bb4aa; border-radius: .45rem; font-weight: 600; }
.secondary:hover { background: #f0f7f2; border-color: var(--green); }
#winner-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap: .25rem 1rem; margin-bottom: .25rem; }
#winner-fields .field { justify-content: end; min-width: 0; }
#winner-fields label { overflow-wrap: anywhere; }
.result-section { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.result-section .hint { margin: .25rem 0 .6rem; }
.winner-list { margin: 0; }
.published-award { padding: .6rem 0; overflow-wrap: anywhere; }
.published-award + .published-award, .point-totals tbody tr { border-top: 1px solid #e2e9e4; }
.published-award h4 { margin: 0; font-size: 1rem; }
.published-award p { margin: .15rem 0; color: var(--green); font-weight: 600; }
.published-award summary { display: list-item; width: fit-content; min-height: 44px; padding-block: .55rem; color: var(--green); text-decoration: underline; text-underline-offset: .14em; font-size: .93rem; }
.published-award summary::-webkit-details-marker { display: inline; }
.winner-list .point-totals { max-width: 30rem; }
.point-totals caption { text-align: left; }
.point-totals { width: 100%; border-collapse: collapse; table-layout: fixed; }
.point-totals td, .point-totals th { padding: .45rem .15rem; text-align: left; overflow-wrap: anywhere; }
.point-totals thead th { color: var(--muted); font-size: .87rem; }
.point-totals tbody th { font-weight: 400; }
.point-totals th:last-child, .point-totals td:last-child { width: 27%; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 54rem) {
  .switcher:has(#tab-results:not([hidden])) { padding-inline: .25rem; }
  .switcher:has(#tab-results:not([hidden])) button { flex: 1; padding-inline: .25rem; }
  .switcher:has(#tab-results:not([hidden])) .icon { display: none; }
}
@media (max-width: 44rem) {
  .organiser-grid { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .organiser-header { gap: .5rem; }
  .organiser-card { padding: .9rem; }
  .page:has(#organiser:not([hidden])) { padding-block: .7rem 1.25rem; }
}

.page:has(#nomination-review:not([hidden])) { padding-block: 1rem 2rem; }
#nomination-review, .reset-card { max-width: 54rem; }
.reset-card { grid-column: 1 / -1; max-width: none; }
#organise-reset-open { color: #833c31; }
#reset-dialog { width: min(27rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; background: white; color: var(--ink); }
#reset-dialog::backdrop { background: #102b2ad1; }
#reset-dialog h2 { font-size: 1.3rem; }
#reset-dialog fieldset { margin-block: .85rem; }
#reset-dialog legend { font-weight: 600; margin-bottom: .2rem; }
.reset-choice { display: flex; gap: .65rem; align-items: center; min-height: 44px; cursor: pointer; }
.reset-choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--green); }
.reset-actions, .review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.reset-actions { border-top: 1px solid var(--line); padding-top: .85rem; }
.reset-confirm { background: #8b392f; color: white; border: 1px solid transparent; border-radius: .45rem; min-height: 44px; padding: .5rem .9rem; font-weight: 600; }
.reset-confirm:disabled { color: var(--muted); background: #e9eeeb; }
.review-toolbar p { margin: 0; font-weight: 600; }
#review-status:empty, #review-list:empty { display: none; }
#review-status { color: var(--muted); }
#review-status[data-kind=error] { color: #80352f; }
#review-list { list-style: none; margin: .65rem 0 0; padding: 0; }
#review-list li { padding: .8rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#review-list h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
#review-list .review-meta { display: flex; gap: .25rem .7rem; flex-wrap: wrap; align-items: baseline; margin: .15rem 0 .35rem; }
.review-meta strong { font-size: .9rem; color: var(--green); }
.review-meta time { font-size: .85rem; color: var(--muted); }
#review-list .review-reason { margin: 0; white-space: pre-wrap; }
#review-more { margin-top: .4rem; }
@media (max-width: 44rem) {
  .page:has(#nomination-review:not([hidden])) { padding-block: .7rem 1.25rem; }
  #nomination-review .organiser-header { flex-wrap: wrap; }
}
