/* IBM Plex Sans (SIL Open Font Licence), self-hosted as on Plant Wiki: one variable file per alphabet range covers 400 to 700.
   optional: on a slow first visit the system font stays rather than the page re-flowing when Plex arrives. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: optional; src: url(/fonts/ibm-plex-sans-latin.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: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: optional; src: url(/fonts/ibm-plex-sans-latin-ext.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; }
/* Landmark Wiki styles: Plant Wiki's tokens, spacing and components, with Landmark's teal as the accent.
   Light and dark follow the device (prefers-color-scheme); every rule below uses the tokens. */
:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #F6F8FA; --ink: #0F1B2D; --text: #24324A; --muted: #526072; --line: #DDE3EA; --line-2: #C2CBD6;
  --accent: #1F6F62; --accent-600: #175A4F; --accent-soft: #E3F1EE; --accent-ink: #FFFFFF; --clay: #B4552E; --good: #2F7D4F; --danger: #B42318; --danger-soft: #FBEAE7; --warn: #F3C969; --warn-ink: #3A2C00;
  --gold: #8A5A0C; --gold-soft: #FBF3E2;
  --nav: #0F1B2D; --nav-ink: #FFFFFF; --nav-muted: #AEB9C8; --nav-field: rgb(255 255 255 / .08); --nav-line: rgb(255 255 255 / .14); --nav-accent: #6FD0BC;
  --me: #2563EB; --on-dark: #FFFFFF;
  --k-landmark: #1F4D45; --k-monument: #7C3AED; --k-historic: #B45309; --k-museum: #0E7490; /* kinds of place on Around me */
  --r-sm: 6px; --r: 8px; --r-lg: 10px;
  --sh-1: 0 1px 2px rgb(15 27 45 / .06); --sh-2: 0 8px 24px rgb(15 27 45 / .10);
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px; --gut: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0B121C; --surface: #111A27; --surface-2: #16212F; --ink: #E6ECF2; --text: #C9D3DE; --muted: #9AA6B4; --line: #233042; --line-2: #34445A;
    --accent: #5CC2AC; --accent-600: #7FD3C0; --accent-soft: #12302B; --accent-ink: #0B121C; --clay: #E88A5F; --good: #6CC48E; --danger: #F97066; --danger-soft: #3A1E1B; --warn: #E3B34F; --warn-ink: #1A1200;
    --gold: #E3B34F; --gold-soft: #33280F; --me: #60A5FA; --k-landmark: #5CC2AC; --k-monument: #A78BFA; --k-historic: #F59E0B; --k-museum: #22D3EE;
    --nav: #070C14; --nav-muted: #9AA6B4; --sh-1: 0 1px 2px rgb(0 0 0 / .3); --sh-2: 0 8px 24px rgb(0 0 0 / .35); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0B121C; --surface: #111A27; --surface-2: #16212F; --ink: #E6ECF2; --text: #C9D3DE; --muted: #9AA6B4; --line: #233042; --line-2: #34445A;
  --accent: #5CC2AC; --accent-600: #7FD3C0; --accent-soft: #12302B; --accent-ink: #0B121C; --clay: #E88A5F; --good: #6CC48E; --danger: #F97066; --danger-soft: #3A1E1B; --warn: #E3B34F; --warn-ink: #1A1200;
  --gold: #E3B34F; --gold-soft: #33280F; --me: #60A5FA; --k-landmark: #5CC2AC; --k-monument: #A78BFA; --k-historic: #F59E0B; --k-museum: #22D3EE;
  --nav: #070C14; --nav-muted: #9AA6B4; --sh-1: 0 1px 2px rgb(0 0 0 / .3); --sh-2: 0 8px 24px rgb(0 0 0 / .35); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; } /* component display rules must never beat the hidden attribute (as Plant Wiki) */
/* The footer sits at the bottom of short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
h1, h2, h3 { color: var(--ink); font-family: var(--sans); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 17px; margin: .8em 0 .3em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.top { position: sticky; top: 0; z-index: 1000; background: var(--nav); color: var(--nav-ink); border-bottom: 1px solid var(--nav-line); }
/* Keep the top bar clear of the status bar and notch (iPhone app, home-screen app, landscape). */
.top { padding-top: env(safe-area-inset-top, 0px); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut); display: flex; gap: 16px; align-items: center; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nav-ink); text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--nav-ink); }
.brand img { border-radius: 8px; box-shadow: var(--sh-1); }
.brand em { color: var(--nav-accent); font-style: normal; }
.site-foot .brand em { color: var(--accent); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; margin-left: auto; min-width: 0; } /* long labels (Tamil) wrap to a second row instead of widening the page */
.navlink { display: inline-flex; align-items: center; gap: 6px; color: var(--nav-muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.navlink:hover { background: var(--nav-field); color: var(--nav-ink); }
.navlink.on { color: var(--nav-ink); background: var(--nav-field); }
.nav-sep { width: 1px; height: 22px; background: var(--nav-line); margin: 0 6px; flex: none; align-self: center; } /* between this wiki's own features and the family's shared menu */
.nav-i { display: none; }
.sharebtn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--nav-line); border-radius: var(--r-sm); background: var(--nav-field); color: var(--nav-ink); cursor: pointer; }
.sister { margin: 8px 0 0; }
main { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 72px; min-height: 70vh; }
.foot { max-width: 980px; margin: 24px auto; padding: 0 16px 32px; font-size: .8rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row[hidden], .sharebtn[hidden] { display: none; }
#huntLink, #nearLink, #tripsLink, .nav .nav-sep { display: none !important; } /* the menu before 20 Nov 2026, still in landmark pages built earlier */
.mine-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -6px 0 14px; font-size: 14px; } .mine-links a { padding: 12px 0; }
.spread { justify-content: space-between; }
/* Buttons as Plant Wiki's: .btn is the primary (filled with the accent), .btn.alt the plain one. */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font: 600 14px/1 var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--accent-ink); }
.btn.alt { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.alt:hover { border-color: var(--muted); background: var(--surface); color: var(--ink); }
.btn.warn { background: var(--danger); border-color: var(--danger); color: var(--accent-ink); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; padding: 0; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; min-height: 40px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
label { display: block; font-size: .875rem; color: var(--muted); margin: 10px 0 4px; }
.map { height: 340px; border-radius: var(--r); border: 1px solid var(--line); margin: 0 0 14px; z-index: 0; }
.map.tall { height: 440px; }
.place { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; text-decoration: none; color: inherit; }
.place img, .place .ph { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); background: var(--line); }
.place :is(h2, h3) { margin: 0 0 2px; font-size: 17px; }
.place p { margin: 0; font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dist { font-size: .8rem; color: var(--clay); font-weight: 600; }
.hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--r); margin: 4px 0 12px; }
img.hero { height: auto; } /* with the width and height the page gives it, the photo's place is held before it loads */
/* The built /l/ pages have no width and height for the photo: a fixed shape (cropped by object-fit) holds its place, or the
   text under it jumped down when it arrived (layout shift 0.17 on a laptop, measured 21 Nov 2026). */
