/* One Door: concept demo by K2 Projects. K2 brand: indigo on white, Montserrat,
   pill buttons, 32px panel radius. No government styling. */
:root {
  --indigo: #3C429B; --indigo-deep: #2E3379; --indigo-pale: #DFE0EF; --indigo-wash: #F4F5FB;
  --ink: #0B0C20; --slate: #5A5C74; --line: #E6E8F0; --mist: #EAF0F2; --white: #FFFFFF;
  --amber: #F0B429; --red: #C8283A; --green: #1F8A5B;
  --font: Montserrat, Gilroy, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --radius: 32px; --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(11, 12, 32, .04), 0 8px 24px rgba(11, 12, 32, .06);
  --shadow-lg: 0 2px 4px rgba(11, 12, 32, .04), 0 20px 48px rgba(60, 66, 155, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased; }
a { color: var(--indigo); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--indigo); color: var(--white); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
main:focus { outline: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Notice and header ---------- */
.notice { background: var(--ink); color: #C9CBDD; padding: 7px 16px; font-size: 13px; text-align: center; }
.notice strong { color: var(--amber); font-weight: 600; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 18px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--indigo); color: var(--white); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-by { font-size: 12px; color: var(--slate); font-weight: 500; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--indigo-wash); color: var(--indigo); }

main { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -32px; z-index: -1; border-radius: var(--radius);
  background: radial-gradient(60% 70% at 50% 0%, var(--indigo-wash) 0%, rgba(244, 245, 251, 0) 100%); }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--indigo-pale); color: var(--indigo); font-size: 13px; font-weight: 600; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.03em; line-height: 1.06; margin: 0 0 32px; }
.hero h1 span { color: var(--indigo); }

.askbar { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px 8px 8px 22px;
  background: var(--white); border: 1.5px solid var(--indigo-pale); border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: border-color .15s, box-shadow .15s; }
.askbar:focus-within { border-color: var(--indigo); }
.askbar-icon { width: 22px; height: 22px; color: var(--indigo); flex: none; }
.askbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px 6px; color: var(--ink); background: transparent; }
.askbar input::placeholder, .searchbar input::placeholder { color: #67697F; }

.pill { font: inherit; font-weight: 600; font-size: 16px; background: var(--indigo); color: var(--white); border: 0; border-radius: 999px;
  padding: 13px 30px; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.pill:hover { background: var(--indigo-deep); }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: .55; cursor: default; }
.pill.ghost { background: var(--white); color: var(--indigo); border: 1.5px solid var(--indigo-pale); padding: 10px 22px; font-size: 14px; }
.pill.ghost:hover { border-color: var(--indigo); background: var(--indigo-wash); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 1120px; margin: 22px auto 0; }
.chips-label { font-size: 13px; color: var(--slate); font-weight: 600; margin-right: 2px; }
.chips button { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chips button:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-wash); }

.place-chip { display: inline-flex; align-items: center; gap: 6px; margin: 18px auto 0; padding: 6px 14px; border-radius: 999px;
  background: var(--indigo-wash); color: var(--indigo); font-size: 13px; font-weight: 600; }
.place-chip svg { width: 16px; height: 16px; }
.place-chip button { font: inherit; border: 0; background: none; color: var(--slate); cursor: pointer; text-decoration: underline; padding: 0 0 0 4px; font-weight: 500; }
/* Three ways to start, besides typing. */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; max-width: 980px; margin: 18px auto 0; }
.action[hidden] { display: none; }
a.action { text-decoration: none; }
.action { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.action:hover { border-color: var(--indigo); box-shadow: var(--shadow); }
.action:active { transform: translateY(1px); }
.action svg { width: 36px; height: 36px; flex: none; padding: 7px; border-radius: 11px; background: var(--indigo-wash); color: var(--indigo); }
.action b { display: block; font-size: 15px; font-weight: 700; }
.action small { display: block; font-size: 12px; color: var(--slate); }
.action:disabled, .iconbtn:disabled { opacity: .5; cursor: progress; }
.locate-status { font-size: 13px; color: var(--slate); margin: 10px 0 0; }
.locate-status:empty { display: none; }
.locate-status.err { color: var(--red); }
.iconbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--indigo-wash);
  color: var(--indigo); cursor: pointer; }
