:root {
    --bg: #f5f6f1;
    --surface: #ffffff;
    --surface-warm: #f7f4ea;
    --ink: #123f1c;
    --ink-soft: #5f6a61;
    --primary: #123f1c;
    --primary-deep: #061f0c;
    --accent: #c98124;
    --accent-soft: #f2ddbd;
    --line: rgba(18, 63, 28, 0.22);
    --shadow: 0 22px 54px rgba(6, 31, 12, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Barlow, system-ui, sans-serif;
}

/* Consultas de horarios y quedadas */
.meeting-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.meeting-main {
    width: min(1320px, calc(100% - 36px));
    min-height: 70vh;
    margin: 0 auto;
    padding: 132px 0 80px;
}

.meeting-hero {
    margin-bottom: 34px;
    border: 1px solid var(--line);
    padding: clamp(28px, 5vw, 54px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 234, 0.95)),
        var(--surface);
    box-shadow: var(--shadow);
}

.meeting-hero-compact {
    max-width: none;
}

.meeting-hero h1 {
    max-width: 980px;
    margin: 0 0 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    text-transform: uppercase;
}

.meeting-hero h1 span {
    color: var(--accent);
}

.meeting-hero > p:not(.eyebrow) {
    max-width: 820px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
}

.meeting-hero .hero-actions {
    margin-top: 24px;
}

.meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.meeting-meta span,
.meeting-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    padding: 5px 10px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.meeting-flash,
.meeting-overlap-warning,
.meeting-final-banner {
    margin-bottom: 20px;
    border: 1px solid rgba(36, 115, 68, 0.35);
    padding: 14px 16px;
    background: #e8f6ed;
    color: #174d2d;
    font-weight: 700;
}

.meeting-flash.error,
.meeting-overlap-warning {
    border-color: rgba(201, 129, 36, 0.5);
    background: #fff4df;
    color: #74470f;
}

.meeting-dashboard,
.meeting-editor,
.meeting-response-form,
.meeting-results-list {
    display: grid;
    min-width: 0;
    gap: 22px;
}

.meeting-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.meeting-section-heading h2 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    text-transform: uppercase;
}

.meeting-poll-list {
    display: grid;
    gap: 14px;
}

.meeting-poll-card,
.meeting-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--line);
    padding: 22px;
    background: var(--surface);
}

.meeting-poll-card h3,
.meeting-result-card h3 {
    margin: 10px 0 5px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    line-height: 1.05;
}

.meeting-poll-card p,
.meeting-poll-card small {
    margin: 0;
    color: var(--ink-soft);
}

.meeting-status.open {
    border-color: rgba(36, 115, 68, 0.35);
    background: #e8f6ed;
    color: #174d2d;
}

.meeting-status.closed {
    background: #efefeb;
}

.meeting-card-actions,
.meeting-sticky-actions,
.meeting-management-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.meeting-empty-state {
    border: 1px dashed var(--line);
    padding: 42px;
    background: var(--surface-warm);
    color: var(--ink-soft);
    text-align: center;
}

.meeting-form-card,
.meeting-private-link {
    border: 1px solid var(--line);
    padding: clamp(20px, 4vw, 32px);
    background: var(--surface);
}

.meeting-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 18px;
}

.meeting-field {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--primary);
    font-weight: 750;
}

.meeting-field-wide {
    grid-column: 1 / -1;
}

.meeting-field input,
.meeting-field select,
.meeting-field textarea,
.meeting-private-link input {
    width: 100%;
    border: 1px solid rgba(18, 63, 28, 0.3);
    border-radius: 2px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
}

.meeting-field input:focus,
.meeting-field select:focus,
.meeting-field textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(201, 129, 36, 0.16);
}

.meeting-check,
.meeting-event-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-weight: 700;
}

.meeting-check input,
.meeting-event-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.meeting-name-card {
    display: grid;
    grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
    align-items: end;
    gap: 22px;
}

.meeting-name-card p {
    margin: 0 0 12px;
    color: var(--ink-soft);
}

.meeting-calendar-shell {
    --meeting-step-height: 40px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(6, 31, 12, 0.08);
}

.meeting-calendar-toolbar {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.meeting-calendar-title {
    display: grid;
    gap: 2px;
}

.meeting-calendar-title > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meeting-calendar-title > strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 23px;
    text-transform: uppercase;
}

.meeting-week-nav {
    display: flex;
    gap: 6px;
}

.meeting-calendar-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.meeting-icon-button,
.meeting-private-link button {
    min-height: 36px;
    border: 1px solid var(--line);
    padding: 7px 12px;
    background: var(--surface-warm);
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.meeting-icon-button:hover,
.meeting-private-link button:hover {
    border-color: var(--primary);
}

.meeting-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.meeting-day-picker {
    display: none;
}

.meeting-calendar-mobile-heading {
    display: none;
}

.meeting-mobile-agenda,
.meeting-mobile-agenda-heading {
    display: none;
}

.meeting-quick-add {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 120px 120px auto;
    align-items: end;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    background: var(--surface-warm);
}

.meeting-quick-add-copy,
.meeting-quick-add-title {
    display: grid;
    align-self: center;
    gap: 3px;
}

.meeting-quick-add-title {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}

.meeting-quick-add-kicker {
    color: var(--accent) !important;
    font-size: 10px !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.meeting-quick-add-copy strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
}

.meeting-quick-add-copy span,
.meeting-slot-summary-heading span,
.meeting-selection-summary span {
    color: var(--ink-soft);
    font-size: 13px;
}

.meeting-quick-add label {
    display: grid;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.meeting-quick-add label > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meeting-quick-add label > span b {
    display: none;
}

.meeting-quick-add input,
.meeting-quick-add select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 8px 10px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
}

.meeting-quick-add-actions {
    display: flex;
    gap: 6px;
}

.meeting-slot-summary,
.meeting-selection-summary,
.meeting-participant-filter,
.meeting-slot-inspector {
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    background: #fff;
}

.meeting-slot-summary-heading,
.meeting-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.meeting-slot-summary-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 2px 0 5px;
    scrollbar-width: thin;
}

.meeting-slot-summary-item {
    display: flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-warm);
}

.meeting-slot-summary-edit,
.meeting-slot-summary-remove,
.meeting-filter-chip,
.meeting-day-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    cursor: pointer;
}

.meeting-slot-summary-edit {
    display: grid;
    gap: 1px;
    min-width: 150px;
    padding: 8px 10px;
    text-align: left;
}

.meeting-slot-summary-edit span {
    color: var(--ink-soft);
    font-size: 11px;
    text-transform: capitalize;
}

.meeting-slot-summary-remove {
    border-left: 1px solid var(--line);
    padding: 8px;
    color: #8a332c;
    font-size: 11px;
    font-weight: 800;
}

.meeting-selection-summary strong {
    color: #176b38;
    font-size: 16px;
}

.meeting-participant-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.meeting-participant-filter > span {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.meeting-filter-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.meeting-filter-chip.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.meeting-slot-inspector {
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr);
    align-items: center;
    gap: 8px 18px;
    background: #eef7f0;
}

.meeting-slot-inspector > span {
    color: #176b38;
    font-weight: 800;
}

.meeting-slot-inspector p {
    margin: 0;
    color: var(--ink-soft);
}

.meeting-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meeting-calendar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.meeting-legend-proposed {
    background: #d7d9d5;
}

.meeting-legend-selected,
.meeting-legend-all {
    background: #247344;
}

.meeting-legend-event {
    background: #3178b5;
}

.meeting-legend-best {
    background: #e6a429;
}

.meeting-calendar-help {
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
    background: var(--surface-warm);
    color: var(--ink-soft);
    font-size: 14px;
}

.meeting-overlap-warning {
    margin: 12px 16px 0;
}

.meeting-calendar-scroll {
    position: relative;
    max-height: min(72vh, 860px);
    overflow: auto;
    overscroll-behavior: contain;
}

.meeting-calendar-grid {
    --meeting-day-height: 960px;
    display: grid;
    grid-template-columns: 68px repeat(7, minmax(132px, 1fr));
    grid-template-rows: 64px var(--meeting-day-height);
    min-width: 1000px;
    background: var(--surface);
}

.meeting-calendar-corner,
.meeting-day-heading {
    position: sticky;
    top: 0;
    z-index: 8;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.meeting-calendar-corner {
    left: 0;
    z-index: 10;
    border-right: 1px solid var(--line);
}

.meeting-day-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
}

.meeting-day-heading strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 20px;
}

.meeting-day-heading.is-today strong {
    background: var(--accent);
    color: #fff;
}

.meeting-time-axis {
    position: sticky;
    left: 0;
    z-index: 7;
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid var(--line);
    background: #fff;
}

.meeting-time-axis span {
    position: absolute;
    right: 9px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-50%);
}

.meeting-time-axis span:first-child {
    transform: none;
}

.meeting-time-axis span:last-child {
    transform: translateY(-100%);
}

.meeting-day-column {
    position: relative;
    grid-row: 2;
    height: var(--meeting-day-height);
    border-right: 1px solid var(--line);
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 39px,
            rgba(18, 63, 28, 0.1) 39px,
            rgba(18, 63, 28, 0.1) 40px,
            transparent 40px,
            transparent 79px,
            rgba(18, 63, 28, 0.2) 79px,
            rgba(18, 63, 28, 0.2) 80px
        );
    touch-action: pan-x pan-y;
}

.meeting-is-dragging,
.meeting-is-dragging * {
    cursor: ns-resize !important;
    user-select: none !important;
}

.meeting-slot,
.meeting-event-block {
    position: absolute;
    overflow: hidden;
    border-radius: 3px;
    padding: 7px 8px;
    white-space: pre-line;
}

