/* Small additions on top of BeerCSS (vendor/assets/beercss). */
.inherit-color { color: inherit; text-decoration: none; }
form.inline { display: inline; }
main.responsive { padding-top: 1rem; }
.sign-in { max-width: 28rem; width: 100%; }

/* Public search */
.vendor-card { overflow: hidden; }
picture { display: contents; }
.card-picture { float: right; margin: 0 0 0.5rem 1rem; border-radius: 0.5rem; max-width: 40%; height: auto; }
.service-picture { display: block; max-width: 100%; height: auto; border-radius: 0.5rem; margin-top: 0.5rem; }
.search-form fieldset { border: 0; margin: 0 0 0.5rem; padding: 0; }
.search-form legend { font-weight: 600; margin-bottom: 0.5rem; }
.search-actions { gap: 0.75rem; margin: 0.5rem 0 1.5rem; }
.vendor-card, .vendor-service { margin: 0 0 0.75rem; }
.vendor-card h3 a { text-decoration: underline; }
.pagination { justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.categories nav.wrap { flex-wrap: wrap; gap: 0.5rem; }
address { font-style: normal; margin-bottom: 0.75rem; }
main.responsive { padding-inline: 1rem; }
main h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.25rem; }
main h2 { font-size: 1.5rem; line-height: 1.3; margin-top: 1rem; }
main h3 { font-size: 1.2rem; line-height: 1.3; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.service-picture { max-width: 100%; height: auto; }
.row.wrap { flex-wrap: wrap; }
form.inline { display: inline; }
table.diff td.after { font-weight: 600; }
table.diff td { vertical-align: top; white-space: pre-wrap; }
blockquote.statement { white-space: pre-wrap; }
/* The listing form's Save bar: stays at the bottom of the screen while the long form scrolls (above the bottom nav on phones and
   tablets), and sits after the last field at the end, so it never covers it. Focused fields scroll clear of it. z-index 11: above
   Beer's field icons (the select arrows are z-index 10), which otherwise show through it. */
.save-bar { position: sticky; bottom: 0; z-index: 11; display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: .75rem 0;
            background: var(--surface); border-top: 1px solid var(--outline-variant); }
html:has(.save-bar) { scroll-padding-top: 5rem; scroll-padding-bottom: 6rem; }
@media (max-width: 992px) {   /* Beer's bottom nav (s and m), 72 px */
  .save-bar { bottom: calc(4.5rem + var(--bottom, 0px)); }   /* BeerCSS's bottom nav is this tall (72 px at 16 px text, 90 at 20, 108 at 24): the bar sits on it at any text size */
  html:has(.save-bar) { scroll-padding-bottom: 11rem; }
}
/* Phones (slice 4). The admin header's title stays on one line (the full name is in the form's first field). The bottom nav holds up to
   8 items: centred when they fit, otherwise it scrolls sideways by itself instead of widening the page. */
header.fill > nav { min-inline-size: 0; }   /* a grid item: without this it never shrinks below its contents */
header.fill > nav > .admin-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
nav.bottom { justify-content: safe center; overflow-x: auto; }
nav.bottom > a { flex: 0 0 auto; }
/* The listing form: checkbox labels wrap (Beer keeps them on one line, which pushed them past a phone's edge) and every checkbox,
   picker and button is at least 44 px tall to tap. */
.listing-form label.checkbox { white-space: normal; min-block-size: 2.75rem; }
.listing-form label.checkbox > span { min-inline-size: 0; }
.listing-form input.picture-input[type=file] { padding-block: .75rem; }   /* 44 px to tap, the button centred in it */
.listing-form button { min-block-size: 2.75rem; }
.listing-form [hidden] { display: none !important; }
.listing-form button[data-action$="#add"] { margin-block: .5rem 1rem; }   /* the rows "Add ..." reveals: Beer's .grid and article set display themselves */
/* The service picker's list (service_picker_controller.js): under its field, above what follows, rows 44 px to tap. */
.service-field { position: relative; }
.service-list { position: absolute; inset-inline: 0; inset-block-start: 100%; z-index: 12; margin: 0; padding: .25rem 0; list-style: none;
                max-block-size: 18rem; overflow-y: auto; background: var(--surface-container, var(--surface)); border: 1px solid var(--outline);
                border-radius: .5rem; box-shadow: 0 .25rem .75rem rgb(0 0 0 / .2); }
.service-list > li { min-block-size: 2.75rem; display: flex; align-items: center; padding: .25rem 1rem; cursor: pointer; overflow-wrap: anywhere; }
.service-list > li[aria-selected=true], .service-list > li:hover { background: var(--primary-container, var(--surface-variant)); }
.service-list > li[aria-disabled] { cursor: default; color: var(--on-surface-variant); }
/* A service's picture (slice 7): its own group with a heading; current, waiting and chosen pictures side by side, each captioned. */
.picture-field { border: 0; padding: 0; margin: 1rem 0 0; min-inline-size: 0; }
.picture-field > legend { font-weight: 600; padding: 0; margin-block-end: .25rem; }
.picture-row { gap: 1rem; align-items: flex-start; }
.picture-row > figure { margin: 0; max-inline-size: 100%; }
.picture-row > figure > img { display: block; max-inline-size: min(100%, 300px); max-block-size: 300px; inline-size: auto; block-size: auto; object-fit: contain; }   /* as the site shows it: at most 300 × 300 */
.picture-row > figure > figcaption { font-size: .75rem; margin-block-start: .25rem; overflow-wrap: anywhere; }
output.invalid { display: block; color: var(--error); font-size: .75rem; }   /* a field's problem; Beer styles it inside .field, this also outside (checkbox, picture) */
/* Admin Vendors list: name and facts, then Edit / View on site; the buttons wrap under the name on a phone, 44 px to tap. */
.vendor-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.vendor-row-main { flex: 1 1 16rem; min-inline-size: 0; overflow-wrap: anywhere; }
.vendor-row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vendor-row-actions .button, nav[aria-label=Pages] .button, .vendor-search .button, .bulk-remove button { min-block-size: 2.75rem; }
/* The Vendors search bar: one row on wide screens (field widest, then the selects, then Add vendor); Find is an icon button inside the
   field's right edge (44 px, the field's text kept clear of it). The space the old button row took is margin under the bar. */
.vendor-search { margin-block-end: 3.25rem; }
.vendor-search-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.vendor-search-row > .field { margin-block: 0 !important; }   /* BeerCSS gives a labelled select field a top margin: all four line up */
.vendor-search-q { flex: 3 1 18rem; position: relative; min-inline-size: 0; }   /* shrinks with the screen even at large text (review) */
.vendor-search-q > input { padding-inline-end: 3.25rem; inline-size: 100%; }
.vendor-search-find { position: absolute; inset-inline-end: .125rem; inset-block-start: 50%; transform: translateY(-50%); inline-size: 2.75rem !important;
  block-size: 2.75rem !important; min-inline-size: 2.75rem; z-index: 11; }   /* 44 px (BeerCSS makes a circle button 40) */
.vendor-search-select { flex: 1 1 11rem; min-inline-size: 0; }   /* a long filter name must not widen the select past its share */
.vendor-search-select > select { inline-size: 100%; text-overflow: ellipsis; }
.vendor-search-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 0 auto; align-items: center; min-block-size: 3.5rem; }
@media (max-width: 600px) {
  .vendor-search-q { flex-basis: 100%; }
  .vendor-search-select { flex: 1 1 9rem; min-inline-size: 0; }   /* side by side at normal text; each on its own line at large text (QA) */
  .vendor-search-actions { flex-basis: 100%; min-block-size: 0; }
}
.vendor-row-actions form { display: contents; }
.website-check-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem; }
.website-check-status p { flex: 1 1 20rem; }
.website-check-status button { min-block-size: 2.75rem; }
.spam-match { color: var(--error); }
.spam-mark-list { margin-block-start: .5rem; display: grid; gap: .25rem; }
.spam-mark-row { display: flex; align-items: center; gap: .5rem 1rem; }
.spam-mark-text { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }
.spam-mark-row form { flex: none; }
.spam-mark-row .button { min-block-size: 2.75rem; }
.vendor-row-tick { min-block-size: 2.75rem; min-inline-size: 2.75rem; justify-content: center; }
/* The removal confirm page: one name a line, each a 44 px target (BeerCSS .checkbox is nowrap: let long names wrap). */
.removal-names { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .25rem; }
.removal-name { min-block-size: 2.75rem; white-space: normal; align-items: center; }
.removal-actions button, .removal-actions .button { min-block-size: 2.75rem; }
.default-submit { position: absolute; left: -10000px; }   /* the listing form's Enter-key button while a removal waits for confirmation */
.picture-input { display: block; margin: .25rem 0 1rem; max-width: 100%; }
/* Beer hides every file input under an invisible box covering its containing block (a whole fieldset or service card), above the fields
   in it: clicking a note, a make or a checkbox there opened the file chooser. Every picture input is a visible picker in its own box. */
