/* TolkienCon public page — the "Options 5a" design (green palette, Bree Serif, ivy frame on wide screens).
   Builds on ds.css; every value below comes from the design file. */

:root {
  --color-bg: #ffffff;
  --color-surface: #edf2e4;
  --color-text: #0e100c;
  --color-accent: #4a6130;
  --color-accent-2: #161614;
  --color-divider: color-mix(in srgb, #0e100c 22%, transparent);
  --color-accent-100: #e9f0dc; --color-accent-200: #d3e0bc; --color-accent-300: #b4c993; --color-accent-400: #8fab68;
  --color-accent-500: #6c8a45; --color-accent-600: #567236; --color-accent-700: #425a28; --color-accent-800: #30431c; --color-accent-900: #1f2c11;
  --color-accent-2-100: #efefec; --color-accent-2-200: #dcdcd7; --color-accent-2-300: #b9b9b2; --color-accent-2-400: #8a8a83;
  --color-accent-2-500: #5a5a54; --color-accent-2-600: #3b3b37; --color-accent-2-700: #282825; --color-accent-2-800: #1b1b19; --color-accent-2-900: #0f0f0e;
  --color-neutral-100: #f4f5f1; --color-neutral-200: #e4e7df; --color-neutral-300: #ccd1c3; --color-neutral-400: #a9b09f;
  --color-neutral-500: #858c7b; --color-neutral-600: #666d5d; --color-neutral-700: #4b5143; --color-neutral-800: #33382d; --color-neutral-900: #1a1d16;
  --font-heading: 'Bree Serif', Georgia, serif;
  --color-error: #9b2c1f;
  --letters: url(../img/letters.gif);
  --vine: clamp(26px, 4.4vw, 56px);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--color-text); font-family: var(--font-body); text-wrap: pretty; overflow-x: clip; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-accent); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; color: #fff; }
.icon { display: block; flex: none; }

/* ---------- frame (ivy on wide screens, plain block on phones) ---------- */
.tc-root { position: relative; overflow-x: clip; container-type: inline-size; }
.tc-content { container-type: inline-size; }
.tc-vine { display: none; }
@media (min-width: 720px) {
  body { background: var(--color-neutral-100); }
  .tc-frame-outer { padding: clamp(22px, 5vw, 80px) clamp(18px, 5vw, 80px) clamp(30px, 6vw, 96px); background-color: var(--color-neutral-100); }
  .tc-frame-inner {
    position: relative; max-width: 1240px; margin: 0 auto; background-color: #fff;
    background-image: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)), var(--letters); background-size: 160px 49px;
    border-radius: 28px; box-shadow: var(--shadow-md); padding: calc(var(--vine) / 2);
  }
  .tc-content { position: relative; z-index: 0; overflow: clip; }
  .tc-vine { display: block; position: absolute; z-index: 5; pointer-events: none; max-width: none; max-height: none; }
}
.tc-page {
  min-height: 100vh; background-color: var(--color-bg);
  background-image: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)), var(--letters); background-size: 160px 49px;
  font-size: clamp(14px, 3.6cqi, 15px); line-height: 1.55;
}