.iconbtn:hover { background: var(--indigo-pale); }
.iconbtn svg { width: 20px; height: 20px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.empty-actions .pill { padding: 10px 22px; font-size: 14px; }
.empty .fine { max-width: 300px; margin-top: 14px; }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: 30px 0 0; font-size: 14px; color: var(--slate); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }
.trust b { color: var(--ink); }

/* ---------- Conversation ---------- */
.conversation { max-width: 860px; margin: 8px auto 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 16px; animation: rise .35s ease-out; }
.conv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.conv-head h2 { margin: 0; }
.textbtn { font: inherit; font-size: 14px; font-weight: 600; color: var(--slate); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.textbtn:hover { color: var(--indigo); }
.chat-log { display: flex; flex-direction: column; gap: 18px; }
.q { align-self: flex-end; max-width: 80%; background: var(--indigo); color: var(--white); padding: 12px 18px; border-radius: 22px 22px 6px 22px; font-weight: 500;
  animation: rise .25s ease-out; }
.a { animation: rise .3s ease-out; }
.a-text { font-size: 17px; margin: 0 0 14px; }
.a-note { font-size: 13px; color: var(--slate); margin: 0; display: flex; gap: 6px; align-items: center; flex: 1 1 260px; }
.a-note svg { width: 16px; height: 16px; flex: none; }
.thinking { display: flex; align-items: center; gap: 10px; color: var(--slate); font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); opacity: .25; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: grid; grid-template-columns: 30px 48px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.step:hover { border-color: var(--indigo-pale); box-shadow: var(--shadow); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo-wash); color: var(--indigo); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.step-body { min-width: 0; }
.step-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.step-org { font-size: 12px; color: var(--slate); font-weight: 500; }
.step-why { margin: 4px 0 0; font-size: 14px; color: #33354A; }
.go { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--indigo);
  border: 1.5px solid var(--indigo-pale); border-radius: 999px; padding: 8px 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.go:hover { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.go svg { width: 14px; height: 14px; stroke-width: 2.2; flex: none; }
/* A task link goes to the exact page, so it gets the stronger button. */
.has-task .go { background: var(--indigo); border-color: var(--indigo); color: var(--white); white-space: normal; max-width: 230px; text-align: left; line-height: 1.3; }
.has-task .go:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.step-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--green); border: 1.5px solid #CDE9DA; background: #F2FAF6; border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.call:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.call svg { width: 15px; height: 15px; stroke-width: 2; flex: none; }
.call-000 { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 18px; border-radius: 999px; background: var(--red);
  color: var(--white); font-weight: 700; text-decoration: none; }
.call-000:hover { background: #A41F2E; }
.call-000 svg { width: 18px; height: 18px; stroke-width: 2.2; }

.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--indigo-wash); color: var(--indigo); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; }
.ico.sm { width: 36px; height: 36px; border-radius: 11px; }
.ico.sm svg { width: 19px; height: 19px; }

.fine { font-size: 12px; color: var(--slate); margin: 20px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; scroll-margin-top: 8px; }
.section-head { max-width: 680px; margin-bottom: 24px; }
h2 { font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.section-head p { color: var(--slate); margin: 0; font-size: 17px; }

/* ---------- Place ---------- */
.place-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.map-card, .glance { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.map-card { padding: 16px; display: flex; flex-direction: column; position: sticky; top: 16px; }
.searchbar { display: flex; gap: 8px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; align-items: center; }
.searchbar:focus-within { border-color: var(--indigo); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; }
.searchbar .pill { padding: 10px 24px; font-size: 15px; }
.results { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--slate); }
.results:not(:empty) { margin-top: 10px; }
.result { font: inherit; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.result:hover { border-color: var(--indigo); background: var(--indigo-wash); }
#map { height: min(620px, calc(100vh - 120px)); min-height: 380px; border-radius: 20px; margin-top: 12px; z-index: 0; }
.leaflet-container { font-family: var(--font); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--indigo); transform: rotate(-45deg); border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(11, 12, 32, .3); }

.glance { padding: 28px; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 12px; }
.empty-art { width: 76px; height: 76px; border-radius: 50%; background: var(--indigo-wash); color: var(--indigo); display: grid; place-items: center; margin-bottom: 16px; }
.empty-art svg { width: 36px; height: 36px; }
.empty h3 { margin: 0 0 6px; font-size: 20px; }
.empty p { color: var(--slate); margin: 0 0 20px; max-width: 320px; }
.glance-kicker { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--indigo); }
#place-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 18px; line-height: 1.25; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--indigo-wash); min-width: 0; }
.tile-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--slate); }
.tile-label svg { width: 15px; height: 15px; color: var(--indigo); }
.tile-value { display: block; font-weight: 700; font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }
.tile-sub { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }
.tile.wide { grid-column: 1 / -1; }
.status { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--indigo-pale); font-size: 14px; }
.status svg { width: 20px; height: 20px; color: var(--indigo); flex: none; }
.status b { display: block; font-size: 12px; color: var(--slate); font-weight: 600; }