input.picture-input[type=file] { position: relative; inset: auto; opacity: 1; margin: .25rem 0 1rem; }
.service-node.level-2 { margin-left: 1.5rem; }
.service-node.level-3 { margin-left: 3rem; }
form.inline-form { display: inline-block; }

/* A wide table scrolls inside its own box instead of being cut off on a phone. */
.table-scroll { overflow-x: auto; }

/* Phones and tablets: "More" in the bottom nav (layouts/admin/_menu) opens a panel above it with the rest of the menu. A native
   <details>: no script, keyboard and screen readers know it. */
nav.bottom > .admin-more { position: static; flex: 0 0 auto; }
nav.bottom:has(> .admin-more[open]) { z-index: 20; overflow: visible; }   /* open: above the page and the Save bar (11); the panel must not be clipped by the nav's sideways scroll */
nav.bottom > .admin-more > summary { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  min-inline-size: 4.5rem; min-block-size: 3.5rem; cursor: pointer; font-size: .75rem; padding-inline: .5rem; border-radius: 2rem; }
nav.bottom > .admin-more > summary::-webkit-details-marker { display: none; }
nav.bottom > .admin-more > summary > i { padding: .25rem 1rem; border-radius: 2rem; }
nav.bottom > .admin-more:is(.active, [open]) > summary > i { background-color: var(--secondary-container); color: var(--on-secondary-container); }
nav.bottom > .admin-more[open] > summary > i { transform: rotate(180deg); }
/* Fixed to the screen 8 px above BeerCSS's bottom nav, whose height is calc(var(--bottom, 0) + 4.5rem) (72 px at a 16 px root; more
   with larger text, so the offset follows it in rem): the nav is sticky, and an absolute
   panel resolved its offset against the wrong box and covered the bar (QA, 2026-11-28). */