/* ---------- navigation ---------- */
.tc-navbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.tc-nav { position: relative; display: flex; align-items: center; gap: clamp(8px, 2cqi, 16px); padding: var(--space-2) clamp(16px, 4cqi, 72px); max-width: 1344px; margin: 0 auto; min-height: 60px; background: transparent; border: 0; }
.tc-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-right: auto; }
.tc-nav a.tc-nav-link, .tc-nav-mobile-link { color: var(--color-text); text-decoration: none; font-size: 15px; font-weight: 600; }
.tc-nav a.tc-nav-link:hover, .tc-nav-mobile-link:hover { color: var(--color-accent-700); }
.tc-nav-mobile-link { display: none; margin-right: auto; }
.tc-lang { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; }
.tc-lang a { padding: 6px 10px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--color-text); line-height: 1.2; }
.tc-lang a + a { border-left: 1px solid var(--color-divider); }
.tc-lang a[aria-current="true"] { background: var(--color-accent); color: var(--color-bg); }
.tc-lang a:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.tc-nav .tc-nav-cta { flex: none; text-decoration: none; font-size: 14px; padding: 8px 14px; color: var(--color-bg); }
.tc-nav .tc-nav-cta:hover { color: var(--color-bg); }
.tc-menu-btn { display: none; flex: none; width: 44px; height: 44px; padding: 0; place-items: center; border-radius: 999px; color: var(--color-text); }
.tc-menu {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); box-shadow: var(--shadow-md);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  padding: var(--space-2) clamp(16px, 4cqi, 72px) var(--space-4); display: flex; flex-direction: column;
}
.tc-menu a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; color: var(--color-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
@media (max-width: 719.98px) {
  .tc-nav-links { display: none; }
  .tc-nav-mobile-link { display: inline; }
  .tc-menu-btn { display: grid; }
}

/* ---------- hero ---------- */
.tc-hero {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(12px, 2.5cqi, 36px) clamp(16px, 4cqi, 72px) clamp(8px, 1.5cqi, 20px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 4cqi, 48px); align-items: start;
}
.tc-hero-blob { position: absolute; z-index: 0; right: -110px; top: -190px; width: 380px; height: 380px; border-radius: 50%; background: var(--color-accent-200); pointer-events: none; }
.tc-hero-text { position: relative; z-index: 1; container-type: inline-size; min-width: 0; }
.tc-kicker { margin: 0 0 var(--space-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-700); }
.tc-hero h1 { font-family: var(--font-heading); font-weight: 400; font-size: min(11cqi, 76px); line-height: 1.05; margin: 0 0 var(--space-4); letter-spacing: 0; white-space: nowrap; }
.tc-hero-sub { font-size: clamp(15px, 3.8cqi, 17px); line-height: 1.65; max-width: 56ch; margin: 0 0 var(--space-6); color: var(--color-neutral-800); }
.tc-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tc-hero-ctas .btn-primary { text-decoration: none; font-size: 16px; padding: 12px 22px; color: var(--color-bg); }
.tc-hero-ctas .btn-primary:hover { color: var(--color-bg); }
.tc-hero-ctas .btn-ghost { text-decoration: none; font-size: 15px; color: var(--color-accent-800); }
.tc-capacity { margin: var(--space-6) 0 0; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; color: var(--color-neutral-800); }
.tc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-500); }
.tc-hero-figure { position: relative; z-index: 1; mix-blend-mode: multiply; margin: 0; justify-self: end; align-self: start; width: min(100%, 540px); }
.tc-hero-figure img { display: block; width: 100%; opacity: .88; }

/* ---------- shared section bits ---------- */
.tc-main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4cqi, 72px); }
.tc-section { scroll-margin-top: 72px; }
.tc-section-kicker { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-700); }
.tc-h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 3.4cqi, 42px); line-height: 1.1; margin: 0 0 var(--space-6); }
.tc-h3 { font-family: var(--font-heading); font-weight: 400; font-size: 26px; margin: 0 0 var(--space-3); }

/* ---------- details ---------- */
.tc-details { padding: clamp(16px, 2.5cqi, 32px) 0 var(--space-8); }
.tc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.tc-fact { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-surface); }
.tc-fact-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-800); display: grid; place-items: center; }
.tc-fact .card-title { font-family: var(--font-heading); font-size: 19px; line-height: 1.2; color: var(--color-text); }
.tc-fact p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text); font-weight: 500; }

/* ---------- price & venue ---------- */
.tc-price-venue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-8); align-items: start; padding: 0 0 clamp(40px, 5cqi, 72px); }
.tc-price-note { margin: 0 0 var(--space-4); font-size: 14px; color: var(--color-neutral-800); max-width: 52ch; }
.tc-price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-price-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: var(--space-2); border-bottom: 1px solid var(--color-divider); color: var(--color-neutral-700); }
.tc-price-table th:last-child, .tc-price-table td:last-child { text-align: right; }
.tc-price-table td { padding: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); color: var(--color-text); }
.tc-price-table td:last-child { font-family: var(--font-heading); white-space: nowrap; }
.tc-price-table tbody tr:hover { background: transparent; }
.tc-venue { border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-accent-100); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.tc-map { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background: var(--color-accent-200); display: grid; place-items: center; color: var(--color-accent-900); text-align: center; padding: var(--space-4); overflow: hidden; }
.tc-map.has-embed { padding: 0; }
.tc-map iframe { width: 100%; height: 100%; border: 0; }
.tc-map a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--color-accent-900); text-decoration: none; }
.tc-venue-name { font-family: var(--font-heading); font-size: 19px; }
.tc-venue-addr { margin: 2px 0 0; font-size: 14px; font-weight: 500; color: var(--color-text); }
.tc-venue-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tc-venue-links .btn-secondary { text-decoration: none; border-color: var(--color-accent-500); color: var(--color-accent-900); }