.snap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.snap-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.snap-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.snap-head svg { width: 18px; height: 18px; color: var(--indigo); }
.snap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.snap-stats dt { font-size: 11px; color: var(--slate); font-weight: 600; }
.snap-stats dd { margin: 0; font-weight: 700; font-size: 15px; }
.snap-foot { margin: 8px 0 0; font-size: 11px; color: var(--slate); }
.nearby-head { margin: 22px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--indigo); }
.nearby { list-style: none; margin: 0; padding: 0; }
.nearby li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nearby li:last-child { border-bottom: 0; }
.nearby .n-body { flex: 1; min-width: 0; }
.nearby .n-kind { display: block; font-size: 12px; color: var(--slate); }
.nearby .n-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby .n-km { font-weight: 700; font-size: 14px; color: var(--indigo); white-space: nowrap; }
.glance-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; }
.source { font-size: 12px; color: var(--slate); margin: 0; flex: 1 1 220px; }
.warn { color: var(--red); font-size: 13px; margin: 10px 0 0; }

.skeleton { position: relative; overflow: hidden; background: var(--mist); border-radius: var(--radius-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.2s infinite; }
.sk-tile { height: 74px; }
.sk-row { height: 40px; margin-top: 8px; }

/* ---------- How it works ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps li { padding: 28px; border-radius: var(--radius); background: var(--indigo-wash); }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: var(--white); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.how-steps h3 { font-size: 18px; margin: 0 0 6px; }
.how-steps p { margin: 0; color: var(--slate); font-size: 15px; }

/* ---------- Directory ---------- */
.all-services { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.all-services summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.all-services summary::-webkit-details-marker { display: none; }
.all-services summary::before { content: "+"; width: 28px; height: 28px; border-radius: 50%; background: var(--indigo-wash); color: var(--indigo);
  display: grid; place-items: center; font-weight: 700; transition: transform .2s; }
.all-services[open] summary::before { content: "–"; }
.all-services > p { font-size: 14px; color: var(--slate); margin: 14px 0 18px; }
.dir-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--indigo); margin: 18px 0 8px; }
.dir-head:first-child { margin-top: 0; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; }
.level { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  margin-right: 8px; vertical-align: 1px; background: var(--indigo-wash); color: var(--indigo); }
.level-council { background: #EAF6F0; color: var(--green); }
.level-commonwealth { background: #FDF3DC; color: #8A5A00; }
.dir-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 10px; border-radius: 14px; border: 1px solid transparent; }
.dir-item:hover { border-color: var(--line); background: var(--indigo-wash); }
.dir-item b { display: block; font-size: 14px; font-weight: 600; }
.dir-item span.org { display: block; font-size: 12px; color: var(--slate); }

/* ---------- Footer ---------- */
footer { margin-top: 80px; background: var(--indigo-wash); padding: 28px 32px; font-size: 12px; color: var(--slate); }
footer > * { max-width: 1136px; margin-left: auto; margin-right: auto; }
.attrib { display: flex; gap: 16px; align-items: flex-start; }
.attrib p { margin: 0; }
.contact { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.k2-mark { width: 30px; height: 30px; flex: none; }

/* ---------- Voice ---------- */
.voice { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.voice select { font: inherit; font-size: 13px; color: var(--slate); border: 0; background: transparent; max-width: 92px; cursor: pointer; padding: 6px 2px; }
.mic { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--indigo-wash); color: var(--indigo); display: grid; place-items: center; cursor: pointer; }
.mic svg { width: 21px; height: 21px; }
.mic:hover { background: var(--indigo-pale); }
.mic.on { background: var(--red); color: var(--white); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 40, 58, .45); } 100% { box-shadow: 0 0 0 14px rgba(200, 40, 58, 0); } }

