/* WordPress-only additions. Everything visual is in styles.css (the original stylesheet). */

/* Logged-in administrators see the WordPress toolbar: keep the fixed header below it. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* Menu items whose short phone label is not the end of the full label. */
.site-nav .show-xs { display: none; }
@media (max-width: 520px) { .site-nav .show-xs { display: inline; } }

/* Inquiry form: hide the form once sent (the original sets form.hidden, which .form{display:grid} overrode),
   and show the send-error message in the design's error colour. */
.form[hidden] { display: none; }
.form__error { flex-basis: 100%; margin: 0; font-size: var(--fs-small); color: #a3473b; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Small phones (narrower than ~365px): the service dropdown is as wide as its longest option, which pushed the
   Inquire page wider than the screen (also in the original). Fields and contact details now shrink to fit;
   nothing changes where they already fit. */
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
@media (max-width: 860px) {
	.contact, .form, .details { grid-template-columns: minmax(0, 1fr); }
	.details p { overflow-wrap: anywhere; }
}

/* The Collection on phones and small tablets (one column): the height limit for the pinned details panel,
   applied while the header is hidden on scroll-down, is meant for the two-column layout. In one column it let
   each home's photos cover its guest quote and View & book button (also in the original). */
@media (max-width: 860px) {
	body:has(.site-header.is-hidden) .chapter__info { max-height: none; }
}

/* Plain pages (privacy policy etc.): the design's page-intro + article text styles. */
.page-plain .prose > :first-child { margin-top: 0; }