img.hero:not([height]) { aspect-ratio: 16 / 10; }
.article p { margin: 0 0 .9em; }
/* long reading text stays a comfortable line length on a wide screen */
.article p, details > p { max-width: 75ch; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.pill.good { background: var(--good); color: var(--accent-ink); } .pill.bad { background: var(--danger); color: var(--accent-ink); } .pill.acc { background: var(--clay); color: var(--accent-ink); }
.banner { padding: 12px 14px; border-radius: var(--r); background: var(--warn); color: var(--warn-ink); margin: 0 0 14px; }
.leader { font-size: 1.05rem; }
.leader b { color: var(--clay); }
.task { border-top: 1px solid var(--line); padding: 12px 0; }
.task:first-child { border-top: 0; }
.task.done { opacity: .75; }
.big { font-size: 2.2rem; font-weight: 800; letter-spacing: .08em; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.sos { position: fixed; right: 16px; bottom: 16px; z-index: 1100; background: var(--danger); color: var(--accent-ink); border-radius: 999px; padding: 12px 18px; font-weight: 800; border: 0; box-shadow: var(--sh-1); cursor: pointer; }
.stopEd { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.taskEd { display: grid; grid-template-columns: 110px 1fr 70px; gap: 6px; margin: 6px 0; }
.taskEd .wide { grid-column: 1 / -1; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 1200; max-width: calc(100% - 32px); text-align: center; }
#toast.on { opacity: 1; }
.qr img, .qr canvas { width: 160px; height: 160px; background: #FFFFFF; /* a QR code needs a white quiet zone in both schemes */ padding: 8px; border-radius: 8px; }
/* Phones and small tablets (up to 900 px, as Flight and Plant Wiki): the menu becomes a tab bar at the bottom, in thumb reach. */
@media (max-width: 900px) {
  .sharebtn { margin-left: auto; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; margin: 0; gap: 0; justify-content: space-around;
    background: var(--nav); border-top: 1px solid var(--nav-line); padding: 4px 4px max(6px, env(safe-area-inset-bottom)); }
  .navlink { flex: 1 1 0; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 12px; min-width: 0; text-align: center; }
  .navlink span { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; max-width: 100%; }
  .nav-i { display: block; width: 22px; height: 22px; }
  /* The camera in the middle, raised, as Identify is on Plant Wiki */
  #browseLink { order: 1; } #snap { order: 2; } #mineLink { order: 3; } #accountLink { display: none !important; } /* three tabs; Account is under the My landmarks heading */
  #adminLink, #install, .navlink.spec, .nav-sep { display: none !important; } /* the tab bar is the shared menu only */
  #snap { flex: none; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 999px; margin: -20px 6px 2px; box-shadow: 0 4px 14px rgb(0 0 0 / .35); }
  /* The camera says what it does, as the other two tabs do (owner, 21 Nov 2026): the round button sits a little higher
     and its label takes the space under it. */
  #snap { position: relative; margin: -32px 6px 17px; }
  #snap .label { display: block; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; line-height: 1.15; white-space: nowrap; color: var(--nav-muted); }
  /* A long word for Identify must not run into the tabs beside it (Tamil did): it is kept to the space between them.
     Tamil's, the longest, takes two lines, with the button raised a line to make room. */
  #snap .label { max-width: 29vw; overflow: hidden; text-overflow: ellipsis; }
  html[lang^="ta"] #snap { margin-top: -46px; margin-bottom: 31px; }
  html[lang^="ta"] #snap .label { white-space: normal; width: 29vw; text-align: center; }
  #snap.on .label { color: var(--nav-ink); }
  #snap .i { width: 24px; height: 24px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sos { bottom: calc(76px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .taskEd { grid-template-columns: 1fr 70px; }
  .taskEd select { grid-column: 1 / -1; }
  .map { height: 280px; }
}

/* Your position on the map: a labelled blue dot above every marker (as Plant Wiki and Coffee Wiki). */
.leaflet-tooltip.near-you { background: var(--me); color: var(--on-dark); border: 0; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.leaflet-tooltip.near-you::before { border-top-color: var(--me); }
/* Popular cities and place search (Explore, Around me) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.find { margin: 0 0 12px; flex-wrap: nowrap; }

/* Point your camera: the header's main button (as Identify a plant on Plant Wiki) */
.btn.snap { padding: 9px 16px; margin-left: 6px; }
.btn.snap .i { width: 18px; height: 18px; }
@media (max-width: 860px) and (min-width: 561px) { #snap .label { display: none; } #snap { width: 38px; height: 38px; padding: 0; justify-content: center; } }
.nav .navlink.on[data-nav="look"] { background: none; }
/* ---------- Point your camera (ar.js) ---------- */
/* The camera view is dark in both schemes (it sits over the camera picture): its own two tokens. */
.ar, .ar-start { --ar-ink: #FFFFFF; --ar-bg: #000000; }
body.ar-on { overflow: hidden; }
body.ar-on .top, body.ar-on .foot, body.ar-on .nav { display: none; }
.ar { position: fixed; inset: 0; z-index: 1500; background: var(--ar-bg); color: var(--ar-ink); overflow: hidden; touch-action: none; user-select: none; }
.ar.nocam { background: linear-gradient(#1d3557 0%, #3d5a80 55%, #2b3a2e 55%, #1b261d 100%); }
.ar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-labels { position: absolute; inset: 0; pointer-events: none; }
.ar-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 5px 10px 5px 5px; border-radius: 999px;
  background: rgb(15 27 45 / .78); color: var(--ar-ink); text-decoration: none; backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgb(0 0 0 / .35);
  pointer-events: auto; transition: transform .12s linear, background .2s; will-change: transform; }
.ar-label::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 2px; height: 7px; background: rgb(255 255 255 / .7); }
.ar-label img, .ar-label .ar-noimg { flex: none; width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: rgb(255 255 255 / .15); display: grid; place-items: center; }
.ar-label .ar-noimg .i { width: 18px; height: 18px; }
.ar-label span { display: grid; min-width: 0; line-height: 1.2; }
.ar-label b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ar-ink); }
.ar-label small { font-size: 11px; color: var(--nav-accent); }
.ar-label.on { background: var(--accent); outline: 2px solid var(--ar-ink); }
/* Calm labels: only the one you face keeps its picture; the others are slim name-and-distance pills */
.ar-label:not(.on) { padding: 5px 12px; }
.ar-label:not(.on) img, .ar-label:not(.on) .ar-noimg { display: none; }
.ar-reticle { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid rgb(255 255 255 / .7); border-radius: 999px; pointer-events: none; }
.ar-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  background: linear-gradient(rgb(0 0 0 / .55), transparent); }
.ar-btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: rgb(0 0 0 / .45); color: var(--ar-ink); }
.ar-btn:hover { color: var(--ar-ink); }
.ar-status { flex: 1; font-size: 13px; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.ar-heading { flex: none; font: 600 13px/1 var(--sans); padding: 8px 10px; border-radius: 999px; background: rgb(0 0 0 / .45); }
.ar-heading:empty { display: none; }
.ar-start { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--nav); text-align: center; z-index: 2; }
/* Clear of the Photo / Live switch at the bottom (.ar-bottom), and scrollable on a phone held sideways (390px tall): the
   "Use the map instead" line sat under the switch (QA, 17 Nov 2026). */
.ar-start { padding-bottom: calc(24px + 68px + env(safe-area-inset-bottom)); overflow-y: auto; }
@media (max-height: 480px) { .ar-start { place-items: start center; } .ar-start > div > .i { display: none; } .ar-start :is(h1, h2) { margin-top: 0; } }
.ar-start > div { max-width: 380px; }
.ar-start > div > .i { width: 44px; height: 44px; color: var(--nav-accent); }
.ar-start :is(h1, h2) { color: var(--ar-ink); font-size: 24px; margin: 12px 0 8px; }
.ar-start p { color: var(--nav-muted); }
.ar-start a { color: var(--nav-accent); }
.ar-start button { min-height: 48px; padding: 0 28px; font-size: 16px; }
.ar-card { position: absolute; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: flex; gap: 12px;
  padding: 12px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.ar-card img { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.ar-card-body { min-width: 0; display: grid; gap: 2px; }
.ar-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.ar-card b { color: var(--ink); font-size: 17px; line-height: 1.25; }
.ar-card small { color: var(--muted); font-size: 12px; }
.ar-card p { margin: 4px 0 6px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-card .actions { margin: 0; }

.ar-shutter { position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 2px solid var(--ar-ink); border-radius: 999px; background: rgb(15 27 45 / .7); color: var(--ar-ink); font: 600 15px var(--sans); cursor: pointer; backdrop-filter: blur(6px); }
.ar-shutter .i { width: 20px; height: 20px; }
.ar-shutter:disabled { opacity: .7; }
.ar-card .btn.sm, .ar-card button.sm { padding: 7px 12px; font-size: 13px; }
.ar-card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ar-card img { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.ar button.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--sans); cursor: pointer; }
.ar-card .btn.sm { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.ar-card button.sm:not(.primary) { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ar-card .i, .ar-start .i { flex: none; }
/* Around me: kinds of place (landmarks, monuments & memorials, historic sites, museums) and the follow-me button */
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
button.chip { font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.kdot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.pill.kind { background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--k); font-weight: 600; }
.ph.kph { display: grid; place-items: center; background: var(--surface-2); }
.ph.kph .i { width: 32px; height: 32px; }
.map-wrap { position: relative; }
.map-follow { position: absolute; right: 10px; bottom: 26px; z-index: 500; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--me); box-shadow: var(--sh-1); cursor: pointer; }
/* The shutter sits just above the card, in one column at the bottom, so neither covers the other */
.ar-bottom { position: absolute; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.ar-bottom > * { pointer-events: auto; }
.ar-bottom .ar-card { position: static; width: 100%; }
.ar-bottom .ar-shutter { position: static; transform: none; }
/* The card's fold (ar.js showCard): one slim line while looking around, so the view stays clear for a photo */
.ar-bottom .ar-card { position: relative; left: auto; right: auto; bottom: auto; }
.ar-bottom .ar-card .ar-card-body { flex: 1; }
.ar-cardfold { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ar-cardfold svg { width: 20px; height: 20px; transition: transform .15s; }
.ar-card.ar-mini .ar-cardfold { top: 50%; transform: translateY(-50%); }
.ar-card.ar-mini .ar-cardfold svg { transform: rotate(180deg); }
.ar-card.ar-mini { padding: 8px 8px 8px 8px; align-items: center; cursor: pointer; }
.ar-card.ar-mini img { width: 40px; height: 40px; border-radius: 8px; }
.ar-card.ar-mini .ar-card-body { gap: 0; }
.ar-card.ar-mini .ar-kicker, .ar-card.ar-mini p, .ar-card.ar-mini .actions { display: none; }
.ar-card.ar-mini b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-card.ar-mini small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Live view | Photo: the camera's two modes, one tap apart (ar.js, identify.js) */
.cam-modes { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 14px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.cam-modes a { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.cam-modes a[aria-current] { background: var(--accent); color: var(--accent-ink); } /* white on the dark theme's light teal was 2.1:1 */
.cam-modes.on-dark { margin: 12px auto 0; background: rgb(0 0 0 / .45); border-color: rgb(255 255 255 / .25); }
.cam-modes.on-dark a { color: rgb(255 255 255 / .85); }
.cam-modes.on-dark a[aria-current] { background: #fff; color: #111; }
/* "What is this?" and the round take-a-photo button (ar.js takePhoto), side by side */
.ar-shots { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ar-photo { flex: none; width: 62px; height: 62px; padding: 4px; border: 3px solid #fff; border-radius: 50%; background: rgb(0 0 0 / .2); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .35); }
.ar-photo span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.ar-photo:active span { transform: scale(.88); }
.ar-photo.busy { border-style: dashed; border-color: var(--accent); animation: ar-spin 1.4s linear infinite; }
.ar-photo.busy span { opacity: .55; }
@keyframes ar-spin { to { transform: rotate(360deg); } }
.ar.flash::after { content: ''; position: absolute; inset: 0; z-index: 6; background: #fff; pointer-events: none; animation: ar-flash .35s ease-out forwards; }
@keyframes ar-flash { from { opacity: .75; } to { opacity: 0; } }

/* ---------- Same flow as Plant Wiki and Coffee Wiki ---------- */
/* Header search */
.top .search { flex: 1; min-width: 0; max-width: 420px; position: relative; margin: 0; }
.top .search > .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--nav-muted); pointer-events: none; }
.top .search input { padding: 8px 40px 8px 36px; min-height: 38px; border-radius: var(--r-sm); background: var(--nav-field); border: 1px solid var(--nav-line); color: var(--nav-ink); }
.top .search input::placeholder { color: var(--nav-muted); }
/* Home */
.intro { padding: 20px 0 8px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
/* The home globe (globe.js), as on Plant Wiki */
.globe-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); padding: 16px; min-width: 0; max-width: 420px; width: 100%; justify-self: end; }
.globe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.globe-head h2 { font-size: 18px; font-weight: 600; margin: 0; color: var(--ink); }
.globe-head span { color: var(--muted); font-size: 13px; }
/* The counts above a globe are links to the lists they count: in the caption's own colour, underlined. */
.globe-head span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.globe-head span a:hover { color: var(--ink); }
.globe { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 6px auto 4px; contain: size; } /* stays square whatever size the canvas starts at */
.globe canvas { display: block; }
.globe:empty::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--surface-2), var(--line)); }
.globe.off::after { content: 'The globe could not load.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.globe-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; white-space: nowrap; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 13px; box-shadow: var(--sh-1); z-index: 2; }
.globe-cap { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .globe-card { justify-self: stretch; max-width: none; }
  .globe { width: min(100%, 340px); }
}
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.intro h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 0 0 12px; }
.intro h1 span { color: var(--accent); }
.lede { font-size: 1.05rem; max-width: 620px; margin: 0 0 20px; }
.bigsearch { display: flex; gap: 8px; align-items: center; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--sh-1); max-width: 640px; }
.bigsearch > .i { margin-left: 10px; color: var(--muted); }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; }
.bigsearch input:focus { outline: none; }
.near-link { margin: 14px 0 0; }
.near-link a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scenario { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; }
.scenario:hover { border-color: var(--accent); }
.scenario .i { width: 22px; height: 22px; color: var(--accent); }
.scenario b { color: var(--ink); }
.scenario span { color: var(--muted); font-size: .9rem; }
.btn .i { width: 18px; height: 18px; }
/* Footer */
.site-foot { max-width: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 32px 16px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-in p { margin: 10px 0 0; color: var(--muted); max-width: 340px; }
.foot-in h4, .foot-in .foot-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-in nav a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.foot-in nav a:hover { color: var(--accent); }
.site-foot .brand { color: var(--ink); }
.langpick { display: grid; gap: 4px; margin: 8px 0 0; font-size: .85rem; }
.langpick select { max-width: 200px; padding: 6px 10px; }
.legal { max-width: 1200px; margin: 0 auto; padding: 14px 16px 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child { grid-column: 1 / -1; } }
/* Phones: brand, search and Share on one row; the tab bar is Browse, Landmark Quest, the camera, My landmarks, Account (as Plant Wiki) */
@media (max-width: 560px) {
  /* A landmark page's two buttons, one under the other at one width (Claude-admin docs/UI-RULES.md U1, U2). */
  main > .row:has(> a.btn + a.btn.alt) > .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .top-in { gap: 10px; }
  .brand span { display: none; }
  .top .search { max-width: none; }
  .sharebtn { margin-left: 0; }
  .bigsearch { flex-wrap: wrap; }
  .bigsearch input { flex-basis: calc(100% - 40px); }
  .bigsearch .btn { flex: 1; justify-content: center; }
  .scenarios { grid-template-columns: 1fr 1fr; }
}
/* As Plant Wiki: the header search makes room for the menu (the camera button shrinks to its icon on mid-size screens),
   and steps aside while the home page's big search is on screen */
.top .search { min-width: 150px; transition: opacity .2s; }
@media (max-width: 1200px) and (min-width: 901px) { #snap .label { display: none; } #snap { width: 38px; height: 38px; padding: 0; justify-content: center; } .top .search { min-width: 120px; } .navlink { padding: 8px 7px; } .top-in { gap: 12px; } }
@media (max-width: 1040px) and (min-width: 901px) { .top .brand span { display: none; } } /* the logo alone, so the full menu still fits */
body.intro-visible .top .search { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .top .search { min-width: 0; } }
.scenarios { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Google Play badge in the footer; hidden inside the Play app itself (opened with ?source=twa). */
.play-badge { display: block; width: max-content; margin: 12px 0 0 -8px; border-radius: 10px; }
.play-badge img { display: block; height: 52px; width: auto; }
.in-app .play-badge { display: none; }

/* Header: the camera inside the search (as Plant Wiki), Install app, and the main button filled with the accent */
.camsearch { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--nav-muted); }
.camsearch:hover { color: var(--nav-ink); background: var(--nav-field); }
#install { min-height: 38px; padding: 0 12px; border: 1px solid var(--nav-line); border-radius: var(--r-sm); background: var(--nav-field); color: var(--nav-ink); font: 600 14px/1 var(--sans); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 1200px) { #install .label { display: none; } }
.btn.snap { min-height: 38px; }
.nav .navlink.on[data-nav="look"], .btn.snap.on { background: var(--accent); }
/* Pages: headings, segmented controls, sub-navigation and the admin pages, as on Plant Wiki */
.page-head { margin: 4px 0 18px; }
.page-head p { margin: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-title h2 { margin: 0; font-size: 24px; }
.section-title a { font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sec-sub { margin: -6px 0 14px; font-size: 14px; }
.inline-select { field-sizing: content; width: auto; font: inherit; color: var(--accent); border: 0; border-bottom: 2px dashed var(--line-2); border-radius: 0; background: transparent; padding: 0 4px; min-height: 0; cursor: pointer; max-width: 60vw; }
.inline-select:focus { box-shadow: none; border-bottom-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 16px; }
.seg button { border: 0; border-radius: 0; min-height: 44px; padding: 0 14px; font: 600 13px/1 var(--sans); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.3; color: var(--muted); max-width: 540px; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stats b { display: block; font: 600 22px/1.15 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
/* A home figure is a link to the list it counts (Browse, Popular cities, the language picker): the whole tile is the
   link and the number takes the link colour. */
.stats li { position: relative; }
.stats li > a { color: inherit; text-decoration: none; }
.stats li > a::after { content: ''; position: absolute; inset: -1px; border-radius: 12px; }
.stats li > a b { color: var(--accent); }
.stats li > a:hover::after, .stats li > a:active::after { box-shadow: inset 0 0 0 1px var(--accent); }
.stats li > a:focus-visible { outline: none; }
.stats li > a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .stats { gap: 6px; } .stats li { padding: 8px; text-align: center; font-size: 12px; } .stats b { font-size: 19px; } }
/* Landmark cards (home rows and Browse), as Plant Wiki's plant cards */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.lgrid.shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); color: inherit; }
.lcard .ph { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; color: var(--line-2); }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard .ph .i { width: 40px; height: 40px; stroke-width: 1.2; }
.lcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.lcard b { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.lcard i { color: var(--muted); font-size: 13px; font-style: normal; }
@media (max-width: 760px) { .lgrid, .lgrid.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .lgrid.shelf > :nth-child(n+5) { display: none; } .lcard .body { padding: 10px 11px 12px; } }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); }
.empty .i { width: 32px; height: 32px; color: var(--line-2); display: block; margin: 0 auto 8px; }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin: 0 0 14px; }
.notice.warn { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.subnav a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.subnav a.console { margin-left: auto; color: var(--accent); font-size: 14px; }
@media (max-width: 520px) { .subnav { flex-wrap: wrap; } .subnav a.console { margin-left: 0; } }
/* Plans on the Account page, the same four in every wiki */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.plan.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan b { color: var(--ink); font-size: 16px; }
.plan .price { font-size: 13px; color: var(--muted); }
.plan p { margin: 0; font-size: 14px; flex: 1; }
@media (display-mode: standalone) { .top-in { padding-top: max(10px, env(safe-area-inset-top)); } }
/* ---------- Admin pages (Dashboard, People and data): Plant Wiki's, clay accent ---------- */
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.dash-line { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.dash-top .statctl { display: flex; gap: 8px; margin: 0; flex-direction: row; }
.dash-sec .schart { display: block; width: 100%; max-height: 190px; }
.dash-top .statctl input, .dash-top .statctl button { min-height: 34px; font-size: 13px; }
.dash-title { font-size: clamp(26px, 3vw, 32px); margin: 6px 0 8px; }
.dash-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.pill.watch { background: var(--gold-soft); color: var(--gold); }
.pill.flat { background: var(--surface-2); color: var(--muted); }
.delta { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.up { background: var(--accent-soft); color: var(--accent); }
.delta.down { background: var(--danger-soft); color: var(--danger); }
.delta.flat { background: var(--surface-2); color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; justify-items: start; }
.tile .tv { font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.tile .tl { font-size: 13px; color: var(--muted); }
.dash-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.dash-sec h2 { font-size: 17px; margin: 0 0 10px; }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 220px) 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .hb { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar .hb i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.mini b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.mini span { font-size: 13px; color: var(--muted); }
.mini .spark { display: block; margin-top: 4px; max-width: 100%; }
.dash-more { margin: 4px 0 16px; }
/* The admin pages' one accent is clay, light and dark. */
.adm { --accent: #c6613f; --accent-600: #a94f30; --accent-soft: #F6E5DE; --accent-ink: #FFFFFF; --good: #1F7A4D; --good-soft: #E5F1EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .adm { --accent: #d97757; --accent-600: #e58f72; --accent-soft: #3A2219; --accent-ink: #1A0F0A; --good: #3FA36B; --good-soft: #15291F; } }
:root[data-theme="dark"] .adm { --accent: #d97757; --accent-600: #e58f72; --accent-soft: #3A2219; --accent-ink: #1A0F0A; --good: #3FA36B; --good-soft: #15291F; }
/* Green still means good: rises and all-clear pills keep the leaf green. */
.adm .delta.up, .adm .pill.good { background: var(--good-soft); color: var(--good); }
.dash-more > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .dash-two { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr auto; }
  .hbar .hb { grid-column: 1 / -1; grid-row: 2; }
  .hbar .delta { display: none; }
}
.tag { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--danger-soft); color: var(--danger); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.mailpreview { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--r); background: #FFFFFF; /* the email preview is a white email in both schemes */ }
.statctl { display: flex; gap: 8px; align-items: center; }
.schart { width: 100%; height: auto; display: block; }
.schart text { font: 10px var(--sans); fill: var(--muted); }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl.compact td, .tbl.compact th { padding: 7px 10px; }
.tbl .sub { display: block; font-size: 12px; color: var(--muted); }
.tbl select { min-height: 30px; padding: 2px 8px; font-size: 13px; }
.tbl tr.paused td { opacity: .6; }
button.xs { min-height: 26px; padding: 0 8px; font-size: 12px; }
.modimg { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 4px; }
button.sm, .tbl button { min-height: 30px; padding: 0 10px; font-size: 13px; }
.adm button:not(.btn):not(.linkish) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; }
/* Browse: ways to browse (lenses), as Plant Wiki's */
.browse-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2px 16px 0; margin-bottom: 12px; }
.lenses { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; }
.lenses::-webkit-scrollbar { display: none; }
.lenses button { flex: none; border: 0; border-radius: 0; background: none; min-height: 44px; padding: 0 12px; color: var(--muted); border-bottom: 2px solid transparent; font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.lenses button:hover { color: var(--ink); }
.lenses button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.bar { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; min-height: 24px; }
#further { margin-top: 32px; }
/* Landmark Quest: map and the side list, then your races as a timeline */
.hunt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hunt-grid .map { margin: 0; }
.hunt-side .card h2 { font-size: 18px; }
.timeline { list-style: none; padding: 0 0 0 14px; margin: 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
@media (max-width: 900px) { .hunt-grid { grid-template-columns: 1fr; } .hunt-side { order: -1; } } /* phones: join and organise first, the map below */
/* My landmarks: the globe */
.mine-globe-card { max-width: 420px; margin: 0 auto; justify-self: center; }
.mine-globe-card .globe { width: min(100%, 340px); max-height: 340px; }
/* A landmark's page: quick answers and improve */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 14px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; }
.faq details p { margin: 0 0 12px; }
.tbl th { width: 30%; }
.improve { margin-top: 32px; border-top: 1px solid var(--line); }
/* Share sheet and account */
.sharedlg { border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(440px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: var(--sh-2); }
.sharedlg::backdrop { background: rgb(0 0 0 / .45); }
.sharedlg h2 { margin: 0 0 4px; }
.shares { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.shares .btn.wa { background: #1DA851; border-color: #1DA851; color: #FFFFFF; } /* each network's own colour */
.shares .btn.li { background: #0A66C2; border-color: #0A66C2; color: #FFFFFF; }
.shares .btn.tg { background: #229ED9; border-color: #229ED9; color: #FFFFFF; }
.signedin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.signedin > span { margin-right: auto; overflow-wrap: anywhere; }
@media (max-width: 560px) { .sharedlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; } }
.plan .pill { align-self: flex-start; }
@media (max-width: 560px) { .navlink { padding: 6px 0; letter-spacing: -.01em; } }
.mini-more { grid-column: 1 / -1; }
.mini-more > summary { list-style: none; cursor: pointer; display: inline-block; }
.mini-more > summary::-webkit-details-marker { display: none; }
.mini-more > summary span::after { content: ' ▾'; }
.mini-more[open] > .mini { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }

/* Speed: the page holds its place while it loads, so the footer doesn't jump (CLS), as on Plant Wiki. */
main#view { min-height: calc(100vh - 58px); }
/* A drawn trip list drops the screen-tall filler on a laptop too: the footer sits under a short list, not a screen below it (O022). */
main#view:has(.tj) { min-height: 0; }
/* While a page is being drawn (app.js route, and index.html for the first one) the footer is not shown, so it cannot jump. */
.view-busy .site-foot { display: none; }
/* The pre-drawn home hero (index.html) is part of the first layout on the home page only. */
.pre-off #preHero { display: none; }
/* Pre-drawn first screens of Browse, Landmark Quest and My landmarks (index.html), shown for their own route only. */
.pre { display: none; }
html[data-pre="browse"] .pre[data-pre="browse"], html[data-pre="map"] .pre[data-pre="map"], html[data-pre="mine"] .pre[data-pre="mine"] { display: block; }
/* Inside the Google Play app, Play's rules allow only Play Billing for digital purchases: no Stripe checkout there. */
.in-app [data-plan] { display: none; }

/* Adapting to each person (public/adaptive.js, public/landmark-adapt.js): reason lines, home cards, For you,
   folded story sections, the note after a save, Personalisation. Theme tokens only, as everywhere. */
.why { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: none; }
.why:hover { color: var(--accent); text-decoration: underline; }
.why-row { margin: 6px 0 0; }
.why-row:empty { display: none; }
.why-line { display: block; font-size: 12px; color: var(--muted); text-decoration: none; }
.why-line:hover { color: var(--accent); }
.fy-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fy-card .lcard { flex: 1; }
.fy-card .notforme { align-self: flex-start; min-height: 26px; font-size: 12px; border: 1px solid var(--line); cursor: pointer; }
@media (max-width: 760px) { .lgrid.shelf > .fy-card:nth-child(n+5) { display: none; } }
.home-cards:empty { display: none; }
/* Today card (public/adaptive.js draws the frame; section 11.2), above the home cards in the hero */
/* What to do next (public/adaptive.js draws the card; section 12.4): first on home, and at the top of Account once signed in */
.steps-slot { margin: 0; max-width: 640px; } .steps-slot:empty { display: none; } .steps-slot .pz-steps { margin: 0; }
/* The card of what to do next arrives about two seconds after Account is drawn and pushed everything under it down by its
   own height (layout shift 0.27 on a phone on 4G). Its place is held until it is drawn (measured 21 Nov 2026: 341px on a laptop, 411px on a phone). */
.steps-slot.is-wait, .steps-slot.is-wait:empty { display: block; min-height: 341px; }
@media (max-width: 700px) { .steps-slot.is-wait, .steps-slot.is-wait:empty { min-height: 411px; } }
.today-slot { margin: 14px 0 0; max-width: 640px; } .today-slot:empty { display: none; } .today-slot .today-card { margin: 0; }
/* The Today card waits for the landmark list, then pushed the whole of Browse down by its height (layout shift 0.23 on a
   phone on 4G). Its place is held at about its usual height (219 to 319px across widths, measured 21 Nov 2026) until
   it is drawn; a card a little taller or shorter moves the page a little, not by its whole height. */
#view .today-slot:empty:not([data-none]) { display: block; min-height: 280px; border-radius: 14px; background: var(--surface, rgba(127,127,127,.06)); }
@media (min-width: 700px) { #view .today-slot:empty:not([data-none]) { min-height: 230px; } }
.today-card .i, .pz-btn .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.home-cards { display: grid; gap: 8px; margin: 14px 0 0; max-width: 640px; }
.home-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.home-card > span { flex: 1 1 220px; color: var(--text); }
.home-card .i { flex: none; color: var(--accent); }
.home-card .linkish { font-size: 18px; text-decoration: none; padding: 0 4px; }
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; display: block; max-width: none; }
.trip-card .section-title h2 { font-size: 18px; }
.chip.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); cursor: pointer; }
.chip.primary:hover { background: var(--accent-600); color: var(--accent-ink); }
button.chip { cursor: pointer; font-family: inherit; }
.bigsearch.cam-first #heroCam { order: -1; }
@media (max-width: 560px) { .bigsearch.cam-first #heroCam { flex-basis: 100%; } }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { display: inline-flex; align-items: center; gap: 6px; }
details.fold > summary h3::after { content: "\25BE"; font-size: 12px; color: var(--muted); }
details.fold:not([open]) > summary h3::after { content: "\25B8"; }
.save-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200; width: min(560px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.save-note[hidden] { display: none; }
.save-note > span:first-child { flex: 1 1 200px; }
.save-note .offer { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.save-note { padding-right: 40px; }
.save-note [data-close] { position: absolute; top: 8px; right: 10px; font-size: 18px; text-decoration: none; }
@media (max-width: 900px) { .save-note { bottom: calc(80px + env(safe-area-inset-bottom)); } }
#personalisation h3 { margin-top: 0; }
#personalisation h4 { margin: 14px 0 4px; font-size: 14px; color: var(--ink); }
#personalisation select { max-width: 100%; width: auto; }
#personalisation .geo, #emails .geo { display: flex; gap: 8px; align-items: flex-start; color: var(--text); min-height: 40px; }
#personalisation .geo input, #emails .geo input { width: auto; min-height: 0; margin-top: 3px; }
.pers-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.pers-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#personalisation .actions { margin-top: 12px; }
#personalisation .actions button { font: inherit; padding: 8px 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--r-sm); cursor: pointer; }
#personalisation { scroll-margin-top: 80px; }

/* ---- The home globe, as Flight Wiki's (10 Nov 2026): the same stage, size, colours and dots on all five wikis ----
   A frameless night-blue stage beside the introduction (Flight's .globe-wrap), always in the dark set like Flight's.
   globe.js sizes the Earth to 91.5% of the stage's shorter side, as Flight's overview camera does. */
:is(.intro, .home-hero, .hero) > .globe-card {
  --bg: #0B121C; --surface: #111A27; --surface-2: #16212F; --card: #111A27; --ink: #E6ECF2; --text: #E1E8F0; --muted: #9AA6B4;
  --line: #233042; --line-2: #34445A; --rule: #233042; --rule-strong: #34445A;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; justify-self: stretch;
  width: 100%; max-width: none; min-height: min(660px, max(460px, calc(100vh - 150px))); padding: 16px; overflow: hidden;
  color: var(--text); background: radial-gradient(ellipse at center, #152038 0%, #0B121C 70%); border: 1px solid #1A2638; border-radius: 22px; box-shadow: none;
}
:is(.intro, .home-hero, .hero) > .globe-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(11, 18, 28, 0), rgba(11, 18, 28, 0.88)); }
:is(.intro, .home-hero, .hero) > .globe-card > :not(.sr-only) { position: relative; z-index: 2; }
:is(.intro, .home-hero, .hero) > .globe-card > .globe { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; max-width: none; aspect-ratio: auto; margin: 0; }
:is(.intro, .home-hero, .hero) > .globe-card > .globe-head { position: absolute; top: 14px; left: 18px; right: 18px; }
:is(.intro, .home-hero, .hero) > .globe-card .globe-head h2 { color: var(--ink); text-shadow: 0 1px 3px #0B121C; }
:is(.intro, .home-hero, .hero) > .globe-card .globe-cap { font-size: 12px; line-height: 1.45; min-height: 0; margin: 8px 0 0; color: var(--muted); text-shadow: 0 1px 2px #0B121C; }
/* Until the 3D library loads: Flight Wiki's still Earth, the same size as the globe that replaces it. */
:is(.intro, .home-hero, .hero) > .globe-card > .globe:empty::before { content: ""; position: absolute; inset: auto; left: 50%; top: 50%;
  width: auto; height: min(91.5%, 91.5cqw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 66%, rgba(110, 168, 254, 0.28) 70.5%, transparent 71%),
    radial-gradient(circle at 65% 70%, rgba(0, 0, 0, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 35% 30%, #2b5c9c 0%, #17345e 38%, #0b1a33 70%, #060d1a 100%); }
:is(.intro, .home-hero, .hero) > .globe-card > .globe { container-type: size; }
@media (min-width: 861px) {
  :is(.intro, .home-hero, .hero):has(> .globe-card) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
/* Phones: Flight Wiki's globe band (same height and camera), the title on it, the chips and caption under it. */
@media (max-width: 860px) {
  :is(.intro, .home-hero, .hero) > .globe-card { display: block; min-height: 0; padding: 0 16px 14px; }
  :is(.intro, .home-hero, .hero) > .globe-card::after { display: none; }
  :is(.intro, .home-hero, .hero) > .globe-card > .globe { position: relative; inset: auto; width: auto; height: clamp(280px, min(92vw, 46vh), 420px); margin: 0 -16px 6px; }
  :is(.intro, .home-hero, .hero) > .globe-card > .globe-head { top: 12px; left: 16px; right: 16px; }
}

/* Card grids use a 16px gap on a wide screen, as on the other wikis (Plant, Fish, Coffee). */
@media (min-width: 761px) { .lgrid { gap: 16px; } }

/* Name boxes and menus are 40px tall, as on the other wikis (they were 43px from the taller line height). */
input, select { line-height: 20px; }

/* Sign-in card, the same in every wiki of the family (WIKI-HARMONY 4a) */
.signin-card p { margin: 0 0 12px; }
.signin-card .gbtn { display: inline-flex; align-items: center; gap: 10px; }
.gmark { width: 18px; height: 18px; flex: none; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; } /* Google's mark sits on white */
.signin-status { margin: 8px 0 4px !important; color: var(--danger); }
.signin-status:empty { margin: 0 !important; }

/* Weather for sightseeing (public/weather.js): one line on a landmark's page, a trip day's order on My landmarks → Trips. */
.wx-line { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); line-height: 1.45; }
.wx-line[hidden] { display: none; }

/* Identify from a photo (#/identify, public/identify.js) */
.idf { max-width: 720px; }
.idf #idfOut:not(:empty) + .idf-intro { display: none; } /* an answer is showing: it has its own Take another photo */
/* The Live view | Photo switch shows only the mode you are not in, and not at all on the live camera's start screen,
   which already says "Take a photo instead" (20 Nov 2026). */
.cam-modes a[aria-current] { display: none; }
.ar-start:not([hidden]) ~ .ar-bottom .cam-modes { display: none; }
.idf-pick { margin: 16px 0 8px; }
.idf-auto { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; cursor: pointer; }
#idfOut { display: grid; gap: 14px; }
#idfOut .idf-result { margin-top: 0; }
.idf-again label.link { cursor: pointer; color: var(--accent); text-decoration: underline; }
.idf-card .row label.btn { cursor: pointer; }
.idf-mode { margin: 4px 0 10px; }
.idf-pick .btn { cursor: pointer; }
.idf-result { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 16px; align-items: start; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.idf-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; background: var(--line); }
.idf-card h2 { margin: 2px 0 4px; }
.idf-card p { margin: 0 0 10px; }
.idf-card .row { margin-top: 6px; }
.idf-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.idf-status { color: var(--muted); }
.idf-again { margin-top: 12px; }
@media (max-width: 560px) { .idf-result { grid-template-columns: 1fr; } .idf-photo { max-height: 260px; } }

/* The globe's live tip (local time, day or night, best months), fly-to box, info line and trip legend (16 Nov 2026) */
.globe-tip b, .globe-tip small { display: block; }
.globe-tip small { color: var(--muted); font-size: 12px; }
.globe-fly { display: flex; gap: 8px; margin: 0 0 6px; }
.globe-fly input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.globe-fly .chip { cursor: pointer; }
.globe-info { margin: 0 0 4px; font-size: 13px; color: var(--text); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.globe-info[hidden] { display: none; }
.globe-info span { color: var(--muted); }
.globe-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.globe-legend:empty { display: none; }
.globe-play { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.globe-play[hidden] { display: none; }
.idf-kinds { font-size: 22px; letter-spacing: 6px; margin: 0 0 6px; }
.globe-legend .chip { cursor: pointer; gap: 6px; }
.globe-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Phones: a short gap between a page's last item and the footer (24px, was 112px). A trip page drops the screen-tall
   filler too (signed in, not indexed), so a short trip doesn't leave an empty screen above the footer. */
@media (max-width: 900px) {
  main#view { padding-bottom: 24px; }
  .site-foot { margin-top: 0; }
  main#view { min-height: 0; } /* no screen-tall filler: the footer sits 24px under the last item (the page is already drawn when it loads) */
  .intro { padding-bottom: 0; }
  .foot-in { padding-top: 24px; }
  .improve { margin-top: 24px; }
  .improve > h2 { margin-top: 20px; }
}

/* Laptops and desktops: about 64px between a page's last item and the footer (was 126px). */
@media (min-width: 901px) {
  main#view { padding-bottom: 40px; }
  .site-foot { margin-top: 24px; }
}

/* Nothing spills out of its box on narrow phones or with long labels (Tamil, Malay): button labels wrap instead of
   overflowing, section "See all" links wrap under their heading, and the List/Globe/Trips switch shrinks to fit. */
.btn { white-space: normal; text-align: center; overflow-wrap: anywhere; max-width: 100%; line-height: 1.2; padding-top: 4px; padding-bottom: 4px; }
/* …except the header's own buttons (Identify, Install app): they keep their width and stay on one line, never
   squeezed to a letter-wide column when the menu is crowded (signed in as admin, a zoomed browser). */
.top .btn, .top #install { flex: none; white-space: nowrap; overflow-wrap: normal; }
.section-title { flex-wrap: wrap; }
.section-title a { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; }
.seg { max-width: 100%; }
.seg button { flex: 1 1 auto; min-width: 0; text-align: center; overflow-wrap: anywhere; line-height: 1.2; }
/* Long words (Tamil) break instead of running past their box: the home figures and the trip journal's sign-in
   button. break-word only acts when a word can't fit, so English is unchanged. */
body { overflow-wrap: break-word; }
.stats li, .stats span, .stats b { overflow-wrap: break-word; } /* between words, as Plant: "anywhere" split Tamil labels mid-word */
@media (max-width: 360px) { .stats li { padding: 8px 4px; } }
@media (max-width: 560px) { html[lang=ta] .stats li { font-size: 11px; padding-left: 4px; padding-right: 4px; } } /* Tamil's longest label word (பக்கங்களுடன்) fits a third of a phone screen at 11px */
body .tj-hub .tj-btn { min-width: min(100%, 100px); } /* too narrow beside the text: drops to its own line */

/* Phones: every stand-alone link and button at least 32px tall (44px for the footer lists), form fields at 16px so
   iPhones don't zoom in, and reading text at 16px (QA 17 Nov 2026). */
@media (max-width: 600px) {
  html body footer nav a { display: flex; align-items: center; min-height: 44px; }
  html body :is(.camsearch, .today-head button) { min-width: 36px; min-height: 36px; }
  html body .chip { min-height: 36px; }
  html body :is(.section-title, .near-link, p.small) a { display: inline-block; padding-block: 8px; }
  html body :is(input, select, textarea, #langPick, #unitsPick) { font-size: 16px; }
  html body main p, html body main li, html body .sec-sub, html body .globe-cap, html body :is(.intro, .home-hero, .hero) > .globe-card .globe-cap { font-size: 16px; }
  html body :is(select, select.inline-select) { min-height: 36px; }
}

/* Phones, second pass (QA 17 Nov 2026): small notes at 16px, the map buttons at least 34px. */
@media (max-width: 600px) {
  html body main p.muted.small, html body p.muted.small { font-size: 16px; }
  html body .leaflet-touch .leaflet-bar a, html body .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; }
  html body .brand { min-width: 36px; min-height: 36px; }
}

/* Phones, third pass (QA 18 Nov 2026): the map's credit links and zoom buttons are big enough to tap, and the trip
   journal's grey lines are read at 16px like the rest. */
@media (max-width: 600px) {
  html body .leaflet-control-attribution a { display: inline-block; padding: 9px 5px; min-height: 32px; box-sizing: border-box; }
  html body .leaflet-touch .leaflet-bar a, html body .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  html body .tj-meta, html body .tj-card p, html body .plan p { font-size: 16px; }
}

/* Running text stops at about 75 characters a line on wide screens (QA 18 Nov 2026). */
@media (min-width: 700px) {
  html body main :is(p, li) { max-width: 75ch; }
}

/* PC screens: text one size bigger (owner, 18 Nov 2026, as on nightingaley.com); phones and tablets unchanged.
   Under zoom, vh grows with the page, so heights tied to the window divide by the zoom. The globe keeps 1x:
   globe.gl maps clicks against its unzoomed size, so under zoom taps would miss the dots. */
@media (min-width: 1200px) {
  html { zoom: 1.1; }
  :focus-visible { outline-width: 3px; }
  .globe { zoom: 0.9091; }
  body { min-height: calc(100vh / 1.1); }
  main#view { min-height: calc(100vh / 1.1 - 58px); }
  :is(.intro, .home-hero, .hero) > .globe-card { min-height: min(660px, max(460px, calc(100vh / 1.1 - 150px))); }
}
@media (min-width: 1600px) {
  html { zoom: 1.2; }
  .globe { zoom: 0.8333; }
  body { min-height: calc(100vh / 1.2); }
  main#view { min-height: calc(100vh / 1.2 - 58px); }
  :is(.intro, .home-hero, .hero) > .globe-card { min-height: min(660px, max(460px, calc(100vh / 1.2 - 150px))); }
}

/* A search hint that is longer than the box ends in an ellipsis instead of stopping mid-word (19 Nov audit). */
input[type=search], input[type=text], input:not([type]) { text-overflow: ellipsis; }

/* Phones (owner, 21 Nov 2026): the globe is the last row of the home page, so the first paint leaves it out and the
   name stands beside the logo while the header's search is out of the way. */
@media (max-width: 860px) { #preHero > .globe-card { display: none; } .intro.intro-globe { padding-top: 8px; }
  /* Until the first row arrives the introduction holds a screen, so the footer doesn't show and then jump away. */
  .intro:not(.intro-globe):not(:has(~ .home-sec)) { min-height: calc(100vh - 58px); align-content: start; } }
@media (max-width: 560px) { body.intro-visible .top .brand span { display: inline; } }

/* Sizes check (QA 21 Nov 2026): the search box of a place may shrink below its default width (it widened the page on a 280px
   fold); the header's small controls, the footer lists and the Sign out link are finger-sized on touch screens at any width;
   the bottom tab bar steps aside while a text box has the keyboard up, so the box and the keys are not squeezed by it. */
.find input { min-width: 0; }
@media (pointer: coarse) {
  html body :is(.camsearch, .today-head button, .brand) { min-width: 44px; min-height: 44px; }
  html body .top .search input { min-height: 44px; }
  html body :is(select, select.inline-select, #langPick, #unitsPick) { min-height: 44px; }
  html body .foot-in nav a { display: flex; align-items: center; min-height: 44px; }
  html body .linkish { min-height: 44px; padding-inline: 8px; }
  html body :is(.chip, .btn, .btn.small, .btn.snap, .find input) { min-height: 44px; }
  html body .ar-btn { width: 44px; height: 44px; }
  html body .mine-links a { min-width: 44px; }
  html body a[data-cam-photo] { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
  /* Hidden while a text field has focus (typing), and back 300 ms after the focus leaves it: a tap on the button under the
     field ends long before that, so the bar never comes back under the finger and swallows the tap (QA wiki-local, 22 Nov
     2026; the same rule in Plant, Flight, Landmark, Coffee and FiveClose). visibility, not display, so nothing moves. */
  .nav { transition: visibility 0s linear .3s; }
  body:has(input:is(:not([type]), [type=text], [type=search], [type=email], [type=url], [type=tel], [type=number], [type=password]):focus, textarea:focus) .nav { visibility: hidden; transition-delay: 0s; }
}
@media (pointer: coarse) { html body :is(input, select, textarea) { font-size: 16px; } } /* iPhones zoom into a field under 16px */
@media (pointer: coarse) {
  html body :is(#snap, #adReset, main button) { min-height: 44px; }
  html body :is(#snap, main button) { min-width: 44px; }
}
/* The camera tab's label may be wider than the round button (Tamil "Identify" is 91px, the button 54px): it was cut to the button's width. */
@media (max-width: 900px) { #snap .label { width: max-content; max-width: 104px; overflow: visible; text-overflow: clip; white-space: normal; text-align: center; } }

/* Sizes check leftovers (QA 21 Nov 2026): the home page's search boxes, "What's around me?" and the section links are finger-sized */
@media (pointer: coarse) {
  html body :is(.bigsearch input, .globe-fly input) { min-height: 44px; height: auto; }
  html body :is(.near-link a, .section-title a) { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Phones: reading text 16px, notes and captions 14px (UI standard: nothing smaller on a phone) */
@media (max-width:900px), (pointer: coarse) and (max-height: 500px) {
  body{font-size:16px}
  .small{font-size:14px}
  .foot{font-size:14px}
  .btn.small{font-size:14px}
  .place p{font-size:16px}
  .dist{font-size:14px}
  .pill{font-size:14px}
  .navlink{font-size:14px}
  #snap .label{font-size:14px}
  .chip{font-size:14px}
  .ar-label b{font-size:14px}
  .ar-label small{font-size:14px}
  .ar-status{font-size:14px}
  .ar-kicker{font-size:14px}
  .ar-card small{font-size:14px}
  .ar-card p{font-size:14px}
  .ar-card .btn.sm, .ar-card button.sm{font-size:14px}
  button.chip{font-size:14px}
  .ar-card.ar-mini b{font-size:16px}
  .globe-head span{font-size:14px}
  .globe-tip{font-size:14px}
  .eyebrow{font-size:14px}
  .foot-in h4, .foot-in .foot-h{font-size:14px}
  .langpick{font-size:14px}
  .legal{font-size:14px}
  .stats{font-size:14px}
  .stats li{font-size:14px}
  .lcard b{font-size:16px}
  .lcard i{font-size:14px}
  .plan .price{font-size:14px}
  .plan p{font-size:16px}
  .dash-line{font-size:14px}
  .delta{font-size:14px}
  .tile .tl{font-size:14px}
  .mini span{font-size:14px}
  .tag{font-size:14px}
  .tbl th{font-size:14px}
  .tbl .sub{font-size:14px}
  button.xs{font-size:14px}
  button.sm, .tbl button{font-size:14px}
  .why{font-size:14px}
  .why-line{font-size:14px}
  .fy-card .notforme{font-size:14px}
  details.fold > summary h3::after{font-size:14px}
  .pers-list li{font-size:16px}
  :is(.intro, .home-hero, .hero) > .globe-card .globe-cap{font-size:14px}
  .idf-kicker{font-size:14px}
  .globe-tip small{font-size:14px}
  .globe-info{font-size:14px}
  .globe-play{font-size:14px}
}

/* Phones: small lettering set with the font shorthand also 14px */
@media (max-width:900px), (pointer: coarse) and (max-height: 500px) {
  .ar-heading{font-size:14px}
  .seg button{font-size:14px}
  .adm button:not(.btn):not(.linkish){font-size:14px}
}

/* Home header on phones (21 Nov 2026, the five wikis share one home layout): while the big search is in view the header's
   search box hides, and a round search button takes its place at the right edge, as on Fish and Plant Wiki. */
.searchbtn { display: none; }
@media (max-width: 900px) {
  body.intro-visible .top .search { display: none; }
  body.intro-visible .searchbtn { display: inline-grid; place-items: center; margin-left: auto; }
}

/* Korean: words break between words, not between any two syllables (the browser's default for Hangul), 21 Nov 2026. */
html[lang=ko] body { word-break: keep-all; overflow-wrap: break-word; }
/* Tamil on the narrowest phones (320 px, an iPhone with Display Zoom): sizes measured with Claude-admin qa/tools/fit-words.mjs so its longest words stay whole (21 Nov 2026). */
@media (max-width: 560px) { html[lang=ta] .intro h1 { font-size: min(32px, calc((100vw - 48px) / 9.2)); } }
@media (max-width: 340px) { html[lang=ta] .stats { gap: 4px; } html[lang=ta] .stats li { font-size: 10px; padding-left: 2px; padding-right: 2px; } }

/* A landmark's page opens as a plant's does on Plant Wiki: a back link, the photo with the main button, then the name (21 Nov 2026). */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 14px; font-weight: 500; text-decoration: none; min-height: 44px; }

/* My landmarks → Map (21 Nov 2026), as My plants' Map on Plant Wiki. */
.mine-map { height: min(62vh, 520px); min-height: 300px; }

/* A city's Wikipedia opening above its landmarks (city pages and the city guide, 22 Nov 2026). */
.lead { font-size: 1.05rem; line-height: 1.55; max-width: 70ch; margin: 6px 0 2px; }
.city-hero { display: block; width: 100%; height: auto; max-height: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 8px 0 6px; background: var(--surface-2, #eee); }

/* Identify: "Use the live camera instead" is a link on its own line, 38 px tall at 320 px: a full touch target (QA sizes, 22 Nov 2026). */
@media (pointer: coarse) { a[data-cam-live] { display: inline-flex; align-items: center; min-height: 44px; } }
   button. The name stays for screen readers; the logo alone links home, so the box gets the room. */
@media (max-width: 300px) { .top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* The camera tab on a phone (24 Nov 2026): the tab itself now holds its word. The round button was the whole tab, 54px wide,
   and its word hung below it outside the box (Tamil's is 78px), which is how a cut-off label looks to a measure and to the
   QA suite (raised V002, A035). The circle is drawn on the icon; the word wraps inside the tab, at most the space between
   the two tabs beside it, and a second line raises the circle by itself. Looks the same as before. */
@media (max-width: 900px) {
  html body #snap, html body #snap:hover { display: flex; flex-direction: column; align-items: center; gap: 3px; width: auto; min-width: 54px; max-width: 29vw; height: auto; padding: 0 0 4px; margin-bottom: 0 !important; background: none; border: 0; border-radius: 0; box-shadow: none; }
  html body #snap .i { box-sizing: content-box; flex: none; width: 24px; height: 24px; padding: 15px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgb(0 0 0 / .35); }
  html body #snap .label { position: static; transform: none; width: auto; max-width: 100%; white-space: normal; text-align: center; overflow: visible; }
}
