/* The town's daily journal: clear daylight, warm nights and a readable local clock. */
.town-clock { display:flex; flex-direction:column; gap:6px; min-width:0; color:var(--ink); text-align:right; }
.town-clock>[data-clock-date] { font-size:14px; font-weight:650; line-height:1.5; text-transform:none; }
.town-clock>div { display:flex; justify-content:flex-end; align-items:center; gap:12px; }
.town-clock time { font-size:29px; font-weight:750; line-height:1.15; font-variant-numeric:tabular-nums; letter-spacing:-.7px; white-space:nowrap; }
.town-clock small { max-width:110px; font-size:12px; font-weight:550; line-height:1.4; color:var(--muted); text-align:left; }
.welcome-row>.town-clock { flex:none; max-width:320px; margin-left:auto; }
.console-town-clock { margin-left:auto; flex:none; max-width:240px; }
.console-town-clock .town-clock>[data-clock-date] { font-size:12px; }
.console-town-clock .town-clock time { font-size:25px; }
.console-town-clock .town-clock small { font-size:11px; }
.home-town-gateway { grid-column:1/-1; margin-top:6px; }
.home-town-gateway>div:last-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.town-gateway { display:flex; align-items:center; gap:16px; padding:22px; min-width:0; min-height:110px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); text-decoration:none; transition:transform .18s; }
.town-gateway>.svg-icon { flex:none; width:32px; height:32px; color:#227b6d; }
.town-gateway.night { color:#fff7e8; background:#123040; border-color:#355464; }
.town-gateway.night>.svg-icon { color:#e9bd73; }
.town-gateway strong { display:block; font-size:19px; font-weight:750; }
.town-gateway small { display:block; margin-top:6px; font-size:14px; line-height:1.5; opacity:.82; }
.town-gateway:hover { transform:translateY(-3px); }
.explorer[data-view=home] .featured-route { grid-row:auto; }
.town-page { min-height:100svh; background:var(--paper); }
.town-page .header-actions .account-link span { display:none; }
.town-page .top-nav { min-width:0; gap:4px; }
.town-page .nav-item { padding-inline:10px; }
body.town-night-page:not(.console-page) { --paper:#0a202d; --surface:#123040; --ink:#f4f5ed; --muted:#b6cbd3; --line:#345362; --bronze:#e5bf7b; color:var(--ink); }
.town-shell { width:calc(100% - 64px); max-width:1220px; margin:32px auto 0; }
.town-page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:26px; }
.town-location { display:inline-flex; gap:6px; align-items:center; font-size:14px; font-weight:600; color:var(--muted); }
.town-page .town-page-heading h1 { font-size:38px; font-weight:750; letter-spacing:-1.2px; line-height:1.2; margin:10px 0 0; }
.town-tabs { display:flex; gap:8px; padding:6px; width:fit-content; max-width:100%; border:1px solid var(--line); border-radius:13px; background:var(--surface); margin:0 0 26px; }
.town-tabs a { display:flex; justify-content:center; align-items:center; gap:8px; padding:12px 18px; font-size:15px; font-weight:700; border-radius:9px; color:var(--muted); text-decoration:none; }
.town-tabs a[aria-current] { background:#174d49; color:white; }
.town-night-page .town-tabs a[aria-current] { background:#e0b365; color:#172e3c; }
.town-feature { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); min-height:300px; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:var(--surface); margin-bottom:24px; }
.town-feature>div:first-child { padding:34px; align-self:center; }
.town-label { display:block; color:var(--bronze); font-size:12px; font-weight:750; letter-spacing:1.1px; line-height:1.5; text-transform:uppercase; }
.town-feature h2 { font-size:32px; font-weight:750; line-height:1.2; letter-spacing:-.7px; margin:12px 0; max-width:540px; }
.town-feature p { font-size:16px; line-height:1.75; color:var(--muted); max-width:550px; margin:0 0 22px; }
.town-feature.night { border-color:#456171; background:linear-gradient(120deg,#132d3f,#1d3542); color:#fff5e4; }
.town-feature.night p { color:#d3dfe2; }
.town-feature.night .town-label { color:#ecc882; }
.town-feature-picture { position:relative; min-height:240px; overflow:hidden; }
.town-feature-picture img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; }
.town-feature-picture::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#13323b12,#102c3b60); }
.town-feature.night .town-feature-picture::after { background:linear-gradient(115deg,#142d3f80,#0e2331d1); }
.town-feature-picture>span { position:absolute; z-index:1; bottom:24px; right:24px; display:grid; place-items:center; width:78px; height:78px; border:1px solid #f8ecd888; border-radius:50%; backdrop-filter:blur(10px); background:#0b283459; color:#f8d58e; }
.town-feature-picture .svg-icon { width:38px; height:38px; }
.town-subtle-link { display:inline-block; margin:12px; font-size:14px; text-decoration:underline; }
.town-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:16px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:20px; margin-bottom:32px; }
.town-filters>label:not(.town-check) { display:flex; flex-direction:column; gap:8px; min-width:200px; flex:1; font-size:14px; font-weight:650; }
.town-filters select { width:100%; min-width:0; }
.town-check { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; line-height:1.6; min-height:46px; }
.town-check input { width:18px!important; height:18px; flex:none; margin:0; }
.town-section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:30px 0 20px; }
.town-section-heading h2 { font-size:25px; font-weight:750; margin:7px 0; letter-spacing:-.5px; }
.town-result-count { padding:8px 12px; font-size:13px; font-weight:650; color:var(--muted); border:1px solid var(--line); border-radius:30px; white-space:nowrap; }
.town-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.town-card { min-width:0; padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:18px; display:flex; flex-direction:column; }
.town-card-top { display:flex; align-items:center; gap:14px; }
.event-date { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:none; width:60px; min-height:68px; border-radius:12px; background:#e7eeeb; color:#1a4743; }
.event-date strong { font-size:27px; line-height:1.15; font-weight:750; }
.event-date>span { font-size:12px; text-transform:uppercase; font-weight:700; }
.town-origin { display:block; font-size:12px; line-height:1.6; color:var(--muted); margin-top:3px; }
.town-card h2 { margin:20px 0 12px; font-size:23px; font-weight:750; line-height:1.3; letter-spacing:-.5px; overflow-wrap:anywhere; }
.town-card h2 a { color:var(--ink); text-decoration:none; }
.town-card-excerpt { font-size:15px; line-height:1.75; color:var(--muted); margin:0 0 20px; overflow-wrap:anywhere; }
.town-card-meta { display:flex; flex-wrap:wrap; flex-direction:column; gap:10px; margin-bottom:20px; }
.town-card-meta>span { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; }
.town-card-meta .svg-icon { width:18px; height:18px; flex:none; }
.town-card-bottom { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-top:auto; padding-top:18px; border-top:1px solid var(--line); }
.town-card-bottom>span { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.town-card-bottom>a { font-size:14px; font-weight:700; color:var(--ink); text-decoration:underline; }
.town-card-symbol { display:grid; place-items:center; width:55px; height:55px; border-radius:14px; background:#e3ede7; color:#206d5f; flex:none; }
.town-cancelled { color:#a13225; font-weight:750; }
.town-night-page .town-cancelled { color:#ffb2a5; }
.pub-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pub-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--surface); min-width:0; }
.pub-card h3 { font-size:20px; font-weight:750; margin:14px 0; line-height:1.4; overflow-wrap:anywhere; }
.pub-symbol { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:#a56d1b; background:#f5e9cf; flex:none; }
.opening-badge { display:inline-flex; padding:6px 10px; font-size:13px; font-weight:750; border-radius:30px; background:#e7ecef; color:#3c5360; }
.opening-badge.open { background:#d8f2e5; color:#14553c; }
.opening-badge.closed { background:#f8e6df; color:#803a28; }
.opening-reference { font-size:13px; line-height:1.7; color:var(--muted); margin:12px 0 18px; }
.pub-card .secondary-button { width:100%; justify-content:center; }
.town-empty { grid-column:1/-1; text-align:center; padding:42px 24px; background:var(--surface); border:1px dashed var(--line); border-radius:18px; }
.town-empty>span { display:grid; place-items:center; width:68px; height:68px; background:#e8efeb; border-radius:50%; color:#24665d; margin:0 auto 18px; }
.town-empty h3,.town-empty h2 { font-size:24px; font-weight:750; margin:12px 0; }
.town-empty p { max-width:560px; margin:0 auto 14px; color:var(--muted); line-height:1.8; }
.town-empty-inline { color:var(--muted); }
.town-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:18px; margin:42px 0 0; border-top:1px solid var(--line); padding:24px 0; font-size:13px; color:var(--muted); }
.town-footer a,.town-photo-credit a { text-decoration:underline; }
.town-photo-credit { margin-top:25px; font-size:12px; line-height:1.8; color:var(--muted); }
.town-photo-credit summary { cursor:pointer; }
.town-editor-layout,.publication-detail-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr); gap:26px; align-items:start; }
.town-form-card,.publication-detail,.publication-plan { padding:30px; border:1px solid var(--line); border-radius:18px; background:var(--surface); min-width:0; }
.town-form-card>p { margin-top:0; line-height:1.8; color:var(--muted); }
.town-form-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.town-form-columns label { min-width:0; }
.town-form-card input,.town-form-card select,.town-form-card textarea { max-width:100%; min-width:0; width:100%; }
.town-form-card textarea { min-height:130px; }
.town-event-fields { border:1px solid var(--line); border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:20px; }
.town-event-fields legend { font-size:16px; font-weight:750; padding:0 8px; }
.town-editor-note { padding:24px; background:#e5eee8; color:#204338; border-radius:16px; }
.town-editor-note h2 { font-size:22px; font-weight:750; }
.town-editor-note p { font-size:15px; line-height:1.8; }
.town-item-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; padding-top:20px; }
.publication-detail>h2 { font-size:35px; font-weight:750; line-height:1.25; letter-spacing:-.8px; margin:16px 0; overflow-wrap:anywhere; }
.publication-author { display:flex; align-items:flex-start; gap:10px; color:var(--muted); font-size:14px; line-height:1.7; }
.publication-author .svg-icon { flex:none; }
.publication-body,.moderation-body { white-space:pre-line; overflow-wrap:anywhere; font-size:17px; line-height:1.9; }
.publication-plan { position:sticky; top:24px; }
.publication-plan>h2 { font-size:23px; font-weight:750; margin-top:0; }
.publication-plan>.secondary-button,.publication-plan form>.primary-button { width:100%; justify-content:center; }
.plan-fact { display:flex; align-items:flex-start; gap:12px; padding:18px 0; }
.plan-fact>.svg-icon { flex:none; }
.plan-fact strong { font-size:16px; line-height:1.6; }
.plan-fact p,.plan-fact small { font-size:14px; color:var(--muted); margin:5px 0; line-height:1.6; }
.publication-report { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.publication-report summary { cursor:pointer; min-height:44px; font-weight:650; }
.town-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-top:25px; }
.town-pagination>div { display:flex; gap:12px; }
.venue-banner { display:flex; align-items:flex-start; flex-wrap:wrap; gap:24px; padding:30px; border:1px solid var(--line); background:var(--surface); border-radius:18px; }
.venue-banner>.primary-button { margin-left:auto; }
.dark .town-editor-note { background:#1d4039; color:#d6eee1; }
.dark .event-date,.town-night-page .event-date { background:#284d55; color:#f2d18c; }
@media(max-width:1280px) { .console-town-clock { display:none; } }
@media(max-width:1050px) { .town-card-grid,.pub-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .town-feature>div:first-child { padding:25px; } .town-feature h2 { font-size:28px; } .town-editor-layout,.publication-detail-grid { grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:20px; } .town-form-card,.publication-detail,.publication-plan { padding:24px; } }
@media(max-width:820px) { .town-navigation .desktop-night { display:none; } .town-navigation .nav-item { min-width:0; flex:1; padding:8px 2px; } .town-navigation .nav-item span { font-size:12px; } .town-shell { width:calc(100% - 36px); margin:24px auto 0; padding-bottom:calc(var(--bottom-height,70px) + 20px); } .town-page-heading { gap:18px; } .town-page .town-page-heading h1 { font-size:32px; } .town-clock { max-width:260px; } .town-clock time { font-size:27px; } .town-clock small { font-size:11px; } .town-feature { grid-template-columns:1fr; } .town-feature-picture { min-height:170px; max-height:170px; } .town-feature-picture img { object-position:center 42%; } .town-editor-layout,.publication-detail-grid { grid-template-columns:1fr; } .town-editor-note { order:-1; } .publication-plan { position:static; } .home-town-gateway>div:last-child { grid-template-columns:1fr; gap:12px; } .town-gateway { min-height:95px; padding:18px; } }
@media(max-width:599px) { .welcome-row { flex-wrap:wrap; gap:12px; } .welcome-row>.town-clock { flex:0 0 100%; max-width:none; padding:14px 16px; border:1px solid var(--line); border-radius:13px; background:var(--surface); flex-direction:row; align-items:center; justify-content:space-between; text-align:left; } .welcome-row .town-clock>[data-clock-date] { max-width:57%; font-size:13px; } .welcome-row .town-clock>div { flex-direction:column; gap:3px; align-items:flex-end; } .welcome-row .town-clock small { max-width:none; font-size:10px; text-align:right; } .town-page-heading { flex-direction:column; align-items:stretch; } .town-page-heading .town-clock { max-width:none; flex-direction:row; align-items:center; justify-content:space-between; text-align:left; } .town-page-heading .town-clock>[data-clock-date] { font-size:13px; max-width:50%; } .town-page-heading .town-clock>div { flex-direction:column; gap:4px; align-items:flex-end; } .town-tabs { width:100%; gap:3px; padding:4px; } .town-tabs a { flex:1; min-width:0; padding:12px 5px; font-size:12px; gap:5px; } .town-tabs .svg-icon { width:18px; height:18px; flex:none; } .town-feature { border-radius:18px; } .town-feature>div:first-child { padding:24px; } .town-feature h2 { font-size:29px; } .town-feature-picture { min-height:145px; max-height:145px; } .town-feature .primary-button { width:100%; justify-content:center; } .town-filters { gap:14px; padding:18px; } .town-filters>label:not(.town-check) { min-width:100%; } .town-card-grid,.pub-grid { grid-template-columns:1fr; } .town-card,.pub-card { padding:22px; } .town-form-columns { grid-template-columns:1fr; } .town-event-fields { padding:16px; } .publication-detail>h2 { font-size:29px; } .town-form-card,.publication-detail,.publication-plan { padding:22px; } .town-section-heading { align-items:flex-start; } .town-section-heading h2 { font-size:23px; } .town-footer { justify-content:flex-start; gap:20px; } }
@media(max-width:359px) { .town-navigation .nav-item span { font-size:11px; } .town-tabs a { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .town-gateway { transition:none; } }

.town-clock>[data-clock-date]::first-letter { text-transform:uppercase; }
.town-filters select,.town-page select,.town-form-card input:not([type=checkbox]):not([type=hidden]),.town-form-card textarea,.publication-report textarea,.publication-report select { min-height:48px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); font:inherit; font-size:16px; width:100%; box-sizing:border-box; }
.town-filters select:focus-visible,.town-form-card input:focus-visible,.town-form-card select:focus-visible,.town-form-card textarea:focus-visible { outline:3px solid #6fb7a7; outline-offset:2px; }

.console-context-panels { display:grid; grid-template-columns:minmax(260px,1.2fr) minmax(220px,1fr); max-width:850px; gap:18px; margin-bottom:26px; }
.console-context-panels .town-weather { margin:0; }
.console-context-clock { display:flex; align-items:center; justify-content:flex-end; padding:18px 24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
@media(max-width:640px) { .console-context-panels { grid-template-columns:1fr; gap:12px; } .console-context-clock { padding:16px 18px; justify-content:stretch; } .console-context-clock .town-clock { width:100%; max-width:none; flex-direction:row; align-items:center; justify-content:space-between; text-align:left; gap:16px; } .console-context-clock .town-clock>[data-clock-date] { max-width:55%; font-size:13px; } .console-context-clock .town-clock>div { flex-direction:column; align-items:flex-end; gap:4px; } }
