﻿@layer reset, tokens, base, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }

  button,
  input,
  textarea {
    font: inherit;
  }

  button {
    border: 0;
  }

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

@layer tokens {
  :root {
    --club-green: oklch(24% 0.062 158);
    --club-green-2: oklch(31% 0.076 154);
    --fairway: oklch(40% 0.088 152);
    --ivory: oklch(96% 0.025 84);
    --sand: oklch(90% 0.042 82);
    --paper: oklch(98% 0.012 88);
    --white: oklch(100% 0 0);
    --gold: oklch(64% 0.082 72);
    --gold-soft: oklch(88% 0.034 86);    --ink: oklch(18% 0.035 155);
    --muted: oklch(38% 0.028 150);
    --faint: oklch(54% 0.026 120);
    --line: oklch(84% 0.025 92);
    --line-strong: oklch(73% 0.036 88);
    --dark: oklch(18% 0.037 155);
    --dark-muted: oklch(76% 0.028 105);
    --shadow: 0 20px 54px oklch(18% 0.04 155 / 0.14);
    --shadow-strong: 0 30px 78px oklch(14% 0.05 155 / 0.24);
    --section: min(1120px, calc(100% - 48px));
    --header-height: 64px;
    --radius: 8px;
    --font-serif: "Cormorant Garamond", "Noto Serif KR", Georgia, "Times New Roman", serif;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    min-width: 320px;
    color: var(--ink);
    background:
      linear-gradient(90deg, oklch(39% 0.08 155 / 0.02) 1px, transparent 1px) 0 0 / 104px 104px,
      linear-gradient(180deg, var(--ivory), oklch(94% 0.024 84) 46%, var(--ivory));
    font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.modal-open {
    overflow: hidden;
  }

  ::selection {
    color: var(--white);
    background: var(--club-green);
  }

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

  button {
    color: inherit;
    cursor: pointer;
    background: transparent;
  }

  input,
  textarea {
    color: inherit;
  }

  kolon-site-header,
  kolon-hero,
  kolon-intro,
  kolon-principles,
  kolon-image-statement,
  kolon-schedule,
  kolon-members,
  kolon-archive,
  kolon-guestbook,
  kolon-join,
  kolon-modal-stack,
  kolon-bottom-notice,
  kolon-footer {
    display: block;
  }

  kolon-intro[id],
  kolon-schedule[id],
  kolon-members[id],
  kolon-archive[id],
  kolon-guestbook[id] {
    scroll-margin-top: 92px;
  }

  h1,
  h2,
  h3,
  p {
    margin-top: 0;
  }
}

@layer components {
  .scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 220;
    height: 3px;
    background: transparent;
  }

  .scroll-progress::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(var(--progress, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--club-green), var(--gold));
  }

  .site-section {
    width: var(--section);
    margin-inline: auto;
    padding-block: clamp(64px, 8vw, 110px);
    container-type: inline-size;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 140;
    color: var(--ink);
    background: oklch(96% 0.025 84 / 0.9);
    border-bottom: 1px solid oklch(73% 0.036 88 / 0.58);
    backdrop-filter: blur(18px);
    transition: background 180ms ease, box-shadow 180ms ease;
  }

  .site-header.is-scrolled,
  .site-header.menu-open {
    background: oklch(98% 0.014 92 / 0.97);
    box-shadow: 0 12px 34px oklch(18% 0.04 155 / 0.1);
  }

  .site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--club-green), transparent);
    opacity: 0.7;
  }

  .desktop-bar,
  .mobile-bar {
    width: var(--section);
    min-height: var(--header-height);
    margin-inline: auto;
    align-items: center;
  }

  .desktop-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
  }

  .mobile-bar {
    display: none;
  }

  .brand {
    min-width: 0;
    display: inline-grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    justify-self: start;
    font-weight: 800;
    line-height: 1.05;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    position: relative;
    display: block;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 4px), var(--club-green);
    box-shadow: 0 0 0 5px oklch(64% 0.082 72 / 0.14);
  }

  .brand-mark::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    width: 1px;
    height: 15px;
    background: var(--white);
  }

  .brand-mark::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 6px;
    width: 8px;
    height: 6px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 18%, 0 100%);
  }

  .brand strong,
  .brand.compact strong,
  .footer-brand strong {
    min-width: 0;
    color: var(--club-green);
    font-size: 20px;
  }

  .brand span:not(.brand-mark) {
    grid-column: 2;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-transform: lowercase;
  }

  .main-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
  }

  .main-nav a,
  .mobile-panel a,
  .mobile-panel button,
  .account-links button,
  .site-footer nav a,
  .site-footer nav button {
    position: relative;
    transition: color 160ms ease, opacity 160ms ease;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 160ms ease;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"],
  .account-links button:hover,
  .account-links button:focus-visible,
  .mobile-panel a:hover,
  .mobile-panel a:focus-visible,
  .mobile-panel button:hover,
  .mobile-panel button:focus-visible {
    color: var(--club-green);
    outline: none;
  }

  .main-nav a:hover::after,
  .main-nav a:focus-visible::after,
  .main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .account-links {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    color: var(--club-green);
    font-size: 12px;
    font-weight: 800;
  }

  .account-links button:first-child {
    color: var(--ink);
  }

  .account-links button + button {
    min-height: 34px;
    padding: 0 14px;
    color: var(--white);
    background: var(--club-green);
    border: 1px solid var(--club-green);
    border-radius: 2px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--club-green);
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    width: 17px;
    height: 1.5px;
    display: block;
    background: currentColor;
  }

  .menu-toggle {
    gap: 4px;
  }

  .search-link {
    position: relative;
  }

  .search-link::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    transform: translate(-1px, -1px);
  }

  .search-link::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 1.6px;
    background: currentColor;
    transform: translate(8px, 8px) rotate(45deg);
  }

  .mobile-panel {
    display: none;
  }

  .hero-band {
    position: relative;
    min-height: 640px;
    margin-top: var(--header-height);
    overflow: clip;
    color: var(--ivory);
    background:
      linear-gradient(120deg, oklch(15% 0.04 160) 0 24%, oklch(21% 0.056 155) 60%, oklch(27% 0.07 151) 100%),
      var(--club-green);
  }

  .hero-band::before {
    content: "";
    position: absolute;
    inset: -20% -10% -16%;
    opacity: 0.15;
    background:
      radial-gradient(ellipse at 22% 80%, transparent 0 18%, var(--gold) 18.2% 18.6%, transparent 18.8%),
      radial-gradient(ellipse at 78% 12%, transparent 0 20%, var(--sand) 20.2% 20.6%, transparent 20.8%),
      repeating-linear-gradient(112deg, transparent 0 42px, oklch(96% 0.025 84 / 0.13) 42px 43px);
  }

  .hero-band::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--gold);
    opacity: 0.85;
  }

  .hero-course-svg,
  .intro-course-svg,
  .schedule-course-svg,
  .archive-course-svg,
  .join-flag-svg {
    pointer-events: none;
  }

  .hero-course-svg {
    position: absolute;
    inset: 32px max(30px, calc((100vw - 1120px) / 2)) auto auto;
    z-index: 0;
    width: min(560px, 48vw);
    height: auto;
    opacity: 0.48;
    mix-blend-mode: screen;
  }

  .hero-course-svg .svg-fairway,
  .hero-course-svg .svg-flagpole,
  .hero-course-svg .svg-ball-trail,
  .intro-course-svg path,
  .schedule-course-svg path,
  .archive-course-svg path,
  .join-flag-svg path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hero-course-svg .svg-fairway {
    color: oklch(92% 0.04 105);
    stroke-width: 2;
  }

  .hero-course-svg .svg-fairway.soft {
    stroke-width: 1.2;
    opacity: 0.52;
  }

  .hero-course-svg .svg-green {
    fill: oklch(64% 0.082 72 / 0.18);
    stroke: var(--gold);
    stroke-width: 1.5;
  }

  .hero-course-svg .svg-cup,
  .hero-course-svg .svg-ball {
    fill: var(--gold);
  }

  .hero-course-svg .svg-flagpole,
  .hero-course-svg .svg-ball-trail {
    color: var(--gold);
    stroke-width: 2;
  }

  .hero-course-svg .svg-flag {
    fill: var(--gold);
  }

  .hero-inner {
    width: var(--section);
    min-height: 640px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 54px;
    position: relative;
    z-index: 1;
  }

  .hero-copy {
    max-width: 580px;
    padding-block: 76px 66px;
  }

  .section-kicker {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .hero-copy h1 {
    margin-bottom: 28px;
    color: var(--ivory);
    font-family: var(--font-serif);
    font-size: 60px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.005em;
  }

  .hero-copy p:not(.section-kicker) {
    max-width: 540px;
    margin-bottom: 28px;
    color: oklch(93% 0.018 100);
    font-size: 18px;
  }

  .hero-meta-strip {
    max-width: 560px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
    border: 1px solid oklch(88% 0.034 86 / 0.42);
    background: oklch(96% 0.025 84 / 0.09);
    backdrop-filter: blur(14px);
  }

  .hero-meta-strip span {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 13px 15px;
    color: oklch(94% 0.018 100);
    font-size: 13px;
    border-right: 1px solid oklch(88% 0.034 86 / 0.28);
  }

  .hero-meta-strip span:last-child {
    border-right: 0;
  }

  .hero-meta-strip strong {
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
  }

  .hero-media {
    min-height: 520px;
    margin: 0;
    position: relative;
    display: grid;
    align-items: end;
  }

  .hero-media::before {
    content: "";
    position: absolute;
    inset: 20px -18px 54px 38px;
    border: 1px solid oklch(88% 0.034 86 / 0.64);
    background: oklch(96% 0.025 84 / 0.08);
  }

  .hero-photo-tag {
    position: absolute;
    top: 2px;
    right: 18px;
    z-index: 3;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 470px;
    object-fit: cover;
    object-position: center;
    border: 1px solid oklch(88% 0.034 86 / 0.38);
    box-shadow: var(--shadow-strong);
    transition: opacity 220ms ease, transform 900ms ease;
  }

  .hero-media img.is-switching {
    opacity: 0.18;
    transform: scale(1.012);
  }

  .hero-media figcaption,
  .hero-course-card {
    position: absolute;
    z-index: 2;
    display: grid;
    color: var(--ivory);
    background: oklch(16% 0.035 155 / 0.78);
    border: 1px solid oklch(88% 0.034 86 / 0.32);
    backdrop-filter: blur(14px);
  }

  .hero-media figcaption {
    left: 22px;
    bottom: 76px;
    gap: 3px;
    padding: 13px 15px;
  }

  .hero-media figcaption span,
  .hero-course-card span,
  .hero-course-card small {
    color: oklch(84% 0.04 90);
    font-size: 12px;
  }

  .hero-media figcaption strong,
  .hero-course-card strong {
    font-size: 15px;
  }

  .hero-course-card {
    right: 0;
    bottom: 0;
    width: min(330px, 74%);
    gap: 4px;
    padding: 17px 18px;
  }

  .hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid oklch(88% 0.034 86 / 0.48);
    border-radius: 999px;
    background: oklch(18% 0.037 155 / 0.62);
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease;
  }

  .hero-arrow:hover,
  .hero-arrow:focus-visible {
    color: var(--ink);
    background: var(--gold);
    outline: none;
  }

  .hero-arrow-prev {
    left: 18px;
  }

  .hero-arrow-next {
    right: 18px;
  }

  .hero-arrow span {
    margin-top: -2px;
    font-size: 26px;
    line-height: 1;
  }

  .solid-button,
  .line-button,
  .text-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 900;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .solid-button {
    color: var(--ivory);
    border: 1px solid var(--club-green);
    background: var(--club-green);
  }

  .hero-copy .solid-button {
    color: var(--ink);
    border-color: var(--gold);
    background: var(--gold);
  }

  .line-button,
  .text-button {
    color: var(--club-green);
    border: 1px solid var(--line-strong);
    background: var(--paper);
  }

  .hero-copy .line-button {
    color: var(--ivory);
    border-color: oklch(88% 0.034 86 / 0.54);
    background: transparent;
  }

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

  .text-button::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .solid-button:hover,
  .solid-button:focus-visible,
  .line-button:hover,
  .line-button:focus-visible,
  .text-button:hover,
  .text-button:focus-visible {
    color: var(--ink);
    border-color: var(--gold);
    background: var(--gold);
    outline: none;
    transform: translateY(-1px);
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .button-row.center {
    justify-content: center;
  }

  .intro-section {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 70px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }

  .intro-section::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(260px, 38%);
    height: 3px;
    background: linear-gradient(90deg, var(--club-green), var(--gold));
  }

  .intro-course-svg {
    position: absolute;
    right: 0;
    bottom: 18px;
    width: min(360px, 42%);
    color: oklch(29% 0.073 155 / 0.18);
  }

  .intro-course-svg circle {
    fill: oklch(64% 0.082 72 / 0.12);
    stroke: oklch(64% 0.082 72 / 0.35);
    stroke-width: 1.5;
  }

  .intro-course-svg path {
    stroke-width: 2;
  }

  .intro-course-svg path:last-child {
    color: oklch(64% 0.082 72 / 0.5);
  }

  .intro-title h2,
  .section-heading h2,
  .join-section h2,
  .statement-copy h2 {
    margin-bottom: 0;
    color: var(--club-green);
    font-family: var(--font-serif);
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .intro-copy p,
  .section-heading > p,
  .join-section > p {
    color: var(--muted);
  }

  .intro-copy p {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: 17px;
  }

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

  .principle-item {
    min-height: 230px;
    position: relative;
    padding: 26px 22px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    background:
      linear-gradient(150deg, var(--paper), oklch(94% 0.026 98)),
      var(--paper);
    box-shadow: 0 14px 34px oklch(18% 0.04 155 / 0.08);
  }

  .principle-item::after {
    content: "";
    position: absolute;
    inset: auto -40px -58px auto;
    width: 150px;
    height: 150px;
    border: 1px solid oklch(64% 0.082 72 / 0.22);
    border-radius: 999px;
  }

  .principle-index {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
  }

  .principle-icon {
    width: 44px;
    height: 44px;
    margin-top: 24px;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--club-green);
    border: 1px solid oklch(29% 0.073 155 / 0.22);
    background: oklch(100% 0 0 / 0.58);
  }

  .principle-svg-icon {
    width: 30px;
    height: 30px;
    color: var(--club-green);
  }

  .principle-svg-icon path,
  .principle-svg-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .principle-svg-icon circle {
    fill: oklch(64% 0.082 72 / 0.18);
    stroke: var(--gold);
  }

  .principle-item h3 {
    margin: 18px 0 10px;
    color: var(--ink);
    font-size: 17px;
  }

  .principle-item p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
  }

  .icon-calendar::before {
    content: "";
    position: absolute;
    inset: 12px 10px 9px;
    border: 3px solid currentColor;
    border-top-width: 6px;
    border-radius: 3px;
  }

  .icon-calendar::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 7px;
    width: 10px;
    height: 9px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
  }

  .icon-members::before,
  .icon-members::after {
    content: "";
    position: absolute;
    background: currentColor;
  }

  .icon-members::before {
    width: 22px;
    height: 14px;
    left: 10px;
    top: 12px;
    border-radius: 999px 999px 3px 3px;
  }

  .icon-members::after {
    width: 28px;
    height: 4px;
    left: 7px;
    bottom: 11px;
  }

  .icon-heart::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 11px;
    width: 20px;
    height: 20px;
    border: 3px solid currentColor;
    border-radius: 999px;
  }

  .icon-heart::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 5px;
    width: 2px;
    height: 18px;
    background: currentColor;
  }

  .image-statement {
    position: relative;
    min-height: 390px;
    display: grid;
    align-items: end;
    overflow: clip;
    color: var(--ivory);
    background: var(--dark);
  }

  .image-statement::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, oklch(12% 0.035 155 / 0.84), oklch(12% 0.035 155 / 0.22)),
      linear-gradient(0deg, oklch(12% 0.035 155 / 0.45), transparent 54%);
  }

  .image-statement img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
  }

  .statement-copy {
    width: var(--section);
    margin-inline: auto;
    position: relative;
    z-index: 1;
    padding-block: 92px 46px;
  }

  .statement-copy h2 {
    max-width: 580px;
    color: var(--ivory);
  }

  .statement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
  }

  .statement-badges span,
  .featured-badges span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--ink);
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading.centered {
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
  }

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

  .section-heading.split > p {
    max-width: 420px;
    margin-bottom: 0;
  }

  .section-heading h2 {
    margin-bottom: 14px;
  }

  .section-heading.compact {
    margin: 48px 0 20px;
  }

  .section-heading.compact h3 {
    margin: 0;
    color: var(--club-green);
    font-size: 22px;
  }

  .schedule-section {
    position: relative;
  }

  .schedule-board {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.97fr);
    border: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .next-event {
    min-height: 330px;
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;
    padding: 34px;
    color: var(--ivory);
    background:
      linear-gradient(135deg, oklch(19% 0.052 155 / 0.96), oklch(37% 0.092 152 / 0.94)),
      var(--club-green);
    overflow: hidden;
  }

  .schedule-course-svg {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: min(320px, 58%);
    color: oklch(96% 0.025 84 / 0.2);
  }

  .schedule-course-svg path {
    stroke-width: 2;
  }

  .schedule-course-svg circle {
    fill: oklch(64% 0.082 72 / 0.14);
    stroke: oklch(88% 0.034 86 / 0.36);
    stroke-width: 1.5;
  }

  .schedule-course-svg circle:last-child {
    fill: var(--gold);
    stroke: none;
  }

  .next-event::after {
    content: "";
    position: absolute;
    inset: -58px -70px auto auto;
    width: 230px;
    height: 230px;
    border: 1px solid oklch(88% 0.034 86 / 0.34);
    border-radius: 999px;
  }

  .event-date-lockup {
    width: 150px;
    min-height: 180px;
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    color: var(--ink);
    border: 1px solid oklch(88% 0.034 86 / 0.7);
    background: var(--gold);
    box-shadow: 0 18px 36px oklch(14% 0.05 155 / 0.18);
  }

  .event-date-lockup span,
  .event-date-lockup small {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .event-date-lockup strong {
    font-size: 38px;
    line-height: 1;
  }

  .event-content {
    position: relative;
    z-index: 1;
  }

  .event-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }

  .event-topline > span {
    color: oklch(88% 0.034 86);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .event-state {
    width: fit-content;
    margin-bottom: 0;
    padding: 5px 10px;
    color: var(--ink);
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
  }

  .next-event h3 {
    margin-bottom: 16px;
    color: var(--ivory);
    font-size: 30px;
    line-height: 1.28;
  }

  .next-event p:not(.event-state) {
    max-width: 450px;
    margin-bottom: 0;
    color: oklch(90% 0.02 100);
  }

  .event-detail-panel {
    display: grid;
    align-content: center;
    gap: 26px;
    padding: 34px;
    background:
      linear-gradient(135deg, oklch(99% 0.008 94), oklch(94% 0.024 100)),
      var(--paper);
  }

  .event-detail-panel dl {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--line);
  }

  .event-detail-panel dl div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }

  .event-detail-panel dt {
    color: var(--muted);
    font-weight: 800;
  }

  .event-detail-panel dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
  }

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

  .schedule-notes article {
    min-height: 170px;
    padding: 20px;
    border: 1px solid var(--line);
    background: oklch(99% 0.008 94 / 0.72);
  }

  .schedule-notes span {
    display: block;
    margin-bottom: 28px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
  }

  .schedule-notes h3 {
    margin-bottom: 8px;
    color: var(--club-green);
    font-size: 17px;
  }

  .schedule-notes p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
  }

  .member-tools {
    display: flex;
    align-items: end;
    gap: 10px;
  }

  .search-field {
    display: grid;
    gap: 7px;
  }

  .search-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .search-field input {
    width: 250px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
  }

  .search-field input::placeholder {
    color: var(--faint);
  }

  .search-field input:focus {
    border-color: var(--club-green);
    outline: 3px solid oklch(45% 0.105 150 / 0.16);
  }

  .staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
  }

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

  .member-card {
    min-height: 150px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    background: var(--paper);
    box-shadow: 0 12px 30px oklch(18% 0.04 155 / 0.07);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .member-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), oklch(45% 0.105 150 / 0.18));
    opacity: 0.72;
  }

  .member-card.staff-card {
    min-height: 174px;
    border-top-color: var(--club-green);
    background:
      linear-gradient(135deg, var(--club-green), var(--club-green-2)),
      var(--club-green);
    color: var(--ivory);
  }

  .member-card::after {
    content: "";
    position: absolute;
    inset: auto -34px -48px auto;
    width: 116px;
    height: 116px;
    border: 1px solid oklch(64% 0.082 72 / 0.28);
    border-radius: 999px;
    pointer-events: none;
  }

  .member-card > * {
    position: relative;
    z-index: 1;
  }

  .member-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 18px 38px oklch(18% 0.04 155 / 0.12);
  }

  .member-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: 28px;
  }

  .member-card-top span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    color: var(--ink);
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
  }

  .member-card:not(.staff-card) .member-card-top span {
    color: var(--club-green);
    background: oklch(88% 0.034 86 / 0.44);
  }

  .member-identity {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 17px;
  }

  .member-animal {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid oklch(73% 0.118 var(--animal-hue, 82) / 0.36);
    border-radius: 18px;
    background:
      radial-gradient(circle at 32% 24%, oklch(99% 0.018 94 / 0.94), transparent 42%),
      linear-gradient(145deg, oklch(96% 0.04 var(--animal-hue, 82)), oklch(88% 0.074 var(--animal-hue, 82)));
    box-shadow:
      inset 0 1px 0 oklch(100% 0 0 / 0.78),
      0 12px 22px oklch(18% 0.04 155 / 0.12);
    --animal-shine: oklch(100% 0 0 / 0.72);
  }

  .member-card.staff-card .member-animal {
    border-color: oklch(88% 0.058 var(--animal-hue, 82) / 0.58);
    background:
      radial-gradient(circle at 32% 24%, oklch(100% 0 0 / 0.96), transparent 42%),
      linear-gradient(145deg, oklch(97% 0.032 var(--animal-hue, 82)), oklch(82% 0.09 var(--animal-hue, 82)));
  }

  .member-animal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--animal-shine);
    border-radius: 14px;
    pointer-events: none;
  }

  .member-animal-emoji {
    position: relative;
    z-index: 1;
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    transform: translateY(-1px);
    filter: drop-shadow(0 5px 7px oklch(18% 0.04 155 / 0.18));
  }

  .member-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
  }

  .member-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
  }

  .member-card.staff-card p {
    color: oklch(90% 0.02 100);
  }

  .member-card p strong {
    color: inherit;
    font-weight: 900;
  }

  .member-card.is-hidden {
    display: none;
  }

  .archive-section {
    padding-block: 78px 88px;
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg, oklch(94% 0.025 100), var(--ivory)),
      var(--sand);
  }

  .archive-section .site-section {
    position: relative;
    z-index: 1;
  }

  .archive-course-svg {
    position: absolute;
    left: 50%;
    top: 20px;
    z-index: 0;
    width: min(720px, 88vw);
    color: oklch(29% 0.073 155 / 0.11);
    transform: translateX(-50%);
  }

  .archive-course-svg path {
    stroke-width: 2;
  }

  .archive-course-svg circle {
    fill: oklch(64% 0.082 72 / 0.09);
    stroke: oklch(64% 0.082 72 / 0.26);
    stroke-width: 1.4;
  }

  .featured-round {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    margin-bottom: 28px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .featured-photo,
  .archive-photo {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    background: var(--club-green);
  }

  .featured-photo {
    min-height: 430px;
  }

  .archive-photo {
    height: 202px;
  }

  .featured-photo img,
  .archive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 300ms ease, opacity 300ms ease;
  }

  .featured-photo::after,
  .archive-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, oklch(12% 0.035 155 / 0.54), transparent 58%);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .photo-count-badge,
  .photo-gallery-cue,
  .photo-open-label {
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }

  .photo-count-badge {
    top: 16px;
    left: 16px;
    min-width: 64px;
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 9px 10px;
    border: 1px solid oklch(92% 0.03 92 / 0.62);
    border-radius: 8px;
    color: var(--ink);
    background: oklch(96% 0.038 86 / 0.92);
    box-shadow: 0 18px 34px oklch(10% 0.036 150 / 0.24);
  }

  .photo-count-badge strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 0.92;
  }

  .photo-count-badge small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 900;
  }

  .photo-gallery-cue {
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid oklch(94% 0.02 92 / 0.42);
    border-radius: 8px;
    color: var(--paper);
    background: linear-gradient(135deg, oklch(16% 0.04 150 / 0.86), oklch(23% 0.052 145 / 0.74));
    box-shadow: 0 18px 36px oklch(8% 0.036 150 / 0.28);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .photo-gallery-cue strong,
  .photo-gallery-cue small {
    display: block;
  }

  .photo-gallery-cue strong {
    font-size: 13px;
    font-weight: 900;
  }

  .photo-gallery-cue small {
    margin-top: 2px;
    color: oklch(93% 0.021 96 / 0.78);
    font-size: 11px;
    font-weight: 700;
  }

  .photo-stack-icon {
    position: relative;
    width: 48px;
    height: 38px;
    display: block;
  }

  .photo-stack-icon i {
    position: absolute;
    inset: 0;
    display: block;
    border: 2px solid oklch(96% 0.022 92 / 0.86);
    border-radius: 5px;
    background: linear-gradient(135deg, oklch(77% 0.09 82 / 0.92), oklch(56% 0.075 155 / 0.92));
    box-shadow: 0 8px 18px oklch(8% 0.035 150 / 0.22);
  }

  .photo-stack-icon i:nth-child(1) {
    transform: translate(8px, 0) rotate(5deg);
    opacity: 0.7;
  }

  .photo-stack-icon i:nth-child(2) {
    transform: translate(4px, 4px) rotate(-3deg);
    opacity: 0.86;
  }

  .photo-stack-icon i:nth-child(3) {
    transform: translate(0, 8px);
  }

  .photo-open-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--ink);
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .featured-photo:hover img,
  .featured-photo:focus-visible img,
  .archive-photo:hover img,
  .archive-photo:focus-visible img {
    transform: scale(1.035);
    opacity: 0.88;
  }

  .featured-photo:hover::after,
  .featured-photo:focus-visible::after,
  .archive-photo:hover::after,
  .archive-photo:focus-visible::after,
  .featured-photo:hover .photo-open-label,
  .featured-photo:focus-visible .photo-open-label,
  .archive-photo:hover .photo-open-label,
  .archive-photo:focus-visible .photo-open-label {
    opacity: 1;
    transform: translateY(0);
  }

  .featured-photo:hover .photo-gallery-cue,
  .featured-photo:focus-visible .photo-gallery-cue,
  .archive-photo:hover .photo-gallery-cue,
  .archive-photo:focus-visible .photo-gallery-cue {
    opacity: 0;
    transform: translateY(6px);
  }

  .featured-photo:focus-visible,
  .archive-photo:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }

  .featured-body,
  .archive-body {
    padding: 24px;
  }

  .featured-body {
    display: grid;
    align-content: center;
  }

  .archive-meta {
    margin-bottom: 10px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .featured-body h3 {
    margin-bottom: 14px;
    color: var(--club-green);
    font-size: 29px;
    line-height: 1.3;
  }

  .archive-body h3 {
    margin-bottom: 10px;
    color: var(--club-green);
    font-size: 17px;
    line-height: 1.38;
  }

  .featured-body > p:not(.archive-meta),
  .archive-body > p:not(.archive-meta) {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
  }

  .featured-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }

  .archive-details {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.52;
    list-style: none;
  }

  .archive-details li {
    position: relative;
    padding-left: 14px;
  }

  .archive-details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--gold);
  }

  .archive-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    border-top: 1px solid var(--line);
  }

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

  .archive-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 36px oklch(18% 0.04 155 / 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .archive-body > p:not(.archive-meta) {
    min-height: 68px;
  }

  .guestbook-section {
    position: relative;
  }

  .guestbook-board {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: 22px;
    align-items: start;
  }

  .guestbook-form-card,
  .guestbook-list-card,
  .archive-comment-panel {
    border: 1px solid var(--line);
    background:
      linear-gradient(145deg, var(--paper), oklch(95% 0.022 98)),
      var(--paper);
    box-shadow: 0 16px 36px oklch(18% 0.04 155 / 0.08);
  }

  .guestbook-form-card,
  .guestbook-list-card {
    padding: 24px;
  }

  .message-form {
    display: grid;
    gap: 14px;
  }

  .message-form label {
    display: grid;
    gap: 7px;
  }

  .message-form label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .message-form input,
  .message-form textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
  }

  .message-form input {
    min-height: 42px;
    padding: 0 12px;
  }

  .message-form textarea {
    min-height: 118px;
    padding: 12px;
    resize: vertical;
  }

  .message-form input:focus,
  .message-form textarea:focus {
    border-color: var(--club-green);
    outline: 3px solid oklch(45% 0.105 150 / 0.16);
  }

  .message-form input::placeholder,
  .message-form textarea::placeholder {
    color: var(--faint);
  }

  .message-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
  }

  .turnstile-slot:empty {
    display: none;
  }

  .message-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
  }

  .message-form button[disabled] {
    opacity: 0.58;
    cursor: progress;
  }

  .message-status {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .message-status.is-error {
    color: oklch(42% 0.14 28);
  }

  .message-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .message-list-head h3,
  .message-list-head h4 {
    margin: 0;
    color: var(--club-green);
    font-size: 18px;
  }

  .message-list-head .section-kicker {
    margin-bottom: 6px;
  }

  .message-list {
    display: grid;
    gap: 10px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
  }

  .message-list.compact {
    max-height: 240px;
    margin-bottom: 18px;
  }

  .message-item {
    padding: 14px;
    border: 1px solid var(--line);
    background: oklch(99% 0.008 94 / 0.74);
  }

  .message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
  }

  .message-meta strong {
    color: var(--club-green);
    font-size: 14px;
  }

  .message-meta time {
    color: var(--faint);
    font-size: 11px;
    font-weight: 900;
  }

  .message-item p,
  .message-empty {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.58;
  }

  .message-empty {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    background: oklch(99% 0.008 94 / 0.54);
  }

  .message-empty.is-error {
    color: oklch(42% 0.14 28);
  }

  .archive-comment-panel {
    margin-top: 20px;
    padding: 20px;
  }

  .join-section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-block: 86px;
    position: relative;
    overflow: hidden;
    color: var(--ivory);
    text-align: center;
    background:
      linear-gradient(120deg, oklch(18% 0.037 155), oklch(34% 0.085 152)),
      var(--club-green);
  }

  .join-section::before {
    content: "";
    position: absolute;
    inset: -20% 0;
    opacity: 0.18;
    background:
      radial-gradient(ellipse at 22% 60%, transparent 0 16%, var(--gold) 16.2% 16.7%, transparent 17%),
      repeating-linear-gradient(112deg, transparent 0 42px, var(--ivory) 42px 43px);
  }

  .join-section > .join-flag-svg {
    position: absolute;
    inset: auto 5% -28px auto;
    z-index: 0;
    width: min(520px, 62vw);
    margin: 0;
    color: oklch(96% 0.025 84 / 0.18);
  }

  .join-flag-svg path {
    stroke-width: 2;
  }

  .join-flag-svg circle {
    fill: oklch(64% 0.082 72 / 0.14);
    stroke: oklch(88% 0.034 86 / 0.34);
    stroke-width: 1.5;
  }

  .join-flag-svg circle:last-child {
    fill: var(--gold);
    stroke: none;
  }

  .join-section > * {
    position: relative;
    z-index: 1;
    width: var(--section);
    margin-inline: auto;
  }

  .join-section h2 {
    max-width: 760px;
    margin-bottom: 16px;
    color: var(--ivory);
  }

  .join-section > p {
    max-width: 600px;
    margin-bottom: 30px;
    color: oklch(90% 0.02 100);
  }

  .join-section .line-button {
    color: var(--ivory);
    border-color: oklch(88% 0.034 86 / 0.54);
    background: transparent;
  }

  .site-footer {
    color: var(--ivory);
    background: var(--dark);
  }

  .footer-inner {
    width: var(--section);
    margin-inline: auto;
    padding-block: 50px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 46px;
    align-items: start;
  }

  .footer-brand strong {
    color: var(--ivory);
  }

  .site-footer nav {
    display: grid;
    gap: 8px;
    color: var(--dark-muted);
    font-size: 13px;
    font-weight: 800;
  }

  .site-footer nav a,
  .site-footer nav button {
    width: fit-content;
    padding: 0;
    color: var(--dark-muted);
    text-align: left;
    font-weight: 900;
    background: transparent;
  }

  .site-footer nav a:hover,
  .site-footer nav a:focus-visible,
  .site-footer nav button:hover,
  .site-footer nav button:focus-visible {
    color: var(--gold);
    outline: none;
  }

  .site-footer address {
    margin: 0;
    color: var(--dark-muted);
    font-size: 12px;
    font-style: normal;
    text-align: right;
  }

  .modal {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    background: oklch(12% 0.035 155 / 0.68);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .modal.open {
    opacity: 1;
    visibility: visible;
  }

  .modal-card {
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .modal-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .modal-head .section-kicker {
    margin-bottom: 8px;
  }

  .modal-head h3 {
    margin-bottom: 0;
    color: var(--club-green);
    font-size: 22px;
  }

  .modal-head p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
  }

  .modal-body {
    padding-top: 18px;
  }

  .modal-body p {
    margin-bottom: 8px;
    color: var(--muted);
  }

  .lightbox-card {
    width: min(980px, 100%);
  }

  .lightbox-stage {
    position: relative;
    margin-top: 22px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
  }

  .lightbox-stage img {
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
    background: var(--dark);
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--ivory);
    background: var(--club-green);
    font-size: 28px;
    line-height: 1;
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    color: var(--ink);
    background: var(--gold);
    outline: none;
  }

  .lightbox-thumbs {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lightbox-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 48px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
  }

  .lightbox-thumb.active,
  .lightbox-thumb:focus-visible {
    border-color: var(--gold);
    outline: none;
  }

  .bottom-notice {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    width: min(640px, calc(100% - 44px));
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    color: var(--ivory);
    border: 1px solid oklch(88% 0.034 86 / 0.48);
    border-top: 4px solid var(--gold);
    background: oklch(18% 0.037 155 / 0.95);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .bottom-notice[hidden] {
    display: none;
  }

  .bottom-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .notice-mark {
    width: 48px;
    height: 48px;
    position: relative;
    display: block;
    border: 1px solid var(--gold);
    background: var(--club-green);
  }

  .notice-mark::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 10px;
    width: 2px;
    height: 28px;
    background: var(--ivory);
  }

  .notice-mark::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 10px;
    width: 14px;
    height: 9px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 20%, 0 100%);
  }

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

  .notice-copy p {
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .notice-copy h2 {
    margin-bottom: 3px;
    color: var(--ivory);
    font-size: 17px;
    line-height: 1.28;
  }

  .notice-copy span,
  .notice-copy small {
    display: block;
    color: oklch(84% 0.028 105);
    font-size: 12px;
    line-height: 1.45;
  }

  .notice-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .notice-check {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: oklch(84% 0.028 105);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .notice-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
  }

  .bottom-notice .line-button {
    color: var(--ivory);
    border-color: oklch(88% 0.034 86 / 0.46);
    background: transparent;
  }

  .notice-close {
    width: 34px;
    height: 34px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid oklch(88% 0.034 86 / 0.46);
    background: transparent;
  }

  .notice-close::before,
  .notice-close::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: var(--ivory);
  }

  .notice-close::before {
    transform: rotate(45deg);
  }

  .notice-close::after {
    transform: rotate(-45deg);
  }

  .notice-close:hover,
  .notice-close:focus-visible {
    background: var(--gold);
    outline: none;
  }

  .notice-close:hover::before,
  .notice-close:hover::after,
  .notice-close:focus-visible::before,
  .notice-close:focus-visible::after {
    background: var(--ink);
  }
}

