/* Plant Tags. Mobile first, large type, high contrast: built for older volunteers and customers. */
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/josefin-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* The look comes from the nursery itself: an old brick building with a sandstone
   render, a white sign board with wide-spaced capitals, weathered green timber
   posts and red-hot pokers by the door. */
:root {
  --green-900: #2E3628;   /* deep timber, headings */
  --green-800: #3F4A35;
  --green-700: #4B5A3D;   /* weathered post green: primary buttons */
  --green-600: #6B7A55;
  --green-100: #E3E3CF;
  --green-50: #F1EFE2;
  --sand: #F2E6CF;        /* sandstone render */
  --sand-dk: #E2CFA8;
  --ochre: #A64B32;       /* brick */
  --ochre-lt: #F5DCCB;
  --brick: #A64B32;
  --brick-dk: #7A3423;
  --mortar: #EFE3CC;
  --poker: #DD5A26;       /* red-hot poker orange: focus + accents */
  --blossom: #B23A22;
  --ink: #2C2B29;         /* sign-board lettering */
  --ink-2: #57534B;
  --line: #D8C8A8;
  --white: #FFFDF8;
  --board: #FBF9F3;
  --radius: 6px;
  --shadow: 0 1px 0 rgb(80 50 20 / .10), 0 3px 10px rgb(80 50 20 / .10);
  --serif: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --display: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brick-wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Crect width='64' height='32' fill='%23CDB794'/%3E%3Crect x='0' y='0' width='30' height='14' fill='%23AC5236'/%3E%3Crect x='32' y='0' width='30' height='14' fill='%23B0563A'/%3E%3Crect x='-16' y='16' width='30' height='14' fill='%239F4A33'/%3E%3Crect x='16' y='16' width='30' height='14' fill='%23A64B32'/%3E%3Crect x='48' y='16' width='30' height='14' fill='%239A422B'/%3E%3C/svg%3E");
  --stucco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .42  0 0 0 0 .25  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 18px/1.55 var(--sans);
  color: var(--ink);
  background: var(--sand) var(--stucco);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { width: 100%; max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--green-900); line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { padding-top: .12em; } /* Josefin sits high on its line */
h1 { font-size: 1.85rem; }
h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .1em; }
h2 .ic { width: 1.25em; height: 1.25em; color: var(--brick); flex: none; margin-top: -.15em; }
p { margin: 0 0 .8em; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(rgb(60 25 15 / .28), rgb(60 25 15 / .28)), var(--brick-wall) var(--brick);
  border-bottom: 4px solid #6E5A3E;
  box-shadow: 0 2px 10px rgb(0 0 0 / .18);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.sign {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--board); color: var(--ink);
  padding: 6px 12px 5px 6px; border-radius: 3px;
  outline: 1.5px solid var(--ink); outline-offset: -4px;
  box-shadow: 0 2px 0 rgb(0 0 0 / .3);
}
.sign svg { flex: none; }
.sign span { display: flex; flex-direction: column; min-width: 0; padding: 2px 0 0; }
.sign b { font: 600 .98rem/1.15 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.sign small { font: 600 .66rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brick-dk); }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  color: var(--board); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 9px 12px; border-radius: 4px; background: rgb(30 15 8 / .45); border: 1px solid rgb(255 255 255 / .25);
}
.topbar-btn:active { background: rgb(30 15 8 / .65); }

