/* Tabletop Advent — mobile-first, warm advent palette */

@font-face {
    font-family: 'Mountains of Christmas';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/mountains-of-christmas-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Mountains of Christmas';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/mountains-of-christmas-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 700;
    font-display: block;
    src: url('../fonts/nunito-latin.woff2') format('woff2');
}

:root {
    --font-display: 'Mountains of Christmas', Georgia, serif;
    --font-text: 'Nunito', system-ui, sans-serif;
    --green-deep: #1d3a2a;
    --green-mid: #2c5540;
    --red-warm: #a63a2e;
    --gold: #d9a441;
    --cream: #faf6ee;
    --ink: #2b2620;
    --card: #ffffff;
    --shadow: 0 3px 8px rgba(43, 38, 32, 0.1), 0 12px 24px rgba(43, 38, 32, 0.04);
    --navigation-height: 4.5rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-bottom: calc(var(--navigation-height) + 1rem + env(safe-area-inset-bottom, 0px));
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    padding-bottom: calc(var(--navigation-height) + env(safe-area-inset-bottom, 0px));
    font-family: var(--font-text);
    background: #142c23;
    background-image: radial-gradient(ellipse at 50% 13rem, #52674780, transparent 35rem),
        radial-gradient(ellipse at 50% 65rem, #b3873c18, transparent 40rem),
        repeating-linear-gradient(90deg, transparent 0 3px, #69917b06 3px 4px);
    color: var(--cream);
    line-height: 1.6;
}

.site-name,
.hero h1,
.calendar h2,
.teaser h3,
.day-number,
.tagline {
    font-family: var(--font-display);
}

.emblem-study > h1,
.emblem-grid h2 {
    font-family: var(--font-display);
    color: #f5d58a;
}

.emblem-study {
    padding-top: 1rem;
}

.emblem-study > h1 {
    font-size: 2.25rem;
    margin-bottom: 0;
}

.emblem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.emblem-grid figure {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #d9a44166;
    border-radius: 0.75rem;
    background: #142c2380;
    text-align: center;
}

.emblem-sketch {
    display: block;
    width: 100%;
    max-width: 14rem;
    height: auto;
    margin: 0 auto;
}

.emblem-grid h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0.5rem 0;
}

.emblem-grid p {
    font-size: 0.85rem;
    margin: 0;
}

.study-motion {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    cursor: pointer;
}

.study-motion input {
    position: absolute;
    width: 2.5rem;
    height: 1.5rem;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.motion-toggle {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.5rem;
    border: 1px solid #faf6ee99;
    border-radius: 1rem;
    background: var(--green-deep);
    pointer-events: none;
}

.motion-toggle::before {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--cream);
    transition: transform 160ms ease;
}

.study-motion input:checked + .motion-toggle {
    background: var(--gold);
    border-color: var(--gold);
}

.study-motion input:checked + .motion-toggle::before {
    transform: translateX(1rem);
    background: var(--green-deep);
}

.study-motion input:focus-visible + .motion-toggle {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.emblem-grid figure {
    --motion-phase: 0s;
}

.emblem-grid figure:nth-child(2) { --motion-phase: -1.1s; }
.emblem-grid figure:nth-child(3) { --motion-phase: -2.3s; }
.emblem-grid figure:nth-child(4) { --motion-phase: -3.5s; }
.emblem-grid figure:nth-child(5) { --motion-phase: -4.7s; }
.emblem-grid figure:nth-child(6) { --motion-phase: -5.9s; }
.emblem-grid figure:nth-child(7) { --motion-phase: -6.5s; }

.emblem-combination {
    grid-column: 1 / -1;
}

.lantern-sway {
    transform-box: view-box;
    transform-origin: 85px 46px;
    animation: lantern-sway 7s ease-in-out infinite;
    animation-delay: var(--motion-phase, 0s);
}

.study-glow,
.emblem-glow,
.lantern-glow {
    animation: light-breath 8s ease-in-out infinite;
    animation-delay: var(--motion-phase, 0s);
}

.study-star,
.emblem-star,
.winter-star {
    animation: star-shimmer 9s ease-in-out infinite;
    animation-delay: var(--motion-phase, 0s);
}

.emblem-study:has(#pause-emblem-motion:checked) .lantern-sway,
.emblem-study:has(#pause-emblem-motion:checked) .study-glow,
.emblem-study:has(#pause-emblem-motion:checked) .study-star {
    animation-play-state: paused;
}

body:has(#pause-winter-motion:checked) :is(.snow-layer, .lantern-glow, .lantern-sway, .study-glow, .study-star, .emblem-glow, .emblem-star, .winter-star) {
    animation-play-state: paused;
}

@keyframes lantern-sway {
    0%, 100% { transform: rotate(-1.75deg); }
    50% { transform: rotate(1.75deg); }
}

@keyframes light-breath {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

@keyframes star-shimmer {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../winter-boughs.svg") center top / 100% 42rem repeat-y;
    opacity: 0.5;
}

.wrap {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
}

/* Header */

.site-header {
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    color: var(--cream);
    border-bottom: 1px solid #d9a44166;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 4.5rem;
    padding-block: 0.5rem;
}

.site-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    min-height: 3rem;
    flex-shrink: 0;
}

.nav-icon {
    display: block;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.primary-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    min-height: var(--navigation-height);
    padding: 0.5rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.5rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid #d9a44166;
    background: var(--green-deep);
}

.primary-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    max-width: 10rem;
    min-height: 3.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    color: var(--cream);
    font-size: 0.85rem;
    line-height: 1.25;
    text-decoration: none;
}

.primary-nav a[aria-current=page] {
    color: var(--gold);
    background: #d9a44118;
    font-weight: 700;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.5rem;
    border: 1px solid #d9a44155;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
}

.site-header :is(a, button):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.primary-nav a:hover,
.icon-button:hover,
.menu-item:hover,
.lang-switch a:hover {
    background: #d9a44118;
}

.site-menu {
    inset: calc(4.5rem + env(safe-area-inset-top, 0px)) max(1rem, calc((100vw - 44rem) / 2 + 1rem), env(safe-area-inset-right, 0px)) auto auto;
    width: min(20rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 6rem - env(safe-area-inset-top, 0px));
    margin: 0;
    padding: 0.5rem;
    overflow-y: auto;
    border: 1px solid #d9a44166;
    border-radius: 0.75rem;
    background: var(--green-deep);
    color: var(--cream);
    box-shadow: 0 12px 32px #091b2380;
}

.menu-language {
    padding: 0.5rem 0.75rem 0.75rem;
    border-bottom: 1px solid #d9a44133;
}

.menu-label,
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-label {
    margin-bottom: 0.5rem;
}

.menu-item {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--cream);
    text-decoration: none;
}

.menu-item .motion-toggle {
    margin-left: auto;
}

.site-menu .study-motion {
    display: flex;
    border-bottom: 1px solid #d9a44133;
}

.site-menu .study-motion input {
    right: 0.75rem;
}

.lang-switch {
    display: flex;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.5rem;
    border: 1px solid #d9a44155;
    border-radius: 0.5rem;
    color: var(--cream);
    text-decoration: none;
}

.lang-switch a[aria-current=true] {
    font-weight: bold;
    border-bottom: 2px solid var(--gold);
}

/* Hero */

.hero {
    position: relative;
    text-align: center;
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 0.75rem 1rem;
}

.winter-snow {
    position: fixed;
    inset: -16px 0 0;
    z-index: -1;
    pointer-events: none;
}

.snow-layer {
    --snow-radius: 0.9px;
    --snow-edge: 1.5px;
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle, var(--cream) var(--snow-radius), transparent var(--snow-edge)),
        radial-gradient(circle, var(--cream) var(--snow-radius), transparent var(--snow-edge));
    background-size: 101px 83px, 157px 97px;
    background-position: 10px 0, 37px 28px;
    animation: snow-drift 24s linear infinite;
    animation-delay: -7s;
}

.snow-far {
    --snow-radius: 0.4px;
    --snow-edge: 0.8px;
    opacity: 0.22;
    background-size: 67px 83px, 113px 97px;
    animation-duration: 36s;
    animation-delay: -3s;
}

.snow-near {
    --snow-radius: 1.4px;
    --snow-edge: 2.2px;
    opacity: 0.62;
    background-size: 173px 83px, 251px 97px;
    animation-duration: 18s;
    animation-delay: -13s;
}

.advent-scene {
    display: block;
    width: min(100%, 21rem);
    height: auto;
    margin: 0 auto 0.5rem;
}

.hero h1 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--cream);
    text-shadow: 0 2px 8px #091b2380;
}

