/* Los Angeles Working Equitation Series — shared styles */
:root {
  --ink: #16202b;
  --ink-2: #24313f;
  --ink-soft: #4a5562;
  --sand: #f4ede1;
  --sand-2: #ebe1d0;
  --paper: #fbf8f2;
  --line: #d9cdb8;
  --terra: #b8562b;
  --terra-dark: #964320;
  --terra-tint: #f3dfd2;
  --olive: #6b6b3a;
  --olive-soft: #c9c08f;
  --ok: #3f6b3a;
  --err: #a8321f;
  --err-bg: #fbe9e4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 8px 24px rgba(22, 32, 43, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin: 0 0 .8em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.tba { display: inline-block; font-weight: 700; font-size: .8em; letter-spacing: .08em; background: var(--olive-soft); color: var(--ink); padding: 1px 8px; border-radius: 999px; vertical-align: .08em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--terra); color: #fff; transition: background .15s, transform .15s, box-shadow .15s;
  min-height: 48px;
}
.btn:hover { background: var(--terra-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-small { padding: 10px 16px; min-height: 40px; font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--terra-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff; }
.site-header.solid { position: sticky; background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.brand-text span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: inherit; text-decoration: none; font-size: .94rem; font-weight: 500; opacity: .9; }
.nav a:hover { opacity: 1; color: inherit; text-decoration: underline; }
.nav .btn { opacity: 1; text-decoration: none; }
.nav .hide-sm { display: none; }
@media (min-width: 860px) { .nav .hide-sm { display: inline; } }
@media (max-width: 420px) { .brand-text span { display: none; } .brand-text b { font-size: 1rem; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); min-height: min(92vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(22,32,43,.7) 0%, rgba(22,32,43,.25) 55%, rgba(22,32,43,0) 80%),
  linear-gradient(180deg, rgba(22,32,43,.55) 0%, rgba(22,32,43,.1) 30%, rgba(22,32,43,.35) 55%, rgba(22,32,43,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero .eyebrow { color: #f2b48f; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 28px; font-size: 1.05rem; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.hero-meta dd { margin: 0; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .9rem; opacity: .85; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-alt { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink .lede, .section-ink .muted { color: #c5ccd3; }
.section-ink a { color: #f2b48f; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.tile-rule { height: 14px; border: 0; margin: 0; background:
  radial-gradient(circle at 7px 7px, var(--terra) 2.2px, transparent 2.6px) 0 0 / 28px 14px,
  linear-gradient(var(--sand-2), var(--sand-2)); opacity: .9; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 5 / 4; }
.photo-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.photo-pair .photo:last-child { margin-top: 48px; }

.trials { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.trials li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.trials li b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; min-width: 9.5em; }
@media (max-width: 520px) { .trials li { flex-direction: column; gap: 2px; } }

/* Show cards */
.shows { display: grid; gap: 18px; }
@media (min-width: 760px) { .shows { grid-template-columns: 1fr 1fr; } }
.show-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow: hidden; }
.show-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--terra); }
.show-card .num { font-family: var(--serif); font-size: 1rem; color: var(--terra); font-weight: 600; letter-spacing: .04em; }
.show-card h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.show-card p { margin: 0; color: var(--ink-soft); }
.date-block { display: flex; align-items: center; gap: 18px; }
.date-chip { flex: none; width: 74px; text-align: center; border-radius: 12px; background: var(--ink); color: var(--sand); padding: 10px 0 8px; line-height: 1; }
.date-chip small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.date-chip strong { display: block; font-family: var(--serif); font-size: 2rem; margin-top: 4px; }
.facts { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { border-top: 2px solid var(--ink); padding-top: 12px; }
.fact dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.fact dd { margin: 4px 0 0; font-weight: 500; }

/* Judges */
.judges { display: grid; gap: 16px; }
@media (min-width: 640px) { .judges { grid-template-columns: 1fr 1fr; } }
.judge { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid rgba(244,237,225,.18); border-radius: var(--radius); }
.judge .mono { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--terra); font-family: var(--serif); font-size: 1.25rem; color: var(--sand); }
.judge b { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; display: block; }
.judge span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-soft); }

/* Fee table */
.fee-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .fee-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.fee-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 18px; box-shadow: var(--shadow); }
.fee-card h3 { margin: 18px 0 6px; }
.fee-card .sub { margin: 0 0 8px; font-size: .9rem; color: var(--ink-soft); }
table.fees { width: 100%; border-collapse: collapse; }
table.fees th, table.fees td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; }
table.fees td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 14px; font-variant-numeric: tabular-nums; }
table.fees th small { display: block; color: var(--ink-soft); font-size: .84rem; }
.callout { border-left: 4px solid var(--terra); background: var(--terra-tint); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0 0; font-size: .95rem; }
.callout.olive { border-color: var(--olive); background: #ecead7; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--sand); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Venue */
.venue-card { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.venue-card address { font-style: normal; font-size: 1.1rem; margin: 6px 0 14px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--terra); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; color: var(--terra); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); max-width: 68ch; }

