:root {
  --navy: #0f2742;
  --navy-2: #1d3b5c;
  --aqua: #14b8c4;
  --aqua-d: #0b8f99;
  --aqua-l: #e3f7f9;
  --bg: #ffffff;
  --soft: #f4f8fb;
  --line: #e2e9ef;
  --text: #13253a;
  --muted: #5b6c7d;
  --ok: #138a5b;
  --warn: #b7791f;
  --danger: #c8372d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 39, 66, 0.06), 0 8px 24px rgba(15, 39, 66, 0.06);
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--aqua-d); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--head); padding: 15px 24px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); box-shadow: 0 6px 18px rgba(15, 39, 66, .18); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); box-shadow: none; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.small { padding: 11px 18px; font-size: 15px; }
.btn.tiny { padding: 8px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.linkish { background: none; border: 0; padding: 0; font: 600 14px var(--body); color: var(--aqua-d); cursor: pointer; }
.linkish.danger { color: var(--danger); }
.linkish:hover { text-decoration: underline; }

/* Header */
.site-head, .admin-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo .mark { width: 44px; height: 44px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); }
.wordmark b { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.wordmark span { font-weight: 700; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--aqua-d); margin-top: 5px; }
.nav { display: flex; gap: 6px; }
.nav a { font: 600 15px var(--head); color: var(--navy); text-decoration: none; padding: 10px 16px; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current] { background: var(--aqua-l); color: var(--aqua-d); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--soft); }
.hero-img { position: absolute; top: 0; right: 0; width: 68%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero { background: linear-gradient(180deg, #eef5fb, #f8fbfd); }
.hero::after { content: ""; position: absolute; inset: 0 auto 0 32%; width: 22%; background: linear-gradient(90deg, #f3f8fc 0%, rgba(243, 248, 252, 0) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { max-width: 9.6em; }
.hero h1 span { color: var(--aqua-d); }
.hero .lede { max-width: 26em; }
.eyebrow { font: 700 13px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua-d); margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); margin: 20px 0 0; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Sections */
.section { padding: 96px 0; }
.section.tight { padding: 40px 0 96px; }
.section.tint { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 + p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.muted-lg { color: var(--muted); font-size: 18px; margin-top: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.step:hover .step-img img { transform: scale(1.04); }
.step-body { padding: 22px 22px 24px; }
.step-n { display: inline-block; font: 800 13px var(--head); color: var(--aqua-d); background: var(--aqua-l); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.step-body p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.features li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.features p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }
.ic { width: 44px; height: 44px; border-radius: 12px; background: var(--aqua-l); color: var(--aqua-d); display: grid; place-items: center; }
.i { width: 22px; height: 22px; flex: none; }
.ic .i[fill] { }

.cta-band { background: var(--navy) url("/assets/mark.png") no-repeat right -40px center / 300px; background-blend-mode: soft-light; color: #fff; border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d3e2; font-size: 18px; margin: 12px 0 0; }

/* Horse cards */
.horse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.horse-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.horse-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 39, 66, .06), 0 18px 40px rgba(15, 39, 66, .12); }
.horse-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.horse-card-img > img { width: 100%; height: 100%; object-fit: cover; }
.horse-card-img .pill { position: absolute; top: 14px; left: 14px; }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; }
.no-photo img { width: 30%; opacity: .25; }
.horse-card-body { padding: 18px 20px 20px; }
.horse-card-body h3 { font-size: 22px; }
.horse-card-body p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.horse-card-body .q { color: var(--navy); font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--head); letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 39, 66, .12); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.in_training { color: #2563a8; }
.pill.qualified { color: var(--aqua-d); }
.pill.for_sale { color: var(--ok); }
.pill.sold { color: var(--muted); }
.pill.draft { color: var(--warn); background: #fff8eb; box-shadow: none; }

.empty { text-align: center; background: var(--soft); border-radius: var(--radius); padding: 56px 24px; }
.empty img { width: 64px; margin: 0 auto 16px; opacity: .5; }
.empty p { color: var(--muted); max-width: 32em; margin: 10px auto 22px; }
.empty.small { padding: 28px; }
.empty.small p { margin: 0 auto; }

/* Page heads */
.page-head { padding: 72px 0 24px; }
.page-head.center { text-align: center; padding: 120px 0; }
.page-head.center .lede { margin: 18px auto 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.tabs a { font: 600 14px var(--head); color: var(--navy); text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Horse page */
.horse-top { padding: 34px 0 10px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font: 600 14px var(--head); margin-bottom: 18px; }
.back:hover { color: var(--navy); }
.horse-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.horse-sub { color: var(--muted); font-size: 18px; margin: 10px 0 26px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 22px; overflow: hidden; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .g0 { grid-row: span 2; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery:not(.one):has(> a:nth-child(2):last-child) { grid-template-columns: 2fr 1fr; }
.gallery:not(.one):has(> a:nth-child(2):last-child) .g1 { grid-row: span 2; }
.gallery:has(> a:nth-child(3):last-child) .g2 { grid-column: span 2; }
.gallery:has(> a:nth-child(3):last-child) .g1 { grid-column: span 2; }
.gallery:has(> a:nth-child(4):last-child) .g3 { grid-column: span 2; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 39, 66, .55); color: #fff; font: 700 18px var(--head); }
.gallery.none { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 260px; background: var(--soft); color: var(--muted); }
.gallery.none img { width: 60px; opacity: .4; margin-bottom: 10px; }

.horse-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.horse-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h2 { font-size: 22px; margin-bottom: 16px; }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.facts dl div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--navy); }
.prose { font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }
.prose.lead { font-size: 19px; color: var(--navy-2); margin-bottom: 44px; }
.h-timeline { font-size: 28px; margin-bottom: 22px; }
.timeline { display: grid; gap: 20px; position: relative; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.post-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.post-kind { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--aqua-d); }
.post-kind .i { width: 16px; height: 16px; }
.post h3 { font-size: 21px; margin-bottom: 12px; }
.post .prose { margin-top: 14px; color: #2a3d52; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt button { position: absolute; inset: 0; margin: auto; width: 72px; height: 52px; border: 0; background: none; cursor: pointer; padding: 0; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); transition: transform .15s; }
.yt:hover button { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: block; font: 600 14.5px var(--head); color: var(--navy); }
.form label > input, .form label > select, .form label > textarea { margin-top: 7px; }
.form label > .hint { display: block; margin-top: 6px; }
.form > .btn:not(.block), .form .row-btns .btn { justify-self: start; }
.form .opt { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 16px var(--body); color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6c7d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px var(--aqua-l); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hint { font: 400 13.5px var(--body); color: var(--muted); margin: 0; }
.flash { padding: 13px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; margin-bottom: 18px; background: var(--aqua-l); color: var(--navy); }
.flash.ok { background: #e6f6ee; color: #0d6b45; }
.flash.err { background: #fdecea; color: #a12a22; }
.form .flash { margin: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.contact-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-lines .i { color: var(--aqua-d); }
.contact-lines a { color: var(--navy); text-decoration: none; }

/* Footer */
.site-foot { background: var(--soft); border-top: 1px solid var(--line); margin-top: 0; padding: 56px 0 26px; }
.foot-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-tag { color: var(--muted); max-width: 24em; margin: 14px 0 0; font-size: 15px; }
.foot-links { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 10px 48px; align-content: start; }
.foot-links a, .foot-links span { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; }
.foot-links a:hover { color: var(--aqua-d); }
.foot-base { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-base a { color: var(--muted); text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 34, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #dfe8f1; margin-top: 12px; font-size: 15px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------------- Admin ---------------- */
body.admin { background: var(--soft); }
.admin-head .head-row { height: 68px; }
.admin-head .logo .mark { width: 36px; height: 36px; }
.admin-badge { font: 700 11px var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 5px 9px; border-radius: 6px; margin-left: 4px; }
.admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-nav a { font: 600 14px var(--head); color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.admin-nav a:hover { background: var(--soft); }
.admin-nav a[aria-current] { background: var(--aqua-l); color: var(--aqua-d); }
.admin-nav form { margin: 0 0 0 8px; }
.admin-main { padding-top: 34px; padding-bottom: 80px; max-width: 980px; }
.admin-main > h1, .admin-title h1 { font-size: 34px; }
.admin-main > h1 + .muted { margin-top: 8px; }
.admin-main .card { margin-top: 22px; }
.admin-main .card h2 { font-size: 21px; margin-bottom: 6px; }
.admin-main .card h2 + .muted { margin-bottom: 18px; }
.muted { color: var(--muted); }
.admin-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.admin-title p { margin: 8px 0 0; }
.admin-title form { margin: 0; }
.auth-card { max-width: 440px; margin: 40px auto 0; }
.auth-card h1 { font-size: 30px; margin-bottom: 10px; }
.auth-card .form { margin-top: 18px; }
.auth-card .hint { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .span2 { grid-column: span 2; }
h2.sub { font-size: 18px; margin-top: 10px; }
.row-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row-btns form { margin: 0; }
.jump { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.jump a { font: 600 14px var(--head); background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 8px 14px; border-radius: 999px; text-decoration: none; }

.admin-list { display: grid; gap: 10px; margin-top: 26px; }
.admin-horse { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 12px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.admin-horse:hover { border-color: #cbd8e3; box-shadow: var(--shadow); }
.thumb { width: 72px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb img.ph { width: 50%; height: auto; opacity: .35; }
.ah-main b { display: block; font: 700 17px var(--head); color: var(--navy); }
.ah-main small, .ah-meta small { color: var(--muted); font-size: 13.5px; }
.ah-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ah-meta small { width: 100%; text-align: right; }

.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; justify-self: start; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--head); color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 39, 66, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--aqua); }
.form.is-update .if-video { display: none; }
.new-post { background: var(--soft); border-radius: 14px; padding: 20px; }
.new-post input, .new-post textarea { background: #fff; }
.admin-posts { margin-top: 18px; display: grid; gap: 8px; }
.admin-post { border: 1px solid var(--line); border-radius: 12px; }
.admin-post summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.admin-post summary::-webkit-details-marker { display: none; }
.admin-post summary b { flex: 1; min-width: 0; font: 600 15px var(--head); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-post summary small { color: var(--muted); white-space: nowrap; }
.admin-post[open] summary { border-bottom: 1px solid var(--line); }
.admin-post .form { padding: 18px 16px 4px; }
.del-post { padding: 6px 16px 16px; }
.pk { font: 700 11px var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--aqua-l); color: var(--aqua-d); }
.pk.update { background: #edf1fb; color: #3a5a9c; }

.drop { position: relative; display: grid; place-items: center; text-align: center; border: 2px dashed #c8d6e2; border-radius: 14px; padding: 30px 20px; cursor: pointer; color: var(--muted); background: var(--soft); transition: border-color .15s, background .15s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--aqua-d); }
.drop.over { border-color: var(--aqua); background: var(--aqua-l); }
.up-status { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.up-status .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.up-status .bar i { display: block; height: 100%; background: var(--aqua); width: 0; transition: width .2s; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.ph-card { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ph-card.is-cover { border-color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua-l); }
.ph-card > a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cover-tag { position: absolute; top: 10px; left: 10px; font: 700 11px var(--head); letter-spacing: .06em; text-transform: uppercase; background: var(--aqua); color: #fff; padding: 5px 8px; border-radius: 6px; }
.ph-cap { display: flex; gap: 6px; padding: 10px 10px 4px; margin: 0; }
.ph-cap input { padding: 7px 10px; font-size: 14px; border-radius: 8px; }
.ph-actions { display: flex; justify-content: space-between; padding: 6px 12px 12px; }
.ph-actions form { margin: 0; }
.danger-zone { border-color: #f3d3d0; }

.inquiry.handled { opacity: .65; }
.inq-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inq-head small { color: var(--muted); }
.inq-horse { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.inq-msg { white-space: pre-wrap; margin: 14px 0 18px; }
.admin-people { list-style: none; margin: 0; padding: 0; }
.admin-people li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-people li:first-child { border-top: 0; padding-top: 4px; }
.admin-people b { font: 700 16px var(--head); color: var(--navy); }
.admin-people small { display: block; color: var(--muted); font-size: 14px; }
.admin-people form { margin: 0; }
.inline-form { grid-template-columns: 1fr auto; }
.link-card { border-color: var(--aqua); }
.copy-row { display: flex; gap: 8px; margin: 14px 0 12px; }
.copy-row input { font: 500 14px ui-monospace, Menlo, monospace; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .horse-layout, .contact-layout { grid-template-columns: 1fr; }
  .horse-side { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .head-row { height: 66px; }
  .logo .mark { width: 38px; height: 38px; }
  .wordmark b { font-size: 15px; }
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 16px; display: none; box-shadow: 0 12px 24px rgba(15, 39, 66, .08); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; background: #fff; }
  .hero-img { position: static; width: 100%; height: 260px; order: -1; object-position: 65% 50%; }
  .hero::after { display: none; }
  .hero-inner { padding-top: 30px; padding-bottom: 48px; }
  .lede { font-size: 17px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 24px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 26px; border-radius: 22px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; border-radius: 16px; }
  .gallery .g0 { grid-column: span 2; grid-row: auto; }
  .gallery .g3, .gallery .g4 { display: none; }
  .gallery .g1, .gallery .g2 { grid-column: auto !important; grid-row: auto !important; }
  .gallery:has(> a:nth-child(2):last-child) .g1 { grid-column: span 2 !important; }
  .gallery.one { grid-template-rows: 280px; grid-template-columns: 1fr; }
  .gallery.one .g0 { grid-column: auto; }
  .card { padding: 20px; }
  .foot-links { grid-auto-flow: row; grid-template-rows: none; }
  .foot-base { flex-direction: column; gap: 8px; }
  .admin-nav { display: none; }
  .admin-nav.open { display: flex; }
  .admin-head .head-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .admin-head .admin-nav { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2 .span2 { grid-column: auto; }
  .admin-horse { grid-template-columns: 56px 1fr; }
  .thumb { width: 56px; height: 46px; }
  .ah-meta { grid-column: 2; justify-content: flex-start; }
  .ah-meta small { text-align: left; }
  .inline-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
