/* Calea Sfinților — design system. Light, contemporary, legible for older eyes. See /brand. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-ext.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F8FAFC; --surface: #FFFFFF; --ink: #17243A; --ink-2: #5B6B82; --line: #E3E8EF;
  --blue: #2563EB; --blue-d: #1D4ED8; --blue-50: #EAF1FE; --teal: #0F766E; --mint: #DDF7ED; --lilac: #EEE8FF; --coral: #F0786A; --coral-t: #B4413A;
  --r-s: 10px; --r: 14px; --r-l: 20px; --shadow: 0 1px 2px rgba(23,36,58,.05), 0 6px 20px rgba(23,36,58,.06); --shadow-l: 0 10px 40px rgba(23,36,58,.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --tabbar: 68px; --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: 'cv11', 'ss01'; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 17.5px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .h2, .h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3, .h3 { font-size: 1.25rem; }
.h4 { font: 600 1.05rem/1.3 var(--sans); margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 .5em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.prose-wide { width: min(980px, 100% - 32px); }
.ic { flex: none; vertical-align: -0.2em; }

/* header / nav */
.top { position: sticky; top: 0; z-index: 40; background: rgba(248,250,252,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; width: min(1180px, 100% - 32px); margin-inline: auto; }
.brand { text-decoration: none; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { border-radius: 10px; }
.logo-word { font: 600 1.2rem/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.logo-word span { color: var(--blue); }
.logo-word.big { font-size: 2.2rem; }
.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: .98rem; }
.topnav a:hover { background: var(--blue-50); }
.topnav a[aria-current='page'] { color: var(--blue-d); background: var(--blue-50); }
.top-guide { margin-left: auto; }
@media (min-width: 900px) { .topnav { display: flex; } .top-guide { margin-left: 0; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabbar); color: var(--ink-2); text-decoration: none; font-size: .74rem; font-weight: 500; }
.tabbar a[aria-current='page'] { color: var(--blue-d); }
.tabbar a[aria-current='page'] .ic { stroke-width: 2.3; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-soft { background: var(--mint); color: var(--ink); }
.btn-soft:hover { background: #c9f1e0; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #cfd8e3; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.05rem; }
.btn[aria-pressed='true'], .chip-btn[aria-pressed='true'] { background: #FFE9E6; color: var(--coral-t); }
.btn[aria-pressed='true'] .ic, .chip-btn[aria-pressed='true'] .ic { fill: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1em 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font: 500 .94rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: #b9c6d6; color: var(--ink); }
.chip[aria-pressed='true'], .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: 500 .9rem var(--sans); border-radius: 10px; cursor: pointer; }
.chip-btn:hover { background: var(--bg); color: var(--ink); }

/* sections & cards */
.section { padding: 48px 0; }
.section-tint { background: linear-gradient(180deg, #F1F7FF 0%, #F3FBF7 100%); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.pad { padding: 22px; }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.routes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.routes-col { grid-template-columns: 1fr; margin-bottom: 18px; }
.learn { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.two { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.phero { padding: 36px 0 12px; }
.phero .lead { margin-bottom: .6em; }
.crumbs { color: var(--ink-2); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.pcard-link { color: inherit; text-decoration: none; flex: 1; }
.pcard-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue-50), var(--mint)); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-ph { height: 100%; display: grid; place-items: center; color: var(--blue); opacity: .6; }
.pcard-flag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--teal); font: 600 .78rem/1 var(--sans); padding: 7px 10px; border-radius: 999px; }
.pcard-body { padding: 16px 18px 6px; }
.pcard-body h3 { font-size: 1.18rem; margin-bottom: .3em; }
.pcard-persons { color: var(--teal); font-weight: 500; font-size: .92rem; margin-bottom: .4em; }
.pcard-sum { color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-actions { display: flex; gap: 4px; padding: 4px 8px 10px; border-top: 1px solid var(--bg); }
.pcard-compact .pcard-body { padding-bottom: 2px; }

.rcard, .lcard { display: block; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.rcard:hover, .lcard:hover { transform: translateY(-2px); color: var(--ink); }
.rcard h3, .lcard h3 { margin: .2em 0 .4em; }
.rcard p, .lcard p { color: var(--ink-2); }
.lcard .ic { color: var(--teal); }
.lcard:nth-child(3n+2) { background: linear-gradient(180deg, #fff, var(--lilac)); }
.lcard:nth-child(3n) { background: linear-gradient(180deg, #fff, var(--mint)); }

/* hero */
.hero { padding: 28px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, #E0EBFF 0%, transparent 60%), radial-gradient(900px 420px at -10% 110%, var(--mint) 0%, transparent 55%); }
.hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 24px; } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.1rem); }
.hero-stat { margin-top: 14px; font-size: .95rem; }
.hero-map { position: relative; }
.hero-map-open { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.asks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.asks a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.asks a:hover { border-color: var(--blue); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--teal); margin-top: 3px; }
.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 10px 0; }
.matrix th, .matrix td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yes { color: var(--teal); font-weight: 600; }
.no { color: var(--coral-t); font-weight: 600; }
.soon { color: var(--ink-2); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.install [hidden] { display: none; }

/* search */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); max-width: 640px; margin: 14px 0; }
.search .ic { color: var(--ink-2); }
.search input { flex: 1; border: 0; outline: 0; font: 400 1.02rem var(--sans); min-height: 42px; background: transparent; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; padding: 10px 14px; background: var(--lilac); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.thought-q { font: 500 1.4rem/1.35 var(--serif); }
.near-results { margin-top: 12px; }

/* map page */
.map { width: 100%; height: 360px; background: linear-gradient(135deg, #EAF1FE, #E9F8F1); }
.map-preview { height: 380px; }
.map-mini { height: 240px; }
.map-route { height: 420px; }
@media (min-width: 900px) { .map-route { height: 560px; } }
.mappage .foot { display: none; }
.mapshell { position: relative; height: calc(100dvh - 64px - var(--tabbar) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
@media (min-width: 900px) { .mapshell { height: calc(100dvh - 64px); display: grid; grid-template-columns: 380px 1fr; grid-template-rows: auto 1fr; } }
.mapbar { padding: 10px 12px 6px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 5; }
@media (min-width: 900px) { .mapbar { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } }
.mapbar .search { margin: 0 0 8px; max-width: none; box-shadow: none; }
@media (min-width: 900px) { .mapbar .search { margin: 0; width: 360px; } .mapbar .chips { margin: 0; } }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button, .segopt span { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 500 .92rem var(--sans); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; }
.seg button[aria-pressed='true'], .segopt input:checked + span { background: var(--blue); color: #fff; }
.seg-wrap { flex-wrap: wrap; border-radius: 16px; }
.segopt { position: relative; }
.segopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segopt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.mapwrap { position: relative; flex: 1; min-height: 0; }
.mapwrap .map { height: 100%; }
@media (min-width: 900px) { .mapwrap { grid-column: 2; grid-row: 2; } }
.area-btn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; box-shadow: var(--shadow-l); }
.mapfabs { position: absolute; right: 12px; bottom: 16px; display: grid; gap: 10px; z-index: 3; }
.fab { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-l); cursor: pointer; }
.fab:hover { color: var(--blue); }
.map-attr { position: absolute; left: 10px; bottom: 6px; margin: 0; z-index: 2; background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 6px; }
.map-attr:empty { display: none; }
.listpanel { display: none; overflow-y: auto; background: var(--bg); padding: 10px 12px 20px; }
.mapshell[data-view='list'] .listpanel { display: block; flex: 1; }
.mapshell[data-view='list'] .mapwrap { display: none; }
@media (min-width: 900px) { .listpanel, .mapshell[data-view='list'] .listpanel { display: block; grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); } .mapshell[data-view='list'] .mapwrap { display: block; } .listhead .btn { display: none; } .mapfabs [data-toggle-view] { display: none; } }
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: -10px; background: var(--bg); padding: 6px 0; z-index: 1; }
.listhead h1 { margin: 0; font-size: 1.15rem; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plist li a, .plist li button.row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.plist li a:hover, .plist li.on a { border-color: var(--blue); }
.plist img, .plist .thumb-ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: linear-gradient(135deg, var(--blue-50), var(--mint)); }
.plist .rowtxt { display: grid; gap: 2px; min-width: 0; }
.plist strong { font-weight: 600; line-height: 1.25; }
.plist .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.area-pick { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 20; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 16px 16px 14px; max-height: 58%; overflow-y: auto; animation: up .22s var(--ease); }
@media (min-width: 900px) { .sheet { left: auto; right: 16px; top: 76px; bottom: auto; width: 380px; max-height: calc(100% - 100px); } }
.sheet[hidden] { display: none; }
.sheet-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.sheet h2 { font-size: 1.3rem; margin: 0 40px .3em 0; }
.sheet .sheet-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); margin-bottom: 10px; }
.sheet .cta-row { margin: 10px 0 0; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* markers */
.mk { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--blue); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(23,36,58,.3); cursor: pointer; display: grid; place-items: center; }
.mk span { transform: rotate(45deg); width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mk.relics { background: var(--teal); }
.mk.on { background: var(--coral-t); width: 40px; height: 40px; }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(37,99,235,.2); }
.mk-num { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .9rem/30px var(--sans); text-align: center; border: 2px solid #fff; box-shadow: var(--shadow); }

/* badges & status */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 600 .78rem/1.3 var(--sans); background: var(--blue-50); color: var(--blue-d); }
.b-relics, .b-relic_particle { background: var(--mint); color: #0B5D57; }
.b-tomb { background: #EEF1F5; color: #3B4A60; }
.b-venerated_icon { background: var(--lilac); color: #4C3A99; }
.b-heritage_object { background: var(--blue-50); color: var(--blue-d); }
.b-temporary_relic { background: #FFF0EC; color: var(--coral-t); }
.b-tradition { background: #F4F1FF; color: #4C3A99; }
.b-uncertain { background: #FFF4F2; color: var(--coral-t); }
.open { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .92rem; padding: 6px 10px; border-radius: 999px; }
.open-open { background: var(--mint); color: #0B5D57; }
.open-closed { background: #FFF4F2; color: var(--coral-t); }
.open-unknown { background: #EEF1F5; color: #3B4A60; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--blue-50); margin: 12px 0; }
.notice-warn { background: #FFF6EF; }
.notice-warn .ic { color: var(--coral-t); }
.notice-ok { background: var(--mint); }
.notice p:last-child { margin: 0; }

/* place page */
.place-photo { margin: 0; position: relative; background: linear-gradient(135deg, var(--blue-50), var(--mint)); }
.place-photo img { width: 100%; height: clamp(220px, 42vw, 440px); object-fit: cover; }
.place-photo figcaption { position: absolute; right: 8px; bottom: 8px; background: rgba(23,36,58,.72); color: #fff; padding: 4px 10px; border-radius: 8px; max-width: calc(100% - 16px); }
.place-photo figcaption a { color: #fff; }
.place-photo-empty { height: 160px; display: grid; place-items: center; color: var(--blue); }
.place-head { padding: 18px 0 6px; }
.place-head h1 { margin-bottom: .25em; }
.place-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.place-grid { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .place-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } .place-side { position: sticky; top: 84px; align-self: start; } }
.place-side { display: grid; gap: 16px; }
.quick { display: grid; gap: 16px; margin: 6px 0 14px; }
@media (min-width: 700px) { .quick { grid-template-columns: 1fr 1fr 1fr; } }
.items-short { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.items-short li { display: grid; gap: 4px; }
.actionbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.navmenu { position: relative; }
.navmenu summary { list-style: none; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu-list { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-l); display: grid; min-width: 200px; padding: 6px; }
.navmenu-list a { padding: 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.navmenu-list a:hover { background: var(--bg); }
.block { margin: 0 0 28px; }
.items { list-style: none; padding: 0; display: grid; gap: 12px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.item h3 { font: 600 1.05rem/1.35 var(--sans); margin: 8px 0 6px; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--mint); margin-left: 6px; }
.timeline li { padding: 0 0 12px 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.cite { font-size: .72em; margin-left: 2px; }
.cite a { text-decoration: none; }
.honest { background: #fff; border: 1px dashed #cdd6e1; border-radius: var(--r); padding: 16px; }
.sources ol { padding-left: 1.3em; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.near li { display: grid; }
.bio { font-size: 1.08rem; }
.saints { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.saint { display: grid; gap: 2px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.saint:hover { border-color: var(--blue); color: var(--ink); }
.group { margin-bottom: 28px; }

/* routes */
.builder-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .builder-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.builder fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.builder legend { font-weight: 600; margin-bottom: 8px; }
select, input[type='text'], input[type='url'], input[type='number'], input[type='time'], input[type='password'], input:not([type]), textarea { font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfd8e3; border-radius: 12px; padding: 11px 12px; min-height: 46px; width: 100%; }
input[type='number'], input[type='time'] { width: auto; }
textarea { min-height: 100px; }
select:focus, input:focus, textarea:focus { outline: 3px solid rgba(37,99,235,.25); border-color: var(--blue); }
input[type='range'] { width: 100%; accent-color: var(--blue); min-height: 32px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input, .switch input { width: 22px; height: 22px; accent-color: var(--blue); }
.switch { display: flex; gap: 12px; align-items: center; font-weight: 600; min-height: 44px; }
.stack { display: grid; gap: 10px; }
.stack label { font-weight: 500; }
.inline-form { display: flex; gap: 8px; margin: 10px 0 20px; }
.hp { position: absolute; left: -9999px; }
.plan-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 14px 0; }
.plan-sum div { display: grid; }
.plan-sum strong { font: 600 1.35rem/1.2 var(--serif); }
.stops { list-style: none; padding: 0; margin: 0 0 12px; }
.stop { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.stop > div { display: grid; flex: 1; min-width: 0; }
.stop .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.stop-start .dot { background: var(--teal); }
.stop .tools { display: flex; gap: 2px; }
.stop .tools button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.stop .tools button:hover { background: var(--bg); color: var(--ink); }
.leg { padding: 6px 0 6px 28px; border-left: 2px dashed #cfd8e3; margin-left: 27px; }
.draft { padding-left: 1.3em; }

/* guide */
.guide-head { margin-bottom: 12px; }
.ai-label { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); background: var(--lilac); padding: 10px 12px; border-radius: var(--r); }
.chat { display: grid; gap: 12px; margin: 16px 0; }
.msg { padding: 14px 16px; border-radius: 18px; max-width: 92%; }
.msg p:last-child { margin-bottom: 0; }
.msg-user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-bot.thinking { color: var(--ink-2); }
.gcards { list-style: none; padding: 0; display: grid; gap: 8px; margin: 10px 0; }
.gcards li { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.gcards .cta-row { margin: 6px 0 0; }
.gsources { padding-left: 1.4em; color: var(--ink-2); margin: 8px 0 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.suggest .chip { white-space: normal; text-align: left; min-height: 40px; padding: 8px 14px; line-height: 1.3; }
.chatform { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0 12px; box-shadow: 0 -12px 16px -8px var(--bg); z-index: 5; }
.chatform .check { grid-column: 1 / -1; grid-row: 2; min-height: 32px; }
@media (min-width: 900px) { .chatform { bottom: 0; } }

/* saved */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.tabs button[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.journal { list-style: none; padding: 0; display: grid; gap: 10px; }
.journal li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.code { font: 600 1.3rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--mint); padding: 10px 14px; border-radius: 12px; display: inline-block; }

/* tables & kpis */
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; border-radius: var(--r); overflow: hidden; }
.data th, .data td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { background: var(--bg); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; }
.kpis strong { font: 600 1.8rem/1.1 var(--serif); color: var(--blue-d); }
.kpis span { color: var(--ink-2); font-size: .9rem; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* brand page */
.brand-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); min-width: 180px; }
.brand-tile svg { border-radius: 22%; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.swatch { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.swatch > span:first-child { height: 64px; border-radius: 10px; border: 1px solid rgba(0,0,0,.06); }
.cpair { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; border: 1px solid var(--line); }
.type-display { font: 600 2rem/1.2 var(--serif); }
.type-body { font-size: 1.1rem; }
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-tile { display: grid; justify-items: center; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 84px; color: var(--ink); }
.badges-demo { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* admin */
.adminnav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inline { display: inline; }
.admin article { margin-bottom: 12px; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 18px; margin-top: 24px; }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr 1.6fr; } }
.foot-brand p { margin-top: 10px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.foot-cols h2 { font: 600 .82rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 10px; }
.foot-cols a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; min-height: 32px; }
.foot-cols a:hover { color: var(--blue); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-l); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 90; max-width: min(92vw, 460px); }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: #BFD4FF; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* maplibre adjustments */
.maplibregl-ctrl-attrib { font-size: 11px; }
.map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { min-width: 24px !important; min-height: 24px !important; }
.cdot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin: 0 6px; vertical-align: middle; }
.maplibregl-ctrl-group button { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .top, .tabbar, .foot, .actionbar, .place-side { display: none; } body { padding: 0; } }
