/* Kagn Plants: the frame and the pieces every screen shares (forked from cats/app.css; five tabs).
   The look is the one the owner was shown (2026-11-11): forest header, sand body, white cards
   with sand borders, primary green buttons, gold accents. Phone first (360-430 px); on a wide
   screen the app is one phone-width column in the middle. Fraunces and Source Sans 3 are served
   from this site's own /fonts/ (both under the SIL Open Font License, its text beside them), so
   nothing is asked of Google from this page. No corner brackets are drawn anywhere. */

/* The Latin Extended files are fetched only by a page that shows such a letter. */
@font-face {
    font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/h/7f9d191d9993/fonts/fraunces-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/h/a21ecfbf41fb/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url('/h/19143dca0759/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url('/h/a85a7459bdb3/fonts/source-sans-3-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --forest: #1a3a2a;
    --sand: #faf8f4;
    --card: #ffffff;
    --line: #e8ddd0;
    --line-strong: #c9bba8;
    --green: #2d5a3d;
    --green-pale: #e8f5ed;
    --gold: #daa520;
    --gold-light: #f4c430;
    --gold-pale: #fdf8ea;
    --gold-line: #f2e0a4;
    --gold-text: #6b4e06;
    --cream: #f9efce;
    --ink: #0d2818;
    --muted: #4b5c51;
    --alert: #8a3b12;
    --alert-pale: #fbefe6;
    --alert-line: #ecc9ae;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --col: 430px;
    --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #e9e4d8; color: var(--ink); font: 17px/1.45 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--green); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }          /* a heading we move focus to is not a control */

/* -- the frame ---------------------------------------------------- */

.shell { max-width: var(--col); min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--sand); box-shadow: 0 0 40px rgba(26, 58, 42, .12); }
.top { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 12px calc(20px + env(safe-area-inset-left)); background: var(--forest); }
.wordmark { font: 600 22px/1 var(--serif); color: var(--cream); }
#view { flex: 1; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px); }
#view:focus { outline: none; }

.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--col); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); z-index: 5; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; min-width: 44px; padding: 4px 0; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
/* a dot on a tab: something there is new for this person (the other Kagn apps on More) */
.tabbar a[data-dot] { position: relative; }
.tabbar a[data-dot]::after { content: ""; position: absolute; top: 6px; left: calc(50% + 9px); width: 10px; height: 10px; border-radius: 50%; background: var(--gold-light); border: 2px solid var(--card); box-sizing: border-box; }
.tabbar a[aria-current="page"] { color: var(--forest); font-weight: 700; background: var(--green-pale); }

.loading { padding: 40px 20px; text-align: center; color: var(--muted); }
.page { display: flex; flex-direction: column; gap: 22px; padding: 14px 20px 8px; }
.page-head { display: flex; flex-direction: column; gap: 4px; }
.page-title { font: 600 32px/1.1 var(--serif); }
.view-head { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 16px; background: var(--forest); }
.view-title { font: 600 24px/1.2 var(--serif); color: var(--cream); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 20px; font-weight: 700; text-decoration: none; }
.section { display: flex; flex-direction: column; gap: 10px; }
.section h2 { font: 600 22px/1.2 var(--serif); }
.section h3 { font-size: 18px; font-weight: 700; margin-top: 4px; }
.section p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.bullets { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }

/* -- buttons ------------------------------------------------------ */

.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; border: 1.5px solid var(--green); border-radius: 14px; font: 700 18px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline { background: transparent; color: var(--forest); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.btn-note { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }

/* -- cards, chips, facts ----------------------------------------- */

.card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.card-gold { background: var(--gold-pale); border-color: var(--gold-line); display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.fact-label { font-size: 13px; color: var(--muted); }
.fact-value { font-size: 18px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 18px; background: var(--green-pale); color: var(--forest); font-size: 15px; font-weight: 600; }
.chip-flag { background: var(--gold-pale); color: var(--gold-text); border: 1px solid var(--gold-line); }

/* -- a message box ------------------------------------------------ */

.notice { padding: 14px 16px; margin: 14px 20px; border-radius: 14px; background: var(--gold-pale); border: 1px solid var(--gold-line); line-height: 1.45; }
.page .notice { margin: 0; }
.notice-law { background: var(--alert-pale); border-color: var(--alert-line); display: flex; flex-direction: column; gap: 8px; }
.notice-title { font-size: 16px; font-weight: 700; color: var(--alert); }

/* -- pills: toggles, pressed = on --------------------------------- */

.pills { display: flex; gap: 8px; padding: 14px 20px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 22px; background: var(--card); color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.pill[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; font-weight: 700; }

/* -- form field --------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 15px; font-weight: 600; }
.input, .search input, .field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: 17px var(--sans); }
.field textarea { padding: 10px 14px; min-height: 96px; }
.search { display: flex; }
.search input { border: 0; }

/* -- list rows ---------------------------------------------------- */

.list { display: flex; flex-direction: column; padding: 4px 20px 0; }
.row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row:last-child { border-bottom: 0; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--line); }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.row-meta { font-size: 15px; color: var(--muted); }

/* -- a guide's page ---------------------------------------------- */

.hero { display: block; width: 100%; height: 280px; object-fit: cover; background: var(--line); }
.credit { padding: 6px 20px 0; font-size: 13px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.tile-img { width: 100%; height: 120px; border-radius: 14px; object-fit: cover; background: var(--line); }
.tile-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

/* -- score bars: 1 to 5 ------------------------------------------ */

.bars { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 24px; column-gap: 12px; row-gap: 11px; align-items: center; font-size: 16px; }
.bar-row { display: contents; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 8px; border-radius: 4px; background: var(--green); }
.fill-1 i { width: 20%; } .fill-2 i { width: 40%; } .fill-3 i { width: 60%; } .fill-4 i { width: 80%; } .fill-5 i { width: 100%; }
.bar-n { text-align: right; }

@media (min-width: 480px) {
    body { padding: 16px 0; }
    .shell { min-height: calc(100vh - 32px); border-radius: 22px; overflow: hidden; }
    .tabbar { bottom: 16px; border-radius: 0 0 22px 22px; }
}

/* The static intro in plants/index.html (for crawlers) stays hidden for the first 1.5 s, so a normal start,
   where app.js replaces #view at once, never paints it. */
#view > .intro { animation: kd-intro 0s 1.5s both; }
@keyframes kd-intro { from { visibility: hidden; } }

/* The web-only "How it works" block under the scan start, and the desktop QR card (SEO wave 1, 2026-11-20).
   Never drawn in a store app (views-scan.js webInfo); the card shows only on a wide screen with a fine pointer. */
.web-info { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.web-info h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.web-info p { margin: 0 0 10px; color: var(--muted); }
.web-links a { display: inline-block; min-height: 32px; padding: 4px 0; }
.qr-card { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    .qr-card { display: flex; align-items: center; gap: 16px; margin: 16px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
    .qr-card img { flex: 0 0 auto; width: 132px; height: 132px; }
    .qr-card p { margin: 0; }
    .qr-title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
}
