/* inLouth: one hand-written stylesheet, mobile first */

:root {
    --text: #1d2125;
    --muted: #5a6168;
    --background: #ffffff;
    --panel: #f4f6f7;
    --line: #dde2e5;
    --brand: #0b6e4f;
    --brand-dark: #08513a;
    --brand-mid: #B8D2C4;
    --brand-light: #D4E3DB;
    --brand-pale: #EEF5F1;
    --star: #b06d00;
    --radius: 6px;
    --wrap: 70rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.body-text figure {
  margin: 0;
    padding-top: 8px;
    padding-bottom: 8px;;
}

.body-text figure img {
  display: block;
  max-width: 100%;
  height: auto;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 7px;
}

.body-text hr {
    opacity: 10%;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--brand); }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--background); padding: 0.5rem; z-index: 10; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; background-color: #F9FCFB;}
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.site-name { font-size: 2rem; text-decoration: none; color: var(--text); }
.site-name strong { color: var(--brand); }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); font-size: 0.95rem; background-color: #F9FCFB;}
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }

/* Shared */
.plain-list { padding-left: 1.2rem; }
.badge { display: inline-block; margin: 0 0 0.5rem; padding: 0.15rem 0.6rem; border-radius: var(--radius); background: var(--brand); color: #fff; font-size: 0.85rem; font-weight: 600; }
.body-text > :first-child { margin-top: 0; }

/* Business page */
.tag-line { font-size: 1.15rem; color: var(--muted); margin: 0 0 0.75rem; }
.categories { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.categories li { background: var(--panel); border-radius: var(--radius); padding: 0.1rem 0.6rem; font-size: 0.9rem; }
.featured-image { display: block; border-radius: var(--radius); margin-bottom: 1.5rem; }
.category-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin-bottom: 1rem; }

@media (min-width: 40rem) {
    .category-image { aspect-ratio: 3 / 1; }
}

.business-layout { display: grid; gap: 2rem; }
.business-side section { background: var(--panel); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.business-side h2 { font-size: 1.1rem; margin-top: 0; }
.business-side ul { padding-left: 1.1rem; margin: 0; }
.social-links { overflow-wrap: anywhere; }
.opening-hours table { border-collapse: collapse; width: 100%; }
.opening-hours th, .opening-hours td { text-align: left; padding: 0.2rem 0.5rem 0.2rem 0; vertical-align: top; }
/* Today's row: the day comes from Europe/London when the page is shown */
.opening-hours .today th, .opening-hours .today td { font-weight: 700; color: var(--brand-dark); }
.today-label { display: inline-block; margin-left: 0.35rem; padding: 0 0.45rem; border-radius: 999px; background: var(--brand-light); font-size: 0.75rem; vertical-align: 0.1em; }
/* Quotes in the text of every content type (and FAQ answers). Testimonials are blockquotes too, with their own style, so they are left out. */
.body-text blockquote:not(.testimonial blockquote) {
    margin-right: auto;
    margin-left: auto;
    border-left: 8px solid #B8D2C4;
    background: #EDEDED40;
    padding: 4px 12px;
    padding-right: 10px;
    border-radius: 4px;
}
/* Calls to action in the text of any content type use the site's own button: <p><a class="button" href="...">Text</a></p>,
   with "button button-outline" for a quieter one. <div class="callout"> goes around paragraphs that need to stand out.
   The writing toolbar inserts both. */
.callout {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 6px solid var(--brand);
    border-radius: 8px;
    background: var(--brand-pale);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
/* A one-line invitation to businesses under a listing (home page, menus) */
.cta-line { margin: 1.5rem 0 0; font-weight: 600; }
/* Buttons side by side, wrapping on small screens: <p class="button-row"><a class="button" ...>...</a> <a ...>...</a></p> */
.button-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Packages on the Be Found page: a card each, with the price, the small print and an order button */
.package {
    margin: 2rem 0;
    padding: 1.1rem;
    border: 1.5px solid var(--brand-light);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(11, 110, 79, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 1rem;
}
.package > :first-child { margin-top: 0; }
.package > :last-child { margin-bottom: 0; }
.package h3 { font-size: 1.5rem; }
.package-price { font-size: 1.1rem; }
.package-note { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
/* The call to action for businesses in page text, inserted by the toolbar's CTA button:
   <div class="cta"> with an h2, a line of text and a button row (see CLAUDE.md for the standard wording) */
.cta { margin: 2rem 0; padding: 1.1rem; border: 2px solid var(--brand); border-radius: 12px; background: var(--background); }
.cta h2 { margin-top: 0; }
.cta > :last-child { margin-bottom: 0; }
@media (min-width: 30rem) {
    .package, .cta { padding: 1.5rem; }
}
.testimonials, .faqs { margin-top: 40px; }
/* Two classes, so this beats '.body-text figure { margin: 0 }' (testimonials are figures in the body text) */
.testimonials .testimonial { margin-bottom: 30px; }
.testimonial { margin: 0 0 30px; padding: 1rem 1.25rem; border-left: 4px solid var(--brand); background: var(--panel); border-radius: var(--radius); }
.testimonial blockquote { margin: 0; }
.testimonial figcaption { font-weight: 600; }
.rating { color: var(--star); margin-left: 0.5rem; letter-spacing: 0.1em; }

.faqs details {
    border: 1px solid #B8D2C4;
    border-radius: 7px;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #F9FCFB70;
}

.faqs summary {
  list-style: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px;
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faqs summary h3 {
  display: inline;
  font-size: inherit;
  margin: 0;
}

@media (min-width: 48rem) {
    h1 { font-size: 2.3rem; }
    .business-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
}

/* Listings */
.breadcrumb { margin: 0 0 0.5rem; font-size: 0.95rem; }
.intro { color: var(--muted); }
.listing-count { color: var(--muted); }
.listing-layout { display: grid; gap: 2rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--background); }
.card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-image { display: block; }
.card-image:hover img, .card-image:focus img { opacity: 0.9; }
.card-body { padding: 0.75rem 1rem 1rem; }
.card h2 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.card h2 a { text-decoration: none; }
.card-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.card-tag-line { margin: 0 0 0.25rem; }
.card-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.listing-filter details { background: var(--panel); border-radius: var(--radius); padding: 0.75rem 1rem; }
.listing-filter summary { cursor: pointer; }
.listing-filter summary h2 { display: inline; font-size: 1.1rem; margin: 0; }
.filter-list { list-style: none; margin: 0.75rem 0 0; padding: 0; font-size: 0.95rem; }
.filter-list li { margin: 0.2rem 0; }
.filter-list ul { list-style: none; padding-left: 1rem; margin: 0.2rem 0; }
.filter-list a[aria-current="page"] { font-weight: 700; color: var(--text); text-decoration: none; }
.count { color: var(--muted); font-size: 0.85rem; }
.jump-to-filter { margin-left: 0.75rem; }
.pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }

@media (min-width: 40rem) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .jump-to-filter { display: none; }
    .listing-layout { grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr); }
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Pages and sub-pages */
.page-layout { display: grid; gap: 2rem; }
.subpages ul { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.subpages li { background: var(--panel); border-radius: var(--radius); padding: 0.75rem 1rem; }
.subpages a { font-weight: 600; }
.subpages span { display: block; color: var(--muted); font-size: 0.95rem; }
.section-nav { background: var(--panel); border-radius: var(--radius); padding: 1rem 1.25rem; align-self: start; }
.section-nav h2 { font-size: 1.1rem; margin-top: 0; }
.section-nav ul { padding-left: 1.1rem; margin: 0; }
.section-nav [aria-current="page"] { font-weight: 700; }

@media (min-width: 48rem) {
    .page-layout:has(.section-nav) { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
}

/* Info cards (doctors and pharmacies), written in the page text as div.info-card.
   A grid, so the buttons share the last row when there is room, without a wrapper in the HTML.
   The "Get directions" button is added by includes/info-cards.php. */
.info-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.55rem;
    margin: 0 0 1.5rem;
    padding: 1.1rem;
    background: var(--background);
    border: 1.5px solid var(--brand-light);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(11, 110, 79, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.info-card > * { grid-column: 1 / -1; margin: 0; }
/* The area and badge sit above the name, as on the old site, while the name stays first in the HTML */
.info-card-area { order: -2; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.info-card-badge { order: -1; justify-self: start; padding: 0.3em 0.85em; border: 1px solid var(--brand-mid); border-radius: 999px; background: var(--brand-light); color: var(--brand-dark); font-size: 0.78rem; font-weight: 600; line-height: 1.4; }
.info-card h3 { margin-top: 0.25rem; color: var(--text); font-size: 1.3rem; }
.info-card-address { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.info-card p:not([class]) { font-size: 0.95rem; }
.info-card-times { position: relative; padding-left: 1.6em; font-size: 0.9rem; line-height: 1.5; }
.info-card-phone a, .info-card-website a, .info-card-directions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.65em 1.1em;
    border: 2px solid var(--brand);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.info-card-phone, .info-card-website, .info-card-directions { grid-column: auto; margin-top: 0.5rem; }
.info-card-phone a { background: var(--brand); color: #fff; }
.info-card-phone a:hover, .info-card-phone a:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.info-card-website a:hover, .info-card-website a:focus, .info-card-directions a:hover, .info-card-directions a:focus { background: var(--brand-light); color: var(--brand-dark); }
.info-card-phone a:focus-visible, .info-card-website a:focus-visible, .info-card-directions a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* Icons are inline SVG masks, so they take the text colour and need no image files */
.info-card-times::before, .info-card-phone a::before, .info-card-website a::before, .info-card-directions a::before {
    content: "";
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.info-card-times::before { position: absolute; left: 0; top: 0.25em; width: 1.1em; height: 1.1em; color: var(--brand); }
.info-card-times { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.info-card-phone a { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 9.81 19.79 19.79 0 01.02 1.18 2 2 0 012 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L6.09 7.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E"); }
.info-card-website a { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E"); }
.info-card-directions a { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

@media (min-width: 30rem) {
    .info-card { padding: 1.5rem; }
}

/* Events */
.card-date { margin: 0 0 0.25rem; font-weight: 600; color: var(--brand-dark); font-size: 0.95rem; }
.event-dates { padding-left: 1.1rem; }
.finished { color: var(--muted); }
/* Date and place come first in the page, so they lead on small screens */
.event-layout { display: grid; gap: 2rem; }

@media (min-width: 48rem) {
    .event-layout { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
    .event-layout .event-side { grid-column: 2; grid-row: 1; }
    .event-layout .body-text { grid-column: 1; grid-row: 1; }
}

/* What's On calendar: on phones a list of the days that have events; from 48rem a month grid */
.calendar { margin: 1.5rem 0 2.5rem; scroll-margin-top: 1rem; }
.calendar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.calendar-head h2 { margin: 0 0 0.5rem; }
.calendar-nav { display: flex; gap: 1rem; margin: 0 0 0.5rem; }
.calendar-grid { list-style: none; margin: 0; padding: 0; }
.calendar-weekdays, .calendar-blank, .calendar-num, .calendar-day:not(.has-events) { display: none; }
.calendar-day { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.calendar-full { display: block; font-weight: 700; color: var(--brand-dark); }
.calendar-day ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.calendar-day li { margin: 0.15rem 0; }
@media (min-width: 48rem) {
    .calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
    .calendar-weekdays span { padding: 0.25rem 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
    .calendar-blank, .calendar-day, .calendar-day:not(.has-events) { display: block; }
    .calendar-day { min-height: 5.5rem; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; font-size: 0.8rem; line-height: 1.3; overflow-wrap: anywhere; }
    .calendar-day.is-past { background: var(--panel); color: var(--muted); }
    .calendar-day.is-today { border: 2px solid var(--brand); }
    .calendar-num { display: block; font-weight: 700; }
    .calendar-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .calendar-day ul { list-style: none; padding: 0; }
    .calendar-day li { margin: 0.3rem 0 0; }
}

/* Products, services and menus */
.price { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.button { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600; }
.button:hover, .button:focus { background: var(--brand-dark); color: #fff; }
.button-outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button-outline:hover, .button-outline:focus { background: var(--brand-light); color: var(--brand-dark); }
.menu-section { margin-top: 2rem; }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.menu-item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.menu-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.menu-item img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius); }
.menu-item h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.menu-item p { margin: 0.25rem 0; }
.menu-item:target { background: var(--panel); outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius); }
.menu-price { font-weight: 700; }
.dietary { font-size: 0.75rem; font-weight: 700; text-decoration: none; border: 1px solid var(--brand); color: var(--brand-dark); border-radius: 3px; padding: 0 0.3rem; margin-left: 0.25rem; vertical-align: middle; }
.dietary-key, .menu-checked, .allergens { color: var(--muted); font-size: 0.95rem; }

/* Articles */
.article-meta { margin: 0 0 0.25rem; color: var(--muted); }
.kind { display: inline-block; font-weight: 700; color: var(--brand-dark); margin-right: 0.5rem; }

/* Home page */
.home-intro { padding: 0.5rem 0 1rem; max-width: 48rem; }
.home-section, .more-from { margin-top: 2.5rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.home-columns { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.home-panel { background: var(--panel); border-radius: var(--radius); padding: 1rem 1.25rem; }
.home-panel h2 { font-size: 1.15rem; margin-top: 0; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin: 0.25rem 0; }
.home-promo { border: 2px solid var(--brand); background: var(--background); }

@media (min-width: 40rem) {
    .cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Public forms */
.owner-box p { margin: 0.4rem 0; }
.form-page { max-width: 40rem; }
.site-form fieldset { border: 0; padding: 0; margin: 1rem 0; }
.site-form legend { font-weight: 600; margin-bottom: 0.4rem; }
.site-form .choice label { display: block; margin: 0.3rem 0; }
.site-form .field { margin: 1rem 0; }
.site-form .field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.site-form .hint { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.site-form input:not([type="radio"]), .site-form select, .site-form textarea { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--background); color: var(--text); }
.site-form h2 { font-size: 1.2rem; margin: 1.75rem 0 0; }
.site-form .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.site-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-thanks { background: #e7f4ee; border-radius: var(--radius); padding: 0.25rem 1rem; }

/* Search */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-search { display: flex; gap: 0.25rem; order: 3; width: 100%; }
.site-search input, .home-search input { flex: 1; min-width: 0; font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.site-search button, .home-search button { font: inherit; padding: 0.4rem 0.9rem; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; cursor: pointer; }
.home-search { margin: 1rem 0; max-width: 36rem; }
.home-search label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.home-search div { display: flex; gap: 0.25rem; }
.search-group { margin-top: 1.75rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.search-thumb { display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.search-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-results a { font-weight: 600; }
.search-results p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 64rem) {
    .site-search { order: 0; width: auto; flex: 0 1 18rem; }
}

/* Admin */
.admin-header { background: var(--panel); }
.admin-login { max-width: 22rem; margin: 2rem auto; }
.admin-login label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.admin-login input { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.form-error { background: #fdecea; color: #8a1c13; border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; cursor: pointer; }
.admin-table { border-collapse: collapse; min-width: 20rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--line); }
.flash { background: #e7f4ee; color: var(--brand-dark); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin-top: 1rem; }
.admin-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1rem; }
.admin-filter label, .admin-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.admin-filter input, .admin-filter select, .admin-form input, .admin-form select, .admin-form textarea { max-width: 100%; font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--background); color: var(--text); }
.admin-filter .button, .admin-form .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.table-scroll { overflow-x: auto; position: relative; }
.admin-list { width: 100%; }
.admin-list .actions { white-space: nowrap; }
.admin-list .actions > * + * { margin-left: 0.75rem; }
.note { color: var(--muted); font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
.admin .breadcrumb { margin: 1rem 0 0; font-size: 0.9rem; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 1rem 1rem; margin: 1.5rem 0; min-width: 0; }
.admin-form legend { font-weight: 700; padding: 0 0.4rem; }
.admin-form .field { margin: 0.9rem 0; }
.admin-form .field input:not([type="checkbox"]):not([type="file"]):not([type="number"]), .admin-form .field select { width: 100%; max-width: 40rem; }
.admin-form .field input[type="date"] { max-width: 12rem; }
.admin-form .field-check label { font-weight: 400; }
.admin-form .hint { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.field-error { display: block; color: #8a1c13; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
/* Bulk featured image alt text: the image beside the items that use it and the alt text box */
.alt-row { display: grid; gap: 0.5rem 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.alt-row img { width: 100%; max-width: 15rem; height: auto; border-radius: var(--radius); }
.alt-items { list-style: none; margin: 0; padding: 0; }
.alt-items li { margin-bottom: 0.4rem; }
.alt-row .field { margin: 0.5rem 0 0; }
.seo-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.seo-row p { margin: 0 0 0.4rem; }
.seo-text-start { font-size: 0.9rem; max-width: 50rem; }
.seo-row textarea { width: 100%; max-width: 50rem; font: inherit; }
@media (min-width: 40rem) {
    .alt-row { grid-template-columns: 15rem minmax(0, 1fr); }
}
.has-error input, .has-error select, .has-error textarea { border-color: #8a1c13; }
.editor textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; line-height: 1.5; }
.preview-label { font-weight: 600; margin: 0.9rem 0 0.25rem; }
.preview { border: 1px dashed var(--line); border-radius: var(--radius); padding: 0 1rem; max-height: 40rem; overflow: auto; }
.row-table { border-collapse: collapse; width: 100%; max-width: 40rem; }
.row-table th { text-align: left; font-size: 0.9rem; padding: 0 0.5rem 0.25rem 0; }
.row-table td { padding: 0 0.5rem 0.4rem 0; }
.row-table input, .row-table select { width: 100%; min-width: 0; }
.picker { max-height: 20rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.75rem; columns: 16rem; column-gap: 1.5rem; }
.picker-short { max-height: none; }
.admin-form .picker label { font-weight: 400; margin: 0 0 0.2rem; break-inside: avoid; }
.picker label.depth-1 { padding-left: 1.5rem; }
.picker label[hidden] { display: none; }
.picker-heading { font-weight: 600; margin: 1rem 0 0.4rem; }
.admin-thumb { display: block; max-width: 16rem; height: auto; border-radius: var(--radius); margin: 0.75rem 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0 3rem; }
/* "Jump to" links at the top of the long edit forms, to each section and the Save button */
.jump-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 1rem 0; padding: 0.6rem 0.9rem; border-radius: var(--radius); background: var(--panel); font-size: 0.95rem; }
.jump-links span { font-weight: 600; }
.jump-links ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; padding: 0; list-style: none; }
.admin-form fieldset[id], .form-actions { scroll-margin-top: 1rem; }
/* Featured image chosen from /uploads/: the address box, the picker button and a preview */
.featured-choice input { width: 100%; max-width: 40rem; }
.featured-choice .button { margin-top: 0.5rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button-danger { background: #a3241a; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button-danger:hover, .button-danger:focus { background: #7c1b13; }

@media (min-width: 64rem) {
    .editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
    .editor .preview { max-height: 34rem; }
}
.item-row { border-top: 1px solid var(--line); padding-top: 0.25rem; margin-top: 1rem; }
.admin-form .item-row textarea { width: 100%; max-width: 40rem; }
.admin-form .item-order input { width: 5rem; }
.item-pair { display: flex; flex-wrap: wrap; gap: 0 1rem; max-width: 40rem; }
.item-pair .field { flex: 1 1 12rem; margin-top: 0; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 1rem 0; }
.details dt { font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.request-message { background: var(--panel); border-radius: var(--radius); padding: 0.75rem 1rem; max-width: 40rem; overflow-wrap: anywhere; }
.form-actions .inline-form { display: inline; }
.date-rows { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 40rem; }
.admin-form .date-rows input { width: 11rem; }
.admin-form .checks { border: 0; padding: 0; margin: 0.75rem 0; }
.admin-form .checks legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.admin-form .checks label { display: inline-block; font-weight: 400; margin: 0 1rem 0.3rem 0; }
.admin-form .choice { border: 0; padding: 0; margin: 0.75rem 0; }
.admin-form .choice legend { font-weight: 600; padding: 0; }
.admin-form .choice label { display: inline-block; font-weight: 400; margin: 0.3rem 1.25rem 0 0; }
.when-part { border-left: 3px solid var(--line); padding-left: 1rem; margin: 1rem 0; }
.when-part[hidden], .checks[hidden] { display: none; }
.next-dates { background: #e7f4ee; border-radius: var(--radius); padding: 0.5rem 0.8rem; max-width: 40rem; }
.admin-list th.depth-1 { padding-left: 1.5rem; font-weight: 400; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.3rem; max-width: 40rem; }
.editor .toolbar { max-width: none; }
.tool { font: inherit; font-size: 0.85rem; min-width: 2.25rem; padding: 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); cursor: pointer; }
.tool:hover, .tool:focus-visible { border-color: var(--brand); color: var(--brand-dark); }
.tool-bold { font-weight: 700; }
.tool-italic { font-style: italic; }
.image-picker { width: min(56rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--background); color: var(--text); }
.image-picker::backdrop { background: rgba(0, 0, 0, 0.45); }
.image-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.image-picker-head h2 { margin: 0; font-size: 1.25rem; }
.image-picker label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.image-picker input[type="search"], .image-picker input[type="text"] { width: 100%; font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.image-picker .hint { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.image-picker-status { color: var(--muted); font-size: 0.9rem; }
.image-picker-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.75rem; }
.image-picker-grid button { width: 100%; padding: 0.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; font: inherit; font-size: 0.75rem; text-align: left; overflow-wrap: anywhere; }
.image-picker-grid button:hover, .image-picker-grid button:focus-visible { border-color: var(--brand); }
.image-picker-grid img { display: block; width: 100%; height: 7rem; object-fit: contain; background: var(--line); border-radius: 3px; margin-bottom: 0.25rem; }
.image-picker-chosen img { display: block; max-width: 100%; max-height: 16rem; width: auto; height: auto; margin: 1rem 0 0.5rem; }
.image-picker-path { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.admin-form .order-cell { width: 5.5rem; }
.small-link { font-size: 0.85rem; font-weight: 400; margin-left: 0.75rem; }
.menu-admin-items { border-top: 2px solid var(--line); margin-top: 2rem; padding-top: 0.5rem; }
.menu-admin-items h3 { margin: 1.5rem 0 0.5rem; }
@media (min-width: 48rem) {
    .menu-admin-items .admin-list { table-layout: fixed; }
    .menu-admin-items .admin-list th:first-child { width: 50%; }
}
.admin-form .field textarea:not([data-preview]) { width: 100%; max-width: 40rem; }
.contact-form { max-width: 40rem; margin-top: 1rem; }
.image-picker-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1.25rem; }
.image-picker-filters .field { margin: 0 0 0.75rem; }
.image-picker select { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.image-picker .field-check { margin: 0 0 0.9rem; }
.image-picker .field-check label { font-weight: 400; }
.image-picker-grid span { display: block; }
.image-picker-detail { color: var(--muted); font-size: 0.7rem; margin-top: 0.15rem; }
.dashboard-counts tfoot th, .dashboard-counts tfoot td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; }
.dashboard-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks-summary { margin-bottom: 1.5rem; }
.checks-group { background: var(--panel); padding-left: 0.5rem !important; }
.check summary { cursor: pointer; }
.check summary h3 { display: inline; font-size: 1.05rem; }
.check h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.check details { margin: 1rem 0; }
.check-detail { overflow-wrap: anywhere; }
/* A thick green tick after "None", and after a group heading when the whole group is clear */
.tick {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    background: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.char-count { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.char-count.near { color: #8a5a00; font-weight: 600; }
.char-count.over { color: #8a1c13; font-weight: 600; }
