:root {
  --bg: oklch(0.985 0.008 85);
  --tint: oklch(0.955 0.012 85);
  --card: oklch(1 0 0);
  --ink: oklch(0.18 0.02 65);
  --muted: oklch(0.48 0.02 65);
  --line: oklch(0.9 0.015 85);
  --gold: oklch(0.72 0.12 78);
  --gold-deep: oklch(0.58 0.11 70);
  --gold-soft: oklch(0.72 0.12 78 / 0.14);
  --dark: oklch(0.15 0.02 65);
  --dark-2: oklch(0.22 0.03 65);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px -12px oklch(0.18 0.02 65 / 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: var(--tint); }
.center { text-align: center; }
.narrow { max-width: 680px; margin-inline: auto; }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8em; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font: 600 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: oklch(0.78 0.12 80); }
.btn-ghost { border-color: oklch(1 0 0 / .4); color: #fff; background: oklch(1 0 0 / .08); backdrop-filter: blur(6px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn.full { width: 100%; }
.chip { font: 600 .8rem var(--sans); padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { opacity: .6; margin-left: .35em; }

/* Topbar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.topbar.is-solid { background: oklch(0.985 0.008 85 / .94); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand strong { display: block; font: 700 1.25rem/1 var(--serif); }
.brand small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 600; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: .88rem; font-weight: 500; opacity: .9; }
.nav a:hover { color: var(--gold); opacity: 1; }
.nav .nav-cta { border: 1px solid currentColor; padding: .5em 1.1em; border-radius: 999px; }
.nav a.on { color: var(--gold); opacity: 1; }

/* Egna sidor (/om-mig, /saluhastar …) */
.page-off { display: none !important; }
.page-head { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 136px 0 64px; text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, oklch(0.55 0.09 75 / .45), transparent 70%), linear-gradient(170deg, oklch(0.34 0.05 62), oklch(0.24 0.035 58) 60%, oklch(0.2 0.03 55)); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ph-img) center 35% / cover no-repeat; opacity: .26; filter: sepia(.35) saturate(.9); }
.page-head::after { content: ""; position: absolute; left: 50%; bottom: 34px; width: 56px; height: 2px; transform: translateX(-50%); background: var(--gold); border-radius: 2px; opacity: .9; }
.page-head h1, .page-head .crumbs { text-shadow: 0 1px 18px oklch(0.15 0.03 60 / .6); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: .2em 0 0; }
.page-head .crumbs { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.page-head .crumbs a { color: oklch(0.85 0.01 85); text-decoration: none; }
.page-head .crumbs a:hover { color: #fff; }
.page-head .crumbs span { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; color: inherit; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); color: var(--ink); padding: 8px 16px 20px; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { border: 0; border-radius: 0; }
  .topbar.menu-open { background: var(--bg); color: var(--ink); }
  .topbar.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .topbar.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--dark) center/cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.12 0.02 65 / .55), oklch(0.12 0.02 65 / .45) 50%, oklch(0.12 0.02 65 / .85)); }