@layer utilities {
  .reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @container (max-width: 700px) {
    .section-heading.split {
      align-items: stretch;
      flex-direction: column;
    }
  }

  @media (max-width: 1100px) {
    .hero-arrow {
      display: none;
    }

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

  @media (max-width: 960px) {
    :root {
      --section: min(100% - 36px, 760px);
    }

    .desktop-bar {
      gap: 18px;
    }

    .main-nav {
      gap: 22px;
    }

    .hero-inner,
    .intro-section,
    .schedule-board,
    .featured-round,
    .guestbook-board {
      grid-template-columns: 1fr;
    }

    .hero-inner {
      gap: 20px;
      padding-block: 26px 38px;
    }

    .hero-course-svg {
      width: min(520px, 70vw);
      opacity: 0.3;
    }

    .hero-copy {
      max-width: none;
      padding-block: 50px 18px;
    }

    .hero-media,
    .hero-band,
    .hero-inner {
      min-height: auto;
    }

    .hero-media::before {
      inset: 28px -12px 34px 28px;
    }

    .hero-media img {
      height: 360px;
    }

    .principles-section,
    .archive-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-notes {
      grid-template-columns: 1fr;
    }

    .schedule-course-svg {
      width: min(340px, 48%);
    }

    .staff-grid,
    .member-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
      grid-template-columns: 1fr;
    }

    .site-footer address {
      text-align: left;
    }
  }

  @media (max-width: 760px) {
    :root {
      --section: calc(100% - 28px);
      --header-height: 50px;
    }

    body {
      font-size: 14px;
      line-height: 1.6;
    }

    .desktop-bar {
      display: none;
    }

    .mobile-bar {
      min-height: var(--header-height);
      display: grid;
      grid-template-columns: 36px 1fr 36px;
      justify-items: center;
    }

    .mobile-bar .icon-button:first-child {
      justify-self: start;
    }

    .mobile-bar .icon-button:last-child {
      justify-self: end;
    }

    .brand.compact {
      column-gap: 8px;
      justify-self: center;
    }

    .brand.compact .brand-mark {
      width: 24px;
      height: 24px;
    }

    .brand.compact strong {
      font-size: 14px;
      line-height: 1;
    }

    .mobile-panel {
      width: var(--section);
      margin-inline: auto;
      padding: 12px 0 16px;
      border-top: 1px solid var(--line);
    }

    .site-header.menu-open .mobile-panel {
      display: grid;
      gap: 8px;
    }

    .mobile-panel a,
    .mobile-panel button {
      min-height: 36px;
      text-align: left;
      color: var(--club-green);
      font-size: 14px;
      font-weight: 900;
    }

    .site-section {
      padding-block: 54px;
    }

    .hero-course-svg {
      inset: 18px -38vw auto auto;
      width: 118vw;
      opacity: 0.18;
    }

    .hero-copy h1 {
      margin-bottom: 20px;
      font-size: 33px;
      line-height: 1.16;
    }

    .hero-copy p:not(.section-kicker) {
      margin-bottom: 20px;
      font-size: 15px;
    }

    .hero-meta-strip {
      grid-template-columns: 1fr;
      margin-bottom: 20px;
    }

    .hero-meta-strip span {
      min-height: 48px;
      grid-template-columns: 116px 1fr;
      align-items: center;
      border-right: 0;
      border-bottom: 1px solid oklch(88% 0.034 86 / 0.28);
    }

    .hero-meta-strip span:last-child {
      border-bottom: 0;
    }

    .hero-media::before {
      display: none;
    }

    .hero-media img {
      height: 244px;
      box-shadow: 0 16px 42px oklch(12% 0.04 155 / 0.24);
    }

    .hero-photo-tag {
      top: 12px;
      right: 12px;
    }

    .hero-media figcaption {
      left: 12px;
      bottom: 70px;
      padding: 9px 10px;
    }

    .hero-course-card {
      left: 12px;
      right: 12px;
      bottom: 12px;
      width: auto;
      padding: 12px;
    }

    .intro-title h2,
    .section-heading h2,
    .join-section h2,
    .statement-copy h2 {
      font-size: 24px;
      line-height: 1.28;
    }

    .intro-course-svg {
      display: none;
    }

    .principles-section,
    .staff-grid,
    .member-grid,
    .archive-grid {
      grid-template-columns: 1fr;
    }

    .principle-item {
      min-height: 190px;
    }

    .image-statement {
      min-height: 320px;
    }

    .statement-copy {
      padding-block: 72px 28px;
    }

    .statement-badges {
      gap: 6px;
    }

    .next-event {
      min-height: auto;
      grid-template-columns: 1fr;
      gap: 22px;
      padding: 24px 18px;
    }

    .event-date-lockup {
      width: 130px;
      min-height: 140px;
    }

    .event-date-lockup strong {
      font-size: 32px;
    }

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

    .event-detail-panel {
      padding: 22px 18px;
    }

    .event-detail-panel dl div {
      grid-template-columns: 72px 1fr;
      gap: 12px;
    }

    .schedule-course-svg {
      right: -60px;
      bottom: 16px;
      width: 250px;
      opacity: 0.56;
    }

    .member-tools {
      align-items: stretch;
      flex-direction: column;
    }

    .search-field input {
      width: 100%;
    }

    .member-identity {
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 12px;
    }

    .member-animal {
      width: 58px;
      height: 58px;
      border-radius: 16px;
    }

    .member-animal::before {
      border-radius: 12px;
    }

    .member-animal-emoji {
      width: 41px;
      height: 41px;
    }

    .archive-course-svg {
      top: 70px;
      width: 120vw;
      opacity: 0.72;
    }

    .featured-photo {
      min-height: 260px;
    }

    .featured-body,
    .archive-body {
      padding: 20px;
    }

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

    .archive-body > p:not(.archive-meta) {
      min-height: 0;
    }

    .guestbook-form-card,
    .guestbook-list-card,
    .archive-comment-panel {
      padding: 18px;
    }

    .message-list-head {
      align-items: stretch;
      flex-direction: column;
    }

    .message-list {
      max-height: none;
    }

    .message-form-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .message-form-actions .solid-button {
      width: 100%;
    }

    .join-section {
      padding-block: 66px;
    }

    .join-section > .join-flag-svg {
      right: -34vw;
      bottom: -6px;
      width: 118vw;
      opacity: 0.7;
    }

    .footer-inner {
      padding-block: 38px;
      gap: 28px;
    }

    .modal {
      padding: 14px;
      align-items: end;
    }

    .modal-card {
      max-height: calc(100vh - 28px);
      padding: 20px;
    }

    .modal-head {
      gap: 14px;
    }

    .lightbox-stage {
      grid-template-columns: 36px 1fr 36px;
      gap: 8px;
    }

    .lightbox-nav {
      width: 36px;
      height: 36px;
    }

    .bottom-notice {
      left: 14px;
      right: 14px;
      bottom: 14px;
      width: auto;
      grid-template-columns: 1fr auto;
      gap: 10px;
      padding: 12px;
    }

    .notice-mark {
      display: none;
    }

    .notice-copy h2 {
      font-size: 14px;
    }

    .notice-copy small {
      display: none;
    }

    .notice-actions {
      grid-column: 1 / -1;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      gap: 6px;
    }

    .notice-check {
      grid-column: auto;
      white-space: normal;
      font-size: 11px;
    }

    .bottom-notice .line-button.small {
      min-height: 32px;
      padding-inline: 10px;
    }

    .notice-close {
      width: 32px;
      height: 32px;
    }
  }

  @media (max-width: 760px) {
    .mobile-bar {
      min-height: 56px;
      grid-template-columns: 44px 1fr 44px;
    }

    .mobile-bar .icon-button {
      width: 44px;
      height: 44px;
    }

    .brand.compact .brand-mark {
      width: 28px;
      height: 28px;
      box-shadow: 0 0 0 7px oklch(64% 0.082 72 / 0.12);
    }

    .brand.compact strong {
      font-size: 17px;
      letter-spacing: -0.02em;
    }

    .hero-inner {
      gap: 16px;
      padding-block: 18px 30px;
    }

    .hero-copy {
      padding-block: 28px 8px;
    }

    .hero-meta-strip {
      overflow: hidden;
      margin-bottom: 18px;
      border-color: oklch(88% 0.034 86 / 0.32);
      border-radius: 10px;
      background: oklch(96% 0.025 84 / 0.075);
    }

    .hero-meta-strip span {
      min-height: 58px;
      grid-template-columns: minmax(104px, 34%) 1fr;
      gap: 12px;
      padding: 12px 16px;
      font-size: 15px;
      line-height: 1.35;
    }

    .hero-meta-strip strong {
      font-size: 11px;
      letter-spacing: 0.02em;
    }

    .hero-copy .button-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .hero-copy .solid-button,
    .hero-copy .line-button {
      min-height: 48px;
      padding-inline: 10px;
      font-size: 13px;
    }

    .hero-media {
      margin-top: 14px;
      display: grid;
      gap: 10px;
      padding: 10px;
      overflow: hidden;
      border: 1px solid oklch(88% 0.034 86 / 0.34);
      border-radius: 12px;
      background: oklch(12% 0.035 155 / 0.82);
    }

    .hero-media img {
      height: clamp(260px, 64vw, 340px);
      border-radius: 10px;
    }

    .hero-photo-tag {
      top: 14px;
      right: 14px;
      padding: 8px 10px;
      border-radius: 2px;
      font-size: 10px;
    }

    .hero-media figcaption {
      position: static;
      padding: 11px 12px;
      border-radius: 6px;
      background: oklch(16% 0.035 155 / 0.68);
    }

    .hero-course-card {
      position: static;
      width: auto;
      padding: 13px 14px;
      border-radius: 6px;
      background: linear-gradient(110deg, oklch(14% 0.034 155 / 0.72), oklch(18% 0.037 155 / 0.62));
    }

    .intro-section {
      padding-top: 58px;
    }

    .intro-title h2,
    .section-heading h2,
    .join-section h2,
    .statement-copy h2 {
      font-size: clamp(24px, 7.2vw, 32px);
      letter-spacing: -0.045em;
    }

    .bottom-notice {
      left: 12px;
      right: 12px;
      bottom: 12px;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      padding: 10px 10px 10px 12px;
      border-top-width: 3px;
      border-radius: 8px;
    }

    .notice-copy p,
    .notice-copy span,
    .notice-copy small,
    .notice-check {
      display: none;
    }

    .notice-copy h2 {
      margin: 0;
      overflow: hidden;
      color: var(--ivory);
      font-size: 13px;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .notice-actions {
      grid-column: auto;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .bottom-notice .line-button.small {
      min-height: 30px;
      padding-inline: 9px;
      font-size: 11px;
      white-space: nowrap;
    }

    .notice-close {
      width: 30px;
      height: 30px;
      flex: 0 0 30px;
    }
  }

  @media (max-width: 430px) {
    .hero-copy .button-row {
      grid-template-columns: 1fr;
    }

    .hero-meta-strip span {
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }

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

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

@layer components {
  .member-quick-panel,
  .next-round-brief,
  .archive-invite-panel,
  .member-pulse-card {
    border: 1px solid oklch(88% 0.034 86 / 0.48);
    background: oklch(96% 0.025 84 / 0.08);
    backdrop-filter: blur(14px);
  }

  .member-quick-panel {
    max-width: 560px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: -8px 0 22px;
    overflow: hidden;
  }

  .member-quick-panel a {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 13px 14px;
    background: oklch(16% 0.035 155 / 0.28);
    transition: background 160ms ease, color 160ms ease;
  }

  .member-quick-panel strong {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
  }

  .member-quick-panel span {
    color: oklch(93% 0.018 100);
    font-size: 12px;
    line-height: 1.35;
  }

  .member-quick-panel a:hover,
  .member-quick-panel a:focus-visible {
    background: oklch(64% 0.082 72 / 0.22);
    outline: none;
  }

  .next-round-brief,
  .archive-invite-panel,
  .member-pulse-card {
    width: var(--section);
    margin: 0 auto 22px;
    padding: 22px;
    color: var(--ink);
    background:
      linear-gradient(135deg, var(--paper), oklch(95% 0.026 98)),
      var(--paper);
    box-shadow: 0 14px 34px oklch(18% 0.04 155 / 0.08);
  }

  .next-round-brief h3,
  .archive-invite-panel h3,
  .member-pulse-card h3 {
    margin: 0;
    color: var(--club-green);
    font-size: 22px;
    line-height: 1.3;
  }

  .next-round-brief ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
  }

  .next-round-brief li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    background: oklch(99% 0.008 94 / 0.7);
  }

  .next-round-brief strong {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .next-round-brief span,
  .member-pulse-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }

  .archive-invite-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .archive-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
  }

  .archive-card-chip,
  .archive-card-comment {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--club-green);
    background: oklch(99% 0.008 94 / 0.78);
    font-size: 11px;
    font-weight: 900;
  }

  .archive-card-comment {
    color: var(--ink);
    border-color: var(--gold);
    background: var(--gold-soft);
  }

  .archive-card-comment:hover,
  .archive-card-comment:focus-visible {
    color: var(--ink);
    background: var(--gold);
    outline: none;
  }

  img.is-portrait-photo {
    object-fit: contain !important;
    background:
      radial-gradient(circle at 50% 45%, oklch(64% 0.082 72 / 0.16), transparent 42%),
      var(--dark);
  }
}

