/* Backyard Bush - national site. One light theme for home gardeners.
   Palette from an Australian garden in flower: gum-leaf green for anything you can act on, wattle gold and
   waratah red for highlights and conservation status, clear-sky blue and new-leaf green for page bands. */
:root {
  --paper: #FFFFFF; --sky: #E6F3FB; --leaf: #EDF6E9; --wattle-wash: #FFF4CC;
  --ink: #12321F; --muted: #4C6455; --line: #DCE6DE;
  --gum: #0C7A4A; --gum-deep: #075C37; --gum-ink: #FFFFFF;
  --wattle: #FFC629; --waratah: #D1263A; --fan: #5547D6;
  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --latin: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --s-1: .875rem; --s0: 1.0625rem; --s1: 1.25rem; --s2: 1.6rem; --s3: 2.1rem; --s4: clamp(2.5rem, 6.4vw, 4.6rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s0)/1.55 var(--sans); font-optical-sizing: auto; }
img { max-width: 100%; display: block; }
a { color: var(--gum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gum-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fan); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.015em; }
h1 { font-size: var(--s3); font-weight: 800; }
h2 { font-size: var(--s2); font-weight: 750; }
h3 { font-size: var(--s1); font-weight: 700; }
p { margin: 0; }
small { font-size: var(--s-1); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.sci { font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--muted); }
.note { color: var(--muted); font-size: var(--s-1); line-height: 1.5; }
.empty { color: var(--muted); padding: 18px 0; }
.lede { font-size: var(--s1); line-height: 1.5; max-width: 62ch; color: var(--ink); }

