/* Táltos Paripa Lovarda - site styles. No external fonts or resources. */
:root {
  --bg: #faf6ef;
  --surface: #fffdf9;
  --sand: #f2e8d8;
  --line: #e6d8c2;
  --text: #2f241b;
  --muted: #6e5c4c;
  --brand: #8a4b20;
  --brand-dark: #6b3a1d;
  --accent: #3f6b3a;
  --footer: #2f241b;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(70, 45, 20, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #e8a64a; outline-offset: 2px; }
h1, h2, h3, .h3 { font-family: var(--serif); line-height: 1.2; color: var(--brand-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0 0 .6em; }
h3, .h3 { font-size: 1.3rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; color: var(--brand); }
.brand-holes circle { fill: var(--bg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav ul a:hover { background: var(--sand); color: var(--brand-dark); }
.site-nav ul a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { font-size: .8rem; font-weight: 600; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 10px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 18px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 8px 8px 0; }
  .lang-switch a { font-size: .9rem; padding: 6px 12px; }
}

/* ---------- hero & page heads ---------- */
.hero, .page-head { position: relative; overflow: hidden; background: #3b2a1e; color: #fff; display: flex; align-items: flex-end; }
.hero { min-height: min(80vh, 660px); }
.page-head { min-height: clamp(240px, 38vh, 360px); }
.hero-img, .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img { object-position: 68% 45%; }
.page-head-img { object-position: 50% 40%; }
.hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 18, 8, .72) 0%, rgba(28, 18, 8, .38) 45%, rgba(28, 18, 8, 0) 78%),
    linear-gradient(0deg, rgba(28, 18, 8, .5) 0%, rgba(28, 18, 8, 0) 55%);
}
.hero-inner, .page-head-inner { position: relative; z-index: 1; padding-block: 56px 48px; }
.hero h1, .page-head h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero-text { max-width: 30ch; font-size: clamp(1.15rem, 2.2vw, 1.45rem); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.page-head .lead { max-width: 46ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.page-head-plain { min-height: 0; background: var(--sand); color: var(--text); }
.page-head-plain::after { display: none; }
.page-head-plain h1 { color: var(--brand-dark); text-shadow: none; }
.page-head-plain .lead { text-shadow: none; color: var(--muted); }
@media (max-width: 700px) {
  .hero { min-height: 72vh; }
  .hero::after, .page-head::after { background: linear-gradient(0deg, rgba(28, 18, 8, .82) 0%, rgba(28, 18, 8, .35) 55%, rgba(28, 18, 8, .1) 100%); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: 32px 64px; }
.section-alt { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse .split-img, .split-reverse .photo-pair { order: -1; }
.split-text > p, .split-text li { max-width: 62ch; }
.split-img { margin: 0; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair img:nth-child(2) { margin-top: 36px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-img, .photo-pair { order: -1; }
}

ul.ticks, .ticks-wrap ul { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li, .ticks-wrap ul li { position: relative; padding-left: 26px; margin: .45em 0; }
ul.ticks li::before, .ticks-wrap ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px;
  background: var(--brand); transform: rotate(45deg); border-radius: 2px;
}
.split-text ol { padding-left: 1.4em; }
.split-text ol li { margin: .3em 0; }

/* ---------- cards & panels ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 30px; }
.cards > .card { flex: 1 1 200px; max-width: 300px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 0; }
.cards-2 > .card { max-width: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(70, 45, 20, .18); color: var(--text); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-more { color: var(--brand); font-weight: 600; }
.columns-2, .columns-3 { display: grid; gap: 24px; }
.columns-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.columns-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.section-alt .columns-3 { margin-top: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.address { font-size: 1.1rem; }

.rating { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.rating-score { background: #003b95; color: #fff; font-weight: 700; font-size: 1.3rem; padding: 8px 11px; border-radius: 10px 10px 10px 0; }
.rating-text { color: var(--muted); }

/* ---------- photo strip, band ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.strip-4 { grid-template-columns: repeat(4, 1fr); }
.strip a { display: block; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s, opacity .2s; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip-4 { grid-template-columns: repeat(2, 1fr); } }

.band { background: var(--brand-dark); color: #fbefe0; padding-block: 44px; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; }
.band-big { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: #fff; max-width: 40ch; }

/* ---------- gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gallery-item { display: block; overflow: hidden; border-radius: 10px; background: var(--sand); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.gallery-more { margin-top: 32px; }
.h1-year { color: var(--brand); }
.year-nav {
  position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.year-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
}
.year-nav a:hover { border-color: var(--brand); color: var(--brand); }
.year-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.year-count { font-size: .8rem; font-weight: 500; opacity: .75; }
.month-head { font-size: 1.35rem; margin: 30px 0 12px; scroll-margin-top: 140px; }
@media (max-width: 600px) {
  .year-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .year-nav::-webkit-scrollbar { display: none; }
  .year-nav a { flex: 0 0 auto; padding: 7px 13px; }
  .year-count { display: none; }
}

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 5, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; }
.lb-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lb-count { color: #cfc3b3; font-size: .9rem; margin-top: 10px; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- our horses ---------- */
.horses-count { color: var(--muted); margin-bottom: 28px; }
.horses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.horse { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--c); padding: 24px 16px 20px; text-align: center; }
.horse-pic {
  width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
  background: var(--c); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--c);
}
.horse-pic img { width: 100%; height: 100%; object-fit: cover; }
.horse-initial { font-family: var(--serif); font-size: 3.1rem; font-weight: 700; line-height: 1; }
.horse-name { font-size: 1.35rem; margin: 0 0 4px; }
.horse-meta { color: var(--muted); font-size: .92rem; margin: 0; }
.horse-meta::first-letter { text-transform: uppercase; }
@media (max-width: 520px) { .horses { grid-template-columns: repeat(2, 1fr); gap: 12px; } .horse-pic { width: 88px; height: 88px; } }

/* ---------- 404 ---------- */
.notfound-horse { width: 100%; max-width: 460px; height: auto; margin: 0 auto 8px; }
.notfound .bubble { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: #e9dfd0; padding-block: 44px 22px; font-size: .97rem; }
.site-footer a { color: #ffd9a8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .5em; }
.footer-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #c9b79f; margin-bottom: .6em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #bfae96; font-size: .88rem; }
.footer-bottom a { color: #bfae96; }

/* ---------- forms (live schedule + admin) ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(232, 166, 74, .35); border-color: var(--brand); }
.form label.check, label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.form legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.form-error { background: #fdecea; color: #8a1c12; border: 1px solid #f3c3bd; padding: 10px 12px; border-radius: 10px; margin: 0; }
.btn-block { width: 100%; }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-danger { background: #a2321f; border-color: #a2321f; }
.btn-danger:hover { background: #7f2415; border-color: #7f2415; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.linklike.danger { color: #a2321f; }
.small { font-size: .88rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.inline { display: inline; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }

/* ---------- live schedule (/cal.html) ---------- */
.cal-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--brand-dark); color: #fff;
}
.cal-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.cal-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-brand:hover { color: #fff; }
.cal-brand .brand-mark { width: 26px; height: 26px; color: #f6d3a3; }
.cal-bar .lang-switch a, .admin-bar .lang-switch a { color: #f3e3cc; border-color: rgba(255, 255, 255, .3); }
.cal-bar .lang-switch a[aria-current="true"], .admin-bar .lang-switch a[aria-current="true"] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cal-main { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.cal-view h1 { font-size: 1.6rem; margin-top: 8px; }
.cal-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.cal-who { font-weight: 600; }
.cal-daybar { display: flex; align-items: center; gap: 8px; position: sticky; top: var(--bar-h, 56px); z-index: 20; background: var(--bg); padding: 8px 0; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 26px; line-height: 1; color: var(--brand-dark); cursor: pointer; flex: 0 0 auto; }
.cal-day { position: relative; flex: 1; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); padding: 8px 4px; cursor: pointer; }
.cal-day input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cal-sub { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(70, 45, 20, .08); border-left: 6px solid var(--h, var(--brand)); padding: 12px 14px;
}
.lesson.is-past { opacity: .55; }
.lesson.is-now { box-shadow: 0 0 0 2px var(--brand), 0 6px 18px rgba(70, 45, 20, .18); }
.l-time { font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); line-height: 1.2; }
.l-time span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.l-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 1.08rem; }
.l-lesson { color: var(--muted); font-size: .9rem; }
.l-customer { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.l-phone { font-weight: 600; white-space: nowrap; }
.l-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .9rem; color: var(--muted); align-items: center; }
.staff-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.staff-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--s, var(--brand)); }
.l-status { background: var(--sand); border-radius: 6px; padding: 1px 8px; }
.l-prep { margin-top: 6px; font-size: .9rem; background: var(--sand); border-radius: 8px; padding: 4px 8px; }
.cal-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.cal-foot { margin-top: 24px; text-align: center; color: var(--muted); }

/* ---------- admin ---------- */
.admin-bar { background: var(--brand-dark); color: #fff; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.admin-bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-bar .linklike { color: #ffd9a8; }
.admin-user { color: #f3e3cc; font-weight: 600; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.admin-nav a { color: #f3e3cc; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--bg); color: var(--brand-dark); }
.admin-main { padding-block: 28px 48px; }
.admin-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.admin-foot { padding-block: 20px; }
.admin-login { max-width: 420px; margin: 4vh auto; background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-narrow { max-width: 480px; }
.flash { background: #e8f3e3; border: 1px solid #c4dfb8; color: #24451c; padding: 10px 14px; border-radius: 10px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.admin-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.admin-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.admin-card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.admin-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; min-width: 1.6em; padding: 1px 8px; border-radius: 999px; background: #c0392b; color: #fff; font-family: var(--sans); font-size: .85rem; text-align: center; }
.role-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.role-chip { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; color: var(--brand-dark); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--text); border-radius: 8px 8px 0 0; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 -3px 0 var(--brand); color: var(--brand); }
.tabs .count { font-size: .8rem; color: var(--muted); font-weight: 500; }
.empty-note { color: var(--muted); padding: 20px 0; }
.reg-list, .user-list { display: grid; gap: 14px; }
.reg-card, .user-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.reg-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reg-card h2 { font-size: 1.2rem; margin: 0; }
.reg-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0; font-size: .95rem; }
.reg-card dt { color: var(--muted); }
.reg-card dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.status-chip { border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; background: var(--sand); }
.status-pending { background: #fff3cd; color: #7a5a00; }
.status-approved { background: #e3f1dc; color: #24451c; }
.status-denied, .status-revoked { background: #fdecea; color: #8a1c12; }
.status-cancelled { background: #eee; color: #555; }
.user-card summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.user-card.is-inactive { opacity: .7; }
.user-card[open] summary { margin-bottom: 14px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.form-grid fieldset, .form-grid > p { grid-column: 1 / -1; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 14px 0; }
.role-help { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.role-help dt { font-weight: 700; }
.role-help dd { margin: 0; color: var(--muted); }
.admin-new { margin-top: 26px; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-photos figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.admin-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photos figcaption { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: .85rem; }
@media (max-width: 560px) { .reg-card dl, .role-help { grid-template-columns: 1fr; } .reg-card dt { margin-top: 6px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
