/* The look of the Statewide New Jersey Portal on mynjgov.com. */
:root {
  --bg: #ffffff; --white: #ffffff; --paper: #fafaf8; --surface-lo: #fcfcfa; --surface-hi: #f4f3ef;
  --hair: #e8e6e0; --strong: #d6d3cc;
  --text: #111113; --body: #3a3a3d; --text-muted: #6b6b70; --dim: #9a9a9e;
  --action: #d63600; --action-hi: #b02c00; --action-soft: #fff1ec; --action-edge: #f9d7c7;
  --bp: #2b6cb0; --bp-light: #eef4fa; --ok: #1f9d55; --ok-light: #eaf7ef;
  --warn: #b5800c; --warn-light: #fbf4e2; --err: #b42318; --err-light: #feeceb;
  --text-display: 56px; --text-h1: 40px; --text-h2: 32px; --text-h3: 24px; --text-h4: 18px; --text-body: 16px; --text-body-sm: 14px; --text-caption: 12px;
  --w-content: 920px;
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(17, 17, 19, 0.05);
  --shadow-sm: 0 1px 3px rgba(17, 17, 19, 0.07), 0 1px 2px rgba(17, 17, 19, 0.05);
  --shadow-md: 0 4px 12px rgba(17, 17, 19, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --dur-fast: 200ms; --dur-enter: 300ms; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --tap-target: 44px;
  --space-half: 2px; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 32px; --space-8: 40px; --space-9: 48px; --space-10: 64px; --space-11: 80px; --space-12: 96px;
  --font-sans: 'Figtree', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--action);
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--text-body); line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
input::placeholder { color: var(--text-muted); }
:focus-visible { outline: none; box-shadow: var(--ring); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ph-static { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--hair); background: var(--bg); }
.ph-static-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; }
.ph-static-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.ph-static-brand img { display: block; }
.ph-static-brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; }
.ph-static-brand-title { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-static-brand-sub { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-static-nav { display: flex; align-items: center; gap: 32px; }
.ph-static-signin { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--strong); border-radius: var(--radius-xs); background: transparent; font-size: 13px; font-weight: 500; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; text-decoration: none; color: var(--text); cursor: pointer; transition: background var(--dur-fast) ease; }
.ph-static-signin:hover { background: var(--surface-hi); }
@media (max-width: 767px) { .ph-static-signin { min-height: var(--tap-target); min-width: var(--tap-target); font-size: var(--text-body); } }
.ph-static-avatar { display: none; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border: 1px solid var(--hair); border-radius: var(--radius-pill); background: var(--bg); text-decoration: none; color: var(--text); cursor: pointer; }
.ph-static-avatar:hover { background: var(--surface-lo); }
.ph-static-avatar-circle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface-hi); font-size: 11.2px; font-weight: 500; }
.ph-static-avatar-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.ph-static-avatar-name { font-size: 13px; font-weight: 500; letter-spacing: -0.1px; }
.ph-static-avatar-caret { flex-shrink: 0; color: var(--text-muted); }
html[data-signed-in='true'] .ph-static-signin { display: none; }
html[data-signed-in='true'][data-account='business'] .ph-static-avatar--business { display: inline-flex; }
html[data-signed-in='true']:not([data-account='business']) .ph-static-avatar--personal { display: inline-flex; }
@media (max-width: 1024px) { .ph-static-inner { padding: 12px 20px; gap: 12px; } .ph-static-nav { gap: 18px; } }
@media (max-width: 768px) { .ph-static-nav { gap: 0; } }

.shell { display: flex; min-height: calc(100vh - 59px); flex-direction: column; }
.main { flex: 1; }
.page { overflow-x: clip; padding-bottom: var(--space-11); }
.col { margin: 0 auto; width: 100%; max-width: var(--w-content); padding-inline: var(--space-4); }
.section { padding-top: var(--space-10); }
@media (max-width: 767px) { .page { padding-bottom: var(--space-9); } }

