:root {
  color-scheme: light;
  --paper: #f5f2ec;
  --ink: #172e35;
  --muted: #4b6267;
  --accent: #216761;
  --gold: #d3b480;
  --line: #dfdfd6;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid #257773; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.top { background: #19333a; color: #fffaf0; }
.top-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 98px; height: auto; }
.top-label { font-size: .875rem; color: #e5e9e3; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 335px; margin-block: 34px 32px; background: #203d44; color: #fffaf0; border-radius: 6px; display: grid; align-items: center; }
.hero-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 82% 50%, #3b726d, transparent 62%), linear-gradient(110deg,#1b353c 20%,#2b4d51); }
.hero-diamonds { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); width: clamp(150px, 19vw, 175px); overflow: hidden; opacity: .48; }
/* The mark occupies the first 256 px of the 640 px source image. */
.hero-diamonds img { display: block; width: 250%; height: auto; }
.hero-copy { max-width: 555px; padding: 45px clamp(26px, 5vw, 66px); }
.eyebrow { color: #806737; font-size: .875rem; font-weight: 650; letter-spacing: .13em; }
.hero .eyebrow { color: #edd4a7; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 1.01; letter-spacing: -.042em; margin-block: 13px 17px; }
.hero-copy > p:last-child { max-width: 370px; color: #eef0e9; }
.survey-grid { display: grid; grid-template-columns: minmax(205px, 255px) minmax(0, 1fr); gap: 24px; align-items: start; }
.guide { position: sticky; top: 20px; }
.guide-inner { padding: 24px; background: #e8eee8; border: 1px solid #d8e1d8; border-radius: 6px; }
.guide h2 { font-size: 1.125rem; line-height: 1.25; margin-bottom: 15px; }
.guide p { font-size: .875rem; }
.guide-note { margin-top: 12px; color: var(--muted); }
progress { display: block; appearance: none; border: none; border-radius: 20px; width: 100%; height: 7px; background: #ccd9d1; margin-top: 9px; overflow: hidden; }
progress::-webkit-progress-bar { background: #ccd9d1; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.survey { display: grid; gap: 16px; }
.panel { padding: 25px 28px; background: #fffefa; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.panel > label, .results label { display: block; margin-bottom: 10px; font-size: 1.125rem; font-weight: 650; }
select, .admin-login input { width: 100%; min-width: 0; height: 50px; border: 1px solid #aebeb8; border-radius: 4px; background: white; color: var(--ink); padding: 0 14px; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #275e59 50%), linear-gradient(135deg,#275e59 50%,transparent 50%); background-position: calc(100% - 21px) 22px, calc(100% - 15px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.questions h2, .thanks h2 { font-size: 1.5rem; font-weight: 650; }
.questions { padding-bottom: 8px; }
.question { position: relative; min-inline-size: 0; padding: 0 0 20px; margin: 20px 0 0; border: 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; }
.question legend { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 10px; padding: 0; width: 100%; font-weight: 600; }
.number { color: #806737; font-size: .875rem; line-height: 1.75; font-variant-numeric: tabular-nums; }
.choices { display: flex; gap: 10px; margin: 10px 0 0 42px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 91px; padding: 7px 13px; border-radius: 4px; border: 1px solid #c5d0c8; background: #fff; }
.choice span::before { content: ""; border: 1px solid #62857c; border-radius: 100%; width: 12px; height: 12px; }
.choice input:checked + span { background: #e2eee8; border-color: #39786c; }
.choice input:checked + span::before { background: var(--accent); box-shadow: inset 0 0 0 2px #e2eee8; }
.choice input:focus-visible + span { outline: 3px solid #257773; outline-offset: 2px; }
.submit { display: grid; justify-items: start; gap: 10px; }
button { cursor: pointer; background: var(--accent); color: white; border: 0; border-radius: 4px; font-weight: 650; min-height: 49px; padding: 0 24px; }
button:hover { background: #184e4a; }
button:disabled { opacity: .65; cursor: wait; }
.status { color: #445e63; }
.status:empty { display: none; }
.thanks p { margin-top: 8px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-block: 18px 30px; margin-top: 40px; font-size: .875rem; }
.results { max-width: 670px; padding-block: 35px 0; }
.results-panel { margin-top: 14px; padding: clamp(20px, 5vw, 42px); }
.results h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.results form { margin-top: 24px; }
.results input { margin-bottom: 14px; }
.results .status { margin-top: 10px; }
.back { color: #1d5e59; text-underline-offset: 3px; }
.admin { padding-top: 40px; }
.admin h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 24px; }
.admin-login { max-width: 470px; }
.admin-login input + label { margin-top: 14px; }
.admin-login button { margin-top: 16px; }
.admin-login .status { margin-top: 12px; }
.admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-toolbar > div:first-child { flex: 1 1 260px; min-width: 0; }
.admin-toolbar label { display: block; font-weight: 650; margin-bottom: 7px; }
.admin-toolbar .status { flex: 1 0 100%; }
.admin-actions, .admin-pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secondary { background: transparent; border: 1px solid #aebeb8; color: var(--ink); }
.secondary:hover { background: #e8eee8; }
.secondary:disabled { cursor: default; }
.admin-section { margin-top: 16px; }
.admin-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-section-heading h2 { font-size: 1.375rem; }
.admin-section-heading p, #admin-empty, .admin-pagination span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .875rem; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table thead th { background: #e8eee8; white-space: nowrap; }
.admin-table tbody th { font-weight: 500; }
.admin-table tbody tr:nth-child(even) { background: #f7f8f2; }
.admin-table td:nth-child(n+3) { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.response-table { min-width: 1130px; }
.response-table td:first-child { white-space: nowrap; }
.response-table td:nth-child(2) { min-width: 190px; }
.admin-pagination { margin-top: 16px; justify-content: end; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { height: 65px; }
  .brand img { width: 78px; }
  .hero { min-height: 285px; margin-block: 20px; }
  .hero-diamonds { right: 4%; width: clamp(104px, 24vw, 145px); opacity: .2; }
  .survey-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .guide { position: static; }
  .guide-inner, .panel { padding: 17px; }
  .guide h2 { margin-bottom: 7px; }
  .guide-note { margin-top: 8px; }
  .question legend { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
  .choices { margin-left: 30px; }
  .submit button { width: 100%; }
  .footer { margin-top: 28px; }
  .admin { padding-top: 26px; }
  .admin-actions button, .admin-pagination button { padding-inline: 14px; }
}
