/* The everyday screen carries a place, a map, one intention and a notebook. */
#town-header .tagline{display:none}
#town-header .brand{font-size:10px;letter-spacing:.18em;margin-bottom:3px}
#town-header h1{font-size:clamp(24px,2.8vw,34px);line-height:1.05;margin:0}
#town-header #town-notebooks{gap:0;margin-top:6px;max-width:100%}
#town-header[data-story] #town-notebooks,#town-header[data-welcome] #town-notebooks,#town-header[data-meeting] #town-notebooks{display:flex}
#town-header #town-notebooks[hidden]{display:none}
#town-notebooks #notebook-entry{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;min-height:44px;box-shadow:0 2px 4px #4c47251a;background:#f8efd9ed;border-color:#b6a880;font:14px/1.2 Georgia,serif}
#notebook-entry svg{width:20px;height:20px;fill:#e1dcc0;stroke:#4e6652;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#town-header #story-entry{margin-top:6px;padding:7px 11px;min-height:44px}
#town-header #story-entry-detail{font-size:12px}
#notebook-compat[hidden]{display:none}

/* An intentionally opened book, with brief page names instead of feature cards. */
#notebook-panel{width:min(510px,calc(100vw - 28px));max-width:510px;max-height:calc(100dvh - 32px);margin:auto;padding:20px 24px 16px;border:1px solid #a78c63;border-left:7px solid #6f7f5c;border-radius:5px 15px 13px 5px;background-image:var(--storybook-grain),linear-gradient(100deg,#e6d7b8 0,#fbf1d9 5%,#faf0d7 94%,#e7d5b0);color:#4e4d36;box-shadow:3px 4px 0 #d0bc92,4px 8px 24px #383e2f40;overscroll-behavior:contain;scrollbar-width:thin}
#notebook-panel::backdrop{background:#344b3c35;overflow:hidden;overscroll-behavior:contain}
.notebook-close-row{position:sticky;top:-20px;z-index:1;display:flex;justify-content:flex-end;margin:0;padding:0 0 9px;background:#faf0d7}
#notebook-panel .notebook-close{min-height:44px;padding:7px 11px;border:1px solid #aa9e7e;border-radius:5px;background:#f6ebd1;box-shadow:none;font:14px Georgia,serif}
.notebook-kicker{font:12px/1.3 Georgia,serif;font-style:italic;color:#716b50;margin:0 0 3px}
#notebook-title{font:600 clamp(27px,5vw,34px)/1.15 Georgia,serif;letter-spacing:-.025em;margin:0 0 18px;color:#465c43}
.notebook-section{margin-top:15px;padding-top:12px;border-top:1px solid #bdac875e}
.notebook-section h2{font:600 15px/1.3 Georgia,serif;color:#74603e;margin:0 0 6px}
.notebook-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}
#notebook-panel .notebook-pages :is(button,a){display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:44px;margin:0;padding:9px 2px;border:0;border-radius:3px;background:transparent;box-shadow:none;color:#3d5d45;text-align:left;text-decoration:none;font:16px/1.3 Georgia,serif;overflow-wrap:anywhere}
#notebook-panel .notebook-pages :is(button,a)::after{content:'›' / '';font-size:22px;color:#8b7148}
#notebook-panel .notebook-pages :is(button,a):hover{background:#ece7cf}
#notebook-panel .notebook-pages [hidden]{display:none}
#notebook-panel #story-neighbours-map{border:0;margin:6px 0 0;padding:0}
#notebook-panel #story-neighbours-map>summary{font:14px/1.3 Georgia,serif;min-height:44px;align-content:center;color:#6e644a}
#notebook-panel #story-neighbour-list{max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:2px}
#notebook-panel .story-neighbour-list-button{font-size:14px;box-shadow:none;background:#f5ebd3}
.notebook-bottom{margin-top:17px;padding-top:12px;border-top:1px solid #bdac8780}
#notebook-guide{min-height:44px;width:100%;background:#e7e9ce;border-color:#a6b18e;box-shadow:none;border-radius:6px;color:#405d43;font-size:15px}
#notebook-panel :is(button,a,summary):focus-visible,#notebook-entry:focus-visible{outline:3px solid #956b32;outline-offset:2px}
#guide-places #places{max-height:min(38dvh,330px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 4px!important}
#guide-places h3{margin:15px 0 8px}
.notebook-disclosure{margin:8px 0;border-top:1px solid #c7b99a;padding-top:3px}
.notebook-disclosure>summary{min-height:44px;align-content:center;cursor:pointer;color:#3c5947}
.notebook-disclosure>summary:focus-visible{outline:3px solid #956b32;outline-offset:2px}
#panel #walking-help,#panel #credits-and-sources{margin:8px 0;padding:0;border:0;border-top:1px solid #c7b99a;border-radius:0;background:none}
#panel #pocket-sound{font-size:14px;margin:12px 0;padding:8px 0}
#panel .pocket-volume-row{max-width:330px;gap:8px}
#panel #pocket-mute{width:44px;height:44px;flex-basis:44px;padding:11px}
#panel #pocket-volume{min-width:0;height:36px;margin:0}
#panel #pocket-volume-value{font-size:13px;width:36px}
#panel #pocket-sound-status{font-size:12px}
@media(max-width:680px){
  #town-header h1{font-size:clamp(20px,5.4vw,28px)}
  #town-header #town-notebooks{margin-top:4px}
  #town-notebooks #notebook-entry{font-size:14px;padding:6px 9px}
  #town-header #story-entry{padding:6px 9px;margin-top:4px}
  #notebook-panel{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:15px 16px 12px}
  .notebook-close-row{top:-15px}
  #notebook-title{margin-bottom:12px}
  .notebook-pages{gap:2px 8px}
  #notebook-panel .notebook-pages :is(button,a){font-size:15px}
  #guide-places #places{max-height:29dvh}
}
@media(max-width:360px){.notebook-pages{grid-template-columns:1fr}.notebook-section{margin-top:10px;padding-top:9px}#notebook-title{font-size:27px}}

/* Street nameplates stay brief; full facts and source links belong to the place page. */
#nearby-place{max-width:235px;padding:10px 13px}
#nearby-place-detail,#nearby-place-provenance,#nearby-place-map{display:none}
#nearby-place .nearby-place-links{margin-top:5px}
#nearby-place-more{display:inline-flex;align-items:center;min-height:36px;font-size:13px}
@media(max-width:680px){#nearby-place{max-width:180px;padding:8px 11px}#nearby-place-title{font-size:15px}#nearby-place-more{min-height:36px}}