/* ---------- Answer extras ---------- */
.followup { display: flex; gap: 8px; margin-top: 20px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; align-items: center; }
.followup:focus-within { border-color: var(--indigo); }
.followup input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 8px 0; background: transparent; }
.followup .pill { padding: 10px 22px; font-size: 15px; }

/* ---------- Dialogs ---------- */
.dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 26px 28px;
  box-shadow: 0 30px 80px rgba(11, 12, 32, .35); color: var(--ink); }
.dlg::backdrop { background: rgba(11, 12, 32, .45); }
.dlg[open] { animation: rise .25s ease-out; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h2 { font-size: 22px; margin: 0; }
.dlg-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--indigo-wash); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.dlg-x svg { width: 20px; height: 20px; stroke-width: 2.2; }
.dlg-lead { color: var(--slate); margin: 8px 0 18px; }
.dlg-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--indigo); margin: 22px 0 10px; }
.dlg-error { color: var(--red); font-size: 14px; margin: 8px 0 0; }
.dlg-error:empty { display: none; }
.drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; font: inherit; color: var(--ink); cursor: pointer;
  border: 2px dashed var(--indigo-pale); border-radius: var(--radius-sm); background: var(--indigo-wash); }
.drop:hover { border-color: var(--indigo); }
.drop svg { width: 34px; height: 34px; color: var(--indigo); margin-bottom: 4px; }
.drop b { font-size: 16px; }
.drop span { font-size: 13px; color: var(--slate); }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; }
.sample:hover { border-color: var(--indigo); box-shadow: var(--shadow); }
.sample img { width: 100%; height: auto; aspect-ratio: 800 / 1100; border: 1px solid var(--line); border-radius: 6px; }
.plan-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-list button { font: inherit; font-size: 15px; font-weight: 600; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.plan-list button:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-wash); }
.plan-own { margin-top: 18px; }
.plan-own label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.plan-own-row { display: flex; gap: 8px; }
.plan-own input { flex: 1; min-width: 0; font: inherit; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; outline: 0; }
.plan-own input:focus { border-color: var(--indigo); }
.plan-own .pill { padding: 11px 22px; font-size: 15px; }

/* ---------- Letters ---------- */
.q-letter { display: flex; align-items: center; gap: 10px; }
.q-letter img { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--white); }
.scam { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: #FBE9EB; color: #7A1020; margin-bottom: 12px; }
.scam svg { width: 24px; height: 24px; flex: none; color: var(--red); }
.scam b { display: block; font-size: 16px; }
.scam span { font-size: 14px; }
.scam-signs { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.scam-signs li { margin: 2px 0; }
.letter-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; background: var(--indigo-wash); }
.letter-head { display: flex; gap: 12px; align-items: center; }
.letter-head .ico { background: var(--white); }
.letter-type { display: block; font-size: 17px; }
.letter-from { display: block; font-size: 13px; color: var(--slate); }
.letter-about { margin: 12px 0 0; }
.letter-k { margin: 12px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--indigo); }
.letter-asks { margin: 0; padding-left: 20px; }
.letter-asks li { margin: 2px 0; }
.letter > .a { animation: none; }
.a-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.listen { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--indigo); background: var(--indigo-wash);
  border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.listen svg { width: 16px; height: 16px; }
.listen:hover { background: var(--indigo-pale); }
.listen.on { background: var(--indigo); color: var(--white); }
.conv-tools { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.tally { font-size: 13px; color: var(--slate); }
.tally b { color: var(--green); font-size: 16px; }

.doors { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 14px; }
.doors-side { border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.doors-side.before { background: #FBF1F2; }
.doors-side.after { background: #EAF6F0; }
.doors-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); }
.doors-side b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.doors-side.before b { color: var(--red); }
.doors-side.after b { color: var(--green); }
.doors-sub { font-size: 12px; color: var(--slate); }
.doors-arrow { display: grid; place-items: center; color: var(--slate); }
.doors-arrow svg { width: 22px; height: 22px; }

.clarify { margin-top: 4px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--indigo-wash); }
.clarify-q { margin: 0 0 10px; font-weight: 700; }
.clarify-options { display: flex; flex-wrap: wrap; gap: 8px; }
.clarify-opt { font: inherit; font-size: 14px; font-weight: 600; color: var(--indigo); background: var(--white); border: 1.5px solid var(--indigo-pale);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.clarify-opt:hover:not(:disabled) { border-color: var(--indigo); }
.clarify-opt:disabled { cursor: default; opacity: .5; }
.clarify-opt.picked { opacity: 1; background: var(--indigo); color: var(--white); border-color: var(--indigo); }

.plan-head { margin-bottom: 6px; }
.plan-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--indigo); }
.plan-title { font-size: 22px; font-weight: 800; margin: 2px 0 0; letter-spacing: -.01em; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--indigo-pale); }
.stage { position: relative; padding: 0 0 16px 4px; }
.stage::before { content: ""; position: absolute; left: -31px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--indigo); }
.stage-name { margin: 0 0 8px; font-size: 15px; color: var(--indigo); }

