/* HMC Medical Directory - front-end styles.
   Everything is scoped under .hmcd. Restyle by overriding the custom
   properties below from your theme or Customizer > Additional CSS, e.g.
   .hmcd { --hmcd-accent: #0b6e4f; --hmcd-sticky-top: 120px; } */

/* Tokens ---------------------------------------------------------------- */
.hmcd {
	--hmcd-accent: #1f6f78;       /* buttons, links, icons */
	--hmcd-accent-dark: #17555c;  /* hover / pressed, text on soft fills */
	--hmcd-accent-soft: #dcebec;  /* tags, soft buttons */
	--hmcd-deep: #12373d;         /* contact panel, headings */
	--hmcd-ink: #14292d;          /* body text */
	--hmcd-muted: #566d71;        /* secondary text */
	--hmcd-border: #d6e0e1;       /* card and section edges */
	--hmcd-field: #6f888c;        /* form field edges (3:1 on white) */
	--hmcd-bg-soft: #f1f6f6;      /* wells, hero, enquiry block */
	--hmcd-surface: #fff;
	--hmcd-focus: #c27c0e;        /* keyboard focus ring */
	--hmcd-error: #b3261e;
	--hmcd-success: #2e7d5b;
	--hmcd-radius-sm: 8px;
	--hmcd-radius: 14px;
	--hmcd-radius-lg: 22px;
	--hmcd-shadow-sm: 0 1px 2px rgba(18, 55, 61, .06), 0 2px 6px rgba(18, 55, 61, .05);
	--hmcd-shadow: 0 2px 4px rgba(18, 55, 61, .05), 0 16px 34px -14px rgba(18, 55, 61, .26);
	--hmcd-shadow-lg: 0 30px 70px -24px rgba(10, 30, 34, .5);
	--hmcd-sticky-top: 6.5rem;    /* clears a sticky theme header */
	box-sizing: border-box;
	color: var(--hmcd-ink);
	text-align: left;
}
.hmcd *, .hmcd *::before, .hmcd *::after { box-sizing: inherit; }
.hmcd a:focus-visible, .hmcd button:focus-visible, .hmcd input:focus-visible, .hmcd select:focus-visible, .hmcd textarea:focus-visible, .hmcd summary:focus-visible {
	outline: 3px solid var(--hmcd-focus); outline-offset: 2px;
}
.hmcd [tabindex="-1"]:focus { outline: none; }
.hmcd-i { flex: none; width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.2em; }
.hmcd .hmcd-mi { flex: none; width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.25em; }
.hmcd .screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.hmcd [hidden] { display: none !important; } /* Themes that set display on links/paragraphs would otherwise show hidden elements. */