.tone-warn { --ink: var(--warn); --soft: var(--warn-light); }
.tone-action { --ink: var(--action); --soft: var(--action-soft); }
.tone-bp { --ink: var(--bp); --soft: var(--bp-light); }
.tone-err { --ink: var(--err); --soft: var(--err-light); }
.tone-ok { --ink: var(--ok); --soft: var(--ok-light); }
.tone-muted { --ink: var(--dim); --soft: var(--surface-hi); }
.ink { display: inline-flex; flex-shrink: 0; color: var(--ink, var(--dim)); }

.d-hero { padding: var(--space-11) 0 0; }
.d-kicker { margin: 0 0 var(--space-4); font-size: var(--text-h4); font-weight: 600; line-height: 24px; color: var(--text); text-wrap: balance; }
.d-h1 { margin: 0 0 var(--space-4); font-size: 72px; font-weight: 700; line-height: 1.14; letter-spacing: -0.045em; color: var(--text); text-wrap: pretty; }
.d-h1 span { display: block; color: var(--action); }
.d-sub { margin: 0 0 var(--space-6); text-wrap: pretty; font-size: var(--text-h4); line-height: 24px; color: var(--body); }
.d-hero .search-wrap { z-index: 5; }
@media (max-width: 860px) { .d-hero { padding-top: var(--space-10); } .d-h1 { font-size: 52px; } }
@media (max-width: 640px) {
  .d-hero { padding-top: var(--space-8); }
  .d-h1 { font-size: 40px; }
  .d-sub { font-size: var(--text-body); margin-bottom: var(--space-4); }
}

.search-wrap { position: relative; }
.search { display: flex; align-items: center; gap: 14px; width: 100%; height: 64px; margin: 0; padding: 8px 8px 8px 18px; border: 1px solid var(--strong); border-radius: var(--radius-xl); background: var(--bg); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.search:focus-within { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.search > svg { flex-shrink: 0; color: var(--text-muted); }
.search input { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; outline: none; box-shadow: none; font-size: var(--text-h4); line-height: 24px; color: var(--text); }
.search-go { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-md); background: var(--action); font-size: var(--text-body-sm); font-weight: 500; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; color: #fff; cursor: pointer; transition: background var(--dur-fast) ease; }
.search-go:hover { background: var(--action-hi); }
@media (max-width: 767px) {
  .search { height: 56px; gap: 10px; padding: 6px 6px 6px 14px; }
  .search input { min-height: var(--tap-target); }
  .search-go { height: var(--tap-target); padding: 0 12px; font-size: var(--text-body); }
  .search-go svg { display: none; }
}
.spinner { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--action) 35%, transparent); border-top-color: var(--action-hi); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.d-ex-label { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-body); font-weight: 600; line-height: 24px; color: var(--text); }
.d-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.d-ex { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--white); color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease; }
.d-ex:hover { border-color: var(--action); background: var(--action-soft); color: var(--action); }
.d-ex q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--text-body); font-weight: 500; line-height: 24px; }
.d-ex-finds { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--text-body-sm); line-height: 21px; color: var(--text-muted); }
.d-ex-finds svg { flex: 0 0 auto; }
.d-ex-finds span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 860px) { .d-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .d-examples { grid-template-columns: 1fr; } }
.d-ex-short { display: none; }
@media (max-width: 640px) {
  .d-ex { padding: var(--space-2) var(--space-4); }
  .d-ex q { font-size: var(--text-body-sm); line-height: 21px; }
  .d-ex-full { display: none; }
  .d-ex-short { display: inline; }
}

.d-big { margin: 0 0 var(--space-3); text-wrap: pretty; font-size: 44px; font-weight: 700; line-height: 1.22; letter-spacing: -0.035em; }
.d-big em { font-style: normal; color: var(--action); }
.d-lead { margin: 0 0 var(--space-6); text-wrap: pretty; font-size: var(--text-h4); line-height: 24px; color: var(--body); }
@media (max-width: 640px) { .d-big { font-size: 32px; } .d-lead { font-size: var(--text-body); } }

