/*
Theme Name: Bricks & Mortals
Description: House history theme for bricksandmortals.co.uk. Lays out records imported by the B&M Records plugin: drag-to-compare maps, a timeline tied to map pins, prints and ad slots.
Version: 1.5.58
Requires PHP: 7.4
Text Domain: bricks-mortals
*/

:root {
	--ink: #0F1110;
	--ink-2: #2B2F2C;
	--ink-3: #4A4F4B;
	--ink-4: #6A6F6B;
	--rule: #D9DBD7;
	--paper: #FFFFFF;
	--paper-2: #ECEDEA;
	--paper-3: #F4F4F1;
	--red: #C4261A;
	--red-bright: #F2483A;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
	--sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
	--wrap: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--red); margin: 0 0 6px; }
.display { font-weight: 800; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.005em; margin: 0; }
.h-xl { font-size: clamp(52px, 8vw, 104px); line-height: 0.9; }
.h-l { font-size: clamp(34px, 4vw, 48px); }
.h-m { font-size: 40px; line-height: 1; }
.h-s { font-size: 26px; font-stretch: 75%; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 640px; margin: 0; }
.muted { color: var(--ink-3); }
.small-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.rule-top { border-top: 3px solid var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn--red { background: var(--red); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 70%; font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand span { color: var(--red-bright); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #fff; text-decoration: none; }
.site-header__tools { display: flex; gap: 10px; align-items: center; flex: 1 1 300px; max-width: 540px; min-width: 0; }
.search-form { display: flex; flex: 1 1 200px; min-width: 0; position: relative; }
.search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 2px 0 0 2px; font: inherit; font-size: 15px; }
.search-form button { height: 44px; padding: 0 18px; border: 0; border-radius: 0 2px 2px 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { background: var(--ink); color: #B8BBB7; margin-top: 0; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.site-footer .brand { font-size: 24px; }
.site-footer p { flex: 1 1 520px; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.8; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.site-footer nav a { color: #fff; text-decoration: none; }

/* Ads */
.bm-ad { margin: 28px auto 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.bm-ad__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); align-self: flex-start; }
.bm-ad--leader { max-width: 970px; min-height: 100px; }
.bm-ad--billboard { max-width: 970px; min-height: 250px; }
.bm-ad--mpu { width: 300px; min-height: 250px; }
.bm-ad--preview { background: var(--paper-3); border: 1px dashed #B8BBB7; font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding: 8px; }
.bm-ad--preview .bm-ad__label { position: absolute; left: 8px; top: 6px; }
.bm-ad__note { font-size: 11px; color: var(--ink-4); }
.bm-ad .adsbygoogle { width: 100%; }

/* House header */
.house-head { padding-top: 36px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.house-head__main { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.crumbs-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.presented { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; color: var(--ink-3); }
.presented strong { color: var(--ink); }
.tag-sponsored { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid #B8BBB7; padding: 2px 6px; }
.factgrid { flex: 0 1 380px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.factgrid > div { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.factgrid > div:nth-child(odd) { padding-left: 0; }
.factgrid > div:nth-child(even) { border-left: 1px solid var(--rule); }
.factgrid dt { color: var(--ink-4); }
.factgrid dd { margin: 2px 0 0; }
.factgrid dd.big { font-family: var(--sans); font-weight: 700; font-size: 20px; }

/* Compare */
.compare { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 78vh; overflow: hidden; background: #E4E6E2; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 50% 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.compare__grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: #fff; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.compare__tag { position: absolute; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; font-family: var(--mono); font-size: 12px; pointer-events: none; }
.compare__tag--l { left: 0; }
.compare__tag--r { right: 0; }
.compare-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.compare-bar input[type=range] { flex: 0 1 260px; accent-color: var(--red); height: 28px; }

.compare__marker { position: absolute; width: 22px; height: 22px; transform: translate(-50%, -50%); border: 3px solid var(--red); box-shadow: 0 0 0 2px #fff; pointer-events: none; }

/* Neighbours and street lists */
.neighbours { padding-top: 8px; padding-bottom: 24px; }
.neighbours ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.neighbours a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.numbers { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.numbers a { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--rule); text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 22px; }

/* Did you know */
.dyk { padding-top: 56px; padding-bottom: 24px; }
.dyk__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 3px solid var(--ink); margin-top: 24px; }
.dyk__item { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.dyk__item:first-child { border-left: 0; padding-left: 0; }
.dyk__tag { font-family: var(--mono); font-size: 12px; color: var(--red); }
.dyk__big { font-weight: 800; font-stretch: 70%; font-size: 56px; line-height: 0.95; }
.dyk__item p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* Explore: map + timeline */
.explore { padding-top: 48px; padding-bottom: 64px; }
.explore__head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.explore__head p { margin: 0; max-width: 460px; font-size: 15px; color: var(--ink-3); }
.explore__cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.explore__map { flex: 1.35 1 560px; min-width: 0; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mapview { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #E4E6E2; }
.mapview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapview img[hidden] { display: none; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; z-index: 2; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin.is-active { width: 34px; height: 34px; background: var(--red); z-index: 3; }
.pin--house { width: 18px; height: 18px; border-radius: 0; background: #fff; border: 3px solid var(--red); box-shadow: none; }
.pin--house.is-active { width: 24px; height: 24px; background: var(--red); }
.pin-tip { position: absolute; background: var(--ink); color: #fff; padding: 6px 10px; font-family: var(--mono); font-size: 12px; white-space: nowrap; z-index: 4; pointer-events: none; }
@media (max-width: 720px) { .pin-tip { white-space: normal; max-width: 60%; } }
.mapview__foot { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.story { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.story > li { border-bottom: 1px solid var(--rule); }
.story__btn { display: block; width: 100%; text-align: left; padding: 16px 14px 16px 16px; border: 0; border-left: 4px solid transparent; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.story__btn[aria-pressed="true"] { border-left-color: var(--red); background: var(--paper-3); }
.story__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; }
.story__when { color: var(--red); }
.story__where { color: var(--ink-4); }
.story__title { display: block; font-weight: 700; font-size: 19px; margin-top: 6px; }
.story__body { display: block; font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 4px; }
.story__src { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 8px; }
.story__ad { padding: 18px 0; display: flex; justify-content: center; }
.story__ad .bm-ad { margin: 0; }

/* Print */
.print { background: var(--paper-2); }
.print .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.print__frame-wrap { flex: 1 1 360px; display: flex; justify-content: center; }
.print__frame { width: 100%; max-width: 420px; background: #141414; padding: 10px; box-shadow: 0 34px 48px -30px rgba(0, 0, 0, .55); }
.print__mount { background: #fff; padding: 34px 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.print__image { aspect-ratio: 4 / 5; overflow: hidden; background: #E4E6E2; position: relative; }
.print__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.print__image img[hidden] { display: none; }
.print__caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 2px solid #141414; padding-top: 10px; }
.print__title { font-weight: 800; font-stretch: 70%; font-size: 26px; line-height: 0.95; text-transform: uppercase; }
.print__title span { display: block; font-weight: 500; font-size: 15px; letter-spacing: 0.04em; }
.print__tag { font-family: var(--mono); font-size: 9px; line-height: 1.5; text-align: right; color: var(--ink-3); }
.print__copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.print__copy p { margin: 0; font-size: 17px; color: var(--ink-2); }

/* Today tables */
.today { padding-top: 64px; padding-bottom: 32px; }
.today__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 24px; }
.datatable { width: 100%; border-collapse: collapse; font-size: 15px; }
.datatable caption { text-align: left; font-family: var(--mono); font-size: 12px; color: var(--ink-4); padding-bottom: 8px; }
.datatable tbody { border-top: 3px solid var(--ink); }
.datatable tr { border-bottom: 1px solid var(--rule); }
.datatable th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 11px 12px 11px 0; }
.datatable td { text-align: right; font-weight: 600; }
.partner { border-top: 3px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.partner__head { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.partner__id { display: flex; gap: 14px; align-items: center; }
.partner__id img { width: 56px; height: 56px; object-fit: contain; }
.partner__name { font-weight: 800; font-stretch: 75%; font-size: 24px; text-transform: uppercase; line-height: 1; }
.partner p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Cards row */
.cards { padding-top: 32px; padding-bottom: 72px; }
.cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 3px solid var(--ink); }
.card { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border-left: 1px solid var(--rule); }
.card:first-child { border-left: 0; padding-left: 0; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.card textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 2px; resize: vertical; }
.sources { padding-bottom: 48px; font-size: 14px; }
.sources ul { margin: 8px 0 0; padding-left: 18px; }

/* Home */
.home-hero { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; }
.home-hero__copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 22px; }
.home-search { display: flex; max-width: 680px; border: 3px solid var(--ink); position: relative; background: #fff; }
.home-search input { flex: 1; min-width: 0; height: 64px; padding: 0 18px; border: 0; font: inherit; font-size: 20px; }
.home-search button { padding: 0 28px; border: 0; background: var(--red); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.home-hero__aside { flex: 0 1 340px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); border-top: 3px solid var(--ink); padding-top: 12px; }
.home-hero__aside strong { display: block; font-family: var(--sans); font-weight: 800; font-stretch: 70%; font-size: 48px; line-height: 1; color: var(--ink); }
.steps { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 3px solid var(--ink); margin-top: 24px; }
.steps li { list-style: none; padding: 18px 22px 22px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps .num { font-family: var(--mono); font-size: 12px; color: var(--red); }
.steps h3 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.section { padding-top: 64px; }
.section__head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; }
.housegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; margin-top: 24px; }
.housecard { text-decoration: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.housecard__img { aspect-ratio: 4 / 3; overflow: hidden; background: #E4E6E2; position: relative; }
.housecard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.housecard__credit { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 3px 7px; background: rgba(15,17,16,.72); color: #fff; font-family: var(--mono); font-size: 10px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.housecard__place { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.housecard__title { font-weight: 800; font-stretch: 72%; font-size: 26px; text-transform: uppercase; line-height: 1; }
.housecard p { margin: 0; font-size: 15px; color: var(--ink-2); }
.housecard--soon .housecard__img { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--ink-4); background: var(--paper-3); border: 1px dashed #B8BBB7; }
.townlist { list-style: none; margin: 24px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.townlist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.townlist a { font-weight: 700; font-size: 20px; text-decoration: none; }
.townlist span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filters a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--ink); }
.filters a.is-current { background: var(--ink); color: #fff; }

/* Generic pages */
.page-body { padding-top: 48px; padding-bottom: 72px; max-width: 760px; }
.page-body h1 { margin-bottom: 24px; }
.page-body .entry { font-size: 18px; line-height: 1.65; }
.results { list-style: none; margin: 24px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.results li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.results a { font-weight: 700; font-size: 20px; text-decoration: none; }
.results p { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; }

@media (max-width: 720px) {
	.dyk__item, .card, .steps li { border-left: 0; padding-left: 0; }
	.explore__map { position: relative; top: 0; }
	.home-search input { height: 56px; font-size: 17px; }
}

/* Surprise me */
.surprise { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn svg { margin-right: 8px; flex: none; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
@media (max-width: 720px) { .surprise span { display: none; } .site-header__tools { max-width: none; } }

/* Suggestions */
.suggest { position: absolute; left: -3px; right: -3px; top: 100%; z-index: 50; list-style: none; margin: 4px 0 0; padding: 0; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); max-height: 70vh; overflow-y: auto; text-align: left; }
.search-form .suggest { left: 0; right: 0; min-width: min(300px, calc(100vw - 48px)); }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.suggest li[aria-selected="true"] { background: var(--paper-3); }
.suggest__type { flex: none; width: 52px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.suggest__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest__main strong { font-size: 16px; }
.suggest__main small { font-family: var(--mono); font-size: 11px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__built { flex: none; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--rule); padding: 2px 6px; }
.suggest__all { font-weight: 700; font-size: 14px; color: var(--red); }
.suggest__none { font-size: 14px; color: var(--ink-3); cursor: default; }

/* Hero */
/* The hero clips its background sideways only, so the search suggestions can hang below it over the next section. */
.hero { position: relative; z-index: 5; background: var(--ink); color: #fff; overflow-x: clip; overflow-y: visible; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-map, none); background-size: cover; background-position: center; opacity: .22; filter: grayscale(1) contrast(1.2); mix-blend-mode: screen; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,16,.96) 0%, rgba(15,17,16,.75) 55%, rgba(15,17,16,.35) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-end; justify-content: space-between; }
.hero__copy { flex: 1 1 600px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero .h-xl { color: #fff; }
.eyebrow--light { color: var(--red-bright); }
.lede--light { color: #D6D8D4; }
.hero .home-search { border-color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.hero__try { font-size: 15px; color: #B8BBB7; }
.hero__try a { color: #fff; }
.hero__stats { flex: 0 1 300px; margin: 0; display: grid; gap: 0; border-top: 3px solid var(--red-bright); }
.hero__stats > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hero__stats dt { font-family: var(--mono); font-size: 12px; color: #B8BBB7; }
.hero__stats dd { margin: 0; font-weight: 800; font-stretch: 70%; font-size: 40px; line-height: 1; }

/* Record breakers */
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 24px; border-top: 3px solid var(--ink); }
.recordtile { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: background .15s; }
.recordtile:first-child { border-left: 0; }
@media (max-width: 600px) { .recordtile { border-left: 0; padding-left: 0; padding-right: 0; } }
.recordtile__tag { font-family: var(--mono); font-size: 12px; color: var(--red); }
.recordtile__big { font-weight: 800; font-stretch: 68%; font-size: clamp(52px, 6vw, 80px); line-height: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The forum on the home page */
.hforum { background: var(--ink); color: #fff; margin-top: 64px; padding: 48px 0 52px; }
.hforum .eyebrow { color: #ff8a7a; }
.hforum__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: flex-end; }
.hforum__head h2 { color: #fff; margin: 0; }
.hforum__lede { color: rgba(255,255,255,.78); max-width: 58ch; margin: 10px 0 0; font-size: 17px; }
.hforum__stat { font: 500 13px var(--mono); color: rgba(255,255,255,.6); margin-top: 10px; }
.hforum__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.hforum__acts .btn--line { color: #fff; border-color: #fff; }
.hforum__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hforum__list { grid-template-columns: repeat(3, 1fr); } }
.hforum__card { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--ink); text-decoration: none; }
.hforum__img { aspect-ratio: 16 / 9; background: var(--paper-3); overflow: hidden; }
.hforum__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hforum__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.hforum__kind { align-self: flex-start; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; background: var(--red); color: #fff; padding: 3px 7px; }
.hforum__title { font-weight: 700; font-size: 19px; line-height: 1.25; }
.hforum__where { font: 13px/1.4 var(--mono); color: var(--red); }
.hforum__ex { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hforum__meta { margin-top: auto; padding-top: 6px; font: 12px var(--mono); color: var(--ink-4); }
@media (hover: hover) and (pointer: fine) { .hforum__card:hover .hforum__title { color: var(--red); } }
.recordtile__name { font-weight: 700; font-size: 19px; }
.recordtile__note { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.recordtile__line { font-size: 15px; line-height: 1.45; color: var(--ink-2, #333); }

/* Facts wall */
.facts { background: var(--ink); color: #fff; margin-top: 72px; padding-bottom: 64px; }
.facts .h-m { color: #fff; }
.facts__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.facts__grid li { background: var(--ink); }
.facts__grid li[hidden] { display: none; }
.facts__grid a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 24px; color: #fff; text-decoration: none; }
.facts__big { font-weight: 800; font-stretch: 68%; font-size: 52px; line-height: .95; color: var(--red-bright); }
.facts__text { font-size: 16px; color: #D6D8D4; }
.facts__where { margin-top: auto; font-family: var(--mono); font-size: 12px; color: #fff; }

/* Ages */
.eras { list-style: none; margin: 24px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.eras li { display: grid; grid-template-columns: 120px 1fr 56px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.eras__label { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.eras__bar { height: 18px; background: var(--paper-3); }
.eras__bar span { display: block; height: 100%; background: var(--red); min-width: 2px; }
.eras__n { text-align: right; font-weight: 700; }
.townlist__next { font-weight: 700; font-size: 20px; color: var(--ink-4); }

/* Card map zoom, marker and age badge */
.housecard--map .housecard__img img { transition: none; }
.housecard__marker { position: absolute; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 3px solid var(--red); background: rgba(196,38,26,.18); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.housecard__built { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; padding: 5px 9px; font-family: var(--mono); font-size: 11px; }

/* Search page */
.home-search--small input { height: 52px; font-size: 17px; }
.request { margin-top: 48px; padding: 28px; background: var(--paper-3); border-top: 3px solid var(--ink); max-width: 720px; }
.request p { margin: 10px 0 0; color: var(--ink-2); }
.request form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; align-items: flex-start; }
.request label { display: flex; flex-direction: column; gap: 6px; width: 100%; font-weight: 600; font-size: 15px; }
.request input[type=email], .request input[name=address] { height: 48px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; font: inherit; font-weight: 400; }
.request__check { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.request__done { font-weight: 700; color: var(--ink); }

/* Pubs, shops and schools */
.housecard__built--use { background: var(--red); }
.names { padding-bottom: 28px; }
.names .eyebrow { margin-bottom: 10px; }
.names__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 3px solid var(--ink); }
.names__list li { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 14px 0; border-bottom: 1px solid var(--rule); }
.names__list li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.names__when { font-family: var(--mono); font-size: 12px; color: var(--red); }
.names__name { font-weight: 800; font-stretch: 72%; font-size: 26px; text-transform: uppercase; line-height: 1; }
@media (max-width: 720px) { .names__list li + li { padding-left: 0; border-left: 0; } }

/* Old pupils (schools) and other people lists */
.alumni { padding-bottom: 28px; }
.alumni .eyebrow { margin-bottom: 10px; }
.alumni__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 3px solid var(--ink); }
.alumni__list li { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px 14px 0; border-bottom: 1px solid var(--rule); }
.alumni__name { font-weight: 800; font-stretch: 72%; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.alumni__for { color: var(--ink-2); font-size: 15px; }
.alumni__meta { color: var(--ink-4); font-size: 12px; }
.alumni__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* A record's own photograph, above the maps */
.photo-figure { margin-top: 8px; margin-bottom: 32px; }
.photo-figure img { display: block; width: 100%; height: clamp(260px, 52vw, 620px); object-fit: cover; background: #e9e6df; }
.photo-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 10px 0 0; border-bottom: 1px solid #d8d4cb; padding-bottom: 10px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; color: #55564f; }
.photo-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Collection hubs */
.hub__head { padding-top: 48px; }
.hub__head .lede { margin-top: 16px; }
.hub__tabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border-bottom: 2px solid var(--ink); }
.hub__tabs a { font-weight: 700; font-size: 16px; text-decoration: none; padding: 12px 18px; margin-bottom: -2px; border-bottom: 4px solid transparent; color: var(--ink-3); }
.hub__tabs a span { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-4); margin-left: 4px; }
.hub__tabs a.is-current { color: var(--ink); border-bottom-color: var(--red); }
.hub__tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.hub__tools[hidden] { display: none; }
.hub__search { flex: 1 1 280px; }
.hub__search input, .hub__select select { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
.hub__select { flex: 0 1 240px; }
.hub__tools .filters { margin-top: 0; }
.filters button, .hub__view button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.filters button.is-current, .hub__view button.is-current { background: var(--ink); color: #fff; }
.hub__view { display: flex; margin-left: auto; }
.hub__view button + button { border-left: 0; }
.hub__count { margin-top: 18px; margin-bottom: 18px; }
.hub__map { height: min(70vh, 640px); margin-bottom: 32px; border: 1px solid var(--rule); }
.hub__map[hidden] { display: none; }
.hub__pop { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.hub__pop img { width: 100%; height: 120px; object-fit: cover; margin-bottom: 4px; }
.hub__pop span { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.hub__none { grid-column: 1 / -1; padding: 32px 0; color: var(--ink-3); }
.hub__more { text-align: center; margin: 32px 0 0; }
.hub__pages { margin-top: 32px; }
.hub main, main.hub { padding-bottom: 72px; }
@media (max-width: 720px) { .hub__view { margin-left: 0; } .hub__select { flex: 1 1 100%; } }

/* Readers' memories */
.memories { border-top: 2px solid var(--ink); padding-top: 40px; }
.memories__list { list-style: none; margin: 28px 0 0; padding: 0; columns: 3 300px; column-gap: 28px; }
.memory { break-inside: avoid; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.memory__photo { margin: 0 0 12px; }
.memory__photo img { display: block; width: 100%; height: auto; background: var(--paper-3); }
.memory__text p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.memory__who { font-family: var(--mono); font-size: 12px; color: var(--ink-4); margin: 0; }
.memories__add { margin-top: 32px; display: grid; gap: 20px; max-width: 760px; }
.memform { display: grid; gap: 14px; }
.memform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.memform label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.memform label small { font-weight: 400; color: var(--ink-4); }
.memform input:not([type=checkbox]), .memform textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 0; background: #fff; width: 100%; box-sizing: border-box; }
.memform input[type=file] { padding: 9px 10px; }
.memform__check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; }
.memform__check input { margin-top: 4px; }
.memform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.memform button { justify-self: start; }
.memform button[disabled] { opacity: .6; cursor: wait; }
.memform__msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.memform.is-sent .memform__msg { color: #1d6b3a; }
@media (max-width: 720px) { .memform__row { grid-template-columns: 1fr; } }

/* More photographs */
.gallery { margin-top: -16px; margin-bottom: 32px; }
.gallery__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.gallery__cap { margin: 8px 0 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.gallery__credit { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.gallery__credit a { color: inherit; }
.gallery__item { position: relative; }
.gallery__open { display: block; cursor: zoom-in; }
.gallery__tag { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; padding: 3px 7px; letter-spacing: .04em; }
.lbox { position: fixed; inset: 0; z-index: 9999; background: rgba(12,12,12,.94); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lbox[hidden] { display: none; }
.lbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lbox__fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lbox__fig figcaption { color: #eee; margin-top: 12px; text-align: center; display: grid; gap: 4px; font-size: 15px; max-width: 70ch; }
.lbox__credit { font-family: var(--mono); font-size: 12px; color: #aaa; }
.lbox__x, .lbox__nav { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 8px 14px; }
.lbox__x { top: 8px; right: 12px; }
.lbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lbox__next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lbox { padding: 48px 8px; } .lbox__nav { font-size: 34px; padding: 6px; } }

/* 1.5.3: gaps, blanks and long lists */
.today__grid { align-items: start; }
.seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.seg button { flex: 0 0 auto; white-space: nowrap; }
.bm-ad--preview { min-height: 0 !important; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; }
.bm-ad--preview .bm-ad__label { position: static; align-self: center; }
.factgrid dd { overflow-wrap: anywhere; }
.factmore { display: inline; }
.factmore summary { display: inline; cursor: pointer; color: var(--red); text-decoration: underline; text-underline-offset: 2px; list-style: none; }
.factmore summary::-webkit-details-marker { display: none; }
.factmore[open] summary { display: none; }
.factmore[open]::before { content: ', '; }

/* Every home on a street */
.homes { padding-bottom: 48px; }
.homes__h { margin: 28px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.homes .numbers { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.numbers a { padding: 0 6px; text-align: center; overflow-wrap: anywhere; line-height: 1; }
.namedlist { list-style: none; margin: 10px 0 0; padding: 0; columns: 4 220px; column-gap: 32px; border-top: 1px solid var(--rule); }
.namedlist li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.namedlist a { display: block; padding: 11px 0; font-weight: 600; font-size: 16px; text-decoration: none; }
.flatlist { margin: 10px 0 0; border-top: 1px solid var(--rule); }
.flatlist > div { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 6px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.flatlist dt { font-weight: 700; font-size: 16px; padding-top: 7px; }
.flatlist dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flatlist dd a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 560px) { .flatlist > div { grid-template-columns: 1fr; } .flatlist dt { padding-top: 0; } }

/* Towns: twelve on the home page, the rest on /towns/ */
.townlist--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.townlist--grid li { align-items: baseline; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; min-width: 0; }
.townlist--grid li a { min-width: 0; overflow-wrap: anywhere; }
.townlist--grid li span { white-space: normal; text-align: right; margin-left: auto; }
.townlist span { white-space: nowrap; }
.townlist__more { margin-top: 14px; }
.towns-page { padding-top: 48px; padding-bottom: 72px; }
.towns-page .lede { max-width: 640px; }
.towns-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; }
.towns-tools .hub__search { flex: 0 1 420px; }
.towns-tools input { width: 100%; }
.countyjump { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.countyjump a { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); font-size: 14px; font-weight: 600; text-decoration: none; }
.countyjump a span { font-family: var(--mono); font-size: 11px; color: var(--ink-4); font-weight: 400; }
.county { margin-top: 36px; scroll-margin-top: 16px; }
.county[hidden] { display: none; }
.county__h { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--ink); font-size: 22px; }
.county__h span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-4); margin-left: 8px; }
.county__list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.county__list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.county__list li[hidden] { display: none; }
.county__list a { font-weight: 600; text-decoration: none; }
.county__list span { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

/* Little histories: whole rows only (bm.js picks how many) */
.facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .facts__grid { grid-template-columns: 1fr; } }

/* Small screens: nothing wider than the screen */
img, video, iframe, table { max-width: 100%; }
.wrap { min-width: 0; }
.datatable td { overflow-wrap: anywhere; }
.section__head { flex-wrap: wrap; }
.print__copy, .print__frame-wrap, .house-head__main, .factgrid, .story, .hero__copy { min-width: 0; }
.flatmore { display: contents; }
.flatmore summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--red); list-style: none; }
.flatmore summary::-webkit-details-marker { display: none; }
.flatmore[open] summary { display: none; }
@media (max-width: 560px) {
	.homes .numbers { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
	.homes .numbers a { min-height: 44px; font-size: 18px; }
	.namedlist { columns: 1; }
}
.counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; }
.county--big { grid-column: 1 / -1; }
.county:not(.county--big) .county__list { columns: 1; }
.explore__cols--nomap .story { flex: 1 1 100%; max-width: 760px; }
.datatable th a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.intro-more { padding-bottom: 28px; }
.intro-more__body { max-width: 720px; border-left: 3px solid var(--red); padding-left: 20px; }
.intro-more__body p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.intro-more__body p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .intro-more__body { padding-left: 14px; } .intro-more__body p { font-size: 16px; } }
.factgrid a.maker, .names__name a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.maker-page__head { padding-top: 40px; padding-bottom: 24px; }
.maker-page__head .lede { margin-top: 12px; }
.maker-page__map { height: 360px; margin-bottom: 8px; }
.screen { margin-top: 8px; }
.screen__role { font-size: 15px; color: var(--ink-3, #555); line-height: 1.4; }
/* Header with six menu links: keep the search box usable, wrapping it below the menu when space runs short. */
@media (min-width: 721px) { .site-header__tools { min-width: 340px; } .main-nav ul { gap: 18px; font-size: 14.5px; } .surprise span { display: none; } }

/* Who was here: people listed in an old trade directory (B&M Directories plugin) */
.directory { padding-bottom: 28px; }
.directory .eyebrow { margin-bottom: 10px; }
.directory__intro { margin: 0 0 12px; color: var(--ink-2); max-width: 60ch; }
.directory__list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); columns: 2 360px; column-gap: 32px; }
.directory__list li { break-inside: avoid; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.directory__no { color: var(--ink-4); grid-row: span 3; padding-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.directory__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.directory__trade { color: var(--ink-3); font-size: 15px; min-width: 0; }
.directory__link { grid-column: 2; font-size: 12px; color: var(--ink-4); }
/* What was where: each number on a street through the directories */
.thennow { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); max-width: 900px; }
.thennow > li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.thennow__no { font: 800 20px/1.2 var(--sans); }
.thennow__no a { color: var(--ink); }
.thennow__years { list-style: none; margin: 0; padding: 0; }
.thennow__years li { padding: 1px 0; font-size: 15px; color: var(--ink-2); }
.thennow__y { display: inline-block; min-width: 3.2em; font: 500 13px var(--mono); color: var(--red); }
.directory__books { margin-top: 18px; }
@media (hover: hover) and (pointer: fine) { .thennow__no a:hover { color: var(--red); } }
.directory__more { margin-top: 8px; }
.directory__more > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; padding: 8px 0; }
.directory__lines { margin: 0; padding: 0 0 0 1.1em; max-width: 70ch; }
.directory__lines li { margin: 0 0 6px; }
.directory__note { color: var(--ink-4); font-size: 12px; margin: 12px 0 0; max-width: 80ch; }

/* Footer: about, contact, privacy and terms (B&M Community plugin) */

/* Search: a town that matches the search sits at the top */
.town-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; margin-top: 28px; padding: 22px 24px; border: 3px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--paper-3); max-width: 820px; }
.town-hit .eyebrow, .town-hit__name, .town-hit__count { grid-column: 1; }
.town-hit__name { margin: 0; }
.town-hit__go { grid-column: 2; grid-row: 1 / span 3; font-size: 40px; font-weight: 800; color: var(--red); }

/* Quick links under a page's introduction */
.jumps { margin: 18px 0 0; }
.jumps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jumps a { display: inline-block; padding: 7px 12px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--ink); background: #fff; }
.jumps a.jumps__part { background: var(--red); border-color: var(--red); color: #fff; }
#explore, #compare, #photos, #memories, #people, #questions { scroll-margin-top: 80px; }
.alumni__more > summary { cursor: pointer; font-family: var(--mono); font-size: 13px; padding: 12px 0; }

/* Site map page */
.sitemap h2 { margin: 36px 0 12px; }
.sitemap h3 { margin: 24px 0 8px; font-size: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.sitemap__cols { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.sitemap__cols li { break-inside: avoid; padding: 3px 0; overflow-wrap: anywhere; }
.sitemap__cols small { color: var(--ink-4); font-family: var(--mono); font-size: 11px; }

/* On screen: titles link to every location used */
.names__link { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.screen__more { display: block; margin-top: 6px; color: var(--ink-4); }

/* Hover effects only where there is a real mouse. On a phone the first tap on anything with a
   hover effect only "hovers" it, and a second tap is needed to press it. */
@media (hover: hover) and (pointer: fine) {
	a:hover { color: var(--red); }
	.btn--red:hover { background: #A51F14; color: #fff; }
	.btn--ink:hover { background: #2B2F2C; color: #fff; }
	.btn--line:hover { background: var(--ink); color: #fff; }
	.brand:hover { color: #fff; }
	.main-nav a:hover { color: var(--red-bright); }
	.crumbs a:hover { color: var(--red); }
	.neighbours a:hover { background: var(--ink); color: #fff; }
	.numbers a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
	.story__btn:hover { background: var(--paper-3); }
	.housecard:hover .housecard__img img { transform: scale(1.03); }
	.surprise:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
	.btn--ghost:hover { background: #fff; color: var(--ink); }
	.suggest li[role="option"]:hover { background: var(--paper-3); }
	.recordtile:hover { background: var(--paper-3); color: var(--ink); }
	.facts__grid a:hover { background: #1B1E1C; color: #fff; }
	.housecard:hover .housecard__built { background: var(--red); }
	.housecard:hover .housecard__built--use { background: var(--ink); }
	.namedlist a:hover { color: var(--red); }
	.flatlist dd a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
	.countyjump a:hover { border-color: var(--ink); }
	.datatable th a:hover { color: var(--red); text-decoration-color: currentColor; }
	.factgrid a.maker:hover, .names__name a:hover { color: var(--red); }
	.town-hit:hover { border-color: var(--red); color: var(--ink); }
	.jumps a:hover { background: var(--ink); color: #fff; }
	.jumps a.jumps__part:hover { background: var(--ink); border-color: var(--ink); }
	.names__link:hover { color: var(--red); }
}

/* Taps register at once: no wait for a double-tap zoom, no grey flash. */
a, button, summary, label, [role="option"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---- Place pages: county, town, area --------------------------------------------------- */
.place__head { padding-top: 36px; padding-bottom: 8px; }
.place__head .eyebrow { margin-top: 14px; }
.place__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.place__stats a { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); font-size: 15px; }
.place__stats strong { font-family: var(--display, inherit); font-size: 18px; }
.place__mapsec { padding-top: 24px; }
.pmap__bar { position: relative; z-index: 1001; }
.pmap__search input { width: 100%; box-sizing: border-box; padding: 16px 18px 16px 48px; font: inherit; font-size: 18px; border: 2px solid var(--ink); border-bottom: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230F1110' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m16 16 6 6'/%3E%3C/svg%3E") 16px center no-repeat; border-radius: 0; -webkit-appearance: none; }
.pmap__sugg { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.15); max-height: 360px; overflow: auto; }
.pmap__sugg li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.pmap__sugg li span { font-family: var(--mono); font-size: 12px; color: var(--ink-4); text-align: right; }
.pmap__sugg li[aria-selected="true"], .pmap__sugg li:active { background: var(--paper-3); }
.pmap__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border: 2px solid var(--ink); }
.pmap__map { height: 560px; position: relative; background: #e9e6df; }
.pmap__side { border-left: 2px solid var(--ink); display: flex; flex-direction: column; min-height: 0; max-height: 560px; }
.pmap__count { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pmap__list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.pmap__list button { display: block; width: 100%; text-align: left; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; cursor: pointer; }
.pmap__list strong { display: block; font-size: 16px; }
.pmap__list span { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.pmap__pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; }
.pmap__pager:empty { display: none; }
.pmap__pager button { font: inherit; font-weight: 700; padding: 8px 10px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.pmap__pager button[disabled] { opacity: .35; cursor: default; }
.pmap__hint { margin: 8px 0 0; }
.pmap__cl { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: rgba(196,38,26,.92); color: #fff; font: 700 13px var(--mono); box-shadow: 0 0 0 4px rgba(196,38,26,.25); }
.pmap__pop { display: block; text-decoration: none; color: var(--ink); min-width: 180px; }
.pmap__pop strong { display: block; font-size: 16px; }
.pmap__pop span { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-4); margin: 2px 0 6px; }
.pmap__pop em { font-style: normal; font-weight: 700; color: var(--red); }
.pmap__veil { position: absolute; inset: 0; z-index: 1000; border: 0; background: rgba(15,17,16,.28); color: #fff; font: 700 18px var(--sans); cursor: pointer; }
.place__kidshead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.place__sort { display: flex; border: 1px solid var(--ink); }
.place__sort a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.place__sort a.is-current { background: var(--ink); color: var(--paper); }
.place__letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; }
.place__letters a { min-width: 34px; padding: 6px 0; text-align: center; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); font: 700 14px var(--mono); }
.place__letters a.is-current { background: var(--red); border-color: var(--red); color: #fff; }
.placegrid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.placegrid a { display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 16px 18px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--paper); }
.placegrid__name { font-weight: 800; font-size: 20px; line-height: 1.2; }
.placegrid__n { font-family: var(--mono); font-size: 12px; color: var(--ink-4); margin-top: 10px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 36px 0 0; padding-top: 24px; border-top: 3px solid var(--ink); }
.pager__nums { display: flex; flex-wrap: wrap; gap: 4px; }
.pager__num { min-width: 42px; padding: 10px 0; text-align: center; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); font: 700 15px var(--mono); }
.pager__num.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager__gap { align-self: center; color: var(--ink-4); padding: 0 2px; }
.pager__step { padding: 12px 18px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-weight: 800; }
.pager__next { background: var(--red); border-color: var(--red); color: #fff; }
.pager__step.is-off { opacity: .3; }
.pager__of { flex-basis: 100%; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
@media (hover: hover) and (pointer: fine) {
	.placegrid a:hover { background: var(--ink); color: var(--paper); }
	.placegrid a:hover .placegrid__n { color: var(--paper-2); }
	.pager__num:hover, .place__letters a:hover { border-color: var(--ink); }
	.pmap__list button:hover, .pmap__sugg li:hover { background: var(--paper-3); }
	.pager__next:hover { background: var(--ink); border-color: var(--ink); }
}
@media (max-width: 860px) {
	.pmap__body { grid-template-columns: 1fr; }
	.pmap__map { height: 62vh; min-height: 380px; }
	.pmap__side { border-left: 0; border-top: 2px solid var(--ink); max-height: none; }
	.pmap__list { max-height: 420px; }
	.pager__nums { order: 3; flex-basis: 100%; justify-content: center; }
	.placegrid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.placegrid a { min-height: 0; padding: 12px 12px; }
	.placegrid__name { font-size: 16px; }
	.placegrid__n { margin-top: 6px; font-size: 11px; }
	.place__stats a { padding: 6px 10px; font-size: 14px; }
	.pager__step { flex: 1; text-align: center; }
}

/* Phones: the menu is one row that slides sideways, not four lines filling the first screen. */
@media (max-width: 720px) {
	.site-header .wrap { gap: 10px; padding-top: 10px; padding-bottom: 12px; }
	.main-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.main-nav::-webkit-scrollbar { display: none; }
	.main-nav ul { flex-wrap: nowrap; white-space: nowrap; gap: 20px; font-size: 15px; padding: 4px 24px 4px 0; }
	.main-nav a { display: inline-block; padding: 6px 0; }
}

/* ---- Search results -------------------------------------------------------------------- */
.searchpage__form { margin-top: 20px; max-width: 640px; }
.searchpage__count { margin: 14px 0 0; }
.search-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; max-width: 900px; }
.search-kinds__k { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border: 2px solid var(--ink); font: 700 14px/1.2 var(--sans, inherit); color: var(--ink); text-decoration: none; background: var(--paper, #fff); }
.search-kinds__k span { font: 400 12px var(--mono); color: var(--ink-4); }
.search-kinds__k.is-on { background: var(--ink); color: #fff; }
.search-kinds__k.is-on span { color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) { .search-kinds__k:not(.is-on):hover { border-color: var(--red); color: var(--red); } }
@media (max-width: 600px) { .search-kinds { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; } .search-kinds__k { flex: none; } }
.results-group { margin-top: 36px; max-width: 900px; }
.results-group__h { font: 800 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 0; }
.results-group__h span { color: var(--ink-4); margin-left: 6px; }
.results-group .results { margin-top: 10px; }
.results-group .results li { padding: 0; }
.results-group .results a { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 16px; padding: 14px 0; color: var(--ink); }
.results__type { grid-row: 1 / span 2; align-self: start; margin-top: 4px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); }
.results__title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.results__line { font: 400 13px var(--mono); color: var(--ink-3); margin-top: 3px; }
.results li.is-new .results__type { color: var(--red); }
.results li.is-new .results__title { font-weight: 600; }
.results-group__more { margin-top: 16px; }
@media (hover: hover) and (pointer: fine) {
	.results-group .results a:hover .results__title { color: var(--red); }
}
@media (max-width: 600px) {
	.results-group .results a { grid-template-columns: 1fr; }
	.results__type { grid-row: auto; margin: 0 0 2px; }
	.results__title { font-size: 17px; }
}

/* ---- Towns page: county cards, and a finder that lists matches ---------------------------- */
.towns-find { margin: 24px 0 8px; max-width: 640px; }
.towns-find__list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.towns-find__list a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.towns-find__list span { font-family: var(--mono); font-size: 12px; color: var(--ink-4); text-align: right; }
.countycards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.countycards[hidden] { display: none; }
.countycard { border: 1px solid var(--rule); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper, transparent); }
.countycard__h { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.countycard__h .small-mono { color: var(--ink-4); }
.countycard__towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.countycard__towns a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--rule); font-size: 14px; text-decoration: none; }
.countycard__all { margin-top: auto; font-size: 14px; font-weight: 600; }
@media (hover: hover) { .countycard__towns a:hover, .towns-find__list a:hover { border-color: var(--ink); background: rgba(0,0,0,.03); } .countycard__h:hover .h-s { text-decoration: underline; } }
@media (max-width: 720px) { .countycards { grid-template-columns: 1fr 1fr; gap: 10px; } .countycard { padding: 12px; } .countycard__towns li:nth-child(n+4) { display: none; } .countycard__h .h-s { font-size: 18px; } }
@media (max-width: 420px) { .countycards { grid-template-columns: 1fr; } }

/* Site map: each county folds away. */
.sitemap__county { border-bottom: 1px solid var(--rule); }
.sitemap__county summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 17px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.sitemap__county summary small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-4); }
.sitemap__county[open] summary { border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.sitemap__county .sitemap__cols { padding-bottom: 16px; }

/* On a phone, house cards are a compact list (picture beside the words), so a page of them is short. */
@media (max-width: 600px) {
	.housegrid { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
	.housegrid .housecard { display: grid; grid-template-columns: 116px 1fr; grid-auto-rows: min-content; column-gap: 14px; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.housegrid .housecard__img { grid-row: 1 / span 4; aspect-ratio: 1; align-self: start; }
	.housegrid .housecard__built { font-size: 9px; padding: 3px 5px; }
	.housegrid .housecard__credit { display: none; }
	.housegrid .housecard__title { font-size: 20px; }
	.housegrid .housecard__place { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.housegrid .housecard p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.hub__count { margin-bottom: 0; scroll-margin-top: 12px; }
}

/* ---- Accounts: the header link, the Save button and My houses ----------------------------- */
.acctlink { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (hover: hover) { .acctlink:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); } }
@media (max-width: 720px) { .acctlink span { display: none; } .acctlink { padding: 0 12px; } }
.savebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 0 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 15px/1 var(--sans, inherit); cursor: pointer; border-radius: 2px; }
.savebtn.is-saved { background: var(--ink); color: #fff; }
.savebtn.is-saved path { fill: currentColor; }
@media (hover: hover) { .savebtn:hover { background: rgba(0,0,0,.05); } .savebtn.is-saved:hover { background: var(--ink); opacity: .9; } }
.memory__reply { margin: 12px 0 0 14px; padding: 8px 0 2px 14px; border-left: 3px solid var(--red, #C4261A); }
.memory__reply p { margin: 0 0 6px; }

.acct { max-width: 980px; }
.acct__msg { padding: 14px 16px; margin: 0 0 22px; border-left: 4px solid var(--ink); background: rgba(0,0,0,.035); }
.acct__msg--ok { border-color: #2f7d4a; }
.acct__msg--bad { border-color: var(--red, #C4261A); }
.acct__msg--note p { margin: 0 0 10px; }
.acct__msg--note form { margin: 0; }
.acct__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.acct__forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.acctcard { border: 1px solid var(--rule); padding: 20px 22px 22px; }
.acctcard h2, .acctcard h3 { margin: 0 0 14px; }
.acctform { display: flex; flex-direction: column; gap: 14px; }
.acctform label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.acctform label small { font-weight: 400; color: var(--ink-4); }
.acctform input[type=email], .acctform input[type=password], .acctform input:not([type]) { min-height: 46px; padding: 0 12px; border: 1px solid var(--ink-4, #888); border-radius: 2px; font-size: 16px; background: #fff; }
.acctform .acct__check, .acct__check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.acct__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.acctform .btn { align-self: flex-start; }
.acct__lost, .acct__close { margin-top: 18px; }
.acct__lost summary, .acct__close summary { cursor: pointer; min-height: 32px; font-size: 15px; text-decoration: underline; }
.acct__lost form, .acct__close form { margin-top: 12px; }
.acct__google { margin: 24px 0 0; }
.acct__or { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--ink-4); font-size: 14px; }
.acct__or::before, .acct__or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.acct__jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.acct__jump a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: 14px; }
.acct__jump span { font-family: var(--mono); font-weight: 400; color: var(--ink-4); }
.acct__jump b, .acct__new, .acctmem__reply b { background: var(--red, #C4261A); color: #fff; font-size: 11px; padding: 3px 7px; font-weight: 700; letter-spacing: .02em; }
.acctsec { margin-top: 40px; scroll-margin-top: 16px; }
.acctsec > h2 { padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.acct__empty { color: var(--ink-3, #444); max-width: 60ch; }
.acctlist { list-style: none; margin: 0; padding: 0; }
.acctlist li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); }
.acctlist__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 2px; text-decoration: none; }
.acctlist__main strong { font-size: 18px; }
.acctlist__type { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); }
.acctlist__type--wait { color: #8a5a00; }
.acctlist__line { font-size: 14px; color: var(--ink-4); }
.acct__new { align-self: flex-start; margin-top: 4px; }
.acctlist form { margin: 0; }
.acctlist__x { background: none; border: 0; color: var(--ink-4); text-decoration: underline; font-size: 14px; min-height: 44px; padding: 0 6px; cursor: pointer; }
.acctmem { list-style: none; margin: 0; padding: 0; }
.acctmem > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.acctmem__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.acctmem__st { font-family: var(--mono); font-size: 11px; font-weight: 400; padding: 3px 7px; border: 1px solid currentColor; }
.acctmem__st--live { color: #2f7d4a; }
.acctmem__st--wait { color: #8a5a00; }
.acctmem__st--no { color: var(--ink-4); }
.acctmem__text { margin: 0 0 6px; }
.acctmem__reply { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--rule); background: rgba(0,0,0,.025); }
.acctmem__reply.is-new { border-left-color: var(--red, #C4261A); }
.acctmem__reply p { margin: 0 0 6px; }
@media (hover: hover) { .acctlist__main:hover strong, .acct__jump a:hover { text-decoration: underline; } }

/* Replies under readers' memories */
.memory__replybtn { margin-top: 10px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 600 14px/1 var(--sans, inherit); cursor: pointer; border-radius: 2px; }
@media (hover: hover) { .memory__replybtn:hover { border-color: var(--ink); } }
.replyform { margin: 12px 0 0 14px; padding: 14px 0 4px 14px; border-left: 3px solid var(--red, #C4261A); }
.replyform__to { margin: 0 0 8px; }
.replyform__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.replyform.is-sent textarea { opacity: .6; }
.memory__reply .cm-report { color: var(--ink-4); }
@media (max-width: 600px) { .replyform, .memory__reply { margin-left: 0; } }

/* Header: the account button is an icon beside the search until there is room for its words,
   so the search box keeps a usable width. */
.acctlink .acctlink__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acctlink { padding: 0 12px; }
@media (min-width: 721px) { .site-header__tools { min-width: 400px; max-width: 560px; } .site-header__tools form { flex: 1 1 auto; min-width: 0; } }
@media (min-width: 1560px) { .acctlink .acctlink__t { position: static; width: auto; height: auto; clip: auto; overflow: visible; } }
@media (max-width: 720px) { .site-header__tools .search-form button[type=submit] { padding-left: 14px; padding-right: 14px; font-size: 16px; } .site-header__tools .surprise, .site-header__tools .acctlink { padding: 0 10px; } }

/* Google's button: room for its full width (it is drawn inside a frame slightly wider than itself). */
.acct__gbtn { min-height: 44px; margin: 4px 0 0; }
.acct__gbtn iframe { max-width: none !important; }
.acctcard .acct__or { margin: 16px 0 14px; }

/* Sign in with Google: our own button in Google's style (white, grey border, the G). */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; background: #fff; border: 1px solid #747775; border-radius: 4px; color: #1f1f1f; font: 500 15px/1.2 Roboto, Arial, sans-serif; text-decoration: none; letter-spacing: .01em; }
.gbtn svg { flex: none; }
@media (hover: hover) { .gbtn:hover { background: #f6f8fc; border-color: #1f1f1f; } }
.gbtn:focus-visible { outline: 3px solid #4285F4; outline-offset: 2px; }

/* ---- The next good click: explore bar, picks, connected places, town starters --------------- */
.explorebar { margin-top: 28px; margin-bottom: 8px; padding-top: 0; padding-bottom: 4px; }
.explorebar__head { border-top: 3px solid var(--ink); padding-top: 16px; }
.explorebar__head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.explorebar__head .eyebrow { margin: 0; font-size: 14px; }
.explorebar__lead { min-height: 44px; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.picks a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--rule); text-decoration: none; background: var(--paper, #fff); }
.picks__why { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--red); text-transform: uppercase; }
.picks strong { font-size: 17px; line-height: 1.25; }
.picks__line { font-size: 14px; color: var(--ink-3, #444); line-height: 1.4; }
@media (hover: hover) { .picks a:hover { border-color: var(--ink); } .picks a:hover strong { text-decoration: underline; } }
@media (max-width: 760px) {
	.picks { grid-template-columns: 1fr; gap: 8px; }
	.picks a { padding: 12px 14px; }
	.explorebar__lead { width: 100%; justify-content: center; }
}
.related { margin-top: 40px; }
.related h2 { margin: 0 0 14px; }
.jumps__find { font-weight: 700; }
.starters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.starters__h { font-family: var(--mono); font-size: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .06em; }
.starters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.starters a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: 14px; }
.starters a span { font-family: var(--mono); font-weight: 400; color: var(--ink-4); }
@media (hover: hover) { .starters a:hover { border-color: var(--ink); } }

/* 1.5.34: picks after the map, links from the story, stories on town pages */
.explorebar--lead { margin-bottom: 0; }
.explorebar--lead .explorebar__head { margin-bottom: 4px; }
.explorebar--after .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story__next { display: block; padding: 0 14px 14px 20px; background: #fff; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.story__next:hover { color: var(--ink); }
.mention { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.mention:hover { color: var(--red); }
.pstories { margin-top: 36px; }
.pstories .display { margin: 4px 0 16px; }
@media (max-width: 720px) {
	.explorebar--after .picks { grid-template-columns: 1fr; }
	.story__next { padding-left: 16px; }
}

/* Phones: the header in two short rows (name and buttons, then the search box) with the menu as a
   thin sliding strip under them, so the page itself starts in the first third of the screen. */
@media (max-width: 720px) {
	.site-header .wrap { gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
	.site-header__tools { display: contents; }
	.site-header .brand { order: 1; flex: 1 1 auto; font-size: 22px; }
	.site-header__tools .surprise { order: 2; }
	.site-header__tools .acctlink { order: 3; }
	.site-header__tools .surprise, .site-header__tools .acctlink { height: 38px; min-height: 0; }
	.site-header__tools .search-form { order: 4; flex: 1 1 100%; }
	.site-header__tools .search-form input, .site-header__tools .search-form button { height: 42px; }
	.main-nav { order: 5; }
	.main-nav ul { font-size: 14px; gap: 18px; padding-top: 0; padding-bottom: 0; }
	.main-nav a { padding: 4px 0; }
}
/* Long house names in big type fill a phone screen on their own. */
@media (max-width: 480px) {
	.h-xl { font-size: clamp(36px, 11vw, 52px); }
}

/* Readers' memories: the forms stay closed until asked for (a display rule was showing them), and one
   or two memories read across a normal column instead of a narrow third of the page. */
.memform[hidden], .replyform[hidden] { display: none !important; }
.memories__list:not(:has(> li:nth-child(3))) { columns: 1; max-width: 760px; }
.replyform { max-width: 760px; }

/* Print order form (on the Prints page) */
.printorder { max-width: 760px; margin: 0 0 48px; }
.printorder__form { display: grid; gap: 22px; margin-top: 18px; }
.printorder fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.printorder legend { font-weight: 700; margin-bottom: 8px; }
.printorder__eds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.printorder__ed { display: grid; gap: 6px; cursor: pointer; border: 2px solid var(--rule); padding: 8px; }
.printorder__ed:has(input:checked) { border-color: var(--red); }
.printorder__ed input { position: absolute; opacity: 0; }
.printorder__ed img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.printorder__opt { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.printorder__opt input { width: 20px; height: 20px; }
.printorder__note { display: grid; gap: 6px; }
.printorder__note[hidden] { display: none; }
.printorder__note textarea { font: inherit; padding: 10px; border: 1px solid var(--ink); }
.printorder__total { font-size: 20px; margin: 0; }
.printorder__msg { margin: 0; font-weight: 600; }
.printorder__field { display: grid; gap: 6px; max-width: 420px; }
.printorder__field input { font: inherit; padding: 10px; border: 1px solid var(--ink); background: var(--paper, #fff); color: inherit; }
.printorder__ed .tilepic { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.printorder__ed .tilepic img { position: absolute; max-width: none; aspect-ratio: auto; object-fit: fill; }
.printorder__done { font-size: 18px; margin: 0; }
.printfind { margin: 28px 0 48px; max-width: 640px; }
.printfind .search-form { margin: 8px 0; }

/* Live maps: the old map laid out from the library's own tiles (see the plugin's livemaps.php).
   The tile box keeps the 3:2 view and covers its frame like a picture with object-fit: cover. */
.compare, .mapview, .print__image, .housecard__img { container-type: size; }
.tilepic { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); height: max(100cqh, 66.6667cqw); transform: translate(-50%, -50%); overflow: hidden; background: #E4E6E2; pointer-events: none; }
.tilepic[hidden] { display: none; }
.tilepic--card { width: max(100cqw, 133.3333cqh); height: max(100cqh, 75cqw); }
div.tilepic > img { position: absolute; right: auto; bottom: auto; max-width: none; object-fit: fill; transition: none; transform: none; image-rendering: auto; }