/* Buttons ---------------------------------------------------------------- */
.hmcd .hmcd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 2.75rem; margin: 0; padding: .625rem 1.25rem;
	border: 0; border-radius: 999px; background: var(--hmcd-accent); color: #fff; box-shadow: none;
	font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: normal;
	text-transform: none; text-decoration: none; cursor: pointer;
}
.hmcd .hmcd-btn:hover, .hmcd .hmcd-btn:focus { background: var(--hmcd-accent-dark); color: #fff; }
.hmcd .hmcd-btn:active { transform: translateY(1px); }
.hmcd .hmcd-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.hmcd .hmcd-btn--ghost { background: var(--hmcd-surface); color: var(--hmcd-accent-dark); box-shadow: inset 0 0 0 1.5px var(--hmcd-accent); }
.hmcd .hmcd-btn--ghost:hover, .hmcd .hmcd-btn--ghost:focus { background: var(--hmcd-accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--hmcd-accent); }
.hmcd .hmcd-btn--soft { background: var(--hmcd-accent-soft); color: var(--hmcd-accent-dark); }
.hmcd .hmcd-btn--soft:hover, .hmcd .hmcd-btn--soft:focus { background: var(--hmcd-accent); color: #fff; }
.hmcd .hmcd-btn--light { background: #fff; color: var(--hmcd-deep); }
.hmcd .hmcd-btn--light:hover, .hmcd .hmcd-btn--light:focus { background: var(--hmcd-accent-soft); color: var(--hmcd-deep); }
.hmcd .hmcd-btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .925rem; }
.hmcd .hmcd-btn--link { min-height: 0; padding: 0; border-radius: 0; background: none; color: #b32d2e; font-weight: 400; text-decoration: underline; }
.hmcd .hmcd-btn--link:hover, .hmcd .hmcd-btn--link:focus { background: none; color: #8a2424; }
.hmcd-clear { font-size: .925rem; font-weight: 600; color: var(--hmcd-accent-dark); }

/* Shared pieces ---------------------------------------------------------- */

/* Practice logo tile */
.hmcd-logo { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: var(--hmcd-surface); border: 1px solid var(--hmcd-border); border-radius: 50%; overflow: hidden; }
.hmcd .hmcd-logo__img { display: block; max-width: 68%; max-height: 68%; width: auto; height: auto; object-fit: contain; margin: 0; border-radius: 0; }
.hmcd-logo--blank { background: var(--hmcd-accent-soft); color: var(--hmcd-accent-dark); font-weight: 700; font-size: 1.375rem; letter-spacing: .02em; }
.hmcd-logo--icon { background: var(--hmcd-accent-soft); color: var(--hmcd-accent-dark); }
.hmcd .hmcd-logo--icon .hmcd-mi { width: 50%; height: 50%; }


/* Specialty tags */
.hmcd ul.hmcd-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.hmcd .hmcd-tags li { display: inline-flex; align-items: center; gap: .3rem; margin: 0; padding: .1875rem .625rem; border-radius: 999px; background: var(--hmcd-accent-soft); color: var(--hmcd-accent-dark); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.hmcd .hmcd-tags .hmcd-tags__more { background: var(--hmcd-bg-soft); color: var(--hmcd-muted); }

/* Contact rows */
.hmcd ul.hmcd-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; font-size: .95rem; }
.hmcd .hmcd-contact li { display: flex; gap: .625rem; align-items: flex-start; margin: 0; padding: 0; line-height: 1.45; }
.hmcd-contact .hmcd-i { margin-top: .15em; color: var(--hmcd-accent); }
.hmcd-contact li > span { min-width: 0; overflow-wrap: anywhere; }
.hmcd-contact a { color: inherit; text-decoration: underline; text-decoration-color: rgba(31, 111, 120, .4); text-underline-offset: 3px; }
.hmcd-contact a:hover { color: var(--hmcd-accent-dark); text-decoration-color: currentColor; }
.hmcd-maplink { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 600; }

/* Medical aid chips (only shown when medical aids are switched on) */
.hmcd ul.hmcd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.hmcd .hmcd-chips li { margin: 0; padding: .2em .75em; border: 1px solid var(--hmcd-border); border-radius: 999px; background: var(--hmcd-surface); font-size: .82rem; line-height: 1.5; }
.hmcd .hmcd-chips .hmcd-chips__more { background: var(--hmcd-bg-soft); color: var(--hmcd-muted); }
.hmcd-schemes .hmcd-chips li { padding-left: 1.9em; position: relative; }
.hmcd-schemes .hmcd-chips li::before { content: ""; position: absolute; left: .75em; top: 50%; width: .5em; height: .5em; margin-top: -.25em; border-radius: 50%; background: var(--hmcd-accent); }
.hmcd-schemes__other { margin: .75rem 0 0; }
.hmcd-help { font-size: .88em; color: var(--hmcd-muted); }
.hmcd-schemes .hmcd-help { margin: .75rem 0 0; }

/* Hours */
.hmcd ul.hmcd-hours { list-style: none; margin: 0; padding: 0; }
.hmcd .hmcd-hours li { margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--hmcd-border); font-size: .95rem; }
.hmcd .hmcd-hours li:last-child { border-bottom: 0; }

/* Directory: search and filters ------------------------------------------ */
.hmcd-directory { scroll-margin-top: var(--hmcd-sticky-top); }
.hmcd-finder { max-width: 760px; margin: 0 auto 2rem; }
.hmcd-finder__bar {
	display: flex; align-items: center; gap: .5rem; padding: .375rem .375rem .375rem 1rem;
	background: var(--hmcd-surface); border: 1.5px solid var(--hmcd-field); border-radius: 999px; box-shadow: var(--hmcd-shadow-sm);
}
.hmcd-finder__bar:focus-within { border-color: var(--hmcd-accent); box-shadow: 0 0 0 4px rgba(31, 111, 120, .16); }
.hmcd-finder__bar > .hmcd-i { width: 1.25rem; height: 1.25rem; color: var(--hmcd-muted); }
.hmcd .hmcd-finder__input {
	flex: 1 1 auto; width: auto; min-width: 0; height: 2.75rem; margin: 0; padding: 0 .25rem;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; font: inherit; font-size: 1rem; color: var(--hmcd-ink);
}
.hmcd .hmcd-finder__input:focus, .hmcd .hmcd-finder__input:focus-visible { outline: none; box-shadow: none; border: 0; background: transparent; } /* The bar shows focus instead. */
.hmcd .hmcd-finder__input::placeholder { color: var(--hmcd-muted); opacity: 1; }
.hmcd .hmcd-finder__submit { flex: none; }
.hmcd-finder__extra { max-width: 20rem; margin: .75rem 0 0; }

.hmcd fieldset.hmcd-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; min-width: 0; margin: 1.125rem 0 0; padding: 0; border: 0; }
.hmcd .hmcd-pill { position: relative; display: inline-flex; margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--hmcd-ink); cursor: pointer; text-transform: none; letter-spacing: normal; }
.hmcd .hmcd-pill input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.hmcd-pill span { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .5rem 1rem; border: 1.5px solid var(--hmcd-border); border-radius: 999px; background: var(--hmcd-surface); white-space: nowrap; }
.hmcd-pill:hover span { border-color: var(--hmcd-accent); color: var(--hmcd-accent-dark); }
.hmcd-pill input:checked + span { background: var(--hmcd-accent); border-color: var(--hmcd-accent); color: #fff; }
.hmcd-pill input:focus-visible + span { outline: 3px solid var(--hmcd-focus); outline-offset: 2px; }

.hmcd-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--hmcd-border); }
.hmcd-status { margin: 0; font-size: .95rem; font-weight: 600; color: var(--hmcd-muted); }