/* ---------- costumes, rules, speakers ---------- */
.tc-rules-section { padding: 0 0 clamp(40px, 5cqi, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.tc-col { display: flex; flex-direction: column; gap: var(--space-3); }
.tc-col .tc-h3 { margin: 0; }
.tc-nazgul { margin: 0; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--color-neutral-200); }
.tc-nazgul img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tc-body-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); }
.tc-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.tc-rules li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-800); }
.tc-rules li::before { content: ""; flex: none; margin-top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.tc-speak { border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-accent-100); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); align-self: start; }
.tc-speak h3 { font-family: var(--font-heading); font-weight: 400; font-size: 24px; margin: 0; color: var(--color-accent-900); }
.tc-speak p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-text); font-weight: 500; }
.tc-speak .btn-primary { text-decoration: none; align-self: start; color: var(--color-bg); }
.tc-speak .btn-primary:hover { color: var(--color-bg); }

/* ---------- programme ---------- */
.tc-program { padding: 0 0 clamp(40px, 5cqi, 72px); }
.tc-prog-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.tc-prog-head .tc-h2 { margin: 0; }
.tc-prog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.tc-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; }
.tc-seg .seg-opt { padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tc-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; position: relative; }
.tc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tc-switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--color-neutral-500); transition: background .2s; }
.tc-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-bg); transition: left .2s; box-shadow: var(--shadow-sm); }
.tc-switch input:checked + .tc-switch-track { background: var(--color-accent); }
.tc-switch input:checked + .tc-switch-track::after { left: 19px; }
.tc-switch input:focus-visible + .tc-switch-track { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tc-js-only { display: none !important; }
.js .tc-js-only { display: inline-flex !important; }
.js .tc-js-only.is-off { display: none !important; }
.tc-day-title { font-family: var(--font-heading); font-weight: 400; font-size: 24px; margin: var(--space-6) 0 var(--space-3); }
.js .tc-day-title { display: none; }
.tc-day + .tc-day { margin-top: var(--space-6); }
.js .tc-day + .tc-day { margin-top: 0; }
.tc-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.tc-room h3 { font-family: var(--font-heading); font-weight: 400; font-size: 20px; margin: 0 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.tc-room h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent-2); }
.tc-events { display: flex; flex-direction: column; gap: var(--space-2); }
.tc-event { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface); }
.tc-event-time { font-family: var(--font-heading); font-size: 14px; line-height: 1.3; color: var(--color-accent-800); min-width: 64px; white-space: nowrap; }
.tc-event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-event-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tc-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--color-text); }
.tc-event-meta .tag, .dialog .tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.tc-event-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; color: var(--color-text); }
.tc-event-toggle { align-self: start; margin-top: 2px; padding: 4px 0; border: 0; background: none; font: 700 13px var(--font-body); color: var(--color-accent-800); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.tc-event-toggle:hover { color: var(--color-accent-900); }
.tc-event-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* timeline */
.tc-tl-hint { margin: 0 0 var(--space-4); font-size: 13px; color: var(--color-neutral-800); }
.tc-tl-days { display: flex; flex-direction: column; gap: var(--space-8); }
.tc-tl-day { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.tc-tl-daylabel-wrap { flex: 0 0 112px; position: sticky; top: 76px; align-self: start; }
.tc-tl-daylabel { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--color-accent-200); color: var(--color-accent-900); font-family: var(--font-heading); font-size: 18px; line-height: 1.1; text-align: center; padding: 8px; }
.tc-tl-scroll { flex: 1 1 480px; min-width: 0; overflow-x: auto; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-neutral-100); padding: var(--space-3) var(--space-3) var(--space-4); }
.tc-tl-grid { display: flex; gap: var(--space-2); }
.tc-tl-hours { flex: 0 0 40px; }
.tc-tl-spacer { height: 32px; }
.tc-tl-hourcol { position: relative; }
.tc-tl-hour { position: absolute; right: 4px; transform: translateY(-50%); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-neutral-700); }
.tc-tl-room { flex: 1 1 0; min-width: 150px; }
.tc-tl-roomhead { height: 32px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-900); }
.tc-tl-roomhead::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); flex: none; }
.tc-tl-col { position: relative; border-radius: var(--radius-md); background-color: var(--color-bg); background-image: repeating-linear-gradient(to bottom, var(--color-divider) 0 1px, transparent 1px 108px); }
.tc-tl-ev {
  position: absolute; box-sizing: border-box; margin: 0; padding: 4px 8px; border: 1.5px solid var(--color-accent-400); border-radius: 10px;
  color: var(--color-text); text-align: left; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font: inherit;
}
.tc-tl-ev:hover, .tc-tl-ev:focus-visible { border-color: var(--color-accent-700); z-index: 2; }
.tc-tl-ev.is-compact { flex-direction: row; align-items: center; gap: 6px; }
.tc-tl-ev-time { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-accent-900); white-space: nowrap; }
.tc-tl-ev-title { font-size: 13px; font-weight: 700; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tc-tl-ev.is-compact .tc-tl-ev-title { white-space: nowrap; }
.tc-tl-ev-speaker { font-size: 11px; line-height: 1.3; font-weight: 600; color: var(--color-text); }
.tc-tl-buffer { position: absolute; left: 2px; right: 2px; border-radius: 8px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-text) 10%, transparent) 0 4px, transparent 4px 8px); pointer-events: none; }

