/* LOCALS: THREE LAYERS. Life Desk, My Area, Club. JP-261015-04.
   One stylesheet for every Locals page, linked with a content hash by scripts/_lib/locals-layers.js.
   Touch targets are at least 44px; text on the dark bands is white or near-white on #1F1A16. */

/* ---- smooth page changes. Cross-document view transitions, progressive: a browser without them
   simply navigates. The layer bar is named so it holds still while the content cross-fades. ---- */
@view-transition { navigation: auto; }
.jp-lbar { view-transition-name: jp-locals-layers; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* The sticky fix (overflow-x:clip on html and body) moved into japanpass.css for the whole site,
   JP-261015-05; it lived here, for Locals pages only, in JP-261015-04. */

/* ---- the layer bar ---------------------------------------------------------------------------- */
.jp-lbar { position: sticky; top: var(--jp-lbar-top, 0px); z-index: 44; background: #fff;
  border-bottom: 1px solid #E6E2DC; box-shadow: 0 1px 4px rgba(26,20,16,.05); }
.jp-lbar-in { max-width: 1120px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center;
  gap: 14px; }
.jp-lsegs { display: flex; flex: 1 1 auto; min-width: 0; border: 1px solid #DDD6CC; border-radius: 12px;
  overflow: hidden; background: #FAF8F5; }
.jp-lseg { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 5px 12px; text-decoration: none; color: #241F1B; border-right: 1px solid #DDD6CC; }
.jp-lseg:last-child { border-right: 0; }
.jp-lseg:hover { background: #F2EEE8; }
.jp-lseg:focus-visible { outline: 3px solid #D42015; outline-offset: -3px; }
.jp-lseg-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #E6E2DC; color: #241F1B;
  font: 800 13px/24px system-ui, sans-serif; text-align: center; }
.jp-lseg-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.jp-lseg-t b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.jp-lseg-t i { font-style: normal; font-size: 12.5px; color: #5B544C; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.jp-lseg.is-on { background: #241F1B; color: #fff; }
.jp-lseg.is-on .jp-lseg-t i { color: #E8E2DA; }
.jp-lseg.is-on .jp-lseg-n { background: #D42015; color: #fff; }
.jp-lemg { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.jp-lemg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px;
  text-decoration: none; white-space: nowrap; }
.jp-lemg-n { color: #A11A0F; border: 1px solid #E6C4C0; background: #FFF6F5; }
.jp-lemg-n b { font-size: 16px; margin-right: 4px; }
.jp-lemg-all { color: #A11A0F; text-decoration: underline !important; }
@media (max-width: 1100px) {
  .jp-lbar-in { flex-direction: column; align-items: stretch; gap: 4px; padding: 5px 10px 4px; }
  .jp-lemg { justify-content: space-between; gap: 4px; font-size: 12.5px; }
  .jp-lemg a { min-height: 44px; padding: 0 8px; }
  .jp-lemg-n b { font-size: 15px; }
}
/* On a phone the emergency row sits above the three layers and slides under the site nav as the
   page scrolls, so what stays pinned is the one-row layer control and not two rows of chrome. */
@media (max-width: 600px) {
  .jp-lemg { order: -1; }
  .jp-lbar { top: calc(var(--jp-lbar-top, 0px) - var(--jp-lemg-h, 0px)); }
}
@media (max-width: 480px) {
  .jp-lseg { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 4px; text-align: center; }
  .jp-lseg-t { align-items: center; }
  .jp-lseg-t b { font-size: 13px; }
  .jp-lseg-t i { font-size: 11.5px; max-width: 100%; }
  .jp-lseg-n { width: 20px; height: 20px; font-size: 11.5px; line-height: 20px; }
}
/* The topic pages also carry a sticky section bar. On Locals it pins under this bar on a wide
   screen and scrolls away on a phone, where two pinned bars would leave too little to read. */
.jp-lbar ~ .jp-secbar { top: calc(var(--jp-lbar-top, 0px) + var(--jp-lbar-h, 62px)); }
@media (max-width: 860px) { .jp-lbar ~ .jp-secbar { position: static; } }
@media (max-width: 1100px) { .jp-lemg { justify-content: flex-end; } }
@media (max-width: 600px) { .jp-lemg { justify-content: space-between; } }

/* ---- shared pieces ------------------------------------------------------------------------------ */
.ll-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ll-band { background: #1F1A16; color: #fff; }
.ll-band .ll-wrap { padding-top: 34px; padding-bottom: 30px; }
.ll-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: #F2B8B2; margin: 0 0 10px; }
.ll-band h1 { font-family: var(--serif, Georgia, serif); font-size: 38px; line-height: 1.12; margin: 0 0 10px; color: #fff; }
.ll-band .ll-sub { font-size: 17px; line-height: 1.55; color: #EDE7DF; margin: 0 0 18px; max-width: 62ch; }
.ll-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent; font: 700 15px/1.2 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; }
.ll-btn-red { background: #D42015; color: #fff; }
.ll-btn-red:hover { background: #B31C12; }
.ll-btn-light { background: #fff; color: #241F1B; border-color: #DDD6CC; }
.ll-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ll-btn:focus-visible { outline: 3px solid #F2B8B2; outline-offset: 2px; }
.ll-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ll-sec { padding: 30px 0 6px; }
.ll-sec > h2, .ll-h2 { font-family: var(--serif, Georgia, serif); font-size: 25px; margin: 0 0 6px; }
.ll-note { font-size: 14.5px; color: #5B544C; margin: 0 0 14px; line-height: 1.55; }
.ll-src { font-size: 12.5px; color: #6B645C; margin: 8px 0 0; line-height: 1.5; }
.ll-src a { color: #6B645C; }
.ll-msg { font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }
.ll-msg.ok { color: #12684C; } .ll-msg.err { color: #A11A0F; }
.ll-hidden { display: none !important; }
.ll-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Life Desk hero search ---- */
.ll-search { position: relative; max-width: 620px; }
.ll-search label { display: block; font-size: 13px; font-weight: 700; color: #EDE7DF; margin: 0 0 6px; }
.ll-search input { width: 100%; box-sizing: border-box; min-height: 50px; border-radius: 12px; border: 1px solid #5B544C;
  padding: 0 14px; font: 16px/1.3 inherit; font-family: inherit; color: #241F1B; background: #fff; }
.ll-search-res { list-style: none; margin: 6px 0 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.ll-search-res li a { display: block; padding: 12px 14px; min-height: 44px; box-sizing: border-box; color: #241F1B;
  text-decoration: none; border-top: 1px solid #EEE9E2; }
.ll-search-res li:first-child a { border-top: 0; }
.ll-search-res li a b { display: block; font-size: 15px; }
.ll-search-res li a span { display: block; font-size: 13px; color: #5B544C; }
.ll-search-res li a:hover, .ll-search-res li a:focus-visible { background: #FAF3F2; }
.ll-search-none { padding: 12px 14px; color: #241F1B; font-size: 14px; }

/* ---- stage picker and checklist ---- */
.ll-stages { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.ll-stage { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #CFC7BC; background: #fff;
  color: #241F1B; font: 700 14.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ll-stage[aria-pressed="true"] { background: #241F1B; border-color: #241F1B; color: #fff; }
.ll-stage:focus-visible { outline: 3px solid #D42015; outline-offset: 2px; }
.ll-check { list-style: none; margin: 0; padding: 0; border: 1px solid #E6E2DC; border-radius: 14px; background: #fff; }
.ll-check li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid #EEE9E2; }
.ll-check li:first-child { border-top: 0; }
.ll-tick { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -4px 0 0 -6px; }
.ll-tick input { width: 22px; height: 22px; accent-color: #1D8E68; cursor: pointer; }
.ll-step { flex: 1 1 auto; min-width: 0; }
.ll-step a.ll-step-t { font-size: 16px; font-weight: 700; color: #241F1B; text-decoration: none;
  border-bottom: 1px solid rgba(179,28,18,.35); }
.ll-step a.ll-step-t:hover { border-bottom-color: #B31C12; }
.ll-step dl { margin: 5px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13.5px; color: #4A443D; }
.ll-step dt { font-weight: 700; color: #6B645C; }
.ll-step dd { margin: 0; }
.ll-step .ll-down { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 13.5px; font-weight: 700;
  color: #B31C12; text-decoration: none; }
.ll-check li.is-done .ll-step a.ll-step-t { color: #6B645C; text-decoration: line-through; }
.ll-later { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #8A5300; background: #FFF3E0;
  border: 1px solid #E6C48A; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.ll-save-line { font-size: 14px; color: #5B544C; margin: 10px 0 0; }
.ll-save-line a, .ll-coming a { color: #B31C12; }
.ll-coming { font-size: 15px; border-left: 3px solid #D42015; padding: 6px 0 6px 12px; margin: 22px 0 0; }

/* ---- topic cards ---- */
.ll-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ll-cards .lc-task { border: 1px solid #E6E2DC; border-radius: 14px; padding: 14px 16px 10px; background: #fff; margin: 0; }
.ll-cards .lc-task h2 { font-size: 17px; margin: 0 0 8px; font-family: inherit; font-weight: 800; }
.ll-cards .lc-task.ll-urgent { border-color: #E6C4C0; background: #FFF9F8; }
.ll-cards .lc-pills { display: flex; flex-direction: column; gap: 0; border: 0; padding: 0; background: none; }
.ll-cards .lc-pills a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 2px; border: 0; border-top: 1px solid #F0ECE6; box-shadow: none; color: #241F1B; text-decoration: none; font-size: 15px;
  border-radius: 0; background: none; }
.ll-cards .lc-pills a:first-child { border-top: 0; }
.ll-cards .lc-pills a:hover { color: #B31C12; }
.ll-cards .lc-pills a b { font-size: 12.5px; font-weight: 800; color: #12684C; background: #EAF6F1; border-radius: 999px; padding: 2px 9px; }
.ll-cards .lc-task-note { font-size: 12.5px; color: #6B645C; margin: -4px 0 6px; }

/* ---- official counts strip ---- */
.ll-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ll-counts li a { display: block; border: 1px solid #E6E2DC; border-radius: 12px; padding: 12px 14px; background: #FAF8F5;
  color: #241F1B; text-decoration: none; min-height: 44px; }
.ll-counts li b { display: block; font-family: var(--serif, Georgia, serif); font-size: 28px; line-height: 1.1; color: #12684C; }
.ll-counts li span { display: block; font-size: 14px; font-weight: 700; }
.ll-counts li small { display: block; font-size: 12.5px; color: #5B544C; margin-top: 3px; line-height: 1.4; }

/* ---- handoff cards ---- */
.ll-handoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-radius: 16px;
  padding: 20px 22px; margin: 30px 0 8px; }
.ll-handoff.red { background: #D42015; color: #fff; }
.ll-handoff.dark { background: #1F1A16; color: #fff; }
.ll-handoff .ll-next { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; margin: 0 0 4px; opacity: .95; }
.ll-handoff h2 { font-family: var(--serif, Georgia, serif); font-size: 24px; margin: 0 0 4px; color: #fff; }
.ll-handoff p { margin: 0; font-size: 15px; line-height: 1.5; }
.ll-handoff.red .ll-btn { background: #fff; color: #A11A0F; }
.ll-handoff.dark .ll-btn { background: #D42015; color: #fff; }

/* ---- area picker ---- */
.ll-picker { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
.ll-picker::backdrop { background: rgba(20,16,12,.55); }
.ll-picker-in { padding: 18px 18px 16px; }
.ll-picker h2 { font-family: var(--serif, Georgia, serif); font-size: 22px; margin: 0 0 4px; }
.ll-picker label, .ll-pick label { display: block; font-size: 13.5px; font-weight: 700; margin: 12px 0 5px; }
.ll-picker select, .ll-picker input, .ll-pick select, .ll-pick input { width: 100%; box-sizing: border-box; min-height: 48px; border-radius: 11px;
  border: 1px solid #CFC7BC; padding: 0 12px; font: 16px/1.3 inherit; font-family: inherit; background: #fff; color: #241F1B; }
.ll-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ll-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #CFC7BC;
  background: #fff; color: #241F1B; text-decoration: none; font: 600 14.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ll-chip[aria-pressed="true"] { background: #241F1B; color: #fff; border-color: #241F1B; }
.ll-chip:focus-visible { outline: 3px solid #D42015; outline-offset: 2px; }
.ll-matches { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow: auto; border: 1px solid #EEE9E2; border-radius: 11px; }
.ll-matches:empty { display: none; }
.ll-matches button { display: block; width: 100%; text-align: left; min-height: 46px; padding: 0 12px; border: 0; border-top: 1px solid #F0ECE6;
  background: #fff; color: #241F1B; font: 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ll-matches li:first-child button { border-top: 0; }
.ll-matches button:hover, .ll-matches button:focus-visible { background: #FAF3F2; outline: none; }
.ll-matches small { color: #5B544C; margin-left: 6px; }
.ll-picker-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---- My Area ---- */
.ll-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ll-tile { border: 1px solid #E6E2DC; border-radius: 14px; padding: 15px 16px; background: #fff; scroll-margin-top: 150px; }
.ll-tile:target { border-color: #D42015; box-shadow: 0 0 0 3px rgba(212,32,21,.18); }
.ll-tile h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #6B645C; margin: 0 0 6px; }
.ll-tile .ll-tile-name { font-size: 17px; font-weight: 800; margin: 0 0 2px; }
.ll-tile .jp { font-size: 13.5px; color: #6B645C; }
.ll-tile ul { list-style: none; margin: 0; padding: 0; }
.ll-tile li { padding: 7px 0; border-top: 1px solid #F0ECE6; }
.ll-tile li:first-child { border-top: 0; padding-top: 0; }
.ll-tile .ll-tile-sub { display: block; font-size: 13.5px; color: #4A443D; line-height: 1.5; }
.ll-tile a.ll-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #B31C12; text-decoration: none; }
.ll-tile .tel { color: #A11A0F; font-weight: 700; }
.ll-around { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ll-around.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
@media (max-width: 860px) { .ll-around.has-map { grid-template-columns: minmax(0, 1fr); } }
.ll-map { height: 420px; position: sticky; top: 140px; }
@media (max-width: 860px) { .ll-map { position: static; height: 300px; order: -1; } }
.ll-places { list-style: none; margin: 12px 0 0; padding: 0; }
.ll-place { display: flex; align-items: center; gap: 10px; border-top: 1px solid #EEE9E2; padding: 6px 0; }
.ll-place:first-child { border-top: 0; }
.ll-place a.ll-place-a { flex: 1 1 auto; min-width: 0; display: block; padding: 6px 0; color: #241F1B; text-decoration: none; min-height: 44px; box-sizing: border-box; }
.ll-place a.ll-place-a b { font-size: 15.5px; }
.ll-place a.ll-place-a span { display: block; font-size: 13px; color: #5B544C; }
.ll-place a.ll-place-a:hover b { color: #B31C12; }
.ll-pr { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: #5B544C;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.ll-heart { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #DDD6CC; background: #fff; cursor: pointer;
  color: #8D857B; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ll-heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.ll-heart[aria-pressed="true"] { color: #D42015; border-color: #E6C4C0; background: #FFF6F5; }
.ll-heart[aria-pressed="true"] svg { fill: currentColor; }
.ll-heart:focus-visible { outline: 3px solid #D42015; outline-offset: 2px; }
.ll-count { font-size: 14.5px; font-weight: 700; margin: 8px 0 0; }
.ll-favs { list-style: none; margin: 10px 0 0; padding: 0; }
.ll-favs:empty { display: none; }
.ll-member { border: 1px solid #E6E2DC; border-radius: 16px; padding: 18px 20px; background: #FAF8F5; margin: 28px 0 0; }
.ll-member h2 { font-family: var(--serif, Georgia, serif); font-size: 22px; margin: 0 0 8px; }
.ll-member ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; font-size: 15px; }
.ll-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ll-form .ll-field { flex: 1 1 240px; }
.ll-form label { display: block; font-size: 13.5px; font-weight: 700; margin: 0 0 5px; }
.ll-form input[type=email], .ll-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; border-radius: 11px; border: 1px solid #CFC7BC;
  padding: 10px 12px; font: 16px/1.4 inherit; font-family: inherit; background: #fff; color: #241F1B; }
.ll-form textarea { min-height: 110px; resize: vertical; }
.ll-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  #around .ll-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  #around .ll-chip { flex: 0 0 auto; }
}

/* ---- Club ---- */
.ll-club { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .ll-club { grid-template-columns: minmax(0, 1fr); } }
.ll-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #E6E2DC; margin: 0 0 16px; }
.ll-tab { min-height: 46px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: #4A443D;
  font: 700 15px/1.2 inherit; font-family: inherit; cursor: pointer; margin-bottom: -1px; }
.ll-tab[aria-selected="true"] { color: #241F1B; border-bottom-color: #D42015; }
.ll-tab:focus-visible { outline: 3px solid #D42015; outline-offset: -3px; }
.ll-panel { min-height: 120px; }
.ll-empty { font-size: 15px; color: #4A443D; border: 1px dashed #CFC7BC; border-radius: 12px; padding: 14px 16px; background: #FAF8F5; margin: 14px 0 0; }
.ll-side { border: 1px solid #E6E2DC; border-radius: 14px; padding: 16px 18px; background: #fff; }
.ll-side h2 { font-size: 16px; margin: 0 0 8px; }
.ll-side p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.ll-nearby { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ll-up { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #B31C12; }

@media (max-width: 480px) {
  .ll-band h1 { font-size: 30px; }
  .ll-band .ll-sub { font-size: 16px; }
  .ll-handoff h2 { font-size: 21px; }
  .ll-sec > h2, .ll-h2 { font-size: 22px; }
}

/* ---- states. [hidden] wins over every display rule above, and the stage lists swap without a
   page load once the script has marked the page. ---- */
.jp-lbar [hidden], .ll-wrap [hidden], .wrap [hidden], .ll-band [hidden] { display: none !important; }
html.ll-js .ll-stage-list:not(.is-on) { display: none; }
.ll-stage-list { margin: 0 0 6px; }
.ll-js-only { display: none !important; }
.ll-js-only-block { display: none; }
html.ll-js .ll-js-only { display: inline-flex !important; }
html.ll-js .ll-js-only-block { display: block; }
html.ll-js form.ll-js-only-block { display: flex; }
.ll-cards .lc-task:first-child { border-color: #E6C4C0; background: #FFF9F8; }
.ll-cards .lc-task:first-child h2 { color: #A11A0F; }
.lc-emg-more { margin: 6px 0 0; }
.lc-emg-more a { display: inline-flex; align-items: center; min-height: 44px; color: #A11A0F; font-weight: 700; }
.ll-hero { margin: 0 0 6px; }
.ll-about { margin-top: 26px; }