/* ---------- header ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; flex: none; }
.masthead nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -8px; }
.masthead nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.masthead nav a:hover { background: var(--leaf); }
@media (max-width: 560px) {
  .masthead-in { padding-block: 10px 6px; }
  .masthead nav { width: 100%; margin-left: -12px; }
  .masthead nav { gap: 0; }
  .masthead nav a { padding: 6px 10px; font-size: .95rem; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { background: transparent; }
.crumbs ol { list-style: none; margin: 0 auto; max-width: 1180px; padding: 14px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--s-1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { font: 600 var(--s0) var(--sans); border: 2px solid var(--gum); background: var(--paper); color: var(--gum); border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.btn:hover { background: var(--gum); color: var(--gum-ink); }

/* ---------- home: hero ---------- */
.hero { background: var(--sky); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: var(--s4); font-weight: 800; letter-spacing: -.035em; line-height: .98; font-variation-settings: "opsz" 96; max-width: 11ch; }
.hero-sub { font-size: var(--s1); line-height: 1.5; margin-top: 20px; max-width: 46ch; }
.search { position: relative; display: flex; gap: 6px; margin-top: 28px; background: var(--paper); border-radius: 999px; padding: 6px; box-shadow: 0 1px 0 var(--line), 0 12px 32px -14px rgba(18, 50, 31, .35); max-width: 560px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.15rem var(--sans); color: var(--ink); padding: 12px 8px 12px 20px; border-radius: 999px; }
.search input::placeholder { color: #7D9286; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--gum), 0 12px 32px -14px rgba(18, 50, 31, .35); }
.search button { flex: none; border: 0; background: var(--gum); color: var(--gum-ink); font: 700 1.05rem var(--sans); padding: 12px 24px; border-radius: 999px; cursor: pointer; }
.search button:hover { background: var(--gum-deep); }
#sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--paper); border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(18, 50, 31, .35); max-height: 60vh; overflow: auto; }
#sugg li { padding: 10px 16px; border-radius: 12px; cursor: pointer; }
#sugg li small { color: var(--muted); margin-left: 6px; }
#sugg li:hover, #sugg li[aria-selected="true"] { background: var(--leaf); }
#sugg li.none { color: var(--muted); cursor: default; }
.try { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: var(--s-1); }
.try a { background: rgba(255, 255, 255, .7); color: var(--ink); text-decoration: none; padding: 5px 12px; border-radius: 999px; font-weight: 600; border: 1px solid #CFE3EE; }
.try a small { color: var(--muted); font-weight: 500; }
.try a:hover { background: var(--paper); border-color: var(--gum); }

/* the flower wall: nine real local flowers in garden-bed shapes */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bloom { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--leaf); text-decoration: none;
  animation: bloom .7s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.bloom img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bloom:hover img { transform: scale(1.06); }
.bloom span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .78rem; font-weight: 650; line-height: 1.2; padding: 4px 10px; border-radius: 999px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.b0, .b8 { border-radius: 50%; }
.b1, .b5 { border-radius: 999px 999px 18px 18px; }
.b2, .b6 { border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; }
.b3, .b7 { border-radius: 28px; }
.b4 { border-radius: 50% 50% 50% 12px; }
.b1, .b7 { transform: translateY(18px); }
@keyframes bloom { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .bloom { animation: none; } .bloom img { transition: none; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 44px; }
  .wall { gap: 10px; max-width: 520px; }
  .b1, .b7 { transform: translateY(10px); }
}
@media (max-width: 480px) {
  .search { flex-direction: column; border-radius: 22px; }
  .search input { padding: 12px 14px; }
  .search button { padding: 14px; border-radius: 16px; }
  .bloom span { display: none; }
}

/* ---------- home: sections ---------- */
.how { padding-block: 72px 56px; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding-top: 58px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--wattle); color: var(--ink); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.steps b { font-size: var(--s1); }
.steps span { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } .steps li { padding: 8px 0 0 60px; } .how { padding-block: 48px 36px; } }

.neighbours { background: var(--leaf); padding-block: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.sec-head a { font-weight: 650; }
.nb-strip { list-style: none; margin: 24px 0 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.nb-strip li { scroll-snap-align: start; }
.nb-strip a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.nb-strip img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 4px solid var(--paper); margin-bottom: 8px; }
.nb-strip b { font-weight: 700; line-height: 1.2; }
.nb-strip small { color: var(--muted); }
.nb-strip a:hover b { color: var(--gum); }

.states { padding-block: 56px 72px; }
.state-pills { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.state-pills a { display: block; padding: 10px 18px; border-radius: 999px; background: var(--sky); color: var(--ink); text-decoration: none; font-weight: 650; }
.state-pills a:hover { background: var(--gum); color: var(--gum-ink); }

/* ---------- suburb page ---------- */
.sub-head { background: var(--sky); margin-top: -1px; }
.crumbs + .sub-head { margin-top: 0; }
body:has(.sub-head) .crumbs, body:has(.spec-head) .crumbs { background: var(--sky); }
.sub-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding-block: 18px 36px; }
.sub-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.03em; }
.sub-meta { color: var(--muted); font-weight: 600; margin: 8px 0 14px; }
.sub-outline { width: 180px; height: auto; max-height: 180px; }
.sub-outline path { fill: var(--paper); stroke: var(--gum); stroke-width: 3; stroke-linejoin: round; }
.pill-threat { display: inline-block; margin-top: 16px; background: var(--wattle); color: var(--ink); font-weight: 700; text-decoration: none; padding: 7px 16px; border-radius: 999px; font-size: var(--s-1); }
.pill-threat:hover { color: var(--ink); background: #FFD457; }
@media (max-width: 640px) {
  .sub-head-in { grid-template-columns: 1fr; padding-block: 12px 26px; }
  .sub-outline { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: 14px; width: 72px; max-height: 72px; }
  .sub-head-in { position: relative; }
  .sub-head h1 { padding-right: 84px; }
  .lede { font-size: var(--s0); }
}

/* plant-type chips: sticky so they are always in reach on a phone */
.spotbar { position: sticky; top: 0; z-index: 15; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.spotbar-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.spotbar-in::-webkit-scrollbar { display: none; }
.spotbar button { flex: none; font: 650 .97rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer; white-space: nowrap; }
.spotbar button small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.spotbar button:hover { border-color: var(--gum); }
.spotbar button[aria-pressed="true"] { background: var(--gum); border-color: var(--gum); color: var(--gum-ink); }
.spotbar button[aria-pressed="true"] small { color: #CDEBD9; }

.area-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-block: 32px 72px; align-items: start; }
.area-body > section { min-width: 0; }
@media (max-width: 960px) { .area-body { grid-template-columns: 1fr; gap: 40px; } }
.toplist > h2, .browse h2 { margin-bottom: 8px; }
.spot { margin-top: 44px; }
.spot h3 { font-size: var(--s1); padding-bottom: 4px; }
.browse-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.browse-head h2 small { color: var(--muted); font-size: .6em; font-weight: 600; }
.feeds-sel { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.feeds-sel select { font: 500 1rem var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--paper); }
.loading { color: var(--muted); padding: 24px 0; }

/* plant rows */
.plist { list-style: none; margin: 0; padding: 0; }
.prow { border-bottom: 1px solid var(--line); }
.prow > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "ph name" "ph meta" "ph wild"; column-gap: 18px; row-gap: 3px; padding: 16px 6px; color: var(--ink); text-decoration: none; border-radius: 18px; align-content: start; }
.prow > a:hover { background: var(--leaf); }
.thumb { grid-area: ph; width: 96px; height: 96px; object-fit: cover; border-radius: 18px; background: var(--leaf); }
.thumb.none { display: block; }
.pname { grid-area: name; display: grid; }
.pname b { font-size: 1.18rem; font-weight: 700; line-height: 1.2; }
.pname .sci { font-size: 1rem; }
.pmeta { grid-area: meta; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pwild { grid-area: wild; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .95rem; }
.helps-threat { background: var(--wattle-wash); color: var(--ink); font-weight: 650; padding: 2px 10px; border-radius: 999px; border-left: 3px solid var(--wattle); }
.nfeeds { color: var(--muted); }
.how-u, .pwild .how { color: var(--gum-deep); font-weight: 600; }
.unv { font-size: .8rem; background: #EEF0F6; color: #4A4F6A; padding: 1px 8px; border-radius: 999px; }
@media (max-width: 480px) {
  .prow > a { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; padding: 14px 2px; }
  .thumb { width: 76px; height: 76px; border-radius: 16px; }
}

/* flowering months: wattle gold for months in flower */
.fbar { display: inline-flex; gap: 2px; vertical-align: middle; }
.fbar i { width: 8px; height: 8px; border-radius: 2px; background: #E3EAE5; }
.fbar i.on { background: var(--wattle); box-shadow: inset 0 0 0 1px #E5A900; }

/* side column */
.side { display: grid; gap: 36px; min-width: 0; }
.side h2 { font-size: var(--s1); margin-bottom: 12px; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tcard { background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; padding: 12px; }
.tcard-a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.tcard-a b { display: block; line-height: 1.2; }
.tcard-a small { display: block; color: var(--muted); }
.tph { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: var(--leaf); }
.tph.none { display: block; }
.plantfor { margin-top: 10px; font-size: var(--s-1); line-height: 1.5; }
.muted { color: var(--muted); }
.nearby { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a { display: block; background: var(--leaf); color: var(--ink); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nearby a:hover { background: var(--gum); color: var(--gum-ink); }

/* conservation badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin: 3px 0; vertical-align: middle; }
.badge.crit { background: var(--waratah); color: #fff; }
.badge.vul { background: var(--wattle); color: var(--ink); }
.badge.nt { background: #E7ECE9; color: var(--muted); }

/* ---------- plant and animal pages ---------- */
.spec-head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 24px 48px; }
.specimen > .spec-head { max-width: none; background: var(--sky); padding-left: max(20px, calc((100vw - 1140px) / 2)); padding-right: max(20px, calc((100vw - 1140px) / 2)); }
.hero-ph { display: block; padding: 0; border: 0; background: var(--leaf); border-radius: 999px 999px 32px 32px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; width: 100%; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; }
span.hero-ph { cursor: default; }
.spec-title { display: grid; gap: 14px; align-content: start; padding-top: 12px; min-width: 0; }
.spec-title h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.03em; }
.sci.big { font-size: 1.4rem; margin-top: -6px; }
.caution { background: #FDE7EA; border-left: 4px solid var(--waratah); padding: 10px 14px; border-radius: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 0; }
.facts div { background: var(--paper); border-radius: 16px; padding: 10px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 650; }
.credit { font-size: .8rem; color: var(--muted); }
.spec-main { display: grid; gap: 48px; padding-block: 40px 72px; }
.spec-main > section { min-width: 0; }
.spec-main h2 { margin-bottom: 14px; }
.feeds h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.priority { background: var(--wattle-wash); border-radius: 24px; padding: 18px 20px 20px; }
.priority h3 { margin-top: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.achip a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.achip a:hover { border-color: var(--gum); }
.achip b { display: block; line-height: 1.2; font-size: .98rem; }
.achip small { color: var(--muted); }
.av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--leaf); }
.av.none { display: block; }
.gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.refs { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: var(--s-1); }
@media (max-width: 760px) {
  .spec-head { grid-template-columns: 1fr; gap: 20px; padding-block: 12px 32px; }
  .hero-ph { max-width: 340px; }
}

/* ---------- index pages ---------- */
.index-head { padding-block: 24px 28px; display: grid; gap: 14px; }
.index-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.03em; }
.statelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.statelist a { display: grid; gap: 2px; padding: 18px 20px; border-radius: 22px; background: var(--sky); color: var(--ink); text-decoration: none; }
.statelist a:hover { background: var(--gum); color: var(--gum-ink); }
.statelist small { color: inherit; opacity: .75; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; background: var(--leaf); color: var(--ink); text-decoration: none; font-weight: 700; }
.letters a:hover { background: var(--gum); color: var(--gum-ink); }
.letters.big a { min-width: 52px; height: 52px; font-size: 1.2rem; border-radius: 16px; }
.wrap > section { padding-block: 12px; }
.wrap > section > h2 { margin: 18px 0 10px; }
.wrap > section > h2 small { color: var(--muted); font-size: .55em; }
.sublist { list-style: none; margin: 0 0 32px; padding: 0; columns: 3 240px; column-gap: 32px; }
.sublist li { break-inside: avoid; padding: 4px 0; }
.sublist small { color: var(--muted); }
.wrap > .chips { margin-bottom: 64px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D8E6DC; margin-top: 0; }
.foot-in { padding-block: 40px 48px; display: grid; gap: 12px; max-width: 1180px; font-size: var(--s-1); line-height: 1.6; }
.foot p { max-width: 80ch; }
.foot a { color: #FFD866; }
.foot b { color: #fff; }
.foot .unv { background: #2C4A37; color: #D8E6DC; }

/* ---------- photo viewer ---------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 980px); width: 100%; color: var(--ink); }
dialog.lb::backdrop { background: rgba(18, 50, 31, .82); }
.lb-in { position: relative; background: var(--paper); border-radius: 24px; padding: 12px; }
.lb figure { margin: 0; display: grid; gap: 8px; }
.lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: var(--leaf); }
.lb figcaption { font-size: var(--s-1); color: var(--muted); padding: 0 6px 4px; }
.lb-x { position: absolute; right: 18px; top: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 24px; cursor: pointer; }
.lb-nav { position: absolute; inset: 50% 24px auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-70%); }
.lb-nav button { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 26px; cursor: pointer; }

/* ---------- review fixes ---------- */
/* plant flags: prickly, toxic, semi-parasitic, weedy outside its range */
.flag { font-size: .78rem; font-weight: 650; padding: 1px 9px; border-radius: 999px; background: #F1ECFF; color: #3F348F; }
.flag.toxic { background: #FDE7EA; color: #8F1B29; }
.flag.semi, .flag.weedy { background: #EEF0F6; color: #4A4F6A; }
.caution.prickly, .caution.semi, .caution.weedy { background: #F3F1FB; border-left-color: var(--fan); }
/* flowering months: initials under each cell */
.fbar { gap: 3px; padding-bottom: 12px; position: relative; }
.fbar i { position: relative; width: 9px; height: 9px; }
.fbar i::after { content: attr(data-m); position: absolute; top: 11px; left: 50%; transform: translateX(-50%); font: 600 8px/1 var(--sans); color: var(--muted); font-style: normal; }
/* animal without a photo: a simple silhouette instead of a blank circle */
.av.none, .tph.none, .av-none { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M9 26c2-6 8-10 15-9 3-4 7-5 9-3-2 0-4 1-5 3 2 2 3 5 2 8-3 4-9 6-15 5-3 0-5-2-6-4z' fill='%2389A894'/%3E%3Ccircle cx='28' cy='18' r='1.2' fill='%23EDF6E9'/%3E%3C/svg%3E") center / 62% no-repeat; }
/* threatened species with no garden food plant: folded away */
.more-thr { margin-top: 14px; }
.more-thr summary { cursor: pointer; font-weight: 650; color: var(--gum); padding: 10px 0; min-height: 44px; }
.tlist { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
/* filter boxes on long index pages */
.find input { width: 100%; max-width: 460px; font: 500 1.05rem var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; background: var(--paper); }
.find input:focus { outline: none; border-color: var(--gum); box-shadow: 0 0 0 3px #CDEBD9; }
.off-find { display: none; }
.letters.groups a { min-width: auto; padding: 0 14px; }
.index-head .search { margin-top: 4px; }
/* share button sits at the end of the chip row */
.spotbar button.share { background: var(--wattle-wash); border-color: #F3D77A; }
/* chips: wrap on wide screens (nothing hidden), scroll with a fade on phones; 44 px tap targets */
@media (min-width: 900px) { .spotbar-in { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 899px) {
  .spotbar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 1px; width: 44px; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96)); }
  .spotbar-in { padding-right: 48px; }
}
.spotbar button, .nearby a, .try a, .state-pills a { min-height: 44px; display: inline-flex; align-items: center; }
.masthead nav a { min-height: 44px; display: inline-flex; align-items: center; }
/* photo credits */
.photo-credits { padding-block: 0 40px; }
.photo-credits summary { cursor: pointer; color: var(--muted); font-size: var(--s-1); min-height: 44px; display: flex; align-items: center; }
.photo-credits ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .8rem; display: grid; gap: 4px; }
.gallery li { display: grid; gap: 4px; }
.gallery .credit { font-size: .72rem; line-height: 1.3; }
/* long URLs and Latin names in citations, credits and notes wrap instead of pushing the page sideways on a phone */
.refs li, .refs a, .credit, .photo-credits li, .gallery .credit, .note, .caution, .foot p, .facts dd, .tlist li, .plantfor,
.spec-title h1, .sub-head h1, .pname b, .pname .sci { overflow-wrap: anywhere; }
.refs { padding-left: 1.2em; }
/* live status line above the full plant list: "Showing 40 of 212 shrubs" */
.fstatus { color: var(--muted); font-size: var(--s-1); margin: 0; min-height: 0; }
.fstatus:empty { display: none; }
.fstatus:not(:empty) { margin-bottom: 10px; }
/* the status line sits in the main column between #picks and #browse; the side column spans all three rows */
.area-body { row-gap: 0; }
.area-body > #picks, .area-body > .fstatus, .area-body > #browse { grid-column: 1; }
.area-body > .side { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 960px) { .area-body > .side { grid-column: 1; grid-row: auto; margin-top: 40px; } }
.flag.semiparasite { background: #EEF0F6; color: #4A4F6A; }
.caution.semiparasite { background: #F3F1FB; border-left-color: var(--fan); }
.vh { clip-path: inset(50%); }

/* ---------- Pinterest landing pages: swaps, WeedWise, butterfly plants ---------- */
.pin-page .spec-main { display: grid; gap: 34px; padding-block: 8px 48px; }
.pin-page .spec-main > section { display: grid; gap: 12px; min-width: 0; }
.pin-page .region h2 { font-size: var(--s1); padding-top: 14px; border-top: 2px solid var(--line); }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.link-cards a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--leaf); color: var(--ink); text-decoration: none; height: 100%; }
.link-cards a:hover { background: var(--wattle-wash); }
.link-cards b { font-size: var(--s1); color: var(--gum-deep); }
.link-cards small { color: var(--muted); }
table.status { border-collapse: collapse; width: 100%; font-size: var(--s-1); }
table.status th, table.status td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.status th { color: var(--muted); font-weight: 600; }
.pin-cta { background: var(--sky); border-radius: 16px; padding: 20px 22px; }
.pin-cta h2 { font-size: var(--s1); }

/* ---------- pin landing guides (/swap/<plant>/<native>/): the pin's photo and headline, then the how-to ---------- */
.guide .g-head { display: grid; gap: 24px; padding-block: 18px 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .guide .g-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; } }
.guide .g-intro { display: grid; gap: 14px; min-width: 0; }
.guide .g-kicker { margin: 0; font-weight: 700; font-size: var(--s-1); letter-spacing: .12em; text-transform: uppercase; color: var(--fan); }
.guide h1 { font-size: var(--s4); line-height: .98; letter-spacing: -.035em; margin: 0; }
.guide .lede { margin: 0; }
.guide .g-name { margin: 0; font-size: var(--s1); }
.guide .g-also { color: var(--muted); font-size: var(--s-1); white-space: nowrap; }
.g-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-facts div { background: var(--leaf); border-radius: 12px; padding: 10px 14px; }
.g-facts dt { font-size: var(--s-1); color: var(--muted); }
.g-facts dd { margin: 0; font-weight: 650; }
.g-hero, .g-photo { margin: 0; display: grid; gap: 6px; min-width: 0; }
.g-hero img, .g-photo img { width: 100%; height: auto; border-radius: 18px; display: block; }
.g-hero img { aspect-ratio: 4 / 5; object-fit: cover; max-height: 640px; }
/* phones: the click lands on the pin's headline AND photo, so the photo goes straight under the headline */
@media (max-width: 859px) {
  .guide .g-head { gap: 14px; }
  .guide .g-intro { display: contents; }
  .guide .g-kicker { order: 1; } .guide .g-head h1 { order: 2; } .guide .g-hero { order: 3; }
  .guide .g-head .lede { order: 4; } .guide .g-name { order: 5; } .guide .g-facts { order: 6; }
  .g-hero img { aspect-ratio: 1 / 1; }
}
.g-do { background: var(--wattle-wash); border-radius: 18px; padding: 22px clamp(18px, 3vw, 32px); }
.g-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: var(--s1); line-height: 1.45; }
.g-steps li::marker { font-weight: 800; color: var(--gum); }
.g-aside { background: var(--paper); border-radius: 12px; padding: 14px 18px; }
.g-aside h3 { margin: 0 0 4px; }
.g-aside p { margin: 0; }
.g-split { display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .g-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.g-split img { aspect-ratio: 1; object-fit: cover; }
.g-wild { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-wild li { display: flex; gap: 14px; align-items: center; }
.g-wild li > span:last-child { display: grid; justify-items: start; }
.g-wild .av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--leaf); }