.hero .year {
    color: #f5d58a;
}

.tagline {
    font-size: 1.4rem;
    color: var(--cream);
    margin-top: 0.4rem;
    margin-bottom: 0;
}

@keyframes snow-drift {
    from { background-position: 10px 0, 37px 28px; }
    to { background-position: 10px 83px, 37px 125px; }
}

.calendar h2 {
    color: #f5d58a;
    font-size: 1.65rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.25rem;
}

/* Calendar */

.drawing-note {
    color: #e2dfce;
    font-style: italic;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.day-card {
    color: var(--ink);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fffdf8, #f3e9d8);
    border: 1px solid #d8c39e;
    border-top: 3px solid var(--red-warm);
    border-radius: 0.65rem;
    box-shadow: var(--shadow);
    padding: 0.65rem 0.25rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    overflow-wrap: anywhere;
    min-height: 9rem;
    padding-inline: 0.55rem;
}

.day-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold);
}

.calendar :focus-visible {
    outline: 2px solid #f5d58a;
    outline-offset: 3px;
}

.calendar-link,
.archive-picker a {
    color: #f5d58a;
}

.archive-picker {
    margin: 1rem 0;
}

.archive-picker summary,
.game-import summary {
    cursor: pointer;
    min-height: 2.75rem;
    padding-block: 0.6rem;
}