@layer utilities {
  @media (max-width: 760px) {
    .photo-count-badge {
      top: 12px;
      left: 12px;
      min-width: 58px;
      min-height: 58px;
      padding: 8px;
    }

    .photo-count-badge strong {
      font-size: 30px;
    }

    .photo-gallery-cue {
      left: 12px;
      right: 12px;
      bottom: 12px;
      grid-template-columns: 48px 1fr;
      gap: 10px;
      min-height: 56px;
      padding: 9px 10px;
    }

    .photo-stack-icon {
      width: 42px;
      height: 34px;
    }

    .photo-gallery-cue strong {
      font-size: 12px;
    }

    .photo-gallery-cue small {
      font-size: 10px;
    }

    .member-quick-panel {
      max-width: none;
      grid-template-columns: 1fr;
      margin: 0 0 18px;
      border-radius: 10px;
    }

    .member-quick-panel a {
      min-height: 58px;
      grid-template-columns: 88px 1fr;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
    }

    .member-quick-panel span {
      font-size: 12px;
    }

    .hero-copy .button-row {
      grid-template-columns: 1fr;
    }

    .next-round-brief,
    .archive-invite-panel,
    .member-pulse-card {
      width: var(--section);
      margin-bottom: 16px;
      padding: 18px;
      border-radius: 10px;
    }

    .next-round-brief h3,
    .archive-invite-panel h3,
    .member-pulse-card h3 {
      font-size: 20px;
    }

    .next-round-brief ul {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .archive-invite-panel {
      align-items: stretch;
      flex-direction: column;
    }

    .archive-invite-panel .line-button {
      width: 100%;
    }

    .archive-card-actions {
      gap: 6px;
    }

    .archive-card-chip,
    .archive-card-comment {
      min-height: 28px;
      font-size: 10px;
    }
  }
}

@layer components {
  .archive-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .archive-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .archive-foot {
    margin-top: auto;
  }

  .archive-card-actions {
    margin-top: 0;
    padding: 0 24px 24px;
  }

  .featured-body .archive-card-actions {
    padding: 4px 0 0;
  }

  .archive-card-chip,
  .archive-card-comment {
    min-height: 34px;
    padding-inline: 13px;
    border-radius: 999px;
    line-height: 1;
  }

  .archive-card-comment {
    margin-left: auto;
  }

  .archive-invite-panel,
  .next-round-brief {
    border-color: oklch(64% 0.082 72 / 0.32);
  }
}

@layer utilities {
  @media (max-width: 760px) {
    .archive-card-actions {
      padding: 0 20px 20px;
    }

    .archive-card-comment {
      width: 100%;
      justify-content: center;
      margin-left: 0;
    }
  }
}

@layer components {
  .admin-footer-button {
    width: fit-content;
    padding: 0;
    color: var(--dark-muted);
    text-align: left;
    font-weight: 900;
    background: transparent;
  }

  .admin-footer-button:hover,
  .admin-footer-button:focus-visible {
    color: var(--gold);
    outline: none;
  }

  .admin-panel-card {
    width: min(920px, 100%);
  }

  .admin-panel-body {
    display: grid;
    gap: 16px;
    padding-top: 18px;
  }

  .admin-auth-form,
  .admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
  }

  .admin-auth-form label,
  .admin-toolbar label {
    display: grid;
    gap: 7px;
  }

  .admin-auth-form span,
  .admin-toolbar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .admin-auth-form input,
  .admin-toolbar select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
  }

  .admin-message-list {
    display: grid;
    gap: 10px;
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
  }

  .admin-message-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    background: oklch(99% 0.008 94 / 0.8);
  }

  .admin-message-card.is-hidden-message {
    opacity: 0.68;
    background: oklch(94% 0.012 95 / 0.78);
  }

  .admin-message-head,
  .admin-message-meta,
  .admin-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .admin-message-head span,
  .admin-message-head em {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--club-green);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .admin-message-head strong {
    color: var(--ink);
    font-size: 14px;
  }

  .admin-message-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.58;
  }

  .admin-message-meta {
    color: var(--faint);
    font-size: 11px;
    font-weight: 900;
  }

  .admin-message-actions {
    justify-content: flex-end;
  }

  .line-button.danger {
    color: oklch(42% 0.14 28);
    border-color: oklch(66% 0.12 28 / 0.42);
  }

  .line-button.danger:hover,
  .line-button.danger:focus-visible {
    color: var(--white);
    border-color: oklch(42% 0.14 28);
    background: oklch(42% 0.14 28);
  }
}