/* ---------- Presenter mode ---------- */
.nav .present { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; font-size: 14px; margin-left: 6px; }
.nav .present svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.presenter { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; width: min(760px, calc(100% - 24px));
  background: var(--ink); color: var(--white); border-radius: 24px; padding: 16px 18px 14px 22px; box-shadow: 0 20px 60px rgba(11, 12, 32, .35);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; animation: rise .3s ease-out; }
.presenter .p-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.presenter .p-text { font-size: 17px; font-weight: 600; line-height: 1.35; grid-column: 1; }
.presenter .p-controls { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.presenter button { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white); }
.presenter button:hover { background: rgba(255, 255, 255, .22); }
.presenter button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Accessibility details ---------- */
.chip-clear { min-height: 24px; min-width: 24px; padding: 2px 6px !important; }
.leaflet-container .leaflet-control-attribution { color: var(--ink); background: rgba(255, 255, 255, .9); }
.leaflet-container .leaflet-control-attribution a { color: var(--indigo); text-decoration: underline; }
.leaflet-container a.leaflet-control-zoom-in, .leaflet-container a.leaflet-control-zoom-out { width: 32px; height: 32px; line-height: 32px; }
.a11y { margin: 14px auto 0; }
.a11y summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 24px; }
.a11y p { margin: 8px 0 0; max-width: 820px; }
.textbtn { min-height: 32px; }
.presenter .p-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.presenter .p-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .4s; }
.spotlight { box-shadow: 0 0 0 4px var(--amber), var(--shadow-lg) !important; border-radius: 24px; transition: box-shadow .3s; }

