/* TownLedger (owner 2026-10-12): Bootstrap 5 grid + utilities (no card / list-group / navbar / badge components, unlike
   the sister sites), own tl-* classes on top. Layout ideas from freeindex.co.uk (white header with the search, a dark
   title band with an action bar, white panels on a light page), other colours: ink indigo + berry, gold stars. No
   copied branding, no web fonts, nothing loaded from other sites. */
:root {
	--tl-ink: #2e2a45;
	--tl-ink-2: #3c3759;
	--tl-ink-3: #4a4569;
	--tl-berry: #b8325a;
	--tl-berry-2: #922645;
	--tl-star: #f0b429;
	--tl-bg: #f2f1f6;
	--tl-tint: #ece9f3;
	--tl-line: #d9d5e4;
	--tl-text: #24212f;
	--tl-muted: #6b6780;
	--tl-open: #1e7b4a;
	--tl-closed: #c0392b;
	--bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-body-color: var(--tl-text);
	--bs-body-bg: var(--tl-bg);
	--bs-link-color: var(--tl-berry);
	--bs-link-color-rgb: 184, 50, 90;
	--bs-link-hover-color: var(--tl-berry-2);
	--bs-link-hover-color-rgb: 146, 38, 69;
}
body { background: var(--tl-bg); font-size: 15px; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; }
.min-w-0 { min-width: 0; }
.tl-muted { color: var(--tl-muted); }
.tl-skip { position: absolute; z-index: 10; background: #fff; padding: 6px 10px; }

/* header */
.tl-field { border-color: #cfcadd; }
.tl-field:focus, .form-control:focus, .form-select:focus { border-color: var(--tl-berry); box-shadow: 0 0 0 .2rem rgba(184, 50, 90, .18); }
.tl-letters { background: #faf9fc; }
.tl-letter { display: inline-block; min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; color: var(--tl-ink-2); border-radius: 4px; }
.tl-letter:hover { background: var(--tl-ink); color: #fff; text-decoration: none; }
.tl-letter.is-empty { color: #c4bfd3; }

/* buttons */
.tl-btn-berry { --bs-btn-color: #fff; --bs-btn-bg: var(--tl-berry); --bs-btn-border-color: var(--tl-berry); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--tl-berry-2); --bs-btn-hover-border-color: var(--tl-berry-2); --bs-btn-active-bg: var(--tl-berry-2); --bs-btn-active-color: #fff; font-weight: 600; }
.tl-btn-ink { --bs-btn-color: #fff; --bs-btn-bg: var(--tl-ink); --bs-btn-border-color: var(--tl-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--tl-ink-2); --bs-btn-hover-border-color: var(--tl-ink-2); font-weight: 600; }
.tl-btn-line { --bs-btn-color: var(--tl-ink); --bs-btn-border-color: #cfcadd; --bs-btn-hover-bg: var(--tl-tint); --bs-btn-hover-color: var(--tl-ink); --bs-btn-hover-border-color: #cfcadd; }
.tl-btn-ghost { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .08); --bs-btn-border-color: rgba(255, 255, 255, .22); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .18); --bs-btn-hover-border-color: rgba(255, 255, 255, .35); }
.tl-btn-mini { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .8rem; --bs-btn-color: var(--tl-ink-2); --bs-btn-bg: var(--tl-tint); --bs-btn-border-color: var(--tl-tint); --bs-btn-hover-bg: var(--tl-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--tl-ink); }

/* dark title band + action bar */
.tl-band { background: var(--tl-ink-2); color: #fff; }
.tl-band a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.tl-band__title { font-size: 2rem; font-weight: 700; }
.tl-band__sub { color: #d9d5ea; }
.tl-trail { color: #bdb7d4; }
.tl-trail a { color: #e6e2f4; text-decoration: none; }
.tl-trail__sep { margin: 0 6px; color: #8c86a8; }
.tl-actions { background: var(--tl-ink-3); }
.tl-actions a { text-decoration: none; }

/* hero (home) */
.tl-hero { background: var(--tl-ink-2); color: #fff; }
.tl-hero__title { font-size: 2.4rem; font-weight: 700; max-width: 18ch; }
.tl-hero__intro { color: #ded9ef; font-size: 1.05rem; max-width: 60ch; }
.tl-hero__figures b { display: block; font-size: 1.7rem; color: var(--tl-star); line-height: 1.1; }
.tl-hero__side { background: var(--tl-ink); }
.tl-hero__side h2 { color: #d9d5ea; letter-spacing: .04em; }
.tl-pick { background: rgba(255, 255, 255, .07); color: #fff; border-radius: 6px; }
.tl-pick:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.tl-pick img, .tl-pick__initial { flex: 0 0 64px; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.tl-pick__initial { display: flex; align-items: center; justify-content: center; background: var(--tl-berry); font-weight: 700; }
.tl-pick__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* panels */
.tl-panel { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(46, 42, 69, .07); }
.tl-panel__title { font-size: 1.35rem; font-weight: 600; color: var(--tl-ink); margin-bottom: 1rem; }
.tl-panel--cta { border-left: 5px solid var(--tl-berry); }
.tl-plain { color: var(--tl-text); }
.tl-plain:hover { color: var(--tl-berry); }
.tl-az { font-size: 1.1rem; color: var(--tl-berry); border-bottom: 1px solid var(--tl-line); padding-bottom: 2px; margin-bottom: 6px; }
.tl-tag { display: inline-block; padding: 2px 9px; font-size: 13px; border: 1px solid var(--tl-line); border-radius: 3px; color: var(--tl-text); background: #fff; }
a.tl-tag:hover { border-color: var(--tl-berry); color: var(--tl-berry); text-decoration: none; }
.tl-tag--soft { background: var(--tl-tint); border-color: var(--tl-tint); }
.tl-note { background: #faf9fc; border: 1px solid var(--tl-line); border-radius: 6px; }
.tl-note img { flex: 0 0 88px; border-radius: 4px; }
.tl-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tl-berry); }
.tl-links li { padding: 7px 0; border-bottom: 1px solid #efedf4; }
.tl-links li:last-child { border-bottom: 0; }

/* tiles (home) */
.tl-tile { border: 1px solid var(--tl-line); border-radius: 6px; overflow: hidden; color: var(--tl-text); background: #fff; }
.tl-tile:hover { border-color: var(--tl-berry); text-decoration: none; color: var(--tl-text); }
.tl-tile__img { position: relative; aspect-ratio: 4 / 3; background: var(--tl-tint); }
.tl-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-tile__img > span:first-child { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: var(--tl-ink-3); }
.tl-tile__stars { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: linear-gradient(transparent, rgba(30, 26, 48, .75)); }
.tl-tile__name { font-weight: 600; color: var(--tl-berry); }

/* result items */
.tl-items > .tl-item + .tl-item { border-top: 1px solid #efedf4; }
.tl-item__img img, .tl-item__img span { display: block; width: 132px; height: 99px; object-fit: cover; border-radius: 4px; }
.tl-item__img span { display: flex; align-items: center; justify-content: center; background: var(--tl-tint); color: var(--tl-ink-3); font-size: 2rem; font-weight: 700; }
.tl-item__name { font-size: 1.3rem; font-weight: 600; }
.tl-item__name a { color: var(--tl-berry); }
.tl-item__town { font-size: .85rem; font-weight: 400; color: var(--tl-muted); white-space: nowrap; }
.tl-count { display: inline-block; font-size: 12px; padding: 1px 6px; background: var(--tl-ink-3); color: #fff; border-radius: 3px; vertical-align: 2px; }

/* stars + status */
.tl-stars { white-space: nowrap; }
.tl-star { display: inline-block; width: 1.25em; height: 1.25em; line-height: 1.25em; text-align: center; font-size: .85em; color: #fff; background: var(--tl-star); border-radius: 2px; margin-right: 1px; }
.tl-star.is-off { background: #d7d3e2; }
.tl-status { font-weight: 600; }
.tl-status.is-open { color: var(--tl-open); }
.tl-status.is-closed { color: var(--tl-closed); }

/* brand page */
.tl-photo img { width: 100%; height: auto; display: block; border-radius: 4px; }
.tl-zoom { position: relative; cursor: zoom-in; }
.tl-zoom__hint { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; font-size: 12px; background: rgba(30, 26, 48, .7); color: #fff; border-radius: 3px; }
.tl-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.tl-facts dt { font-weight: 600; color: var(--tl-muted); }
.tl-facts dd { margin: 0; }
.tl-website { color: var(--tl-text); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tl-line); }
.tl-week { --bs-table-bg: transparent; }
.tl-week th { font-weight: 500; }
.tl-week tr.is-today th, .tl-week tr.is-today td { background: #fbeef2; font-weight: 700; }
.tl-voice { padding: 16px 0; border-top: 1px solid #efedf4; }
.tl-voice:first-of-type { border-top: 0; padding-top: 0; }
.tl-voice__who { width: 76px; }
.tl-voice__pic { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tl-tint); color: var(--tl-ink-2); font-weight: 700; font-size: 1.1rem; }

/* forms */
.tl-rate { border: 0; padding: 0; }
.tl-rate legend { font-size: 1rem; float: none; margin-bottom: .25rem; }
.tl-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.tl-rate input { position: absolute; opacity: 0; }
.tl-rate label { font-size: 30px; line-height: 1; color: #d7d3e2; cursor: pointer; }
.tl-rate input:checked ~ label, .tl-rate label:hover, .tl-rate label:hover ~ label { color: var(--tl-star); }
.tl-rate input:focus-visible + label { outline: 2px solid var(--tl-berry); border-radius: 3px; }
.was-validated :invalid { border-color: var(--tl-closed); }
.tl-done { padding: 10px 14px; background: #e8f5ee; border: 1px solid #b7dfc8; border-radius: 6px; color: var(--tl-open); font-weight: 600; }
.tl-doc { max-width: 860px; }
.tl-doc h2 { font-size: 1.25rem; margin-top: 1.4rem; color: var(--tl-ink); }

/* pager */
.tl-pager a, .tl-pager span { display: inline-block; min-width: 34px; padding: 4px 10px; text-align: center; border: 1px solid var(--tl-line); border-radius: 4px; }
.tl-pager span { background: var(--tl-ink-2); color: #fff; border-color: var(--tl-ink-2); }

/* lightbox */
.tl-lightbox { border: 0; border-radius: 6px; padding: 0; max-width: 94vw; max-height: 94vh; }
.tl-lightbox::backdrop { background: rgba(30, 26, 48, .85); }
.tl-lightbox img { display: block; max-width: 90vw; max-height: 86vh; width: auto; height: auto; }
.tl-lightbox figcaption { padding: 6px 10px; font-size: 14px; }
.tl-lightbox button { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }

/* footer */
.tl-footer { background: #dedbe8; color: #46425b; }
.tl-footer a { color: var(--tl-ink-2); }
.tl-foot-title { color: var(--tl-ink); letter-spacing: .05em; }
.tl-foot-copy { border-top: 1px solid #c9c4d8; }

@media (max-width: 575.98px) {
	.tl-band__title { font-size: 1.5rem; }
	.tl-hero__title { font-size: 1.8rem; }
	.tl-item__img img, .tl-item__img span { width: 84px; height: 63px; }
	.tl-item__name { font-size: 1.1rem; }
}

/* map box (owner 2026-10-12): two-click Google Maps (tl-map.js), nothing loaded before the click */
.tl-map { position: relative; border-radius: 6px; overflow: hidden; background: var(--tl-tint); aspect-ratio: 400 / 260; }
.tl-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-map__note { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .95); border-radius: 6px; box-shadow: 0 1px 3px rgba(46, 42, 69, .15); }
.tl-map.is-loaded iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer logo: uploaded logo or default */
.tl-footlogo { display: inline-block; }
.tl-footlogo img { display: block; height: 40px; width: auto; max-width: 100%; }

/* Brand head as one card (owner 2026-10-15): photo cropped to 4:3, contact and opening times side by side. */
.tl-card__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.tl-card__hours { border-left: 1px solid #ebe8f2; }
@media (max-width: 575.98px) { .tl-card__hours { border-left: 0; border-top: 1px solid #ebe8f2; padding-top: 1rem; } }
