body.themed main.fdmain { max-width: 700px; }
body.themed:has(main.fdmain) .hero:has(> .hero-inner) .hero-inner { max-width: 700px; }

/* The bar of filters stays at the top of the screen while you scroll. */
.fd-bar { position: sticky; top: 0; z-index: 30; background: var(--paper); margin: 0 -1rem 1rem; padding: .7rem 1rem .6rem; border-bottom: 1px solid var(--surface-border); }
@media (max-width: 720px) { .fd-bar { position: static; border-bottom: 0; padding-bottom: .2rem; } }
.fd-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fd-chips .dir-chip { min-height: 40px; padding: .35rem .85rem; font-size: .9rem; border-radius: 6px; font-family: var(--font-body); font-weight: 700; cursor: pointer; }
.fd-nb { margin-top: .55rem; }
.fd-towns { margin: 0 0 .9rem; }
.fd-towns .fd-lbl { display: block; margin: 0 0 .35rem; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.fd-townlink { margin: -.3rem 0 .9rem; font-size: .92rem; color: var(--ink-soft); }
.fd-townlink a { font-weight: 700; }
.nb-sw { display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0; padding: 0; color: var(--ink); font: 500 .9rem/1.3 var(--font-body); cursor: pointer; text-align: left; }
.nb-sw small { color: var(--ink-soft); font-size: .84rem; }
.nb-track { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #8a97a8; flex: none; box-shadow: inset 0 0 0 1px rgba(24, 33, 43, .45); }
.nb-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.nb-sw[aria-checked="true"] .nb-track { background: var(--btn-on-bg, #facd32); }
.nb-sw[aria-checked="true"] .nb-knob { left: 23px; background: #18212b; }
.nb-sw:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

article.fd-card { background: var(--card-bg); border: 1px solid var(--card-line); border-top: 4px solid var(--navy); border-radius: 8px; padding: 1rem 1.1rem 1rem; margin: 0 0 1rem; }
article.fd-card.alert { background: #c62828; border-color: #8e1c1c; color: #fff; }
article.fd-card.cta { background: var(--surface); border-style: dashed; border-top-style: solid; text-align: center; }
.fd-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.fd-ic { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; background: var(--btn-bg); color: var(--card-icon); border-radius: 9px; }
.alert .fd-ic { background: #fff; color: #c62828; }
.fd-ic .li { width: 1.5rem; height: 1.5rem; stroke-width: 1.7; }
article.fd-card.example { border-style: dashed; border-top-style: solid; }
article.fd-card.fd-hit { outline: 4px solid var(--btn-on-bg, #facd32); outline-offset: 3px; }
.fd-eg { margin-left: auto; flex: none; align-self: flex-start; padding: .1rem .6rem; border: 1px solid var(--ink-soft); border-radius: 999px; font: 700 .7rem/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.fd-kind { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fd-kind b { font: 700 .72rem/1.2 var(--font-body); letter-spacing: .07em; text-transform: uppercase; }
.fd-kind small { font-size: .82rem; color: var(--ink-soft); }
.alert .fd-kind small { color: #fff; }
.fd-title { font: 700 1.2rem/1.3 var(--font-display); margin: 0 0 .25rem; color: var(--ink); overflow-wrap: anywhere; }
.alert .fd-title { color: #fff; }
.fd-meta { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .35rem; }
.fd-when { font-size: 1rem; color: var(--ink); margin: 0 0 .3rem; }
.fd-when b { font-weight: 800; }
.fd-text { font-size: .98rem; line-height: 1.5; margin: .35rem 0 .2rem; color: var(--ink); overflow-wrap: anywhere; }
.alert .fd-text, .alert .fd-meta { color: #fff; }
.fd-photo { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; margin: .5rem 0; background: var(--surface-border); }
.fd-list { list-style: none; margin: .4rem 0 .2rem; padding: 0; }
.fd-list li { display: flex; gap: .9rem; padding: .5rem 0; border-top: 1px solid var(--tint-line); }
.fd-list li:first-child { border-top: 0; }
.fd-list .tt { flex: none; width: 5.2em; font-weight: 700; font-size: .9rem; }
.fd-list small { display: block; color: var(--ink-soft); font-size: .84rem; }
.fd-rows { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0 .2rem; font-size: .93rem; }
.fd-rows .r { display: grid; grid-template-columns: 1.15rem 1fr; gap: .55rem; align-items: start; overflow-wrap: anywhere; }
.fd-rows .li { width: 1.15rem; height: 1.15rem; margin-top: .1rem; color: var(--navy-ink); }
.fd-rows .none { color: var(--ink-soft); font-style: italic; }
.fd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--tint-line); font-size: .92rem; }
.dir .fd-foot { border-top-color: var(--card-line); }
.alert .fd-foot { border-top-color: rgba(255,255,255,.4); }
.fd-foot a, .fd-foot summary, .fd-share { font: 700 .92rem/1.3 var(--font-body); color: var(--primary); cursor: pointer; background: none; border: 0; padding: 0; text-decoration: underline; }
.alert .fd-foot a, .alert .fd-share { color: #fff; }
.fd-share { margin-left: auto; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.fd-share .li { width: 1.05rem; height: 1.05rem; }
details.fd-more { display: contents; }
details.fd-more > summary { list-style: none; }
details.fd-more > summary::-webkit-details-marker { display: none; }
details.fd-more[open] > summary { order: 0; }
.fd-more-body { flex: 1 0 100%; order: 5; margin-top: .3rem; }
.fd-end { text-align: center; color: var(--ink-soft); padding: 1.2rem 0 2rem; }
.fd-end a { font-weight: 700; }
#fdMore { height: 1px; }
.fd-empty { text-align: center; color: var(--ink-soft); padding: 2rem 0; }
#toTop { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--btn-bg); color: #fff; display: none; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 38, 58, .3); }
#toTop.on { display: grid; }
#toTop .li { width: 1.4rem; height: 1.4rem; transform: rotate(-90deg); }
#toTop:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
#toast { position: fixed; left: 50%; bottom: 5rem; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .6rem 1.1rem; border-radius: 8px; font-size: .92rem; z-index: 50; display: none; }
#toast.on { display: block; }

/* The block above the feed on a town page: where to go next, and city hall */
.tl-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.tl-links a { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .95rem; border-radius: 6px; background: var(--btn-bg); color: #fff; font: 700 .9rem/1.2 var(--font-body); text-decoration: none; }
.tl-links a:hover { filter: brightness(1.12); }
.tl-links a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tl-city { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 8px; padding: .9rem 1.1rem 1rem; margin: 0 0 1.2rem; }
.tl-city h2 { font: 700 1.05rem/1.3 var(--font-display); margin: 0 0 .35rem; }
.tl-city p { margin: .2rem 0; font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }
.tl-city .tl-note { color: var(--ink-soft); }
.tl-city a { font-weight: 700; display: inline-block; min-height: 24px; padding: 2px 0; }
.tl-city .tl-more { margin-top: .5rem; }

/* The plain-text lists a town page ships for crawlers; feed.js clears them the moment it draws the live feed */
.tl-static h2 { font: 700 1.05rem/1.3 var(--font-display); margin: 1.1rem 0 .4rem; }
.tl-static ul { list-style: none; margin: 0; padding: 0; }
.tl-static li { padding: .55rem 0; border-top: 1px solid var(--tint-line); font-size: .95rem; }
.tl-static li span { display: block; color: var(--ink-soft); font-size: .88rem; }
.tl-static li a { font-weight: 700; display: inline-block; min-height: 24px; padding: 2px 0; }
.tl-static .tl-updated { color: var(--ink-soft); font-size: .85rem; }