.hmcd-results { position: relative; }
.hmcd-results::before { content: ""; position: absolute; top: -.6rem; left: 0; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--hmcd-accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: 0; pointer-events: none; }
.hmcd-directory.is-loading .hmcd-results::before { opacity: 1; animation: hmcd-loading 1.1s ease-in-out infinite; }
.hmcd-directory.is-loading .hmcd-grid, .hmcd-directory.is-loading .hmcd-pagination, .hmcd-directory.is-loading .hmcd-empty { opacity: .5; }
@keyframes hmcd-loading { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Directory: cards ------------------------------------------------------- */
.hmcd-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hmcd-card {
	position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem;
	background: var(--hmcd-surface); border: 1px solid var(--hmcd-border); border-radius: var(--hmcd-radius-lg); box-shadow: var(--hmcd-shadow-sm); color: var(--hmcd-ink);
}
.hmcd-card:hover { border-color: #b9cfd1; box-shadow: var(--hmcd-shadow); transform: translateY(-3px); }
.hmcd-card__head { display: flex; align-items: flex-start; gap: .875rem; }
.hmcd-card__logo { flex: 0 0 60px; width: 60px; }
.hmcd-card__logo .hmcd-logo--blank { font-size: 1.1rem; }
.hmcd-card__heading { min-width: 0; display: grid; gap: .5rem; }
.hmcd .hmcd-card__title { margin: 0; font-size: 1.125rem; line-height: 1.28; letter-spacing: -.005em; }
.hmcd .hmcd-card__link { color: inherit; text-decoration: none; }
.hmcd-card__link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: var(--hmcd-radius-lg); } /* Whole card opens the practice. */
.hmcd .hmcd-card__link:focus-visible { outline: none; }
.hmcd-card__link:focus-visible::after { outline: 3px solid var(--hmcd-focus); outline-offset: 3px; }
.hmcd-card:hover .hmcd-card__link { color: var(--hmcd-accent-dark); }
.hmcd-card a:not(.hmcd-card__link), .hmcd-card button { position: relative; z-index: 2; }
.hmcd-card__intro { margin: 0; font-size: .925rem; line-height: 1.5; color: var(--hmcd-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.hmcd-card__team { display: flex; align-items: center; gap: .625rem; margin: 0; font-size: .9rem; color: var(--hmcd-muted); }
.hmcd-card__team > .hmcd-i { color: var(--hmcd-accent); }
.hmcd .hmcd-card__meta { padding-top: 1rem; border-top: 1px solid var(--hmcd-border); font-size: .925rem; gap: .5rem; }
.hmcd-card__meta .hmcd-row--phone { font-weight: 600; }
.hmcd-card__meta .hmcd-row--clamp > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmcd-card__aids { margin: 0; }
.hmcd-card__aidslabel { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; color: var(--hmcd-muted); }
.hmcd-card__aidslabel .hmcd-i { color: var(--hmcd-accent); }
.hmcd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .25rem; }
.hmcd-card__more { display: inline-flex; align-items: center; gap: .375rem; font-size: .925rem; font-weight: 600; color: var(--hmcd-accent-dark); white-space: nowrap; }
.hmcd-card:hover .hmcd-card__more .hmcd-i { transform: translateX(3px); }

/* Directory: paging and empty state */
.hmcd-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; margin: 2rem 0 0; }
.hmcd .hmcd-page { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-width: 2.75rem; height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--hmcd-border); border-radius: 999px; background: var(--hmcd-surface); color: var(--hmcd-ink); font-weight: 600; line-height: 1; text-decoration: none; }
.hmcd a.hmcd-page:hover { border-color: var(--hmcd-accent); color: var(--hmcd-accent-dark); }
.hmcd .hmcd-page.is-current { background: var(--hmcd-accent); border-color: var(--hmcd-accent); color: #fff; }
.hmcd .hmcd-page--gap { min-width: 1.5rem; padding: 0; border-color: transparent; background: none; color: var(--hmcd-muted); }
.hmcd-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--hmcd-bg-soft); border-radius: var(--hmcd-radius-lg); }
.hmcd-empty > .hmcd-i { width: 3rem; height: 3rem; padding: .75rem; border-radius: 999px; background: var(--hmcd-surface); color: var(--hmcd-accent); }
.hmcd .hmcd-empty__title { margin: .25rem 0 0; font-size: 1.125rem; font-weight: 700; color: var(--hmcd-deep); }
.hmcd-empty p { margin: 0; max-width: 46ch; color: var(--hmcd-muted); }
.hmcd-empty .hmcd-btn { margin-top: .75rem; }

