: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;
}

.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;
}

.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-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.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;
}

.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-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-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);
}

.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;
    }

    .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;
    }

    .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;
    }
}

@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) 178px repeat(4, minmax(126px, 1fr)) minmax(150px, auto);
    gap: 12px;
    align-items: center;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.library-filters label {
    display: block;
    color: inherit;
    font: inherit;
}

.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;
    }

    .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: 620px) {
    .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-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;
    }
}