.d-tabs { display: flex; margin-bottom: var(--space-7); border-bottom: 1px solid var(--hair); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tabs button { margin-bottom: -1px; padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; font-size: var(--text-body); font-weight: 500; line-height: 24px; white-space: nowrap; text-transform: capitalize; color: var(--text-muted); transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.d-tabs button:hover { color: var(--text); }
.d-tabs button[aria-selected='true'] { border-bottom-color: var(--action); color: var(--text); }
.d-tabs button:focus-visible { box-shadow: none; outline: 2px solid var(--action); outline-offset: 1px; }
.d-panel[hidden] { display: none; }

.d-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.d-cat { display: flex; align-items: center; gap: var(--space-3); height: 80px; padding: var(--space-4); border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: var(--text); transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease; }
.d-cat:hover { border-color: var(--action); background: var(--action-soft); color: var(--action); }
.d-cat-ico { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--soft); color: var(--ink); }
.d-cat span { min-width: 0; }
.d-cat b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--text-h4); font-weight: 600; line-height: 24px; letter-spacing: -0.01em; }
.d-cat .pc-seal, .d-cat .pc-ini { width: 40px; height: 40px; }
@media (max-width: 860px) { .d-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .d-cats { grid-template-columns: 1fr; } }

.d-rows { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.d-rows a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: var(--text); transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease; }
.d-rows b { font-size: var(--text-h4); font-weight: 600; line-height: 24px; letter-spacing: -0.01em; }
.d-rows svg { color: var(--action); }
.d-rows a:hover { border-color: var(--action); background: var(--action-soft); color: var(--action); }
@media (max-width: 640px) {
  .d-rows a { gap: var(--space-3); padding: var(--space-3) var(--space-4); }
}

.d-cat.is-new { animation: d-rise var(--dur-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes d-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .d-cat.is-new { animation: none; } }

.d-more { display: flex; justify-content: center; margin-top: var(--space-4); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--strong); border-radius: var(--radius-xs); background: transparent; font-size: var(--text-body-sm); font-weight: 500; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; color: var(--text); cursor: pointer; transition: background var(--dur-fast) ease; }
.btn-secondary:hover { background: var(--surface-hi); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--action); border-radius: var(--radius-xs); background: transparent; font-size: var(--text-body-sm); font-weight: 500; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; text-decoration: none; color: var(--action); cursor: pointer; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.btn-outline:hover { border-color: var(--action-hi); background: var(--action-soft); color: var(--action-hi); }
@media (max-width: 767px) { .btn-outline { min-height: var(--tap-target); min-width: var(--tap-target); font-size: var(--text-body); } }
a.btn-secondary { text-decoration: none; }
.btn-secondary.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-secondary[hidden] { display: none; }
@media (max-width: 767px) { .btn-secondary, .btn-secondary.btn-sm { min-height: var(--tap-target); min-width: var(--tap-target); font-size: var(--text-body); } }

.pc-seal { display: block; flex: 0 0 auto; object-fit: contain; }
.pc-ini { display: grid; flex: 0 0 auto; place-items: center; border-radius: var(--radius-sm); background: var(--surface-hi); color: var(--text); font-size: 10px; font-weight: 500; }

.d-filter { position: relative; display: flex; align-items: center; border: 1px solid var(--strong); border-radius: var(--radius-xs); background: var(--white); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.d-filter:hover { border-color: var(--text); }
.d-filter:focus-within { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.d-filter svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.d-filter input { flex: 1; min-width: 0; padding: 12px 16px 12px 36px; border: 0; background: transparent; outline: none; box-shadow: none; font-size: var(--text-body); line-height: 24px; color: var(--text); }
.d-town-search { margin-bottom: var(--space-4); }

.pc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 16px); max-width: calc(100vw - 32px); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--text); color: #fff; font-size: var(--text-body-sm); line-height: 21px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease; }
.pc-toast[data-show='true'] { opacity: 1; transform: translate(-50%, 0); }