.hero-content { position: relative; text-align: center; padding: 120px 0 90px; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-block; padding: .5em 1.2em; border: 1px solid oklch(0.72 0.12 78 / .5); border-radius: 999px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: oklch(0.12 0.02 65 / .4); }
.hero-logo { width: 96px; height: 96px; object-fit: contain; margin: 18px 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); max-width: 16ch; }
.hero-text { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 600px; opacity: .9; font-weight: 300; }
.hero-points { list-style: none; padding: 0; margin: 10px 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-points li { padding: .7em 1.2em; border-radius: 12px; border: 1px solid oklch(1 0 0 / .14); background: oklch(0.12 0.02 65 / .5); font-size: .88rem; backdrop-filter: blur(6px); }
.hero-points li::before { content: "✦"; color: var(--gold); margin-right: .6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; opacity: .7; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; background: currentColor; margin: 8px auto 0; }

/* Partners */
.partners { padding: 48px 0; border-bottom: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.partner { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.partner .logo { height: 44px; display: flex; align-items: center; margin-bottom: 8px; }
.partner .logo img { max-height: 44px; max-width: 150px; object-fit: contain; }
.partner .logo span { font: 700 1.3rem var(--serif); }
.partner small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.partner p { margin: 0; color: var(--muted); font-size: .9rem; }
.partner a { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--gold-deep); text-decoration: none; }

/* Saluhästar */
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.contact-line a { font-weight: 600; text-decoration: none; color: var(--gold-deep); }
.price-box { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.price-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint); }
.price-list b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); font: 700 1.2rem var(--serif); flex: none; }
.price-list span { font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters.center { justify-content: center; }
.horse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.horse { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.horse-img { position: relative; aspect-ratio: 3/2; background: linear-gradient(135deg, var(--dark-2), var(--dark)); color: oklch(1 0 0 / .85); display: grid; place-items: center; text-align: center; }
.horse-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.horse-img .ph { font: 600 1.4rem var(--serif); padding: 16px; }
.horse-img .ph small { display: block; font: 500 .75rem var(--sans); letter-spacing: .14em; color: var(--gold); margin-top: 6px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px; background: oklch(0.98 0.01 85 / .94); color: var(--ink); }
.badge.sale { background: var(--gold); color: var(--dark); }
.badge.sold { background: oklch(0.414 0.112 45.904); color: #fff; }
.horse-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.horse-body h3 { margin-bottom: .2em; }
.horse-meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.horse-meta div { display: flex; gap: 6px; }
.horse-meta dt { font-weight: 600; color: var(--ink); }
.horse-meta dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .75rem; padding: .35em .75em; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }
.horse-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; }
.horse-foot a { font-weight: 700; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.horse.is-sold .horse-img img { filter: grayscale(.5); }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 0; }
.callout { margin-top: 48px; background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.callout p { margin: 0; opacity: .8; max-width: 60ch; }
.callout-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.callout .btn-outline { border-color: oklch(1 0 0 / .5); color: #fff; }
.callout .btn-outline:hover { background: #fff; color: var(--dark); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-img { margin: 0; position: relative; }
.about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.award { position: absolute; right: -12px; bottom: -20px; max-width: 260px; background: var(--card); padding: 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); }
.award strong { display: block; font: 700 1.3rem var(--serif); color: var(--gold-deep); }
.quote { margin: 0 0 1.2em; padding-left: 18px; border-left: 3px solid var(--gold); font: italic 500 1.45rem/1.35 var(--serif); }
.prose p { color: var(--muted); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.mini { background: var(--tint); border-radius: 14px; padding: 18px; }
.mini p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Meriter */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 760px; margin: 32px auto; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font: 700 2.6rem/1 var(--serif); color: var(--gold-deep); }
.stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.merit-list { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 880px; display: grid; gap: 10px; }
.merit { display: grid; grid-template-columns: 64px 96px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.merit .yr { font: 700 1.4rem var(--serif); }
.merit .typ { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.merit h4 { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin: 0; }
.merit p { margin: 0; font-size: .85rem; color: var(--muted); }
.medal { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px; }
.medal.Guld { background: var(--gold); color: var(--dark); }
.medal.Silver { background: oklch(0.88 0.005 250); color: var(--ink); }
.medal.Brons { background: oklch(0.7 0.09 50); color: #fff; }

/* Tjänster */
.services { display: grid; gap: 28px; margin-top: 40px; }
.service { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service:nth-child(even) .service-img { order: 2; }
.service-img { min-height: 320px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: clamp(24px, 4vw, 48px); }
.service-body .sub { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.service-body ul { padding: 0; list-style: none; margin: 0 0 24px; display: grid; gap: 8px; }
.service-body li::before { content: "✓"; color: var(--gold-deep); font-weight: 700; margin-right: .6em; }
.service-body > p { color: var(--muted); }

/* Semin */
.dark { background: var(--dark); color: #fff; }
.semin { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.semin h2 em { display: block; color: var(--gold); font-style: italic; font-weight: 500; }
.semin > div > p { opacity: .8; }
.semin-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.semin-point { border: 1px solid oklch(1 0 0 / .12); border-radius: 14px; padding: 16px; background: oklch(1 0 0 / .03); }
.semin-point h4 { color: var(--gold); margin-bottom: .3em; }
.semin-point p { margin: 0; font-size: .88rem; opacity: .75; }
.eu { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: .85rem; opacity: .85; }
.eu img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.stallion { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.stallion img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.stallion figcaption { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(transparent, oklch(0.1 0.02 65 / .95) 40%); }
.stallion figcaption p:last-child { margin: 0; font-size: .9rem; opacity: .85; }

/* Galleri */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; margin-top: 40px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.gallery figure:nth-child(1), .gallery figure:nth-child(5) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 14px 16px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, oklch(0.1 0.02 65 / .8)); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 24px 0; }
.contact-list div { background: var(--card); border-radius: 14px; padding: 14px 18px; border: 1px solid var(--line); }
.contact-list dt { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.contact-list dd { margin: 2px 0 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.form { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.form h3 { margin: 0; }
.form label { display: grid; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-transform: none; letter-spacing: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }

/* Footer */
.footer { background: var(--dark); color: oklch(1 0 0 / .8); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer .brand strong { color: #fff; }

/* Responsivt */
@media (max-width: 900px) {
  .split-head, .about, .semin, .contact, .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .service-img { min-height: 220px; aspect-ratio: 16/9; }
  .award { position: static; max-width: none; margin-top: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  .mini-cards, .semin-points { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat { padding: 16px 8px; }
  .stat b { font-size: 2rem; }
  .merit { grid-template-columns: 52px 1fr; gap: 4px 12px; }
  .merit .typ { grid-column: 1; grid-row: 2; }
  .merit > div { grid-column: 2; grid-row: 1 / span 2; }
  .merit .medal { grid-column: 2; justify-self: start; }
  .horse-grid { grid-template-columns: 1fr; }
  .hero-points li { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Redigeringsläge (visas bara med ?redigera på din dator) ---------- */
body.editing { padding-bottom: 84px; }
.editing [data-edit] { outline: 1.5px dashed transparent; outline-offset: 3px; border-radius: 4px; cursor: text; transition: outline-color .15s, background .15s; min-width: 1.5em; }
.editing [data-edit]:hover { outline-color: var(--gold); }
.editing [data-edit]:focus { outline: 2px solid var(--gold); background: oklch(0.72 0.12 78 / .08); }
/* Tom/borttagen text: en liten streckad "+ Lägg till text" i stället för en stor ruta */
.editing [data-edit]:empty::before { content: attr(data-ph); opacity: .7; font: italic 500 .78rem/1.6 var(--sans); letter-spacing: 0; text-transform: none; }
.editing [data-edit]:empty { outline: 1.5px dashed oklch(0.72 0.12 78 / .6); display: inline-block; width: auto; padding: 0 .6em; }
.editing [data-edit]:empty:focus { outline: 2px solid var(--gold); }
.editing .ed-multi { white-space: pre-line; color: var(--muted); }
.editing [data-edit-img] { cursor: pointer; outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .15s, filter .15s; }
.editing [data-edit-img]:hover { outline-color: var(--gold); filter: brightness(.85); }
.editing .ed-empty-img, .editing img[data-edit-img]:not([src]), .editing img[data-edit-img][src=""] { min-width: 120px; min-height: 44px; background: var(--tint); border: 1.5px dashed var(--line); border-radius: 8px; }
.editing .horse, .editing .partner, .editing .service, .editing .merit, .editing .semin-point, .editing .price-list li, .editing .hero-points li, .editing .tags li, .editing .service-body li { position: relative; }
.editing .hero-video { pointer-events: none; }
.editing .hero-content, .editing .hero-shade { pointer-events: auto; }

.ed-ctl { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; gap: 4px; opacity: .85; transition: opacity .15s; }
.ed-ctl.small { top: 50%; right: -10px; transform: translateY(-50%); }
.editing *:hover > .ed-ctl, .ed-ctl:focus-within { opacity: 1; }
.ed-ctl button[data-act="del"] { background: oklch(0.55 0.18 28); }
.ed-ctl button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font: 700 14px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px oklch(0 0 0 / .25); }
.ed-ctl button:hover { background: var(--gold); color: var(--dark); }
.ed-ctl button[data-act="del"]:hover { background: oklch(0.55 0.18 28); color: #fff; }
.ed-ctl.small button { width: 22px; height: 22px; font-size: 12px; }

.ed-add { font: 600 .8rem var(--sans); padding: .45em .9em; border-radius: 999px; border: 1.5px dashed var(--gold-deep); background: transparent; color: var(--gold-deep); cursor: pointer; }
.ed-add:hover { background: var(--gold-soft); }
.dark .ed-add, .hero .ed-add { color: var(--gold); border-color: var(--gold); }
.ed-add.card { width: 100%; min-height: 64px; border-radius: var(--radius); font-size: .95rem; }
.horse-grid > .ed-add.card, .partner-grid > .ed-add.card { grid-column: 1 / -1; min-height: 52px; }
.services > .ed-add.card { min-height: 80px; }
.ed-li { list-style: none; background: none !important; border: 0 !important; padding: 0 !important; }
.ed-li::before { content: none !important; }
.ed-fig { display: grid; }
.ed-fig .ed-add.card { height: 100%; }
.ed-field { font-size: .8rem !important; color: var(--muted); }
.ed-select { font: 600 .72rem var(--sans); padding: .4em .6em; border-radius: 999px; border: 1px solid var(--line); background: oklch(0.98 0.01 85 / .95); color: var(--ink); cursor: pointer; }
.merit .ed-select { justify-self: start; }

.ed-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--dark); color: #fff; box-shadow: 0 12px 40px oklch(0 0 0 / .35); font-size: .88rem; }
.ed-status { display: flex; flex-direction: column; line-height: 1.3; }
.ed-status strong { color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-actions button, .ed-actions a { font: 600 .82rem var(--sans); padding: .6em 1em; border-radius: 999px; border: 1px solid oklch(1 0 0 / .25); background: transparent; color: #fff; cursor: pointer; text-decoration: none; }
.ed-actions button:hover:not(:disabled), .ed-actions a:hover { background: oklch(1 0 0 / .1); }
.ed-actions button:disabled { opacity: .4; cursor: default; }
.ed-actions .ed-save { background: var(--gold); color: var(--dark); border-color: var(--gold); padding-inline: 1.6em; }
.ed-actions .ed-save:hover:not(:disabled) { background: oklch(0.78 0.12 80); }
.ed-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 101; background: oklch(0.45 0.1 150); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.ed-toast.bad { background: oklch(0.5 0.18 28); }
@media (max-width: 600px) { .ed-actions { width: 100%; } .ed-actions .ed-save { margin-left: auto; } body.editing { padding-bottom: 150px; } }

/* Tomma texter syns inte på den riktiga sidan */
body:not(.editing) :is(p, h1, h2, h3, h4, small, blockquote, .btn, .pill, .eyebrow, dd, figcaption, span.muted):empty { display: none; }
body:not(.editing) .contact-list div:has(dd:empty) { display: none; }

/* Redigeringsläge: dölj sektion, ta bort text */
.editing .ed-hidden-section > *:not(.ed-section-btn) { opacity: .25; filter: grayscale(1); pointer-events: none; }
.editing section { position: relative; }
.ed-section-btn { position: absolute; top: 12px; right: 12px; z-index: 20; font: 600 .78rem var(--sans); padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.ed-section-btn:hover { background: var(--ink); color: var(--bg); }
.hero .ed-section-btn { display: none; }
.ed-hidden-section > .ed-section-btn { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.editing .pill:empty, .editing .eyebrow:empty, .editing .btn:empty { min-width: 0; min-height: 0; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; padding: .1em .7em; }
.ed-pop { align-items: center; max-width: calc(100vw - 16px); flex-wrap: wrap; }
.ed-pop-note { color: oklch(0.9 0.01 85); font: 500 .75rem var(--sans); padding: 0 .4em; max-width: 220px; }
.ed-pop [hidden] { display: none; }
.ed-pop-tools { display: flex; gap: 4px; padding-right: 6px; margin-right: 2px; border-right: 1px solid oklch(1 0 0 / .15); }
.ed-pop-tools button { min-width: 34px; padding-inline: .6em; }
.ed-pop-tools button:hover:not(:disabled) { background: oklch(1 0 0 / .22); }
.ed-pop-tools button:disabled { opacity: .35; cursor: default; }
.ed-pop-tools button[aria-pressed="true"] { background: var(--gold); color: var(--dark); }
.ed-pop { position: fixed; z-index: 120; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: var(--dark); box-shadow: 0 8px 24px oklch(0 0 0 / .3); }
.ed-pop button { font: 600 .8rem var(--sans); padding: .5em .9em; border-radius: 8px; border: 0; cursor: pointer; background: oklch(1 0 0 / .1); color: #fff; }
.ed-pop button[data-pop="clear"]:hover { background: oklch(0.55 0.18 28); }
.ed-pop button[data-pop="done"] { background: var(--gold); color: var(--dark); }
@media (hover: none) { .ed-ctl { opacity: 1; } }

/* Hästar: flera bilder, film och "Läs mer" */
.horse-img[data-open-horse] { cursor: zoom-in; }
.media-count { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.media-count span { font-size: .72rem; font-weight: 700; padding: .4em .7em; border-radius: 999px; background: oklch(0.12 0.02 65 / .75); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: 700 .85rem var(--sans); color: var(--gold-deep); cursor: pointer; white-space: nowrap; }
.hm { position: fixed; inset: 0; z-index: 200; background: oklch(0.1 0.02 65 / .88); display: none; align-items: center; justify-content: center; padding: 16px; }
.hm.open { display: flex; }
.hm-box { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); border-radius: var(--radius); display: grid; grid-template-columns: 1.4fr 1fr; }
.hm-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: oklch(0.12 0.02 65 / .8); color: #fff; font-size: 24px; cursor: pointer; }
.hm-media { position: relative; background: var(--dark); display: flex; flex-direction: column; min-width: 0; }
.hm-stage { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.hm-stage img, .hm-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.hm-stage iframe { width: 100%; height: 100%; border: 0; }
.hm-stage .ph { color: #fff; font: 600 1.6rem var(--serif); }
.hm-nav { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: oklch(1 0 0 / .85); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.hm-nav.prev { left: 10px; } .hm-nav.next { right: 10px; }
.hm-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
.hm-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--dark-2); color: #fff; cursor: pointer; opacity: .6; }
.hm-thumbs button.on { border-color: var(--gold); opacity: 1; }
.hm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hm-info { padding: clamp(20px, 3vw, 32px); }
.hm-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.badges.static { position: static; }
.hm-price { font-weight: 700; }
.hm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 800px) { .hm-box { grid-template-columns: 1fr; } .hm { padding: 0; } .hm-box { max-height: 100svh; border-radius: 0; } }

/* Redigering av hästens bilder och film */
.ed-media { padding: 12px 22px 0; display: grid; gap: 10px; }
.ed-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-thumb { position: relative; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--tint); }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-thumb.main { outline: 2px solid var(--gold); }
.ed-main { position: absolute; left: 0; right: 0; bottom: 0; font-size: .58rem; font-weight: 700; text-align: center; background: oklch(0.72 0.12 78 / .92); color: var(--dark); }
.ed-ctl.thumb { top: 2px; right: 2px; gap: 2px; opacity: 1; }
.ed-ctl.thumb button { width: 20px; height: 20px; font-size: 11px; }
.ed-thumb-add { width: 76px; height: 56px; border-radius: 8px; padding: 0; }
.ed-film { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
.ed-film span { font-weight: 600; }
.editing .ph[data-add-imgs] { cursor: pointer; }
.ed-menu { position: fixed; z-index: 130; width: min(380px, calc(100vw - 16px)); background: var(--card); border-radius: 14px; box-shadow: 0 16px 48px oklch(0 0 0 / .3); padding: 10px; }
.ed-menu-title { font-weight: 700; margin: 4px 8px 8px; }
.ed-menu-row { display: flex; gap: 4px; }
.ed-menu-row > button:first-child { flex: 1; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.ed-menu-row > button:first-child:hover { background: var(--tint); }
.ed-menu-row small { color: var(--muted); font-size: .78rem; }
.ed-menu-del { width: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.ed-menu-del:hover { background: oklch(0.55 0.18 28); color: #fff; }
.ed-menu-hint { font-size: .78rem; color: var(--muted); margin: 8px 8px 2px; }

/* Inloggning till redigeringen */
.login { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--dark), oklch(0.22 0.03 65)); }
.login-box { width: min(400px, 100%); background: var(--bg); border-radius: var(--radius); padding: clamp(24px, 5vw, 40px); display: grid; gap: 14px; box-shadow: 0 24px 60px oklch(0 0 0 / .4); text-align: center; }
.login-box h1 { font-size: 2rem; margin: 0; }
.login-box .eyebrow { margin: 0; }
.login-box label { display: grid; gap: 6px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.login-box input { font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; letter-spacing: 0; text-transform: none; }
.login-box input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.login-box [data-login-msg].bad { color: oklch(0.5 0.18 28); font-weight: 600; }
.login-box a { text-decoration: none; }

/* ---------- Avelshingstar ---------- */
.hs-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.hs-head .lead { margin: 0; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.hs-card { position: relative; }
.hs-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.hs-link:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px oklch(0.18 0.02 65 / .45); border-color: var(--gold); }
.hs-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--dark); }
.hs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hs-link:hover .hs-img img { transform: scale(1.05); }
.hs-chip { position: absolute; left: 12px; top: 12px; padding: .45em .9em; border-radius: 999px; font: 700 .68rem var(--sans); letter-spacing: .08em;
  text-transform: uppercase; background: oklch(0.15 0.02 65 / .78); color: var(--gold); backdrop-filter: blur(6px); }
.hs-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hs-body h3 { margin: 0; font-size: 1.45rem; }
.hs-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.hs-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.hs-score { display: flex; flex-direction: column; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hs-score strong { font: 700 1.7rem/1 var(--serif); color: var(--gold-deep); letter-spacing: 0; }
.hs-more { font-weight: 600; font-size: .85rem; color: var(--gold-deep); white-space: nowrap; }
.hs-link:hover .hs-more span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
.hs-grid > .ed-add.card { min-height: 120px; display: grid; place-items: center; text-decoration: none; }

/* En hingsts sida */
.hg-section { padding-top: 48px; }
.hg-admin { background: var(--gold-soft); border: 1px dashed var(--gold); padding: 10px 14px; border-radius: 12px; font-size: .88rem; }
.hg-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hg-gallery { position: sticky; top: 96px; display: grid; gap: 12px; }
.hg-main { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark); cursor: zoom-in; aspect-ratio: 4/3; }
.hg-main img { width: 100%; height: 100%; object-fit: contain; }
.hg-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hg-thumb { flex: none; width: 84px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--tint); opacity: .65; transition: opacity .2s, border-color .2s; }
.hg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hg-thumb:hover, .hg-thumb.on { opacity: 1; border-color: var(--gold); }
.hg-film { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--dark); }
.hg-film iframe, .hg-film video { width: 100%; height: 100%; border: 0; display: block; }
.hg-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6em; }
.hg-tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hg-tags li { position: relative; padding: .5em 1em; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-size: .8rem; font-weight: 600; }
.hg-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 22px; }
.hg-score { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.hg-score strong { font: 700 2.1rem/1 var(--serif); color: var(--gold-deep); }
.hg-score span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hg-offer { position: relative; padding: 16px 18px 16px 48px; border-radius: 14px; background: var(--dark); color: #fff; font-weight: 500; margin-bottom: 22px; }
.hg-offer::before { content: "✦"; position: absolute; left: 18px; top: 15px; color: var(--gold); font-size: 1.1rem; }
.hg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hg-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: 72px; align-items: start; }
.hg-text h3, .hg-offspring h3, .hg-others h3 { font-size: 1.9rem; margin-top: 0; }
.hg-text > p { font-size: 1.02rem; line-height: 1.75; }
.hg-text > p:first-of-type::first-letter { font: 700 3.4em/.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--gold-deep); }
.hg-text .ed-multi { white-space: pre-line; color: var(--ink); line-height: 1.75; }
.hg-merits { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.hg-merits li { position: relative; padding: 10px 14px 10px 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hg-merits li::before { content: "★"; position: absolute; left: 14px; color: var(--gold); }
.hg-text h3 + .hg-merits, .hg-text > p + h3, .hg-text .ed-multi + h3 { margin-top: 1.4em; }
.hg-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.hg-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.hg-card h4 { font-size: 1.4rem; margin-bottom: .8em; }
.hg-card h5 { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.ped { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ped-p, .ped-gp { display: grid; gap: 8px; }
.ped-p .ped-cell { height: 100%; background: var(--dark); color: #fff; }
.ped-p .ped-cell span { color: var(--gold); }
.ped-cell { border-radius: 12px; padding: 10px 12px; background: var(--tint); display: flex; flex-direction: column; justify-content: center; }
.ped-cell span { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ped-cell strong { font-size: .86rem; font-weight: 600; line-height: 1.35; }
.bar { display: grid; grid-template-columns: 112px 1fr 36px; align-items: center; gap: 10px; font-size: .85rem; padding: 4px 0; }
.bar-track { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.hg-offspring, .hg-others { margin-top: 80px; }
.hg-offspring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hg-offspring-grid button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--tint); }
.hg-offspring-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hg-offspring-grid button:hover img { transform: scale(1.06); }
.hg-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.hg-other { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; text-decoration: none; background: var(--dark); }
.hg-other img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.hg-other span { position: absolute; inset: auto 0 0; padding: 30px 12px 12px; color: #fff; font: 700 1.05rem/1.2 var(--serif); background: linear-gradient(transparent, oklch(0.1 0.02 65 / .9)); }
.hg-other:hover img { transform: scale(1.05); opacity: 1; }

/* Bildvisare */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: oklch(0.08 0.01 65 / .96); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 8px; }
.lb-x, .lb-nav { position: fixed; border: 0; background: oklch(1 0 0 / .1); color: #fff; border-radius: 50%; cursor: pointer; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-x:hover, .lb-nav:hover { background: oklch(1 0 0 / .22); }
.lb-x { top: 16px; right: 16px; }
.lb-nav.prev { left: 16px; top: 50%; }
.lb-nav.next { right: 16px; top: 50%; }
.lb-nav[hidden] { display: none; }
.lb-count { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .85rem; opacity: .7; }

@media (max-width: 900px) {
  .hg-top, .hg-body { grid-template-columns: 1fr; gap: 32px; }
  .hg-gallery, .hg-side { position: static; }
  .hg-body { margin-top: 48px; }
  .lb img { max-width: 100vw; }
  .lb-nav { top: auto !important; bottom: 16px; }
}
@media (max-width: 600px) {
  .hs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hs-body { padding: 12px; }
  .hs-body h3 { font-size: 1.15rem; }
  .hs-body p { display: none; }
  .hs-score strong { font-size: 1.3rem; }
  .hs-more { font-size: .75rem; }
  .bar { grid-template-columns: 96px 1fr 32px; }
}

/* ---------- Meriter, kompakt vy ---------- */
.stat { position: relative; }
.stat.st-Guld b { color: var(--gold-deep); }
.stat.st-Silver b { color: oklch(0.6 0.01 250); }
.stat.st-Brons b { color: oklch(0.58 0.09 50); }
.stat[class*="st-"]::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 10px; background: var(--gold); }
.stat.st-Silver::before { background: oklch(0.8 0.005 250); }
.stat.st-Brons::before { background: oklch(0.7 0.09 50); }
.merit-list.compact { max-width: 980px; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 28px; box-shadow: var(--shadow); }
.my-year { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.my-year:last-child { border-bottom: 0; }
.my-yr { font: 700 1.9rem/1 var(--serif); color: var(--gold-deep); padding-top: 2px; }
.my-rows { display: grid; gap: 10px; }
.my-row { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
.my-horse { font-size: .85rem; font-weight: 600; padding-top: 4px; }
.my-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.my-pill { display: inline-flex; align-items: center; gap: 7px; padding: .35em .8em; border-radius: 999px; background: var(--tint); font-size: .8rem; line-height: 1.3; }
.my-pill i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: oklch(0.8 0.01 85); }
.my-pill.m-Guld { background: var(--gold-soft); }
.my-pill.m-Guld i { background: var(--gold); box-shadow: 0 0 0 2px oklch(0.72 0.12 78 / .25); }
.my-pill.m-Silver i { background: oklch(0.78 0.005 250); }
.my-pill.m-Brons i { background: oklch(0.68 0.09 50); }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .merit-list.compact { padding: 4px 16px; }
  .my-year { grid-template-columns: 1fr; gap: 10px; }
  .my-row { grid-template-columns: 1fr; gap: 6px; }
  .my-horse { padding-top: 0; color: var(--muted); }
}

/* Meriter: ännu kompaktare på den publika sidan */
#meriter { padding: clamp(48px, 6vw, 72px) 0; }
#meriter h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
#meriter .lead { font-size: .95rem; margin-bottom: 0; }
#meriter .stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px auto 22px; max-width: none; }
#meriter .stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; box-shadow: none; border: 1px solid var(--line); }
#meriter .stat::before { margin: 0; width: 9px; height: 9px; }
#meriter .stat b { display: inline; font-size: 1.25rem; }
#meriter .stat span { font-size: .68rem; letter-spacing: .12em; }
body:not(.editing) #meriter [data-merit-filters] { display: none; }
.merit-list.compact { max-width: 860px; padding: 4px 20px; margin-bottom: 14px; }
.merit-list.compact .my-year { grid-template-columns: 52px 1fr; gap: 14px; padding: 10px 0; }
.merit-list.compact .my-yr { font-size: 1.25rem; padding-top: 3px; }
.merit-list.compact .my-rows { gap: 6px; }
.merit-list.compact .my-row { grid-template-columns: 190px 1fr; gap: 10px; }
.merit-list.compact .my-horse { font-size: .8rem; padding-top: 3px; }
.merit-list.compact .my-pill { font-size: .74rem; padding: .25em .7em; }
[data-meriter-toggle] { padding: .65em 1.3em; font-size: .72rem; }
@media (max-width: 700px) {
  .merit-list.compact .my-year { grid-template-columns: 1fr; gap: 4px; }
  .merit-list.compact .my-row { grid-template-columns: 1fr; gap: 4px; }
}
/* Meriter i redigeringsläget: tätare rader */
.editing .merit-list { max-width: 860px; gap: 6px; }
.editing .merit { padding: 8px 14px; gap: 12px; grid-template-columns: 52px 110px 1fr auto; }
.editing .merit .yr { font-size: 1.1rem; }
.editing .merit h4 { font-size: .88rem; }
.editing .merit p { font-size: .78rem; }
.editing #meriter .filters { margin-bottom: 14px; }

.ed-pop[hidden] { display: none; }
.ed-imgmenu { z-index: 130; }
.ed-imgmenu button[data-im="close"] { padding-inline: .7em; }
.ed-im-size { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-left: 1px solid oklch(1 0 0 / .15); border-right: 1px solid oklch(1 0 0 / .15); }
.ed-im-size b { min-width: 44px; text-align: center; font: 600 .8rem var(--sans); color: #fff; }
.ed-im-size button { min-width: 30px; }

/* ---------- Mina hästar & avelsston ---------- */
.mina-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 48px; }
.mina-text h2 { margin-bottom: .5em; }
.mina-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.mina-text .ed-multi { white-space: pre-line; color: var(--muted); line-height: 1.75; }
.mina-fig { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-height: 520px; }
.mina-fig img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.mina-horse .badges.static { position: static; margin-bottom: 12px; }
.mina-horse.no-img .horse-body { padding-top: 22px; border-top: 3px solid var(--gold); }
.mina-horse.no-img .badge { background: var(--tint); }
.mina-horse.no-img .badge.sale { background: var(--gold); }
.mina-drakt { position: relative; margin: 2px 0 14px; padding: 10px 12px 10px 36px; border-radius: 12px; background: var(--dark); color: #fff; font-size: .85rem; font-weight: 500; }
.mina-drakt::before { content: "✦"; position: absolute; left: 13px; top: 9px; color: var(--gold); }
.mina-drakt:empty { display: none; }
.editing .mina-drakt:empty { display: block; background: var(--tint); color: var(--muted); }
.mina-avk { margin: 0 0 14px; font-size: .84rem; }
.mina-avk > span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mina-avk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mina-avk li { position: relative; padding-left: 16px; }
.mina-avk li::before { content: "•"; position: absolute; left: 2px; color: var(--gold); }
.mina-gallery { margin-top: 64px; }
.mina-gallery h3 { font-size: 1.9rem; text-align: center; }
.mina-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mina-gal-grid figure { position: relative; margin: 0; }
.mina-gal-grid button { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--card); }
.mina-gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mina-gal-grid button:hover img { transform: scale(1.05); }
.hm-info .mina-drakt { margin-top: 8px; }
@media (max-width: 900px) { .mina-intro { grid-template-columns: 1fr; gap: 28px; } .mina-fig, .mina-fig img { max-height: 380px; } }

/* Fler bilder på ett bildfält: bildspel */
.multi-img { position: relative; display: block; width: 100%; height: 100%; }
.multi-img > img { transition: opacity 1.2s ease; }
.multi-img > img:not(.on) { opacity: 0; }
.multi-img > img:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.multi-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.multi-dots i { width: 7px; height: 7px; border-radius: 50%; background: oklch(1 0 0 / .55); box-shadow: 0 0 4px oklch(0 0 0 / .3); transition: background .3s, transform .3s; }
.multi-dots i.on { background: #fff; transform: scale(1.25); }
.multi-badge { position: absolute; left: 10px; bottom: 10px; font: 600 .72rem var(--sans); padding: .35em .8em; border-radius: 999px; background: var(--dark); color: var(--gold); pointer-events: none; }
.ed-ver { align-self: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; background: var(--gold); color: var(--dark); }

/* Priser per tjänst */
.prices { margin: 4px 0 24px; padding: 18px 20px; border-radius: 14px; background: var(--tint); }
.prices h4 { font-size: 1.15rem; margin-bottom: .6em; }
.price-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-rows li { position: relative; display: flex; align-items: baseline; gap: 10px; }
.price-rows li::before { content: none !important; }
.pr-name { display: flex; flex-direction: column; min-width: 0; }
.pr-name span { font-weight: 600; }
.pr-name small { color: var(--muted); font-size: .8rem; }
.pr-dots { flex: 1; min-width: 20px; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.price-rows strong { white-space: nowrap; color: var(--gold-deep); font-weight: 700; }
.prices .ed-add { margin-top: 12px; }
.editing .price-rows li { padding-right: 26px; }

/* Redigeringsläge: knappar direkt på startfilmen */
.ed-hero-tools { position: absolute; right: 20px; bottom: 20px; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ed-hero-tools button { font: 600 .85rem var(--sans); padding: .7em 1.1em; border-radius: 999px; border: 0; cursor: pointer; background: oklch(0.15 0.02 65 / .85); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 6px 18px oklch(0 0 0 / .3); }
.ed-hero-tools button:hover { background: var(--gold); color: var(--dark); }
.ed-hero-tools button[hidden] { display: none; }
:is([data-hero="bage"], [data-hero="delad"]) .ed-hero-tools { position: relative; right: auto; bottom: auto; grid-column: 2; grid-row: 1; align-self: end; justify-self: center; margin-bottom: 24px; }
@media (max-width: 900px) { :is([data-hero="bage"], [data-hero="delad"]) .ed-hero-tools { grid-column: 1; } }

/* Inloggning till admin */
.footer-login { opacity: .7; text-decoration: none; white-space: nowrap; }
.footer-login:hover { opacity: 1; text-decoration: underline; }
.quick-edit { position: fixed; left: 16px; bottom: 16px; z-index: 120; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: oklch(0.15 0.02 65 / .92); box-shadow: 0 10px 30px oklch(0 0 0 / .35); backdrop-filter: blur(8px); font: 600 .82rem var(--sans); }
.quick-edit a { color: #fff; text-decoration: none; padding: .6em 1em; border-radius: 999px; }
.quick-edit a:first-child { background: var(--gold); color: var(--dark); }
.quick-edit a:hover { background: oklch(1 0 0 / .12); }
.quick-edit a:first-child:hover { background: oklch(0.78 0.12 80); }
.quick-edit button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: oklch(1 0 0 / .7); cursor: pointer; font-size: 1rem; }
.tema-val ~ .quick-edit, .quick-edit:has(~ .tema-val) { bottom: 80px; }
@media (max-width: 600px) { .quick-edit { left: 10px; bottom: 10px; } }

/* Långa texter: enkla radbrytningar (t.ex. listor med *) syns som nya rader */
.lt { white-space: pre-line; }

/* Avtal & dokument (sidan /seminstation) */
.docs { list-style: none; padding: 0; margin: 36px auto 0; max-width: 860px; display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.doc-ikon { flex: none; width: 52px; height: 60px; display: grid; place-items: center; border-radius: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-deep); background: color-mix(in oklch, var(--gold) 14%, transparent); border: 1px solid color-mix(in oklch, var(--gold) 35%, transparent); }
.doc-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc-text strong { font-size: 1.05rem; }
.doc-text small { color: var(--muted); }
.doc-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.doc-btns .btn { padding: 10px 18px; font-size: .85rem; }
#dokument .ed-add.card { display: block; margin: 16px auto 0; max-width: 860px; width: 100%; min-height: 80px; }
.semin-actions, .service-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.semin-actions [hidden] { display: none; }
@media (max-width: 600px) {
  .doc { flex-wrap: wrap; }
  .doc-btns { width: 100%; justify-content: stretch; }
  .doc-btns .btn { flex: 1; }
}

/* Prislista seminstation (sidan /seminstation) */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin: 36px auto 0; max-width: 1000px; }
.pl-grid.one { max-width: 640px; }
.pl-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.pl-card h3 { font-size: 1.5rem; margin-bottom: .9em; }
.pl-card .price-rows { gap: 14px; }
.pl-card .price-rows strong { font-size: 1.05rem; }
.pl-card .ed-add { margin-top: 14px; }
.pl-grid .pl-add { min-height: 120px; }
.pl-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 24px auto 0; max-width: 640px; }
.editing .pl-card { padding-right: 40px; }