.flash {
  border-left: 6px solid var(--poker);
  max-width: 688px; margin: 12px auto 0; width: calc(100% - 32px);
  background: var(--green-800); color: var(--white); font-weight: 600;
  padding: 12px 16px; border-radius: 4px; display: flex; align-items: center; gap: 8px;
  animation: flash-in .25s ease-out;
}
.flash.hide { opacity: 0; transition: opacity .6s; }
@keyframes flash-in { from { transform: translateY(-6px); opacity: 0; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--green-700); border-radius: 5px;
  background: var(--white); color: var(--green-800);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .rte-area:focus-visible, summary:focus-visible { outline: 3px solid var(--poker); outline-offset: 2px; }
.btn-big { min-height: 60px; font-size: 1.12rem; width: 100%; border-radius: 6px; }
.btn-primary { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.btn-primary:active { background: var(--green-800); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { min-height: 38px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn-danger-ghost { border-color: var(--blossom); color: var(--blossom); background: var(--white); }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

/* ---- form fields ---- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.stack .field { margin-bottom: 0; }
.field > span { font-weight: 600; color: var(--green-900); }
.field em { font-style: normal; font-weight: 400; font-size: .85rem; color: var(--ochre); margin-left: 4px; }
input[type=text], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: 1.05rem/1.4 var(--sans); color: var(--ink);
  padding: 13px 14px; min-height: 52px;
  border: 2px solid var(--line); border-radius: 5px; background: var(--white);
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-600); outline: none; }
::placeholder { color: #8C948F; }
.two { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form .btn { flex: none; min-height: 52px; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; border: 2px solid var(--line); background: var(--white); border-radius: 12px; padding: 0 14px; font: 600 .95rem var(--sans); color: var(--green-800); }

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; color: var(--green-900); padding: 0; margin-bottom: 8px; }
legend .muted { font-weight: 400; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--line); border-radius: 5px; background: var(--white);
  font-weight: 600; color: var(--ink-2); user-select: none;
}
.chip input:checked + span { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.chip input:checked + span::before { content: "✓ "; white-space: pre; }
.chip input:focus-visible + span { outline: 3px solid var(--poker); outline-offset: 2px; }
.chips-big .chip span { min-width: 64px; justify-content: center; font-size: 1.2rem; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 64px; height: 36px; border-radius: 999px; background: #C9C3B6; position: relative; transition: background .2s; }
.switch-thumb { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--green-600); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(28px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--poker); outline-offset: 2px; }
.switch .sw-on { display: none; } .switch input:checked ~ .switch-label .sw-on { display: inline; } .switch input:checked ~ .switch-label .sw-off { display: none; }

.error { background: #FCE8E5; color: #8A2219; border-left: 5px solid var(--blossom); padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.good-news { background: var(--green-100); border-left: 5px solid var(--green-600); padding: 12px 14px; border-radius: 10px; display: flex; gap: 8px; align-items: flex-start; }
.good-news .ic { color: var(--green-700); margin-top: 3px; }

/* ---- cards and sections ---- */
.card-box { background: var(--white); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; box-shadow: var(--shadow); border: 1px solid #E6D6B6; }
.card-box > summary { cursor: pointer; font-weight: 600; }
.card-box.danger { border: 2px dashed #E7B8B1; box-shadow: none; background: #FFFBFA; }
.card-box.danger h2 { color: #8A2219; }
.page-title { margin-top: 8px; }
.back { display: inline-block; margin: 4px 0 8px; text-decoration: none; font-weight: 600; padding: 6px 0; }
.step { display: inline-flex; width: 1.7em; height: 1.7em; border-radius: 3px; background: var(--brick); color: var(--white); align-items: center; justify-content: center; font-family: var(--sans); font-size: .85em; flex: none; }
.empty { text-align: center; color: var(--ink-2); padding: 24px 8px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sand-dk); color: var(--ink-2); }
.badge-warn { background: var(--ochre-lt); color: #7A3F0B; }
.badge-soft { background: var(--green-100); color: var(--green-800); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--green-50); border-radius: 12px; flex: none; }

.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.search .ic { color: var(--ink-2); }
.search input { border: 0; padding-left: 0; min-height: 50px; }
.search input:focus { outline: none; }

/* ---- staff home ---- */
.greet h1 { font-size: 1.6rem; margin-top: 8px; }
.tiles { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 20px; }
.tile {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: 6px; text-decoration: none;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow); border: 1px solid #E6D6B6; border-left: 8px solid var(--green-700);
}
.tile:active { transform: scale(.99); border-color: var(--green-600); }
.tile-icon { width: 68px; height: 68px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--white); }
.tile-icon .ic { width: 38px; height: 38px; }
.tile-scan { border-left-color: var(--green-700); }
.tile-scan .tile-icon { background: var(--green-700); }
.tile-plants { border-left-color: #5F7F45; }
.tile-plants .tile-icon { background: #5F7F45; }
.tile-print { border-left-color: var(--brick); }
.tile-print .tile-icon { background: var(--brick-wall) var(--brick); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .15); }
.tile-text { display: flex; flex-direction: column; }
.tile-text strong { font-family: var(--display); font-size: 1.3rem; color: var(--green-900); text-transform: uppercase; letter-spacing: .08em; padding-top: .15em; }
.tile-text span { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stats div { background: var(--board); border: 1px solid var(--line); border-radius: 4px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; }
.stats strong { font-size: 1.7rem; color: var(--brick-dk); font-family: var(--display); padding-top: .15em; }
.stats span { font-size: .85rem; color: var(--ink-2); }
.hint-card { background: var(--ochre-lt); border-left: 6px solid var(--poker); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.hint-card h2 { font-size: 1.1rem; color: #7A3F0B; }
.minor-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; }
.minor-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 4px; }

/* ---- login / notices ---- */
.login, .notice, .ready { text-align: center; padding-top: 28px; }
.login form { text-align: left; margin: 18px 0; }
.login-logo, .notice-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.login-logo svg, .notice-logo svg, .login-logo img, .notice-logo img { background: var(--white); border-radius: 18%; padding: 10px; box-shadow: var(--shadow); box-sizing: content-box; }
.notice p { max-width: 30em; margin-left: auto; margin-right: auto; }
.notice .btn { margin-top: 12px; max-width: 360px; }
.ready-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-700); color: var(--white); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.ready-icon .ic { width: 48px; height: 48px; }
.ready .btn { margin: 8px 0 24px; }
.steps { padding-left: 1.3em; margin: 0 0 10px; }
.steps li { margin-bottom: 8px; }

/* ---- scanner ---- */
.scanner { margin-bottom: 16px; }
.scanner-view { position: relative; aspect-ratio: 1; max-height: 70vh; width: 100%; background: #1E1B17; border-radius: 6px; overflow: hidden; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 15%; border: 4px solid rgb(255 255 255 / .9); border-radius: 22px; box-shadow: 0 0 0 999px rgb(0 0 0 / .35); pointer-events: none; display: none; }
.scanner.on .scanner-frame { display: block; }
.scanner.found .scanner-frame { border-color: #7EE2A8; }
.scanner-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #DDE9E2; }
.scanner-start .btn { max-width: 320px; }
.scanner.on .scanner-start { display: none; }
.scanner-status { text-align: center; font-weight: 600; margin-top: 10px; min-height: 1.5em; }

/* ---- tag page ---- */
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--board); color: var(--ink); outline: 1.5px solid var(--ink); outline-offset: -4px; box-shadow: var(--shadow); padding: 8px 16px; border-radius: 3px; font-family: var(--display); text-transform: uppercase; font-size: .95rem; margin: 6px 0 14px; letter-spacing: .02em; }
.tag-chip strong { letter-spacing: .12em; }
.blank-intro h1 { font-size: 2rem; }
.linked { margin-bottom: 18px; }
.linked-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.linked-head img, .linked-head .thumb-empty { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; flex: none; }
.linked-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.linked-head p { margin: 0; }
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pick:active { border-color: var(--green-600); background: var(--green-50); }
.pick img, .pick .thumb-empty { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.pick-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick-text em, .plant-row-text em, .card-body em { color: var(--ink-2); font-size: .9rem; }
.pick-go { flex: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--green-700); font-size: .9rem; }

/* ---- plant list (staff) ---- */
.add-box { padding: 0; background: transparent; box-shadow: none; }
.add-box[open] { background: var(--white); padding: 18px; box-shadow: var(--shadow); }
.add-box[open] summary { margin-bottom: 14px; }
.plant-list { display: flex; flex-direction: column; gap: 10px; }
.plant-row { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 5px; padding: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border: 1px solid #E6D6B6; }
.plant-row img, .plant-row .thumb-empty { width: 72px; height: 72px; border-radius: 3px; object-fit: cover; flex: none; }
.plant-row-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.plant-row-text strong { font: 700 1.12rem/1.2 var(--display); padding-top: .15em; }
.chev { font-size: 2rem; color: var(--ink-2); padding-right: 6px; }

/* ---- editor ---- */
.editor .card-box h2 { margin-bottom: .5em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo-grid:empty { display: none; }
.photo-card { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.photo-card:has(input[type=radio]:checked) { border-color: #D9A23A; box-shadow: 0 0 0 2px #F2D28B; }
.photo-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-card.uploading img { opacity: .5; }
.main-pick { position: relative; display: block; }
.main-pick input { position: absolute; opacity: 0; }
.main-pick > span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-weight: 700; font-size: .9rem; color: var(--ink-2); background: var(--sand); cursor: pointer; }
.main-pick .ic { color: #C9C3B6; }
.main-pick .main-on { display: none; }
.main-pick input:checked + span { background: #FFF3D6; color: #7A5300; }
.main-pick input:checked + span .ic { color: #E0A21B; }
.main-pick input:checked + span .main-on { display: inline; }
.main-pick input:checked + span .main-off { display: none; }
.main-pick input:focus-visible + span { outline: 3px solid var(--poker); outline-offset: -3px; }
.photo-card .caption { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: .92rem; min-height: 46px; padding: 10px; }
.photo-tools { display: flex; border-top: 1px solid var(--line); }
.icon-btn { flex: 1; min-height: 46px; border: 0; background: var(--white); color: var(--green-800); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn + .icon-btn { border-left: 1px solid var(--line); }
.icon-btn:active { background: var(--green-50); }
.icon-danger { color: var(--blossom); }
.upload-btn { cursor: pointer; }
.upload-status { margin: 10px 0 0; font-weight: 600; color: var(--green-700); min-height: 1.4em; }
.upload-status.bad { color: #8A2219; }
.tip-edit { background: linear-gradient(180deg, #FFF8EE, var(--white)); border: 2px solid #F0D9B8; }
.tip-mini svg { display: block; }
.rte { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.rte:focus-within { border-color: var(--green-600); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 60px; z-index: 2; }
.rte-bar button { min-height: 44px; min-width: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font: 600 .95rem var(--sans); color: var(--green-900); cursor: pointer; }
.rte-bar button.on { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.rte-area { min-height: 200px; padding: 14px; outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: #8C948F; }
.savebar {
  position: sticky; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 -16px 16px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgb(247 242 232 / .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.savebar .btn-big { min-height: 56px; padding: 10px 8px; white-space: nowrap; font-size: 1.05rem; }
.savebar.dirty .btn-primary { box-shadow: 0 0 0 3px #F2D28B; }
.tag-list { list-style: none; padding: 0; margin: 0 0 12px; }
.tag-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.tag-list strong { letter-spacing: .1em; }
.print-for summary { margin-bottom: 12px; }
.print-for[open] summary { margin-bottom: 14px; }

/* ---- print ---- */
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-card { position: relative; }
.size-card input { position: absolute; opacity: 0; }
.size-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 14px; text-align: center; cursor: pointer; height: 100%; }
.size-card input:checked + .size-inner { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 2px var(--green-600); }
.size-card input:focus-visible + .size-inner { outline: 3px solid var(--poker); outline-offset: 2px; }
.size-inner strong { font-size: 1.1rem; }
.sheet { display: grid; width: 64px; aspect-ratio: 210/297; gap: 2px; padding: 4px; background: var(--white); border: 1px solid #BDB6A8; border-radius: 3px; margin-bottom: 6px; box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.sheet i { background: var(--green-600); border-radius: 1px; opacity: .8; }
.sheet-big { grid-template-columns: repeat(2, 1fr); }
.sheet-medium { grid-template-columns: repeat(3, 1fr); }
.sheet-small { grid-template-columns: repeat(4, 1fr); }
.sheet-tiny { grid-template-columns: repeat(5, 1fr); gap: 1.5px; }
.batch-list { list-style: none; padding: 0; margin: 0; }
.batch-list a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.batch-list a span { color: var(--ink-2); font-size: .92rem; }
.code-list { columns: 4 70px; list-style: none; padding: 0; margin: 12px 0 0; font-family: ui-monospace, Menlo, monospace; }
.code-list li { padding: 3px 0; break-inside: avoid; }

/* ---- public plant page ---- */
.public main { padding-top: 0; }
.staffstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--ochre-lt); margin: 0 -16px; padding: 10px 16px; font-size: .92rem; }
.staffstrip span { flex: 1 1 100%; }
@media (min-width: 520px) { .staffstrip span { flex: 1; } }
.hero { margin: 0 -16px; background: var(--sand-dk) var(--stucco); border-bottom: 4px solid var(--brick); }
.hero-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hero-img img { width: 100%; max-height: 56vh; object-fit: cover; }
.hero-caption { margin: 0; padding: 8px 16px; font-size: .9rem; color: var(--ink-2); background: var(--white); }
.hero-empty { display: flex; align-items: center; justify-content: center; padding: 40px 0; }
@media (min-width: 720px) { .hero { margin: 16px 0 0; border-radius: 4px; overflow: hidden; } }
.plant-head { padding: 20px 0 6px; }
.plant-head h1 { font-size: 2.35rem; margin-bottom: 4px; }
.sci { font-style: italic; color: var(--ink-2); font-size: 1.12rem; margin-bottom: 10px; }
.tagline { font-size: 1.15rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 7px 14px 5px; border-radius: 3px; background: var(--green-100); color: var(--green-800); font: 600 .9rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.pill-price { background: var(--brick); color: var(--board); font-size: 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 20px; }
.fact { background: var(--white); border: 1px solid #E6D6B6; border-top: 4px solid var(--green-600); border-radius: 4px; padding: 14px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.fact .ic { width: 28px; height: 28px; color: var(--brick); margin-bottom: 6px; }
.fact-label { font: 700 .8rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); padding-top: .1em; }
.fact-value { font-size: 1.1rem; font-weight: 600; color: var(--green-900); line-height: 1.3; }
.fact-hint { font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.tip {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 20px 18px;
  background: var(--board); border-radius: 3px;
  outline: 2px solid var(--ink); outline-offset: -7px;          /* painted-sign border, like the one out front */
  box-shadow: 0 0 0 1px #D6C6A6, 0 3px 0 rgb(80 50 20 / .15);
}
.tip-icon { flex: none; background: var(--white); border-radius: 18%; padding: 6px; box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.tip-icon svg, .tip-icon img { display: block; }
.tip h2 { color: var(--brick-dk); font-size: 1.1rem; margin-top: 4px; }
.tip p { font-size: 1.08rem; }
.tip p:last-child { margin-bottom: 0; }
.about, .gallery { margin-bottom: 22px; }
.rich h3 { font-size: 1.2rem; margin-top: 1em; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich li { margin-bottom: .3em; }
.rich blockquote { border-left: 4px solid var(--sand-dk); margin: 0 0 1em; padding-left: 14px; color: var(--ink-2); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; }
.gallery figure button { padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 4px solid var(--white); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .92rem; color: var(--ink-2); padding: 6px 2px 0; }
.ask { text-align: center; color: var(--ink-2); padding: 14px 0 4px; border-top: 3px double var(--sand-dk); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(10 18 14 / .92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); margin: 56px auto 0; object-fit: contain; }
.lightbox-caption { color: var(--white); text-align: center; padding: 12px 16px; }
.lightbox-close { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .2); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }

.welcome { text-align: center; padding: 28px 0 10px; }
.welcome-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.welcome-logo svg, .welcome-logo img { background: var(--white); border-radius: 18%; padding: 10px; box-shadow: var(--shadow); border: 3px solid var(--brick); box-sizing: content-box; }
.welcome h1 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .14em; line-height: 1.25; }
.catalogue h2 { margin-top: 12px; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: 4px; border: 1px solid #E6D6B6; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img, .card-noimg { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-noimg { display: flex; align-items: center; justify-content: center; background: var(--sand-dk) var(--stucco); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.card-body strong { font: 700 1.08rem/1.2 var(--display); color: var(--green-900); padding-top: .1em; }

.pubfoot {
  background: linear-gradient(rgb(40 18 10 / .55), rgb(40 18 10 / .55)), var(--brick-wall) var(--brick);
  border-top: 4px solid #6E5A3E;
  color: var(--mortar); text-align: center; padding: 26px 16px calc(28px + env(safe-area-inset-bottom)); font-size: .95rem;
}
.pubfoot p { margin: 0 0 6px; }
.pubfoot a { color: var(--white); font-weight: 600; }
.pubfoot .sign { display: inline-flex; margin-bottom: 14px; }

/* ---- uploaded logo ---- */
.logo-img { object-fit: contain; display: block; flex: none; }
.logo-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px; border-radius: 4px; background: var(--brick-wall) var(--brick); }
.qr-badge-preview { display: inline-flex; padding: 10px; border-radius: 6px; background:
  repeating-conic-gradient(#14281F 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.qr-badge-preview > span { display: flex; padding: 6px; background: #fff; border: 2px solid #14281F; border-radius: 16%; }
.qr-badge-preview svg, .qr-badge-preview img { display: block; }