/* Practice page ---------------------------------------------------------- */
.hmcd-pv { max-width: 1160px; margin: 0 auto; }
.hmcd-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; font-size: .9rem; color: var(--hmcd-muted); }
.hmcd-crumbs > * + *::before { content: "/"; margin-right: .4rem; opacity: .5; }
.hmcd-crumbs a { color: var(--hmcd-accent-dark); text-decoration: none; }
.hmcd-crumbs a:hover { text-decoration: underline; }

.hmcd-hero {
	position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
	padding: 1.5rem; border-radius: var(--hmcd-radius-lg); background: var(--hmcd-bg-soft);
}
.hmcd-hero__logo { width: 88px; }
.hmcd-hero__logo .hmcd-logo { box-shadow: var(--hmcd-shadow-sm); }
.hmcd .hmcd-hero__title { margin: .625rem 0 0; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); line-height: 1.12; letter-spacing: -.015em; color: var(--hmcd-deep); }
.hmcd ul.hmcd-hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin: .75rem 0 0; padding: 0; color: var(--hmcd-muted); font-size: .95rem; }
.hmcd .hmcd-hero__meta li { display: flex; align-items: flex-start; gap: .4rem; margin: 0; line-height: 1.45; }
.hmcd-hero__meta .hmcd-i { margin-top: .15em; color: var(--hmcd-accent); }
.hmcd-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }

.hmcd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.hmcd-aside { min-width: 0; order: -1; }
.hmcd-block { margin: 0 0 2.75rem; scroll-margin-top: var(--hmcd-sticky-top); }
.hmcd-main > .hmcd-block:last-child { margin-bottom: 0; }
.hmcd .hmcd-block__title { margin: 0 0 1rem; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; color: var(--hmcd-deep); }
.hmcd-about .entry-content { max-width: 68ch; }
.hmcd-about .entry-content > :last-child { margin-bottom: 0; }
.hmcd-back { margin: 2.5rem 0 0; }
.hmcd-back a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--hmcd-accent-dark); text-decoration: none; }
.hmcd-back a:hover { text-decoration: underline; }