.d-page-hero { padding: var(--space-6) 0 0; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-7); }
.d-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: calc(var(--space-3) * -1); padding: 6px 12px; border: 1px solid transparent; border-radius: var(--radius-xs); background: transparent; font-size: 13px; font-weight: 500; line-height: 1.15; letter-spacing: -0.1px; white-space: nowrap; text-decoration: none; color: var(--text); transition: background var(--dur-fast) ease; }
.d-back:hover { background: var(--surface-hi); }
.d-back svg { width: 12px; height: 12px; transform: rotate(180deg); }
@media (max-width: 767px) { .d-back { min-height: var(--tap-target); min-width: var(--tap-target); font-size: var(--text-body); } }
.d-id { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-7); }
.d-id .pc-seal, .d-id .pc-ini { width: 84px; height: 84px; }
.d-id h1 { margin: 0; font-size: var(--text-display); font-weight: 700; line-height: 58px; letter-spacing: -0.04em; }
.d-id p { margin: var(--space-2) 0 0; font-size: var(--text-h4); line-height: 24px; color: var(--body); }
.d-id p b { font-weight: 500; color: var(--text); }
@media (max-width: 720px) { .d-id h1 { font-size: var(--text-h1); line-height: 44px; } .d-id .pc-seal, .d-id .pc-ini { width: 60px; height: 60px; } }