/* event kind colours (timeline fill / border) */
.k-music { background: var(--color-accent-200); border-color: var(--color-accent-400); }
.k-stage { background: var(--color-accent-300); border-color: var(--color-accent-500); }
.k-talk { background: var(--color-bg); border-color: var(--color-accent-400); }
.k-workshop, .k-game { background: var(--color-accent-100); border-color: var(--color-accent-400); }
.k-org { background: var(--color-neutral-200); border-color: var(--color-neutral-400); }

.tc-ongoing { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); }
.tc-ongoing-item { display: flex; align-items: center; gap: 10px; padding: var(--space-3) var(--space-4); border-radius: 999px; background: var(--color-accent-100); color: var(--color-text); font-size: 14px; font-weight: 600; text-align: left; border: 0; font-family: inherit; }
button.tc-ongoing-item { cursor: pointer; }
button.tc-ongoing-item:hover { background: var(--color-accent-200); }
.tc-ongoing-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-2); flex: none; }
.tc-prog-note { margin: var(--space-4) 0 0; font-size: 12px; color: var(--color-neutral-700); }
.tc-prog-empty { margin: 0; font-size: 15px; line-height: 1.65; max-width: 60ch; color: var(--color-neutral-800); }

/* ---------- registration ---------- */
.tc-registration { padding: 0 0 clamp(40px, 5cqi, 72px); }
.tc-reg { border-radius: calc(var(--radius-lg) * 1.5); background: var(--color-accent-100); padding: clamp(20px, 4cqi, 56px); }
.tc-reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-8); }
.tc-reg-kicker { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-800); }
.tc-reg .tc-h2 { margin: 0 0 var(--space-4); }
.tc-reg-intro { margin: 0 0 var(--space-4); font-size: 15px; line-height: 1.65; max-width: 46ch; color: var(--color-text); }
.tc-reg-deadline { margin: 0; font-size: 13px; line-height: 1.6; max-width: 46ch; color: var(--color-text); }
.tc-reg-photo { margin: var(--space-6) 0 0; width: min(100%, 360px); border-radius: calc(var(--radius-lg) * 1.5); overflow: hidden; }
.tc-reg-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tc-form { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.tc-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); }
.tc-form-row.is-counts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.tc-form-row.is-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tc-field > label, .tc-field > .tc-label { font-size: 13px; font-weight: 700; color: var(--color-text); margin: 0; }
.tc-form .input { width: 100%; min-width: 0; border-radius: 999px; background: var(--color-bg); }
.tc-form textarea.input { border-radius: var(--radius-lg); min-height: 90px; resize: vertical; }
.tc-form .input[aria-invalid="true"] { border-color: var(--color-error); }
.tc-field-error { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--color-error); display: flex; align-items: center; gap: 6px; }
.tc-form-alert { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-bg); border: 1.5px solid var(--color-error); font-size: 14px; font-weight: 700; color: var(--color-error); display: flex; gap: 8px; align-items: center; }
.tc-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tc-chip { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--color-neutral-500); background: transparent; color: var(--color-text); font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.tc-chip:has(input:checked) { border-color: var(--color-accent); background: var(--color-bg); }
.tc-chip input, .tc-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.tc-box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--color-neutral-500); background: var(--color-bg); color: var(--color-bg); display: inline-grid; place-items: center; }
.tc-box svg { opacity: 0; }
.tc-chip:has(input:checked) .tc-box, .tc-check:has(input:checked) .tc-box { border-color: var(--color-accent); background: var(--color-accent); }
.tc-chip:has(input:checked) .tc-box svg, .tc-check:has(input:checked) .tc-box svg { opacity: 1; }
.tc-chip:has(input:focus-visible), .tc-check:has(input:focus-visible) .tc-box { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tc-check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 44px; }
.tc-check .tc-box { border-color: var(--color-accent); }
.tc-form .seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 999px; align-self: start; background: var(--color-bg); }
.tc-form .seg-opt { padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; }
.tc-talk-note { margin: -8px 0 0; font-size: 13px; line-height: 1.55; font-weight: 600; color: var(--color-text); display: flex; gap: 8px; }
.tc-talk-note .icon { margin-top: 2px; }
.tc-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.tc-submit-row .btn-primary { font-size: 16px; padding: 12px 24px; min-height: 44px; color: var(--color-bg); }
.tc-privacy { margin: 0; font-size: 12px; line-height: 1.55; color: var(--color-neutral-700); max-width: 60ch; }
.tc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* submitted */
.tc-done-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-8); align-items: start; }
.tc-done-check { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); color: var(--color-bg); margin-bottom: var(--space-4); }
.tc-done .tc-h2 { margin: 0 0 var(--space-3); }
.tc-done-body { margin: 0 0 var(--space-4); font-size: 15px; line-height: 1.65; max-width: 48ch; color: var(--color-text); }
.tc-done .btn-ghost { color: var(--color-accent-900); text-decoration: none; }
.tc-paybox { border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-bg); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-md); }
.tc-paybox-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-800); font-weight: 700; }
.tc-paybox dl { margin: 0; }
.tc-payrow { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); font-size: 14px; }
.tc-payrow dt { color: var(--color-neutral-800); }
.tc-payrow dd { margin: 0; font-family: var(--font-heading); text-align: right; overflow-wrap: anywhere; }
.tc-qr-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.tc-qr { width: 132px; height: 132px; flex: none; padding: 6px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-neutral-200); }
.tc-qr svg { display: block; width: 100%; height: 100%; }
.tc-paynote { margin: 0; font-size: 13px; line-height: 1.55; color: var(--color-neutral-800); }
.tc-status { align-self: start; }