.meeting-slot {
    z-index: 3;
    left: 34%;
    right: 3px;
    border: 1px solid #b8beb8;
    background: #e3e5e1;
    color: #28342b;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

button.meeting-slot {
    cursor: pointer;
}

.meeting-slot-participant:hover,
.meeting-slot-participant:focus-visible {
    border-color: var(--primary);
    outline: 2px solid rgba(18, 63, 28, 0.18);
}

.meeting-slot-participant.is-selected {
    border-color: #185c34;
    background: #247344;
    color: #fff;
}

.meeting-slot-results.is-all {
    border-color: #0e5b2d;
    background: var(--meeting-result-background, #176b38);
    color: var(--meeting-result-color, #fff);
}

.meeting-slot-results.is-best {
    border-color: #b36c0f;
    background: var(--meeting-result-background, #e6a429);
    color: var(--meeting-result-color, #3b2609);
    box-shadow: inset 0 0 0 2px #e6a429;
}

.meeting-slot-results.is-medium {
    border-color: #cf8a24;
    background: var(--meeting-result-background, #f6ce82);
    color: var(--meeting-result-color, var(--primary));
}

.meeting-slot-results.is-low {
    border-color: #c57d75;
    background: var(--meeting-result-background, #f4c9c3);
    color: var(--meeting-result-color, var(--primary));
}

.meeting-slot-results.is-person-available {
    border-color: #0e5b2d;
    background: #176b38;
    color: #fff;
}

.meeting-slot-results.is-person-unavailable {
    border-color: #c9cfca;
    background: #eef0ed;
    color: #6e756f;
    opacity: 0.72;
}

.meeting-slot.is-final {
    box-shadow: 0 0 0 3px #061f0c, 0 0 0 5px #fff;
}

.meeting-slot-organizer {
    cursor: grab;
}

.meeting-slot-organizer.is-draft {
    left: 3px;
    right: 3px;
    border-style: dashed;
    border-color: var(--accent);
    background: rgba(242, 221, 189, 0.9);
}

.meeting-slot-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #7e2d26;
    font-size: 18px;
    cursor: pointer;
}

.meeting-resize-handle {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
}

.meeting-resize-handle::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    top: 4px;
    height: 2px;
    background: currentColor;
    opacity: 0.45;
}

.meeting-resize-handle.top {
    top: 0;
}

.meeting-resize-handle.bottom {
    bottom: 0;
}

.meeting-event-block {
    z-index: 2;
    left: 3px;
    right: 69%;
    border: 1px solid #1f5f93;
    background: #3178b5;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.meeting-event-block strong,
.meeting-event-block span {
    display: block;
}

.meeting-event-block span {
    margin-top: 3px;
    opacity: 0.86;
}

.meeting-calendar-empty {
    margin: 0;
    border-top: 1px solid var(--line);
    padding: 14px 16px;
    color: var(--ink-soft);
    text-align: center;
}

.meeting-sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 12;
    border: 1px solid var(--line);
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(6, 31, 12, 0.15);
    backdrop-filter: blur(12px);
}

.meeting-final-banner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.meeting-private-link {
    margin-top: 22px;
}

.meeting-private-link p {
    color: var(--ink-soft);
}

.meeting-private-link > div {
    display: flex;
}

.meeting-private-link input {
    min-width: 0;
}

.meeting-results-list {
    margin-top: 28px;
}

.meeting-result-card {
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) auto;
    border-left: 6px solid #c57d75;
}

.meeting-result-card.medium {
    border-left-color: #e6a429;
}

.meeting-result-card.all {
    border-left-color: #176b38;
}

.meeting-result-card.final {
    outline: 3px solid var(--primary);
}

.meeting-slot-participant.is-maybe,
.meeting-agenda-slot.is-maybe {
    background: #f6ce82 !important;
    border-color: #d88f16 !important;
    color: #3b2609 !important;
}
.meeting-agenda-vote-actions { display: flex; gap: 8px; margin-left: auto; }
.meeting-agenda-vote-actions button { border: 1px solid currentColor; border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.78); color: inherit; font-weight: 800; }
.meeting-agenda-vote-actions button.is-active { background: #fff; box-shadow: 0 0 0 2px currentColor; }
.meeting-slot-vote-state { display: block; margin-top: 3px; font-weight: 900; }

.meeting-legend-maybe {
    background: #f6ce82;
}

.meeting-best-summary {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 22px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #176b38, #268b4b);
    color: #fff;
    display: flex;
    gap: 10px 22px;
    align-items: baseline;
    flex-wrap: wrap;
    box-shadow: 0 14px 30px rgba(23, 107, 56, .2);
}

.meeting-best-summary span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.meeting-best-summary strong { font-size: 1.25rem; }
.meeting-best-summary small { margin-left: auto; font-weight: 700; }
.meeting-results-sort { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; }
.meeting-results-sort select { min-height: 40px; border: 1px solid rgba(39, 25, 16, .2); border-radius: 10px; padding: 0 12px; background: #fff; }
.meeting-answer-card { margin-top: 12px; padding: 18px 20px; border: 1px solid rgba(39,25,16,.12); border-radius: 14px; background: #fff; }
.meeting-answer-card p { margin: 7px 0 0; }
.meeting-quick-capacity-field input,
.meeting-quick-repeat-field input { width: 100%; }
.meeting-deadline { font-weight: 800; color: #9a5b00; }
.meeting-results-privacy-note { width: min(1180px, calc(100% - 40px)); margin: 0 auto 22px; text-align: center; color: var(--muted); }
.meeting-share-qr { margin-top: 18px; }
.meeting-share-qr summary { cursor: pointer; font-weight: 800; }
.meeting-share-qr img { display: block; margin-top: 12px; padding: 10px; background: #fff; border-radius: 12px; }
.meeting-share-qr small { display: block; margin-top: 6px; }

@media (max-width: 640px) {
    .meeting-quick-capacity-field,
    .meeting-quick-repeat-field { grid-column: 1 / -1; }
    .meeting-best-summary { width: min(100% - 24px, 1180px); align-items: flex-start; flex-direction: column; }
    .meeting-best-summary small { margin-left: 0; }
    .meeting-results-sort { width: 100%; }
    .meeting-results-sort select { width: 100%; }
    .meeting-agenda-slot-participant { grid-template-columns: minmax(72px, auto) 1fr; }
    .meeting-agenda-vote-actions { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; }
    .meeting-agenda-vote-actions button { flex: 1; min-height: 42px; }
}

.meeting-result-rank,
.meeting-final-label {
    display: inline-flex;
    border: 1px solid var(--line);
    padding: 5px 8px;
    background: var(--surface-warm);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.meeting-result-summary strong {
    color: var(--accent);
    font-size: 20px;
}

.meeting-result-people p {
    margin: 5px 0;
    color: var(--ink-soft);
    line-height: 1.45;
}

.meeting-management-actions {
    margin-top: 26px;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .meeting-calendar-toolbar {
        grid-template-columns: 1fr auto;
    }

    .meeting-calendar-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .meeting-week-nav,
    .meeting-calendar-options {
        grid-row: 2;
    }

    .meeting-quick-add {
        grid-template-columns: minmax(220px, 1fr) 130px 130px auto;
    }

    .meeting-quick-add-copy {
        grid-column: 1 / -1;
    }

    .meeting-form-grid,
    .meeting-name-card,
    .meeting-result-card {
        grid-template-columns: 1fr;
    }

    .meeting-field-wide {
        grid-column: auto;
    }

    .meeting-result-card {
        align-items: start;
    }
}

@media (max-width: 640px) {
    .meeting-main {
        width: min(100% - 16px, 1320px);
        padding-top: 96px;
        padding-bottom: 54px;
    }

    .meeting-hero {
        margin-bottom: 16px;
        padding: 20px 17px;
    }

    .meeting-hero h1 {
        margin-bottom: 10px;
        font-size: clamp(34px, 11vw, 48px);
    }

    .meeting-hero > p:not(.eyebrow) {
        font-size: 16px;
    }

    .meeting-poll-card {
        grid-template-columns: 1fr;
    }

    .meeting-card-actions,
    .meeting-sticky-actions {
        justify-content: stretch;
    }

    .meeting-card-actions .button,
    .meeting-sticky-actions .button {
        flex: 1 1 160px;
    }

    .meeting-calendar-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .meeting-calendar-title {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    .meeting-calendar-title > strong {
        font-size: 21px;
    }

    .meeting-week-nav {
        grid-column: 1;
        grid-row: 2;
        justify-content: stretch;
    }

    .meeting-week-nav .meeting-icon-button {
        flex: 1;
    }

    .meeting-calendar-options {
        grid-column: 1;
        grid-row: 3;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    [data-toggle-full-day] {
        display: none;
    }

    .meeting-event-toggle {
        font-size: 12px;
    }

    .meeting-day-picker {
        display: none;
        grid-template-columns: repeat(7, minmax(44px, 1fr));
        gap: 5px;
        overflow-x: auto;
        border-bottom: 1px solid var(--line);
        padding: 9px 8px;
        background: var(--surface-warm);
    }

    .meeting-calendar-mobile-heading {
        display: none;
    }

    .meeting-calendar-mobile-heading strong {
        font-family: "Barlow Condensed", sans-serif;
        font-size: 24px;
        text-transform: uppercase;
    }

    .meeting-calendar-mobile-heading span {
        color: var(--ink-soft);
        font-size: 11px;
    }

    .meeting-day-button {
        display: grid;
        min-width: 44px;
        place-items: center;
        gap: 1px;
        border: 1px solid transparent;
        border-radius: 7px;
        padding: 6px 3px;
        color: var(--ink-soft);
    }

    .meeting-day-button span,
    .meeting-day-button small {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .meeting-day-button strong {
        font-size: 18px;
    }

    .meeting-day-button small {
        display: grid;
        min-width: 22px;
        min-height: 18px;
        place-items: center;
        border-radius: 999px;
        background: rgba(18, 63, 28, 0.08);
    }

    .meeting-day-button.is-active {
        border-color: var(--primary);
        background: var(--primary);
        color: #fff;
    }

    .meeting-day-button.is-active small {
        background: rgba(255, 255, 255, 0.18);
    }

    .meeting-calendar-legend {
        gap: 8px 12px;
        padding: 9px 12px;
        font-size: 11px;
    }

    .meeting-calendar-scroll,
    .meeting-calendar-empty {
        display: none !important;
    }

    .meeting-mobile-agenda {
        display: grid;
        gap: 10px;
        padding: 12px;
        background: #fff;
    }

    .meeting-mobile-agenda-heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        border-top: 8px solid var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 13px 12px 9px;
        background: #fff;
    }

    .meeting-mobile-agenda-heading strong {
        font-family: "Barlow Condensed", sans-serif;
        font-size: 23px;
        text-transform: uppercase;
    }

    .meeting-mobile-agenda-heading span {
        color: var(--ink-soft);
        font-size: 11px;
    }

    .meeting-calendar-shell-organizer .meeting-slot-summary {
        display: none;
    }

    .meeting-agenda-day {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface-warm);
    }

    .meeting-agenda-day h3 {
        display: grid;
        align-content: start;
        justify-items: center;
        gap: 2px;
        margin: 0;
        padding: 13px 5px;
        background: var(--primary);
        color: #fff;
        font-family: "Barlow Condensed", sans-serif;
        text-transform: uppercase;
    }

    .meeting-agenda-day h3 span {
        font-size: 12px;
        letter-spacing: 0.06em;
    }

    .meeting-agenda-day h3 strong {
        font-size: 18px;
        white-space: nowrap;
    }

    .meeting-agenda-items {
        display: grid;
        gap: 7px;
        min-width: 0;
        padding: 8px;
    }

    .meeting-agenda-slot,
    .meeting-agenda-event {
        display: grid;
        width: 100%;
        min-width: 0;
        gap: 2px;
        border: 1px solid #bbc2bb;
        border-radius: 6px;
        padding: 11px 12px;
        background: #eef0ed;
        color: var(--primary);
        font: inherit;
        text-align: left;
        text-decoration: none;
    }

    button.meeting-agenda-slot {
        cursor: pointer;
    }

    .meeting-agenda-slot strong,
    .meeting-agenda-event strong {
        font-size: 17px;
        line-height: 1.1;
    }

    .meeting-agenda-slot > span,
    .meeting-agenda-event > span {
        color: var(--ink-soft);
        font-size: 12px;
    }

    .meeting-agenda-slot.is-selected,
    .meeting-agenda-slot.is-all,
    .meeting-agenda-slot.is-person-available {
        border-color: #176b38;
        background: #247344;
        color: #fff;
    }

    .meeting-agenda-slot.is-selected > span,
    .meeting-agenda-slot.is-all > span,
    .meeting-agenda-slot.is-person-available > span {
        color: rgba(255, 255, 255, 0.84);
    }

    .meeting-agenda-slot.is-best {
        border-color: #c98124;
        background: #fff1d8;
        box-shadow: inset 4px 0 0 #c98124;
    }

    .meeting-agenda-slot.is-medium {
        border-color: #e0ae57;
        background: #fff7e8;
    }

    .meeting-agenda-slot.is-low,
    .meeting-agenda-slot.is-person-unavailable {
        border-color: #d6b5b0;
        background: #fff1ef;
    }

    .meeting-agenda-slot.is-final {
        outline: 3px solid var(--primary);
        outline-offset: 1px;
    }

    .meeting-agenda-slot-actions {
        display: flex;
        gap: 6px;
        margin-top: 7px;
    }

    .meeting-agenda-slot-actions button {
        min-height: 34px;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 5px 9px;
        background: #fff;
        color: var(--primary);
        font: inherit;
        font-size: 11px;
        font-weight: 800;
    }

    .meeting-agenda-event {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 3px 10px;
        border-color: #1f5f93;
        background: #e8f3fc;
        color: #174e7c;
    }

    .meeting-agenda-event > span {
        overflow: hidden;
        color: #174e7c;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meeting-agenda-event small {
        grid-column: 1 / -1;
        color: #3178b5;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .meeting-agenda-empty {
        margin: 0;
        border: 1px dashed var(--line);
        border-radius: 7px;
        padding: 24px 14px;
        color: var(--ink-soft);
        text-align: center;
    }

    .meeting-quick-add {
        position: relative;
        grid-template-columns: 1fr 1fr;
        gap: 12px 10px;
        border: 2px solid rgba(201, 129, 36, 0.48);
        border-width: 2px 0;
        padding: 18px 12px 16px;
        background:
            linear-gradient(135deg, rgba(255, 249, 236, 0.98), rgba(247, 244, 234, 0.98));
    }

    .meeting-quick-add-copy,
    .meeting-quick-add-title,
    .meeting-quick-date-field,
    .meeting-quick-add-actions {
        grid-column: 1 / -1;
    }

    .meeting-quick-add-copy,
    .meeting-quick-add-title {
        border-bottom: 1px solid rgba(201, 129, 36, 0.28);
        padding: 0 2px 12px;
    }

    .meeting-quick-add-copy strong,
    .meeting-quick-add-title {
        font-size: 29px;
        line-height: 1;
    }

    .meeting-quick-add-help {
        max-width: 320px;
        font-size: 13px !important;
        line-height: 1.35;
    }

    .meeting-quick-add label {
        gap: 7px;
        border: 1px solid rgba(18, 63, 28, 0.18);
        border-radius: 7px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 5px 15px rgba(6, 31, 12, 0.05);
    }

    .meeting-quick-add label > span {
        min-height: 24px;
        color: var(--primary);
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .meeting-quick-add label > span b {
        display: grid;
        width: 23px;
        height: 23px;
        place-items: center;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 12px;
    }

    .meeting-quick-date-field {
        border-color: rgba(201, 129, 36, 0.48) !important;
        background: #fff !important;
    }

    .meeting-quick-add input,
    .meeting-quick-add select {
        min-height: 50px;
        border: 2px solid rgba(18, 63, 28, 0.26);
        border-radius: 5px;
        padding: 10px 12px;
        background-color: #fff;
        font-size: 16px;
    }

    .meeting-quick-add input:focus,
    .meeting-quick-add select:focus {
        border-color: var(--accent);
        outline: 3px solid rgba(201, 129, 36, 0.16);
    }

    .meeting-quick-date-field input {
        min-height: 56px;
        border-color: var(--accent);
        font-size: 17px;
        font-weight: 850;
    }

    .meeting-quick-add-actions .button {
        flex: 1;
        min-height: 50px;
    }

    .meeting-slot-summary,
    .meeting-selection-summary,
    .meeting-participant-filter,
    .meeting-slot-inspector {
        padding: 11px 12px;
    }

    .meeting-slot-inspector {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .meeting-slot-summary-heading,
    .meeting-selection-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .meeting-calendar-grid {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-rows: 58px var(--meeting-day-height);
        min-width: 100%;
    }

    .meeting-day-heading:not(.is-active-day),
    .meeting-day-column:not(.is-active-day) {
        display: none;
    }

    .meeting-calendar-corner,
    .meeting-time-axis {
        grid-column: 1;
    }

    .meeting-day-heading.is-active-day,
    .meeting-day-column.is-active-day {
        grid-column: 2;
    }

    .meeting-day-heading.is-active-day {
        grid-row: 1;
    }

    .meeting-day-column.is-active-day,
    .meeting-time-axis {
        grid-row: 2;
    }

    .meeting-calendar-scroll {
        max-height: min(64svh, 680px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .meeting-time-axis span {
        right: 7px;
        font-size: 11px;
    }

    .meeting-slot {
        left: 30%;
        right: 5px;
        min-width: 0;
        padding: 8px;
        font-size: 13px;
    }

    .meeting-event-block {
        left: 4px;
        right: 72%;
        padding: 5px;
        font-size: 10px;
    }

    .meeting-event-block span {
        display: none;
    }

    .meeting-sticky-actions {
        bottom: max(6px, env(safe-area-inset-bottom));
        margin-inline: -2px;
        padding: 9px;
    }

    .meeting-sticky-actions .button {
        min-height: 48px;
    }

    .meeting-final-banner,
    .meeting-private-link > div {
        flex-direction: column;
    }
}

.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--surface-warm);
}

.maintenance-screen {
    width: min(760px, calc(100% - 36px));
    border: 2px solid rgba(18, 63, 28, 0.22);
    padding: clamp(42px, 7vw, 76px);
    background: var(--surface);
    text-align: center;
}

.maintenance-screen img {
    width: min(340px, 72vw);
    margin: 0 auto 34px;
}

.maintenance-screen h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 8vw, 76px);
}

.maintenance-screen p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 auto 28px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 96px;
    padding: 14px max(clamp(18px, 5vw, 56px), calc((100vw - 1320px) / 2));
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: min-height 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.site-header.is-scrolled {
    min-height: 68px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(18, 63, 28, 0.08);
    box-shadow: 0 14px 34px rgba(6, 31, 12, 0.08);
    backdrop-filter: blur(14px);
}

body .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(18, 63, 28, 0.08);
}

.brand img {
    width: clamp(130px, 14vw, 205px);
    filter: drop-shadow(0 10px 20px rgba(6, 31, 12, 0.08));
    transition: width 0.24s ease;
}

.site-header.is-scrolled .brand img {
    width: clamp(112px, 11vw, 160px);
}

.main-nav {
    display: flex;
    gap: clamp(16px, 2vw, 34px);
    color: rgba(18, 63, 28, 0.74);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover::after {
    opacity: 0.45;
    transform: scaleX(1);
}

.main-nav a.external-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-nav a.external-nav::before {
    content: "↗";
    order: 2;
    color: var(--accent);
    font-family: Barlow, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(18, 63, 28, 0.22);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--primary);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 10px 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button::after {
    content: "→";
    display: inline-block;
    margin-left: 4px;
    font-family: Barlow, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

.button:hover::after {
    transform: translate(4px, -1px);
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    opacity: 0.48;
    filter: grayscale(0.35);
    box-shadow: none;
}

.button:disabled:hover,
.button[disabled]:hover {
    transform: none;
}

.button:disabled:hover::after,
.button[disabled]:hover::after {
    transform: translateY(-1px);
}

.header-cta {
    min-height: 36px;
    padding: 9px 18px;
}

.header-cta,
.button.accent {
    background: var(--accent);
    color: #fff;
}

.account-pill {
    display: grid;
    gap: 2px;
    min-width: 176px;
    max-width: 260px;
    border: 1px solid rgba(18, 63, 28, 0.22);
    border-radius: 2px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(6, 31, 12, 0.08);
    backdrop-filter: blur(12px);
}

.account-main-link {
    display: grid;
    gap: 2px;
    color: inherit;
    text-decoration: none;
}

.account-name,
.account-meta,
.account-expiry,
.account-member-link,
.account-admin-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-meta,
.account-expiry {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

.account-expiry.active {
    color: var(--primary);
}

.account-expiry.expired {
    color: #a83a30;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 5px;
    padding-top: 6px;
    border-top: 1px solid rgba(18, 63, 28, 0.14);
}

.account-member-link,
.account-admin-link {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-member-link {
    color: var(--ink);
}

.account-member-link:hover,
.account-admin-link:hover {
    color: var(--accent);
}

.button.dark {
    background: var(--primary);
    color: #fff;
}

.button.ghost,
.button.outline {
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
    border-color: rgba(22, 40, 26, 0.78);
}

.button.outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
}

.button.small {
    min-height: 34px;
    padding: 8px 15px;
    font-size: 12px;
}

.button:hover,
.header-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(6, 31, 12, 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.from-left {
    transform: translateX(-34px);
}

.reveal.from-right {
    transform: translateX(34px);
}

.reveal.zoom {
    transform: translateY(18px) scale(0.975);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    transform: scale(1.015);
}

.hero-shade {
    background:
        linear-gradient(0deg, rgba(245, 246, 241, 0.98), rgba(245, 246, 241, 0.64) 48%, rgba(245, 246, 241, 0.78)),
        linear-gradient(90deg, rgba(245, 246, 241, 0.84), rgba(245, 246, 241, 0.36) 64%),
        rgba(245, 246, 241, 0.18);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 142px clamp(18px, 5vw, 56px) 80px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 920px;
    color: var(--primary-deep);
    font-size: clamp(48px, 7.6vw, 104px);
    line-height: 0.9;
    text-wrap: balance;
    text-shadow: 0 10px 34px rgba(245, 246, 241, 0.55);
}

h1 span {
    display: inline-block;
    padding: 0 0.14em 0.08em;
    background: var(--accent);
    color: #fff;
    line-height: 0.9;
}

h2 {
    font-size: clamp(40px, 5vw, 70px);
    line-height: 0.93;
}

h3 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 0.96;
}

.hero-copy {
    max-width: 720px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(18, 63, 28, 0.2);
}

.hero .eyebrow {
    animation: heroFade 0.7s ease 0.08s both;
}

.hero h1 {
    animation: heroRise 0.86s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-copy {
    animation: heroFade 0.78s ease 0.38s both;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy p,
.section-heading > p,
.section-heading div p:not(.eyebrow),
.play-copy p:last-child,
.first-time p,
.about p,
.final-cta p,
.site-footer p {
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.hero-actions,
.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.section {
    width: 100%;
    max-width: none;
    padding: clamp(56px, 6.5vw, 92px) 0;
}

.section-heading {
    width: min(1200px, 100%);
    margin: 0 auto 38px;
    padding: 0 clamp(18px, 5vw, 56px);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 22px;
}

.section-heading.centered,
.event-grid,
.activity-grid,
.next-event,
.play-strip > *,
.first-time > *,
.about,
.testimonial-grid,
.quote > *,
.final-cta > *,
.site-footer > * {
    position: relative;
}

.agenda {
    background: var(--surface);
}

.past-events {
    background: var(--surface-warm);
    padding-bottom: clamp(46px, 5vw, 66px);
}

.next-event {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 130px 22px 1fr auto;
    align-items: stretch;
    gap: 20px;
    border: 1px solid rgba(18, 63, 28, 0.28);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.date-box {
    display: grid;
    min-height: 132px;
    place-items: center;
    align-content: center;
}

.date-box strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    line-height: 0.9;
}

.date-box span,
.date-box small,
.tag,
.card-kicker {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.date-box span,
.date-box small {
    color: var(--ink-soft);
    font-size: 12px;
}

.event-line {
    width: 2px;
    justify-self: center;
    background: linear-gradient(transparent, rgba(18, 63, 28, 0.38), transparent);
}

.event-line::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    margin: 56px 0 0 -4px;
    border-radius: 50%;
    background: var(--primary);
}

.next-event-body {
    align-self: center;
    padding: 28px 0;
}

.next-event-body p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.next-event .button {
    align-self: center;
    margin-right: 28px;
}

.tag {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #68400f;
    padding: 6px 10px;
    font-size: 12px;
}

.event-grid,
.activity-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 22px;
    padding: 0 clamp(18px, 5vw, 56px);
}

.event-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-card {
    overflow: hidden;
    border: 1px solid rgba(18, 63, 28, 0.16);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(6, 31, 12, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(6, 31, 12, 0.1);
}

.poster {
    aspect-ratio: 3 / 4;
    background: var(--surface-warm);
    overflow: hidden;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.event-card:hover .poster img {
    transform: scale(1.035);
}

.poster span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--ink-soft);
    font-weight: 700;
}

.event-card-body {
    display: grid;
    gap: 8px;
    padding: 19px;
}

.event-card-body h3 {
    font-size: 23px;
}

.event-card-body p {
    margin: 0;
    color: var(--ink-soft);
}

.event-card-body .description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.event-card-body a {
    margin-top: 6px;
    color: #985b10;
    font-weight: 800;
}

.card-kicker {
    color: var(--primary);
    font-size: 12px;
}

.play-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: clamp(42px, 7vw, 96px);
    align-items: center;
    width: 100%;
    padding: clamp(78px, 8vw, 118px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    background: var(--primary);
    color: #fff;
}

.play-copy p:last-child {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
}

.play-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 62px);
}

.play-stats strong {
    display: block;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(44px, 5vw, 66px);
    line-height: 1;
}

.play-stats span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.activities {
    background: var(--surface);
}

.activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-grid article {
    position: relative;
    cursor: pointer;
    min-height: 306px;
    padding: 36px 40px 42px;
    border: 2px solid rgba(18, 40, 26, 0.96);
    border-radius: 2px;
    background: #fff;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.activity-grid .text-link::before {
    content: "";
    position: absolute;
    inset: 0;
}

.activity-grid article:hover {
    transform: translateY(-5px);
    background: #f8f9f5;
    box-shadow: 0 18px 42px rgba(6, 31, 12, 0.1);
}

.activity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
}

.activity-photo {
    margin: -18px -20px 28px;
    border: 1px solid rgba(18, 63, 28, 0.14);
    background: var(--surface-warm);
    overflow: hidden;
}

.activity-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.02);
    transition: transform 0.22s ease;
}

.activity-grid article:hover .activity-photo img {
    transform: scale(1.035);
}

.activity-top span {
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 36px;
    font-weight: 900;
}

.activity-top strong {
    color: var(--primary);
    font-size: 32px;
    line-height: 1;
}

.activity-grid p {
    color: var(--ink-soft);
    line-height: 1.65;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: rgba(201, 129, 36, 0.55);
    text-underline-offset: 5px;
}

.text-link::after {
    content: "→";
    color: var(--accent);
    font-family: Barlow, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    transform: translateY(-1px);
}

.activity-cta {
    width: min(1200px, 100%);
    margin: 34px auto 0;
    padding: 0 clamp(18px, 5vw, 56px);
}

.life-gallery {
    background: var(--surface-warm);
    border-top: 1px solid rgba(18, 63, 28, 0.1);
    border-bottom: 1px solid rgba(18, 63, 28, 0.1);
}

.life-gallery-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    grid-auto-rows: 210px;
    gap: 18px;
}

.life-gallery figure {
    position: relative;
    margin: 0;
    border: 2px solid rgba(18, 40, 26, 0.96);
    background: var(--surface);
    overflow: hidden;
}

.life-gallery figure.wide {
    grid-column: span 2;
}

.life-gallery figure.tall {
    grid-row: span 2;
}

.life-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.02);
    transition: transform 0.24s ease;
}

.life-gallery figure:hover img {
    transform: scale(1.035);
}

.life-gallery figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    background: rgba(247, 244, 234, 0.94);
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.first-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 54px;
    background:
        radial-gradient(circle at 90% 15%, rgba(201, 129, 36, 0.16), transparent 24rem),
        var(--primary-deep);
    color: #fff;
    padding-left: max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    padding-right: max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
}

.first-time > * {
    min-width: 0;
}

.first-time p {
    color: rgba(255, 255, 255, 0.76);
}

.check-list {
    display: grid;
    gap: 14px;
}

.check-list p {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.check-list p::before {
    content: "✓";
    margin-right: 12px;
    color: var(--accent);
    font-family: Barlow, system-ui, sans-serif;
    font-weight: 900;
}

.about {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 56px;
    align-items: center;
    padding-left: max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    padding-right: max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
}

.about-card {
    max-height: 620px;
    border: 2px solid rgba(18, 40, 26, 0.96);
    overflow: hidden;
}

.about-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-shops {
    padding-top: clamp(46px, 6vw, 72px);
    padding-bottom: clamp(48px, 6vw, 78px);
    background: #fff;
    border-top: 1px solid rgba(18, 63, 28, 0.08);
    border-bottom: 1px solid rgba(18, 63, 28, 0.08);
}

.local-shops .section-heading {
    display: block;
}

.local-shops .section-heading h2 {
    max-width: 100%;
}

.local-shops .section-heading > p {
    max-width: 760px;
    margin-top: 24px;
}

.shop-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 56px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-grid article {
    min-height: 0;
    border: 1px solid rgba(18, 63, 28, 0.16);
    padding: 22px 24px;
    background: var(--surface);
}

.shop-grid img {
    width: calc(100% + 48px);
    max-width: none;
    height: 150px;
    margin: -22px -24px 18px;
    object-fit: cover;
    border-bottom: 1px solid rgba(18, 63, 28, 0.16);
}

.shop-grid span {
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shop-grid h3 {
    margin-top: 10px;
    font-size: clamp(24px, 2.4vw, 31px);
}

.shop-grid p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.shop-grid .shop-address {
    margin-top: 8px;
    color: var(--ink);
    font-weight: 650;
}

.association-info {
    background: #fff;
}

.org-grid {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.org-grid article {
    border: 2px solid rgba(18, 40, 26, 0.96);
    border-radius: 2px;
    background: var(--surface);
    overflow: hidden;
}

.org-grid img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    filter: saturate(0.94) contrast(1.03);
}

.org-grid span,
.merit-strip span {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.org-grid span {
    display: block;
    margin: 26px 28px 8px;
    color: var(--accent);
    font-size: 13px;
}

.org-grid h3 {
    margin: 0 28px 12px;
    font-size: clamp(28px, 3vw, 38px);
}

.org-grid p {
    margin: 0 28px 30px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.merit-strip {
    width: min(1200px, calc(100% - 36px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid rgba(18, 40, 26, 0.96);
    border-radius: 2px;
    background: var(--primary);
    color: #fff;
}

.merit-strip div {
    padding: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.merit-strip div:first-child {
    border-left: 0;
}

.merit-strip strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    text-transform: uppercase;
}

.merit-strip span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.45;
}

.testimonials {
    background: var(--surface-warm);
}

.testimonial-grid {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.testimonial-grid blockquote {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(18, 63, 28, 0.16);
    background: rgba(255, 255, 255, 0.74);
}

.testimonial-grid p {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
}

.testimonial-grid cite {
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quote {
    max-width: none;
    padding: clamp(64px, 8vw, 110px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    background: var(--accent);
    color: #fff;
}

.quote blockquote {
    max-width: 980px;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.02;
}

.quote p {
    margin: 28px 0 0;
    font-weight: 800;
}

.final-cta {
    max-width: none;
    padding: clamp(70px, 9vw, 120px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    text-align: center;
    background: var(--primary);
    color: #fff;
}

.final-cta p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.78);
}

.final-cta .hero-actions {
    justify-content: center;
}

.site-footer {
    max-width: none;
    padding: clamp(76px, 9vw, 120px) max(clamp(18px, 5vw, 56px), calc((100vw - 1260px) / 2)) 38px;
    background: #041808;
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(160px, 0.55fr) minmax(160px, 0.55fr);
    column-gap: clamp(54px, 10vw, 150px);
    row-gap: 72px;
}

.footer-brand img {
    width: clamp(220px, 20vw, 310px);
    filter: invert(1) brightness(2.6);
}

.footer-brand p {
    max-width: 360px;
    margin: clamp(44px, 6vw, 72px) 0 22px;
    color: rgba(255, 255, 255, 0.58);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.65;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 13px;
}

.social-links a {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-nav {
    display: grid;
    align-content: start;
    gap: 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.footer-nav span {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 13px;
    letter-spacing: 0.25em;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
}

.site-footer a:hover {
    color: var(--accent);
}

.contact-page,
.register-page,
.privacy-page {
    background: var(--surface);
}

.register-page .site-header,
.privacy-page .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(18, 63, 28, 0.08);
}

.contact-hero {
    padding: 158px max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2)) clamp(64px, 7vw, 92px);
    border-bottom: 1px solid rgba(18, 63, 28, 0.16);
    background: linear-gradient(180deg, rgba(247, 244, 234, 0.98), rgba(255, 255, 255, 1));
}

.contact-hero h1 {
    max-width: 900px;
    font-size: clamp(48px, 7vw, 94px);
}

.contact-hero p:last-child {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.topic-hero {
    padding: 150px max(clamp(18px, 5vw, 56px), calc((100vw - 1280px) / 2)) clamp(60px, 8vw, 104px);
    border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    background: linear-gradient(180deg, rgba(247, 244, 236, 0.96), rgba(247, 244, 236, 1));
}

.topic-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(36px, 7vw, 96px);
    align-items: end;
}

.topic-hero-copy h1 {
    max-width: 980px;
    font-size: clamp(54px, 8vw, 104px);
    line-height: 0.9;
}

.topic-hero-copy p:not(.eyebrow) {
    max-width: 790px;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.55;
}

.topic-hero-copy .hero-actions {
    margin-top: 34px;
}

.topic-hero-panel {
    border-left: 2px solid rgba(18, 63, 28, 0.28);
    padding: 8px 0 10px clamp(24px, 4vw, 42px);
}

.topic-hero-panel span {
    display: block;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.topic-hero-panel strong {
    display: block;
    margin-top: 18px;
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.topic-hero-panel p {
    margin: 18px 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.topic-content {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.topic-copy {
    min-width: 0;
}

.activity-grid.topic-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: clamp(54px, 7vw, 86px) max(clamp(18px, 5vw, 56px), calc((100vw - 1280px) / 2));
    background: var(--primary);
}

.activity-grid.topic-grid article {
    min-height: 260px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: white;
    padding: clamp(26px, 4vw, 46px);
}

.activity-grid.topic-grid article:first-child {
    border-left: 0;
}

.activity-grid.topic-grid article::before {
    display: block;
    margin-bottom: 28px;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.activity-grid.topic-grid article:nth-child(1)::before {
    content: "01";
}

.activity-grid.topic-grid article:nth-child(2)::before {
    content: "02";
}

.activity-grid.topic-grid article:nth-child(3)::before {
    content: "03";
}

.activity-grid.topic-grid article h3 {
    color: white;
    font-size: clamp(30px, 3vw, 42px);
}

.activity-grid.topic-grid p {
    color: rgba(255, 255, 255, 0.78);
}

.topic-gallery {
    display: grid;
    gap: clamp(28px, 4vw, 46px);
    margin: 0 auto;
    padding: clamp(70px, 8vw, 112px) max(clamp(18px, 5vw, 56px), calc((100vw - 1280px) / 2)) 0;
}

.topic-gallery > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.48fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
}

.topic-gallery h2 {
    max-width: 680px;
    font-size: clamp(42px, 6vw, 76px);
}

.topic-gallery .eyebrow {
    color: var(--ink);
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
}

.topic-gallery .eyebrow + h2 {
    margin-top: 14px;
    color: var(--ink-soft);
    font-family: Barlow, system-ui, sans-serif;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1.35;
    text-transform: none;
}

.topic-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
}

.topic-gallery figure {
    position: relative;
    margin: 0;
    border: 2px solid rgba(18, 40, 26, 0.96);
    background: var(--surface);
    overflow: hidden;
}

.topic-gallery figure:first-child {
    grid-row: span 2;
}

.topic-gallery img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.topic-gallery figure:first-child img {
    min-height: 520px;
}

.topic-gallery figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: fit-content;
    max-width: calc(100% - 36px);
    padding: 10px 13px;
    background: rgba(247, 244, 236, 0.92);
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topic-summary {
    width: min(1280px, calc(100% - 36px));
    margin: clamp(54px, 7vw, 90px) auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
    gap: clamp(32px, 6vw, 78px);
    align-items: end;
    border-top: 2px solid rgba(18, 63, 28, 0.18);
    padding-top: clamp(28px, 4vw, 46px);
}

.topic-summary p {
    max-width: 760px;
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
}

.topic-visual {
    width: min(1280px, calc(100% - 36px));
    margin: clamp(42px, 6vw, 78px) auto clamp(78px, 8vw, 116px);
    border: 2px solid rgba(18, 40, 26, 0.96);
    background: var(--surface-warm);
    overflow: hidden;
}

.topic-visual img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 72px);
    padding: clamp(70px, 8vw, 110px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    background: var(--surface);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    align-self: start;
    border: 2px solid var(--ink);
    background: var(--ink);
}

.contact-info-grid article {
    min-height: 178px;
    padding: 26px;
    background: var(--surface);
}

.contact-info-grid span {
    display: block;
    margin-bottom: 26px;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    font-weight: 900;
}

.contact-info-grid h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.contact-info-grid p,
.contact-info-grid a,
.contact-form-wrap > p {
    color: var(--ink-soft);
    line-height: 1.55;
}

.contact-info-grid a:hover {
    color: var(--accent);
}

.contact-form-wrap h2 {
    font-size: clamp(34px, 4vw, 52px);
}

.contact-form-wrap > p {
    margin: 10px 0 30px;
}

.required-note {
    margin: -8px 0 22px;
    color: var(--ink-soft);
    font-size: 14px;
}

.required-marker {
    display: inline;
    color: var(--accent);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-alert {
    margin: 0 0 22px;
    border: 1px solid rgba(18, 63, 28, 0.18);
    border-radius: 2px;
    padding: 14px 16px;
    font-weight: 700;
}

.contact-alert.success {
    background: #eaf4ed;
    color: var(--primary);
}

.contact-alert.error {
    background: #fff1ef;
    color: #a83a30;
}

.form-recovery-notice {
    margin-bottom: 18px;
    border: 1px solid #d6bd7e;
    border-radius: 2px;
    padding: 13px 15px;
    background: #fff8e6;
    color: #5f4717;
    font-weight: 700;
    line-height: 1.45;
}

form[data-form-recovered="true"] {
    scroll-margin-top: 24px;
}

[data-form-recovered-field="true"] {
    box-shadow: 0 0 0 2px rgba(201, 129, 36, 0.16);
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-form label {
    display: block;
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink);
    font: 500 16px Barlow, system-ui, sans-serif;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 129, 36, 0.15);
}

.contact-form .button {
    justify-self: start;
}

.contact-form .check-line {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: flex-start;
    column-gap: 12px !important;
    color: var(--ink-soft) !important;
    font-family: Barlow, system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.5;
    text-transform: none !important;
}

.contact-form .check-line input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    padding: 0;
}

.contact-form .check-line span {
    display: block;
    min-width: 0;
    font-weight: 400;
}

.contact-form .check-line a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.map-section {
    padding: clamp(64px, 8vw, 100px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2));
    background: var(--surface-warm);
}

.map-section > div {
    margin-bottom: 28px;
}

.map-section iframe {
    width: 100%;
    aspect-ratio: 21 / 9;
    border: 2px solid var(--ink);
    border-radius: 2px;
}

.privacy-content {
    display: grid;
    gap: 34px;
    padding: clamp(64px, 8vw, 104px) max(clamp(18px, 5vw, 56px), calc((100vw - 960px) / 2));
    background: var(--surface);
}

.privacy-content article {
    border-top: 2px solid rgba(18, 63, 28, 0.18);
    padding-top: 28px;
}

.privacy-content h2 {
    margin-bottom: 22px;
    font-size: clamp(32px, 4vw, 48px);
}

.privacy-content p,
.privacy-content dd {
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
}

.privacy-content dl {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
    gap: 18px 28px;
    margin: 0;
}

.privacy-content dt {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.privacy-content dd {
    margin: 0;
}

.privacy-content a {
    color: var(--primary);
    font-weight: 800;
}

.events-page {
    background: var(--surface-warm);
}

.events-agenda {
    padding: clamp(70px, 8vw, 108px) 0;
    background: var(--surface);
}

.events-calendar-cta {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 34px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(66, 133, 244, .28);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f1f6ff);
    box-shadow: 0 16px 36px rgba(36, 82, 155, .13);
}

.events-calendar-cta h2 { margin: 3px 0 5px; color: var(--primary); font-size: clamp(24px, 3vw, 34px); }
.events-calendar-cta p { margin: 0; }
.events-calendar-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: #fff; font-size: 25px; font-weight: 900; box-shadow: inset 0 0 0 7px #fff; }
.events-calendar-button { min-height: 50px; white-space: nowrap; }

.events-hero {
    background: linear-gradient(180deg, rgba(247, 244, 234, 0.98), rgba(255, 255, 255, 1));
}

.association-page {
    background: var(--surface-warm);
}

.association-page .association-hero {
    background: linear-gradient(180deg, rgba(247, 244, 234, 0.98), rgba(255, 255, 255, 1));
}

.association-about {
    background: var(--surface);
}

.association-page .association-info {
    background: var(--surface-warm);
}

.association-page .merit-strip {
    margin-bottom: clamp(64px, 8vw, 104px);
}

.event-list {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(18, 63, 28, 0.28);
    border-radius: 16px;
    background: var(--surface);
}

.event-row {
    display: grid;
    grid-template-columns: 124px 28px minmax(0, 1fr) minmax(190px, auto);
    align-items: stretch;
    gap: 18px;
    border-bottom: 1px solid rgba(18, 63, 28, 0.2);
}

.event-row.is-focused {
    background: linear-gradient(90deg, rgba(202, 93, 35, 0.12), rgba(255, 255, 255, 0.94) 42%);
    box-shadow: inset 5px 0 0 var(--accent);
}

.event-row.is-focused .event-row-body h3 {
    color: var(--primary);
}

.event-row.is-cancelled {
    background: linear-gradient(90deg, rgba(168, 58, 48, 0.08), rgba(255, 255, 255, 0.94));
}

.event-row.is-cancelled .event-marker::before {
    background: #a83a30;
}

.event-row.is-cancelled .event-row-body h3 {
    color: #704a46;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.event-cancelled-badge,
.event-full-badge {
    display: inline-flex;
    width: max-content;
    margin-left: 8px;
    border: 1px solid rgba(168, 58, 48, 0.3);
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff1ef;
    color: #a83a30;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-full-badge {
    border-color: rgba(181, 111, 18, 0.34);
    background: #fff7e8;
    color: #9a5a08;
}

.event-row-body .event-cancelled-notice {
    color: #a83a30;
    font-weight: 800;
}

.event-row.empty {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 150px;
    padding: 32px 36px;
}

.event-row:last-of-type {
    border-bottom: 0;
}

.event-date {
    display: grid;
    min-height: 132px;
    place-items: center;
    align-content: center;
}

.event-date strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 44px;
    line-height: 0.92;
}

.event-date span,
.event-date small,
.calendar-note,
.calendar-note a {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.event-date span,
.event-date small {
    color: var(--ink-soft);
    font-size: 12px;
}

.event-marker {
    position: relative;
    width: 2px;
    justify-self: center;
    background: linear-gradient(transparent, rgba(18, 63, 28, 0.4), transparent);
}

.event-marker::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateX(-50%);
}

.event-row.earth .event-marker::before {
    background: #7a6a4f;
}

.event-row-body {
    align-self: center;
    min-width: 0;
    padding: 28px 0;
}

.event-row-body h3 {
    max-width: 720px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(24px, 2.4vw, 32px);
}

.event-row.empty .event-row-body {
    padding: 0;
}

.event-row.empty .event-row-body h3 {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.event-row.empty .event-row-body p {
    max-width: 620px;
}

.event-row-body p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.event-actions {
    align-self: center;
    display: grid;
    gap: 10px;
    align-self: center;
    margin-right: 28px;
    padding: 18px 0;
}

.event-share-button {
    white-space: nowrap;
}

.reservation-count {
    color: var(--accent) !important;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reservation-box {
    width: 100%;
}

.reservation-box summary {
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 8px 15px;
    background: var(--accent);
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    list-style: none;
}

.reservation-box summary::-webkit-details-marker {
    display: none;
}

.reservation-closed {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(168, 58, 48, 0.28);
    border-radius: 2px;
    padding: 8px 15px;
    background: #fff1ef;
    color: #a83a30;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.reservation-closed.is-full {
    border-color: rgba(181, 111, 18, 0.34);
    background: #fff7e8;
    color: #9a5a08;
}

.reservation-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    border: 1px solid rgba(18, 63, 28, 0.18);
    padding: 14px;
    background: var(--surface-warm);
}

.reservation-form label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reservation-form input,
.reservation-form textarea {
    width: 100%;
    border: 1px solid rgba(18, 63, 28, 0.5);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: 500 14px Barlow, system-ui, sans-serif;
    padding: 9px 10px;
}

.reservation-form p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.45;
}

.reservation-alert {
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translate(-50%, -50%);
    padding: 18px 20px;
    border: 1px solid rgba(18, 63, 28, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(18, 63, 28, 0.18);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.reservation-alert.success {
    background: #eaf4ed;
    color: var(--primary);
}

.reservation-alert.error {
    background: #fff1ef;
    color: #a83a30;
}

.reservation-alert.warning {
    background: #fff8e8;
    color: #7a4a09;
}

.calendar-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-top: 1px solid rgba(18, 63, 28, 0.2);
    background: var(--surface-warm);
    color: var(--ink-soft);
    font-size: 12px;
}

.calendar-note.has-more-events {
    border-top-color: rgba(18, 63, 28, 0.32);
    background: #eef5ec;
}

.calendar-note-copy {
    display: grid;
    gap: 3px;
}

.calendar-note-copy strong {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    letter-spacing: 0.04em;
}

.calendar-note-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-note-actions .button {
    white-space: nowrap;
}

.home-event-list .event-row:last-of-type {
    border-bottom: 1px solid rgba(18, 63, 28, 0.2);
}

.events-past {
    padding-top: clamp(54px, 7vw, 90px);
    background: var(--surface-warm);
}

.events-propose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin: clamp(70px, 8vw, 110px) max(clamp(18px, 5vw, 56px), calc((100vw - 1200px) / 2)) clamp(70px, 8vw, 110px);
    padding: clamp(40px, 6vw, 72px);
    border: 2px solid rgba(18, 63, 28, 0.2);
    background: var(--primary);
    color: #fff;
}

.events-propose h2 {
    font-size: clamp(34px, 4vw, 52px);
}

.events-propose p:last-child {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
}

.events-propose .eyebrow,
.events-propose .button.outline {
    color: #fff;
}

.events-propose .button.outline {
    border-color: rgba(255, 255, 255, 0.58);
}

.event-detail-hero {
    min-height: 100vh;
    padding: 132px max(clamp(18px, 5vw, 56px), calc((100vw - 1240px) / 2)) clamp(72px, 8vw, 110px);
    background:
        radial-gradient(circle at 8% 12%, rgba(202, 93, 35, 0.1), transparent 28%),
        linear-gradient(180deg, #fff 0%, var(--surface-warm) 100%);
}

.event-detail-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-detail-breadcrumbs a {
    color: var(--primary);
}

.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.88fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.event-detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid rgba(18, 63, 28, 0.2);
    box-shadow: 0 26px 70px rgba(18, 63, 28, 0.15);
    background: #fff;
}

.event-detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.event-detail-card {
    border: 1px solid rgba(18, 63, 28, 0.2);
    padding: clamp(26px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(18, 63, 28, 0.09);
}

.event-detail-heading h1 {
    max-width: 760px;
    margin-top: 16px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 0.92;
}

.event-detail-lead {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 21px);
}

.event-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
    border: 1px solid rgba(18, 63, 28, 0.16);
}

.event-detail-facts > div {
    display: grid;
    gap: 5px;
    min-height: 96px;
    align-content: center;
    padding: 18px 20px;
    border-right: 1px solid rgba(18, 63, 28, 0.14);
    border-bottom: 1px solid rgba(18, 63, 28, 0.14);
}

.event-detail-facts > div:nth-child(2n) {
    border-right: 0;
}

.event-detail-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.event-detail-facts span,
.event-participant-stats span {
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-detail-facts strong {
    color: var(--primary);
    font-size: 17px;
}

.event-detail-description,
.event-participant-summary {
    margin-top: 38px;
}

.event-detail-description h2,
.event-participant-summary h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.event-detail-description > p:last-child {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

.event-detail-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.event-detail-section-heading > p {
    max-width: 310px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.event-participant-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    border: 1px solid rgba(18, 63, 28, 0.16);
}

.event-participant-stats > div {
    display: grid;
    gap: 6px;
    min-height: 104px;
    place-content: center;
    border-right: 1px solid rgba(18, 63, 28, 0.14);
    padding: 14px;
    text-align: center;
}

.event-participant-stats > div:last-child {
    border-right: 0;
}

.event-participant-stats strong {
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 30px;
    line-height: 1;
}

.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.event-detail-reservation {
    margin-top: 26px;
}

.event-detail-reservation summary {
    min-height: 46px;
    align-items: center;
    font-size: 14px;
}

.event-detail-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 110px;
    gap: 12px;
}

.event-detail-closed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    border: 1px solid rgba(168, 58, 48, 0.28);
    padding: 18px 20px;
    background: #fff1ef;
    color: #a83a30;
}

.event-detail-closed strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-detail-closed.is-full {
    border-color: rgba(181, 111, 18, 0.34);
    background: #fff7e8;
    color: #9a5a08;
}

.event-detail-hero.is-cancelled .event-detail-card {
    border-color: rgba(168, 58, 48, 0.28);
}

.event-detail-hero.is-cancelled .event-detail-heading h1 {
    color: #704a46;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.event-detail-not-found {
    min-height: 72vh;
    display: grid;
    place-content: center;
    justify-items: start;
    gap: 14px;
    padding: 140px max(clamp(18px, 5vw, 56px), calc((100vw - 900px) / 2)) 80px;
    background: var(--surface-warm);
}

.event-detail-not-found h1 {
    font-size: clamp(46px, 7vw, 76px);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 42px;
    color: rgba(255, 255, 255, 0.36);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-bottom p {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: 1.45;
}

.footer-bottom a {
    color: inherit;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .site-header {
        align-items: center;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-nav {
        position: absolute;
        top: calc(100% - 8px);
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(18, 63, 28, 0.18);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 42px rgba(6, 31, 12, 0.12);
    }

    .site-header.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 12px 10px;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-content {
        padding-top: 96px;
    }

    .section-heading,
    .play-strip,
    .first-time,
    .about,
    .topic-content,
    .contact-section {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topic-visual {
        position: static;
    }

    .topic-hero-inner,
    .topic-gallery > div:first-child,
    .topic-summary {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-grid article {
        min-height: auto;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .topic-grid article:first-child {
        border-top: 0;
    }

    .topic-gallery figure:first-child {
        grid-row: auto;
    }

    .topic-gallery figure:first-child img {
        min-height: 330px;
    }

    .event-grid,
    .activity-grid,
    .org-grid,
    .shop-grid,
    .testimonial-grid,
    .topic-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merit-strip {
        grid-template-columns: 1fr;
    }

    .merit-strip div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .merit-strip div:first-child {
        border-top: 0;
    }

    .activity-grid.topic-grid {
        grid-template-columns: 1fr;
    }

    .life-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

    .life-gallery figure.wide,
    .life-gallery figure.tall {
        grid-column: auto;
        grid-row: auto;
    }

    .next-event {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }

    .event-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
    }

    .event-row.empty {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .event-line,
    .event-marker {
        display: none;
    }

    .next-event .button,
    .event-actions {
        grid-column: 1 / -1;
        margin: 0 18px 18px;
    }

    .site-footer {
        grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.7fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .events-propose {
        display: grid;
    }

    .event-detail-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 28px;
    }

    .event-participant-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-participant-stats > div:nth-child(2) {
        border-right: 0;
    }

    .event-participant-stats > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(18, 63, 28, 0.14);
    }

    .event-detail-form-grid {
        grid-template-columns: 1fr;
    }

    .play-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 64px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .brand img,
    .site-header.is-scrolled .brand img {
        width: 112px;
    }

    .header-cta {
        padding: 9px 13px;
        font-size: 13px;
    }

    .account-pill {
        min-width: 132px;
        max-width: 46vw;
        padding: 8px 10px;
    }

    .account-name {
        font-size: 13px;
    }

    .account-meta {
        display: none;
    }

    .account-expiry {
        font-size: 11px;
    }

    .event-grid,
    .activity-grid,
    .org-grid,
    .shop-grid,
    .testimonial-grid,
    .life-gallery-grid,
    .topic-gallery-grid,
    .play-stats,
    .contact-info-grid,
    .contact-form-row,
    .calendar-note,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .life-gallery-grid {
        grid-auto-rows: 260px;
    }

    .footer-brand p {
        margin-top: 32px;
    }

    .footer-bottom {
        display: grid;
        gap: 14px;
    }

    .footer-bottom a {
        white-space: normal;
    }

    .calendar-note {
        display: grid;
    }

    .calendar-note-actions {
        justify-content: stretch;
    }

    .calendar-note-actions .button {
        flex: 1 1 180px;
    }

    .event-row-body h3 {
        white-space: normal;
    }

    .event-detail-hero {
        padding-top: 104px;
    }

    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-detail-poster {
        position: static;
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .event-detail-card {
        padding: 24px 18px;
    }

    .event-detail-facts {
        grid-template-columns: 1fr;
    }

    .event-detail-facts > div,
    .event-detail-facts > div:nth-child(2n),
    .event-detail-facts > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(18, 63, 28, 0.14);
    }

    .event-detail-facts > div:last-child {
        border-bottom: 0;
    }

    .event-detail-section-heading,
    .event-detail-closed {
        align-items: flex-start;
        flex-direction: column;
    }

    .privacy-content dl {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .heading-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: clamp(42px, 14vw, 68px);
    }

    .contact-hero {
        padding-top: 118px;
    }

    .map-section iframe {
        aspect-ratio: 1 / 1;
    }
}

/* Torneo público */
.public-tournament-page .site-header {
    border-bottom-color: rgba(18, 63, 28, 0.12);
    background: rgba(245, 246, 241, 0.96);
    box-shadow: 0 8px 30px rgba(6, 31, 12, 0.06);
    backdrop-filter: blur(12px);
}

.public-tournament-main {
    display: grid;
    gap: 26px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 176px 0 72px;
}

.public-tournament-hero,
.public-tournament-section {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(6, 31, 12, 0.07);
}

.public-tournament-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
    background: linear-gradient(135deg, #fff 0%, var(--surface-warm) 100%);
}

.public-tournament-hero::after {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 54px solid rgba(201, 129, 36, 0.11);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.public-tournament-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.public-tournament-title h1 {
    max-width: 820px;
    margin: 0 0 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 0.9;
    text-transform: uppercase;
}

.public-tournament-title p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.public-tournament-description {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-top: 24px;
    border-left: 3px solid var(--accent);
    padding: 2px 0 2px 16px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
}

.public-tournament-hero > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 24px;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-tournament-section {
    padding: clamp(22px, 3vw, 36px);
}

.public-tournament-registration {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid rgba(201, 129, 36, 0.35);
    padding: clamp(22px, 3vw, 34px);
    background: linear-gradient(135deg, #fff 0%, #fbf3e6 100%);
    box-shadow: 0 16px 42px rgba(6, 31, 12, 0.06);
}

.public-tournament-registration h2 {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.public-tournament-registration p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
}

.public-tournament-registration form {
    margin: 0;
}

.public-tournament-registration .hero-actions {
    justify-content: flex-start;
    margin-top: 18px;
}

.public-tournament-alert {
    max-width: 760px;
    margin: 0 0 18px;
    border: 1px solid rgba(18, 63, 28, 0.18);
    padding: 11px 13px;
    font-weight: 700;
}

.public-tournament-alert.success {
    background: #e7f1e5;
    color: #1f6d32;
}

.public-tournament-alert.error {
    border-color: rgba(150, 35, 35, 0.25);
    background: #f7e3df;
    color: #962323;
}

.public-tournament-section .section-heading {
    margin-bottom: 22px;
}

.public-tournament-section .section-heading h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 62px);
}

.public-tournament-page .badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border: 1px solid rgba(18, 63, 28, 0.15);
    padding: 6px 10px;
    background: #f1eee4;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-tournament-page .tournament-status.status-inscripciones {
    background: #fff2d8;
    color: #87550f;
}

.public-tournament-page .tournament-status.status-checkin {
    background: #edf3ff;
    color: #2f578f;
}

.public-tournament-page .tournament-status.status-en_curso,
.public-tournament-page .badge.warning {
    background: var(--accent-soft);
    color: #75460c;
}

.public-tournament-page .tournament-status.status-finalizado,
.public-tournament-page .badge.ok {
    background: #e7f1e5;
    color: #1f6d32;
}

.public-tournament-page .table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(18, 63, 28, 0.14);
}

.public-tournament-page table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.public-tournament-page th,
.public-tournament-page td {
    border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
}

.public-tournament-page th {
    background: var(--surface-warm);
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.public-tournament-page tbody tr:last-child td {
    border-bottom: 0;
}

.public-tournament-page tbody tr:hover td {
    background: rgba(247, 244, 234, 0.58);
}

.public-tournament-page .tournament-standings-table td:first-child,
.public-tournament-page .tournament-standings-table td:last-child {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
}

@media (max-width: 720px) {
    .public-tournament-main {
        width: min(100% - 20px, 1180px);
        gap: 16px;
        padding: 126px 0 42px;
    }

    .public-tournament-title {
        flex-direction: column;
    }

    .public-tournament-title h1 {
        font-size: clamp(42px, 18vw, 68px);
    }

    .public-tournament-section {
        padding: 18px 14px;
    }

    .public-tournament-registration {
        padding: 20px 16px;
    }

    .public-tournament-page th,
    .public-tournament-page td {
        padding: 11px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.library-page {
    background: var(--surface);
}

.library-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 360px);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
    padding: clamp(126px, 13vw, 168px) max(clamp(18px, 5vw, 56px), calc((100vw - 1260px) / 2)) clamp(54px, 7vw, 86px);
    background: linear-gradient(180deg, rgba(244, 241, 232, 0.92), rgba(255, 255, 255, 1));
}

.library-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(44px, 5.5vw, 76px);
    line-height: 0.94;
    text-transform: uppercase;
}

.library-hero p:not(.eyebrow) {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.55;
}

.library-stats {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid rgba(18, 63, 28, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.library-stats article {
    padding: 20px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 63, 28, 0.16);
}

.library-stats article:last-child {
    border-bottom: 0;
}

.library-stats strong {
    display: block;
    color: var(--accent);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

.library-stats span,
.library-card-top span,
.library-card-top strong,
.library-rating-row span,
.library-pending {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-section {
    padding: clamp(54px, 7vw, 96px) max(clamp(18px, 5vw, 56px), calc((100vw - 1260px) / 2));
}

.library-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(135px, 0.7fr)) auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 34px;
    padding: 18px;
    border: 1px solid rgba(18, 63, 28, 0.16);
    background: #fff;
}

.library-filters label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.library-filters input,
.library-filters select {
    min-height: 42px;
    border: 1px solid rgba(18, 63, 28, 0.22);
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
    font: inherit;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.library-list {
    display: grid;
    gap: 10px;
}

.library-row {
    display: grid;
    grid-template-columns: 74px minmax(260px, 1fr) 88px 88px 120px;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(18, 63, 28, 0.16);
    background: #fff;
    padding: 10px 14px;
}

.library-row-cover {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(18, 63, 28, 0.12);
    background: #f7f4ea;
    overflow: hidden;
}

.library-row-cover img {
    display: block;
    max-width: calc(100% - 12px);
    max-height: calc(100% - 12px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.library-row-main {
    min-width: 0;
}

.library-row-main span,
.library-row-score span,
.library-row-status strong {
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-row-main h2 {
    margin: 2px 0 3px;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1;
    text-transform: uppercase;
}

.library-row-main p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.library-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.library-facts span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 26px;
    border: 1px solid rgba(18, 63, 28, 0.12);
    padding: 5px 8px;
    background: var(--surface-warm);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
}

.library-facts strong {
    color: var(--ink-soft);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-row-score {
    display: grid;
    gap: 2px;
}

.library-row-score strong {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.library-row-status {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.library-card,
.library-empty {
    display: grid;
    gap: 14px;
    min-height: 270px;
    padding: 0;
    border: 1px solid rgba(18, 63, 28, 0.18);
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-card > :not(.library-cover),
.library-empty {
    padding-inline: 24px;
}

.library-card > .library-card-top {
    padding-top: 22px;
}

.library-card > :last-child {
    padding-bottom: 24px;
}

.library-cover {
    display: grid;
    place-items: center;
    height: 260px;
    min-height: 230px;
    background: linear-gradient(180deg, #f7f4ea 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    overflow: hidden;
}

.library-cover img {
    display: block;
    max-width: calc(100% - 36px);
    max-height: calc(100% - 36px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(6, 31, 12, 0.08);
}

.library-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink-soft);
}

.library-card-top strong {
    color: var(--accent);
}

.library-card h2,
.library-empty h2 {
    margin: 0;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    text-transform: uppercase;
}

.library-meta,
.library-description {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.card-facts {
    margin-top: -2px;
}

.library-rating-row {
    display: grid;
    grid-template-columns: 104px 54px 90px 52px 52px;
    border: 1px solid rgba(18, 63, 28, 0.14);
}

.library-rating-row div {
    padding: 13px 12px;
    border-right: 1px solid rgba(18, 63, 28, 0.12);
}

.library-rating-row div:last-child {
    border-right: 0;
}

.library-rating-row strong {
    display: block;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 30px;
    line-height: 1;
}

.library-card-actions {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.library-loan-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.library-loan-form input[type="number"] {
    width: 64px;
    min-height: 34px;
    border: 1px solid rgba(22, 40, 26, 0.22);
    border-radius: 2px;
    padding: 6px 8px;
}

.library-flash {
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(18, 63, 28, 0.18);
    border-radius: 8px;
    padding: 18px 20px;
    background: #eef7ee;
    box-shadow: 0 18px 48px rgba(18, 63, 28, 0.18);
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.library-flash.error {
    border-color: rgba(168, 58, 48, 0.25);
    background: #fff1ee;
    color: #a83a30;
}

.library-empty {
    grid-column: 1 / -1;
    min-height: 180px;
}

.library-page {
    background: #f4f7f0;
}

.library-page .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(18, 63, 28, 0.12);
    backdrop-filter: blur(14px);
}

.library-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    background:
        linear-gradient(120deg, rgba(18, 63, 28, 0.08), transparent 48%),
        linear-gradient(180deg, #fbf8ef 0%, #eef4ea 100%);
}

.library-hero::after {
    content: "";
    position: absolute;
    right: max(22px, calc((100vw - 1260px) / 2));
    bottom: -80px;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(18, 63, 28, 0.11);
    background:
        linear-gradient(90deg, rgba(18, 63, 28, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(18, 63, 28, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.library-hero > * {
    position: relative;
    z-index: 1;
}

.library-hero h1 {
    max-width: 760px;
    letter-spacing: 0;
}

.library-hero p:not(.eyebrow) {
    margin-top: 18px;
}

.library-stats {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 60px rgba(18, 63, 28, 0.11);
    backdrop-filter: blur(12px);
}

.library-stats article {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: baseline;
    gap: 16px;
}

.library-section {
    padding-top: clamp(34px, 5vw, 64px);
}

.library-filters {
    position: sticky;
    top: 76px;
    z-index: 6;
    border-color: rgba(18, 63, 28, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 18px 48px rgba(20, 42, 24, 0.08);
    backdrop-filter: blur(14px);
}

.library-filters input,
.library-filters select {
    border-radius: 6px;
    background-color: #fff;
}

.library-filters input:focus,
.library-filters select:focus,
.library-loan-form input[type="number"]:focus {
    outline: 2px solid rgba(201, 129, 36, 0.28);
    border-color: var(--accent);
}

.library-list {
    gap: 14px;
}

.library-row {
    grid-template-columns: 92px minmax(300px, 1fr) 72px 72px minmax(286px, 310px);
    min-height: 118px;
    border-color: rgba(18, 63, 28, 0.13);
    border-radius: 8px;
    padding: 14px 18px;
    background: #fffdf8;
    box-shadow: 0 8px 28px rgba(20, 42, 24, 0.045);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    overflow: hidden;
}

.library-row:hover {
    border-color: rgba(18, 63, 28, 0.28);
    box-shadow: 0 16px 38px rgba(20, 42, 24, 0.08);
    transform: translateY(-2px);
}

.library-row-cover {
    width: 92px;
    height: 92px;
    border-radius: 7px;
    background: #eef3ed;
}

.library-row-main h2 {
    margin-top: 4px;
    font-size: clamp(25px, 2vw, 34px);
}

.library-facts span {
    border-radius: 999px;
    background: #f1f5ef;
}

.library-row-score {
    justify-items: center;
    border-left: 1px solid rgba(18, 63, 28, 0.1);
    padding-left: 10px;
    text-align: center;
}

.library-row-score strong {
    font-size: 26px;
}

.library-row-status {
    align-content: start;
    align-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: start;
    gap: 8px 10px;
    min-width: 0;
    padding-top: 2px;
    text-align: left;
}

.library-row-status > strong,
.library-row-status > span {
    justify-self: start;
}

.library-row-status > strong {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid rgba(18, 63, 28, 0.12);
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef7ee;
    color: var(--primary);
    font-size: 11px;
}

.library-row-status > span {
    color: #294a2d;
    font-size: 15px;
}

.library-row-status .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(18, 63, 28, 0.12);
    border-radius: 6px;
    padding: 7px 10px;
    background: #f4f8f1;
    text-decoration: none;
}

.library-row-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
}

.library-row-actions > .button,
.library-row-actions > .library-loan-form,
.library-row-actions > .library-pending {
    min-width: 0;
}

.library-row-actions > .button,
.library-row-actions .library-loan-form .button {
    width: 100%;
}

.library-row-actions > :only-child {
    grid-column: 1 / -1;
}

.library-row-actions > .library-pending {
    grid-column: 1 / -1;
}

.library-card {
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 8px 28px rgba(20, 42, 24, 0.05);
}

.library-cover {
    background:
        linear-gradient(180deg, #eef3ed 0%, #fffdf8 100%);
}

.library-card-top strong {
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef7ee;
    color: var(--primary);
    white-space: nowrap;
}

.library-rating-row {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f4ea;
}

.library-card-actions {
    justify-content: space-between;
    border-top: 1px solid rgba(18, 63, 28, 0.1);
    padding-top: 14px;
}

.library-loan-form {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.library-row-status .library-loan-form {
    width: 100%;
}

.library-card-actions .library-loan-form {
    width: auto;
}

.library-loan-form .button,
.library-row-status .button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.library-row-status .library-loan-form .button {
    width: 100%;
}

.library-pending {
    color: #697260;
}

.library-empty {
    border-radius: 8px;
    background: #fffdf8;
}

.library-page {
    background: #faf8f2;
    overflow-x: hidden;
}

.library-section {
    padding: 184px max(24px, calc((100vw - 1280px) / 2)) 42px;
}

.library-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 0 0 18px;
    padding: 20px 24px;
    border: 1px solid rgba(7, 59, 33, 0.16);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(32, 42, 28, 0.05);
}

.library-intro h1 {
    margin: 4px 0 6px;
    color: var(--green-deep);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.library-intro p {
    max-width: 680px;
    margin: 0;
    color: #465243;
    font-size: 15px;
    line-height: 1.45;
}

.library-intro .library-intro-count {
    min-width: 142px;
    border-left: 1px solid rgba(7, 59, 33, 0.16);
    padding-left: 18px;
    color: var(--green-deep);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
}

.library-filters {
    position: relative;
    top: auto;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, .7fr) minmax(160px, .6fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    width: 100%;
    max-width: 100%;
}

.library-filters label {
    display: grid;
    gap: 6px;
    color: inherit;
    font: inherit;
    min-width: 0;
}

.library-filters label > span { color: #465243; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.library-filters input,
.library-filters select { width: 100%; max-width: 100%; min-width: 0; padding: 0 16px; box-sizing: border-box; }
.library-filter-actions { display: flex; gap: 8px; align-self: end; }
.library-filter-actions .button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.library-filter-summary { margin: -14px 0 22px; color: #465243; font-weight: 700; }
.library-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 30px 0 8px; }
.library-pagination a { min-width: 42px; min-height: 42px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(7,59,33,.18); border-radius: 10px; background: #fff; color: var(--green-deep); font-weight: 800; text-decoration: none; }
.library-pagination a:hover,
.library-pagination a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }

.library-search {
    position: relative;
}

.library-search-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border: 3px solid #102015;
    border-radius: 50%;
}

.library-search-icon::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: -6px;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: #102015;
    transform: rotate(45deg);
}

.library-filters input,
.library-filters select,
.library-toggle,
.library-clear {
    min-height: 56px;
    border: 1px solid rgba(28, 36, 26, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(28, 36, 26, 0.06);
    color: #1f2b22;
    font-size: 16px;
}

.library-search input {
    width: 100%;
    padding: 12px 18px 12px 74px;
    font-size: 20px;
}

.library-select select {
    width: 100%;
    padding: 0 42px 0 22px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #102015 50%),
        linear-gradient(135deg, #102015 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 25px,
        calc(100% - 18px) 25px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.library-filters .library-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px 0 14px;
    white-space: nowrap;
}

.library-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.library-toggle::before {
    content: "";
    display: inline-block;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #b8b9b4;
    box-shadow: inset 0 0 0 2px rgba(28, 36, 26, 0.08);
}

.library-toggle::after {
    content: "";
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(28, 36, 26, 0.22);
    transition: transform 0.18s ease;
}

.library-toggle:has(input:checked)::before {
    background: #d88712;
}

.library-toggle:has(input:checked)::after {
    transform: translateX(20px);
}

.library-toggle span {
    font-weight: 700;
}

.library-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    text-decoration: none;
    white-space: nowrap;
}

.library-filters .library-category-filter {
    display: none;
}

.library-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.library-list {
    gap: 12px;
}

.library-row {
    position: relative;
    grid-template-columns: 128px minmax(220px, 1fr) minmax(570px, 630px);
    gap: 20px;
    min-height: 154px;
    padding: 18px 22px;
    border: 1px solid rgba(28, 36, 26, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 14px rgba(28, 36, 26, 0.035);
}

.library-row-cover {
    width: 112px;
    height: 112px;
    border-radius: 6px;
    background: #f6f4ed;
}

.library-row-cover img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.library-row-main h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 2.4vw, 34px);
    letter-spacing: 0;
}

.library-row-main p {
    margin-bottom: 22px;
    color: #3f443f;
    font-size: 16px;
}

.library-facts {
    gap: 0;
    margin-top: 0;
}

.library-facts .library-fact {
    position: relative;
    display: inline-grid;
    align-items: center;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 16px;
    color: #232a23;
    font-size: 14px;
}

.library-facts .library-fact:first-child {
    padding-left: 0;
}

.library-facts .library-fact:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 1px;
    height: 20px;
    background: rgba(28, 36, 26, 0.15);
}

.library-facts small {
    display: block;
    margin-top: -2px;
    color: #6b716b;
    font-size: 11px;
}

.library-row-status {
    display: grid;
    grid-template-columns: 352px minmax(136px, 160px);
    grid-template-areas:
        "metrics actions";
    gap: 24px;
    align-content: center;
    align-items: center;
    align-self: stretch;
    padding: 10px 0 10px 20px;
    border-left: 1px solid rgba(28, 36, 26, 0.12);
    text-align: left;
}

.library-row-status > strong {
    grid-area: badge;
    justify-self: start;
    min-height: 42px;
    border: 1px solid rgba(58, 135, 42, 0.2);
    border-radius: 12px;
    padding: 9px 18px;
    background: #eef8e9;
    color: #12431f;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.library-row-status > strong::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
}

.library-row-metrics {
    grid-area: metrics;
    display: grid;
    grid-template-columns: 104px 54px 90px 52px 52px;
    width: 352px;
}

.library-row-metrics div {
    display: grid;
    gap: 3px;
    padding-right: 10px;
}

.library-row-metrics div + div {
    border-left: 1px solid rgba(28, 36, 26, 0.14);
    padding-left: 10px;
}

.library-row-metrics > div > span {
    color: #303832;
    font-size: 12px;
}

.library-row-metrics .library-player-inline-icon,
.library-rating-row .library-player-inline-icon {
    display: inline-flex;
    align-items: center;
    width: 13px;
    height: 13px;
    color: #303832;
}

.library-row-metrics .library-player-inline-icon svg,
.library-rating-row .library-player-inline-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.library-row-metrics strong {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 21px;
    line-height: 1;
}

.library-row-metrics .library-player-value,
.library-row-metrics .library-duration-value,
.library-rating-row .library-duration-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.library-row-metrics .library-player-value,
.library-rating-row .library-player-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: nowrap;
}

.library-row-metrics .library-player-main,
.library-rating-row .library-player-main {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.library-row-metrics .library-player-main > span:not(.library-player-inline-icon),
.library-rating-row .library-player-main > span:not(.library-player-inline-icon) {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.library-row-metrics strong small,
.library-rating-row strong small {
    color: #4e594f;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: none;
}

.library-row-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(134px, 1fr);
    justify-items: center;
    gap: 8px;
    width: auto;
}

.library-row-actions > .button,
.library-row-actions .library-loan-form,
.library-row-actions .library-loan-form .button {
    width: 100%;
}

.library-row-actions > .button,
.library-row-actions .library-loan-form .button {
    min-height: 42px;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.library-row-actions .library-loan-form .button::before,
.library-row-actions > .button::before {
    content: "♙";
    margin-right: 10px;
    font-size: 18px;
}

.library-bgg-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.library-row-actions .library-loan-form .button::before,
.library-row-actions > .button::before {
    content: none;
    margin-right: 0;
}

@media (min-width: 1320px) {
    .library-row {
        grid-template-columns: 128px minmax(260px, 1fr) minmax(570px, 630px);
        gap: 20px;
        padding: 18px 22px;
    }

    .library-row-status {
        grid-template-columns: 352px minmax(136px, 160px);
        gap: 24px;
        padding: 10px 0 10px 20px;
    }

    .library-row-actions {
        grid-template-columns: minmax(134px, 1fr);
    }

    .library-row-actions > .button,
    .library-row-actions .library-loan-form .button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .library-hero,
    .library-filters,
    .library-grid,
    .library-row {
        grid-template-columns: 1fr;
    }

    .library-hero {
        align-items: start;
    }

    .library-hero::after {
        right: -34vw;
        bottom: -54px;
        width: 86vw;
        opacity: 0.42;
    }

    .library-filters {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .library-filter-actions { grid-column: 1 / -1; }

    .library-intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .library-intro .library-intro-count {
        width: 100%;
        border-left: 0;
        border-top: 1px solid rgba(7, 59, 33, 0.16);
        padding: 12px 0 0;
        text-align: left;
    }

    .library-row {
        align-items: start;
        gap: 14px;
    }

    .library-row-score {
        justify-items: start;
        border-left: 0;
        padding-left: 0;
        text-align: left;
    }

    .library-row-status {
        grid-template-columns: 1fr;
        grid-template-areas:
            "metrics"
            "actions";
        width: 100%;
        border-left: 0;
        padding: 0;
        justify-items: start;
        text-align: left;
    }

    .library-row-actions {
        width: min(100%, 280px);
    }

    .library-row-metrics {
        grid-template-columns: 104px 54px 90px;
        width: 248px;
        row-gap: 12px;
    }

    .library-row-metrics div:nth-child(3n + 1) {
        border-left: 0;
        padding-left: 0;
    }

    .library-row-status > strong,
    .library-row-status > span {
        justify-self: start;
    }

    .library-loan-form {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .events-calendar-cta { grid-template-columns: auto minmax(0, 1fr); width: calc(100% - 24px); padding: 20px; }
    .events-calendar-button { grid-column: 1 / -1; width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 620px) {
    .library-filters { grid-template-columns: 1fr; padding: 16px; border: 1px solid rgba(7,59,33,.14); border-radius: 14px; background: #fffdf8; }
    .library-filter-actions { grid-column: auto; width: 100%; }
    .library-filter-actions .button { flex: 1; }
    .library-stats,
    .library-rating-row {
        grid-template-columns: 1fr;
    }

    .library-hero h1 {
        font-size: clamp(44px, 14vw, 64px);
    }

    .library-stats article {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .library-stats article,
    .library-rating-row div {
        border-right: 0;
        border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    }

    .library-stats article:last-child,
    .library-rating-row div:last-child {
        border-bottom: 0;
    }
}

.member-account-page {
    background: #f7f6f0;
}

.member-library-page {
    min-height: 100vh;
    background: #f3f0e7;
}

.member-library-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 150px 0 90px;
}

.member-library-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(18, 63, 28, 0.2);
}

.member-library-hero h1 {
    margin: 4px 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.member-library-hero h1 span {
    color: #fff;
}

.member-library-hero p:last-child,
.member-library-heading p {
    max-width: 680px;
    color: var(--ink-soft);
}

.member-library-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 22px 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.member-library-breadcrumbs a {
    color: var(--primary);
}

.member-library-heading {
    margin: 8px 0 22px;
}

.member-library-heading h2 {
    margin: 3px 0 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    text-transform: uppercase;
}

.member-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.member-library-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(18, 63, 28, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 36px rgba(6, 31, 12, 0.06);
}

.member-library-folder {
    color: var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.member-library-folder:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 63, 28, 0.38);
    box-shadow: 0 18px 40px rgba(6, 31, 12, 0.1);
}

.member-library-card strong {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 21px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.member-library-card small,
.member-library-card p {
    display: block;
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.member-library-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: rgba(18, 63, 28, 0.1);
    color: var(--primary);
    font-size: 19px;
}

.member-library-arrow {
    color: var(--accent);
    font-size: 25px;
}

.member-library-document {
    grid-column: 1 / -1;
}

.member-library-document-actions,
.member-document-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.member-document-viewer {
    padding-top: 28px;
}

.member-document-viewer-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 20px;
}

.member-document-viewer-header h2 {
    margin: 3px 0 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.95;
    text-transform: uppercase;
}

.member-document-viewer-header p:last-child {
    color: var(--ink-soft);
}

.member-document-viewer-frame {
    display: grid;
    min-height: 420px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(18, 63, 28, 0.18);
    border-radius: 4px;
    background: #dfded7;
    box-shadow: 0 18px 44px rgba(6, 31, 12, 0.09);
}

.member-document-viewer-frame iframe {
    width: 100%;
    height: min(76vh, 920px);
    min-height: 620px;
    border: 0;
    background: #fff;
}

.member-document-viewer-frame img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.member-library-empty {
    padding: 48px 28px;
    border: 1px dashed rgba(18, 63, 28, 0.28);
    text-align: center;
}

.member-library-empty h2 {
    margin-bottom: 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.member-library-empty p {
    color: var(--ink-soft);
}

@media (max-width: 760px) {
    .member-library-main {
        width: min(100% - 24px, 1180px);
        padding-top: 110px;
    }

    .member-library-hero {
        display: grid;
        align-items: start;
    }

    .member-library-grid {
        grid-template-columns: 1fr;
    }

    .member-library-document {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .member-library-document .button {
        flex: 1 1 130px;
        text-align: center;
    }

    .member-library-document-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .member-document-viewer-header {
        display: grid;
        align-items: start;
    }

    .member-document-viewer-actions {
        justify-content: stretch;
    }

    .member-document-viewer-actions .button {
        flex: 1 1 170px;
        text-align: center;
    }

    .member-document-viewer-frame {
        min-height: 320px;
    }

    .member-document-viewer-frame iframe {
        height: 70vh;
        min-height: 480px;
    }
}

.member-account-page .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 63, 28, 0.12);
}

.member-account-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 130px 0 80px;
}

.member-account-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 34px;
}

.member-account-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.92;
    text-transform: uppercase;
}

.member-account-hero-logged {
    gap: 12px;
    margin-bottom: 24px;
}

.member-account-hero-logged h1 {
    max-width: 620px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 0.98;
}

.member-account-hero h1 span {
    padding: 0;
    background: transparent;
    color: var(--primary);
}

.member-account-hero > p {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.55;
}

.member-account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
    border: 1px solid rgba(18, 63, 28, 0.15);
    background: #fff;
}

.member-account-summary article {
    padding: 18px 20px;
    border-right: 1px solid rgba(18, 63, 28, 0.12);
}

.member-account-summary article:last-child {
    border-right: 0;
}

.member-account-summary span,
.member-list-row span,
.panel-note {
    color: var(--ink-soft);
}

.member-account-summary span {
    display: block;
    margin-bottom: 5px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.member-account-summary strong {
    display: block;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}

.member-account-summary .is-ok {
    color: #1f6d32;
}

.member-account-summary .is-warning {
    color: #bd7b1c;
}

.member-account-flash {
    position: fixed;
    z-index: 1200;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(18, 63, 28, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 63, 28, 0.18);
    padding: 18px 20px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.member-account-flash.error {
    border-color: rgba(150, 35, 35, 0.35);
    color: #962323;
}

.member-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.member-panel {
    display: grid;
    gap: 18px;
    border: 1px solid rgba(18, 63, 28, 0.16);
    background: #fff;
    padding: 24px;
}

.member-panel-wide {
    grid-column: span 1;
}

.panel-heading {
    display: grid;
    gap: 5px;
}

.panel-heading h2 {
    margin: 0;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 0.95;
    text-transform: uppercase;
}

.panel-note {
    margin: 0;
    line-height: 1.55;
}

.member-form {
    display: grid;
    gap: 14px;
}

.member-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.member-form label {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.member-form input,
.member-form select,
.member-form textarea {
    width: 100%;
    border: 1px solid rgba(18, 63, 28, 0.22);
    background: #faf8f0;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
}

.member-form textarea {
    resize: vertical;
}

.member-form .button {
    justify-self: start;
}

.check-row {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px !important;
    align-items: start;
    color: var(--ink-soft) !important;
    font-weight: 500 !important;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.member-list {
    display: grid;
    gap: 10px;
}

.member-list h3 {
    margin: 8px 0 0;
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}

.member-list-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(18, 63, 28, 0.12);
    padding-top: 12px;
}

.member-list-row div {
    min-width: 0;
}

.member-list-row strong {
    display: block;
    color: var(--primary);
}

.member-list-row span {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.member-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.member-event-card {
    border: 1px solid rgba(13, 56, 29, 0.14);
    background: var(--surface-warm);
    padding: 16px;
    border-radius: 6px;
}

.member-event-card h3 {
    margin: 10px 0 6px;
    color: var(--primary);
    font-size: 1.2rem;
}

.member-event-card p {
    margin: 4px 0;
    color: var(--muted);
}

.member-event-reservations .member-list-row {
    align-items: flex-start;
}

.member-inline-form {
    margin-top: 20px;
    border: 1px solid rgba(13, 56, 29, 0.14);
    border-radius: 6px;
    background: #fff;
    padding: 14px;
}

.member-inline-form summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 800;
}

.member-inline-form[open] summary {
    margin-bottom: 16px;
}

.member-list-actions a,
.member-panel-actions a {
    color: var(--primary);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-panel-actions a.button {
    color: #fff;
}

.member-panel-actions {
    border-top: 1px solid rgba(18, 63, 28, 0.12);
    padding-top: 14px;
}

.mini-badge {
    display: inline-flex !important;
    align-items: center;
    width: max-content;
    border: 1px solid rgba(18, 63, 28, 0.15);
    background: #f1eee4;
    padding: 5px 9px;
    color: var(--primary) !important;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-badge.ok {
    background: #e7f1e5;
    color: #1f6d32 !important;
}

.mini-badge.warning {
    background: #fff2d8;
    color: #9c6417 !important;
}

.mini-badge.danger {
    background: #f7e3df;
    color: #962323 !important;
}

@media (max-width: 900px) {
    .member-account-main {
        width: min(100% - 28px, 720px);
        padding-top: 96px;
    }

    .member-account-hero-logged h1 {
        font-size: clamp(32px, 8vw, 46px);
    }

    .member-account-grid,
    .member-account-summary,
    .member-event-grid {
        grid-template-columns: 1fr;
    }

    .member-account-summary article {
        border-right: 0;
        border-bottom: 1px solid rgba(18, 63, 28, 0.12);
    }

    .member-account-summary article:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .member-account-main {
        padding-top: 82px;
    }

    .member-panel {
        padding: 18px;
    }

    .member-form-row,
    .member-list-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .member-list-actions {
        justify-content: flex-start;
    }
}
/* Fotos publicadas tras la celebración de un evento */
.event-photo-gallery {
    margin-top: clamp(36px, 6vw, 72px);
}

.event-photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.event-photo-gallery-grid figure {
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(21, 45, 27, 0.1);
}

.event-photo-gallery-grid a,
.event-photo-gallery-grid img {
    display: block;
    width: 100%;
}

.event-photo-gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 180ms ease;
}

.event-photo-gallery-grid a:hover img {
    transform: scale(1.025);
}

.event-photo-gallery-grid figcaption {
    padding: 11px 14px 13px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .event-photo-gallery-grid {
        grid-template-columns: 1fr;
    }
}
