/* Regenesis Kauaʻi — colours taken from the logo.
   The page flows like the logo: leafy canopy at the top, cream and sand through the middle, soil at the footer. */
:root {
  --canopy: #e6ece0;      /* leaf mist, top of each page */
  --cream: #faf7f0;       /* main page ground */
  --parchment: #f4f0e7;   /* gentle alternate band */
  --sand: #efe7da;        /* lower bands, warming toward the soil */
  --soil: #3d2d1e;        /* footer, the logo's topsoil */
  --clay: #8a5236;        /* the logo's stone rust */
  --fern: #2e4a30;        /* the logo's "Regenesis" green */
  --fern-dark: #22382a;
  --sage: #7f8e6f;        /* the logo's "Kauaʻi" sage */
  --sage-soft: #c5d0b8;
  --text: #1f2a22;
  --muted: #56645a;
  --card-bg: #fffdf9;
  --border: #e2dccf;
  --warn-bg: #fbf0e6;
  --warn-border: #c99a72;

  /* older names kept so any inline styles still work */
  --bg: var(--cream);
  --accent: var(--fern);
  --accent-dark: var(--fern-dark);
  --accent-light: var(--canopy);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-wrap: break-word;
}
a { color: var(--fern); }
a:hover { color: var(--clay); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header & navigation ---------- */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
header .brand { display: block; line-height: 0; }
header .brand img { height: 56px; width: auto; display: block; }

/* ---------- Page structure ---------- */
.page-header { padding: 3rem 0 1.75rem; background: linear-gradient(180deg, var(--canopy) 0%, var(--cream) 100%); }
.page-header h1 { font-size: 2.2rem; line-height: 1.2; color: var(--fern); margin-bottom: 0.6rem; text-wrap: balance; }
.page-header p { color: var(--muted); max-width: 720px; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 2rem 0 0.8rem; color: var(--fern); text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.2rem 0 0.4rem; color: var(--text); }
p + p { margin-top: 0.6rem; }
ul, ol { margin-left: 1.4rem; color: var(--muted); }
li { margin-bottom: 0.45rem; }
li strong { color: var(--text); }
section { padding: 2rem 0; }

.card, .checklist, .worksheet, .principle, .plant {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.card p, .principle { color: var(--muted); }
.principle strong { color: var(--fern); }
.card h3:first-child, .plant h3:first-child, .checklist h3:first-child { margin-top: 0; }
.card.warning { background: var(--warn-bg); border-color: var(--warn-border); }
.card.warning p { color: var(--text); }

/* ---------- Plant database ---------- */
.plant h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.plant .sci { font-style: italic; color: var(--sage); font-size: 0.9rem; }
.plant p { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.plant .caution { color: var(--clay); font-weight: 500; font-size: 0.9em; background: none; border: 0; padding: 0; }
.filters { margin: 1.5rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filters input {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  font-size: 16px; /* 16px stops iPhone from zooming in on focus */
  background: var(--card-bg);
  color: var(--text);
}
.filters button {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.5rem 0.95rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.filters button:hover { border-color: var(--sage); }
.filters button.active { background: var(--fern); color: #ffffff; border-color: var(--fern); }
#no-results { display: none; color: var(--muted); padding: 1rem 0; }

/* ---------- Checklists & worksheets ---------- */
.checklist label { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; color: var(--muted); cursor: pointer; }
.checklist input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--fern); }
.checklist p, .worksheet p { color: var(--muted); }
.checklist strong, .worksheet strong { color: var(--text); }

/* ---------- Footer ---------- */
footer {
  background: var(--soil);
  color: #e3d9cb;
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 6px solid var(--clay);
}
footer a { color: var(--sage-soft); text-decoration: none; display: inline-block; padding: 0.3rem 0.5rem; }
footer a:hover { color: #ffffff; }

/* ---------- Home page ---------- */
.home section { padding: 2.4rem 0; }
.home h2 { margin-top: 0; }
.home footer { margin-top: 0; }
.band-canopy { background: linear-gradient(180deg, var(--canopy) 0%, var(--cream) 100%); }
.band-cream { background: var(--cream); }
.band-parchment { background: var(--parchment); }
.band-sand { background: linear-gradient(180deg, var(--parchment) 0%, var(--sand) 100%); }
.band-sand-solid { background: var(--sand); }
.hero { padding: 3rem 0 3.25rem; text-align: center; }
.hero-mark { width: 150px; height: auto; display: block; margin: 0 auto 1.4rem; max-width: 100%; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 1rem; color: var(--fern); text-wrap: balance; font-weight: 600; }
.hero p.sub { font-size: 1.25rem; color: var(--muted); max-width: 680px; margin: 0 auto 1.2rem; }
.hero .supporting { font-size: 1rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.lede { color: var(--muted); max-width: 680px; margin-bottom: 1.2rem; }
.more { margin-top: 1.2rem; }
.eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin-bottom: 0.35rem; }
.buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.buttons.left { justify-content: flex-start; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--fern);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}
.btn:hover { background: var(--fern-dark); color: #ffffff; }
.btn.secondary { background: transparent; color: var(--fern); border: 2px solid var(--fern); }
.btn.secondary:hover { background: var(--canopy); color: var(--fern); }
.grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-3 .card, .grid-4 .card { margin-bottom: 0; }
.home .card h3 { margin-top: 0; }

/* Seven layers: label colour moves from canopy green down to root clay */
.layers { display: grid; border-top: 1px solid var(--border); max-width: 680px; }
.layer { display: flex; gap: 1rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.layer strong { min-width: 120px; }
.layer:nth-child(1) strong { color: #2e4a30; }
.layer:nth-child(2) strong { color: #3f5a3c; }
.layer:nth-child(3) strong { color: #56683f; }
.layer:nth-child(4) strong { color: #6a6c3f; }
.layer:nth-child(5) strong { color: #7a603b; }
.layer:nth-child(6) strong { color: #845838; }
.layer:nth-child(7) strong { color: var(--clay); }

/* Plants and animals side by side */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.split > * { min-width: 0; }
.split .card { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0; }
.split .card .buttons { margin-top: auto; padding-top: 0.9rem; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }

  .page-header { padding: 2rem 0 1.25rem; }
  .page-header h1 { font-size: 1.75rem; }
  .hero { padding: 2rem 0 2.25rem; }
  .hero-mark { width: 110px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.sub { font-size: 1.08rem; }
  h2 { font-size: 1.35rem; margin-top: 1.6rem; }
  h3 { font-size: 1.1rem; }
  section, .home section { padding: 1.6rem 0; }
  .card, .checklist, .worksheet, .principle, .plant { padding: 1rem 1.05rem; }
  ul, ol { margin-left: 1.15rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .buttons .btn { flex: 1 1 100%; text-align: center; }
  .layer { flex-direction: column; gap: 0; }
  .filters input { max-width: none; flex-basis: 100%; }
  footer { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 110px; }

/* ---------- Plant cards with photo slot and rainfall zones ---------- */
.plant { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
.plant[hidden] { display: none; }
.plant-photo {
  width: 96px; aspect-ratio: 1; max-width: 100%; border-radius: 8px; overflow: hidden;
  background: var(--canopy) no-repeat center / 44% auto
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8e6f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5C4.5 10.5 10.5 4.5 19.5 4.5c0 9-6 15-15 15z'/%3E%3Cpath d='M4.5 19.5 13 11'/%3E%3C/svg%3E");
}
.plant[data-cat~="staple"] .plant-photo { background-color: #efe5d6; }
.plant-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-body { min-width: 0; }
.zones { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.zone { font-size: 0.75rem; letter-spacing: 0.02em; padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid transparent; }
.zone-wet { background: #e3eeea; color: #2f5a4c; border-color: #c9ddd5; }
.zone-moderate { background: #ecefe4; color: #4c5a3e; border-color: #d6dcc7; }
.zone-dry { background: #f4e7da; color: #7a4a30; border-color: #e6cfb8; }

.filters { flex-direction: column; align-items: stretch; gap: 0.7rem; }
.filters input { max-width: 420px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.filter-label { font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--clay); font-weight: 600; min-width: 4.8rem; }
.filters .zone-btn-wet.active { background: #2f5a4c; border-color: #2f5a4c; }
.filters .zone-btn-moderate.active { background: #56683f; border-color: #56683f; }
.filters .zone-btn-dry.active { background: var(--clay); border-color: var(--clay); }
.zone-help { font-size: 0.88rem; color: var(--muted); max-width: 760px; }
.result-count { font-size: 0.85rem; color: var(--sage); font-variant-numeric: tabular-nums; margin-top: -0.2rem; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: #ffffff;
  border: 1px solid var(--border); border-radius: 6px; padding: 0.65rem 0.8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[type="submit"] { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }
.form-status { display: none; padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.95rem; }
.form-status.ok { display: block; background: var(--canopy); color: var(--fern); border: 1px solid #cdd9c4; }
.form-status.err { display: block; background: var(--warn-bg); color: var(--clay); border: 1px solid var(--warn-border); }
.contact-aside h3 { margin-top: 0; }
.contact-aside ul { margin-top: 0.4rem; }

@media (max-width: 700px) {
  .plant { grid-template-columns: 72px minmax(0, 1fr); gap: 0.8rem; }
  .plant-photo { width: 72px; }
  .filter-label { min-width: 100%; }
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
.filters input, .filters input[type="search"] { flex: none; min-width: 0; width: 100%; }

/* ---------- How-To guides ---------- */
.howto-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.toc-card { display: flex; flex-direction: column; gap: 0.2rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.toc-card:hover { border-color: var(--sage); background: #ffffff; color: var(--text); }
.toc-card strong { color: var(--fern); font-size: 1.05rem; }
.toc-card span:last-child { color: var(--muted); font-size: 0.9rem; }
.howto { padding: 2rem 0 0.5rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.howto > h2 { margin-top: 0.1rem; }
.howto > p { max-width: 720px; }
.howto-meta { list-style: none; margin: 1rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.howto-meta li { margin: 0; background: var(--canopy); color: var(--fern); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.88rem; }
.howto-meta strong { color: var(--fern); }
ol.steps { list-style: none; margin: 0.6rem 0 1rem; padding: 0; counter-reset: step; display: grid; gap: 0.75rem; max-width: 760px; }
ol.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0; color: var(--muted); }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--fern); color: #ffffff; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
ol.steps li strong { color: var(--text); }
.callout { background: var(--parchment); border: 1px solid var(--border); border-left: 4px solid var(--sage); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; max-width: 820px; }
.callout h3 { margin-top: 0; font-size: 1.05rem; color: var(--fern); }
.callout p { color: var(--text); }
.callout.warn { background: var(--warn-bg); border-left-color: var(--clay); }
.callout.warn h3 { color: var(--clay); }
.table-wrap { overflow-x: auto; margin: 0.6rem 0 1rem; }
.howto-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; min-width: 560px; }
.howto-table th { text-align: left; background: var(--canopy); color: var(--fern); padding: 0.6rem 0.8rem; font-weight: 600; }
.howto-table td { padding: 0.6rem 0.8rem; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.howto-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ---------- Glossary ---------- */
.glossary-filters { margin-top: 0; }
.glossary-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.glossary-jump a { background: var(--canopy); color: var(--fern); text-decoration: none; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.9rem; }
.glossary-jump a:hover { background: #d9e3d1; color: var(--fern); }
.glossary-section[hidden], .term[hidden] { display: none; }
dl.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem 1.5rem; margin-top: 1rem; }
.term { min-width: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.term dt { font-weight: 600; color: var(--fern); font-size: 1.05rem; }
.term dd { color: var(--muted); margin-top: 0.15rem; }
#hawaiian .term dt { font-size: 1.15rem; }

@media (max-width: 700px) {
  ol.steps li { padding-left: 2.3rem; }
  .howto-table td:first-child { white-space: normal; }
}

/* ---------- Email signup ---------- */
.signup-form { display: grid; gap: 0.7rem; max-width: 460px; }
.signup-form .field { display: grid; gap: 0.3rem; }
.signup-form label { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.signup-form .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.signup-form input { font: inherit; font-size: 16px; color: var(--text); background: #ffffff; border: 1px solid var(--border); border-radius: 6px; padding: 0.65rem 0.8rem; width: 100%; }
.signup-form input:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.signup-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.signup-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.signup-status { display: none; font-size: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 6px; }
.signup-status.err { display: block; background: var(--warn-bg); color: var(--clay); border: 1px solid var(--warn-border); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.guide-cover img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(61, 45, 30, 0.22); transform: rotate(-2deg); }
.guide-copy h1 { font-size: 2.3rem; line-height: 1.15; color: var(--fern); margin: 0.2rem 0 0.7rem; text-wrap: balance; }
.guide-copy .sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.3rem; }
.guide-copy .lede { margin-bottom: 1.1rem; }
.guide-hero { padding: 3rem 0; }
.home-guide { padding: 2.6rem 0; }
.hero-guide { margin-top: 1.1rem; font-size: 0.95rem; }
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.previews img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(61, 45, 30, 0.12); }
.signup-band { background: var(--sand); border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 3rem; }
.signup-band + footer { margin-top: 0; }
.band-inner { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: center; }
.band-inner img { width: 110px; height: auto; border-radius: 4px; box-shadow: 0 6px 16px rgba(61, 45, 30, 0.2); transform: rotate(-3deg); }
.band-text h2 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.band-text p { color: var(--muted); font-size: 0.95rem; }
.signup-band .signup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: none; }
.signup-band .signup-form .signup-note, .signup-band .signup-form .signup-status { grid-column: 1 / -1; }
.thanks { text-align: center; padding: 3rem 20px; }
.thanks-mark { width: 110px; height: auto; margin: 0 auto 1rem; display: block; }
.thanks h1 { color: var(--fern); font-size: 2.2rem; }
.thanks .sub { color: var(--muted); font-size: 1.15rem; margin: 0.4rem 0 1.6rem; }
.thanks-steps { text-align: left; max-width: 560px; margin: 0 auto 2.2rem; display: grid; gap: 0.6rem; color: var(--muted); }
.thanks h2 { margin-bottom: 1rem; }
.thanks .grid-3 { text-align: left; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--sage); color: inherit; }
.card-link h3 { color: var(--fern); }

@media (max-width: 700px) {
  .guide-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .guide-cover img { max-width: 220px; }
  .guide-copy h1 { font-size: 1.8rem; }
  .previews { grid-template-columns: 1fr 1fr; }
  .previews img:nth-child(3) { display: none; }
  .band-inner { grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; }
  .band-inner img { width: 70px; }
  .band-inner .signup-form { grid-column: 1 / -1; }
  .signup-band .signup-form { grid-template-columns: 1fr; }
  .signup-form button { justify-self: stretch; }
}
.band-inner { grid-template-columns: 110px minmax(0, 0.85fr) minmax(0, 1.25fr); }
.home-guide .guide-cover img { max-width: 250px; }
@media (max-width: 700px) { .band-inner { grid-template-columns: 70px minmax(0, 1fr); } }

/* ---------- Water page: diagrams and tool table ---------- */
.diagram { margin: 1.5rem 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.diagram .svg-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 540px; }
.diagram figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; max-width: 720px; }
.diagram .lbl { font: 17px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; fill: var(--text); }
.diagram .lbl, .diagram .lbl-s { paint-order: stroke; stroke: #fffdf9; stroke-width: 4px; stroke-linejoin: round; }
.diagram .lbl-s { font: 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; fill: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: 8px; }
.tool-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card-bg); font-size: 0.95rem; }
.tool-table th, .tool-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.tool-table thead th { background: var(--canopy); color: var(--fern); font-size: 0.9rem; }
.tool-table tbody tr:last-child td { border-bottom: 0; }
.tool-table td:first-child { font-weight: 600; color: var(--fern); white-space: nowrap; }
.page-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.page-jump a { background: var(--canopy); color: var(--fern); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; text-decoration: none; }
.page-jump a:hover { background: var(--sage-soft); }
@media (max-width: 600px) { .diagram { padding: 0.6rem; } }

/* ---------- Plant detail pages ---------- */
.crumbs { font-size: 0.9rem; margin-bottom: 0.4rem; }
.crumbs a { color: var(--fern); }
.plant-sci { font-size: 1rem; margin-bottom: 0.5rem; }
.plant-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2.5rem; align-items: start; }
.plant-main { grid-column: 1; grid-row: 1; min-width: 0; }
.plant-main > h2 { margin-top: 2rem; }
.plant-main > h2:first-of-type { margin-top: 0.5rem; }
.plant-main p, .plant-main li { max-width: 720px; }
.plant-glance { grid-column: 2; grid-row: 1; position: sticky; top: 140px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.plant-glance img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.glance-body { padding: 1rem 1.2rem 1.2rem; }
.glance-body h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.plant-glance dl { margin-top: 0.8rem; display: grid; gap: 0.55rem; }
.plant-glance dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clay); font-weight: 600; }
.plant-glance dd { margin: 0.1rem 0 0; font-size: 0.95rem; color: var(--text); }
.plant-main .caution { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px; padding: 0.9rem 1.1rem; }
.plant-note { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
section.alt { background: var(--parchment); }
.plant .more { display: inline-block; margin-top: 0.35rem; font-size: 0.92rem; font-weight: 600; color: var(--fern); }
.plant h3 a { color: inherit; text-decoration: none; }
.plant h3 a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .plant-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .plant-glance, .plant-main { grid-column: 1; grid-row: auto; }
  .plant-glance { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); }
  .plant-glance img { height: 100%; }
}
@media (max-width: 480px) {
  .plant-glance { grid-template-columns: 1fr; }
  .plant-glance img { max-height: 260px; }
}

/* ---------- Site menu (grouped, with dropdowns) ---------- */
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.site-nav li { margin: 0; color: inherit; }
.site-nav .menu > li { position: relative; }
.site-nav .top {
  display: inline-flex; align-items: center; gap: 0.4em;
  font: inherit; font-size: 0.92rem; line-height: 1.3; color: var(--fern);
  background: none; border: 0; border-radius: 6px; padding: 0.4rem 0.5rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.site-nav .has-sub > .top::after {
  content: ""; width: 0.38em; height: 0.38em; margin-top: -0.2em;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s;
}
.site-nav .has-sub.open > .top::after { transform: rotate(-135deg); margin-top: 0.15em; }
.site-nav .top:hover, .site-nav .has-sub.open > .top { background: var(--canopy); color: var(--fern); }
.site-nav .top[aria-current="page"], .site-nav .is-here > .top { background: var(--canopy); font-weight: 600; }
.site-nav .sub {
  display: none; list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(61, 45, 30, 0.14);
}
.site-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.site-nav .sub a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.site-nav .sub a:hover { background: var(--canopy); color: var(--fern); }
.site-nav .sub a[aria-current="page"] { color: var(--fern); font-weight: 600; background: var(--canopy); }
.site-nav .has-sub.open > .sub { display: block; }
@media (hover: hover) and (min-width: 801px) {
  .site-nav .has-sub:hover > .sub { display: block; }
  .site-nav .has-sub:hover > .top { background: var(--canopy); }
}

/* Skip link and menu button (button shows on phones only) */
.skip-link { position: absolute; left: 0.75rem; top: -3rem; z-index: 100; background: var(--fern); color: #fff; padding: 0.6rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0.6rem; color: #fff; }
.nav-toggle { display: none; }
.site-nav .mobile-only { display: none; }
.site-nav .has-sub > .top { font-weight: inherit; }

/* Phones and small tablets: one-row header with a Menu button that opens a full-screen list */
@media (max-width: 800px) {
  header { padding: 0.5rem 0; }
  header .container { flex-wrap: nowrap; }
  header .brand img { height: 44px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
    font: inherit; font-size: 1rem; font-weight: 600; color: var(--fern);
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 0.55rem 0.85rem; min-height: 44px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.15s, background 0.15s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

  /* Without JavaScript the menu stays visible as a simple list */
  .js .site-nav { display: none; }
  .js header.nav-open .site-nav {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h, 61px);
    background: var(--cream); overflow-y: auto; overscroll-behavior: contain;
    padding: 0.75rem 16px 2.5rem; border-top: 1px solid var(--border); z-index: 50;
  }
  html.menu-locked, html.menu-locked body { overflow: hidden; }
  html:not(.js) header { position: static; }
  html:not(.js) header .container { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-basis: 100%; }
  html:not(.js) .site-nav .sub { display: block; }
  .site-nav .mobile-only { display: block; }
  .site-nav .menu { display: block; max-width: 560px; margin: 0 auto; }
  .site-nav .menu > li { position: static; border-bottom: 1px solid var(--border); }
  .site-nav .top { display: flex; width: 100%; justify-content: space-between; padding: 0.95rem 0.5rem; font-size: 1.1rem; min-height: 48px; border-radius: 6px; white-space: normal; text-align: left; }
  .site-nav .has-sub > .top::after { width: 0.5em; height: 0.5em; }
  .site-nav .sub { position: static; display: none; max-height: none; overflow: visible; min-width: 0; padding: 0 0 0.6rem 0.6rem; border: 0; box-shadow: none; background: transparent; }
  .site-nav .sub::before { display: none; }
  .site-nav .sub a { padding: 0.75rem 0.75rem; font-size: 1.02rem; white-space: normal; min-height: 44px; }
  [id] { scroll-margin-top: 80px; }
}

/* ---------- Ebooks ---------- */
@media (min-width: 801px) { .site-nav .sub { max-height: min(70vh, 28rem); overflow-y: auto; } }
.ebook-jump { margin: 0 0 0.5rem; color: var(--muted); }
.ebook-jump a { font-weight: 600; }
h2.ebook-group { margin: 2.2rem 0 1rem; }
.ebook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.ebook-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.ebook-card a.cover-link { display: block; background: var(--canopy); }
.ebook-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.ebook-card .ph { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 1.1rem; background: linear-gradient(160deg, var(--canopy) 0%, var(--sand) 100%); color: var(--fern); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.ebook-card .body { padding: 1rem 1.05rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.ebook-card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; line-height: 1.3; }
.ebook-card h3 a { color: var(--fern); text-decoration: none; }
.ebook-card h3 a:hover { text-decoration: underline; }
.ebook-card p { margin: 0 0 0.8rem; font-size: 0.92rem; }
.ebook-card .card-cta { margin-top: auto; font-size: 0.9rem; font-weight: 600; }
.ebook-hero { padding: 2.2rem 0 2rem; }
.ebook-hero .guide-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ebook-hero .guide-cover img { transform: none; max-width: 280px; }
.ebook-hero .ph-lg { width: 100%; max-width: 280px; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 1.2rem; border-radius: 6px; background: linear-gradient(160deg, var(--canopy) 0%, var(--sand) 100%); color: var(--fern); font-weight: 600; font-size: 1.3rem; line-height: 1.25; box-shadow: 0 10px 30px rgba(61, 45, 30, 0.22); }
.pwyw-note { margin-top: 0.85rem; color: var(--muted); font-size: 0.92rem; max-width: 38rem; }
.pwyw-note a { font-weight: 600; }
.ebook-toc { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.ebook-toc li { break-inside: avoid; padding: 0.28rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.ebook-toc .pg { display: inline-block; min-width: 1.8rem; color: var(--clay); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 0.45rem; }
@media (max-width: 800px) {
  .ebook-hero .guide-grid { grid-template-columns: 1fr; }
  .ebook-hero .guide-cover { max-width: 220px; }
  .ebook-toc { columns: 1; }
}

/* ---------- Home: linked cards ---------- */
a.card-link { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.card-link:hover { border-color: var(--sage); box-shadow: 0 6px 18px rgba(61, 45, 30, 0.10); }
a.card-link h3 { color: var(--fern); }
a.card-link .go { display: inline-block; margin-top: 0.4rem; font-weight: 600; color: var(--fern); font-size: 0.92rem; }
a.card-link:hover .go { text-decoration: underline; }

/* ---------- Principles: card grid ---------- */
.pc-credit { max-width: 760px; background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--sage); border-radius: 8px; padding: 0.9rem 1.1rem; margin: 0 0 1.75rem; color: var(--text); }
.pc-credit a { font-weight: 600; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.principle-card { display: flex; flex-direction: column; margin: 0; }
.principle-card .pc-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.pc-icon { flex: none; width: 44px; height: 44px; color: var(--fern); background: var(--canopy); border-radius: 50%; padding: 7px; }
.pc-icon .pc-accent { stroke: var(--clay); }
.principle-card h2 { font-size: 1.1rem; line-height: 1.3; margin: 0; color: var(--fern); }
.pc-num { color: var(--clay); font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.principle-card p { margin: 0 0 0.7rem; font-size: 0.95rem; }
.principle-card .pc-example { color: var(--text); background: var(--parchment); border-radius: 6px; padding: 0.6rem 0.75rem; }
.principle-card .pc-example strong { color: var(--clay); }
.principle-card .pc-link { margin: auto 0 0; padding-top: 0.2rem; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 960px) { .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .principle-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- How-To: trimmed, phone-friendly ---------- */
.howto-need { max-width: 720px; }
.howto-list { padding-left: 1.1rem; }
.howto-list li { margin-bottom: 0.35rem; }
.howto-more { margin: 0.8rem 0 1rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem; }
.howto-more summary { cursor: pointer; font-weight: 600; color: var(--fern); }
.howto-more[open] summary { margin-bottom: 0.6rem; }
.howto-ebook { margin-top: 1.2rem; background: var(--canopy); border-left: 4px solid var(--fern); border-radius: 6px; padding: 0.75rem 1rem; font-weight: 500; }
.howto-ebook a { font-weight: 700; }

/* ---------- What grows where I live? ---------- */
.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; }
.finder { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.3rem; }
.finder-fields { display: grid; grid-template-columns: 1fr auto 1.2fr 1fr; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.finder .field { display: grid; gap: 0.35rem; margin: 0; }
.finder label, .finder legend { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.finder .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.finder select { font: inherit; font-size: 16px; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); width: 100%; min-height: 44px; }
.finder select:focus-visible, .finder input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.finder-or { margin: 2rem 0 0; color: var(--muted); font-style: italic; }
.finder-zones { border: 0; padding: 0; }
.finder-zones legend { padding: 0; margin-bottom: 0.35rem; }
.finder-zones label { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; min-height: 36px; }
.finder-zones input { width: 1.15rem; height: 1.15rem; accent-color: var(--fern); }
.finder button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.finder-help { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted); }
.finder-results { margin-top: 1.5rem; }
.finder-results h2 { margin-top: 0.5rem; }
.finder-results h2:focus { outline: none; }
.finder-town { background: var(--canopy); border-radius: 8px; padding: 0.7rem 0.9rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--fern); text-decoration: underline; cursor: pointer; font-weight: 600; }
.finder-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.finder-plant a { display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); min-height: 60px; }
.finder-plant a:hover { border-color: var(--sage); }
.finder-plant img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.fp-text { display: grid; gap: 0.15rem; }
.fp-text strong { color: var(--fern); }
.fp-text em { color: var(--muted); font-size: 0.85rem; }
.fp-text .zones { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.finder-foot { font-size: 0.88rem; color: var(--muted); }
.town-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border: 1px solid var(--border); font-size: 0.95rem; }
.town-table th, .town-table td { text-align: left; padding: 0.55rem 0.75rem; border-top: 1px solid var(--border); vertical-align: top; }
.town-table thead th { background: var(--canopy); color: var(--fern); }
.town-table tbody th { font-weight: 600; }
.tz-note { display: block; font-size: 0.82rem; color: var(--muted); }
.tz-source { font-size: 0.85rem; color: var(--muted); }
.zone-finder { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: end; }
.zone-finder h2 { margin: 0; font-size: 1.3rem; grid-column: 1 / -1; }
.zone-finder p { margin: 0; grid-column: 1 / -1; color: var(--muted); }
.zone-finder .field { display: grid; gap: 0.3rem; }
.zone-finder label { font-weight: 600; font-size: 0.92rem; }
.zone-finder select { font: inherit; font-size: 16px; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; min-height: 44px; width: 100%; }
.zone-finder button { border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; }
@media (max-width: 800px) {
  .finder-fields { grid-template-columns: 1fr; }
  .finder-or { margin: 0; }
  .town-table { font-size: 0.9rem; }
  .town-table th, .town-table td { padding: 0.5rem; }
  .zone-finder { grid-template-columns: 1fr; }
}

/* ---------- Teaching drawings ---------- */
.tdiagram { margin: 1.25rem 0 1.5rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem; max-width: 720px; }
.tdiagram svg.tdraw, .tdiagram img { display: block; width: 100%; height: auto; }
.tdiagram img { background: #fff; }
.tdiagram figcaption a { color: inherit; text-underline-offset: 2px; }
.tdiagram figcaption p { margin: 0 0 0.45rem; }
.tdiagram figcaption p.tcredit { margin: 0.55rem 0 0; font-size: 0.82rem; }
.tlegend { list-style: none; margin: 0.15rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; }
.tlegend li { margin: 0; font-size: 0.86rem; color: var(--muted); }
.tlegend span[lang="sv"] { font-style: italic; }

.tdraw .tl { font: 600 19px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; fill: #1f2a22; }
.tdraw .ts { font: 16px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; fill: #56645a; }
.tdraw .tl, .tdraw .ts { paint-order: stroke; stroke: #fffdf9; stroke-width: 4px; stroke-linejoin: round; }
.tdraw .tz { fill: #2e4a30; }
.tdiagram figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.layers-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.layers-wrap .tdiagram { margin: 0; }
@media (max-width: 800px) { .layers-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tdiagram { padding: 0.5rem; } }

/* ---------- Start with these 3 ---------- */
.starter-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.starter-card { margin: 0; }
.starter-card a { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.9rem; align-items: start; height: 100%; padding: 1rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); }
.starter-card a:hover { border-color: var(--sage); box-shadow: 0 6px 18px rgba(61, 45, 30, 0.10); }
.starter-num { position: absolute; top: -0.6rem; left: -0.6rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.starter-visual img { width: 84px; height: auto; border-radius: 4px; box-shadow: 0 4px 10px rgba(61, 45, 30, 0.2); display: block; }
.starter-icon { display: grid; place-items: center; width: 84px; height: 84px; }
.starter-icon .pc-icon { width: 64px; height: 64px; padding: 12px; }
.starter-body { display: grid; gap: 0.35rem; font-size: 0.93rem; color: var(--muted); }
.starter-body strong { color: var(--fern); font-size: 1.05rem; }
.starter-body .go { font-weight: 600; color: var(--fern); }
.starter-card a:hover .go { text-decoration: underline; }
.starter-compact { padding-bottom: 0; }
.starter-compact h2 { margin-top: 0.5rem; }
@media (max-width: 860px) { .starter-grid { grid-template-columns: 1fr; gap: 1.1rem; } }


/* ---------- Invasive-species ID ---------- */
.invasive-lead { max-width: 760px; }
.invasive-jump { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.invasive-jump li { margin: 0; }
.invasive-jump a {
  display: inline-block; background: var(--canopy); color: var(--fern);
  border: 1px solid #cdd9c4; border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.invasive-jump a:hover { background: #ffffff; border-color: var(--sage); color: var(--fern-dark); }
.inv-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.15rem 1.35rem;
  align-items: start;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.15rem 1.2rem; margin: 0 0 1.15rem;
}
.inv-visual { margin: 0; }
.inv-photo {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 0; overflow: hidden; min-height: 0;
}
.inv-photo img { display: block; width: 100%; height: auto; background: var(--canopy); }
.inv-photo figcaption {
  margin: 0; padding: 0.4rem 0.55rem 0.5rem;
  font-size: 0.72rem; line-height: 1.4; color: var(--muted); text-align: left;
}
.inv-photo figcaption a { color: inherit; text-underline-offset: 2px; }
.inv-body h3 { margin: 0 0 0.15rem; font-size: 1.22rem; color: var(--fern); }
.inv-latin { margin: 0 0 0.75rem; color: var(--sage); font-size: 0.92rem; }
.inv-body h4 { margin: 0.85rem 0 0.3rem; font-size: 0.95rem; color: var(--clay); letter-spacing: 0.02em; }
.inv-body h4:first-of-type { margin-top: 0; }
.inv-body p, .inv-body li { color: var(--muted); font-size: 0.96rem; }
.inv-body ul { margin: 0 0 0.2rem 1.2rem; }
.inv-report {
  background: var(--parchment); border-radius: 8px; padding: 0.7rem 0.9rem; margin-top: 0.85rem;
}
.inv-report h4 { margin-top: 0; }
.inv-report ul { margin-bottom: 0; }
.inv-sources, .inv-photo-note { max-width: 760px; font-size: 0.92rem; color: var(--muted); }
.inv-sources { margin-top: 1.2rem; }
.inv-sources h3 { font-size: 1.05rem; color: var(--fern); }
.inv-sources li { margin-bottom: 0.35rem; }
@media (max-width: 700px) {
  .inv-card { grid-template-columns: 1fr; padding: 1rem; gap: 0.85rem; }
  .inv-photo { max-width: none; margin: 0; }
}

.coming-soon, .coming-soon-label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 999px;
}
.coming-soon-label { font-size: 0.95rem; margin: 0.35rem 0 0; }
.ebook-card .coming-soon { margin: 0 0 0.45rem; }
.free-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fern);
  border: 1px solid var(--fern);
  border-radius: 999px;
}
