/* 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: 72px; }
  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 > h6.max { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
@media (max-width: 600px) { header.fill > nav > h6.max { font-size: 1.25rem; } }   /* Beer's s: more of the title fits */
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, .vendor-search .button, .bulk-remove button { min-block-size: 2.75rem; }
.vendor-row-actions form { display: contents; }
.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; }