.archive-picker nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive-picker a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    min-height: 3rem;
    border: 1px solid currentColor;
    border-radius: 0.4rem;
}

.archive-picker [aria-current=page] {
    background: var(--gold);
    color: var(--green-deep);
}

.archive-notice {
    padding-left: 0.75rem;
    border-left: 3px solid var(--gold);
}

.day-card:nth-child(3n + 2) {
    border-top-color: var(--green-mid);
}

.day-card:nth-child(3n) {
    border-top-color: var(--gold);
}

.day-card.christmas {
    background: radial-gradient(ellipse at top, #42634c, var(--green-deep));
    border-color: var(--gold);
    color: var(--cream);
}

.day-number {
    font-size: 1.65rem;
    font-weight: bold;
}

.day-weekday {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--green-mid);
}

.day-card.christmas .day-weekday {
    color: var(--gold);
}

.day-game {
    font: 700 1rem/1.35 var(--font-text);
    margin-top: 0.4rem;
}

.day-note,
.day-theme {
    font-size: 0.8rem;
    line-height: 1.4;
}

.day-theme {
    margin-top: auto;
    padding-top: 0.5rem;
}

.game-fields,
.game-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 0.75rem;
}

.game-facts dt {
    color: #f5d58a;
    font-weight: 700;
}

.game-facts dd {
    margin: 0.25rem 0 0;
}

.game-description {
    white-space: pre-line;
}

.day-festive {
    font: 2rem/1.25 var(--font-text);
    margin-top: 0.75rem;
}

.game-visual {
    margin: 1.25rem auto;
    max-width: 27rem;
    min-width: 0;
}

.game-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 18rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgb(255 253 248 / 6%);
}

.game-visual figcaption {
    margin-top: 0.65rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.game-import,
.import-result {
    padding: 0.75rem;
    border: 1px solid #d9a44166;
    border-radius: 0.4rem;
}

.proposal-field {
    min-width: 0;
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid var(--gold);
    border-radius: 0.4rem;
    overflow-wrap: anywhere;
}

.proposal-value {
    white-space: pre-wrap;
}

.member-panel label.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.4rem 0;
}