@layer utilities {
  @media (max-width: 760px) {
    .admin-auth-form,
    .admin-toolbar {
      grid-template-columns: 1fr;
    }

    .admin-message-actions {
      justify-content: stretch;
    }

    .admin-message-actions .line-button {
      width: 100%;
    }
  }
}

@layer components {
  .bottom-notice {
    width: min(700px, calc(100% - 44px));
    gap: 18px;
    padding: 18px;
  }

  .notice-copy h2 {
    font-size: 18px;
  }

  .notice-copy span,
  .notice-copy small {
    font-size: 13px;
  }

  .notice-check {
    font-size: 13px;
  }
}

@layer utilities {
  @media (max-width: 760px) {
    .bottom-notice {
      left: 12px;
      right: 12px;
      bottom: 12px;
      width: auto;
      gap: 10px;
      padding: 13px 13px 13px 14px;
    }

    .notice-copy h2 {
      font-size: 14px;
    }

    .bottom-notice .line-button.small {
      min-height: 34px;
      padding-inline: 11px;
      font-size: 12px;
    }

    .notice-close {
      width: 34px;
      height: 34px;
      flex-basis: 34px;
    }
  }
}

@layer components {
  .community-archive-section {
    padding-top: 24px;
  }

  .community-archive-board {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: 22px;
    align-items: start;
  }

  .community-archive-form,
  .community-archive-list-card,
  .admin-archive-board {
    padding: 24px;
    border: 1px solid var(--line);
    background:
      linear-gradient(145deg, var(--paper), oklch(95% 0.022 98)),
      var(--paper);
    box-shadow: 0 16px 36px oklch(18% 0.04 155 / 0.08);
  }

  .community-archive-form {
    display: grid;
    gap: 14px;
  }

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

  .community-archive-form label {
    display: grid;
    gap: 7px;
  }

  .community-archive-form label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .community-archive-form input,
  .community-archive-form textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--paper);
  }

  .community-archive-form input {
    min-height: 42px;
    padding: 0 12px;
  }

  .community-archive-form textarea {
    min-height: 118px;
    padding: 12px;
    resize: vertical;
  }

  .community-archive-form small {
    color: var(--faint);
    font-size: 11px;
    font-weight: 800;
  }

  .community-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-archive-card .archive-photo {
    height: 190px;
  }

  .admin-archive-board {
    margin-top: 10px;
  }

  .admin-archive-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
  }

  .admin-archive-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    background: oklch(99% 0.008 94 / 0.82);
  }

  .admin-archive-card > img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--dark);
  }

  .admin-archive-card p {
    margin: 8px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
}

