/* Layout concept: a sale-catalog spine. Dark pinon bands for the hero and footer,
   a pale sage page between them, sire and standards data set in mono like an EPD box,
   and an elevation profile of the Uncompahgre Plateau as the recurring motif. */
:root {
  --pinon: #1d2a24;        /* deep juniper/pinon green-black: hero, footer */
  --pinon-2: #26362f;
  --sage: #eef1ea;         /* page ground, cool sage-tinted off-white */
  --sage-2: #e2e7dc;       /* inset panels */
  --ink: #1b211d;          /* body text */
  --ink-2: #4b564f;        /* secondary text */
  --rule: #c9d1c3;
  --aspen: #c99a1e;        /* fall aspen gold: the one accent */
  --aspen-ink: #8a6608;    /* gold dark enough for text on light ground */
  --sky: #3f5f78;          /* high-country sky: links */
  --on-dark: #edf0e8;
  --on-dark-2: #aebbb1;
  --ph: #fff6d9;           /* placeholder highlight */
  --ph-line: #c99a1e;
  --card: #ffffff;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pinon: #121a16; --pinon-2: #1a2520;
    --sage: #171d1a; --sage-2: #202824;
    --ink: #e7ebe4; --ink-2: #a9b4ac; --rule: #34403a;
    --aspen: #dcae35; --aspen-ink: #e3b94a; --sky: #8fb2cf;
    --on-dark: #edf0e8; --on-dark-2: #a3b0a7;
    --ph: #3a3218; --ph-line: #c99a1e; --card: #1d2420;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pinon: #121a16; --pinon-2: #1a2520;
  --sage: #171d1a; --sage-2: #202824;
  --ink: #e7ebe4; --ink-2: #a9b4ac; --rule: #34403a;
  --aspen: #dcae35; --aspen-ink: #e3b94a; --sky: #8fb2cf;
  --on-dark: #edf0e8; --on-dark-2: #a3b0a7;
  --ph: #3a3218; --ph-line: #c99a1e; --card: #1d2420;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--sky); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aspen); outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.prose { max-width: 65ch; display: grid; gap: 1rem; }
.prose p { color: var(--ink); }
.eyebrow {
  font-family: var(--f-data);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aspen-ink);
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--pinon);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--pinon);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--on-dark); text-decoration: none;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--f-display); font-weight: 600; font-size: 1.45rem;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--f-data); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.16em; color: var(--on-dark-2); margin-top: 3px;
}
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--on-dark-2); text-decoration: none;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.4rem 0.6rem; border-radius: 4px;
}
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--aspen); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.25);
  color: var(--on-dark); font-family: var(--f-display); font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.75rem; border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 0.6rem; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav a { padding: 0.6rem 0.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ---------- hero ---------- */
.hero {
  background: var(--pinon);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero .wrap { padding-block: clamp(3rem, 8vw, 5.5rem) 0; display: grid; gap: 1.4rem; }
.hero h1 { color: var(--on-dark); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--aspen); }
.hero .lede { color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.profile { display: block; width: 100%; height: auto; margin-top: 2rem; }
.profile .ridge-fill { fill: var(--pinon-2); }
.profile .ridge-line { fill: none; stroke: var(--aspen); stroke-width: 2; }
.profile .grid { stroke: rgba(237,240,232,0.10); stroke-width: 1; }
.profile text { fill: var(--on-dark-2); font-family: var(--f-data); font-size: 12px; letter-spacing: 0.08em; }
.profile .pin { fill: var(--aspen); }

.page-head { background: var(--pinon); color: var(--on-dark); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 0.9rem; }
.page-head h1 { color: var(--on-dark); font-size: clamp(2.3rem, 6vw, 3.8rem); }
.page-head .lede { color: var(--on-dark-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7rem 1.3rem; border-radius: 4px; border: 2px solid var(--aspen);
}
.btn-primary { background: var(--aspen); color: #1b1607; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(237,240,232,0.4); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2rem; }
.band { background: var(--sage-2); }
.band.section + .section, .section + .band.section { padding-top: clamp(3rem, 7vw, 5rem); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillars > * { min-width: 0; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 3px solid var(--aspen); }
.pillar p { color: var(--ink-2); }

/* EPD-style standards box, set like a sale catalog lot */
.standards {
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden;
}
.standards-head {
  background: var(--pinon); color: var(--on-dark);
  font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.standards dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.standards dl > div { padding: 1rem; border-top: 1px solid var(--rule); display: grid; gap: 0.2rem; min-width: 0; }
.standards dl > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.standards dt { font-family: var(--f-data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.standards dd { margin: 0; font-family: var(--f-data); font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.standards .why { font-family: var(--f-body); font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 480px) {
  .standards dl { grid-template-columns: 1fr; }
  .standards dl > div:nth-child(odd) { border-right: 0; }
}

/* sire roster */
.sires { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sires > * { min-width: 0; }
@media (max-width: 820px) { .sires { grid-template-columns: 1fr; } }
.sire {
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: 0.35rem; align-content: start;
}
.sire .reg { font-family: var(--f-data); font-size: 0.8rem; color: var(--ink-2); letter-spacing: 0.06em; }
.sire h3 { font-size: 1.6rem; text-transform: uppercase; }
.sire .tag {
  justify-self: start; font-family: var(--f-data); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--aspen-ink); border: 1px solid var(--aspen); border-radius: 3px;
  padding: 0.1rem 0.45rem;
}
.sire p { color: var(--ink-2); font-size: 0.95rem; }

/* photo placeholders */
.photo {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 6px; overflow: hidden;
  background-color: var(--sage-2);
  background-image: var(--topo);
  background-size: 360px 360px;
  border: 1px dashed var(--rule);
  display: flex; align-items: flex-end;
}
.photo.wide { aspect-ratio: 16 / 9; }
.photo span {
  margin: 0.75rem; background: var(--card); color: var(--ink-2);
  font-family: var(--f-data); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: 3px; border: 1px solid var(--rule);
}

/* placeholders for MJ to fill in */
.ph {
  background: var(--ph); border: 1px dashed var(--ph-line); border-radius: 4px;
  padding: 0.05rem 0.4rem; font-size: 0.95em; color: var(--ink);
}
.ph::before {
  content: "TO SUPPLY"; font-family: var(--f-data); font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--aspen-ink); margin-right: 0.4rem; vertical-align: 0.12em;
}
.draft-note {
  background: var(--ph); border: 1px dashed var(--ph-line); border-radius: 6px;
  padding: 0.9rem 1rem; font-size: 0.95rem; color: var(--ink);
}

/* offering table */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: var(--f-data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark); background: var(--pinon); font-weight: 500;
}
td { font-size: 0.95rem; }
td.lot { font-family: var(--f-data); }
tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.checklist li::before { content: ""; width: 0.8rem; height: 0.8rem; margin-top: 0.45rem; background: var(--aspen); transform: rotate(45deg); }
.checklist b { font-weight: 600; }

/* CTA band */
.cta { background: var(--pinon); color: var(--on-dark); }
.cta .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--on-dark); max-width: 20ch; }
.cta p { color: var(--on-dark-2); max-width: 52ch; margin-top: 0.6rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list div { display: grid; gap: 0.15rem; }
.contact-list dt { font-family: var(--f-data); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.contact-list dd { margin: 0; font-size: 1.05rem; }
form.inquiry {
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row > * { min-width: 0; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--sage);
  border: 1px solid var(--rule); border-radius: 4px; padding: 0.6rem 0.7rem; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
.form-status { font-size: 0.95rem; color: var(--ink-2); }

/* footer */
.site-footer { background: var(--pinon); color: var(--on-dark-2); border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.footer-meta { font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.06em; display: grid; gap: 0.3rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }


/* sire cards: two across so four bulls fill the grid evenly */
.sires { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .sires { grid-template-columns: 1fr; } }
.sire .ped { font-size: 0.9rem; color: var(--ink); }
.sire .ped span { font-family: var(--f-data); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-right: 0.3rem; }
.sire-epds {
  margin: 0.4rem 0; display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
.sire-epds > div { padding: 0.5rem 0.45rem; display: grid; gap: 0.1rem; align-content: start; min-width: 0; border-left: 1px solid var(--rule); }
.sire-epds > div:first-child { border-left: 0; }
.sire-epds dt { font-family: var(--f-data); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.sire-epds dd { margin: 0; font-family: var(--f-data); font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.sire-epds span { font-family: var(--f-data); font-size: 0.66rem; color: var(--aspen-ink); }
@media (max-width: 420px) {
  .sire-epds { grid-template-columns: repeat(3, 1fr); }
  .sire-epds > div:nth-child(4) { border-left: 0; }
  .sire-epds > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
.fineprint { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-2); max-width: 75ch; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
table.lots { min-width: 900px; }

/* ---------------------------------------------------------------- offerings (data-driven) */
.status-pill { display: inline-block; vertical-align: middle; margin-left: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-family: var(--f-data); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule);
  color: var(--ink-2); background: var(--card); }
.status-pending { border-color: var(--aspen); color: var(--aspen-ink); }
.status-sold { background: var(--ink); color: var(--sage); border-color: var(--ink); }
.status-available { border-color: var(--rule); }
.offering-follow { margin-top: 1.25rem; display: grid; gap: 0.8rem; max-width: 65ch; }
.offering-facts { margin-top: 1.5rem; max-width: 640px; }
.offering + .offering:not(.band) { padding-top: clamp(3rem, 7vw, 5rem); }
.offering .wrap + .wrap { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.media-item { margin: 0; display: grid; gap: 0.4rem; min-width: 0; }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--sage-2); }
.media-item iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.media-item.video { grid-column: span 2; }
.media-item.link a { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--pinon); color: var(--on-dark); text-decoration: none; font-family: var(--f-display); font-size: 1.3rem; text-transform: uppercase; }
.media-item figcaption { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 560px) { .media-item.video { grid-column: auto; } }

/* ---------------------------------------------------------------- admin */
.admin .wrap { display: grid; gap: 1.25rem; }
.admin-note { padding: 0.8rem 1rem; border-left: 3px solid var(--aspen); background: var(--ph); font-size: 0.95rem; }
.admin-card { padding: 1.5rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); display: grid; gap: 0.8rem; max-width: 34rem; }
.admin-bar, .admin-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.admin-bar-gap { flex: 1; }
.linklike { background: none; border: 0; padding: 0.4rem 0.2rem; font: inherit; color: var(--sky); text-decoration: underline; cursor: pointer; }
.btn-small { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.btn-danger { background: transparent; color: #a3271d; border-color: #a3271d; }
.btn-danger.armed { background: #a3271d; color: #fff; }
.icon-btn { width: 2.25rem; height: 2.25rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink);
  font-size: 1.05rem; line-height: 1; cursor: pointer; flex: none; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.form-status.bad { color: #a3271d; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.admin-item { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--card); }
.admin-item-main { min-width: 0; display: grid; gap: 0.3rem; }
.admin-item-main .status-pill { margin-left: 0; justify-self: start; }
.admin-item h3 { font-size: 1.35rem; text-transform: uppercase; overflow-wrap: anywhere; }
.admin-item p { color: var(--ink-2); font-size: 0.92rem; }
.admin-item-actions { display: flex; gap: 0.4rem; flex: none; }
.admin-empty { padding: 1.25rem; border: 1px dashed var(--rule); border-radius: 6px; color: var(--ink-2); }
.admin-editor { display: grid; gap: 1.25rem; }
.admin-editor-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; }
.admin-status-field { min-width: 14rem; }
.admin-editor fieldset { border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; margin: 0; display: grid; gap: 0.9rem; background: var(--card); min-width: 0; }
.admin-editor legend { font-family: var(--f-data); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 0.4rem; }
.hint { font-size: 0.82rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.rows { display: grid; gap: 0.6rem; }
.row-edit { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 0.5rem; align-items: end; }
#p-included .row-edit { grid-template-columns: 1fr 3fr auto; }
.row-edit .field span { font-size: 0.8rem; color: var(--ink-2); }
.admin-lots { min-width: 1100px; }
.admin-lots td { padding: 0.25rem; }
.admin-lots input { width: 100%; min-width: 5rem; padding: 0.35rem 0.4rem; font-size: 0.9rem; }
.media-add { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.video-link { flex: 1; min-width: 16rem; }
.inline { display: flex; gap: 0.5rem; }
.inline input { flex: 1; min-width: 0; }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.media-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.6rem;
  border: 1px solid var(--rule); border-radius: 6px; }
.media-row img, .video-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--pinon);
  color: var(--on-dark); display: grid; place-items: center; font-family: var(--f-data); font-size: 0.75rem; }
.media-meta { min-width: 0; display: grid; gap: 0.3rem; }
.media-url { font-family: var(--f-data); font-size: 0.75rem; color: var(--ink-2); overflow-wrap: anywhere; }
.media-btns { display: flex; gap: 0.3rem; }
@media (max-width: 720px) {
  .row-edit, #p-included .row-edit { grid-template-columns: 1fr; }
  .row-edit .icon-btn { justify-self: end; }
  .admin-item { flex-direction: column; align-items: stretch; }
  .media-row { grid-template-columns: 72px 1fr; }
  .media-row img, .video-thumb { width: 72px; height: 54px; }
  .media-btns { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { color: #f08a7e; border-color: #f08a7e; } }
:root[data-theme="dark"] .btn-danger { color: #f08a7e; border-color: #f08a7e; }
.row-edit textarea { min-height: 3.2rem; }

:root { --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%2378917f' stroke-opacity='0.35' stroke-width='1'%3E%3Cpath d='M207.8 180.0 L211.4 182.2 L213.8 184.8 L214.6 187.4 L213.6 189.8 L211.0 191.6 L207.2 192.6 L202.6 192.7 L197.9 192.0 L193.6 190.9 L190.1 189.6 L187.6 188.7 L185.9 188.2 L185.0 188.5 L184.3 189.5 L183.7 191.1 L182.8 192.9 L181.6 194.6 L180.0 196.1 L178.1 197.0 L176.2 197.5 L174.2 197.4 L172.2 197.1 L170.3 196.6 L168.3 196.3 L166.0 196.0 L163.4 195.8 L160.6 195.5 L157.7 195.0 L154.9 194.0 L152.8 192.6 L151.7 190.6 L151.8 188.2 L153.3 185.7 L156.1 183.4 L159.8 181.4 L163.8 180.0 L167.5 179.1 L170.4 178.7 L172.1 178.3 L172.3 177.8 L171.2 176.7 L169.1 175.0 L166.6 172.5 L164.2 169.4 L162.5 166.0 L161.8 162.7 L162.3 159.8 L163.9 157.7 L166.4 156.6 L169.3 156.4 L172.3 157.1 L175.2 158.2 L177.8 159.6 L180.0 160.9 L182.0 162.0 L183.8 162.8 L185.6 163.4 L187.3 164.0 L188.9 164.7 L190.3 165.8 L191.2 167.2 L191.7 168.8 L191.7 170.6 L191.4 172.4 L191.0 173.8 L190.9 175.0 L191.6 175.7 L193.2 176.2 L195.8 176.6 L199.4 177.3 L203.6 178.3 L207.8 180.0Z'/%3E%3Cpath d='M232.9 180.0 L234.9 183.8 L235.4 187.8 L234.3 191.6 L231.4 195.0 L227.0 197.5 L221.6 199.2 L215.7 200.0 L210.0 200.1 L204.9 200.0 L200.8 199.8 L197.7 200.2 L195.4 201.3 L193.6 203.3 L191.9 206.1 L189.8 209.3 L187.2 212.7 L183.9 215.7 L180.0 218.0 L175.7 219.3 L171.3 219.6 L166.9 219.0 L162.9 217.6 L159.2 215.7 L155.7 213.6 L152.5 211.4 L149.3 209.3 L146.2 207.0 L143.2 204.7 L140.5 202.1 L138.4 199.2 L137.2 196.0 L136.9 192.5 L137.8 189.0 L139.7 185.7 L142.2 182.6 L144.9 180.0 L147.2 177.7 L148.8 175.6 L149.3 173.4 L148.7 170.9 L147.3 167.8 L145.4 164.0 L143.6 159.6 L142.6 154.9 L142.7 150.2 L144.3 145.9 L147.2 142.5 L151.4 140.4 L156.4 139.5 L161.8 139.9 L167.0 141.3 L171.9 143.3 L176.2 145.5 L180.0 147.6 L183.4 149.2 L186.5 150.3 L189.7 151.0 L193.0 151.5 L196.4 151.9 L199.7 152.7 L203.0 153.8 L205.9 155.3 L208.4 157.3 L210.6 159.5 L212.6 161.7 L214.6 164.0 L216.9 166.2 L219.6 168.5 L222.8 170.8 L226.4 173.5 L229.9 176.5 L232.9 180.0Z'/%3E%3Cpath d='M253.8 180.0 L254.2 185.2 L253.2 190.3 L250.6 195.1 L246.6 199.4 L241.4 202.9 L235.4 205.6 L229.2 207.5 L223.3 209.0 L218.0 210.4 L213.6 212.1 L210.0 214.3 L207.0 217.3 L204.0 221.2 L200.8 225.6 L196.8 230.2 L192.0 234.6 L186.4 238.1 L180.0 240.4 L173.3 241.3 L166.6 240.7 L160.3 238.7 L154.6 235.7 L149.7 232.1 L145.3 228.1 L141.4 224.1 L137.7 220.3 L134.2 216.6 L130.8 213.0 L127.5 209.4 L124.6 205.6 L122.3 201.5 L120.7 197.3 L120.0 192.9 L120.1 188.5 L120.8 184.1 L121.8 180.0 L122.7 176.0 L123.2 172.0 L123.1 167.8 L122.6 163.3 L121.7 158.3 L121.1 152.8 L121.1 147.0 L122.1 141.2 L124.7 135.7 L128.8 131.2 L134.3 127.8 L141.0 125.9 L148.2 125.5 L155.6 126.4 L162.7 128.2 L169.1 130.6 L174.8 132.9 L180.0 134.8 L184.8 136.1 L189.5 136.7 L194.5 136.7 L199.8 136.5 L205.4 136.4 L211.3 136.7 L217.1 137.6 L222.6 139.4 L227.6 142.0 L231.9 145.2 L235.7 148.8 L238.9 152.8 L241.9 156.9 L244.7 161.1 L247.5 165.5 L250.1 170.1 L252.3 174.9 L253.8 180.0Z'/%3E%3Cpath d='M271.0 180.0 L270.5 186.3 L268.8 192.5 L265.9 198.4 L261.8 203.8 L256.8 208.6 L251.0 212.8 L245.1 216.5 L239.3 219.8 L234.0 223.2 L229.1 226.9 L224.7 231.1 L220.3 235.9 L215.7 241.2 L210.4 246.7 L204.1 252.0 L196.9 256.5 L188.7 259.6 L180.0 261.2 L171.2 260.9 L162.6 258.8 L154.8 255.3 L147.9 250.7 L141.9 245.4 L136.7 240.1 L132.0 234.9 L127.5 230.1 L123.0 225.6 L118.4 221.4 L113.6 217.2 L109.0 212.8 L104.7 208.1 L101.0 203.0 L98.2 197.5 L96.3 191.8 L95.3 185.9 L95.0 180.0 L95.2 174.1 L95.5 168.1 L95.9 162.0 L96.4 155.7 L97.2 149.1 L98.6 142.4 L100.9 135.7 L104.5 129.3 L109.5 123.6 L116.0 119.0 L123.7 115.7 L132.3 113.9 L141.3 113.6 L150.2 114.4 L158.6 116.0 L166.3 117.8 L173.4 119.4 L180.0 120.4 L186.5 120.6 L193.2 120.2 L200.3 119.3 L208.1 118.3 L216.2 117.8 L224.7 118.1 L232.9 119.5 L240.6 122.2 L247.5 126.0 L253.2 130.9 L257.8 136.4 L261.4 142.4 L264.2 148.6 L266.4 154.8 L268.2 161.1 L269.6 167.4 L270.6 173.7 L271.0 180.0Z'/%3E%3Cpath d='M286.8 180.0 L286.5 187.5 L285.3 194.8 L283.0 202.1 L279.7 209.0 L275.3 215.5 L270.1 221.6 L264.5 227.3 L258.6 232.7 L252.6 238.1 L246.7 243.6 L240.7 249.4 L234.4 255.4 L227.5 261.5 L219.7 267.3 L210.9 272.3 L201.2 276.2 L190.8 278.4 L180.0 278.7 L169.4 277.1 L159.3 273.7 L150.2 268.9 L142.2 263.2 L135.1 257.0 L128.7 251.0 L122.8 245.4 L116.8 240.3 L110.5 235.6 L103.8 231.1 L96.9 226.6 L89.9 221.6 L83.2 216.1 L77.4 209.9 L72.7 203.0 L69.4 195.6 L67.4 187.9 L66.8 180.0 L67.3 172.1 L68.6 164.3 L70.5 156.5 L72.9 148.8 L75.9 141.2 L79.6 133.6 L84.3 126.4 L90.0 119.6 L97.1 113.7 L105.3 108.8 L114.5 105.2 L124.4 103.0 L134.5 102.0 L144.5 101.9 L154.0 102.3 L163.0 102.9 L171.6 103.1 L180.0 102.7 L188.6 101.8 L197.5 100.4 L207.2 98.9 L217.4 97.8 L228.1 97.5 L238.7 98.6 L249.0 101.2 L258.2 105.5 L266.1 111.1 L272.4 118.0 L277.1 125.6 L280.4 133.6 L282.6 141.7 L284.1 149.7 L285.2 157.5 L286.0 165.0 L286.6 172.5 L286.8 180.0Z'/%3E%3Cpath d='M304.2 180.0 L304.9 188.7 L304.9 197.6 L303.8 206.5 L301.4 215.3 L297.6 223.9 L292.7 232.0 L286.7 239.7 L279.9 247.1 L272.6 254.0 L264.8 260.8 L256.5 267.5 L247.8 273.9 L238.3 279.9 L227.9 285.3 L216.7 289.7 L204.8 292.6 L192.4 293.8 L180.0 293.1 L167.9 290.6 L156.5 286.4 L146.1 281.1 L136.7 275.1 L128.1 269.0 L120.1 263.0 L112.1 257.5 L104.0 252.5 L95.3 247.8 L86.1 243.0 L76.7 237.9 L67.3 232.0 L58.7 225.3 L51.2 217.5 L45.5 208.8 L41.7 199.5 L40.0 189.8 L40.2 180.0 L41.9 170.3 L44.9 160.9 L48.8 151.9 L53.3 143.1 L58.4 134.6 L64.0 126.4 L70.4 118.6 L77.6 111.3 L85.9 104.7 L95.1 99.0 L105.1 94.5 L115.8 91.0 L126.7 88.5 L137.6 86.9 L148.4 85.7 L159.0 84.6 L169.4 83.4 L180.0 81.9 L190.9 80.2 L202.4 78.5 L214.5 77.1 L227.0 76.7 L239.7 77.5 L252.1 80.1 L263.6 84.5 L273.7 90.7 L282.0 98.4 L288.4 107.3 L292.9 116.7 L296.0 126.4 L297.9 136.0 L299.3 145.3 L300.5 154.2 L301.7 162.8 L303.0 171.4 L304.2 180.0Z'/%3E%3Cpath d='M325.2 180.0 L327.4 190.3 L328.7 201.0 L328.5 211.8 L326.6 222.7 L322.7 233.2 L317.0 243.3 L309.7 252.7 L301.2 261.3 L291.7 269.3 L281.4 276.7 L270.6 283.5 L259.3 289.8 L247.3 295.5 L234.7 300.2 L221.5 303.9 L207.8 306.2 L193.9 306.9 L180.0 305.9 L166.5 303.2 L153.7 299.2 L141.7 294.3 L130.5 288.7 L119.9 283.1 L109.6 277.6 L99.2 272.3 L88.4 267.3 L77.2 262.3 L65.6 256.8 L54.0 250.6 L43.0 243.3 L33.2 234.8 L25.1 225.1 L19.4 214.4 L16.2 203.1 L15.5 191.5 L17.2 180.0 L20.6 168.8 L25.4 158.2 L31.0 148.1 L37.1 138.4 L43.5 129.1 L50.3 120.1 L57.4 111.3 L65.2 103.0 L73.9 95.1 L83.5 88.0 L94.0 81.7 L105.3 76.4 L117.1 72.1 L129.4 68.7 L141.8 65.9 L154.3 63.5 L167.0 61.4 L180.0 59.5 L193.4 57.8 L207.2 56.6 L221.4 56.2 L235.9 57.2 L250.1 59.8 L263.6 64.2 L275.8 70.5 L286.4 78.6 L295.0 88.0 L301.6 98.4 L306.3 109.2 L309.7 120.1 L312.3 130.6 L314.6 140.8 L316.9 150.7 L319.5 160.3 L322.4 170.0 L325.2 180.0Z'/%3E%3Cpath d='M350.3 180.0 L353.8 192.2 L355.7 204.8 L355.6 217.6 L353.0 230.4 L348.0 242.7 L340.6 254.2 L331.3 264.7 L320.3 274.2 L308.3 282.6 L295.5 290.1 L282.3 296.9 L268.7 302.9 L254.7 308.2 L240.4 312.7 L225.6 316.3 L210.6 318.7 L195.3 319.7 L180.0 319.2 L165.0 317.3 L150.4 314.2 L136.4 310.1 L123.0 305.3 L109.9 300.2 L97.0 295.0 L84.0 289.7 L70.8 284.1 L57.4 278.1 L44.0 271.3 L31.2 263.4 L19.4 254.2 L9.3 243.7 L1.6 231.9 L-3.3 219.3 L-5.4 206.2 L-4.7 192.9 L-1.7 180.0 L3.1 167.6 L9.0 155.9 L15.5 144.7 L22.3 134.1 L29.0 123.7 L35.8 113.4 L42.9 103.2 L50.7 93.2 L59.4 83.5 L69.3 74.4 L80.4 66.2 L92.7 59.0 L106.0 53.0 L120.0 48.1 L134.5 44.3 L149.4 41.3 L164.6 39.1 L180.0 37.6 L195.7 36.8 L211.5 36.9 L227.5 38.1 L243.4 40.7 L258.7 45.0 L273.0 51.1 L285.9 59.0 L297.1 68.4 L306.3 79.0 L313.7 90.3 L319.5 101.9 L324.2 113.4 L328.4 124.7 L332.4 135.6 L336.7 146.4 L341.3 157.3 L346.0 168.4 L350.3 180.0Z'/%3E%3C/g%3E%3C/svg%3E"); }