.checkbox input[type=checkbox] {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/* Teaser */

.teaser {
    color: var(--ink);
    background: linear-gradient(120deg, #fffdf8, #f3e9d8);
    border-left: 4px solid var(--gold);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
}

.teaser h3 {
    margin: 0 0 0.5rem;
    color: var(--green-deep);
    font-size: 1.4rem;
}

.teaser-games {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.teaser-games li {
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 1rem;
    padding: 0.1rem 0.7rem;
    font-size: 0.9rem;
}

.teaser-games li.more {
    border-style: dashed;
    color: var(--green-mid);
}

/* Footer */

.site-footer {
    margin-top: 2.5rem;
    background: transparent;
    border-top: 1px solid #d9a44166;
    color: var(--cream);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.site-footer a {
    display: inline-block;
    padding: 0.5rem;
    color: #f5d58a;
    text-underline-offset: 0.2em;
}

.development-notice {
    font-size: 0.75rem;
    color: #e2dfce;
    border-bottom: 1px dashed #d9a44166;
    padding-bottom: 0.5rem;
}

.member-panel {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #142c23b3;
    border: 1px solid #d9a44166;
    border-radius: 0.75rem;
    overflow-wrap: anywhere;
}

.member-panel h1,
.member-panel h2,
.member-panel h3 {
    font-family: var(--font-display);
    color: #f5d58a;
    line-height: 1.25;
}

.member-panel h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.member-panel a {
    color: #f5d58a;
    text-underline-offset: 0.2em;
}

.member-panel form {
    margin: 1rem 0;
}

.member-panel label {
    display: block;
    margin: 0.8rem 0 0.25rem;
}

.member-panel input:not([type=checkbox]):not([type=hidden]),
.member-panel select,
.member-panel textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid var(--gold);
    border-radius: 0.35rem;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
}

.member-panel textarea {
    resize: vertical;
}

.member-panel button,
.member-panel a.action,
.member-panel summary.action,
.member-panel a.danger {
    min-height: 2.75rem;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 0.4rem;
    background: var(--gold);
    color: var(--green-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.member-panel button.secondary,
.member-panel a.action.secondary {
    background: transparent;
    color: #f5d58a;
}

.member-panel a.action,
.member-panel a.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

button.menu-item {
    border: 0;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

#app-update-menu[hidden] {
    display: none;
}

.member-panel.app-update {
    position: fixed;
    z-index: 20;
    inset-inline: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    bottom: calc(var(--navigation-height) + env(safe-area-inset-bottom, 0px) + 1rem);
    max-width: 32rem;
    margin: 0 auto;
    padding: 1rem;
    background: var(--green-deep);
    box-shadow: var(--shadow);
}

.app-update p {
    margin: 0 0 0.75rem;
}

.member-panel :is(button, a).danger {
    border: 2px solid currentColor;
    background: transparent;
    color: #ffb4ab;
}

.member-panel :is(button, a).danger:hover {
    background: #ffb4ab1a;
}

.member-panel button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.member-panel :focus-visible {
    outline: 2px solid #f5d58a;
    outline-offset: 3px;
}

.member-panel .choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
}

.choice input {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold);
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    border-left: 3px solid #dc8c75;
    padding: 0.5rem;
}

.member-status,
.member-hint {
    padding: 0.75rem;
    border-left: 3px solid var(--gold);
    background: #d9a44112;
}

.wizard-progress {
    color: #f5d58a;
    font-weight: 700;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
}

.wizard-steps li {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d9a44133;
}

.wizard-steps [aria-current=step] {
    border-color: var(--gold);
    font-weight: 700;
}

.totp-qr {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
}

.totp-key {
    display: block;
    margin-top: 0.5rem;
    user-select: all;
}

.recovery-codes {
    padding-left: 1.5rem;
    user-select: all;
}

.member-list {
    list-style: none;
    padding: 0;
}

.member-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #d9a44133;
}

.member-list span,
.member-list strong {
    display: block;
}

.organizer-sections,
.organizer-views {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.organizer-sections a,
.organizer-views a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.6rem 0.4rem;
    border: 1px solid #d9a44155;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 700;
}

.organizer-sections [aria-current=page],
.organizer-views [aria-current=page] {
    background: #d9a44125;
    border-color: var(--gold);
}

.organizer-sections a:hover,
.organizer-views a:hover {
    background: #d9a44118;
}

.organizer-attention {
    padding-left: 1.25rem;
}

.organizer-attention a {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
}

.organizer-invite {
    margin-bottom: 1.5rem;
}

.organizer-invite > summary {
    width: fit-content;
}

.organizer-invite[open] > summary {
    margin-bottom: 1rem;
}

.organizer-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.organizer-filters > div {
    flex: 1 1 14rem;
    min-width: 0;
}

.organizer-people .person-row {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.person-details {
    flex: 1 1 10rem;
    min-width: 0;
}

.person-details > summary {
    min-height: 3rem;
    cursor: pointer;
}

.person-details > summary strong {
    display: inline;
}

.organizer-people .person-status {
    display: table;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #d9a44155;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.person-status[data-status="invitation.pending"] {
    background: #d9a44125;
}

.person-status[data-status="invitation.approvedUnsent"] {
    border-color: #ffb4ab;
    color: #ffb4ab;
}

.person-information p {
    margin: 0.5rem 0;
}

.organizer-people .person-approve,
.row-menu-content form {
    margin: 0;
}

.organizer-people button {
    margin-top: 0;
}

.row-actions {
    margin-inline-start: auto;
}

.row-actions[open] {
    flex-basis: 100%;
}

.row-actions > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-height: 3rem;
    margin-inline-start: auto;
    border: 1px solid #d9a44155;
    border-radius: 0.4rem;
    color: #f5d58a;
    cursor: pointer;
    list-style: none;
}

.row-actions > summary::-webkit-details-marker {
    display: none;
}

.row-menu-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.organizer-confirm {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ffb4ab;
    border-radius: 0.5rem;
}

@media (min-width: 48rem) {
    .organizer-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-toggle::before {
        transition: none;
    }

    .snow-layer,
    .lantern-glow,
    .lantern-sway,
    .study-glow,
    .study-star,
    .emblem-glow,
    .emblem-star,
    .winter-star {
        animation: none;
    }

    .study-motion,
    .site-menu .study-motion {
        display: none;
    }
}

/* Larger screens */

@media (min-width: 40rem) {
    .hero h1 {
        font-size: 3.1rem;
    }

    @media (min-width: 48rem) {
        .member-panel.app-update {
            bottom: 1rem;
        }

        html {
            scroll-padding-bottom: 1rem;
        }

        body {
            padding-bottom: 0;
        }

        .primary-nav {
            position: static;
            margin-left: auto;
            min-height: 0;
            padding: 0;
            border: 0;
            background: transparent;
        }

        .primary-nav a {
            flex: none;
            flex-direction: row;
            gap: 0.5rem;
            min-height: 3rem;
        }
    }

    .day-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}