/* ---------- Voice mode (on the main page) ---------- */
.voice-bar { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 14px auto 0; padding: 10px 10px 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); text-align: left; animation: rise .25s ease-out; }
.voice-bar[hidden] { display: none; }
.voice-dot { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--red); }
.voice-dot i { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(200, 40, 58, .5); animation: ring 1.6s ease-out infinite; }
.voice-bar.speaking .voice-dot { background: #8C92F0; }
.voice-bar.speaking .voice-dot i { border-color: rgba(140, 146, 240, .6); animation-duration: .9s; }
@keyframes ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.voice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.voice-text b { font-size: 15px; }
.voice-text small { font-size: 12px; color: #C9CBDD; }
.voice-bar .pill { padding: 9px 16px; font-size: 14px; }
.voice-bar .pill.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.voice-bar .pill.ghost:hover { background: rgba(255, 255, 255, .12); }
.voice-bar .pill.end { background: var(--red); }
.voice-bar .pill.end:hover { background: #A41F2E; }
.voice-bar :focus-visible { outline-color: var(--amber); }
/* The big, obvious way into a spoken conversation. */
.talk-or { display: flex; align-items: center; gap: 12px; max-width: 360px; margin: 14px auto 0; color: var(--slate); font-size: 13px; font-weight: 600; }
.talk-or::before, .talk-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.talk-or[hidden] { display: none; }
.talk-cta { display: inline-flex; align-items: center; gap: 14px; margin: 12px auto 0; padding: 10px 26px 10px 10px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .1s, background .15s; }
.talk-cta[hidden] { display: none; }
.talk-cta:hover { background: #1E2040; }
.talk-cta:active { transform: translateY(1px); }
.talk-cta:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.talk-cta-icon { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.talk-cta-icon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(200, 40, 58, .55); animation: ring 1.8s ease-out infinite; }
.talk-cta-icon svg { width: 24px; height: 24px; stroke-width: 2.2; }
.talk-cta-text b { display: block; font-size: 17px; font-weight: 700; }
.talk-cta-text small { display: block; font-size: 13px; color: #C9CBDD; }
.voice-line { display: flex; gap: 8px; align-items: flex-start; color: #33354A; font-size: 15px; padding: 2px 4px; animation: rise .25s ease-out; }
.voice-line svg { width: 18px; height: 18px; flex: none; color: var(--indigo); margin-top: 2px; }
.q-voice { font-weight: 400; opacity: .75; font-size: 13px; }
.connect { border: 2px solid #CDE9DA; background: #F2FAF6; border-radius: var(--radius-sm); padding: 16px 18px; animation: rise .25s ease-out; }
.connect-head { display: flex; gap: 12px; align-items: center; }
.connect-head .ico { background: var(--white); color: var(--green); }
.connect-head b { display: block; font-size: 17px; }
.connect-head span { display: block; font-size: 13px; color: var(--slate); }
.connect-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 14px 20px; border-radius: 999px;
  background: var(--green); color: var(--white); text-decoration: none; font-weight: 800; font-size: 20px; }
.connect-btn:hover { background: #17704A; }
.connect-btn svg { width: 22px; height: 22px; stroke-width: 2.2; }
.connect-btn small { font-size: 13px; font-weight: 600; opacity: .9; }
.connect .fine { margin: 8px 0 0; text-align: center; }
@media (max-width: 700px) {
  .voice-bar { flex-wrap: wrap; border-radius: 24px; }
  .voice-text { flex-basis: calc(100% - 40px); }
}

/* ---------- Print: a plan prints on its own ---------- */
@media print {
  body.printing-plan > *:not(main), body.printing-plan main > *:not(#conversation),
  body.printing-plan #conversation > *:not(.chat-log), body.printing-plan .chat-log > *:not(.print-target),
  body.printing-plan .print-target .a-tools, body.printing-plan .print-target .go { display: none !important; }
  body.printing-plan .conversation { border: 0; box-shadow: none; padding: 0; }
  body.printing-plan .print-target::after { content: "Printed from One Door, an unofficial concept demo by K2 Projects. Not a Tasmanian Government service. Check each official site for current details.";
    display: block; margin-top: 18px; font-size: 11px; color: #555; }
  body.printing-plan .step { break-inside: avoid; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .place-grid, .how-steps { grid-template-columns: 1fr; }
  #map { height: 340px; min-height: 0; }
  .map-card { position: static; }
}
@media (max-width: 700px) {
  main, .top { padding-left: 16px; padding-right: 16px; }
  .hero::before { inset: 0 -16px; }
  .nav { display: none; }
  .hero { padding: 32px 0 28px; }
  .askbar { padding-left: 14px; }
  .askbar-icon { display: none; }
  .askbar .pill { padding: 12px 20px; }
  .chips-label { flex-basis: 100%; text-align: center; margin: 4px 0 0; }
  .conversation { padding: 20px 16px; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; align-items: start; }
  .step-num { display: none; }
  .step .ico { width: 36px; height: 36px; border-radius: 11px; }
  .step .step-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .glance { padding: 20px; }
  .section { padding-top: 52px; }
  .all-services { padding: 18px; }
  footer { padding: 24px 16px; }
  .attrib { flex-direction: column; }
  /* Two rows on small screens: the question gets the full width. */
  .askbar { flex-wrap: wrap; border-radius: 28px; padding: 8px; gap: 6px; }
  .askbar input { flex: 1 1 100%; padding: 10px 12px; }
  .voice { flex: 1; }
  .voice select { max-width: none; flex: 1; font-size: 14px; padding: 8px 4px; }
  .askbar .pill { padding: 12px 22px; }
  .doors { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; gap: 8px; }
  .action { padding: 10px 12px; }
  .dlg { padding: 20px 18px; }
  .plan-list { grid-template-columns: 1fr; }
  .samples { gap: 8px; }
  .doors-arrow { transform: rotate(90deg); }
  .conv-head { flex-direction: column; gap: 4px; }
  .presenter { grid-template-columns: 1fr; bottom: 10px; }
  .presenter .p-controls { grid-column: 1; grid-row: auto; }
}
@media (max-width: 1080px) { .nav a { display: none; } }
