:root {
    color-scheme: light;
    --pine: #06392c;
    --forest: #082c22;
    --green: #176549;
    --red: #a62e34;
    --gold: #f3cc80;
    --ink: #17392e;
    --muted: #51655c;
    --paper: #f8f7f2;
    --line: #e0e5db;
    --serif: Georgia, 'Times New Roman', serif;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #b37d32; outline-offset: 4px; }
.wrap { width: min(1192px, calc(100% - 96px)); margin-inline: auto; }

.top { background: #fff; }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: 25px; }
.brand { flex: none; }
.brand img { width: 72px; height: 52px; object-fit: contain; object-position: left center; }
.top-caption { border-left: 1px solid var(--line); padding-left: 23px; color: #4f635a; font-size: .9rem; }
.company-link { margin-left: auto; color: var(--pine); text-decoration: none; font-size: .9rem; font-weight: 650; }
.company-link:hover { text-decoration: underline; }

.hero, .thanks {
    color: white;
    background-color: var(--forest);
    background-image: linear-gradient(90deg, rgba(4, 33, 24, .98), rgba(4, 33, 24, .76) 30%, rgba(4, 33, 24, 0) 73%), url('holiday.webp');
    background-position: center, right 52%;
    background-repeat: no-repeat;
    background-size: cover, max(900px, 83vw) auto;
}
.hero-inner { min-height: 505px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 66px 74px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { font-size: 1.05rem; }
.hero-label { color: var(--gold); }
.label-year { border-left: 1px solid #cfaa65; padding-left: 11px; }
.hero h1, .thanks h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; line-height: .96; }
.hero h1 { margin-top: 24px; font-size: clamp(4rem, 7vw, 6.65rem); }
.hero h1 em, .thanks h1 em { color: var(--gold); font-weight: 400; }
.hero-description { margin-top: 25px; color: #e7eee7; line-height: 1.55; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 22px;
    border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.hero-button { margin-top: 29px; background: var(--red); color: #fff; }
.hero-button:hover { background: #bd373e; }
.button-primary { background: var(--pine); color: #fff; }
.button-primary:hover { background: var(--green); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--pine); }
.button-secondary:hover { background: #eef4ec; }
.button-danger { background: #a1242e; color: #fff; }
.button-danger:hover { background: #871b24; }
.button-danger-outline { border-color: #d6a0a3; color: #941d27; background: #fff; }
.button-danger-outline:hover { background: #f9e9e8; }
.button:disabled { opacity: .52; cursor: default; }

.voting { padding-block: 60px 76px; scroll-margin-top: 20px; }
.section-heading { text-align: center; margin-bottom: 26px; }
.section-heading .eyebrow { justify-content: center; }
.section-heading .eyebrow::before, .section-heading .eyebrow::after {
    content: '';
    width: clamp(18px, 5vw, 62px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #ae8549);
}
.section-heading .eyebrow::after { transform: scaleX(-1); }
.section-label { color: #276447; }
.section-label > span:first-child { color: var(--red); }
.section-heading h2, .admin h1, .admin-login h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.section-heading h2 { margin-top: 6px; font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1.1; }
.section-heading > p:last-child { color: var(--muted); margin-top: 9px; line-height: 1.5; }
.notice { padding: 14px 18px; border-radius: 9px; margin-bottom: 23px; color: #314f40; background: #edf2e9; border: 1px solid #dce6d8; line-height: 1.5; }
.notice-error { color: #842027; background: #f9e9e8; border-color: #f1d7d5; }
.voting > .notice { max-width: 790px; margin-inline: auto; text-align: center; font-size: .93rem; }
html:has(.ballot) { scroll-padding-bottom: 92px; }
.ballot { display: grid; gap: 17px; max-width: 1050px; margin-inline: auto; }
.progress-panel, .nomination, .submit-panel, .admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.progress-panel {
    position: sticky;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 2;
    justify-self: end;
    width: min(100%, 270px);
    padding: 12px 16px;
    border-color: #b8cdbd;
    box-shadow: 0 5px 20px #123d2929;
}
.progress-heading { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.progress-heading output { color: var(--green); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 7px; display: block; border: 0; border-radius: 50px; background: #e4ebe1; overflow: hidden; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #e4ebe1; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.ballot-content { display: grid; gap: 22px; }
.nomination { padding: 22px; scroll-margin-top: 22px; }
.nomination-heading, .submit-panel {
    background-color: var(--pine);
    background-image: linear-gradient(90deg, #06392c 29%, #06392cfa 63%, #052d22c9 84%, #052d222e), url('holiday.webp');
    background-position: center, right 83%;
    background-repeat: no-repeat;
    background-size: cover, min(74%, 440px) auto;
    color: #fff;
}
.nomination-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; padding: 16px 18px; border-radius: 10px; }
.nomination-heading h3 { color: #fff; font-family: var(--serif); letter-spacing: -.02em; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.15; }
.nomination-heading div > span { display: block; font-size: .875rem; margin-top: 4px; color: #d5e5da; }
.nomination-mark { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; background: #fff1c619; color: var(--gold); font-size: 1.2rem; border: 1px solid #f3cc8060; border-radius: 9px; }
.nominees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.nominee { min-width: 0; position: relative; background: #fdfdfb; border: 1px solid #dce5db; border-radius: 10px; padding: 14px; transition: background-color .15s ease, border-color .15s ease; }
.nominee:has(input:checked) { background: #eff6ee; border-color: #28815e; box-shadow: inset 0 0 0 1px #28815e; }
.nominee:has(input:focus-visible) { outline: 3px solid #b37d32; outline-offset: 2px; }
.nominee-choice { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: start; gap: 16px; position: relative; cursor: pointer; min-height: 100%; }
.nominee-choice > input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; cursor: pointer; }
.radio-mark { position: absolute; z-index: 1; right: 1px; top: 2px; width: 21px; height: 21px; border: 1.5px solid #81968a; border-radius: 50%; pointer-events: none; display: grid; place-items: center; background: #fff; }
.nominee-choice input:checked + .radio-mark { border-color: var(--green); }
.nominee-choice input:checked + .radio-mark::before { content: ''; border-radius: 50%; width: 9px; height: 9px; background: var(--green); }
.portrait {display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #deebe0; color: #205242; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.nominee .portrait {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    border: 1px solid #88a993;
    background: #e7eee4;
    font-size: 2.15rem;
}
.nominee .portrait img { min-height: 0; object-position: center 30%; }
.nominee-details { display: block; min-width: 0; }
.nominee-identity { display: grid; gap: 4px; overflow-wrap: anywhere; }
.nominee-identity strong { padding-right: 27px; font-size: 1.1rem; line-height: 1.2; }
.nominee-identity > span { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.nominee-description { display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e5ebe2; color: #3f554a; font-size: .94rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.submit-panel { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 22px; }
.submit-panel h3 { font-family: var(--serif); font-size: 1.35rem; }
.submit-panel p { color: #d5e5da; margin-top: 5px; line-height: 1.4; }
.submit-panel .button-primary { background: var(--red); }
.submit-panel .button-primary:hover:not(:disabled) { background: #bd373e; }
.site-footer { background: #eaf0e8; color: #345549; font-size: .875rem; }
.ballot-page + .site-footer { background: var(--forest); border-top: 2px solid #ba9659; color: #e0ece4; }
.ballot-page + .site-footer .footer-inner > span:last-child { color: var(--gold); }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.thanks { display: grid; align-items: center; min-height: 630px; padding-block: 70px; }
.thanks-card { text-align: center; max-width: 720px; margin-inline: auto; padding: 52px 35px; background: #072e23eb; border-radius: 17px; border: 1px solid #edc5825e; }
.thanks-mark { width: 53px; height: 53px; margin: 0 auto 20px; border-radius: 50%; background: var(--gold); color: var(--forest); display: grid; place-items: center; font-size: 1.4rem; }
.thanks .eyebrow { justify-content: center; }
.thanks h1 { margin-block: 16px 20px; font-size: clamp(3rem, 6vw, 5.6rem); }
.thanks-card p:not(.eyebrow) { max-width: 450px; margin-inline: auto; font-size: 1.08rem; line-height: 1.6; color: #e7eee7; }

.admin { max-width: 960px; padding-block: 55px; }
.admin h1, .admin-login h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-top: 8px; }
.admin h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 13px; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.admin-title, .admin-card { margin-bottom: 20px; }
.admin-card { padding: 24px; }
.admin-results { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.admin-results-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.admin-reset { max-width: 680px; margin-inline: auto; }
.admin-reset h1 { margin: 0 0 19px; }
.admin-reset .notice p + p { margin-top: 9px; }
.admin-reset-export { margin-bottom: 18px; }
.admin-reset .admin-form label { display: block; }
.admin-login { display: grid; place-items: center; padding: 50px 0; }
.admin-login .admin-card { width: min(100%, 445px); }
.admin-login h1 { margin-bottom: 22px; }
.admin-form { display: grid; gap: 13px; }
.admin-form label { display: grid; gap: 6px; font-weight: 650; }
.admin-form input:not([type=checkbox]), .admin-form textarea {
    background: #fcfcf8; border: 1px solid #afc0b5; border-radius: 7px; color: inherit; padding: 10px 12px; min-height: 47px; min-width: 0;
}
.admin-form button { justify-self: start; }
.admin-editor-actions {
    display: flex;
    justify-content: flex-end;
}
.admin-nomination details { border-top: 1px solid var(--line); }
.admin-nomination summary { cursor: pointer; padding-block: 13px; }
.admin-nomination summary > span:first-child { margin-left: 5px; font-weight: 650; }
.vote-count { float: right; color: var(--green); }
.edit-form { padding: 9px 0 18px; }
.edit-photo { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.edit-form .check-label { display: flex; align-items: center; }
.edit-photo input { width: min(100%, 400px); }

@media (max-width: 1050px) {
    .wrap { width: calc(100% - 64px); }
    .nomination { padding: 17px; }
    .nominee { padding: 11px; }
    .portrait { width: 43px; height: 43px; flex-basis: 43px; }
}
@media (max-width: 840px) {
    .nominees { grid-template-columns: 1fr; }
    .nominee-choice { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
    .hero { background-position: center, right center; }
}
@media (max-width: 570px) {
    .wrap { width: calc(100% - 34px); }
    .top-inner { min-height: 63px; }
    .top-caption { display: none; }
    .brand img { width: 62px; height: 45px; }
    .hero { background-image: linear-gradient(90deg, #042118f0, #042118a3 70%, #04211863), url('holiday.webp'); background-size: cover, auto 100%; background-position: center, 79% center; }
    .hero-inner { min-height: 437px; padding-block: 43px 48px; }
    .hero h1 { font-size: clamp(3.2rem, 13vw, 4.5rem); }
    .desktop-break { display: none; }
    .hero-description { max-width: 320px; }
    .voting { padding-block: 43px 50px; }
    .nomination-heading, .submit-panel {
        background-image: linear-gradient(90deg, #06392c 30%, #06392cf5 73%, #052d22a8), url('holiday.webp');
    }
    .nomination-heading { padding: 13px 12px; gap: 10px; }
    .nomination-mark { width: 34px; height: 34px; flex-basis: 34px; }
    .nominee-choice { grid-template-columns: 1fr; gap: 12px; }
    .nominee .portrait { max-width: 290px; }
    .radio-mark { top: 8px; right: 8px; }
    .nominee-identity strong { padding-right: 0; }
    .progress-panel { width: min(100%, 225px); }
    .submit-panel { display: grid; }
    .footer-inner { min-height: 63px; }
    .admin-title { align-items: start; }
    .admin-title .button { padding-inline: 12px; }
    .admin-card { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