/* CTA band */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; opacity: .55; }
.cta-band .wrap { position: relative; text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto .4em; }
.cta-band p { max-width: 52ch; margin: 0 auto 26px; color: #e9e2d4; }

/* Footer */
.site-footer { background: var(--ink); color: #c5ccd3; padding: 48px 0 36px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-soft); margin-bottom: 10px; }
.site-footer a { color: var(--sand); }
.site-footer p { margin: 0 0 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(244,237,225,.14); padding-top: 18px; font-size: .82rem; color: #8e99a5; }

/* ---------- Entry form ---------- */
.page-head { background: var(--ink); color: var(--sand); padding: 40px 0 44px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .2em; }
.page-head p { color: #c5ccd3; margin: 0; max-width: 64ch; }
.page-head .eyebrow { color: #f2b48f; }

.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0 140px; }
@media (min-width: 980px) { .entry-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-bottom: 80px; align-items: start; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .panel { padding: 30px 32px; } }
.panel > legend, .panel-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 6px; padding: 0; }
fieldset.panel { min-width: 0; }
fieldset.panel > legend { float: left; width: 100%; }
fieldset.panel > legend + * { clear: both; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--sand); font-size: 1rem; flex: none; }
.panel-intro { color: var(--ink-soft); margin: 4px 0 20px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .95rem; }
.req { color: var(--terra); margin-left: 2px; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 0; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #c9bca5; border-radius: var(--radius-sm); padding: 12px 13px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 88px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  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' fill='none' stroke='%2316202b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(184,86,43,.22); }
[aria-invalid="true"] { border-color: var(--err) !important; background-color: #fffaf8; }
.error-msg { color: var(--err); font-size: .87rem; font-weight: 600; margin: 0; }
.error-msg:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--terra); cursor: pointer; }
.check span { flex: 1; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; flex: 1 1 220px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #c9bca5; background: #fff; border-radius: var(--radius-sm); padding: 14px; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.choice label::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #a69780; margin-top: 2px; background: #fff; }
.choice input[type=radio] + label::before { border-radius: 50%; }
.choice input:checked + label { border-color: var(--terra); background: var(--terra-tint); }
.choice input:checked + label::before { border-color: var(--terra); background: var(--terra); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + label { outline: 3px solid var(--terra); outline-offset: 2px; }
.choice label b { display: block; }
.choice label small { display: block; color: var(--ink-soft); font-size: .85rem; }
.choice-group[aria-invalid="true"] .choice label { border-color: var(--err); }

.horse-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 16px; background: #fff; }
@media (min-width: 720px) { .horse-card { padding: 22px 24px; } }
.horse-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.horse-card-head h3 { margin: 0; font-size: 1.25rem; }
.badge { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--olive-soft); color: var(--ink); padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: .2em; }
.add-horse { width: 100%; border: 2px dashed #b9a98d; background: transparent; color: var(--ink); border-radius: var(--radius); padding: 16px; font: 600 1rem var(--sans); cursor: pointer; }
.add-horse:hover { border-color: var(--terra); color: var(--terra-dark); background: #fff; }

.subpanel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.note { font-size: .9rem; background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink-soft); margin: 14px 0 0; }

.waiver { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 16px; margin-bottom: 16px; }
@media (min-width: 720px) { .waiver { padding: 22px 24px; } }
.waiver h3 { font-size: 1.2rem; margin-bottom: 4px; }
.waiver .ver { font-size: .8rem; color: var(--ink-soft); margin: 0 0 12px; }
.waiver-body { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--paper); font-size: .92rem; margin-bottom: 14px; overscroll-behavior: contain; }
.waiver-body h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 14px 0 6px; }
.waiver-body h4:first-child { margin-top: 0; }
.waiver-body p { margin: 0 0 10px; }
.waiver-body ul { margin: 0 0 10px; padding-left: 20px; }
.signer-line { font-size: .92rem; color: var(--ink-soft); margin: 0 0 8px; }
.sig-input { font-family: var(--serif) !important; font-size: 1.15rem !important; font-style: italic; }

.review dl { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; font-size: .95rem; }
.review dt { color: var(--ink-soft); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin: 18px 0 8px; }
.review ul { margin: 0; padding-left: 18px; }

.submit-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 20px; }
@media (min-width: 640px) { .submit-row { flex-direction: row; align-items: center; } }
.submit-error { background: var(--err-bg); border: 1px solid #e6b3a7; color: var(--err); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; margin-top: 14px; }
.submit-error ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.submit-error a { color: var(--err); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.state-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); max-width: 640px; margin: 40px auto; }
.state-box h2 { font-size: 1.7rem; }
.state-box.error { border-color: #e6b3a7; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--terra); animation: spin .9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fee summary: sidebar on desktop, bottom bar on mobile */
.summary { background: var(--ink); color: var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; color: inherit; font: inherit; padding: 16px 18px; cursor: pointer; text-align: left; }
.summary-toggle .t-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-soft); font-weight: 700; display: block; }
.summary-toggle .t-total { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.summary-toggle .chev { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform .2s; margin-top: 6px; }
.summary-toggle[aria-expanded="true"] .chev { transform: rotate(45deg); margin-top: -6px; }
.summary-body { padding: 0 18px 18px; }
.summary-lines { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(244,237,225,.12); }
.summary-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; padding: 12px 0 4px; border-top: 2px solid rgba(244,237,225,.4); font-weight: 700; font-size: 1.05rem; }
.summary-split { margin-top: 10px; background: rgba(244,237,225,.08); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; }
.summary-split div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary-split .pay-now { color: #f2b48f; font-weight: 700; }
.summary-empty { color: #c5ccd3; font-size: .92rem; margin: 0; padding: 4px 0 6px; }
.summary-loading { opacity: .6; transition: opacity .2s; }
.summary .fine { font-size: .8rem; color: #9fa9b4; margin: 12px 0 0; }

@media (max-width: 979px) {
  .summary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(22,32,43,.25); max-height: 80vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
  .summary-body { overflow-y: auto; }
  .summary-toggle[aria-expanded="false"] + .summary-body { display: none; }
  body:has(.summary) .site-footer { padding-bottom: 120px; }
}
@media (min-width: 980px) {
  .summary { position: sticky; top: 96px; }
  .summary-toggle { cursor: default; pointer-events: none; }
  .summary-toggle .chev, .summary-toggle .t-total { display: none; }
  .summary-toggle + .summary-body { display: block !important; }
}

/* Thank-you */
.thanks-card { max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .thanks-card { padding: 40px 44px; } }
.seal { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.seal.pending { background: var(--olive); }
.money { display: grid; gap: 8px; margin: 20px 0; padding: 16px; background: var(--sand); border-radius: var(--radius-sm); }
.money div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.money .strong { font-weight: 700; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.section-ink .fee-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.section-ink .fee-card h3 { color: var(--sand); }
.section-ink .fee-card p { color: rgba(244, 237, 225, 0.82); }
table.fees td small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
