:root {
    --bg:         #F5F2ED;
    --surface:    #FFFFFF;
    --border:     #DDD8CF;
    --text:       #1E2020;
    --muted:      #6B6860;
    --accent:     #4A6741;
    --accent-lt:  #EBF0E8;
    --warn:       #7A5C30;
    --warn-lt:    #F5EDDF;
    --new:        #4A6741;
    --free:       #2F5F8A;
    --free-lt:    #E6EFF7;
    --radius:     6px;
    --gap:        1.5rem;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── Skip link ─────────────────────────────────────────── */
  .skip-link {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
    background: var(--accent); color: #fff;
    padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
    font-family: 'DM Sans', sans-serif; font-size: .9rem;
    text-decoration: none; z-index: 9999;
  }
  .skip-link:focus { position: fixed; left: 1rem; top: 0; width: auto; height: auto; }

  /* ── Base ───────────────────────────────────────────────── */
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
  }

  /* ── Banner ─────────────────────────────────────────────── */
  .site-banner {
    background: var(--accent);
    color: #fff;
    padding: 2.5rem 2rem 2rem;
  }
  .banner-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 1rem;
  }
  .banner-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 600; line-height: 1.2;
  }
  .banner-season {
    font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
    opacity: .8; margin-bottom: .4rem;
  }
  .banner-meta {
    font-size: .85rem; opacity: .85; line-height: 1.9;
  }
  .banner-meta a { color: #fff; text-underline-offset: 3px; }

  /* ── Registration bar ───────────────────────────────────── */
  .reg-bar {
    background: var(--warn-lt); border-bottom: 1px solid var(--border);
    padding: .8rem 2rem; font-size: .83rem; color: var(--warn);
  }
  .reg-bar-inner { max-width: 1100px; margin: 0 auto; }
  .reg-bar strong { font-weight: 500; }

  /* ── Hours strip ─────────────────────────────────────────── */
  .hours-strip {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .65rem 2rem; font-size: .8rem; color: var(--muted);
  }
  .hours-strip-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center;
  }
  .hours-strip span { white-space: nowrap; }
  .hours-strip .dot { color: var(--border); }

  /* ── Sticky nav ─────────────────────────────────────────── */
  .site-nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
  }
  .nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; gap: 0; align-items: center;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-btn {
    background: none; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: .82rem;
    color: var(--muted); font-weight: 400;
    padding: .9rem 1.1rem; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
    flex-shrink: 0;
  }
  .nav-btn:hover { color: var(--text); }
  .nav-btn.active { color: var(--accent); border-color: var(--accent); font-weight: 500; }
  .nav-btn:focus-visible {
    outline: 2px solid var(--accent); outline-offset: -2px;
  }

  /* ── Main layout ─────────────────────────────────────────── */
  main { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 4rem; }

  /* ── Section headers ─────────────────────────────────────── */
  .section-panel { display: none; }
  .section-panel.visible { display: block; }

  .section-header {
    display: flex; align-items: baseline; gap: .75rem;
    border-bottom: 1px solid var(--border); padding-bottom: .75rem; margin-bottom: var(--gap);
  }
  .section-icon { font-size: 1.3rem; }
  .section-name {
    font-family: 'Lora', serif; font-size: 1.5rem; font-weight: 600;
  }
  .section-link {
    margin-left: auto; font-size: .8rem; color: var(--accent);
    text-decoration: none; font-weight: 500; white-space: nowrap;
  }
  .section-link:hover { text-decoration: underline; }

  /* ── Subcategory ─────────────────────────────────────────── */
  .subcat { margin-bottom: 2.5rem; }
  .subcat-name {
    font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); font-weight: 500; margin-bottom: 1rem;
    padding-bottom: .4rem; border-bottom: 1px dotted var(--border);
  }

  /* ── Class card ──────────────────────────────────────────── */
  .class-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden;
  }
  .class-header {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.1rem; cursor: pointer;
    background: none; border: none; width: 100%; text-align: left;
    font-family: 'DM Sans', sans-serif;
  }
  .class-header:hover { background: var(--bg); }
  .class-header:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .class-header-text { flex: 1; }
  .class-name {
    font-size: .95rem; font-weight: 500; color: var(--text); line-height: 1.3;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  }
  .badge-new {
    font-size: .65rem; letter-spacing: .07em; text-transform: uppercase;
    background: var(--accent-lt); color: var(--accent);
    padding: .1rem .45rem; border-radius: 30px; font-weight: 500;
  }
  .class-meta { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
  .chevron {
    color: var(--border); font-size: .8rem; transition: transform .2s;
    flex-shrink: 0; user-select: none;
  }
  .class-card.open .chevron { transform: rotate(180deg); }

  .class-body {
    display: none; padding: 0 1.1rem 1.1rem;
    border-top: 1px solid var(--border);
  }
  .class-card.open .class-body { display: block; }
  .class-desc {
    font-size: .85rem; color: var(--muted); line-height: 1.65;
    margin: .8rem 0 1rem;
  }

  /* ── Sessions table ──────────────────────────────────────── */
  .sessions-wrap { overflow-x: auto; }
  .sessions-table {
    width: 100%; border-collapse: collapse; font-size: .8rem;
  }
  .sessions-table th {
    font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); font-weight: 500; text-align: left;
    padding: .4rem .6rem; border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }
  .sessions-table td {
    padding: .5rem .6rem; border-bottom: 1px solid var(--bg);
    color: var(--text); vertical-align: top; line-height: 1.4;
  }
  .sessions-table tr:last-child td { border-bottom: none; }
  .sessions-table tr:hover td { background: var(--bg); }
  .price-toh { font-weight: 500; }
  .price-nr { color: var(--muted); font-size: .75rem; }
  .price-free { color: var(--free); font-weight: 500; }
  .code { font-family: monospace; font-size: .75rem; color: var(--muted); }
  .no-class { font-size: .7rem; color: var(--warn); margin-top: .15rem; }
  .note-cell { font-style: italic; color: var(--muted); font-size: .78rem; }

  /* ── Events grid ─────────────────────────────────────────── */
  .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
  }
  .event-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem 1.2rem;
    display: flex; flex-direction: column; gap: .4rem;
  }
  .event-date {
    font-size: .75rem; letter-spacing: .07em; text-transform: uppercase;
    color: var(--accent); font-weight: 500;
  }
  .event-name {
    font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600; line-height: 1.3;
  }
  .event-location { font-size: .8rem; color: var(--muted); }
  .event-price {
    display: inline-block; margin-top: .3rem;
    font-size: .75rem; font-weight: 500;
    padding: .2rem .55rem; border-radius: 30px;
  }
  .event-price.free { background: var(--free-lt); color: var(--free); }
  .event-price.paid { background: var(--accent-lt); color: var(--accent); }
  .event-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: .3rem; }
  .event-reg { font-size: .75rem; color: var(--muted); margin-top: auto; padding-top: .5rem; }

  /* ── Closures ─────────────────────────────────────────────── */
  .closures-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
  .closure-item {
    background: var(--warn-lt); border: 1px solid #E8D5B8;
    border-radius: var(--radius); padding: .45rem .75rem;
    font-size: .8rem; color: var(--warn);
  }
  .closure-item strong { display: block; font-weight: 500; font-size: .75rem; }

  /* ── Info panel ───────────────────────────────────────────── */
  .info-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
  }
  .info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.1rem;
  }
  .info-card-label {
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); font-weight: 500; margin-bottom: .5rem;
  }
  .info-card-value { font-size: .88rem; line-height: 1.7; color: var(--text); }
  .info-card-value a { color: var(--accent); text-underline-offset: 3px; }

  /* ── Footer ───────────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1.5rem 2rem;
    font-size: .8rem; color: var(--muted); text-align: center;
  }
  footer a { color: var(--muted); }
  .footer-disclaimer {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    font-size: .74rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-disclaimer a { color: var(--muted); text-underline-offset: 2px; }

  /* ── About page ────────────────────────────────────────────── */
  .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
  }
  .about-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.35rem 1.4rem;
  }
  .about-card-lead {
    grid-column: 1 / -1;
    background: var(--accent-lt); border-color: #C8D9C0;
  }
  .about-card-official {
    background: var(--warn-lt); border-color: #E8D5B8;
  }
  .about-tagline {
    font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 600;
    color: var(--accent); margin-bottom: .6rem;
  }
  .about-heading {
    font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    margin-bottom: .6rem; color: var(--text);
  }
  .about-body {
    font-size: .85rem; color: var(--muted); line-height: 1.7; margin-bottom: .65rem;
  }
  .about-body:last-child { margin-bottom: 0; }
  .about-body a { color: var(--accent); text-underline-offset: 2px; }
  .about-links {
    font-size: .85rem; color: var(--muted); line-height: 2;
    padding-left: 1.2rem;
  }
  .about-links a { color: var(--accent); text-underline-offset: 2px; }

  /* ── Feedback button & drawer ─────────────────────────────── */
  .feedback-btn {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    background: var(--accent); color: #fff;
    border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem; font-weight: 500; letter-spacing: .08em;
    padding: .9rem .6rem;
    border-radius: var(--radius) 0 0 var(--radius);
    z-index: 200;
    transition: background .15s;
  }
  .feedback-btn:hover { background: #3a5333; }

  .feedback-drawer {
    position: fixed; right: -400px; top: 0; height: 100%;
    width: 360px; max-width: 95vw;
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    z-index: 300; transition: right .25s ease;
    display: flex; flex-direction: column;
    font-family: 'DM Sans', sans-serif;
  }
  .feedback-drawer.open { right: 0; }

  .feedback-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.25);
    z-index: 299; display: none;
  }
  .feedback-overlay.open { display: block; }

  .feedback-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--border);
  }
  .feedback-header h2 {
    font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 600;
  }
  .feedback-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; color: var(--muted); line-height: 1;
    padding: .2rem .4rem; border-radius: var(--radius);
  }
  .feedback-close:hover { background: var(--bg); }

  .feedback-body { padding: 1.25rem 1.4rem; flex: 1; overflow-y: auto; }
  .feedback-intro {
    font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem;
  }

  .feedback-field { margin-bottom: 1rem; }
  .feedback-label {
    display: block; font-size: .75rem; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .4rem;
  }
  .feedback-emoji-row {
    display: flex; gap: .5rem;
  }
  .feedback-emoji {
    font-size: 1.5rem; background: var(--bg); border: 2px solid transparent;
    border-radius: var(--radius); padding: .35rem .5rem; cursor: pointer;
    transition: border-color .15s, background .15s; line-height: 1;
  }
  .feedback-emoji:hover { background: var(--accent-lt); }
  .feedback-emoji.selected { border-color: var(--accent); background: var(--accent-lt); }

  .feedback-select, .feedback-textarea {
    width: 100%; font-family: 'DM Sans', sans-serif; font-size: .85rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .55rem .75rem; background: var(--bg); color: var(--text);
    appearance: none;
  }
  .feedback-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6860' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
  .feedback-select:focus, .feedback-textarea:focus {
    outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
  }
  .feedback-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

  .feedback-submit {
    width: 100%; padding: .75rem; margin-top: .5rem;
    background: var(--accent); color: #fff; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500;
    border-radius: var(--radius); transition: background .15s;
  }
  .feedback-submit:hover { background: #3a5333; }
  .feedback-submit:disabled { opacity: .6; cursor: not-allowed; }

  .feedback-thanks {
    display: none; text-align: center; padding: 2rem 1.4rem;
  }
  .feedback-thanks-icon { font-size: 2.5rem; margin-bottom: .75rem; }
  .feedback-thanks h3 {
    font-family: 'Lora', serif; font-size: 1.1rem; margin-bottom: .5rem;
  }
  .feedback-thanks p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

  /* ── Responsive ───────────────────────────────────────────── */
  @media (max-width: 600px) {
    .banner-inner { flex-direction: column; align-items: flex-start; }
    main { padding: 1.5rem 1rem 3rem; }
    .site-banner { padding: 1.75rem 1rem 1.5rem; }
    .reg-bar, .hours-strip { padding-left: 1rem; padding-right: 1rem; }
  }