.tc-closed { max-width: 60ch; }
.tc-closed .tc-h2 { margin: 0 0 var(--space-3); }
.tc-closed p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--color-text); }

/* ---------- contact & footer ---------- */
.tc-contact { padding: 0 0 clamp(48px, 6cqi, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-8); align-items: center; }
.tc-contact-body { margin: 0 0 var(--space-4); font-size: 15px; line-height: 1.65; max-width: 48ch; color: var(--color-neutral-800); }
.tc-contact-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tc-contact-links .btn-secondary { text-decoration: none; color: var(--color-text); }
.tc-tolkien { margin: 0; justify-self: end; width: min(100%, 300px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.tc-tolkien img { width: 100%; height: 100%; object-fit: cover; }
.tc-footer { max-width: 1200px; margin: 0 auto; padding: var(--space-6) clamp(16px, 4cqi, 72px); font-size: 13px; color: var(--color-neutral-800); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }
.tc-footer a { color: inherit; }

/* ---------- dialog ---------- */
.dialog-backdrop { z-index: 50; }
.tc-dialog { width: min(560px, calc(100% - 32px)); max-height: 80vh; overflow: auto; background: var(--color-bg); padding: var(--space-6) var(--space-4) var(--space-4); }
.tc-dialog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-neutral-800); }
.tc-dialog .dialog-title { margin: 0; font-size: 24px; line-height: 1.2; }
.tc-dialog-speaker { margin: 0; font-weight: 700; font-size: 15px; }
.tc-dialog .dialog-body { margin: 0; font-size: 15px; line-height: 1.65; white-space: pre-line; opacity: 1; color: var(--color-text); }
.tc-dialog .btn-secondary { color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tc-switch-track, .tc-switch-track::after { transition: none; }
}
