/* Internal theme shared by the portal, the park document and the guide pages. */
:root {
  --paper: var(--site-bg);
  --surface: #fff;
  --green: var(--site-brand);
  --green-d: var(--site-strong);
  --green-dd: var(--site-strong);
  --green-l: var(--site-tint);
  --pine: var(--green);
  --dark: var(--green-dd);
  --bg: var(--paper);
  --fog: var(--green-l);
  --ink: var(--site-ink);
  --ink-2: var(--site-secondary);
  --ink-3: var(--site-muted);
  --soft: var(--ink-2);
  --line: var(--site-line);
  --gold: #c9a15b;
  --chip-bg: var(--site-input);
  --ic-main: var(--green);
  --ic-accent: var(--gold);
  --ic-light: var(--green-l);
  --sh-card: 0 2px 12px rgb(39 66 47 / 6%);
}

html, #v-home, body:has(.app), body:has(.crumb) { background: var(--paper); }
#app .view:not(.active) { display: none; }
.portal-panel, .consult, .panel {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-card);
}
.portal-hero { background: var(--site-tint); border: 1px solid var(--line); }
.portal-hero::before {
  background: linear-gradient(90deg, #eff2e5 22%, #eff2e5ef 39%, #eff2e58c 65%, transparent);
}
.portal-headline h1 { color: #243f2f; }
.portal-discover > button {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  gap: 8px;
  box-shadow: var(--sh-card);
}
.portal-discover > button:nth-child(n) { background: white; }
.portal-discover .ic { width: 46px; height: 46px; }
.portal-tool-grid button { background: var(--site-bg); border-radius: 12px; }
.portal-service-grid button { border-radius: 12px; }
.portal-service-grid .ic { background: var(--green-l); padding: 5px; border-radius: 13px; }
.portal-service-grid button:nth-child(3n) .ic { background: #f6efdf; }
.portal-qr { margin: auto; width: min(92vw, 390px); max-height: 90dvh; padding: 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; }
.portal-qr::backdrop { background: rgb(24 41 32 / 42%); }
.portal-qr .drawer-h { display: flex; justify-content: space-between; align-items: center; }
.portal-qr .me-qr { text-align: center; }
.portal-qr .me-qr img { display: block; width: min(100%, 300px); height: auto; margin: 12px auto; }
.portal-qr .drawer-b { padding: 0; }
.portal-qr .text-cap { color: var(--ink-2); font-size: .83rem; }
.dock a.primary { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 46px; }
.portal-more, .portal-contact, .portal-search button,
.dock button, .tab, .route-tools > *, .btn:not(.btn-sm), .topic button, .fee-tabs button,
.portal-mast .citybtn, #v-home .hm-chips button { min-height: 44px; }
.portal-search button, .btn:not(.btn-pill), .dock .btn, .warm-btn { border-radius: 12px; }
.portal-search button, .dock .primary, .btn-primary { background: var(--green-d); color: white; }
.dock .small { color: var(--green-dd); }
.dock .small[data-show="callback"] { border: 1px solid #c8d8cc; border-radius: 12px; background: white; }
#v-home .hm-chips button.on { color: white; background: var(--green-d); }
.tab[aria-selected="true"], .fee-tabs button[aria-pressed="true"] { color: var(--green-dd); }
:where(button, a, summary) { touch-action: manipulation; }
:is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--green-d); outline-offset: 2px; }
button:disabled { cursor: default; }
:is(form[aria-busy="true"]) button:disabled::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: 5px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: portal-wait .8s linear infinite;
}
form[data-result="ok"] [role="status"] { color: #295d3d; }
form[data-result="error"] [role="status"] { color: #913e39; }
@keyframes portal-wait { to { transform: rotate(360deg); } }
@media (hover:hover) {
  .portal-discover > button:hover, .portal-tool-grid button:hover,
  .portal-service-grid button:hover, .pk:hover .pk-img { box-shadow: 0 3px 12px #354f3324; }
  :where(button:not(:disabled), a, summary):hover { filter: brightness(.96); }
}
@media (prefers-reduced-motion:no-preference) {
  :where(button, a, summary) { transition: filter .12s, box-shadow .12s, scale .12s; }
  :where(button:not(:disabled), a, summary):active { scale: .98; }
}
@media (prefers-reduced-motion:reduce) {
  form[aria-busy="true"] button:disabled::before { animation: none; }
}
@media (min-width:900px) {
  :root { --app-max: 1120px; }
  .portal-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .portal-discover > button { padding: 15px 20px; }
  .portal-discover > button::after { content: "›"; margin-left: auto; color: #799483; font-size: 1.3rem; }
  .portal-discover .ic { width: 52px; height: 52px; }
}
#msg-content .contact-permission{display:flex;align-items:flex-start;gap:8px;font-weight:400;line-height:1.5}
#msg-content .contact-permission input{flex:none;width:18px;height:18px;margin:3px 0;padding:0;accent-color:#176b60}
#msg-content .contact-privacy{justify-self:start;color:#176b60;text-decoration:underline;text-underline-offset:3px}