@layer utilities {
  @media (max-width: 960px) {
    .community-archive-board {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 760px) {
    .community-archive-form,
    .community-archive-list-card,
    .admin-archive-board {
      padding: 18px;
    }

    .form-grid.two,
    .community-archive-grid,
    .admin-archive-card {
      grid-template-columns: 1fr;
    }

    .admin-archive-card > img {
      height: 180px;
    }
  }
}

@layer components {
  .admin-archive-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
  }

  .admin-archive-image {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .admin-archive-image.is-hidden-image {
    opacity: 0.58;
  }

  .admin-archive-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: var(--dark);
  }

  .admin-archive-image figcaption {
    display: grid;
    gap: 6px;
    padding: 8px;
  }

  .admin-archive-image figcaption span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }
}

@layer utilities {
  @media (max-width: 760px) {
    .admin-archive-images {
      grid-template-columns: 1fr;
    }

    .admin-archive-image img {
      height: 160px;
    }
  }
}

@layer components {
  /* 확정된 다음 일정이 없을 때 보여주는 "다음 모임 준비 중" 카드입니다. */
  .next-event.is-pending .event-date-lockup strong {
    font-size: 28px;
    letter-spacing: 0.06em;
  }

  .next-event.is-pending .event-date-lockup small {
    font-size: 11px;
  }

  /* 상세 패널이 지난 기록인지 다음 일정인지 구분하는 라벨입니다. */
  .event-detail-panel .section-kicker {
    margin-bottom: 0;
  }

  /* API에 연결되지 않았거나 보안 확인 설정 전이면 입력 자체를 막습니다. */
  .message-form.is-unavailable {
    opacity: 0.72;
  }

  .message-form.is-unavailable input,
  .message-form.is-unavailable textarea,
  .message-form.is-unavailable button[disabled] {
    cursor: not-allowed;
  }

  .message-form.is-unavailable .turnstile-slot {
    display: none;
  }

  /* 회원 업로드를 받지 않는 동안에는 목록만 한 단으로 보여줍니다. */
  .community-archive-board.is-readonly {
    grid-template-columns: minmax(0, 1fr);
  }
}