.admin-more-panel { position: fixed; inset-block-end: calc(4.5rem + var(--bottom, 0px) + .5rem); inset-inline-end: .5rem; display: grid; min-inline-size: 13rem; padding: .5rem;
  background: var(--surface-container); color: var(--on-surface); border: 1px solid var(--outline-variant); border-radius: 1rem; z-index: 12;
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / .18); }
nav.bottom .admin-more-panel > a { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .75rem; min-block-size: 2.75rem;
  padding-inline: .75rem; border-radius: 2rem; color: inherit; white-space: nowrap; inline-size: auto; }   /* one line each: BeerCSS stacks nav links (review) */
nav.bottom .admin-more-panel > a > :is(i, span) { margin: 0 !important; padding: 0; text-align: start; }   /* BeerCSS (a long :not() selector) centres nav icons with auto margins: icon, then label, from the left */
.admin-more-panel > a.active, .admin-more-panel > a:hover { background-color: var(--secondary-container); color: var(--on-secondary-container); }

/* Spam on a phone is one choice away on the Remove confirm page (its reason list), not a button beside Remove that a thumb can hit
   by mistake (Ron, 2026-11-28). Wider screens keep the row's Spam button. */
@media (max-width: 600px) { [data-testid=spam] { display: none; } }

/* Add a vendor: the duplicate warning's list, and "Publish now" beside the Save button. */
.duplicate-list { margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.duplicate-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-block-size: 2.75rem; }
.duplicate-list a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 600; }
.save-bar .publish-now { min-block-size: 2.75rem; }
/* The bulk buttons (Ron, 2026-11-28: "Put them in one line"): Hide (reversible) and Remove (red) as two pairs on one line, 2rem apart
   so a thumb between them doesn't land on the wrong kind; .5rem inside a pair. When the line is too short a pair moves down whole
   (each pair wraps inside itself only at very large text); never a divider line. */
.bulk-remove { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin-block-end: 1rem; }
.bulk-remove .bulk-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.bulk-remove .bulk-group button { margin: 0; }
@media (max-width: 600px) {   /* phones: a 2x2 grid, a pair per line; a long label wraps inside its button rather than splitting the pair */
  .bulk-remove { row-gap: 1.25rem; }
  .bulk-remove .bulk-group { display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 100%; }
  .bulk-remove .bulk-group button { white-space: normal; block-size: auto; min-inline-size: 0; padding-block: .5rem; line-height: 1.2; }
}
.publication { align-items: center; gap: .5rem 1rem; margin-block: .5rem; }

/* The admin dashboard: counts that link to where Ron acts. */
.dashboard .dash-big { font-size: 1.15rem; }
.dashboard .dash-big a, .dash-counts a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.dash-counts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* Phones (last in the file, so it wins over the More rules above): the bar's items share its width (BeerCSS gives each a fixed 3.5rem, which with large system text no longer fits, and More
   went off the edge). About 90 px each on a 360 px phone: room for "Dashboard" even at 150% text; an ellipsis only beyond that. */
@media (max-width: 600px) {
  nav.bottom { gap: 0; padding-inline: .25rem; }   /* the shared widths space the items; gaps only took room from the labels */
  nav.bottom > :is(a, .admin-more) { flex: 1 1 0; inline-size: auto; min-inline-size: 0; }
  nav.bottom > .admin-more > summary { min-inline-size: 0; }
  nav.bottom > a > span, nav.bottom > .admin-more > summary > span { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