/* Practitioner names */
.hmcd ul.hmcd-names { list-style: none; display: grid; gap: .25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; }
.hmcd .hmcd-names li { position: relative; margin: 0; padding: .375rem 0 .375rem 1.125rem; font-size: 1rem; line-height: 1.4; list-style: none; }
.hmcd .hmcd-names li::before { content: ""; position: absolute; left: 0; top: .95em; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--hmcd-accent); }

/* Contact panel: the memorable bit of the practice page */
.hmcd-panel { padding: 1.5rem; border-radius: var(--hmcd-radius-lg); background: var(--hmcd-deep); color: #e4f0f1; }
.hmcd .hmcd-panel__title { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.3; color: #fff; }
.hmcd .hmcd-panel__call { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.125rem; padding: .875rem 1rem; border-radius: var(--hmcd-radius); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.hmcd .hmcd-panel__call:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hmcd-panel__call .hmcd-i { width: 1.2em; height: 1.2em; margin: 0; }
.hmcd-panel .hmcd-contact .hmcd-i { color: #8fd3da; }
.hmcd-panel .hmcd-contact a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.hmcd-panel .hmcd-contact a:hover { color: #fff; text-decoration-color: #fff; }
.hmcd-panel .hmcd-maplink { color: #8fd3da; }
.hmcd .hmcd-panel__sub { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0 .375rem; font-size: .95rem; color: #fff; }
.hmcd-panel__sub .hmcd-i { color: #8fd3da; }
.hmcd-panel .hmcd-hours li { border-bottom-color: rgba(255, 255, 255, .14); color: #e4f0f1; }

/* News */
.hmcd-news__item { padding: 1rem 0; border-top: 1px solid var(--hmcd-border); }
.hmcd-news__item time { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 600; color: var(--hmcd-muted); }
.hmcd .hmcd-news__item h3 { margin: 0 0 .5rem; font-size: 1.0625rem; }
.hmcd-news__item > :last-child { margin-bottom: 0; }

/* Enquiry form ----------------------------------------------------------- */
.hmcd-enquiry-block { padding: 1.5rem; border: 1px solid var(--hmcd-border); border-radius: var(--hmcd-radius-lg); background: var(--hmcd-bg-soft); }
.hmcd-enquiry-block__intro { margin: -.375rem 0 1.5rem; max-width: 60ch; color: var(--hmcd-muted); }
.hmcd-enquiry { container-type: inline-size; }
.hmcd-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.25rem; }
.hmcd-field { min-width: 0; }
.hmcd .hmcd-field label { display: block; margin: 0 0 .375rem; font-size: .925rem; font-weight: 600; line-height: 1.35; color: var(--hmcd-ink); text-transform: none; letter-spacing: normal; }
.hmcd-field__opt { font-weight: 400; color: var(--hmcd-muted); }
.hmcd .hmcd-field input[type="text"], .hmcd .hmcd-field input[type="email"], .hmcd .hmcd-field input[type="tel"], .hmcd .hmcd-field select, .hmcd .hmcd-field textarea {
	display: block; width: 100%; max-width: none; height: auto; min-height: 2.875rem; margin: 0; padding: .625rem .875rem;
	border: 1px solid var(--hmcd-field); border-radius: var(--hmcd-radius-sm); background-color: var(--hmcd-surface); box-shadow: none;
	font: inherit; font-size: 1rem; line-height: 1.4; color: var(--hmcd-ink);
}
.hmcd .hmcd-field select {
	-webkit-appearance: none; appearance: none; padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566d71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .875rem center; background-size: 1rem;
}
.hmcd .hmcd-field textarea { min-height: 8.5rem; resize: vertical; }
.hmcd .hmcd-field input:focus, .hmcd .hmcd-field select:focus, .hmcd .hmcd-field textarea:focus { border-color: var(--hmcd-accent); box-shadow: 0 0 0 3px rgba(31, 111, 120, .18); background-color: var(--hmcd-surface); color: var(--hmcd-ink); }
.hmcd .hmcd-field [aria-invalid="true"] { border-color: var(--hmcd-error); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.hmcd-field__error { margin: .375rem 0 0; font-size: .875rem; font-weight: 600; color: var(--hmcd-error); }
.hmcd .hmcd-check { display: flex; align-items: flex-start; gap: .625rem; margin: 0; font-size: .925rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.hmcd .hmcd-check input { flex: none; width: 1.125rem; height: 1.125rem; margin: .15em 0 0; accent-color: var(--hmcd-accent); }
.hmcd-check a { color: var(--hmcd-accent-dark); }
.hmcd-enquiry__note { display: flex; gap: .5rem; align-items: flex-start; margin: 1.25rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--hmcd-muted); }
.hmcd-enquiry__note .hmcd-i { margin-top: .1em; color: var(--hmcd-accent); }
.hmcd-enquiry__foot { margin-top: 1.25rem; }
.hmcd-form-msg { margin: 0 0 1.25rem; padding: .875rem 1rem; border-left: 4px solid var(--hmcd-error); border-radius: var(--hmcd-radius-sm); background: #fdeeee; color: #6e1813; font-weight: 600; }
.hmcd-sent { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem 1rem; text-align: center; }
.hmcd-sent__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--hmcd-success); color: #fff; }
.hmcd-sent__icon svg { width: 1.6rem; height: 1.6rem; }
.hmcd .hmcd-sent__title { margin: .5rem 0 0; font-size: 1.25rem; color: var(--hmcd-deep); }
.hmcd-sent p { margin: 0; max-width: 44ch; color: var(--hmcd-muted); }
.hmcd-sent .hmcd-btn { margin-top: 1rem; }
@media (min-width: 600px) {
	.hmcd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hmcd-field--full { grid-column: 1 / -1; }
}
@container (max-width: 459px) {
	.hmcd-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Enquiry dialog (directory) */
.hmcd .hmcd-modal {
	width: min(580px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
	margin: auto; padding: 0; border: 0; border-radius: var(--hmcd-radius-lg); background: var(--hmcd-surface); color: var(--hmcd-ink); box-shadow: var(--hmcd-shadow-lg); overflow: auto; overscroll-behavior: contain;
}
.hmcd-modal::backdrop { background: rgba(10, 30, 34, .55); }
.hmcd-modal[open] { animation: hmcd-rise .2s ease-out; }
.hmcd-modal__inner { padding: 1.5rem; }
.hmcd-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.hmcd .hmcd-modal__title { margin: 0; font-size: 1.375rem; line-height: 1.25; color: var(--hmcd-deep); }
.hmcd-modal__sub { margin: .25rem 0 0; font-weight: 600; color: var(--hmcd-accent-dark); }
.hmcd .hmcd-modal__close { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--hmcd-bg-soft); color: var(--hmcd-ink); box-shadow: none; cursor: pointer; }
.hmcd .hmcd-modal__close:hover { background: var(--hmcd-accent-soft); color: var(--hmcd-ink); }
.hmcd-modal__close .hmcd-i { width: 1.25rem; height: 1.25rem; }
html.hmcd-modal-open { overflow: hidden; }
@keyframes hmcd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
	/* Bottom sheet on phones. */
	.hmcd .hmcd-modal { width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: var(--hmcd-radius-lg) var(--hmcd-radius-lg) 0 0; }
	.hmcd-modal__inner { padding: 1.25rem 1rem 1.5rem; }
}

/* Larger screens --------------------------------------------------------- */
@media (min-width: 560px) {
	.hmcd-hero { grid-template-columns: 104px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.75rem; }
	.hmcd-hero__logo { width: auto; }
}
@media (min-width: 760px) {
	.hmcd-hero { grid-template-columns: 128px minmax(0, 1fr); gap: 2rem; padding: 2rem 2.25rem; }
	.hmcd-enquiry-block { padding: 2rem 2.25rem; }
	.hmcd-modal__inner { padding: 1.75rem 2rem 2rem; }
}
@media (min-width: 960px) {
	.hmcd-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; margin-top: 2.5rem; }
	.hmcd-layout.hmcd-layout--solo { grid-template-columns: minmax(0, 1fr); }
	.hmcd-aside { order: 0; }
}
@media (min-width: 960px) and (min-height: 760px) {
	.hmcd-aside { position: sticky; top: var(--hmcd-sticky-top); }
}
@media (max-width: 599px) {
	.hmcd-finder__bar { padding-left: .875rem; }
	.hmcd .hmcd-finder__submit { padding: .625rem 1rem; }
	/* One scrolling row of specialties instead of a tall block of wrapped pills. */
	.hmcd fieldset.hmcd-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 6px 2rem 6px 6px; /* room for the focus ring */ scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.hmcd fieldset.hmcd-pills::-webkit-scrollbar { display: none; }
	.hmcd-pill { flex: none; }
	.hmcd-actions .hmcd-btn { flex: 1 1 auto; }
}

/* Motion: small, and off when the visitor asks for less. */
@media (prefers-reduced-motion: no-preference) {
	.hmcd .hmcd-btn, .hmcd-pill span, .hmcd .hmcd-page, .hmcd-finder__bar { transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
	.hmcd-card { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out; }
	.hmcd-card__more .hmcd-i { transition: transform .2s ease-out; }
	.hmcd-grid, .hmcd-pagination, .hmcd-empty { transition: opacity .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
	.hmcd-card:hover { transform: none; }
	.hmcd-modal[open] { animation: none; }
	.hmcd-directory.is-loading .hmcd-results::before { animation: none; background-size: 100% 100%; }
}

/* Dashboard and registration forms -------------------------------------- */
.hmcd-picker__tools { margin: .25rem 0 0; }
.hmcd-picker__btn { background: none; border: 0; padding: 0; margin: 0 1rem 0 0; color: var(--hmcd-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; text-transform: none; }
.hmcd-picker__group { margin: .9rem 0 .35rem; font-weight: 600; }
.hmcd-form { max-width: 640px; }
.hmcd-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.hmcd-form input[type="text"], .hmcd-form input[type="email"], .hmcd-form input[type="tel"], .hmcd-form textarea { width: 100%; }
.hmcd-form fieldset { border: 1px solid var(--hmcd-border); border-radius: var(--hmcd-radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.hmcd-form legend { font-weight: 600; padding: 0 .35rem; }
.hmcd-form .hmcd-help { display: block; margin-top: .25rem; }
.hmcd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem .75rem; }
.hmcd-checks label, .hmcd-inline { font-weight: 400; display: flex; gap: .4rem; align-items: center; }
.hmcd-logo-preview img { max-width: 120px; height: auto; border-radius: 6px; border: 1px solid var(--hmcd-border); }
.hmcd-sep { margin: 2.5rem 0 1.5rem; }
.hmcd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.hmcd-notice { padding: .8rem 1rem; margin: 0 0 1.25rem; border-left: 4px solid; border-radius: 4px; color: #222; }
.hmcd-notice ul { margin: 0; padding-left: 1.1rem; }
.hmcd-notice--success { background: #edf7ee; border-color: #2e7d32; }
.hmcd-notice--error { background: #fdeeee; border-color: #b32d2e; }
.hmcd-notice--info { background: #eef5fb; border-color: #2271b1; }

/* Dashboard lists */
.hmcd-dashboard__bar { font-size: .92em; }
.hmcd-news-admin { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.hmcd-news-admin li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--hmcd-border); }
.hmcd-news-admin form { margin: 0; }
.hmcd-row-actions { display: flex; align-items: center; gap: 1rem; }
.hmcd-row-actions form { margin: 0; }

/* Flatsome and similar themes: their global list, label and form rules are broader than ours. */
.hmcd ul.hmcd-contact li, .hmcd ul.hmcd-tags li, .hmcd ul.hmcd-chips li, .hmcd ul.hmcd-hours li, .hmcd ul.hmcd-hero__meta li, .hmcd-news-admin li, .hmcd-checks label { list-style: none; margin-left: 0; }
.hmcd .hmcd-card h3 { margin-top: 0; }
.hmcd dl, .hmcd dt, .hmcd dd { text-transform: none; }
.hmcd-form input[type="file"] { width: auto; max-width: 100%; }

/* Print: keep the details, drop the controls. */
@media print {
	.hmcd-finder, .hmcd-toolbar .hmcd-clear, .hmcd-pagination, .hmcd-actions, .hmcd-enquiry-block, .hmcd-modal, .hmcd-back { display: none !important; }
	.hmcd-panel { background: none; color: inherit; border: 1px solid #999; }
	.hmcd-panel * { color: inherit !important; }
	.hmcd-card { box-shadow: none; break-inside: avoid; }
}
