@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}
@font-face {
  font-family: Sora; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
}

:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #edf4f2;
  --ink: #0b2027;
  --muted: #687b80;
  --line: #d8e3e1;
  --aqua: #176b72;
  --aqua-soft: #e7f1ef;
  --aqua-bright: #559d9a;
  --ok: #18764a;
  --warn: #946200;
  --danger: #aa3027;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 18px 48px rgba(11, 32, 39, .09);
  --container: 1240px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.58 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
body.drawer-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: "Avenir Next", Avenir, Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.55rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.mono { font-family: "JetBrains Mono", monospace; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.aqua { color: var(--aqua); }
.hide { display: none !important; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 42px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px;
  color: var(--muted); font: 600 .72rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.announcement-bar {
  min-height: 34px; display: flex; align-items: center; justify-content: center;
  padding: 7px 16px; background: var(--ink); color: #fff;
  font: 500 .68rem/1.35 "JetBrains Mono", monospace; letter-spacing: .035em; text-align: center;
}
[data-site-header] {
  position: sticky; top: 0; z-index: 50; display: block; height: var(--header);
}
.site-header {
  position: relative; height: 100%; background: rgba(247, 250, 249, .94);
  border-bottom: 1px solid rgba(216, 227, 225, .9); box-shadow: 0 10px 28px rgba(11, 32, 39, .045); backdrop-filter: blur(18px);
}
.nav-shell { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  font: 700 1.08rem/1 "Avenir Next", Avenir, Inter, sans-serif; letter-spacing: -.045em;
}
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
}
.brand-mark img { width: 38px; height: 38px; object-fit: contain; }
.brand-word { color: var(--ink); }
.footer-brand .brand-word { color: #fff; }
.desktop-nav { display: none; align-items: center; gap: 3px; margin-left: 10px; }
.desktop-nav a {
  padding: 10px 11px; border-radius: 999px; color: #454b48; font-size: .85rem; font-weight: 600;
}
.desktop-nav a:hover, .desktop-nav a.active { background: var(--surface); color: var(--ink); }
.nav-search {
  display: none; align-items: center; gap: 10px; flex: 0 1 275px; max-width: 310px; height: 44px;
  margin-left: auto; padding: 0 9px 0 13px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: .18s ease;
}
.nav-search:hover, .nav-search:focus-visible { border-color: var(--line); background: var(--surface); color: var(--ink); outline: none; }
.nav-search-icon { display: grid; flex: 0 0 auto; place-items: center; }
.nav-search-icon svg { width: 18px; height: 18px; }
.nav-search-label { min-width: 0; display: flex; flex-direction: column; line-height: 1.08; }
.nav-search-label strong { color: var(--ink); font-size: .75rem; font-weight: 600; }
.nav-search-label small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .61rem; white-space: nowrap; text-overflow: ellipsis; }
.search-field { position: relative; }
.search-field svg {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; color: var(--muted);
}
.search-field input {
  width: 100%; height: 42px; padding: 0 48px 0 42px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink); outline: none;
}
.search-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 19, 18, .06); }
.key-hint {
  flex: 0 0 auto; margin-left: auto; border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 6px; color: var(--muted); background: var(--bg); font-size: .62rem;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.count-dot {
  position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; display: grid; place-items: center;
  padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: var(--aqua);
  color: #fff; font: 600 .6rem/1 "JetBrains Mono", monospace;
}
.menu-btn { display: grid; }

.drawer, .search-modal, .dialog {
  position: fixed; inset: 0; z-index: 100; visibility: hidden; opacity: 0; transition: .2s ease;
}
.drawer.open, .search-modal.open, .dialog.open { visibility: visible; opacity: 1; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(17, 19, 18, .48); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(92vw, 440px); padding: 18px 20px 32px;
  background: var(--surface); transform: translateX(100%); transition: .25s cubic-bezier(.22,.8,.2,1); overflow: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.drawer-nav { display: grid; }
.drawer-nav > a { padding: 17px 0; border-bottom: 1px solid var(--line); font: 600 1.4rem/1.2 Sora, sans-serif; }
.drawer-nav > a.active { color: var(--aqua); }
.drawer-sub { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 26px; }
.drawer-foot { margin-top: 40px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); }
.drawer-promo { margin-top: 28px; }
.drawer-promo-card {
  display: grid; gap: 12px;
  padding: 11px; border: 1px solid #c6ddd8; border-radius: 18px; background: linear-gradient(145deg, #edf8f5, #f9fbfa);
}
.drawer-promo-media {
  min-width: 0; height: clamp(180px, 28dvh, 240px); display: grid; grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px; overflow: hidden; padding: 8px; border-radius: 12px; background: #dcece8;
}
.drawer-promo-card.is-merch .drawer-promo-media { height: auto; grid-template-rows: auto auto; padding: 0 0 8px; background: #f3f6f4; }
.drawer-promo-media > img {
  width: 100%; height: auto; min-height: 0; aspect-ratio: 1; display: block; border-radius: 12px 12px 0 0; object-fit: contain; object-position: center;
  opacity: 1; filter: none; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
}
.drawer-promo-card.is-book .drawer-promo-media { height: 302px; }
.drawer-book-stage {
  position: relative; width: 190px; max-width: 100%; aspect-ratio: 7 / 10; justify-self: center;
}
.drawer-promo-media .drawer-book-cover {
  position: absolute; top: 0; left: 50%; width: 250px; max-width: none; padding: 25px;
  transform: translateX(-50%) scale(.76); transform-origin: top center;
}
.drawer-promo-media em { color: #315f59; font: 650 .58rem/1.25 "JetBrains Mono", monospace; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.drawer-promo-copy { min-width: 0; display: grid; justify-items: center; gap: 5px; text-align: center; }
.drawer-promo-copy small { color: #397069; font: 650 .58rem/1.3 "JetBrains Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
.drawer-promo-copy strong { font: 700 .9rem/1.25 Sora, sans-serif; }
.drawer-promo-copy > span { max-width: 32rem; color: var(--muted); font-size: .68rem; line-height: 1.38; text-align: center; }
.drawer-promo-copy b { display: inline-flex; align-items: center; gap: 6px; color: var(--aqua); font-size: .68rem; }
.drawer-promo-copy b svg { width: 14px; height: 14px; }
.drawer-promo-action {
  width: fit-content; min-height: 32px; justify-content: center; margin-top: 2px; padding: 7px 11px;
  border-radius: 999px; background: var(--aqua); color: #fff !important;
}

.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink);
  color: #fff; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .18s ease;
}
.btn:hover { translate: 0 -1px; box-shadow: 0 8px 20px rgba(17, 19, 18, .12); }
.btn svg { width: 17px; height: 17px; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn.aqua-btn { background: var(--aqua); border-color: var(--aqua); }
.btn.small { min-height: 36px; padding: 7px 13px; font-size: .75rem; }
.btn.block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; border-bottom: 1px solid currentColor; }
.text-link svg { width: 15px; }

.hero { padding: 34px 0 28px; }
.hero-grid { display: grid; gap: 18px; min-width: 0; }
.hero-copy {
  width: 100%; min-width: 0;
  min-height: 560px; display: flex; flex-direction: column; justify-content: center;
  padding: 34px 24px; border-radius: var(--radius-lg); background: var(--surface);
}
.hero-copy h1 { max-width: 780px; margin-bottom: 21px; }
.hero-copy .lead { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-search {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 650px; min-width: 0; margin-top: 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 6px;
}
.hero-search svg { position: absolute; left: 20px; width: 20px; color: var(--muted); }
.hero-search input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; padding: 0 130px 0 47px; }
.hero-search .btn { position: absolute; right: 6px; min-height: 44px; }
.hero-tags { display: flex; gap: 8px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; padding: 20px 0 4px; scrollbar-width: none; }
.hero-tags::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
.hero-tags a, .chip {
  flex: 0 0 auto; min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #464e4a; font-size: .74rem; font-weight: 600;
}
.hero-visual { position: relative; min-width: 0; min-height: 520px; overflow: hidden; border-radius: var(--radius-lg); background: #172323; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 14, 14, .88)); }
.visual-caption { position: absolute; inset: auto 24px 24px; z-index: 2; color: #fff; }
.visual-caption .mono { font-size: .68rem; opacity: .72; }
.visual-caption h3 { margin: 5px 0 4px; font-size: 1.35rem; }
.visual-caption p { opacity: .72; margin: 0; font-size: .82rem; }
.visual-stats { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2; display: flex; gap: 8px; }
.glass-pill { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(17,19,18,.4); color: #fff; backdrop-filter: blur(10px); font-size: .7rem; }

.journey-grid { display: grid; gap: 12px; }
.journey-card {
  min-height: 180px; position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.journey-card:hover { border-color: #aeb8b2; box-shadow: var(--shadow); }
.journey-card .num { color: var(--muted); font: 500 .66rem/1 "JetBrains Mono", monospace; }
.journey-card h3 { max-width: 260px; margin: 28px 0 8px; font-size: 1.28rem; }
.journey-card p { color: var(--muted); margin: 0; max-width: 310px; font-size: .84rem; }
.journey-card svg { position: absolute; right: 20px; top: 20px; width: 20px; }
.journey-card.accent { background: var(--ink); color: #fff; }
.journey-card.accent p, .journey-card.accent .num { color: #acb4b0; }

.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat strong { display: block; font: 600 clamp(1.5rem, 4vw, 2.5rem)/1 "JetBrains Mono", monospace; letter-spacing: -.07em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.species-card, .listing-card, .article-card, .shop-card {
  position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: .2s ease;
}
.species-card:hover, .listing-card:hover, .article-card:hover, .shop-card:hover { translate: 0 -3px; box-shadow: var(--shadow); }
.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dfe4df; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.directional-animal-media-facing-right { transform: scaleX(-1) !important; transform-origin: center; }
.card-image:hover .directional-animal-media-facing-right { transform: scaleX(-1) scale(1.03) !important; }
.species-card:hover .card-image img, .listing-card:hover .card-image img { transform: scale(1.035); }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font: 600 .62rem/1 "JetBrains Mono", monospace; }
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.9); }
.save-btn.saved { background: var(--ink); color: #fff; }
.card-body { padding: 18px; }
.card-kicker { color: var(--aqua); font: 600 .63rem/1.2 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.card-body h3 { margin: 8px 0 4px; }
.latin { color: var(--muted); font-style: italic; font-size: .78rem; }
.related-intro { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.related-reason { display: flex; align-items: center; gap: 7px; min-height: 34px; margin: 14px 0 0; padding: 9px 10px; border-radius: 9px; background: var(--aqua-soft); color: #215d58; font: 600 .66rem/1.35 "JetBrains Mono", monospace; }
.related-reason::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--aqua); }
.related-empty { grid-column: 1 / -1; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.related-empty strong { display: block; margin-bottom: 5px; color: var(--ink); }
.related-browse-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; border: 1px solid #c9ddda; border-radius: 14px; background: var(--aqua-soft); color: var(--muted); }
.related-browse-note div { min-width: 0; }
.related-browse-note strong { display: block; margin-bottom: 3px; color: var(--ink); }
.related-browse-note span { display: block; font-size: .78rem; line-height: 1.5; }
.related-browse-note .text-link { flex: 0 0 auto; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.spec-row div { min-width: 0; }
.spec-row small { display: block; color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; }
.spec-row strong { display: block; margin-top: 3px; font: 600 .71rem/1.2 "JetBrains Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-aside .spec-row strong { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
.card-action-row { display: flex; justify-content: flex-end; margin-top: 13px; }
.card-tank-action { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #c6d8d4; border-radius: 999px; background: #f5fbfa; color: #1f625d; font: 650 .67rem/1 "JetBrains Mono", monospace; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.card-tank-action svg { width: 14px; height: 14px; flex: 0 0 14px; }
.card-tank-action:hover { border-color: var(--aqua); background: var(--aqua-soft); transform: translateY(-1px); }
.card-tank-action:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.card-tank-action.is-added { border-color: #bfd8d3; background: var(--aqua-soft); color: #215d58; cursor: default; }
.card-tank-action:disabled { opacity: 1; }
.species-card .spec-row strong { min-height: 3.6em; max-height: 3.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal; overflow: hidden; text-overflow: clip; line-height: 1.2; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.price { font: 600 1.15rem/1 "JetBrains Mono", monospace; letter-spacing: -.05em; }
.price small { display: block; margin-top: 5px; color: var(--muted); font: 400 .62rem/1.2 Inter, sans-serif; letter-spacing: 0; }

.editorial-band { background: var(--ink); color: #fff; }
.editorial-grid { display: grid; gap: 24px; align-items: center; }
.editorial-grid h2 { max-width: 680px; }
.editorial-grid p { color: #aeb7b2; max-width: 590px; }
.quote-card { padding: 26px; border: 1px solid #343a37; border-radius: var(--radius); background: #191c1b; }
.quote-card blockquote { margin: 0 0 20px; font: 500 1.15rem/1.5 Sora, sans-serif; letter-spacing: -.02em; }
.quote-card cite { color: #929b96; font-style: normal; font-size: .72rem; }

.page-hero { padding: 54px 0 36px; }
.page-hero-grid { display: grid; gap: 22px; align-items: end; }
.page-hero h1 { max-width: 830px; margin-bottom: 15px; }
.page-hero p { max-width: 690px; color: var(--muted); font-size: 1.02rem; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: .72rem; }
.crumbs span { color: #a7aea9; }

.filter-bar { position: sticky; top: var(--header); z-index: 30; padding: 12px 0; border-block: 1px solid var(--line); background: rgba(245,246,242,.94); backdrop-filter: blur(14px); }
.filter-shell { display: flex; gap: 9px; align-items: center; }
.chip-row { display: flex; gap: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.chip { cursor: pointer; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-count { flex: 0 0 auto; color: var(--muted); font-size: .7rem; }
.filter-layout { display: grid; gap: 24px; }
.filter-sidebar { display: none; }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: .8rem; margin-bottom: 13px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #4b534f; font-size: .78rem; cursor: pointer; }
.check input { accent-color: var(--ink); }
.range { width: 100%; accent-color: var(--aqua); }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalogue-index-note {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .71rem;
}
.catalogue-index-mark { flex: 0 0 auto; color: var(--aqua); font: 600 .6rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; }
.catalogue-more { display: flex; justify-content: center; padding: 32px 0 10px; }
.source-profile-note {
  display: grid; gap: 7px; margin-bottom: 24px; padding: 18px; border: 1px solid #b8ded5;
  border-radius: var(--radius); background: #edf8f4; color: #35534d; font-size: .76rem;
}
.source-profile-note strong { color: var(--ink); font-family: Sora, sans-serif; font-size: .85rem; }
.source-profile-note span { max-width: 760px; }
.source-profile-note a { width: max-content; display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--aqua); font-weight: 700; }
.source-profile-note a svg { width: 16px; }
.select {
  height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); padding: 0 34px 0 13px; font-size: .75rem;
}
.smooth-select {
  position: relative; display: inline-block; min-width: 180px; max-width: 100%; vertical-align: middle;
}
.filter-group .smooth-select, .field .smooth-select { width: 100%; }
select.smooth-select-native {
  position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important;
  min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none;
}
.smooth-select-trigger {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font-size: .78rem; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.smooth-select-pill .smooth-select-trigger { min-height: 40px; border-radius: 999px; font-size: .75rem; }
.smooth-select-trigger:hover { border-color: #aeb8b2; background: #fbfcfa; }
.smooth-select-trigger:focus-visible, .smooth-select.open .smooth-select-trigger {
  border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px rgba(17,19,18,.07);
}
.smooth-select-value { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.smooth-select-trigger > svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.smooth-select.open { z-index: 95; }
.smooth-select.open .smooth-select-trigger > svg { transform: rotate(180deg); }
.smooth-select-menu {
  position: absolute; z-index: 100; top: calc(100% + 8px); left: 0; width: max-content; min-width: 100%;
  max-width: min(320px, calc(100vw - 24px)); max-height: min(280px, 48vh); overflow-y: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px rgba(17,32,29,.16);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.985); transform-origin: top left;
  transition: opacity .16s ease, transform .18s ease, visibility 0s linear .18s; scrollbar-width: thin;
}
.smooth-select.opens-up .smooth-select-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; transform: translateY(6px) scale(.985); }
.smooth-select.open .smooth-select-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.smooth-select-option {
  width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #3f4844;
  font-size: .76rem; line-height: 1.3; text-align: left; cursor: pointer;
}
.smooth-select-option:hover, .smooth-select-option:focus-visible { background: var(--surface-2); color: var(--ink); outline: 0; }
.smooth-select-option.selected { background: var(--aqua-soft); color: #164e47; font-weight: 700; }
.smooth-select-option > svg { width: 17px; flex: 0 0 auto; opacity: 0; color: var(--aqua); }
.smooth-select-option.selected > svg { opacity: 1; }
.smooth-select-option:disabled { opacity: .42; cursor: not-allowed; }
.discover-results-toolbar { gap: 14px; }
.discover-results-status { min-width: 0; display: grid; gap: 2px; color: var(--muted); font-size: .75rem; }
.discover-results-status small { overflow: hidden; color: #36514d; font-size: .68rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.discover-desktop-sort { display: none; }
.discover-desktop-sort .smooth-select-menu { right: 0; left: auto; transform-origin: top right; }
.discover-desktop-sort .smooth-select.opens-up .smooth-select-menu { transform-origin: bottom right; }
.mobile-filter { flex: 0 0 auto; }
.filter-selection-count {
  min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: #fff; font: 600 .62rem/1 "JetBrains Mono", monospace;
}
.active-filter-row { display: flex; gap: 7px; margin: -4px 0 16px; overflow-x: auto; padding: 4px 1px; scrollbar-width: none; }
.active-filter-row::-webkit-scrollbar { display: none; }
.active-filter-chip {
  min-height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px;
  border: 1px solid #bfd8d3; border-radius: 999px; background: var(--aqua-soft); color: #225c56;
  font-size: .7rem; font-weight: 650; cursor: pointer;
}
.active-filter-chip span:last-child { font-size: 1rem; line-height: .8; }
.active-filter-chip:hover, .active-filter-chip:focus-visible { border-color: var(--aqua); outline: 2px solid rgba(23,107,114,.12); outline-offset: 2px; }
.filter-sheet {
  position: fixed; inset: auto 0 0; z-index: 110; width: min(100%, 620px); max-height: min(92dvh, 780px);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; margin-inline: auto; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; background: var(--surface);
  box-shadow: 0 -24px 70px rgba(11,32,39,.2); transform: translateY(110%); transition: .25s cubic-bezier(.22,.8,.2,1);
}
.dialog.open .filter-sheet { transform: translateY(0); }
.filter-sheet-handle { width: 44px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: #c7d3d0; }
.filter-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 20px 17px; border-bottom: 1px solid var(--line); }
.filter-sheet-head .eyebrow { margin-bottom: 8px; font-size: .64rem; }
.filter-sheet-head h2 { margin: 0 0 6px; font-size: 1.65rem; }
.filter-sheet-head p { max-width: 420px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.filter-sheet-head .icon-btn { flex: 0 0 42px; border-color: var(--line); background: var(--surface-2); }
.filter-sheet-body { min-height: 0; overflow-y: auto; padding: 16px 20px 20px; overscroll-behavior: contain; }
.filter-tank-link {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 14px 16px;
  border: 1px solid #bfdbd6; border-radius: 16px; background: var(--aqua-soft); color: #245b55;
}
.filter-tank-link > span:first-child { min-width: 0; display: grid; gap: 3px; }
.filter-tank-link strong { color: var(--ink); font-size: .8rem; }
.filter-tank-link small { font-size: .7rem; line-height: 1.45; }
.filter-tank-link > span:last-child { flex: 0 0 auto; font-size: 1.1rem; }
.mobile-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.filter-field-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.filter-field-card label { display: block; margin-bottom: 9px; color: #3b514d; font-size: .71rem; font-weight: 700; }
.filter-field-card .smooth-select { width: 100%; min-width: 0; }
.filter-field-card .smooth-select-trigger { min-height: 42px; background: #fff; }
.filter-sheet-actions { display: grid; grid-template-columns: minmax(104px, .7fr) minmax(0, 1.3fr); gap: 9px; padding: 13px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.filter-sheet-actions .btn { width: 100%; min-width: 0; min-height: 44px; padding-inline: 12px; text-align: center; }
.filter-sheet-actions [data-apply-filters] { background: var(--aqua); border-color: var(--aqua); }

@media (max-width: 899px) {
  .filter-sheet {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 0;
    border-radius: 0;
  }
  .filter-sheet-handle { display: none; }
  .filter-sheet-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .mobile-filter-fields { grid-template-columns: 1fr; }
  .filter-field-card { padding: 11px 12px; transition: border-color .18s ease, background .18s ease; }
  .filter-field-card:has(.smooth-select.open) { border-color: #9ecbc4; background: #f5faf8; }
  .filter-field-card .smooth-select-menu,
  .filter-field-card .smooth-select.opens-up .smooth-select-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    overflow: visible;
    padding: 6px;
    border: 1px solid #d3e2de;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .filter-field-card .smooth-select.open .smooth-select-menu { display: block; }
  .filter-field-card .smooth-select-option { min-height: 42px; }
}

.profile-hero { padding: 24px 0 48px; }
.profile-grid { display: grid; gap: 18px; }
.profile-gallery { display: grid; grid-template-columns: 68px 1fr; gap: 10px; }
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aac7c2 transparent;
}
.thumb {
  aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 11px; background: var(--surface); overflow: hidden; cursor: pointer;
}
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-photo { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: #dce1dd; overflow: hidden; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { padding: 16px 0; }
.profile-copy h1 { margin: 9px 0 8px; font-size: clamp(2.25rem, 5vw, 4.4rem); }
.profile-copy .latin { font-size: 1rem; }
.profile-identity-presentations {
  max-width: 680px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.68);
}
.profile-identity-presentations summary {
  position: relative;
  padding: 13px 42px 13px 15px;
  color: #24514e;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.profile-identity-presentations summary::-webkit-details-marker { display: none; }
.profile-identity-presentations summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 15px;
  translate: 0 -50%;
  font-size: 1rem;
  font-weight: 500;
}
.profile-identity-presentations[open] summary::after { content: "−"; }
.profile-identity-content { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.profile-identity-content > p { margin: 12px 0; color: var(--muted); font-size: .71rem; line-height: 1.55; }
.profile-identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aac7c2 transparent;
}
.profile-identity-option {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.profile-identity-option:hover,
.profile-identity-option:focus-visible,
.profile-identity-option.is-active { border-color: #82b9b2; background: var(--aqua-soft); outline: none; }
.profile-identity-option span,
.profile-identity-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity-option span { font-size: .72rem; font-weight: 700; }
.profile-identity-option small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.profile-intro { margin: 23px 0; color: var(--muted); max-width: 680px; }
.fact-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.fact-pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .72rem; }
.profile-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.profile-suitability-section { padding: 0 0 34px; background: linear-gradient(180deg, var(--bg), #eef7f5); }
.profile-suitability-section.is-inline { margin-top: 22px; padding: 0; background: transparent; }
.profile-suitability-section.is-inline > .container { width: 100%; max-width: none; padding: 0; }
.profile-suitability { scroll-margin-top: 112px; overflow: hidden; border: 1px solid #c6dbd7; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 34px rgba(11,32,39,.055); }
.profile-suitability-loading { padding: clamp(24px, 5vw, 40px); }
.profile-suitability-loading h2 { margin: 8px 0; font-size: clamp(1.75rem, 4vw, 2.65rem); }
.profile-suitability-loading p { margin: 0; color: var(--muted); }
.profile-suitability-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 22px; align-items: start; padding: clamp(20px, 3vw, 28px); background: linear-gradient(145deg, #fbfdfc, #f0f7f5); }
.profile-suitability-summary-copy { min-width: 0; }
.profile-suitability-summary-copy h2 { margin: 7px 0 7px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.16; }
.profile-suitability-summary-copy > p { max-width: 760px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.58; }
.profile-suitability-summary > .btn { align-self: end; justify-self: end; white-space: nowrap; }
.profile-suitability-status { display: inline-flex; max-width: 350px; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid currentColor; border-radius: 999px; font: 700 .61rem/1.35 "JetBrains Mono", monospace; letter-spacing: .025em; text-transform: uppercase; }
.profile-suitability-status::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.profile-suitability-status.is-stop { color: #873c33; background: #fff1ee; }
.profile-suitability-status.is-attention { color: #72551c; background: #fff8e4; }
.profile-suitability-status.is-good { color: #27664a; background: #ebf8f0; }
.profile-suitability-preview { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.profile-suitability-preview > span { padding: 7px 10px; border: 1px solid #d4e2df; border-radius: 999px; background: rgba(255,255,255,.86); color: #3c5651; font-size: .7rem; font-weight: 650; line-height: 1.35; }
.profile-suitability-preview > small { color: #657773; font-size: .68rem; }
.profile-suitability-preview.is-clear > span { border-color: #b9dcc8; background: #eff9f3; color: #286347; }
.profile-suitability-details { border-top: 1px solid #d5e3e0; background: #fff; }
.profile-suitability-details > summary { position: relative; display: grid; gap: 3px; padding: 15px clamp(20px, 3vw, 28px); color: #193f39; cursor: pointer; list-style: none; }
.profile-suitability-details > summary::-webkit-details-marker { display: none; }
.profile-suitability-details > summary::after { content: "+"; position: absolute; top: 50%; right: clamp(20px, 3vw, 28px); transform: translateY(-50%); font: 600 1.15rem/1 Sora, sans-serif; }
.profile-suitability-details[open] > summary::after { content: "−"; }
.profile-suitability-details > summary:hover { background: #f5f9f8; }
.profile-suitability-details > summary:focus-visible { outline: 3px solid rgba(31,113,104,.2); outline-offset: -3px; }
.profile-suitability-details > summary span { font-size: .8rem; font-weight: 750; }
.profile-suitability-details > summary small { padding-right: 34px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.profile-suitability-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 18px; padding: clamp(18px, 4vw, 30px); }
.profile-suitability-findings { display: grid; gap: 9px; }
.profile-suitability-finding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px; border: 1px solid #dec68f; border-radius: 14px; background: #fff9ec; }
.profile-suitability-finding.is-stop { border-color: #e4a098; background: #fff3f0; }
.profile-suitability-finding > span { padding: 5px 7px; border-radius: 999px; background: #f1dba5; color: #684b10; font: 700 .52rem/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.profile-suitability-finding.is-stop > span { background: #f6c8c1; color: #732d25; }
.profile-suitability-finding strong { display: block; margin: 1px 0 4px; font-size: .8rem; line-height: 1.4; }
.profile-suitability-finding p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.profile-suitability-clear { margin: 0; padding: 15px; border-radius: 14px; background: #e7f6ed; color: #286347; font-size: .74rem; }
.profile-suitability-gaps,
.profile-suitability-next,
.profile-suitability-requirements,
.profile-suitability-checks { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.profile-suitability-gaps h3,
.profile-suitability-next h3,
.profile-suitability-requirements h3 { margin: 0 0 10px; font-size: .84rem; }
.profile-suitability-gaps ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-suitability-gaps li { padding: 6px 8px; border-radius: 999px; background: #fff0ca; color: #684b10; font-size: .7rem; }
.profile-suitability-gaps p { margin: 0; color: var(--muted); font-size: .75rem; }
.profile-suitability-gaps.is-complete { background: #f1faf5; }
.profile-suitability-requirements > div { display: grid; gap: 8px; }
.profile-suitability-requirements article { padding: 11px; border-radius: 11px; background: #fff; }
.profile-suitability-requirements strong { display: block; font-size: .72rem; }
.profile-suitability-requirements p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.48; }
.profile-suitability-next ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); font-size: .73rem; line-height: 1.48; }
.profile-suitability-checks { grid-column: 1 / -1; padding: 0; }
.profile-suitability-checks summary { padding: 14px 16px; cursor: pointer; font-size: .72rem; font-weight: 700; }
.profile-suitability-checks ul { display: grid; gap: 8px; margin: 0; padding: 0 16px 16px; list-style: none; }
.profile-suitability-checks li { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.profile-suitability-checks strong { font-size: .7rem; }
.profile-suitability-checks span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.profile-suitability-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(18px, 4vw, 30px); border-top: 1px solid var(--line); background: #f4f8f7; }
.profile-suitability-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-suitability-actions p { max-width: 660px; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: right; }
.profile-sections { display: grid; gap: 24px; }
.profile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.profile-nav a { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.profile-nav a:hover { color: var(--ink); background: var(--surface); }
.care-section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.care-section h2 { font-size: 1.65rem; }
.care-section p { color: #4f5753; max-width: 780px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.fact-cell { min-height: 98px; padding: 17px; background: var(--surface); }
.fact-cell small { color: var(--muted); font-size: .65rem; }
.fact-cell strong { display: block; margin-top: 8px; font: 600 .82rem/1.3 "JetBrains Mono", monospace; }
.parameter-card { padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.meter { height: 7px; position: relative; margin: 28px 0 12px; border-radius: 999px; background: linear-gradient(90deg, #1d6983, #2eb99d, #c19a3d); }
.meter-range { position: absolute; left: 30%; width: 44%; top: -5px; height: 17px; border: 2px solid #fff; border-radius: 999px; }
.meter-labels { display: flex; justify-content: space-between; color: #b4bcb8; font: 500 .62rem/1 "JetBrains Mono", monospace; }
.compat-card { padding: 24px; border: 1px solid #b8ded5; border-radius: var(--radius); background: #edf8f4; }
.compat-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: .74rem; font-weight: 700; }
.compat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.availability { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.availability[hidden] { display: none; }
.availability img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.availability .btn { margin-left: auto; }
.sticky-mobile-cta { position: fixed; z-index: 45; inset: auto 0 0; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.sticky-mobile-cta .btn { flex: 1; }
.sticky-mobile-cta .btn.is-deemphasised { border-color: transparent; background: transparent; color: var(--muted); font-size: .68rem; }

.market-toolbar { display: grid; gap: 12px; margin-bottom: 22px; }
.listing-card .card-image { aspect-ratio: 1.15; }
.delivery { display: flex; gap: 6px; margin-top: 11px; }
.delivery span { padding: 5px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .6rem; }
.seller-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .68rem; }
.seller-line img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.seller-hero { position: relative; min-height: 330px; display: flex; align-items: end; border-radius: var(--radius-lg); overflow: hidden; background: #25312c; }
.seller-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seller-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,13,.08), rgba(8,15,13,.85)); }
.seller-info { position: relative; z-index: 2; width: 100%; display: flex; gap: 16px; align-items: end; padding: 24px; color: #fff; }
.seller-info > img { width: 74px; height: 74px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; }
.seller-info h1 { margin: 0 0 5px; font-size: clamp(2rem, 5vw, 3.8rem); }
.seller-info p { margin: 0; color: #c9cfcc; font-size: .78rem; }
.seller-info .btn { margin-left: auto; background: #fff; color: var(--ink); border-color: #fff; }
.trust-grid { display: grid; gap: 12px; }
.trust-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-card h3 { margin-bottom: 7px; }
.trust-card p { margin: 0; color: var(--muted); font-size: .78rem; }

.tool-grid { display: grid; gap: 18px; }
.tool-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-card.dark { background: var(--ink); color: #fff; }
.tool-card.dark p { color: #aab3ae; }

.about-origin { padding-top: 28px; }
.about-origin-grid { display: grid; gap: 18px; align-items: stretch; }
.about-story-card,
.about-dedication-card { min-width: 0; padding: clamp(28px, 5vw, 58px); border-radius: var(--radius-lg); }
.about-story-card {
  position: relative; overflow: hidden; background:
    radial-gradient(circle at 88% 10%, rgba(85,157,154,.23), transparent 30%),
    linear-gradient(145deg, #0b2027 0%, #102f34 100%);
  color: #fff;
}
.about-story-card::after {
  content: ""; position: absolute; right: -92px; bottom: -118px; width: 310px; height: 310px;
  border: 1px solid rgba(151,205,196,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(151,205,196,.035);
  pointer-events: none;
}
.about-story-card .eyebrow { color: #9fc7c0; }
.about-story-opening {
  position: relative; z-index: 1; max-width: 680px; margin-bottom: 12px; color: #9fc7c0;
  font: 600 .78rem/1.45 "JetBrains Mono", monospace; letter-spacing: .02em;
}
.about-story-card h2 {
  position: relative; z-index: 1; max-width: 820px; margin-bottom: 26px; color: #fff;
  font-size: clamp(2rem, 4.3vw, 4.05rem);
}
.about-story-copy { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 780px; }
.about-story-copy p { margin: 0; color: #c4d4d1; font-size: clamp(.96rem, 1.4vw, 1.08rem); }
.about-dedication-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 38px;
  border: 1px solid #cfe0dc; background: linear-gradient(150deg, #f0f8f6 0%, #e4f1ee 100%);
}
.about-dedication-card .eyebrow { color: var(--aqua); }
.about-dedication-card h2 { max-width: 620px; margin-bottom: 20px; font-size: clamp(2rem, 3.5vw, 3.25rem); }
.about-dedication-card > div > p { max-width: 580px; margin: 0; color: #4d6668; }
.about-story-milestones {
  display: grid; overflow: hidden; border: 1px solid #c5d9d4; border-radius: 16px;
  background: #c5d9d4; gap: 1px;
}
.about-story-milestones > div { display: grid; gap: 5px; padding: 18px; background: rgba(255,255,255,.7); }
.about-story-milestones strong { font: 600 .8rem/1.2 "JetBrains Mono", monospace; color: var(--ink); }
.about-story-milestones span { color: #5f7779; font-size: .8rem; }

@media (min-width: 680px) and (max-width: 899px) {
  .about-story-milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .about-origin-grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); }
}
.field-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); outline: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,19,18,.06); }
.calc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.calc-result { padding: 16px; border-radius: 12px; background: var(--surface-2); }
.calc-result small { color: var(--muted); font-size: .62rem; }
.calc-result strong { display: block; margin-top: 6px; font: 600 1.25rem/1 "JetBrains Mono", monospace; }
.tank-list { display: grid; gap: 8px; margin: 18px 0; }
.tank-item { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid #303633; border-radius: 12px; }
.tank-item img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.tank-item p { margin: 0; font-size: .78rem; }
.tank-item small { color: #929c97; }
.tank-item button { margin-left: auto; color: #fff; }
.empty-state { padding: 38px 20px; border: 1px dashed #3b4340; border-radius: 12px; color: #97a09c; text-align: center; font-size: .78rem; }

.article-card { display: grid; }
.article-card .card-image { aspect-ratio: 16/10; }
.article-card .card-body { display: flex; flex-direction: column; }
.article-card h3 { font-size: 1.35rem; }
.article-card p { color: var(--muted); font-size: .87rem; }
.article-meta { margin-top: auto; padding-top: 12px; color: var(--muted); font: 500 .64rem/1.3 "JetBrains Mono", monospace; }

.sell-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.sell-step { height: 5px; border-radius: 999px; background: var(--line); }
.sell-step.active, .sell-step.done { background: var(--ink); }
.form-panel { display: none; }
.form-panel.active { display: block; }
.choice-grid { display: grid; gap: 10px; }
.choice-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.choice-card:hover, .choice-card.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card h3 { margin-bottom: 6px; }
.choice-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.form-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 24px; }

.cart-layout { display: grid; gap: 22px; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cart-item > img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.cart-item h3 { margin: 4px 0; }
.cart-item .price { margin-top: 10px; }
.summary-card { padding: 22px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #333936; font-size: .78rem; }
.summary-row.total { padding-top: 18px; border: 0; font-size: 1rem; font-weight: 600; }
.summary-card .btn { margin-top: 16px; background: #fff; color: var(--ink); border-color: #fff; }

.dialog-panel, .search-panel {
  position: relative; width: min(calc(100% - 24px), 620px); max-height: min(760px, calc(100vh - 40px));
  margin: 20px auto; overflow: auto; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
  transform: translateY(12px) scale(.98); transition: .2s ease;
}
.dialog.open .dialog-panel, .search-modal.open .search-panel { transform: none; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-body { padding: 22px; }
.search-panel { margin-top: 8vh; }
.search-input-large { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-input-large svg { width: 22px; color: var(--muted); }
.search-input-large input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; }
.search-results { padding: 10px; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.search-result:hover { background: var(--surface-2); }
.search-result img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; }
.search-result span { display: block; font-size: .76rem; }
.search-result small { color: var(--muted); }

.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 24px; translate: -50% 120px;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); font-size: .76rem; opacity: 0; transition: .25s ease;
}
.toast.show { translate: -50% 0; opacity: 1; }
.page-back {
  position: fixed;
  z-index: 60;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 62px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(131, 167, 160, .55);
  background: rgba(247, 250, 249, .68);
  color: #184b45;
  box-shadow: 0 8px 24px rgba(11, 32, 39, .12);
  backdrop-filter: blur(4px);
  font: 650 .64rem/1 "Avenir Next", Avenir, Inter, sans-serif;
  letter-spacing: .01em;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.back-to-top {
  z-index: 1;
  flex: 0 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 0;
  min-width: 0;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  border-color: transparent;
  color: var(--muted);
  font: 650 .64rem/1 "Avenir Next", Avenir, Inter, sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.86);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.page-back { left: 18px; }
.back-to-top.is-visible { flex-basis: 62px; width: 62px; min-width: 62px; padding: 0 10px; border-color: #c9ddd9; background: rgba(255,255,255,.9); color: #315f5a; opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); }
.back-to-top:hover { border-color: #bdd7d3; background: var(--aqua-soft); color: #1e625d; }
.page-back:hover { border-color: #8fbdb4; background: rgba(247, 250, 249, .9); color: #1e625d; }
.back-to-top:focus-visible, .page-back:focus-visible { outline: 3px solid rgba(85,157,154,.38); outline-offset: 2px; }
.back-to-top svg, .page-back svg { flex: 0 0 auto; width: 15px; height: 15px; }
.newsletter { display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--aqua-soft); }
.newsletter h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0; }
.newsletter p { color: #4b615d; margin: 8px 0 0; }
.newsletter-form { display: flex; gap: 7px; padding: 6px; border: 1px solid #b9d7d2; border-radius: 999px; background: #fff; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 10px; background: transparent; }

.site-footer { padding: 62px 0 30px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { max-width: 420px; color: #9ea7a2; font-size: .8rem; margin-top: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-col h3 { margin-bottom: 14px; color: #8f9893; font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.footer-toggle { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.4; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.footer-panel a { display: block; padding: 6px 0; color: #d2d6d4; font-size: .78rem; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: 46px; padding-top: 22px; border-top: 1px solid #2e3431; color: #7e8883; font-size: .67rem; }

@media (min-width: 680px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .hero-copy { padding: 48px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card { grid-template-columns: 1fr 1fr; }
  .article-card .card-image { height: 100%; }
  .newsletter { grid-template-columns: 1.3fr 1fr; padding: 36px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-toggle { pointer-events: none; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  :root { --header: 76px; }
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
  .hero-copy, .hero-visual { min-height: 640px; }
  .journey-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
  .editorial-grid { grid-template-columns: 1.35fr .65fr; }
  .page-hero-grid { grid-template-columns: 1.4fr .6fr; }
  .filter-layout { grid-template-columns: 210px 1fr; }
  .filter-sidebar { display: block; }
  .discover-desktop-sort { display: block; }
  .mobile-filter { display: none; }
  .profile-grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; }
  .profile-copy { padding: 28px; }
  .profile-sections { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .profile-aside { position: sticky; top: 110px; }
  .sticky-mobile-cta { display: none; }
  .market-toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .summary-card { position: sticky; top: 110px; }
  .footer-grid { grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); }
}

@media (min-width: 1160px) {
  .desktop-nav a { padding-inline: 14px; }
  .nav-search { max-width: 310px; }
  .footer-links { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 899px) {
  body[data-page="discover"] .library-filter-bar { position: relative; top: auto; }
  body[data-page="discover"] .discover-results-toolbar {
    position: sticky;
    top: calc(var(--header) + 8px);
    z-index: 25;
    margin: 0 -6px 16px;
    padding: 10px 12px;
    border: 1px solid rgba(199,216,212,.95);
    border-radius: 16px;
    background: rgba(247,250,249,.96);
    box-shadow: 0 10px 28px rgba(11,32,39,.08);
    backdrop-filter: blur(14px);
  }
  body[data-page="discover"] .discover-results-toolbar .mobile-filter { margin-left: auto; }
}

@media (max-width: 679px) {
  .tank-image-viewer-canvas .tank-hotspot { opacity: 0; pointer-events: none; }
  .tank-image-viewer-canvas .tank-hotspot.is-linked { opacity: 1; pointer-events: auto; }
  .tank-image-viewer-canvas .tank-hotspot-tip { display: none; }
  .section { padding: 54px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .hero-copy { min-height: 520px; }
  .hero-search input { padding-right: 48px; }
  .hero-search .btn { width: 44px; padding: 0; }
  .hero-search .btn span { display: none; }
  .seller-info { align-items: start; flex-wrap: wrap; }
  .seller-info .btn { margin-left: 0; }
  .newsletter-form .btn { width: 46px; padding: 0; }
  .newsletter-form .btn span { display: none; }
  .back-to-top { height: 36px; }
  .back-to-top.is-visible { flex-basis: 58px; width: 58px; min-width: 58px; padding-inline: 8px; }
  .page-back { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  body:has(.sticky-mobile-cta) .page-back { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .thumbs { max-height: 330px; }
  .profile-identity-options { grid-template-columns: 1fr; }
  .profile-suitability-summary,
  .profile-suitability-body { grid-template-columns: 1fr; }
  .profile-suitability-status { max-width: none; width: fit-content; }
  .profile-suitability-summary > .btn { justify-self: stretch; }
  .profile-suitability-actions { align-items: stretch; flex-direction: column; }
  .profile-suitability-actions > div { display: grid; }
  .profile-suitability-actions p { text-align: left; }
}

@media (max-width: 479px) {
  body[data-page="discover"] .discover-results-toolbar { align-items: center; flex-direction: column; text-align: center; }
  body[data-page="discover"] .discover-results-toolbar .mobile-filter { margin-inline: auto !important; }
  body[data-page="discover"] .discover-results-status small { white-space: normal; }
  .mobile-filter-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Site refinements */
.announcement-bar { background: #0f2423; color: #d7eeea; }
.hero-grid { align-items: center; }
.hero-visual {
  display: grid;
  grid-template-rows: auto auto;
  align-self: center;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero-visual > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #e9ede8;
  filter: saturate(1.08) contrast(1.02);
}
.hero-visual::after { display: none; }
.visual-caption {
  position: static;
  inset: auto;
  padding: 20px 22px 22px;
  color: var(--ink);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.visual-caption .mono { color: var(--aqua); opacity: 1; }
.visual-caption p { color: var(--muted); opacity: 1; }
.visual-stats { top: 14px; left: 14px; right: 14px; }
.glass-pill { background: rgba(17, 19, 18, .72); }

.card-image,
.listing-card .card-image,
.article-card .card-image {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #edf6f4, #e4efed);
}
.card-image img,
.listing-card .card-image img,
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
}
.card-image.is-placeholder img { padding: 0; }
.species-card:hover .card-image img,
.listing-card:hover .card-image img { transform: none; }
.card-badge,
.save-btn { z-index: 3; }
.card-body { position: relative; z-index: 2; background: var(--surface); }

.main-photo {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #edf6f4, #e4efed);
}
.main-photo img { object-fit: contain; object-position: center; padding: 18px; }
.thumb { aspect-ratio: 3 / 2; }
.thumb img { object-fit: contain; background: #e8ece7; }
.profile-grid { align-items: start; }
.profile-copy { align-self: center; }

.profile-nav { border: 0; padding: 0; }
.profile-nav button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}
.profile-nav button:hover { color: var(--ink); background: var(--surface); }
.profile-nav button.active,
.profile-nav button[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.care-tab-shell { min-height: 560px; }
.care-panel { display: none; animation: care-panel-in .22s ease; }
.care-panel.active { display: block; }
.care-panel > .care-section { padding-top: 12px; border-bottom: 0; }
@keyframes care-panel-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.subnav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 0;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  min-width: 132px;
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.subnav a:hover,
.subnav a.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.hero-tags a, .chip, .subnav a, .btn.small { min-height: 38px; border-radius: 999px; font-size: .75rem; }
.page-stat { align-self: end; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-stat strong { display: block; font: 600 clamp(2.4rem, 6vw, 4.8rem)/.9 "JetBrains Mono", monospace; letter-spacing: -.09em; }
.page-stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .72rem; }
.tank-item img,
.search-result img,
.cart-item > img { object-fit: contain; background: #e8ece7; }

.listing-detail-grid { display: grid; gap: 28px; align-items: start; }
.listing-gallery { display: grid; gap: 12px; }
.listing-photo {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #edf6f4, #e4efed);
}
.listing-photo img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.purchase-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.purchase-card h1 { margin: 8px 0 6px; font-size: clamp(2rem, 4vw, 3.4rem); }
.purchase-price { margin: 24px 0; font: 600 2rem/1 "JetBrains Mono", monospace; letter-spacing: -.07em; }
.purchase-price small { display: block; margin-top: 8px; color: var(--muted); font: 400 .72rem/1.3 Inter, sans-serif; letter-spacing: 0; }
.policy-list { display: grid; gap: 10px; margin: 18px 0; }
.policy-item { display: flex; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: .76rem; }
.policy-item strong { display: block; }
.policy-item p { color: var(--muted); margin: 2px 0 0; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok); }

.country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.country-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.country-card:hover { border-color: #aeb8b2; box-shadow: var(--shadow); }
.country-card .flag { font: 600 .68rem/1 "JetBrains Mono", monospace; color: var(--aqua); }
.country-card h3 { margin: 20px 0 0; }
.country-card small { color: var(--muted); }

.video-library-section { background: linear-gradient(180deg, #f8fbfa 0%, #eef6f4 100%); }
.video-channel-card { min-height: 178px; display: grid; align-content: center; gap: 11px; padding: 24px; border: 1px solid #bfd8d2; border-radius: 22px; color: #fff; background: radial-gradient(circle at 88% 14%, rgba(88, 215, 196, .34), transparent 34%), #0b2027; box-shadow: 0 24px 60px rgba(11, 32, 39, .15); }
.video-channel-brand { display: flex; align-items: center; gap: 10px; color: #d9faf2; font: 700 .64rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.video-channel-brand img { width: 30px; height: 30px; padding: 4px; border-radius: 9px; background: #fff; object-fit: contain; }
.video-channel-card strong { max-width: 310px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.02; letter-spacing: -.045em; }
.video-channel-card small { color: #a9cbc5; font-size: .7rem; }
.video-grid { display: grid; gap: 24px 18px; }
.video-card { --video-accent: #73d4c4; container-type: inline-size; border: 1px solid #c9ddd8; border-radius: 19px; background: var(--surface); overflow: hidden; box-shadow: 0 16px 44px rgba(14, 48, 42, .08); transition: translate .22s ease, box-shadow .22s ease, border-color .22s ease; }
.video-card:hover { translate: 0 -3px; border-color: #9fc9c1; box-shadow: 0 22px 52px rgba(14, 48, 42, .13); }
.video-card[data-video-tone="start"] { --video-accent: #7ce0cf; }
.video-card[data-video-tone="care"] { --video-accent: #7fc8f2; }
.video-card[data-video-tone="health"] { --video-accent: #f1c677; }
.video-card[data-video-tone="plants"] { --video-accent: #a8da78; }
.video-card[data-video-tone="marine"] { --video-accent: #8db8ff; }
.video-card[data-video-tone="other"] { --video-accent: #e4a7e6; }
.video-card[data-video-tone="nature"] { --video-accent: #d4bd83; }
.video-card[data-video-tone="responsible"] { --video-accent: #9fe0d2; }
.video-thumb { position: relative; isolation: isolate; aspect-ratio: 16 / 9; background: #0b2027; overflow: hidden; }
.video-thumb::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.video-title-left::after { background: linear-gradient(90deg, rgba(5, 22, 28, .98) 0%, rgba(5, 22, 28, .86) 36%, rgba(5, 22, 28, .3) 61%, transparent 78%); }
.video-title-right::after { background: linear-gradient(270deg, rgba(5, 22, 28, .98) 0%, rgba(5, 22, 28, .86) 36%, rgba(5, 22, 28, .3) 61%, transparent 78%); }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.video-card:hover .video-thumb img { transform: scale(1.012); }
.video-thumb-copy { position: absolute; z-index: 2; top: 7%; bottom: 8%; width: 57%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; text-align: left; }
.video-title-left .video-thumb-copy { left: 4.5%; }
.video-title-right .video-thumb-copy { right: 4.5%; }
.video-thumb-brand { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px; color: #dcfaf5; font: 700 clamp(.42rem, 1.9cqw, .52rem)/1 "JetBrains Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.video-thumb-brand i { width: 7px; height: 7px; border-radius: 50%; background: var(--video-accent); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.video-thumb-series { display: inline-flex; margin-bottom: 7px; padding: 4px 6px; border-radius: 4px; color: #092127; background: var(--video-accent); font: 800 clamp(.43rem, 1.95cqw, .54rem)/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.video-thumb-title { max-width: 100%; color: #fff; font-size: clamp(1.2rem, 6cqw, 1.62rem); line-height: .98; letter-spacing: -.05em; text-wrap: balance; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.video-thumb-deck { max-width: 96%; margin-top: 7px; color: #d4e7e3; font-size: clamp(.56rem, 2.5cqw, .7rem); line-height: 1.25; text-wrap: balance; }
.video-episode { position: absolute; z-index: 3; top: 5%; padding: 5px 6px; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; color: #fff; background: rgba(5,22,28,.55); backdrop-filter: blur(7px); font: 700 clamp(.43rem, 2cqw, .55rem)/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.video-title-left .video-episode { right: 4%; }
.video-title-right .video-episode { left: 4%; }
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17,19,18,.9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.play-btn svg { width: 20px; margin-left: 2px; }
.video-card .card-body h3 { margin: 5px 0 0; font-size: .95rem; line-height: 1.28; letter-spacing: -.025em; }
.video-placeholder-card .card-body { min-height: 130px; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; padding: 15px 16px 14px; }
.video-card-series { color: #50726c; font: 700 .53rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.video-card-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); color: #4d6863; font-size: .61rem; }
.video-card-state span { display: inline-flex; align-items: center; gap: 6px; }
.video-card-state i { width: 6px; height: 6px; border-radius: 50%; background: #da9d3d; box-shadow: 0 0 0 3px #fbf0dc; }
.video-card-state strong { color: #173f38; font: 700 .52rem/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.video-series-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.video-series-list button { padding: 9px 12px; border: 1px solid #c8ddd8; border-radius: 999px; background: #f7fbfa; color: #315c55; font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .03em; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.video-series-list button:hover { border-color: #8ebfb6; }
.video-series-list button[aria-pressed="true"] { border-color: #0b2027; color: #fff; background: #0b2027; }
.video-series-list button:focus-visible { outline: 3px solid rgba(25, 156, 137, .28); outline-offset: 2px; }
.video-library-note { max-width: 620px; margin: 8px 0 0; font-size: .76rem; line-height: 1.55; }
.video-empty-state { grid-column: 1 / -1; border-color: var(--line); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-thumb img { transition: none; }
  .video-card:hover { translate: 0; }
  .video-card:hover .video-thumb img { transform: none; }
}

/* FishSnap Book preview */
.book-home-section { background: linear-gradient(180deg, #f7faf9 0%, #edf6f3 100%); }
.book-home-card { display: grid; gap: 30px; align-items: center; padding: 28px; border: 1px solid #bdd8d2; border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 26px 70px rgba(11,48,42,.09); }
.book-mini-cover,
.book-main-cover { position: relative; overflow: hidden; color: var(--ink); border: 1px solid #c7dcd7; background: #fbfcf8; box-shadow: 18px 22px 36px rgba(10,43,39,.16); }
.book-mini-cover::before,
.book-main-cover::before { content: none; }
.book-mini-cover > *,
.book-main-cover > * { position: relative; z-index: 2; }
.book-mini-cover { width: min(250px, 100%); aspect-ratio: 7 / 10; justify-self: center; padding: 25px; border-radius: 5px 14px 14px 5px; }
.book-cover-brand { position: absolute !important; top: 5%; left: 7%; right: 7%; display: flex; align-items: center; justify-content: center; gap: 6px; color: #123d38; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.book-cover-brand img { width: 20px; height: 20px; object-fit: contain; }
.book-mini-cover strong { position: absolute !important; top: 14%; left: 7%; right: 7%; font-size: clamp(1.33rem, 4.7vw, 1.82rem); line-height: .91; letter-spacing: -.055em; text-align: center; }
.book-cover-fish { position: absolute !important; z-index: 1 !important; left: 4%; top: 40%; width: 92%; height: 43%; object-fit: contain; }
.book-mini-cover small { position: absolute !important; left: 5%; right: 5%; bottom: 6%; color: #395c56; font: 600 .46rem/1 "JetBrains Mono", monospace; letter-spacing: .035em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.book-home-copy h2 { max-width: 720px; margin: 9px 0 12px; }
.book-home-copy p { max-width: 720px; color: #4d625e; }
.book-home-points { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 24px; }
.book-home-points span { padding: 8px 10px; border: 1px solid #c9dfda; border-radius: 999px; color: #335d56; background: #f4faf8; font-size: .68rem; }
.book-hero { background: linear-gradient(180deg, #f8fbfa, #f2f8f6); }
.book-hero-grid { display: grid; gap: 40px; align-items: center; }
.book-hero-copy h1 { max-width: 780px; margin: 11px 0 16px; }
.book-hero-copy .lead { max-width: 720px; color: #405955; }
.book-status-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.book-status-row span { padding: 8px 10px; border: 1px solid #b8d9d2; border-radius: 999px; background: #fff; color: #315f57; font: 600 .61rem/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.book-main-cover { width: min(360px, 100%); aspect-ratio: 7 / 10; justify-self: center; padding: 34px; border-radius: 6px 18px 18px 6px; }
.book-main-cover .book-cover-brand { top: 5%; font-size: .82rem; }
.book-main-cover .book-cover-brand img { width: 24px; height: 24px; }
.book-main-cover strong { position: absolute !important; top: 14%; left: 7%; right: 7%; font-size: clamp(1.78rem, 5.1vw, 2.55rem); line-height: .9; letter-spacing: -.065em; text-align: center; }
.book-main-cover .book-cover-fish { top: 40%; height: 43%; }
.book-main-cover small { position: absolute !important; left: 5%; right: 5%; bottom: 6%; color: #395c56; font: 600 .55rem/1 "JetBrains Mono", monospace; letter-spacing: .055em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.book-outline-grid { display: grid; gap: 12px; counter-reset: bookchapter; }
.book-outline-card { position: relative; min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.book-outline-card::before { counter-increment: bookchapter; content: counter(bookchapter, decimal-leading-zero); display: block; margin-bottom: 28px; color: var(--aqua); font: 600 .63rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.book-outline-card h3 { margin: 0 0 7px; font-size: 1.02rem; }
.book-outline-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.book-purchase-band { background: #0b2027; color: #fff; }
.book-purchase-grid { display: grid; gap: 26px; align-items: start; }
.book-purchase-copy p { max-width: 680px; color: #bcd0cb; }
.book-format-grid { display: grid; gap: 10px; }
.book-format-card { padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.055); }
.book-format-card span { color: #8dd4c7; font: 600 .6rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.book-format-card h3 { margin: 13px 0 5px; color: #fff; }
.book-format-card p { margin: 0; color: #aac0bb; font-size: .7rem; }
.book-purchase-panel { padding: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: #fff; color: var(--ink); }
.book-purchase-panel h3 { margin: 8px 0; }
.book-purchase-panel p { color: var(--muted); font-size: .75rem; }
.book-purchase-panel .btn.is-disabled { width: 100%; justify-content: center; margin-top: 16px; border-color: #ced8d5; background: #e7ecea; color: #77837f; cursor: not-allowed; box-shadow: none; }
.book-purchase-note { margin-top: 12px !important; font-size: .65rem !important; }

@media (min-width: 760px) {
  .book-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr); }
  .book-outline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .book-home-card { grid-template-columns: 280px minmax(0, 1fr); padding: 42px; }
}

@media (min-width: 980px) {
  .book-purchase-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); }
}

.content-layout { display: grid; gap: 30px; align-items: start; }
.article-prose { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.article-prose h2 { margin-top: 38px; font-size: 1.65rem; }
.article-prose p,
.article-prose li { color: #4c5551; }
.article-prose .lead { color: var(--ink); font-size: 1.12rem; }
.article-prose figure { margin: 30px 0; }
.article-prose figure img { width: 100%; height: auto; border-radius: var(--radius); }

/* Editorial guide cards and article reading view */
.article-filter-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -2px 0 24px;
  padding-bottom: 4px;
}
.article-filter-row {
  min-width: 0;
  display: flex;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.article-filter-row::-webkit-scrollbar { display: none; }
.article-filter-row .chip { flex: 0 0 auto; }
.article-filter-count {
  flex: 0 0 auto;
  color: var(--muted);
  font: 600 .7rem/1.2 "JetBrains Mono", monospace;
}
.learn-guide-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 20px; }
.learn-guide-filter { display: grid; gap: 6px; min-width: min(100%, 250px); color: var(--muted); font-size: .74rem; font-weight: 700; }
.learn-guide-filter select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .86rem; }
.learn-guide-filter select:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.learn-guide-tools .article-filter-count { padding: 0 2px 13px; }
.learn-guide-more { display: flex; justify-content: center; margin: 20px 0 0; }
.learn-guide-more .btn { min-height: 46px; min-width: 180px; }
.learn-plant-grid { display: grid; gap: 16px; }
.learn-plant-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.learn-plant-image { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 22px; border-bottom: 1px solid var(--line); background: #fff; }
.learn-plant-image img { width: 100%; height: 100%; object-fit: contain; }
.learn-plant-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; padding: 20px; }
.learn-plant-copy h3 { margin: 8px 0 3px; font-size: 1.15rem; line-height: 1.25; }
.learn-plant-copy p { margin: 14px 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.learn-card-action { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.learn-plant-copy .learn-card-action { margin-top: auto; }
body[data-page="journal"] .hero-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; }
body[data-page="journal"] #guides,
body[data-page="journal"] #tank-ideas,
body[data-page="journal"] #plants { scroll-margin-top: 92px; }
body[data-page="journal"] .hero-tags a { min-width: 0; min-height: 46px; display: grid; place-items: center; padding: 8px 10px; text-align: center; white-space: normal; }
body[data-page="journal"] .section-head-action .btn { min-width: 190px; min-height: 46px; }
body[data-page="journal"] .tank-idea-image-button[data-tank-idea-slug="southeast-asian-shaded-stream"] img { clip-path: inset(1% 1% 5% 1%); }
body[data-page="journal"] .tank-idea-image-button[data-tank-idea-slug="shrimp-moss-garden"] img {
  clip-path: inset(5% 2% 9% 2%);
  transform: translateX(1.8%) scale(1.075);
  transform-origin: center;
}
.learn-aquarium-note { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.journal-article-grid { align-items: stretch; }
.journal-article-grid .article-card { height: 100%; }
.article-card-media {
  position: relative;
  min-width: 0;
  min-height: 210px;
}
.article-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.article-card-media.is-placeholder img {
  padding: 42px;
  mix-blend-mode: normal;
}
.article-card-media.is-scene img {
  padding: 16px;
  object-fit: contain;
  mix-blend-mode: normal;
}
.article-card .article-card-media { background: #fff; }
.article-card .article-card-media img {
  padding: 16px;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal;
}
.article-card .article-card-media.is-placeholder img { padding: 36px; }
.article-hero {
  padding: 34px 0 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #f5f6f2 15%, #edf6f4 100%);
}
.article-hero .crumbs { margin-bottom: 28px; }
.article-hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
.article-hero-copy h1 {
  max-width: 780px;
  margin: 14px 0 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
  line-height: .98;
}
.article-hero-copy > p {
  max-width: 690px;
  margin: 0 0 22px;
  color: #53605b;
  font-size: 1.02rem;
}
.article-hero-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6e4e0;
  border-radius: var(--radius-lg);
  background: #fff;
}
.article-hero-media::after {
  content: none;
}
.article-hero-media img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.article-hero-media.is-placeholder img {
  width: 56%;
  height: 56%;
  mix-blend-mode: normal;
}
.article-hero-media.is-scene img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  mix-blend-mode: normal;
}
.article-reading-section {
  padding-top: 48px;
  background: var(--surface-2);
}
.article-reading-section .article-prose {
  padding: 0;
  border: 0;
  background: transparent;
}
.article-reading-section .profile-aside { position: static; }
.article-practice-card { margin-top: 12px; }
.article-practice-card h3 { margin: 0 0 10px; }
.article-practice-card p { margin: 0; color: #4c5c58; }
.article-copy-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}
.article-copy-section + .article-copy-section { padding-top: 30px; }
.article-copy-section h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}
.article-copy-section p { margin: 0; }
.article-section-number {
  padding-top: 7px;
  color: var(--aqua);
  font: 600 .7rem/1 "JetBrains Mono", monospace;
}
.article-care-note { margin-top: 34px; }
.article-care-note h3 { margin: 12px 0 8px; }
.article-explore-card { margin-top: 12px; }
.article-takeaways-card h3 { margin: 0 0 12px; }
.article-takeaways-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.article-takeaways-card li { position: relative; padding-left: 18px; color: #4c5c58; font-size: .87rem; }
.article-takeaways-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }

/* Reproducible aquarium inspiration */
.tank-ideas-section { border-top: 1px solid var(--line); background: #f2f7f5; }
.tank-idea-principle {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 17px 19px;
  border: 1px solid #c8dfda;
  border-radius: 14px;
  background: #e7f2ef;
}
.tank-idea-principle-mark,
.tank-idea-label,
.tank-idea-reason > span {
  color: var(--aqua);
  font: 600 .66rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tank-idea-principle p { max-width: 920px; margin: 0; color: #48605b; font-size: .88rem; }
.tank-ideas-grid { display: grid; gap: 18px; }
.tank-idea-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(11,32,39,.045);
}
.tank-idea-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; margin: 0; padding: clamp(20px, 3vw, 34px); overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.tank-idea-artwork { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.tank-idea-media img { width: 100%; height: 100%; object-fit: contain; }
.tank-idea-image-button {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.tank-idea-image-button:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
.tank-image-action {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 999px;
  background: rgba(11,32,39,.78);
  color: #fff;
  font: 600 .64rem/1 "JetBrains Mono", monospace;
  letter-spacing: .04em;
  backdrop-filter: blur(9px);
}
.tank-hotspots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tank-hotspot {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  translate: -50% -50%;
  pointer-events: auto;
  cursor: help;
}
.tank-hotspot-dot {
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--aqua);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31,113,104,.2), 0 2px 8px rgba(0,0,0,.28);
  font: 700 .48rem/1 "JetBrains Mono", monospace;
}
.tank-hotspot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; animation: tank-hotspot-pulse 2.4s ease-out infinite; }
.tank-hotspot::after { display: none; }
.tank-hotspot-tip {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: min(240px, 62vw);
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(11,32,39,.94);
  color: #fff;
  text-align: left;
  box-shadow: 0 9px 26px rgba(0,0,0,.22);
  translate: -50% 5px;
  opacity: 0;
  visibility: hidden;
  transition: .16s ease;
}
.tank-hotspot.is-left-edge .tank-hotspot-tip { left: 0; translate: 0 5px; }
.tank-hotspot.is-right-edge .tank-hotspot-tip { right: 0; left: auto; translate: 0 5px; }
.tank-hotspot.is-top-edge .tank-hotspot-tip { top: calc(100% + 7px); bottom: auto; }
.tank-hotspot-tip small { display: block; color: #9fd0c8; font: 600 .57rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.tank-hotspot-tip strong { display: block; margin-top: 5px; font: 600 .7rem/1.35 Inter, sans-serif; }
.tank-hotspot:hover .tank-hotspot-tip,
.tank-hotspot:focus-visible .tank-hotspot-tip,
.tank-hotspot:focus .tank-hotspot-tip { opacity: 1; visibility: visible; translate: -50% 0; }
.tank-hotspot.is-left-edge:hover .tank-hotspot-tip,
.tank-hotspot.is-left-edge:focus-visible .tank-hotspot-tip,
.tank-hotspot.is-left-edge:focus .tank-hotspot-tip,
.tank-hotspot.is-right-edge:hover .tank-hotspot-tip,
.tank-hotspot.is-right-edge:focus-visible .tank-hotspot-tip,
.tank-hotspot.is-right-edge:focus .tank-hotspot-tip { translate: 0 0; }
.tank-hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
.tank-hotspot.is-linked .tank-hotspot-dot { background: #fff; color: var(--ink); box-shadow: 0 0 0 6px rgba(31,113,104,.42), 0 3px 12px rgba(0,0,0,.3); }
@keyframes tank-hotspot-pulse { 0% { scale: .65; opacity: .8; } 70%, 100% { scale: 1.35; opacity: 0; } }
.tank-idea-index {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(11,32,39,.72);
  color: #fff;
  backdrop-filter: blur(10px);
  font: 600 .63rem/1 "JetBrains Mono", monospace;
  letter-spacing: .06em;
}
.tank-idea-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.tank-idea-body h3 { margin: 9px 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.tank-idea-summary { margin: 0; color: var(--muted); font-size: .92rem; }
.tank-idea-body .learn-card-action { margin-top: auto; }
.tank-idea-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.tank-idea-specs > div { min-width: 0; padding: 13px; border-right: 1px solid var(--line); }
.tank-idea-specs > div:last-child { border-right: 0; }
.tank-idea-specs small { display: block; color: var(--muted); font-size: .68rem; }
.tank-idea-specs strong { display: block; margin-top: 4px; font: 600 .74rem/1.35 "JetBrains Mono", monospace; }
.tank-idea-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 21px; }
.tank-idea-plan ul { margin: 9px 0 0; padding-left: 18px; color: #4c5c58; font-size: .86rem; }
.tank-idea-plan li + li { margin-top: 5px; }
.tank-idea-reason { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tank-idea-reason p { margin: 7px 0 0; color: #3f514d; font-size: .88rem; }
.tank-idea-note { margin: 15px 0 0; padding: 13px 14px; border-radius: 11px; background: var(--surface-2); color: #4e5e5a; font-size: .82rem; }
.tank-idea-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tank-idea-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--aqua); font-size: .76rem; font-weight: 600; }
.tank-idea-links a:hover { border-color: var(--aqua); background: var(--aqua-soft); }
.tank-idea-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.tank-idea-quick-actions .btn { flex: 0 0 auto; }
.tank-idea-quick-actions .btn svg { width: 16px; height: 16px; }
.tank-idea-quick-actions > span { color: var(--muted); font: 600 .62rem/1.35 "JetBrains Mono", monospace; text-align: right; }

.section-head-action { max-width: 520px; }
.section-head-action p { margin: 0 0 14px; color: var(--muted); }
.aquarium-ideas-hero { padding-bottom: 46px; background: linear-gradient(180deg, #edf6f4 0, var(--bg) 100%); }
.aquarium-ideas-hero-stat {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 25px;
  border: 1px solid #c6ddd8;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(11,32,39,.06);
}
.aquarium-ideas-hero-stat strong { font: 600 clamp(3.8rem, 9vw, 6.2rem)/.8 "JetBrains Mono", monospace; letter-spacing: -.1em; color: var(--aqua); }
.aquarium-ideas-hero-stat span { margin-top: 15px; font: 600 1rem/1.2 Sora, sans-serif; }
.aquarium-ideas-hero-stat small { margin-top: 6px; color: var(--muted); }
.unexpected-builds-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 4%, rgba(233,130,94,.11), transparent 24%),
    linear-gradient(180deg, #f2f8f6 0%, #f9fbfa 100%);
}
.unexpected-builds-safety {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #bedbd5;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  color: #455c58;
  font-size: .83rem;
}
.unexpected-builds-safety strong { color: var(--aqua); font: 600 .65rem/1.3 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.unexpected-ideas-grid .aquarium-library-card { border-color: #bdd9d3; box-shadow: 0 18px 46px rgba(11,32,39,.065); }
.unexpected-ideas-grid .tank-idea-index { background: rgba(151,65,44,.84); }
.unexpected-ideas-grid .aquarium-library-body > .card-kicker { color: #9e503e; }
.tank-build-section { padding-top: 40px; padding-bottom: 42px; border-bottom: 1px solid var(--line); background: #f7faf9; }
.tank-build-method-grid { display: grid; gap: 14px; }
.tank-build-method-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  box-shadow: 0 10px 28px rgba(11,32,39,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tank-build-method-card:hover { transform: translateY(-3px); border-color: #a8cec7; box-shadow: 0 16px 36px rgba(11,32,39,.07); }
.tank-build-method-card:focus-visible { outline: 3px solid rgba(31,113,104,.24); outline-offset: 3px; }
.tank-build-method-card > span { color: var(--aqua); font: 600 .64rem/1.3 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.tank-build-method-card h3 { margin: 20px 0 9px; font-size: 1.35rem; line-height: 1.2; }
.tank-build-method-card p { margin: 0 0 20px; color: var(--muted); font-size: .86rem; }
.tank-build-method-card > strong { margin-top: auto; color: var(--aqua); font-size: .78rem; }
.aquarium-library-section { padding-top: 34px; }
.tank-library-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tank-idea-search { display: grid; gap: 7px; }
.tank-idea-search > span { color: var(--muted); font: 600 .66rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.tank-idea-search input { min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); outline: 0; }
.tank-idea-search input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(31,113,104,.1); }
.tank-library-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tank-library-filters::-webkit-scrollbar { display: none; }
.tank-library-filters .chip { flex: 0 0 auto; }
.tank-library-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 16px; padding-top: 2px; color: var(--muted); font-size: .76rem; }
.tank-library-status strong { color: var(--ink); }
.aquarium-ideas-library-grid { display: grid; gap: 16px; }
.aquarium-library-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 9px 28px rgba(11,32,39,.04);
}
.aquarium-library-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; margin: 0; padding: clamp(18px, 2.5vw, 28px); overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.aquarium-library-media img { width: 100%; height: 100%; object-fit: contain; }
.aquarium-library-body { padding: 19px; }
.aquarium-library-body h3 { margin: 8px 0 7px; font-size: 1.28rem; line-height: 1.18; }
.aquarium-library-body > p { min-height: 3.9em; margin: 0; color: var(--muted); font-size: .83rem; }
.aquarium-library-specs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.aquarium-library-specs span { min-width: 0; padding: 10px; border-right: 1px solid var(--line); }
.aquarium-library-specs span:last-child { border-right: 0; }
.aquarium-library-specs small { display: block; color: var(--muted); font-size: .6rem; }
.aquarium-library-specs strong { display: block; margin-top: 4px; font: 600 .66rem/1.35 "JetBrains Mono", monospace; overflow-wrap: anywhere; }
.aquarium-plan-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--aqua); font: inherit; font-size: .78rem; font-weight: 750; text-align: left; cursor: pointer; }
.aquarium-plan-trigger svg { width: 18px; height: 18px; transition: transform .18s ease; }
.aquarium-plan-trigger:hover svg,
.aquarium-plan-trigger:focus-visible svg { transform: translateX(3px); }
.aquarium-plan-trigger:focus-visible { outline: 2px solid var(--aqua); outline-offset: 5px; border-radius: 3px; }
.aquarium-library-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.aquarium-library-actions > .btn { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 6px; font-size: .75rem; line-height: 1.25; text-align: center; }
.aquarium-library-actions .aquarium-plan-trigger { margin: 0; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.tank-build-sequence { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tank-build-sequence ol { counter-reset: tank-build-step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tank-build-sequence li { counter-increment: tank-build-step; position: relative; min-width: 0; min-height: 76px; padding: 12px 12px 12px 39px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; color: #445651; font-size: .78rem; line-height: 1.5; }
.tank-build-sequence li::before { content: counter(tank-build-step, decimal-leading-zero); position: absolute; left: 11px; top: 12px; color: var(--aqua); font: 600 .62rem/1.4 "JetBrains Mono", monospace; }
.tank-maintenance-rhythm { display: grid; gap: 4px; margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: #eaf4f1; color: #415650; font-size: .79rem; }
.tank-maintenance-rhythm strong { color: var(--aqua); font: 600 .62rem/1.3 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.tank-library-more { display: flex; justify-content: center; padding-top: 28px; }
.tank-library-more [hidden] { display: none; }

.tank-image-viewer { position: fixed; inset: 0; z-index: 180; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.tank-image-viewer.open { visibility: visible; opacity: 1; }
.tank-image-viewer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,18,18,.82); backdrop-filter: blur(8px); cursor: zoom-out; }
.tank-image-viewer-panel {
  position: relative;
  width: min(calc(100% - 28px), 1280px);
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #f5f7f6;
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
  transform: translateY(10px) scale(.99);
  transition: transform .2s ease;
}
.tank-image-viewer.open .tank-image-viewer-panel { transform: none; }
.tank-image-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.tank-image-viewer-head h2 { margin: 5px 0 0; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.tank-image-viewer-head .icon-btn { flex: 0 0 auto; }
.tank-image-viewer-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
.tank-image-viewer-main > div { min-width: 0; }
.tank-image-viewer-stage { min-height: min(68vh, 760px); display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); background: #fff; }
.tank-image-viewer-canvas { position: relative; width: min(100%, 900px); aspect-ratio: 3 / 2; }
.tank-image-viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.tank-image-viewer-canvas > [data-tank-viewer-hotspots] { position: absolute; inset: 0; }
.tank-image-viewer-canvas > [data-tank-viewer-hotspots] > .tank-hotspots { position: absolute; inset: 0; }
.tank-image-viewer-canvas .tank-hotspot { width: 34px; height: 34px; }
.tank-image-viewer-canvas .tank-hotspot-dot { inset: 7px; font-size: .55rem; }
.tank-image-viewer-note { margin: 0; padding: 11px 18px 14px; color: var(--muted); font-size: .74rem; background: #fff; }
.tank-image-viewer-guide { min-width: 0; display: flex; flex-direction: column; padding: 18px; border-left: 1px solid var(--line); background: #fff; }
.tank-image-viewer.is-plan-mode .tank-image-viewer-panel { width: min(calc(100% - 28px), 1180px); height: calc(100vh - 28px); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.tank-image-viewer.is-plan-mode .tank-image-viewer-main { grid-template-columns: minmax(0, .98fr) minmax(390px, .72fr); }
.tank-image-viewer.is-plan-mode .tank-image-viewer-main > div:first-child { min-height: 0; display: flex; flex-direction: column; overflow: auto; background: #fff; }
.tank-image-viewer.is-plan-mode .tank-image-viewer-stage { min-height: 520px; flex: 1; }
.tank-image-viewer.is-plan-mode .tank-image-viewer-guide { min-height: 0; overflow: auto; padding: 22px; }
.tank-plan-viewer-content { display: grid; gap: 18px; }
.tank-plan-viewer-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.tank-plan-viewer-specs span { min-width: 0; padding: 10px; border-right: 1px solid var(--line); }
.tank-plan-viewer-specs span:last-child { border-right: 0; }
.tank-plan-viewer-specs small { display: block; color: var(--muted); font-size: .58rem; }
.tank-plan-viewer-specs strong { display: block; margin-top: 4px; font: 600 .65rem/1.35 "JetBrains Mono", monospace; overflow-wrap: anywhere; }
.tank-plan-viewer-section { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.tank-plan-viewer-section ul { margin: 8px 0 0; padding-left: 18px; color: #445651; font-size: .78rem; line-height: 1.55; }
.tank-plan-viewer-content .tank-build-sequence { margin-top: 0; padding-top: 0; border-top: 0; }
.tank-plan-viewer-content .tank-build-sequence ol { grid-template-columns: 1fr; }
.tank-plan-viewer-content .tank-build-sequence li { min-height: 0; }
.tank-plan-viewer-content .tank-idea-reason { margin-top: 0; }
.tank-plan-viewer-content .tank-idea-note { margin: 0; }
.tank-plan-viewer-action { padding-top: 17px; border-top: 1px solid var(--line); }
.tank-plan-viewer-action .btn { width: 100%; }
.tank-plan-viewer-action small { display: block; margin-top: 9px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.tank-focus-guide-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.tank-focus-guide-head strong { color: var(--muted); font: 600 .62rem/1.3 "JetBrains Mono", monospace; text-align: right; }
.tank-focus-guide ol { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tank-focus-guide li button { width: 100%; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.tank-focus-guide li button:hover,
.tank-focus-guide li button:focus-visible,
.tank-focus-guide li button.is-linked { border-color: #c8dfda; background: var(--aqua-soft); outline: 0; }
.tank-focus-guide li button > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--aqua); color: #fff; font: 700 .61rem/1 "JetBrains Mono", monospace; }
.tank-focus-guide li small { display: block; color: var(--muted); font: 600 .54rem/1.25 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.tank-focus-guide li strong { display: block; margin-top: 3px; font-size: .7rem; line-height: 1.3; }
.tank-contents-group { margin-top: 17px; }
.tank-contents-group h3 { margin: 0 0 8px; font-size: .81rem; }
.tank-contents-group ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #445651; font-size: .76rem; line-height: 1.45; }
.tank-guide-caution { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .71rem; line-height: 1.5; }
.tank-viewer-build { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.tank-viewer-build .btn { width: 100%; }
.tank-viewer-build small { display: block; margin-top: 9px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.aquarium-import-dialog { z-index: 210; }
.aquarium-import-dialog .dialog-panel { width: min(calc(100% - 24px), 580px); }
.aquarium-import-dialog .dialog-head h2 { margin: 5px 0 0; font-size: 1.25rem; }
.aquarium-import-dialog .dialog-body > p { margin: 0; color: var(--muted); }
.aquarium-import-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.aquarium-import-boundary { margin-top: 15px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: .72rem; line-height: 1.5; }

@media (min-width: 680px) {
  .learn-plant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    min-height: 244px;
  }
  .article-card .article-card-media {
    height: auto;
    min-height: 242px;
    aspect-ratio: auto;
  }
  .tank-idea-principle { grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 18px; }
}

@media (min-width: 680px) and (max-width: 1159px) {
  .article-card { grid-template-columns: 1fr; min-height: 0; }
  .article-card .article-card-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

@media (min-width: 900px) {
  .learn-plant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
  .article-hero-media { max-height: 390px; }
  .tank-build-method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tank-ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tank-library-tools { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.8fr); align-items: end; }
  .tank-library-status { grid-column: 1 / -1; }
  .aquarium-ideas-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1160px) {
  .aquarium-ideas-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .tank-image-viewer-main { grid-template-columns: 1fr; }
  .tank-image-viewer.is-plan-mode .tank-image-viewer-panel { height: auto; display: block; overflow: auto; }
  .tank-image-viewer.is-plan-mode .tank-image-viewer-main { grid-template-columns: 1fr; }
  .tank-image-viewer.is-plan-mode .tank-image-viewer-main > div:first-child { overflow: visible; }
  .tank-image-viewer-stage { min-height: 0; }
  .tank-image-viewer.is-plan-mode .tank-image-viewer-stage { min-height: 0; }
  .tank-image-viewer-guide,
  .tank-image-viewer.is-plan-mode .tank-image-viewer-guide { overflow: visible; border-top: 1px solid var(--line); border-left: 0; }
  .tank-focus-guide ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 679px) {
  body[data-page="journal"] .tank-idea-image-button[data-tank-idea-slug="shrimp-moss-garden"] img { transform: scale(1.075); }
  body[data-page="journal"] .tank-idea-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="journal"] .tank-idea-specs > div { border-bottom: 0; border-right: 1px solid var(--line); padding: 9px; }
  body[data-page="journal"] .tank-idea-specs > div:last-child { border-right: 0; }
  body[data-page="journal"] .tank-idea-specs strong { overflow-wrap: anywhere; font-size: .66rem; }
  .learn-guide-filter { width: 100%; }
  .learn-guide-tools .article-filter-count { padding: 0; }
  .unexpected-builds-safety { grid-template-columns: 1fr; gap: 6px; }
  .article-filter-shell { align-items: flex-start; flex-direction: column; }
  .article-filter-row { width: 100%; max-width: 100%; }
  .article-filter-count { padding-left: 3px; }
  .article-card-media { min-height: 0; }
  .article-hero { padding: 24px 0 38px; }
  .article-hero .crumbs { margin-bottom: 22px; }
  .article-hero-grid { gap: 26px; }
  .article-hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .article-copy-section { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .tank-idea-body { padding: 19px; }
  .tank-idea-specs { grid-template-columns: 1fr; }
  .tank-idea-specs > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tank-idea-specs > div:last-child { border-bottom: 0; }
  .tank-idea-plan { grid-template-columns: 1fr; }
  .tank-build-sequence ol { grid-template-columns: 1fr; }
  .aquarium-library-specs { grid-template-columns: 1fr; }
  .aquarium-library-specs span { border-right: 0; border-bottom: 1px solid var(--line); }
  .aquarium-library-specs span:last-child { border-bottom: 0; }
  .tank-image-viewer-stage { padding: 16px; }
  .tank-image-viewer-canvas { width: 100%; }
  .tank-focus-guide ol { grid-template-columns: 1fr; }
  .aquarium-import-actions { grid-template-columns: 1fr; }
  .tank-idea-quick-actions { align-items: flex-start; flex-direction: column; }
  .tank-idea-quick-actions > span { text-align: left; }
}

body[data-page="account"] .account-section { padding: 34px 0 76px; }
.account-shell {
  width: min(calc(100% - 32px), 1120px);
  display: grid;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 26px 70px rgba(11, 32, 39, .12);
}
.account-story { min-width: 0; display: grid; background: var(--ink); color: #fff; }
.account-coral-art { position: relative; min-height: 238px; margin: 0; overflow: hidden; background: #d9eeef; }
.account-coral-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); pointer-events: none; }
.account-coral-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 58%; }
.account-story-copy { padding: 30px 26px 32px; }
.account-story .eyebrow { color: #8fc6bf; }
.account-story h1 { max-width: 670px; margin-bottom: 17px; font-size: clamp(2.35rem, 7vw, 4.6rem); }
.account-story-copy > p { max-width: 580px; margin-bottom: 0; color: #b5c3c2; line-height: 1.62; }
.account-feature-list { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.17); }
.account-feature-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.account-feature-item span { color: #77aaa6; font: 600 .63rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.account-feature-item strong { color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: -.01em; }
.account-panel { min-width: 0; display: flex; padding: 34px 24px; background: var(--surface); }
.account-panel-inner { width: 100%; max-width: 450px; margin: auto; }
.account-panel .eyebrow { color: var(--aqua); }
.account-panel h2 { margin-bottom: 12px; font-size: clamp(2.45rem, 6vw, 3.85rem); }
.account-panel-copy { max-width: 410px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.account-tabs { display: flex; gap: 7px; margin-top: 30px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.account-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-size: .75rem; font-weight: 600; cursor: pointer; }
.account-tabs button.active { background: var(--surface); box-shadow: 0 2px 10px rgba(11,32,39,.09); }
.account-tabs button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.account-form { display: none; margin-top: 28px; }
.account-form.active { display: block; }
.account-form .field label { margin-bottom: 8px; color: #52666a; font-size: .68rem; }
.account-form .field input { min-height: 50px; padding: 11px 14px; border-radius: 12px; background: #fbfcfc; }
.account-field-spaced { margin-top: 15px; }
.account-submit { margin-top: 20px; }
.account-reset { margin: 11px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.account-reset .text-link { padding: 0; border-width: 0 0 1px; background: none; font-size: inherit; cursor: pointer; }
.account-assurance { display: flex; gap: 11px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-assurance-mark { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(24,118,74,.09); }
.account-assurance p { display: grid; gap: 1px; margin: 0; line-height: 1.35; }
.account-assurance strong { font-size: .74rem; }
.account-assurance span:last-child { color: var(--muted); font-size: .68rem; }

.dashboard-wrap { display: grid; gap: 20px; align-items: start; }
.dashboard-sidebar { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dashboard-sidebar a,
.dashboard-sidebar button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .77rem; text-align: left; cursor: pointer; }
.dashboard-sidebar button.active { color: #fff; background: var(--ink); }
.dashboard-main { min-width: 0; }
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card small { color: var(--muted); }
.metric-card strong { display: block; margin-top: 10px; font: 600 1.55rem/1 "JetBrains Mono", monospace; letter-spacing: -.06em; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th,
.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: .73rem; }
.data-table th { color: var(--muted); background: var(--surface-2); font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.table-status { padding: 5px 8px; border-radius: 999px; background: var(--aqua-soft); color: var(--ok); font-size: .62rem; font-weight: 600; }

.saved-layout { display: grid; gap: 28px; }
.saved-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.empty-light { padding: 38px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

@media (min-width: 680px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (min-width: 900px) {
  .hero-copy { min-height: 620px; }
  .hero-visual { min-height: 0; }
  .listing-detail-grid { grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); }
  .purchase-card { position: sticky; top: 110px; }
  .country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  body[data-page="account"] .account-section { padding-top: 52px; }
  .account-shell { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 650px; }
  .account-story { grid-template-rows: minmax(285px, .9fr) minmax(330px, 1.1fr); }
  .account-coral-art { min-height: 0; }
  .account-story-copy { padding: 38px 44px 40px; }
  .account-story h1 { font-size: clamp(3rem, 4.2vw, 4.25rem); }
  .account-panel { padding: 46px 42px; border-left: 1px solid var(--line); }
  .dashboard-wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .dashboard-sidebar { position: sticky; top: 105px; }
}

@media (min-width: 1160px) {
  .desktop-nav, .nav-search { display: flex; }
  .menu-btn { display: none; }
  .mobile-search-action { display: none; }
}

@media (min-width: 1160px) and (max-width: 1240px) {
  .nav-actions { gap: 1px; }
}

@media (max-width: 679px) {
  .nav-saved, .nav-tank, .account-action { display: none; }
  .nav-shell { gap: 8px; }
  .nav-actions { gap: 1px; }
  .filter-count { display: none; }
}

@media (max-width: 899px) {
  .hero-copy { min-height: 0; }
  .care-tab-shell { min-height: 640px; }
}

/* FishSnap app showcase */
.app-hero {
  overflow: hidden;
  padding: 42px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(85,157,154,.28), transparent 30%),
    linear-gradient(145deg, #0b2027 0%, #12383e 68%, #176b72 100%);
}
.app-hero .crumbs { color: rgba(255,255,255,.62); }
.app-hero .crumbs strong, .app-hero .crumbs a:hover { color: #fff; }
.app-hero .eyebrow { color: #a8d5d2; }
.app-hero-grid { display: grid; gap: clamp(42px, 5vw, 72px); align-items: center; }
.app-hero-copy h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(3rem, 7vw, 6rem); }
.app-hero-copy .lead { max-width: 620px; color: #c8dad9; font-size: clamp(1rem, 2vw, 1.2rem); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.app-hero .btn { background: #fff; border-color: #fff; color: var(--ink); }
.app-hero .btn.secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.3); }
.app-availability { margin: 14px 0 0; color: #a8c1c0; font-size: .76rem; }
.app-proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; max-width: 640px; margin-top: 38px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.14); }
.app-proof div { padding: 18px; background: rgba(7,27,33,.7); }
.app-proof strong { display: block; font: 600 clamp(1.3rem, 3vw, 2rem)/1 "JetBrains Mono", monospace; letter-spacing: -.07em; }
.app-proof span { display: block; margin-top: 7px; color: #a8c1c0; font-size: .7rem; line-height: 1.35; }
.app-showcase { position: relative; display: grid; grid-template-columns: minmax(280px, .95fr) minmax(250px, .8fr); gap: clamp(22px, 3vw, 40px); align-items: center; min-width: 0; }
.app-showcase::before { content: ""; position: absolute; inset: 10% -8% 5% 16%; border-radius: 999px; background: rgba(74,162,157,.1); filter: blur(60px); pointer-events: none; }
.app-phone-stage { display: grid; justify-items: center; gap: 14px; }
.app-phone { position: relative; z-index: 1; width: min(100%, 350px); aspect-ratio: 390/846; overflow: hidden; border: 9px solid #07191e; border-radius: 46px; background: #f7faf9; box-shadow: 0 38px 90px rgba(0,0,0,.34); }
.app-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-picker { position: relative; z-index: 1; min-width: 0; padding-left: clamp(20px, 3vw, 34px); border-left: 1px solid rgba(255,255,255,.18); }
.app-picker h2 { max-width: 330px; margin: 10px 0 12px; color: #fff; font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: .98; }
.app-picker > p { max-width: 310px; margin: 0; color: #a8c1c0; font-size: .86rem; }
.app-picker-list { display: grid; gap: 4px; margin-top: 22px; }
.app-picker-button { display: grid; grid-template-columns: 44px minmax(0,1fr) 20px; gap: 12px; align-items: center; width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid transparent; border-radius: 18px; color: #c6d7d6; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.app-picker-button:hover { color: #fff; border-color: rgba(255,255,255,.16); }
.app-picker-button.active { color: #fff; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.12); }
.app-picker-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #a8d5d2; font: 600 .64rem/1 "JetBrains Mono", monospace; }
.app-picker-button.active .app-picker-icon { color: var(--ink); border-color: #fff; background: #fff; }
.app-picker-button strong, .app-picker-button small { display: block; }
.app-picker-button strong { color: inherit; font-size: .9rem; }
.app-picker-button small { margin-top: 3px; color: #9fb6b5; font-size: .72rem; line-height: 1.35; }
.app-picker-button.active small { color: #d1dfde; }
.app-picker-arrow { color: #829e9d; font-size: 1rem; }
.app-open-view { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: #fff; font-weight: 700; font-size: .8rem; }
.app-open-view:hover { color: #a8d5d2; }
.app-access-section { background: #fff; }
.app-access-grid { display: grid; gap: 12px; }
.app-access-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.app-access-card.available { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.app-access-card.available:hover { transform: translateY(-2px); border-color: var(--aqua); box-shadow: 0 16px 34px rgba(11,32,39,.1); }
.app-access-card.coming-soon { background: var(--bg); }
.app-access-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--aqua); background: var(--aqua-soft); font: 600 .66rem/1 "JetBrains Mono", monospace; }
.app-access-card.coming-soon .app-access-status { color: var(--muted); background: var(--surface-2); }
.app-access-card h3 { margin: 34px 0 10px; font-size: 1.35rem; }
.app-access-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.app-access-action { display: inline-flex; gap: 8px; margin-top: 24px; color: var(--aqua); font-weight: 650; }
.app-callout-section { background: var(--aqua-soft); }
.app-callout { display: grid; gap: 28px; align-items: end; }
.app-callout h2 { max-width: 760px; }
.app-callout p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.app-callout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.app-status-note { display: grid; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.app-status-note strong { color: var(--aqua); }
.app-status-note p { margin: 0; color: var(--muted); font-size: .78rem; }

@media (min-width: 760px) {
  .app-access-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-callout { grid-template-columns: minmax(0,1fr) auto; }
}

@media (min-width: 1160px) {
  .app-hero .container { width: min(1480px, calc(100% - 48px)); }
  .app-hero-grid { grid-template-columns: minmax(390px, .82fr) minmax(680px, 1.38fr); }
}

@media (min-width: 760px) and (max-width: 1159px) {
  .app-showcase { width: min(100%, 760px); margin-inline: auto; }
}

@media (max-width: 759px) {
  .app-hero { padding-top: 28px; }
  .app-proof { grid-template-columns: 1fr; }
  .app-proof div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .app-showcase { display: flex; flex-direction: column; }
  .app-picker { order: -1; width: 100%; padding-left: 0; border-left: 0; }
  .app-picker h2 { max-width: 100%; }
  .app-picker-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .app-picker-list::-webkit-scrollbar { display: none; }
  .app-picker-button { flex: 0 0 220px; grid-template-columns: 38px minmax(0,1fr); min-height: 70px; }
  .app-picker-icon { width: 38px; height: 38px; }
  .app-picker-arrow { display: none; }
  .app-phone { width: min(88vw, 320px); }
}

/* Public species imagery: seamless stages, full specimen, true centre. */
.hero-visual,
.card-image,
.listing-card .card-image,
.main-photo,
.thumb,
.listing-photo {
  background: radial-gradient(circle at 50% 48%, #f3f8f7 0%, #e5efed 58%, #dce9e6 100%);
}

.hero-visual > img {
  height: clamp(320px, 52vw, 520px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: 50% 50%;
  padding: 0;
}

.card-image,
.listing-card .card-image {
  aspect-ratio: 4 / 3;
}

.card-image > a {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
}

.card-image img,
.main-photo img,
.thumb img,
.listing-photo img,
.tank-item img,
.search-result img,
.cart-item > img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

img[src*="/organisms/"],
img[src*="/website-gap/"],
img[src*="/fish-photo/"],
img[src*="/species-illustrations/"],
img[src*="/identity-corrections/"],
img[src*="/life-profiles/"] {
  background: transparent !important;
  mix-blend-mode: multiply;
}

.card-image img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.main-photo img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.listing-photo img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]) {
  width: 100%;
  height: 100%;
  transform: none !important;
}

.card-image.is-placeholder img {
  mix-blend-mode: normal;
  object-position: 50% 50% !important;
}

.thumb {
  aspect-ratio: 1;
}

.main-photo {
  aspect-ratio: 4 / 3;
}

.main-photo img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]) {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 32px) !important;
  max-height: calc(100% - 32px) !important;
  padding: 0 !important;
}

/* Keep square source artwork fully centred inside landscape cards and listings. */
.card-image > a > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.listing-photo > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]) {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 24px) !important;
  max-height: calc(100% - 24px) !important;
  place-self: center;
  padding: 0 !important;
}

.thumb {
  display: grid;
  place-items: center;
}

.thumb img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]) {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 8px) !important;
  max-height: calc(100% - 8px) !important;
  place-self: center;
}

.main-photo,
.listing-photo,
.thumb {
  position: relative;
}

.card-image > a > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.main-photo > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.listing-photo > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]),
.thumb > img:is([src*="/organisms/"], [src*="/website-gap/"], [src*="/fish-photo/"], [src*="/species-illustrations/"], [src*="/identity-corrections/"], [src*="/life-profiles/"]) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
}

.card-image > a > img.directional-animal-media-facing-right,
.main-photo > img.directional-animal-media-facing-right,
.thumb > img.directional-animal-media-facing-right {
  transform: translate(-50%, -50%) scaleX(-1) !important;
  transform-origin: center;
}

.card-image:hover > a > img.directional-animal-media-facing-right {
  transform: translate(-50%, -50%) scaleX(-1) scale(1.03) !important;
}

/* Tall plant silhouettes use the same gallery geometry as fish without filling the frame. */
.plant-card-image > a > img.plant-media {
  max-width: 54% !important;
  max-height: 54% !important;
}

/* Plant previews need visible leaf detail while retaining the fish cards' centred breathing room. */
body[data-page="home"] [data-home-plants] .plant-card-image > a > img.plant-media,
body[data-page="discover"] [data-species-grid] .plant-card-image > a > img.plant-media,
body[data-page="plants"] [data-all-plants] .plant-card-image > a > img.plant-media {
  max-width: min(82%, calc(100% - 24px)) !important;
  max-height: min(82%, calc(100% - 24px)) !important;
}

.main-photo > img.plant-media {
  max-width: 82% !important;
  max-height: 82% !important;
}

.thumb > img.plant-media {
  max-width: 76% !important;
  max-height: 76% !important;
}

/* Private sourced-care review layer. This remains outside the live deployment until owner approval. */
.care-visitor-section { max-width: 900px; }
.care-visitor-facts { margin-top: 22px; }
.care-visitor-facts .fact-cell { min-height: 92px; }
@media (min-width: 680px) {
  .care-visitor-facts[data-fact-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.care-visitor-copy { display: grid; gap: 13px; max-width: 780px; margin-top: 22px; }
.care-visitor-copy p { margin: 0; color: #44524e; font-size: .96rem; line-height: 1.75; }
.care-visitor-callout {
  display: grid;
  gap: 6px;
  max-width: 780px;
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid #2d8d80;
  border-radius: 10px;
  background: #edf8f4;
}
.care-visitor-callout strong { color: var(--ink); font-size: .82rem; }
.care-visitor-callout p { margin: 0; color: #31544e; font-size: .82rem; line-height: 1.65; }
.care-wild-facts-card,
.care-wild-translation {
  max-width: 780px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b8d9d2;
  border-radius: 16px;
  background: #edf7f4;
}
.care-wild-facts-card { border-color: var(--line); background: var(--surface); }
.care-wild-facts-card .care-visitor-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
.care-wild-translation-heading { margin-bottom: 13px; }
.care-wild-translation-heading h3 { margin: 6px 0 0; font-size: 1rem; }
.care-wild-translation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #cee0dc; border-radius: 12px; background: #cee0dc; }
.care-wild-translation-item { min-height: 92px; padding: 14px; background: #fbfdfc; }
.care-wild-translation-item small { display: block; color: #55716c; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.care-wild-translation-item strong { display: block; margin-top: 6px; color: #183f39; font-size: .85rem; line-height: 1.45; }
.care-range-map {
  max-width: 780px;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid #c7d9d6;
  border-radius: 18px;
  background: #f8fbfa;
  box-shadow: 0 12px 34px rgba(24, 68, 62, .08);
}
.care-range-map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.care-range-map-heading h3 { margin: 6px 0 0; font-size: 1.12rem; }
.care-range-map-static {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #b5d2cc;
  border-radius: 999px;
  background: #edf7f4;
  color: #34665f;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.care-range-map-frame { overflow: hidden; border: 1px solid #b9cfcd; border-radius: 14px; background: #dcebed; }
.care-range-map-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #dcebed; }
.care-range-map-frame .care-static-range-svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #dcebed; }
.care-map-unit { vector-effect: non-scaling-stroke; }
.care-map-unit.is-context { fill: #f7faf8; stroke: #b8cdca; stroke-width: .65; }
.care-map-unit.is-range { stroke: #087767; stroke-width: 1.4; }
.care-map-point { fill: #e8fffa; stroke: #087767; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.care-static-range-svg.is-withheld .care-map-unit.is-context { fill: #f3f7f6; stroke: #bfd0ce; }
.fishsnap-detailed-range-map text { font-family: Avenir, Inter, Arial, sans-serif; }
.fishsnap-detailed-range-map .care-map-grid { fill: none; stroke: #bed4d6; stroke-width: 1; stroke-dasharray: 8 13; opacity: .58; }
.fishsnap-detailed-range-map .care-map-place-label,
.fishsnap-detailed-range-map .care-map-point-label { fill: #244d48; stroke: #f8fbf9; paint-order: stroke; stroke-linejoin: round; font-weight: 800; }
.fishsnap-detailed-range-map .care-map-point-label { font-weight: 700; }
.fishsnap-detailed-range-map .care-map-panel { fill: #f8fbf9; fill-opacity: .95; stroke: #b7cfcc; }
.fishsnap-detailed-range-map .care-map-panel-eyebrow { fill: #53716e; font-size: 13px; font-weight: 800; letter-spacing: 2px; }
.fishsnap-detailed-range-map .care-map-panel-rule { stroke: #d3e1df; }
.fishsnap-detailed-range-map .care-map-summary-title { fill: #143f3a; font-size: 25px; font-weight: 850; }
.fishsnap-detailed-range-map .care-map-summary-copy { fill: #315954; font-size: 16px; font-weight: 680; }
.fishsnap-detailed-range-map .care-map-locator-unit { vector-effect: non-scaling-stroke; }
.fishsnap-detailed-range-map .care-map-locator-unit.is-context { fill: #e8efed; stroke: #a9bfbc; stroke-width: .55; }
.fishsnap-detailed-range-map .care-map-locator-unit.is-range { stroke: #087767; stroke-width: 1.45; }
.fishsnap-detailed-range-map .care-map-locator-frame { fill: none; stroke: #173e3a; stroke-width: 2.5; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
.fishsnap-detailed-range-map .care-map-scale { fill: #466763; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.fishsnap-detailed-range-map .care-map-scale path { fill: none; stroke: #466763; stroke-width: 2; }
.fishsnap-detailed-range-map .care-map-north path { fill: #173e3a; }
.fishsnap-detailed-range-map .care-map-north text { fill: #173e3a; font-size: 18px; font-weight: 850; }
.care-range-map figcaption { margin-top: 12px; color: #4b6662; font-size: .76rem; line-height: 1.6; }
.care-range-map-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #d4e2df; }
.care-range-map-legend-item { display: flex; align-items: flex-start; gap: 8px; min-width: 0; color: #58706d; }
.care-range-map-legend-item > span:last-child { display: grid; min-width: 0; gap: 2px; }
.care-range-map-legend-item strong { color: #244743; font-size: .68rem; line-height: 1.4; overflow-wrap: anywhere; }
.care-range-map-legend-item small { font-size: .62rem; line-height: 1.45; overflow-wrap: anywhere; }
.care-range-map-swatch { flex: 0 0 auto; width: 24px; height: 16px; margin-top: 1px; border-radius: 4px; }
.care-range-map-swatch.is-range {
  border: 1.5px solid #087767;
  background: repeating-linear-gradient(135deg, rgba(39, 164, 134, .18) 0 4px, rgba(22, 137, 118, .48) 4px 5px, rgba(39, 164, 134, .18) 5px 8px);
}
.care-range-map-swatch.is-reference { position: relative; border: 1px solid #b9cfcd; background: #fff; }
.care-range-map-swatch.is-reference::after { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border: 2px solid #173e3a; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.care-range-map-swatch.is-context { border: 1px solid #9ab0ad; background: #f7faf8; }
[data-profile-range-map] { margin-top: 12px; }
[data-profile-range-map][hidden] { display: none; }
.care-range-map-compact {
  max-width: none;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: none;
}
.care-range-map-compact .care-range-map-heading { margin-bottom: 11px; }
.care-range-map-compact .care-range-map-heading h3 { margin-top: 5px; font-size: .98rem; }
.care-range-map-compact .care-range-map-frame { border-radius: 10px; }
.care-range-map-compact .care-range-map-frame img { aspect-ratio: 16 / 9; object-fit: contain; }
.care-range-map-compact .care-range-map-frame .care-static-range-svg { aspect-ratio: 16 / 9; }
.care-range-map-compact figcaption { margin-top: 10px; font-size: .72rem; line-height: 1.5; }
.care-range-map-compact .care-range-map-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; padding-top: 11px; }
.care-range-map-compact .care-range-map-legend-item { gap: 6px; }
.care-range-map-compact .care-range-map-legend-item strong { font-size: .72rem; }
.care-range-map-compact .care-range-map-legend-item small { font-size: .7rem; }
.care-range-map-compact .care-range-map-swatch { width: 21px; height: 14px; }
.has-care-presentation .care-tab-shell { min-height: 0; }

/* The natural-history review is one aligned composition, not a staggered sidebar. */
.has-care-presentation[data-active-care="naturalHistory"] .profile-sections {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-tab-shell,
.has-care-presentation[data-active-care="naturalHistory"] .care-panel.active,
.has-care-presentation[data-active-care="naturalHistory"] .care-panel.active > .care-visitor-section,
.has-care-presentation[data-active-care="naturalHistory"] .profile-aside {
  display: contents;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-section-heading {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 4px;
}
.has-care-presentation[data-active-care="naturalHistory"] .profile-suitability-section.is-inline {
  grid-column: 1 / -1;
  grid-row: 2;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-wild-facts-card {
  grid-column: 1;
  grid-row: 3;
  max-width: none;
  margin: 0;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-at-glance {
  grid-column: 1;
  grid-row: 4;
  margin: 0;
  padding: 18px;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row {
  overflow: hidden;
  margin-top: 15px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  gap: 1px;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row > div {
  min-height: 92px;
  padding: 14px;
  background: #fbfdfc;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-wild-translation {
  grid-column: 1;
  grid-row: 5;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
}
.has-care-presentation[data-active-care="naturalHistory"] [data-profile-range-map] {
  grid-column: 1;
  grid-row: 6;
  margin: 0;
}
.has-care-presentation[data-active-care="naturalHistory"] .profile-aside > .care-responsible-note {
  display: none;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-responsible-inline {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: auto 0 0 !important;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid #cee0dc;
  border-radius: 0;
  background: transparent;
}
.has-care-presentation[data-active-care="naturalHistory"] .care-responsible-inline p {
  line-height: 1.55;
}
.care-wild-species-visual { display: none; }

@media (min-width: 900px) {
  .has-care-presentation[data-active-care="naturalHistory"] .profile-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-facts-card {
    grid-column: 1;
    grid-row: 3;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-at-glance {
    grid-column: 2;
    grid-row: 3;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-facts-card,
  .has-care-presentation[data-active-care="naturalHistory"] .care-at-glance {
    display: flex;
    flex-direction: column;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-facts-card .care-visitor-facts,
  .has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row {
    flex: 1 1 auto;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-facts-card .fact-cell,
  .has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row > div {
    min-height: 0;
    height: 100%;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-translation {
    grid-column: 1;
    grid-row: 4;
  }
  .has-care-presentation[data-active-care="naturalHistory"] [data-profile-range-map] {
    grid-column: 2;
    grid-row: 4;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-range-map-compact {
    height: 100%;
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-species-visual {
    display: grid;
    position: relative;
    flex: 1 1 112px;
    min-height: 112px;
    place-items: center;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid #cee0dc;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 48%, #f8fcfb 0%, #edf6f3 72%, #e4f0ed 100%);
  }
  .has-care-presentation[data-active-care="naturalHistory"] .care-wild-species-visual img {
    display: block;
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    max-width: none;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
  }
}

.care-review-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #b8ded5;
  border-radius: 14px;
  background: #edf8f4;
  color: #27524c;
  font-size: .74rem;
}
.care-review-notice strong { color: var(--ink); font-size: .78rem; }
.care-review-notice.is-hold { border-color: #e1c48a; background: #fff7e5; color: #765611; }
.care-review-notice.is-scoped { border-color: #bfd3e8; background: #f1f6fb; color: #31556f; }
.care-scope-notice {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid #5a9e90;
  border-radius: 8px;
  background: #f1f7f5;
  color: #36534e;
  font-size: .72rem;
}
.care-scope-notice strong { color: var(--ink); }
.care-scope-notice span { line-height: 1.55; }
.care-scope-notice.is-blocked { border-left-color: #b66; background: #fff2f2; color: #7d3636; }
.care-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.care-section-heading h2 { max-width: 720px; margin-top: 8px; }
.care-status {
  flex: 0 0 auto;
  max-width: 190px;
  padding: 6px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.care-status.is-supported { border-color: #abd6c2; background: #ecf8f1; color: #185b38; }
.care-status.is-incomplete { border-color: #e1c98e; background: #fff8e8; color: #775710; }
.care-status.is-disputed { border-color: #e7b3b3; background: #fff0f0; color: #862929; }
.care-research-copy { margin-top: 20px; font-size: .9rem; line-height: 1.8; }
.care-confidence { color: var(--muted); font: 600 .62rem/1.45 "JetBrains Mono", monospace; letter-spacing: .025em; text-transform: uppercase; }
.care-research-facts { margin-top: 22px; }
.care-parameters { display: grid; gap: 14px; margin-top: 22px; }
.care-parameters > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.care-parameters .rule { margin: 0; background: #36413d; }
.care-observation { display: grid; gap: 3px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: .74rem; }
.care-observation span { color: var(--muted); text-transform: capitalize; }
.care-evidence { max-width: 780px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.care-evidence summary { cursor: pointer; color: var(--muted); font-size: .7rem; font-weight: 700; }
.care-evidence ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0 0 0 18px; }
.care-evidence a { color: #256a61; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; }
.care-deeper-grid { display: grid; gap: 10px; margin-top: 22px; }
.care-deeper-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.care-deeper-card > div { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: 14px; }
.care-deeper-card h3 { margin: 3px 0 0; }
.care-deeper-card p { margin: 13px 0 0; font-size: .78rem; line-height: 1.7; }
.care-source-heading { margin-top: 28px; }
.care-source-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.care-source-list a { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.care-source-list a:hover { border-color: #82bdb3; }
.care-source-list strong { font-size: .72rem; }
.care-source-list span { color: var(--muted); font-size: .69rem; }

@media (min-width: 760px) {
  .care-deeper-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .care-section-heading { display: grid; }
  .care-status { max-width: none; justify-self: start; }
  .care-research-facts { grid-template-columns: repeat(2, 1fr); }
  .care-range-map { padding: 13px; }
  .care-range-map-heading { align-items: center; }
  .care-range-map-legend { grid-template-columns: 1fr; }
  .care-range-map-compact .care-range-map-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-wild-translation { padding: 14px; }
  .care-wild-facts-card .fact-cell,
  .care-wild-translation-item,
  .has-care-presentation[data-active-care="naturalHistory"] .care-at-glance .spec-row > div { min-height: 84px; }
  .care-wild-translation-item { padding: 12px; }
  .has-care-presentation[data-active-care="naturalHistory"] .care-responsible-inline { grid-template-columns: 1fr; gap: 6px; }
}

/* Legal centre */
.legal-hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, rgba(85, 157, 154, .12), transparent 34%),
    linear-gradient(145deg, #f7faf9 30%, #edf5f3 100%);
}
.legal-hero h1 { max-width: 930px; font-size: clamp(2.65rem, 6vw, 5rem); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal-meta span {
  padding: 7px 10px;
  border: 1px solid #cbdad7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #4c6564;
  font: 600 .63rem/1.25 "JetBrains Mono", monospace;
}
.legal-content-section { padding-top: 30px; background: #f2f6f5; }
.legal-layout { display: grid; gap: 20px; align-items: start; }
.legal-sidebar {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.legal-sidebar > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 .67rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-sidebar nav { display: flex; width: 100%; max-width: 100%; gap: 7px; overflow-x: auto; padding: 1px; scrollbar-width: none; }
.legal-sidebar nav::-webkit-scrollbar { display: none; }
.legal-sidebar a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #405451;
  font-size: .72rem;
  font-weight: 600;
}
.legal-sidebar a:hover,
.legal-sidebar a:focus-visible { border-color: var(--aqua); color: var(--aqua); outline: none; }
.legal-main { display: grid; gap: 18px; min-width: 0; }
.legal-main > section[id] { scroll-margin-top: calc(var(--header) + 18px); }
.legal-status,
.legal-summary,
.legal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.legal-status {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-color: #b9d8d2;
  background: linear-gradient(145deg, #e6f3ef, #f7fbfa 70%);
}
.legal-status-mark {
  width: max-content;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--aqua);
  color: #fff;
  font: 600 .63rem/1 "JetBrains Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--aqua);
  font: 600 .66rem/1.35 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-status h2,
.legal-summary h2,
.legal-section-head h2 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.legal-status p { max-width: 880px; margin: 13px 0 0; color: #435a56; }
.legal-status-note {
  padding-top: 13px;
  border-top: 1px solid rgba(23, 107, 114, .2);
  font-size: .86rem;
}
.legal-summary { padding: 24px; }
.legal-summary-grid { display: grid; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.legal-summary-grid article { padding: 17px; background: #fbfdfc; }
.legal-summary-grid strong { display: block; margin-bottom: 5px; font-size: .82rem; }
.legal-summary-grid p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.58; }
.legal-card { padding: 24px; }
.legal-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-section-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: var(--aqua);
  font: 600 .64rem/1 "JetBrains Mono", monospace;
}
.legal-prose { max-width: 860px; }
.legal-prose h3 { margin: 28px 0 8px; font-size: 1rem; letter-spacing: -.015em; }
.legal-prose h3:first-child { margin-top: 0; }
.legal-prose p,
.legal-prose li,
.legal-intro { color: #4c5e5a; font-size: .86rem; line-height: 1.75; }
.legal-prose p { margin-bottom: 15px; }
.legal-prose ul { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 20px; }
.legal-prose code { padding: 2px 5px; border-radius: 5px; background: #edf3f1; color: #244d49; font-size: .76rem; }
.legal-callout,
.legal-right-to-object {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--aqua);
  border-radius: 0 12px 12px 0;
  background: #edf6f3;
  color: #38534f;
  font-size: .82rem;
  line-height: 1.68;
}
.legal-right-to-object { margin: 24px 0 0; border-left-color: #865c16; background: #fff8e8; color: #5e4b27; }
.legal-table-wrap { max-width: 100%; margin: 15px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal-table-wrap:focus-visible { outline: 3px solid rgba(23, 107, 114, .18); outline-offset: 3px; }
.legal-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .74rem; }
.legal-table th,
.legal-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: #edf4f2; color: #2f504c; font: 600 .63rem/1.4 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.legal-table td { color: #53635f; line-height: 1.55; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-region-grid { display: grid; gap: 10px; margin: 20px 0; }
.legal-region-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfc; }
.legal-region-grid strong { display: block; margin-bottom: 5px; font-size: .8rem; }
.legal-region-grid p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.62; }
.legal-blocker { margin-bottom: 24px; padding: 18px; border: 1px solid #e3ca91; border-radius: 15px; background: #fff9eb; }
.legal-blocker > strong { display: block; color: #684d17; font-size: .83rem; }
.legal-blocker dl { display: grid; gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid #eadbb7; border-radius: 11px; background: #eadbb7; }
.legal-blocker dl > div { display: grid; gap: 4px; padding: 12px; background: #fffdf7; }
.legal-blocker dt { color: #3f4e4a; font-size: .73rem; font-weight: 700; }
.legal-blocker dd { margin: 0; color: #7a6947; font-size: .71rem; line-height: 1.5; }

@media (min-width: 680px) {
  .legal-status { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .legal-summary-grid,
  .legal-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-blocker dl > div { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 18px; }
}

@media (min-width: 980px) {
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .legal-sidebar { position: sticky; top: calc(var(--header) + 18px); }
  .legal-sidebar nav { display: grid; gap: 2px; overflow: visible; }
  .legal-sidebar a { padding: 9px 10px; border-color: transparent; border-radius: 9px; }
  .legal-sidebar a:hover,
  .legal-sidebar a:focus-visible { border-color: #cae0db; background: #edf6f3; }
  .legal-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legal-region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legal-card,
  .legal-summary,
  .legal-status { padding: 30px; }
}

@media print {
  body[data-page="policies"] .announcement-bar,
  body[data-page="policies"] .site-header,
  body[data-page="policies"] .legal-sidebar,
  body[data-page="policies"] .site-footer,
  body[data-page="policies"] .newsletter,
  body[data-page="policies"] .back-to-top { display: none !important; }
  .legal-content-section { background: #fff; }
  .legal-layout { display: block; }
  .legal-main { display: block; }
  .legal-main > section { margin-bottom: 18px; break-inside: avoid; box-shadow: none; }
}

.newsletter-form { flex-wrap: wrap; border-radius: 18px; }
.newsletter-form small {
  flex: 0 0 100%;
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.35;
}
.account-preview-note {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.45;
}
.account-preview-note strong { color: var(--ink); font-family: "JetBrains Mono", monospace; font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; }

/* Interactive native-range country atlas */
.country-map-section {
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 86% 10%, rgba(49, 150, 137, .11), transparent 28%),
    linear-gradient(180deg, #f7faf9, #eef5f3);
}
.country-map-intro { align-items: end; }
.country-map-intro p { max-width: 740px; margin: 10px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.68; }
.country-map-picker { flex: 0 0 min(310px, 100%); display: grid; gap: 7px; }
.country-map-picker > span { color: #52706b; font: 600 .62rem/1.25 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.country-map-picker .smooth-select { width: 100%; }
.country-map-card {
  overflow: hidden;
  border: 1px solid #c8dad7;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 65px rgba(24, 68, 62, .09);
}
.country-map-frame { position: relative; overflow: hidden; border-bottom: 1px solid #cfdfdc; background: #dceced; }
.country-map-loading { min-height: 310px; display: grid; place-items: center; padding: 24px; color: #617672; font-size: .78rem; text-align: center; }
.country-world-map { width: 100%; height: auto; display: block; aspect-ratio: 72 / 34; background: #dceced; }
.country-map-ocean { fill: #dceced; }
.country-map-unit { vector-effect: non-scaling-stroke; transition: fill .16s ease, stroke .16s ease, opacity .16s ease; }
.country-map-unit.is-context { fill: #eef3f1; stroke: #c5d3d0; stroke-width: .55; }
.country-map-unit.is-active { fill: #87c8bc; stroke: #f7fbfa; stroke-width: .62; cursor: pointer; }
.country-map-link:hover .country-map-unit.is-active,
.country-map-link:focus .country-map-unit.is-active { fill: #177e71; stroke: #0e5d54; stroke-width: 1.15; }
.country-map-link:focus { outline: none; }
.country-map-link:focus-visible .country-map-unit.is-active,
.country-map-link:focus-visible .country-map-point { stroke: #0b3631; stroke-width: 2.4; }
.country-map-point-hit { fill: transparent; stroke: transparent; pointer-events: all; cursor: pointer; }
.country-map-point { fill: #e19847; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; transition: fill .16s ease, r .16s ease; }
.country-map-point-link:hover .country-map-point,
.country-map-point-link:focus .country-map-point { fill: #a85817; r: 3.4; }
.country-map-footer { display: grid; gap: 16px; padding: 18px 20px; }
.country-map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: #536965; font-size: .7rem; }
.country-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.country-map-legend i { width: 20px; height: 13px; border: 1px solid #b5c9c5; border-radius: 4px; background: #eef3f1; }
.country-map-legend i.is-country { border-color: #58aa9c; background: #87c8bc; }
.country-map-legend i.is-point { width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #e19847; box-shadow: 0 0 0 1px #c77a31; }
.country-map-status { min-width: 0; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #d2e2df; border-radius: 13px; background: #f5faf8; }
.country-map-status strong { color: #173e38; font-size: .8rem; }
.country-map-status span { color: #5b706c; font-size: .7rem; line-height: 1.45; }
.country-map-note { margin: 0; padding: 0 20px 20px; color: #60716e; font-size: .7rem; line-height: 1.6; }
.country-map-note strong { color: #284a45; }
.country-featured-section { padding-top: 46px; }
.country-filter-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #acd8d0;
  border-radius: 13px;
  background: #eaf7f3;
}
.country-filter-context > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.country-filter-context strong { color: #153f38; font-size: .82rem; }
.country-filter-context span:last-child { color: #516b66; font-size: .72rem; }
.country-filter-context .text-link { flex: 0 0 auto; }

@media (min-width: 780px) {
  .country-map-footer { grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); align-items: center; }
}

@media (max-width: 679px) {
  .country-map-intro { align-items: stretch; }
  .country-map-picker { width: 100%; }
  .country-map-card { border-radius: 18px; }
  .country-world-map { min-height: 250px; object-fit: contain; }
  .country-map-footer { padding: 15px; }
  .country-map-legend { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .country-map-note { padding: 0 15px 16px; }
  .country-filter-context { align-items: flex-start; }
}

/* Homepage audit remediation — accessible controls, clear language and equal option sizing */
.skip-link {
  position: fixed;
  z-index: 500;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #75c9bd; outline-offset: 2px; }
.visual-caption .visual-title {
  display: block;
  margin: 5px 0 4px;
  font: 600 1.35rem/1.08 "Avenir Next", Avenir, Inter, sans-serif;
  letter-spacing: -.035em;
}
.search-guidance { padding: 22px 18px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.search-interpretation {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #add8d0;
  border-radius: 13px;
  background: #eaf7f3;
  color: #3f625c;
}
.search-interpretation[hidden] { display: none; }
.search-interpretation strong { color: #153f38; font-size: .82rem; }
.search-interpretation span { font-size: .76rem; line-height: 1.5; }
.search-interpretation small { margin-top: 4px; color: #536d68; font-size: .73rem; line-height: 1.55; }

body[data-page="home"] .announcement-bar,
body[data-page="home"] .eyebrow,
body[data-page="home"] .visual-caption .mono,
body[data-page="home"] .glass-pill,
body[data-page="home"] .journey-card .num,
body[data-page="home"] .card-badge,
body[data-page="home"] .card-kicker,
body[data-page="home"] .spec-row small,
body[data-page="home"] .spec-row strong,
body[data-page="home"] .quote-card cite,
body[data-page="home"] .price small,
body[data-page="home"] .footer-col h3,
body[data-page="home"] .footer-bottom { font-size: .75rem; }
body[data-page="home"] .nav-search-label small,
body[data-page="home"] .key-hint { font-size: .7rem; }
body[data-page="home"] .footer-panel a { font-size: .82rem; }

body[data-page="home"] .hero-tags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
body[data-page="home"] .hero-tags > * {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}
body[data-page="home"] .hero-tag-label { background: var(--aqua-soft); color: #275d57; }
body[data-page="home"] .book-home-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body[data-page="home"] .book-home-points span {
  height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  font-size: .75rem;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 679px) {
  body[data-page="home"] .section { padding: 46px 0; }
  body[data-page="home"] .hero-copy { min-height: 0; padding: 34px 22px; }
  body[data-page="home"] .hero-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .hero-tag-app {
    width: calc((100% - 8px) / 2);
    grid-column: 1 / -1;
    justify-self: center;
  }
  body[data-page="home"] .book-home-points { grid-template-columns: 1fr; }

  .mobile-centred-action {
    width: fit-content;
    max-width: 100%;
    display: flex;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center;
  }

  .drawer-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    padding: max(8px, env(safe-area-inset-top)) 16px max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    overflow-y: auto;
  }
  .drawer-head { min-height: 42px; margin-bottom: 4px; }
  .drawer-nav { grid-template-columns: 1fr; gap: 0; }
  .drawer-nav > a {
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
  }
  .drawer-nav > a.active { color: var(--aqua); }
  .drawer-promo { min-height: 0; display: block; margin-top: 8px; padding-top: 0; }
  .drawer-promo-card { width: 100%; gap: 8px; padding: 8px; }

  .footer-links { grid-template-columns: 1fr; gap: 0; border-top: 1px solid #2e3431; }
  .footer-col { border-bottom: 1px solid #2e3431; }
  .footer-col h3 { margin: 0; }
  .footer-toggle {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #c8cecb;
    cursor: pointer;
  }
  .footer-toggle::after { content: "+"; color: #8fd0c5; font: 500 1.15rem/1 Inter, sans-serif; }
  .footer-toggle[aria-expanded="true"]::after { content: "−"; }
  .footer-toggle:focus-visible { outline: 2px solid #75c9bd; outline-offset: 3px; }
  .footer-panel { padding: 0 0 14px; }
  .footer-panel[hidden] { display: none; }
}

@media (max-width: 1159px) {
  body[data-page="home"] .journey-grid,
  body[data-page="home"] .card-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(42vw, 360px);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #9dc3bc transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 3px 2px 14px;
  }
  body[data-page="home"] .journey-grid > *,
  body[data-page="home"] .card-grid > * {
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body[data-page="discover"] [data-species-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  body[data-page="home"] .journey-grid,
  body[data-page="home"] .card-grid { grid-auto-columns: min(82vw, 320px); }

  .subnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-block: 12px;
  }
  .subnav a { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; white-space: normal; }

  body[data-page="discover"] [data-species-grid] { gap: 10px; }
  body[data-page="discover"] [data-species-grid] .card-image { aspect-ratio: 1; }
  body[data-page="discover"] [data-species-grid] .card-body { padding: 11px; }
  body[data-page="discover"] [data-species-grid] .card-badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 50px);
    overflow: hidden;
    padding: 5px 7px;
    font-size: .5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-page="discover"] [data-species-grid] .save-btn { top: 6px; right: 6px; width: 34px; height: 34px; }
  body[data-page="discover"] [data-species-grid] .card-kicker { font-size: .52rem; line-height: 1.35; overflow-wrap: anywhere; }
  body[data-page="discover"] [data-species-grid] h3 { margin-top: 7px; font-size: .88rem; line-height: 1.22; overflow-wrap: anywhere; }
  body[data-page="discover"] [data-species-grid] .latin { display: block; font-size: .64rem; line-height: 1.3; overflow-wrap: anywhere; }
  body[data-page="discover"] [data-species-grid] .spec-row { grid-template-columns: 1fr; gap: 6px; margin-top: 11px; padding-top: 10px; }
  body[data-page="discover"] [data-species-grid] .spec-row > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
  body[data-page="discover"] [data-species-grid] .spec-row small { flex: 0 0 auto; font-size: .49rem; }
  body[data-page="discover"] [data-species-grid] .spec-row strong {
    min-height: 0;
    max-height: none;
    display: block;
    font-size: .56rem;
    line-height: 1.25;
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: right;
    -webkit-line-clamp: unset;
  }
  body[data-page="discover"] [data-species-grid] .card-action-row { justify-content: stretch; margin-top: 10px; }
  body[data-page="discover"] [data-species-grid] .card-tank-action { width: 100%; min-height: 34px; justify-content: center; gap: 4px; padding: 6px; font-size: .56rem; }
  body[data-page="discover"] [data-species-grid] .card-tank-action svg { width: 12px; height: 12px; flex-basis: 12px; }
}

/* Seven primary destinations: keep search and account controls clear. */
@media (min-width:1160px) and (max-width:1350px) {
  .nav-shell { gap:10px; } .desktop-nav { margin-left:0; } .desktop-nav a { padding-inline:10px; }
  .nav-search { max-width:180px; } .nav-search-label small, .nav-search .key-hint { display:none; }
}

/* Owner correction pass (6 Oct 2026): a profile with no verified picture shows an honest note, never stand-in artwork. */
.card-image.card-noimage { display: grid; place-items: center; background: #f1f6f4; border: 1px dashed #b9cdc7; }
.card-image.card-noimage > a { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; text-decoration: none; }
.card-noimage-note { display: grid; gap: 4px; text-align: center; padding: 18px; color: #315348; max-width: 240px; }
.card-noimage-note strong { font-size: 15px; color: #0b2027; }
.card-noimage-note small { font-size: 12px; line-height: 1.4; color: #5a7772; }

/* Owner correction, 6 October: compact, expandable footer at every size. */
.site-footer .footer-toggle { pointer-events:auto; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; color:#c8cecb; }
.site-footer .footer-toggle::after { content:"+"; color:#8fd0c5; font:500 1.1rem/1 Inter,sans-serif; }
.site-footer .footer-toggle[aria-expanded="true"]::after { content:"−"; }
.site-footer .footer-toggle:focus-visible { outline:2px solid #75c9bd; outline-offset:3px; }
.site-footer .footer-col h3 { margin:0; }
.site-footer .footer-panel[hidden] { display:none !important; }
.site-footer .footer-panel { padding:0 0 10px; }
.site-footer .footer-rights { color:#b6c7c8; font-size:.75rem; line-height:1.65; }
.site-footer .footer-rights a { color:#d0ece8; text-decoration:underline; text-underline-offset:3px; }
@media(min-width:680px) {
 .site-footer { padding:28px 0 22px; }
 .site-footer .footer-grid { gap:24px; align-items:start; }
 .site-footer .footer-links { gap:6px 24px; }
 .site-footer .footer-brand p { margin:10px 0; line-height:1.5; }
 .site-footer .footer-bottom { margin-top:20px; padding-top:16px; gap:10px 24px; align-items:flex-start; }
 .site-footer .footer-toggle { font-size:.7rem; }
}

#content-rights { scroll-margin-top:110px; }

/* Verified fish artwork follows the same bounded containment as existing library assets. */
.card-image > a > img[src*="/verified-fish/"],
.listing-photo > img[src*="/verified-fish/"] {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 24px) !important;
  max-height: calc(100% - 24px) !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  place-self: center;
  transform: none !important;
  padding: 0 !important;
}
.main-photo img[src*="/verified-fish/"] {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 32px) !important;
  max-height: calc(100% - 32px) !important;
  padding: 0 !important;
}
.thumb img[src*="/verified-fish/"] {
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 8px) !important;
  max-height: calc(100% - 8px) !important;
  place-self: center;
}

/* A definite inset box prevents the grid item's intrinsic square height overflowing its card. */
.card-image > a > img[src*="/verified-fish/"] {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px) !important;
  min-width: 0;
  min-height: 0;
}