.d-idx { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-7); padding: var(--space-6) 0; border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.d-idx.is-first { margin-top: var(--space-2); border-top: 0; }
.d-idx[hidden] { display: none; }
.d-idx h2 { position: sticky; top: 80px; align-self: start; margin: 0; font-size: var(--text-h4); font-weight: 600; line-height: 24px; letter-spacing: -0.01em; }
.d-idx ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--space-7); }
.d-idx li { break-inside: avoid; }
.d-idx li[hidden] { display: none; }
.d-idx-row { display: block; width: 100%; padding: var(--space-1) 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: var(--text-body); line-height: 24px; color: var(--text); }
.d-idx-row:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.d-idx--wide { display: block; }
.d-idx--wide ul { columns: 3; }
@media (max-width: 860px) { .d-idx--wide ul { columns: 2; } }
@media (max-width: 720px) {
  .d-idx { grid-template-columns: 1fr; gap: var(--space-2); padding-inline: var(--space-4); }
  .d-idx h2 { position: static; }
  .d-idx ul, .d-idx--wide ul { columns: 1; }
  .d-idx-row { min-height: var(--tap-target); }
}
.d-filter[hidden], .d-status[hidden] { display: none; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid; border-radius: var(--radius-md); line-height: 1.625; color: var(--text); }
.alert-info { background: var(--bp-light); border-color: var(--bp); }
.alert[hidden] { display: none; }
.alert-icon { flex-shrink: 0; display: inline-flex; align-items: center; }
.alert-info .alert-icon { color: var(--bp); }
.alert-body { min-width: 0; flex: 1; }
.alert-title { margin-bottom: 2px; font-size: var(--text-body-sm); line-height: 21px; font-weight: 500; color: var(--text); }
.alert-text { font-size: var(--text-body-sm); line-height: 1.625; color: var(--body); }
.alert-action { flex-shrink: 0; }
@media (max-width: 767px) { .alert { flex-wrap: wrap; } }
.d-for { margin: calc(var(--space-7) * -0.5) 0 var(--space-6); }
.d-status { display: flex; flex-direction: column; align-items: center; padding: var(--space-9) var(--space-6); border: 1px solid var(--hair); border-radius: var(--radius-xl); background: var(--white); text-align: center; }
.d-status > svg { color: var(--action); }
.d-status h2 { margin: var(--space-4) 0 0; font-size: var(--text-h3); font-weight: 700; line-height: 32px; letter-spacing: -0.01em; }
.d-status p { margin: var(--space-2) 0 0; max-width: 560px; font-size: var(--text-body); line-height: 24px; color: var(--body); }
.d-status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 640px) {
  .d-status { padding: var(--space-7) var(--space-4); }
  .d-status-actions { flex-direction: column; align-self: stretch; }
  .d-status-actions > * { white-space: normal; }
}
.d-empty { margin: var(--space-7) 0 0; color: var(--text-muted); }
.d-empty[hidden] { display: none; }
.d-empty-help { margin: var(--space-1) 0 0; color: var(--text-muted); }
.d-empty-help[hidden] { display: none; }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: color-mix(in srgb, var(--text) 45%, transparent); }
.modal[hidden] { display: none; }
.modal-card { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: hidden; border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--hair); }
.modal-head h2 { margin: 0; font-size: var(--text-h4); font-weight: 600; line-height: 24px; }
.modal-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: calc(var(--space-2) * -1); border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text); cursor: pointer; }
.modal-close:hover { background: var(--surface-hi); }
.modal-body { display: flex; flex-direction: column; min-height: 0; padding: var(--space-5) var(--space-6); }
.modal-towns { flex: 1; min-height: 0; margin: var(--space-3) calc(var(--space-3) * -1) 0; padding: 0; overflow-y: auto; list-style: none; }
.modal-towns:first-child { margin-top: 0; }
.modal-towns button { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: none; cursor: pointer; text-align: left; font-size: var(--text-body); line-height: 24px; color: var(--text); }
.modal-towns button:hover, .modal-towns button[aria-current='true'] { background: var(--action-soft); }
.modal-towns button[aria-current='true'] { color: var(--action); }
.modal-towns button span:not(.pc-ini) { flex: 1; }
.modal-towns small { font-size: var(--text-body-sm); color: var(--text-muted); }
.modal-towns .none { padding: var(--space-2) var(--space-3); font-size: var(--text-body-sm); color: var(--text-muted); }
.modal-towns .none small { display: block; margin-top: var(--space-1); font-size: inherit; }
@media (max-width: 639px) {
  .modal { padding: 0; }
  .modal-card { max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .modal-head { padding-inline: var(--space-4); }
  .modal-body { flex: 1; padding: var(--space-4); }
  .modal-close { width: var(--tap-target); height: var(--tap-target); }
  .modal-towns button { min-height: var(--tap-target); }
}

.footer { margin-top: auto; border-top: 1px solid var(--hair); background: var(--white); }
.footer-inner { margin: 0 auto; display: flex; max-width: 1200px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 20px 32px; font-size: var(--text-body-sm); line-height: 21px; color: var(--text-muted); }
.footer-group { display: flex; align-items: center; gap: 28px; }
.footer-link { font-size: var(--text-body-sm); line-height: 21px; color: var(--body); text-decoration: none; }
.footer-link:hover { color: var(--text); }
.footer-built { display: inline-flex; align-items: center; gap: 8px; }
.footer-built svg { flex-shrink: 0; color: var(--text); }
.footer-version { position: relative; display: flex; align-items: center; }
.footer-version-btn { display: inline-flex; align-items: center; justify-content: center; padding: 4px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--text); cursor: pointer; transition: opacity var(--dur-fast) ease; }
.footer-version-btn:hover { opacity: 0.7; }
.footer-version-panel { position: absolute; bottom: 100%; right: 0; z-index: 10; width: max-content; margin-bottom: 8px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-md); }
.footer-version-panel[hidden] { display: none; }
.footer-version-panel p { margin: 0 0 4px; font-size: var(--text-body-sm); font-weight: 500; line-height: 21px; color: var(--text); }
.footer-version-panel ul { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--text-body-sm); line-height: 21px; color: var(--body); }
.footer-version-panel li + li { margin-top: 2px; }
.footer-version-panel::before, .footer-version-panel::after { content: ''; position: absolute; right: 4px; top: 100%; border-style: solid; border-width: 6px 6px 0; border-color: var(--hair) transparent transparent; }
.footer-version-panel::after { margin-top: -1px; border-top-color: var(--white); }
@media (max-width: 767px) {
  .footer-link { display: inline-flex; min-height: var(--tap-target); min-width: var(--tap-target); align-items: center; font-size: var(--text-body); line-height: 24px; }
  .footer-version-btn { min-height: var(--tap-target); min-width: var(--tap-target); }
}
