/*
Theme Name: Maidenhead Town 2026
Theme URI: https://www.maidenhead-town.co.uk/
Description: Block theme for the Maidenhead Town directory. Version 0.3.0 is the "Riverside" design: Fraunces and Inter (self-hosted), a river-blue and chalk palette with reed green and amber, a photo hero and photo tiles, guide cards, list cards with photographs, a sticky facts card on listing pages and a magazine layout for the guides. Advertising placements are switched off (D-006) but the slots remain in the templates.
Version: 0.3.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: maidenhead-town-2026
*/

/* ---------- tokens ---------- */
:root {
  --mt-river: var(--wp--preset--color--river);
  --mt-river-2: var(--wp--preset--color--river-2);
  --mt-ink: var(--wp--preset--color--ink);
  --mt-muted: var(--wp--preset--color--muted);
  --mt-chalk: var(--wp--preset--color--chalk);
  --mt-paper: var(--wp--preset--color--paper);
  --mt-line: var(--wp--preset--color--line);
  --mt-reed: var(--wp--preset--color--reed);
  --mt-reed-soft: var(--wp--preset--color--reed-soft);
  --mt-reed-text: var(--wp--preset--color--reed-text);
  --mt-amber: var(--wp--preset--color--amber);
  --mt-amber-text: var(--wp--preset--color--amber-text);
  --mt-amber-soft: var(--wp--preset--color--amber-soft);
  --mt-serif: var(--wp--preset--font-family--fraunces);
  --mt-sans: var(--wp--preset--font-family--inter);
  --mt-shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 10px 30px rgba(23, 50, 77, .10);
  --mt-radius: 1.125rem;
  --mt-radius-s: .75rem;
  --mt-wrap: 78rem;
  --mt-gutter: 1.25rem;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { position: relative; }
a { text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--mt-amber); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.mt-hero :focus-visible,
.mt-pagehead :focus-visible,
.mt-footer :focus-visible,
.mt-home .mt-header :focus-visible,
.mt-btn-primary:focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--mt-amber); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Core prints the skip link (#wp-skip-link) for block themes with a <main>; this only styles its focused state. */
.skip-link.screen-reader-text:focus { background: #fff; color: var(--mt-river); padding: .6rem 1rem; z-index: 100; font-weight: 700; top: .5rem; left: 1rem; border-radius: .5rem; }
h1, h2, h3, h4 { overflow-wrap: anywhere; margin-top: 0; }
.mt-muted { color: var(--mt-muted); }
.mt-small { font-size: var(--wp--preset--font-size--small); }
input, textarea, select { border: 1px solid var(--wp--preset--color--n3); border-radius: var(--mt-radius-s); padding: .6rem .9rem; font: inherit; background: #fff; color: var(--mt-ink); }
.mt-wrap { max-width: var(--mt-wrap); margin-left: auto; margin-right: auto; padding-left: var(--mt-gutter); padding-right: var(--mt-gutter); }
.mt-wrap > * { min-width: 0; }
.mt-main { padding-bottom: 3rem; }
.mt-kicker { font: 600 .75rem/1 var(--mt-sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .9rem; color: var(--mt-amber-text); }
.mt-eyebrow { font: 600 .75rem/1.3 var(--mt-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mt-amber-text); margin: 0 0 .4rem; }
.mt-lede { font-size: 1.125rem; line-height: 1.6; color: #3a4552; }

/* ---------- header ---------- */
.mt-header { background: var(--mt-paper); border-bottom: 1px solid var(--mt-line); position: relative; z-index: 20; }
.mt-header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1.5rem; min-height: 4rem; padding-top: .5rem; padding-bottom: .5rem; }
.mt-brand { grid-column: 1; }
.mt-header .wp-block-site-title { margin: 0; font-family: var(--mt-serif); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.mt-header .wp-block-site-title a { text-decoration: none; color: var(--mt-river); }
.mt-header .wp-block-site-title a:hover { color: var(--mt-amber-text); }
.mt-header .wp-block-site-tagline { margin: .3rem 0 0; font: 500 .6875rem/1 var(--mt-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mt-muted); }
.mt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.mt-nav a { display: block; color: var(--mt-ink); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .7rem .8rem; min-height: 44px; border-radius: 999px; line-height: 1.4; }
.mt-nav a:hover, .mt-nav a:focus-visible { background: var(--mt-chalk); color: var(--mt-river); }
.mt-nav a[aria-current="page"], .mt-nav a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--mt-amber); border-radius: .25rem; }
.mt-nav-toggle { display: none; background: transparent; color: inherit; border: 1.5px solid currentColor; padding: .55rem .9rem; font: inherit; font-weight: 600; border-radius: 999px; cursor: pointer; min-height: 44px; }
.mt-nav-toggle::after { content: " \25BE"; }
.mt-nav-toggle[aria-expanded="true"]::after { content: " \25B4"; }
.mt-header-search { margin: 0; }
.mt-header-search .wp-block-search__inside-wrapper { border: 1px solid var(--mt-line) !important; border-radius: 999px; padding: 2px !important; background: #fff; }
.mt-header-search .wp-block-search__input { border: 0 !important; padding: .6rem .9rem !important; font-size: .9375rem; min-width: 0; background: transparent !important; }
.mt-header-search .wp-block-search__button { border-radius: 999px !important; padding: .55rem .9rem !important; min-height: 44px; }
@media (min-width: 1200px) {
  /* One row: brand at its full width, the nav pushed right, the search last. */
  .mt-header-inner { grid-template-columns: max-content minmax(0, 1fr) 11rem; min-height: 5rem; }
  .mt-home .mt-header-inner { grid-template-columns: max-content minmax(0, 1fr); }
  .mt-nav { justify-self: end; min-width: 0; }
  .mt-nav ul { gap: .1rem; justify-content: flex-end; }
  .mt-nav a { padding: .65rem .6rem; font-size: .875rem; white-space: nowrap; }
  /* The site title is the home link on wide screens. */
  .mt-nav li:first-child { display: none; }
}
@media (min-width: 1440px) {
  .mt-nav ul { gap: .2rem; }
  .mt-nav a { padding: .7rem .75rem; font-size: .9375rem; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  /* Two rows: brand and search, then the nav. */
  .mt-header-inner { grid-template-columns: 1fr minmax(12rem, 18rem); }
  .mt-nav { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* The header template part (a <header> wrapper) is the sticky element; its parent is the page root. */
  header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
  .mt-header-inner { grid-template-columns: 1fr auto; min-height: 3.75rem; }
  .mt-header .wp-block-site-tagline { display: none; }
  .mt-nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .mt-nav ul { flex-direction: column; gap: 0; }
  .mt-nav a { font-size: 1.0625rem; border-radius: .5rem; }
  /* Without JavaScript the full list shows below the brand; with it, the Menu button discloses the list. */
  .mt-js .mt-nav-toggle { display: inline-block; }
  .mt-js .mt-nav ul { display: none; }
  .mt-js .mt-nav ul.is-open { display: flex; position: absolute; left: 0; right: 0; top: 100%; background: var(--mt-paper); color: var(--mt-ink); padding: .75rem var(--mt-gutter) 1rem; border-bottom: 1px solid var(--mt-line); box-shadow: var(--mt-shadow); }
  .mt-js .mt-nav ul.is-open a { color: var(--mt-ink); }
  .mt-header-search { grid-column: 1 / -1; display: none; }
  .mt-header.mt-menu-open .mt-header-search, html:not(.mt-js) .mt-header-search { display: block; }
  .mt-header.mt-menu-open .mt-header-search { position: absolute; left: var(--mt-gutter); right: var(--mt-gutter); top: calc(100% + .5rem); z-index: 2; }
  /* Leave room for the search form above the first menu item. */
  .mt-header.mt-menu-open .mt-nav ul.is-open { padding-top: 3.9rem; }
  html:not(.mt-js) .mt-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
}
/* Front page: the header sits over the hero photograph. */
.mt-home header.wp-block-template-part { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.mt-home .mt-header { background: transparent; border-bottom: 0; color: #fff; }
.mt-home .mt-header .wp-block-site-title a, .mt-home .mt-nav a { color: #fff; }
.mt-home .mt-header .wp-block-site-tagline { color: rgba(255, 255, 255, .85); }
.mt-home .mt-nav a:hover, .mt-home .mt-nav a:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; }
.mt-home .mt-header-search { display: none; }
@media (max-width: 767px) {
  .mt-home .mt-js .mt-nav ul.is-open, .mt-js .mt-home .mt-nav ul.is-open { background: var(--mt-river); }
  .mt-js .mt-home .mt-nav ul.is-open a { color: #fff; }
  .mt-home .mt-header.mt-menu-open .mt-header-search { display: none; }
}

/* ---------- hero ---------- */
.mt-hero { position: relative; min-height: 40rem; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(160deg, var(--mt-river) 0%, var(--mt-river-2) 100%); }
.mt-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.mt-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 36, .55) 0%, rgba(10, 22, 36, .08) 35%, rgba(10, 22, 36, .78) 100%); pointer-events: none; }
.mt-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--mt-wrap); margin: 0 auto; padding: 7rem var(--mt-gutter) 4rem; }
@media (min-width: 768px) and (max-width: 1199px) { .mt-hero-inner { padding-top: 10rem; } }
.mt-hero .mt-kicker { color: #f3d9a8; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.mt-pagehead .mt-kicker { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.mt-hero h1 { color: #fff; font-size: var(--wp--preset--font-size--display); font-weight: 600; line-height: 1.05; max-width: 15em; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.mt-hero-lede { font-size: 1.1875rem; max-width: 36em; margin: 1.1rem 0 1.6rem; color: rgba(255, 255, 255, .94); line-height: 1.5; }
.mt-hero-search { display: flex; max-width: 44rem; background: #fff; border-radius: 1rem; padding: .375rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.mt-hero-search input { flex: 1; min-width: 0; border: 0; padding: .85rem 1.1rem; font: 500 1.0625rem/1.3 var(--mt-sans); color: var(--mt-ink); background: transparent; border-radius: .6rem; }
.mt-hero-search button { border: 0; background: var(--mt-river); color: #fff; font: 600 .9375rem var(--mt-sans); padding: 0 1.6rem; border-radius: .7rem; cursor: pointer; min-height: 44px; }
.mt-hero-search button:hover { background: var(--mt-river-2); }
.mt-hero-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.mt-hero-chips a { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); padding: .7rem .95rem; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.3; color: #fff; text-decoration: none; min-height: 44px; }
.mt-hero-chips a:hover { background: rgba(255, 255, 255, .26); }
.mt-photo-credit { position: absolute; right: 1rem; bottom: .6rem; z-index: 2; margin: 0; font-size: .6875rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (max-width: 767px) {
  .mt-hero { min-height: 34rem; }
  .mt-hero-inner { padding: 6rem var(--mt-gutter) 2.5rem; }
  .mt-hero .mt-kicker { font-size: .625rem; letter-spacing: .14em; }
  .mt-hero-lede { font-size: 1rem; }
  .mt-hero-search { padding: .3rem; }
  .mt-hero-search input { padding: .7rem .8rem; font-size: 1rem; }
  .mt-hero-search button { padding: 0 1rem; }
  .mt-hero .mt-photo-credit { display: none; }
}

/* ---------- sections, grids ---------- */
.mt-section { padding: 3.5rem 0 .5rem; }
.mt-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.mt-sec-h h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.mt-sec-h p { margin: .35rem 0 0; color: var(--mt-muted); }
.mt-more { font-weight: 600; color: var(--mt-amber-text); white-space: nowrap; text-decoration: none; }
.mt-more:hover { text-decoration: underline; }
.mt-grid-4, .mt-grid-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.375rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .mt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .mt-grid-4, .mt-grid-3 { display: flex; overflow-x: auto; gap: .9rem; padding: .25rem .25rem 1rem; margin: 0 calc(-1 * var(--mt-gutter)); padding-left: var(--mt-gutter); scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .mt-grid-4 > *, .mt-grid-3 > * { flex: 0 0 78%; scroll-snap-align: start; }
  .mt-section { padding: 2.5rem 0 .25rem; }
  .mt-sec-h { flex-direction: column; align-items: flex-start; gap: .25rem; }
}

/* monogram panel for entries without a photograph */
.mt-mono { display: grid; place-items: center; width: 100%; height: 100%; min-height: 6rem; font-family: var(--mt-serif); font-weight: 600; font-size: 3rem; color: rgba(255, 255, 255, .92); background: linear-gradient(145deg, var(--mt-river) 0%, var(--mt-river-2) 100%); }
.mt-mono-2 { background: linear-gradient(145deg, #3f6a33 0%, var(--mt-reed) 100%); }
.mt-mono-3 { background: linear-gradient(145deg, #9a6418 0%, var(--mt-amber) 100%); }

/* guide cards */
.mt-gcard a { display: flex; flex-direction: column; height: 100%; background: var(--mt-paper); border-radius: var(--mt-radius); overflow: hidden; box-shadow: var(--mt-shadow); text-decoration: none; color: inherit; transition: transform .25s; }
.mt-gcard a:hover { transform: translateY(-3px); }
.mt-gcard .mt-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe6ea; }
.mt-gcard .mt-ph img, .mt-gcard .mt-ph .mt-mono { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-tag { position: absolute; left: .75rem; top: .75rem; background: rgba(255, 255, 255, .94); color: var(--mt-river); font: 600 .6875rem/1 var(--mt-sans); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 999px; }
.mt-gcard .mt-body { display: block; padding: 1.1rem 1.25rem 1.25rem; }
.mt-gcard-title { display: block; font-family: var(--mt-serif); font-weight: 600; font-size: 1.375rem; line-height: 1.15; color: var(--mt-river); margin-bottom: .35rem; }
.mt-gcard a:hover .mt-gcard-title { text-decoration: underline; }
.mt-gcard-line { display: block; color: var(--mt-muted); font-size: .9375rem; line-height: 1.45; }

/* photo tiles (top-level sections) */
.mt-phototile a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 5 / 4; border-radius: var(--mt-radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--mt-shadow); background: var(--mt-river); isolation: isolate; }
.mt-phototile img, .mt-phototile .mt-mono { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mt-phototile .mt-mono { font-size: 5rem; opacity: .9; }
.mt-phototile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 22, 36, .88)); z-index: 1; }
.mt-phototile .mt-t { position: relative; z-index: 2; padding: 1.25rem; }
.mt-tile-title { display: block; font-family: var(--mt-serif); font-weight: 600; font-size: 1.625rem; line-height: 1.1; }
.mt-phototile small { display: block; font-size: .8125rem; opacity: .92; margin-top: .35rem; line-height: 1.4; }
.mt-phototile a:hover .mt-tile-title { text-decoration: underline; }
/* text tiles (child categories, areas) */
.mt-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.mt-tile { background: var(--mt-paper); border: 1px solid var(--mt-line); border-radius: var(--mt-radius-s); padding: .9rem 1.1rem; box-shadow: 0 1px 2px rgba(20, 30, 40, .04); }
.mt-tile a { text-decoration: none; font-weight: 600; color: var(--mt-river); font-size: 1.0625rem; }
.mt-tile a:hover { text-decoration: underline; }
.mt-tile .mt-count { display: block; color: var(--mt-muted); font-size: .8125rem; margin-top: .2rem; }

/* two columns: recently checked and what's on */
.mt-two { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .mt-two { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.mt-rows { list-style: none; margin: 0; padding: 0; }
.mt-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--mt-line); }
@media (min-width: 640px) { .mt-row { grid-template-columns: 5.5rem 1fr auto; } }
.mt-row-th { width: 5.5rem; height: 4.25rem; border-radius: .75rem; overflow: hidden; background: #dfe6ea; display: block; }
.mt-row-th img, .mt-row-th .mt-mono { width: 100%; height: 100%; object-fit: cover; min-height: 0; font-size: 1.75rem; }
.mt-row-main a { font-family: var(--mt-serif); font-weight: 600; font-size: 1.125rem; color: var(--mt-river); text-decoration: none; }
.mt-row-main a:hover { text-decoration: underline; }
.mt-row-main small { display: block; color: var(--mt-muted); font-size: .875rem; margin-top: .1rem; }
.mt-row-badge { display: flex; flex-wrap: wrap; gap: .35rem; grid-column: 2; }
@media (min-width: 640px) { .mt-row-badge { grid-column: auto; justify-content: flex-end; } }
.mt-events { list-style: none; margin: 0; padding: .25rem 1.5rem; background: var(--mt-paper); border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); }
.mt-ev { display: grid; grid-template-columns: 3.75rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--mt-line); align-items: center; }
.mt-ev:last-child { border-bottom: 0; }
.mt-ev-date { font-family: var(--mt-serif); font-size: 1.625rem; color: var(--mt-river); line-height: 1; text-align: center; }
.mt-ev-date b { font-weight: 600; display: block; }
.mt-ev-date small { display: block; font: 600 .6875rem/1 var(--mt-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mt-amber-text); margin-top: .25rem; }
.mt-ev-main a { font-weight: 600; color: var(--mt-ink); text-decoration: none; }
.mt-ev-main a:hover { color: var(--mt-river); text-decoration: underline; }
.mt-ev-main small { display: block; color: var(--mt-muted); font-size: .875rem; margin-top: .15rem; }

/* ---------- page header (inner pages) ---------- */
.mt-pagehead { position: relative; color: #fff; background: linear-gradient(160deg, var(--mt-river) 0%, var(--mt-river-2) 100%); overflow: hidden; display: flex; align-items: flex-end; min-height: 16rem; }
.mt-pagehead-tall { min-height: 28rem; }
.mt-pagehead-regular { min-height: 22rem; }
.mt-pagehead-compact { min-height: 0; }
.mt-pagehead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.mt-pagehead-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 36, .45), rgba(10, 22, 36, .05) 40%, rgba(10, 22, 36, .72)); pointer-events: none; }
.mt-pagehead-inner { position: relative; z-index: 2; width: 100%; max-width: var(--mt-wrap); margin: 0 auto; padding: 2.5rem var(--mt-gutter) 2rem; }
.mt-pagehead-compact .mt-pagehead-inner { padding: 2rem var(--mt-gutter) 1.75rem; }
.mt-pagehead .mt-kicker { color: #f3d9a8; margin-bottom: .75rem; }
.mt-pagehead h1 { color: #fff; margin: 0; max-width: 18em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); font-size: var(--wp--preset--font-size--xx-large); }
.mt-pagehead-tall h1 { font-size: var(--wp--preset--font-size--display); }
.mt-standfirst { font-size: 1.125rem; line-height: 1.55; max-width: 44em; margin: .9rem 0 0; color: rgba(255, 255, 255, .92); }
@media (max-width: 767px) {
  .mt-pagehead-tall, .mt-pagehead-regular { min-height: 17rem; }
  .mt-pagehead-inner { padding: 2rem var(--mt-gutter) 1.5rem; }
  .mt-standfirst { font-size: 1rem; }
  .mt-pagehead .mt-photo-credit { display: none; }
}

/* ---------- breadcrumb, chips, buttons, badges ---------- */
.mt-breadcrumb ol { list-style: none; margin: 1rem 0 .25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .8125rem; color: var(--mt-muted); }
.mt-breadcrumb a { color: var(--mt-river); font-weight: 600; text-decoration: none; }
.mt-breadcrumb a:hover { text-decoration: underline; }
.mt-breadcrumb li + li::before { content: "\203A"; margin-right: .5rem; color: var(--mt-muted); }
.mt-chips { list-style: none; margin: 1rem 0 1.25rem; padding: .15rem; display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: thin; }
.mt-chips li { flex: 0 0 auto; }
.mt-chips a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--mt-line); background: var(--mt-paper); color: var(--mt-ink); text-decoration: none; font-size: .875rem; font-weight: 600; min-height: 44px; line-height: 1.9; }
.mt-chips a:hover { border-color: var(--mt-river); color: var(--mt-river); }
.mt-chips a[aria-current="page"] { background: var(--mt-river); color: #fff; border-color: var(--mt-river); }
.mt-btn { display: inline-block; padding: .6rem 1.1rem; border-radius: var(--mt-radius-s); border: 1.5px solid var(--mt-river); color: var(--mt-river); text-decoration: none; font-weight: 600; font-size: .9375rem; min-height: 44px; min-width: 44px; line-height: 1.6; background: var(--mt-paper); }
.mt-btn:hover { background: var(--mt-chalk); color: var(--mt-river-2); }
.mt-btn-primary { background: var(--mt-river); color: #fff; }
.mt-btn-primary:hover { background: var(--mt-river-2); color: #fff; }
.mt-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: var(--mt-line); color: var(--mt-ink); line-height: 1.2; }
.mt-badge-verified { background: var(--mt-reed-soft); color: var(--mt-reed-text); }
.mt-badge-closed { background: #f6e2e2; color: #7a1f1f; }
.mt-badge-unverified { background: var(--mt-line); color: #4a5563; }
.mt-badge-sponsored { background: var(--mt-amber-text); color: #fff; }
.mt-pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: var(--mt-line); color: var(--mt-ink); line-height: 1.2; }
.mt-pill-reed { background: var(--mt-reed-soft); color: var(--mt-reed-text); }

/* ---------- list cards ---------- */
.mt-cards { display: grid; gap: 1.25rem; margin: 1rem 0; }
.wp-block-post-template.mt-cards { list-style: none; padding: 0; }
.wp-block-post-template.mt-cards > li { margin: 0; min-width: 0; }
.wp-block-post-template.mt-cards > li > .mt-card { height: 100%; }
.wp-block-query-pagination { margin: 1rem 0; }
.mt-card { background: var(--mt-paper); border-radius: var(--mt-radius); overflow: hidden; box-shadow: var(--mt-shadow); display: grid; grid-template-columns: 1fr; position: relative; }
@media (min-width: 768px) { .mt-card { grid-template-columns: 17rem 1fr; } }
.mt-card-media { position: relative; background: #dfe6ea; min-height: 11rem; }
.mt-card-media img, .mt-card-media .mt-mono { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-card-media .mt-badge-sponsored { position: absolute; left: .75rem; top: .75rem; }
@media (max-width: 767px) { .mt-card-media { aspect-ratio: 16 / 9; min-height: 0; } }
.mt-card-body { padding: 1.25rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.mt-card h2, .mt-card h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.mt-card h2 a, .mt-card h3 a { text-decoration: none; color: var(--mt-river); }
.mt-card h2 a:hover, .mt-card h3 a:hover { text-decoration: underline; }
.mt-card .mt-meta { margin: 0; color: var(--mt-muted); font-size: .875rem; }
.mt-card-text { margin: 0; color: #3a4552; font-size: .9375rem; line-height: 1.55; }
.mt-card-facts { margin: .1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; font-size: .875rem; color: var(--mt-muted); }
.mt-card .mt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.mt-card-sponsored { outline: 2px solid var(--mt-amber); outline-offset: -2px; background: var(--mt-amber-soft); }
.mt-card-sponsored .mt-btn-primary { background: var(--mt-amber-text); border-color: var(--mt-amber-text); }
.mt-sponsored-block { margin: 1rem 0; }
/* compact (related) cards */
.mt-card-compact { grid-template-columns: 1fr; }
.mt-card-compact .mt-card-media { aspect-ratio: 4 / 3; min-height: 0; }
.mt-card-compact .mt-card-body { padding: 1rem 1.1rem 1.1rem; gap: .3rem; }
.mt-card-compact h3 { font-size: 1.1875rem; }
.mt-card-compact .mt-eyebrow { font-size: .6875rem; }
.mt-related { margin-top: 2.5rem; }
.mt-related h2 { font-size: var(--wp--preset--font-size--x-large); }
.mt-related > p { margin: 1rem 0 0; }

/* ---------- listing page ---------- */
.mt-lgrid { display: grid; gap: 2rem; align-items: start; margin-top: 1.25rem; }
@media (min-width: 1024px) { .mt-lgrid { grid-template-columns: 23rem minmax(0, 1fr); gap: 2.75rem; } .mt-facts-col { position: sticky; top: 1.25rem; } }
.mt-summary { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: 0 0 1rem; color: var(--mt-muted); font-size: .875rem; }
.mt-facts-col .mt-summary { padding: 1.25rem 1.5rem 0; margin: 0; }
.mt-details { background: var(--mt-paper); padding: 1.25rem 1.5rem 1.5rem; margin: 0; }
.mt-facts-col { background: var(--mt-paper); border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); overflow: hidden; }
.mt-facts-col > .mt-panel { margin: 1rem 1.5rem 0; }
.mt-facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0; font-size: .9375rem; }
.mt-facts dt { font-weight: 600; color: var(--mt-muted); }
.mt-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .mt-facts { grid-template-columns: 1fr; gap: .1rem; } .mt-facts dd { margin-bottom: .6rem; } }
.mt-hours { border-collapse: collapse; margin: .25rem 0 0; font-size: .875rem; }
.mt-hours th, .mt-hours td { text-align: left; padding: .15rem .75rem .15rem 0; }
.mt-features { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mt-features li { background: var(--mt-chalk); border: 1px solid var(--mt-line); border-radius: 999px; padding: .2rem .7rem; font-size: .8125rem; }
.mt-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.mt-facts-col .mt-small { padding: 0 1.5rem; }
.mt-ctas { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .875rem; margin: 0; }
.mt-facts-col .mt-ctas { padding: 0 1.5rem 1.25rem; }
.mt-listing-body > * { min-width: 0; }
.mt-featured { margin: 0 0 1.25rem; }
.mt-featured img { border-radius: var(--mt-radius); width: auto; max-width: 100%; height: auto; box-shadow: var(--mt-shadow); background: #fff; }
.mt-listing .mt-featured img { max-height: 32rem; object-fit: contain; }
.mt-description { font-size: 1.125rem; line-height: 1.65; color: #2b3440; }
.mt-legacy { margin-top: 1.5rem; }
.mt-legacy h2 { font-size: var(--wp--preset--font-size--x-large); }
.mt-legacy table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.mt-legacy td, .mt-legacy th { border: 1px solid var(--mt-line); padding: .5rem; vertical-align: top; text-align: left; }
.mt-legacy .listing-details dt { font-weight: 700; }
.mt-legacy .listing-details dd { margin: 0 0 .75rem; }

/* ---------- articles (guides and other pages) ---------- */
.mt-article { display: grid; gap: 2rem; align-items: start; margin-top: 1rem; }
@media (min-width: 1024px) { .mt-article { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; } .mt-article-aside { position: sticky; top: 1.25rem; } }
.mt-article-aside:empty { display: none; }
.mt-prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; color: #2b3440; }
.mt-prose > p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--mt-river); }
.mt-article-body .mt-prose > p:first-child { font-family: var(--mt-serif); font-weight: 500; font-size: 1.375rem; }
.mt-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin: 2.25rem 0 .75rem; scroll-margin-top: 1.5rem; }
.mt-prose h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.mt-prose img { border-radius: var(--mt-radius-s); }
.mt-prose ul, .mt-prose ol { padding-left: 1.25rem; }
.mt-prose li { margin: .35rem 0; }
.mt-prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--mt-amber); background: var(--mt-paper); border-radius: 0 var(--mt-radius-s) var(--mt-radius-s) 0; font-family: var(--mt-serif); font-size: 1.25rem; color: var(--mt-river); }
.mt-prose dl { background: var(--mt-reed-soft); border-radius: var(--mt-radius-s); padding: 1.1rem 1.4rem; margin: 1.25rem 0; font-size: 1rem; }
.mt-prose dt { font-weight: 700; color: var(--mt-reed-text); }
.mt-prose dd { margin: 0 0 .75rem; }
.mt-prose dd:last-child { margin-bottom: 0; }
.mt-toc { background: var(--mt-paper); border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); padding: 1.25rem 1.4rem; font-size: .9375rem; }
.mt-toc h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.mt-toc ol { list-style: none; margin: 0; padding: 0; }
.mt-toc li { border-bottom: 1px solid var(--mt-line); }
.mt-toc li:last-child { border-bottom: 0; }
.mt-toc a { display: block; padding: .5rem 0; color: var(--mt-ink); text-decoration: none; }
.mt-toc a:hover { color: var(--mt-river); text-decoration: underline; }
.mt-hub-body { margin-top: .5rem; }
.mt-term-intro { max-width: 72ch; }
.mt-term-intro .mt-count-line { color: var(--mt-muted); font-size: .875rem; }
.mt-search-again { max-width: 36rem; margin: 1.25rem 0 .5rem; }
.mt-search-again .wp-block-search__inside-wrapper { border-radius: 999px; padding: 3px !important; background: #fff; border: 1px solid var(--mt-line) !important; }
.mt-search-again .wp-block-search__input { border: 0 !important; background: transparent !important; }
.mt-search-again .wp-block-search__button { border-radius: 999px !important; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: .4rem .7rem; }

/* ---------- panels, ad slots ---------- */
.mt-panel { background: var(--mt-paper); border: 1px solid var(--mt-line); border-radius: var(--mt-radius-s); padding: 1rem 1.25rem; margin: 1rem 0; }
.mt-panel h2 { font-size: var(--wp--preset--font-size--large); margin: 0 0 .5rem; }
.mt-ad-slot { display: grid; place-items: center; background: var(--mt-line); color: var(--mt-muted); border-radius: var(--mt-radius-s); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; margin: 1rem 0; }
.mt-ad-slot::before { content: "Advertisement"; }
.mt-ad-billboard { min-height: 100px; }
.mt-ad-rail-1, .mt-ad-rail-2, .mt-ad-incontent { min-height: 250px; }
.mt-ad-native { min-height: 120px; }
.mt-rail .mt-ad-slot { display: none; }
.mt-no-ads .mt-rail { display: none; }
@media (min-width: 1024px) {
  .mt-ad-billboard { min-height: 250px; }
  .mt-ad-incontent { min-height: 280px; }
  .mt-ad-rail-2 { min-height: 600px; position: sticky; top: 1rem; }
}

/* ---------- footer ---------- */
.mt-footer { background: var(--mt-river); color: #fff; padding: 3.5rem 0 2rem; margin-top: 3rem; font-size: .9375rem; }
.mt-footer a { color: #fff; }
.mt-footer-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.mt-footer h2 { color: #fff; font-family: var(--mt-serif); font-size: 1.25rem; margin: 0 0 .6rem; }
.mt-footer ul { list-style: none; margin: 0; padding: 0; }
.mt-footer li { padding: .22rem 0; color: rgba(255, 255, 255, .85); }
.mt-footer li a { text-decoration: none; }
.mt-footer li a:hover { text-decoration: underline; }
.mt-footer .mt-copyright { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .75); font-size: .8125rem; }
.mt-credits { margin: .75rem 0 0; color: rgba(255, 255, 255, .65); font-size: .75rem; line-height: 1.6; }
.mt-credits a { color: rgba(255, 255, 255, .8); }

/* ---------- contact form (inc/contact.php) ---------- */
.town-contact { max-width: 40rem; margin-top: 2rem; }
.town-contact p { margin: 0 0 1.5rem; }
.town-contact label { display: block; font-weight: 700; margin-bottom: .3rem; }
.town-contact input:not([type="hidden"]), .town-contact textarea { display: block; width: 100%; min-height: 2.75rem; }
.town-contact .form-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.town-contact .form-note { font-size: .875rem; color: var(--mt-muted); }
.town-contact button, .town-contact input[type="submit"] { background: var(--mt-river); color: #fff; border: 0; border-radius: var(--mt-radius-s); padding: .7rem 1.3rem; font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; }
.mt-enquiry-notice { padding: .75rem 1rem; border-radius: var(--mt-radius-s); border: 1px solid var(--mt-line); background: var(--mt-paper); font-weight: 600; }
.mt-enquiry-error { border-color: #b3261e; background: #fbeae8; }

/* ---------- legacy hub and page markup ---------- */
.mt-prose .category-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mt-prose .category-links a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--mt-line); background: var(--mt-paper); text-decoration: none; font-weight: 600; font-size: .875rem; }
.mt-prose table { border-collapse: collapse; width: 100%; font-size: .875rem; overflow-wrap: anywhere; }
.mt-prose td, .mt-prose th { border: 1px solid var(--mt-line); padding: .5rem; vertical-align: top; text-align: left; }
.mt-prose .clear-float, .mt-prose .clearfloat { display: none; }
.mt-prose .hp-bgs, .mt-prose .hp-bgsright, .mt-prose .textbox, .mt-prose .hp-bgs-smaller { background: var(--mt-paper); border: 1px solid var(--mt-line); border-radius: var(--mt-radius-s); padding: 1rem; margin: 0 0 1rem; }
.mt-prose .hp-bgs-img img { width: 100%; aspect-ratio: 2.35; object-fit: cover; border-radius: .5rem; }
.mt-prose .maidenheadmenubullet { display: none; }
.mt-prose .float-right { float: right; margin: 0 0 1rem 1rem; max-width: 150px; }
