/*
 * ExeterHub portal, 1.8.0: modern listing directory.
 * One sans (Onest), logo navy ink, yellow reserved for primary actions.
 * Radius system: controls are pills, media 16px, panels 20px, inputs 12px.
 */

:root {
  --emp-ink: #14293a;
  --emp-ink-soft: #3a4c5b;
  --emp-muted: #5a6975;
  --emp-placeholder: #6b7883;
  --emp-bg: #fafbfb;
  --emp-surface: #fff;
  --emp-sunken: #f0f2f4;
  --emp-line: #e3e7ea;
  --emp-line-strong: #cbd2d8;
  --emp-accent: #ffd43b;
  --emp-accent-hover: #f7c815;
  --emp-footer: #13283a;
  --emp-danger: #a11637;
  --emp-max: 1440px;
  --emp-header-h: 68px;
  --emp-sticky-top: var(--wp-admin--admin-bar--height, 0px);
  --emp-ease-out: cubic-bezier(.23, 1, .32, 1);
  --emp-shadow-float: 0 1px 2px rgba(20, 41, 58, .06), 0 14px 36px -10px rgba(20, 41, 58, .24);
}

/* Portal pages provide their own navigation and footer. */
html:has(.emp-app), body:has(.emp-app) { overflow-x: clip; }
html:has(.emp-app) { scrollbar-color: var(--emp-line-strong) transparent; }
body:has(.emp-app) { background: var(--emp-bg); }
body:has(.emp-app) > .wp-site-blocks > header.wp-block-template-part,
body:has(.emp-app) > .wp-site-blocks > footer.wp-block-template-part { display: none; }
body:has(.emp-app) > .wp-site-blocks > main,
body:has(.emp-app) > .wp-site-blocks > main > .emp-app { margin-block-start: 0 !important; padding-block-start: 0; }
body:has(.emp-app) main > .wp-block-group:has(.emp-app),
body:has(.emp-app) .entry-content:has(> .emp-app) { margin: 0 !important; max-width: none !important; padding: 0 !important; width: 100% !important; }
/* The block theme assigns its 645px reading width to shortcode output. */
body:has(.emp-app) .entry-content > .emp-app { max-width: var(--emp-max) !important; width: 100% !important; }
body:has(.emp-app) .entry-content > .emp-app--narrow { max-width: 1040px !important; }

.emp-app, .emp-app *, .emp-site-footer, .emp-site-footer * { box-sizing: border-box; }
.emp-app { -webkit-font-smoothing: antialiased; caret-color: var(--emp-ink); color: var(--emp-ink); font-family: Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; margin: 0 auto; max-width: var(--emp-max); padding: 0 32px; position: relative; }
.emp-app--narrow { max-width: 1040px; }
.emp-app ::selection, .emp-site-footer ::selection { background: #ffe27a; color: var(--emp-ink); }
.emp-app a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.emp-app svg { display: inline-block; flex: 0 0 auto; height: 18px; width: 18px; }
.emp-app h1, .emp-app h2, .emp-app h3, .emp-app p { margin-top: 0; }
.emp-app h1, .emp-app h2, .emp-app h3 { color: var(--emp-ink); font-family: inherit; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.emp-app :focus-visible { outline: 2px solid var(--emp-ink); outline-offset: 2px; }
.emp-app input[type="checkbox"] { accent-color: var(--emp-ink); }

/* Buttons */
.emp-button { align-items: center; background: var(--emp-accent); border: 0; border-radius: 999px; color: var(--emp-ink) !important; cursor: pointer; display: inline-flex; font: inherit; font-size: .94rem; font-weight: 600; gap: 8px; justify-content: center; line-height: 1; min-height: 44px; padding: 0 20px; text-decoration: none !important; transition: background-color 150ms ease, box-shadow 150ms ease, transform 120ms var(--emp-ease-out); white-space: nowrap; }
.emp-button:active { transform: scale(.97); }
.emp-button--small { font-size: .88rem; min-height: 38px; padding: 0 16px; }
.emp-button--small svg { height: 16px; width: 16px; }
.emp-button--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--emp-line-strong); }
.emp-button--dark { background: var(--emp-ink); color: #fff !important; }
@media (hover: hover) and (pointer: fine) {
  .emp-button:hover { background: var(--emp-accent-hover); }
  .emp-button--outline:hover { background: var(--emp-sunken); box-shadow: inset 0 0 0 1px var(--emp-ink); }
  .emp-button--dark:hover { background: #24425a; }
}

/* Header */
.emp-header { background: var(--emp-bg); border-bottom: 1px solid var(--emp-line); margin-inline: calc(50% - 50vw); position: sticky; top: var(--emp-sticky-top); z-index: 30; }
.emp-header__inner { align-items: center; display: grid; gap: 24px; grid-template-columns: 1fr auto 1fr; height: var(--emp-header-h); margin: 0 auto; max-width: var(--emp-max); padding: 0 32px; position: relative; }
.emp-brand { align-items: center; display: inline-flex; gap: 10px; justify-self: start; min-width: 0; }
.emp-brand img { display: block; height: 40px; width: auto; }
.emp-primary-nav { align-items: center; display: flex; gap: 2px; }
.emp-primary-nav > a, .emp-menu > summary { align-items: center; border-radius: 999px; color: var(--emp-ink-soft); cursor: pointer; display: inline-flex; font-size: .92rem; font-weight: 500; gap: 4px; list-style: none; padding: 8px 14px; transition: background-color 150ms ease, color 150ms ease; }
.emp-menu > summary::-webkit-details-marker { display: none; }
.emp-menu > summary svg { height: 16px; transition: transform 200ms var(--emp-ease-out); width: 16px; }
.emp-menu[open] > summary { background: var(--emp-sunken); color: var(--emp-ink); }
.emp-menu[open] > summary svg { transform: rotate(180deg); }
.emp-menu { position: relative; }
.emp-menu__panel { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 20px; box-shadow: var(--emp-shadow-float); left: 50%; opacity: 1; padding: 10px; position: absolute; top: calc(100% + 12px); transform: translateX(-50%) scale(1); transform-origin: top center; transition: opacity 180ms ease, transform 180ms var(--emp-ease-out); width: 560px; z-index: 40; }
@starting-style { .emp-menu[open] .emp-menu__panel { opacity: 0; transform: translateX(-50%) scale(.97); } }
.emp-category-list__all { align-items: center; border-bottom: 1px solid var(--emp-line); display: flex; font-size: .92rem; font-weight: 600; justify-content: space-between; margin-bottom: 6px; padding: 10px 12px 14px; }
.emp-category-list { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; }
.emp-category-list a { align-items: center; border-radius: 10px; color: var(--emp-ink-soft); display: flex; font-size: .9rem; gap: 12px; justify-content: space-between; padding: 8px 12px; }
.emp-category-list small { color: var(--emp-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.emp-header__actions { align-items: center; display: flex; gap: 6px; justify-self: end; }
.emp-link { align-items: center; border-radius: 999px; color: var(--emp-ink-soft); display: inline-flex; font-size: .92rem; font-weight: 500; gap: 6px; padding: 8px 12px; transition: background-color 150ms ease, color 150ms ease; }
.emp-mobile-menu { display: none; }
@media (hover: hover) and (pointer: fine) {
  .emp-primary-nav > a:hover, .emp-menu > summary:hover, .emp-link:hover { background: var(--emp-sunken); color: var(--emp-ink); }
  .emp-category-list a:hover, .emp-category-list__all:hover { background: var(--emp-sunken); color: var(--emp-ink); }
  .emp-category-list__all:hover { border-radius: 10px; }
}

/* Hero band with overlapping search */
.emp-hero { margin-top: 20px; position: relative; }
.emp-hero__band { background: linear-gradient(90deg, rgba(11, 28, 41, .84) 0%, rgba(11, 28, 41, .6) 42%, rgba(11, 28, 41, .08) 78%), var(--emp-hero-image) center 42% / cover no-repeat, var(--emp-ink); border-radius: 24px; color: #fff; display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: 48px 56px; }
.emp-hero__band h1 span { display: block; text-wrap: balance; }
.emp-hero__band h1 { color: var(--emp-accent); font-size: clamp(2.1rem, 3.8vw, 3.4rem); letter-spacing: -.035em; line-height: 1.04; margin: 0; max-width: 20ch; }
/* One field: listings are Exeter-only, so there is no separate "where" input. */
.emp-search { align-items: center; background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 999px; box-shadow: var(--emp-shadow-float); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; margin: 28px 0 0; max-width: 680px; padding: 8px; position: relative; transition: box-shadow 150ms ease; width: 100%; z-index: 2; }
.emp-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 212, 59, .55), var(--emp-shadow-float); }
.emp-search__field { cursor: text; display: flex; flex-direction: column; justify-content: center; min-height: 54px; min-width: 0; padding: 0 8px 0 24px; }
.emp-search__label { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.emp-search input { appearance: none; background: transparent; border: 0; box-shadow: none; color: var(--emp-ink); font: inherit; font-size: 1rem; margin: 0; min-height: 44px; outline: none; padding: 0; width: 100%; }
.emp-search input::placeholder { color: var(--emp-placeholder); opacity: 1; }
.emp-search input::-webkit-search-cancel-button { display: none; }
/* The pill draws the focus ring; the global outline on the input itself would double it. */
.emp-search input:focus-visible { outline: none; }
.emp-search__submit { min-height: 54px; padding: 0 26px; }

/* Category chips */
.emp-chips { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 0 6px; scrollbar-width: none; }
.emp-chips::-webkit-scrollbar { display: none; }
@supports (animation-timeline: scroll()) {
  .emp-chips { animation: emp-chips-fade linear both; animation-timeline: scroll(self inline); }
  @keyframes emp-chips-fade { from { mask-image: linear-gradient(90deg, #000 88%, transparent); } to { mask-image: none; } }
}
.emp-chip { align-items: center; background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 999px; color: var(--emp-ink-soft); display: inline-flex; flex: none; font-size: .9rem; font-weight: 500; gap: 8px; height: 40px; padding: 0 8px 0 16px; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; white-space: nowrap; }
.emp-chip span { background: var(--emp-sunken); border-radius: 999px; color: var(--emp-muted); font-size: .78rem; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1; padding: 5px 8px; }
.emp-chip.is-active { background: var(--emp-ink); border-color: var(--emp-ink); color: #fff; }
.emp-chip.is-active span { background: rgba(255, 255, 255, .16); color: #fff; }
.emp-chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .emp-chip:not(.is-active):hover { border-color: var(--emp-line-strong); color: var(--emp-ink); }
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .emp-chips { animation: none; flex-wrap: wrap; overflow: visible; }
}

/* Results */
.emp-results { padding-top: 24px; }
.emp-results--featured + .emp-results { padding-top: 56px; }
.emp-results__head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.emp-results__head h2 { font-size: 1.4rem; margin: 0; }
.emp-results__count { color: var(--emp-muted); font-size: .92rem; font-variant-numeric: tabular-nums; margin: 0; }
.emp-results__clear { color: var(--emp-ink-soft); font-size: .92rem; font-weight: 500; margin-left: auto; text-decoration: underline !important; }
.emp-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Listing card: image-led, no box */
.emp-card { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 41, 58, .04); display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; transition: box-shadow 200ms ease, transform 200ms var(--emp-ease-out); }
.emp-card__media { aspect-ratio: 1.28 / 1; background: var(--emp-sunken); isolation: isolate; overflow: hidden; position: relative; }
.emp-card__media img { display: block; height: 100%; object-fit: cover; transition: transform 300ms var(--emp-ease-out); width: 100%; }
.emp-card__media--empty { background: var(--emp-sunken) url('../images/exeter-hub-logo.png') center / 96px no-repeat; }
.emp-monogram { align-items: center; background: #fff1bf; border-radius: 50%; color: var(--emp-ink); display: inline-flex; flex: none; font-size: .68rem; font-weight: 600; height: 26px; justify-content: center; letter-spacing: .02em; width: 26px; }
.emp-card__body { display: flex; flex: 1; flex-direction: column; padding: 0 18px 16px; }
/* Category and the business logo share one row; the logo rises over the image edge like a profile badge. */
.emp-card__top { align-items: flex-end; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.emp-card__labels { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding-bottom: 4px; }
.emp-card__category { color: var(--emp-ink-soft) !important; font-size: .74rem; font-weight: 600; letter-spacing: .06em; position: relative; text-transform: uppercase; z-index: 3; }
.emp-tag { background: var(--emp-accent); border-radius: 999px; color: var(--emp-ink); font-size: .74rem; font-weight: 600; line-height: 1; padding: 4px 8px; }
.emp-card__logo { align-items: center; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--emp-line), 0 8px 20px -8px rgba(20, 41, 58, .3); display: flex; flex: none; height: 76px; justify-content: center; margin-top: -38px; overflow: hidden; position: relative; width: 76px; z-index: 1; }
.emp-card__logo img { display: block; height: 100%; object-fit: contain; width: 100%; }
.emp-card__logo .emp-monogram { font-size: 1.3rem; height: 100%; width: 100%; }
.emp-card__title { font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 14px; }
.emp-card__title a::after { content: ""; inset: 0; position: absolute; z-index: 2; }
.emp-card__title a:focus-visible { outline: none; }
.emp-card:has(.emp-card__title a:focus-visible) { outline: 2px solid var(--emp-ink); outline-offset: 2px; }
.emp-card__meta { align-items: center; border-top: 1px solid var(--emp-line); color: var(--emp-muted); display: flex; font-size: .82rem; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.emp-card__meta span { align-items: center; display: inline-flex; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-card__meta svg { height: 15px; width: 15px; }
@media (hover: hover) and (pointer: fine) {
  .emp-card:hover { box-shadow: 0 1px 2px rgba(20, 41, 58, .05), 0 18px 40px -18px rgba(20, 41, 58, .28); transform: translateY(-2px); }
  .emp-card:hover .emp-card__media img { transform: scale(1.03); }
  .emp-card__category:hover { color: var(--emp-ink) !important; text-decoration: underline; }
}

/* Empty, pagination, notices */
.emp-empty { align-items: center; border: 1px dashed var(--emp-line-strong); border-radius: 20px; display: flex; flex-direction: column; padding: 56px 24px; text-align: center; }
.emp-empty > span { align-items: center; background: var(--emp-sunken); border-radius: 50%; color: var(--emp-ink); display: flex; height: 48px; justify-content: center; margin-bottom: 16px; width: 48px; }
.emp-empty h3 { font-size: 1.2rem; margin-bottom: 6px; }
.emp-empty p { color: var(--emp-muted); margin-bottom: 20px; max-width: 42ch; }
.emp-pagination { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding-top: 48px; }
.emp-pagination .page-numbers { align-items: center; border-radius: 999px; color: var(--emp-ink-soft); display: inline-flex; font-size: .92rem; font-variant-numeric: tabular-nums; font-weight: 500; height: 40px; justify-content: center; min-width: 40px; padding: 0 12px; }
.emp-pagination .current { background: var(--emp-ink); color: #fff; }
.emp-notice { border-radius: 12px; font-size: .94rem; margin-top: 16px; padding: 12px 16px; }
.emp-notice--success { background: #e5f3ea; color: #1d5634; }
.emp-notice--error { background: #fcebee; color: #8d1e39; }

/* Community call to action */
.emp-community-cta { align-items: center; background: var(--emp-accent); border-radius: 24px; display: flex; gap: 32px; justify-content: space-between; margin-top: 80px; padding: 40px 44px; }
.emp-community-cta h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.025em; margin: 0 0 8px; }
.emp-community-cta p { color: var(--emp-ink-soft); margin: 0; max-width: 56ch; }

/* Footer: full-bleed, appended after the portal container */
.emp-site-footer { background: var(--emp-footer); color: rgba(255, 255, 255, .72); font-family: Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .88rem; left: 50%; line-height: 1.5; margin: 80px 0 0 !important; max-width: none !important; position: relative; transform: translateX(-50%); width: 100vw !important; }
.emp-site-footer__inner { align-items: center; display: grid; gap: 32px; grid-template-columns: auto 1fr auto; margin: 0 auto; max-width: var(--emp-max); padding: 44px 32px; }
.emp-site-footer__brand { align-items: center; display: flex; gap: 12px; }
.emp-site-footer__brand img { display: block; height: 46px; width: auto; }
.emp-site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; }
.emp-site-footer__links a { color: #fff; font-weight: 500; text-decoration: none; }
.emp-site-footer__meta { text-align: right; }
.emp-site-footer p { margin: 0; }
.emp-site-footer__meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.emp-site-footer a:hover, .emp-site-footer a:focus-visible { color: var(--emp-accent); }
.emp-site-footer__credit, .emp-site-footer__meta .emp-site-footer__credit a { color: var(--emp-accent); }
.emp-site-footer__meta .emp-site-footer__credit a:hover, .emp-site-footer__meta .emp-site-footer__credit a:focus-visible { color: #fff; }
.emp-site-footer a:focus-visible { outline: 2px solid var(--emp-accent); outline-offset: 2px; }

/* Forms */
.emp-form-heading { max-width: 680px; padding: 48px 0 28px; }
.emp-form-heading h1, .emp-dashboard-heading h1, .emp-gate h1, .emp-account h1, .emp-auth h1, .emp-auth h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.03em; margin: 0 0 10px; }
.emp-form-heading > p:last-child, .emp-dashboard-heading p, .emp-gate p, .emp-account p, .emp-auth > section > p { color: var(--emp-muted); font-size: 1.02rem; }
.emp-form { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 20px; }
.emp-form__section { border-bottom: 1px solid var(--emp-line); display: grid; gap: 32px; grid-template-columns: 200px 1fr; padding: 32px; }
.emp-form__section > div:first-child span { display: block; font-size: 1rem; font-weight: 600; }
.emp-form__section > div:first-child small { color: var(--emp-muted); font-size: .88rem; }
.emp-fields { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.emp-field { display: flex; flex-direction: column; gap: 6px; }
.emp-field--full { grid-column: 1 / -1; }
.emp-field > span { font-size: .88rem; font-weight: 600; }
.emp-field input, .emp-field select, .emp-field textarea { background: var(--emp-surface); border: 1px solid var(--emp-line-strong); border-radius: 12px; color: var(--emp-ink); font: inherit; font-size: .95rem; min-height: 46px; padding: 10px 14px; transition: border-color 150ms ease, box-shadow 150ms ease; width: 100%; }
.emp-field input::placeholder, .emp-field textarea::placeholder { color: var(--emp-placeholder); opacity: 1; }
.emp-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314293a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; background-size: 16px; cursor: pointer; padding-right: 40px; }
.emp-field textarea { line-height: 1.6; resize: vertical; }
.emp-field input[type="file"] { color: var(--emp-muted); font-size: .88rem; padding: 7px; }
.emp-field input[type="file"]::file-selector-button { background: var(--emp-sunken); border: 1px solid var(--emp-line-strong); border-radius: 999px; color: var(--emp-ink); cursor: pointer; font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 14px; }
.emp-field input:hover, .emp-field select:hover, .emp-field textarea:hover { border-color: #aab4bc; }
.emp-field input:focus, .emp-field select:focus, .emp-field textarea:focus { border-color: var(--emp-ink); box-shadow: 0 0 0 3px rgba(20, 41, 58, .12); outline: none; }
.emp-field small { color: var(--emp-muted); font-size: .82rem; line-height: 1.45; }
.emp-form__actions { align-items: center; display: flex; gap: 20px; justify-content: flex-end; padding: 20px 32px; }
.emp-form__actions > a { color: var(--emp-ink-soft); font-size: .92rem; text-decoration: underline !important; }
.emp-form--compact { background: transparent; border: 0; display: flex; flex-direction: column; gap: 16px; }
.emp-form--compact .emp-button { align-self: flex-start; }
.emp-check { align-items: flex-start; cursor: pointer; display: flex; font-size: .88rem; gap: 10px; line-height: 1.45; }
.emp-check input { margin-top: 3px; }

/* Gates, dashboard, account */
.emp-gate { align-items: center; border: 1px solid var(--emp-line); border-radius: 24px; display: flex; flex-direction: column; margin: 64px auto 0; max-width: 560px; padding: 56px 32px; text-align: center; }
.emp-gate > span { align-items: center; background: var(--emp-sunken); border-radius: 50%; display: flex; height: 52px; justify-content: center; margin-bottom: 18px; width: 52px; }
.emp-gate p { margin-bottom: 22px; max-width: 42ch; }
.emp-dashboard-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; padding: 48px 0 24px; }
.emp-dashboard-heading p:last-child { margin-bottom: 0; }
.emp-dashboard-list { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 20px; overflow: hidden; }
.emp-dashboard-list article { align-items: center; display: grid; gap: 16px; grid-template-columns: 76px 1fr auto; padding: 14px 16px; }
.emp-dashboard-list article + article { border-top: 1px solid var(--emp-line); }
.emp-dashboard-list__thumb { background: var(--emp-sunken) center / cover no-repeat; border-radius: 10px; height: 60px; width: 76px; }
.emp-dashboard-list h2 { font-size: 1rem; letter-spacing: -.01em; margin: 4px 0 2px; }
.emp-dashboard-list article p { color: var(--emp-muted); font-size: .86rem; margin: 0; }
.emp-dashboard-list .emp-empty { border: 0; }
.emp-status { border-radius: 999px; display: inline-block; font-size: .74rem; font-weight: 600; line-height: 1; padding: 4px 8px; }
.emp-status--publish { background: #e5f3ea; color: #1d5634; }
.emp-status--pending { background: #fff3cc; color: #6b4f00; }
.emp-status--draft { background: var(--emp-sunken); color: var(--emp-muted); }
.emp-dashboard-list__actions { align-items: center; display: flex; gap: 4px; }
.emp-dashboard-list__actions form { margin: 0; }
.emp-dashboard-list__actions a, .emp-dashboard-list__actions button { align-items: center; background: transparent; border: 0; border-radius: 999px; color: var(--emp-ink-soft); cursor: pointer; display: inline-flex; font: inherit; font-size: .88rem; font-weight: 500; gap: 6px; padding: 8px 12px; transition: background-color 150ms ease, color 150ms ease; }
.emp-dashboard-list__actions svg { height: 16px; width: 16px; }
.emp-auth { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; overflow: hidden; }
.emp-auth > section { padding: 40px; }
.emp-auth h1 { margin-bottom: 20px; }
.emp-auth > section + section { background: #f6f7f8; border-left: 1px solid var(--emp-line); }
.emp-auth__reset { color: var(--emp-ink-soft) !important; font-size: .88rem; text-decoration: underline !important; }
.emp-account { padding: 48px 0; }
.emp-account__intro { align-items: center; border-bottom: 1px solid var(--emp-line); display: flex; gap: 16px; margin-bottom: 32px; padding-bottom: 28px; }
.emp-account__intro > span { align-items: center; background: var(--emp-accent); border-radius: 50%; display: flex; flex: none; font-size: 1.4rem; font-weight: 600; height: 56px; justify-content: center; width: 56px; }
.emp-account__intro p { margin-bottom: 0; }
.emp-account .emp-form--compact { max-width: 640px; }
.emp-account .emp-form__actions { padding-left: 0; padding-right: 0; }

/* Single listing */
body.emp-single-page { background: var(--emp-bg); margin: 0; }
.emp-app--single { max-width: none; min-height: 100vh; }
.emp-single-page__main { margin: 0 auto; max-width: 1160px; padding: 28px 0 0; }
.emp-single-page__breadcrumb a { align-items: center; border-radius: 999px; color: var(--emp-ink-soft); display: inline-flex; font-size: .92rem; font-weight: 500; gap: 6px; margin-left: -10px; padding: 6px 10px; }
.emp-single-page__breadcrumb svg { height: 16px; width: 16px; }
.emp-single-page__heading { margin: 16px 0 28px; }
.emp-single-page__heading h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; line-height: 1.08; margin: 0; max-width: 26ch; }
.emp-single__meta { align-items: center; color: var(--emp-muted); display: flex; flex-wrap: wrap; font-size: .95rem; gap: 8px 16px; margin: 12px 0 0; }
.emp-single__meta > a { color: var(--emp-ink); font-weight: 500; text-decoration: underline !important; }
.emp-single__meta > span { align-items: center; display: inline-flex; gap: 4px; }
.emp-single__meta > .emp-tag { margin: 0; }
.emp-single__meta svg { height: 16px; width: 16px; }
.emp-single-page__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.emp-single-page__actions form { margin: 0; }
.emp-single-page__delete { background: transparent; box-shadow: inset 0 0 0 1px #d99aa5; color: var(--emp-danger) !important; }
.emp-single { align-items: start; display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 360px; }
.emp-single__media { background: var(--emp-sunken); border-radius: 20px; margin: 0 0 32px; overflow: hidden; }
.emp-single__media img { aspect-ratio: auto !important; display: block; height: auto !important; margin: 0 auto; max-height: 720px !important; max-width: 100% !important; object-fit: contain !important; width: auto !important; }
.emp-single__content { color: var(--emp-ink-soft); font-size: 1.06rem; line-height: 1.7; max-width: 68ch; }
.emp-single__content p { margin: 0 0 1em; }
.emp-single__content img { height: auto !important; max-width: 100%; object-fit: contain !important; }
.emp-single__content a { color: var(--emp-ink); text-decoration: underline; }
.emp-contact { background: var(--emp-surface); border: 1px solid var(--emp-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 41, 58, .05), 0 16px 36px -20px rgba(20, 41, 58, .22); padding: 24px; position: sticky; top: calc(var(--emp-sticky-top) + var(--emp-header-h) + 24px); }
.emp-contact__who { align-items: center; display: flex; gap: 14px; }
.emp-contact__who img { background: #fff; border: 1px solid var(--emp-line); border-radius: 50%; flex: none; height: 56px; object-fit: contain; width: 56px; }
.emp-contact__who .emp-monogram { font-size: 1.1rem; height: 56px; width: 56px; }
.emp-contact__who h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 0 0 2px; }
.emp-contact__who p { color: var(--emp-muted); font-size: .88rem; margin: 0; }
.emp-contact__actions { display: grid; gap: 8px; margin-top: 20px; }
.emp-contact__actions .emp-button { width: 100%; }
.emp-contact__details { margin: 20px 0 0; }
.emp-contact__details > div { border-top: 1px solid var(--emp-line); padding: 12px 0; }
.emp-contact__details > div:last-child { padding-bottom: 0; }
.emp-contact__details dt { color: var(--emp-muted); font-size: .8rem; font-weight: 500; }
.emp-contact__details dd { font-size: .94rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.emp-contact__details a { color: var(--emp-ink); text-decoration: underline; }
body.single-emp_listing .wp-block-post-featured-image img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; width: 100% !important; }

/* Tablet: primary nav folds into the menu */
@media (max-width: 1100px) {
  .emp-header__inner { grid-template-columns: 1fr auto auto; }
  .emp-primary-nav { display: none; }
  .emp-mobile-menu { display: block; }
  .emp-mobile-menu > summary { align-items: center; border: 1px solid var(--emp-line); border-radius: 999px; color: var(--emp-ink); cursor: pointer; display: flex; height: 42px; justify-content: center; list-style: none; width: 42px; }
  .emp-mobile-menu > summary::-webkit-details-marker { display: none; }
  .emp-mobile-menu[open] > summary { background: var(--emp-sunken); }
  .emp-mobile-menu__panel { background: var(--emp-surface); border-bottom: 1px solid var(--emp-line); box-shadow: 0 24px 40px -24px rgba(20, 41, 58, .3); left: 0; max-height: calc(100dvh - var(--emp-header-h) - var(--emp-sticky-top)); opacity: 1; overflow-y: auto; padding: 16px 32px 24px; position: absolute; right: 0; top: 100%; transition: opacity 180ms ease, transform 200ms var(--emp-ease-out); }
  @starting-style { .emp-mobile-menu[open] .emp-mobile-menu__panel { opacity: 0; transform: translateY(-6px); } }
  .emp-mobile-menu__panel > .emp-button { width: 100%; }
  .emp-mobile-menu__links { display: flex; flex-direction: column; margin-top: 8px; }
  .emp-mobile-menu__links a { border-bottom: 1px solid var(--emp-line); font-size: 1rem; font-weight: 500; padding: 14px 0; }
  .emp-mobile-menu__title { color: var(--emp-muted); font-size: .84rem; font-weight: 500; margin: 20px 0 6px; }
  .emp-mobile-menu__panel .emp-category-list__all { padding-left: 0; padding-right: 0; }
  .emp-mobile-menu__panel .emp-category-list a { padding-left: 0; padding-right: 0; }
  .emp-single { gap: 28px; grid-template-columns: 1fr; }
  /* Contact moves directly under the image so the action is reachable without reading the full description. */
  .emp-single__main { display: contents; }
  .emp-single__media { margin: 0; order: 1; }
  .emp-contact { order: 2; position: static; }
  .emp-single__content { order: 3; }
}

/* Phone */
@media (max-width: 760px) {
  body:has(.emp-app) > .wp-site-blocks,
  body:has(.emp-app) > .wp-site-blocks > main,
  body:has(.emp-app) main > .wp-block-group:has(.emp-app),
  body:has(.emp-app) .entry-content:has(> .emp-app) { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; padding: 0 !important; width: 100% !important; }
  .emp-app { --emp-header-h: 60px; padding: 0 16px; }
  .emp-header__inner { gap: 10px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 16px; }
  .emp-header__actions { display: none; }
  .emp-brand img { height: 34px; }
  .emp-mobile-menu__panel { padding: 12px 16px 24px; }
  .emp-category-list { grid-template-columns: 1fr; }
  .emp-hero { margin-top: 12px; }
  .emp-hero__band { background: linear-gradient(180deg, rgba(11, 28, 41, .3) 0%, rgba(11, 28, 41, .55) 45%, rgba(11, 28, 41, .9) 100%), var(--emp-hero-image-mobile) center 30% / cover no-repeat, var(--emp-ink); border-radius: 20px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 28px 16px 16px; }
  .emp-hero__band h1 { font-size: clamp(2.3rem, 11vw, 3rem); letter-spacing: -.04em; line-height: 1.02; max-width: none; padding: 0 6px; }
  /* Phones: tighter pill with a round icon-only search button. */
  .emp-search { gap: 6px; margin: 20px 0 0; padding: 6px; }
  .emp-search__field { min-height: 48px; padding: 0 4px 0 18px; }
  .emp-search__submit { border-radius: 50%; min-height: 48px; padding: 0; width: 48px; }
  .emp-search__submit svg { height: 20px; width: 20px; }
  .emp-search__submit span { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .emp-chips { margin: 24px -16px 0; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
  .emp-results { padding-top: 28px; }
  .emp-results__head h2 { font-size: 1.25rem; }
  .emp-grid { gap: 20px; grid-template-columns: 1fr; }
  .emp-community-cta { align-items: flex-start; border-radius: 20px; flex-direction: column; gap: 20px; margin-top: 56px; padding: 28px 22px; }
  .emp-site-footer { margin-top: 56px !important; }
  .emp-site-footer__inner { align-items: flex-start; gap: 24px; grid-template-columns: 1fr; padding: 36px 16px 40px; }
  .emp-site-footer__links { justify-content: flex-start; }
  .emp-site-footer__meta { text-align: left; }
  .emp-site-footer__rights { display: block; }
  .emp-form-heading { padding-top: 32px; }
  .emp-form__section { gap: 18px; grid-template-columns: 1fr; padding: 24px 18px; }
  .emp-fields { grid-template-columns: 1fr; }
  .emp-field--full { grid-column: auto; }
  .emp-form__actions { padding: 18px; }
  .emp-dashboard-heading { align-items: flex-start; flex-direction: column; padding-top: 32px; }
  .emp-dashboard-list article { align-items: start; grid-template-columns: 60px 1fr; }
  .emp-dashboard-list__thumb { height: 48px; width: 60px; }
  .emp-dashboard-list__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .emp-auth { grid-template-columns: 1fr; margin-top: 28px; }
  .emp-auth > section { padding: 28px 20px; }
  .emp-auth > section + section { border-left: 0; border-top: 1px solid var(--emp-line); }
  .emp-gate { margin-top: 32px; padding: 40px 20px; }
  .emp-single-page__main { padding-top: 16px; }
  .emp-single__media { border-radius: 16px; margin-bottom: 24px; }
  .emp-contact { padding: 20px; }
}

@media (hover: hover) and (pointer: fine) {
  .emp-pagination a.page-numbers:hover { background: var(--emp-sunken); color: var(--emp-ink); }
  .emp-single-page__breadcrumb a:hover { background: var(--emp-sunken); color: var(--emp-ink); }
  .emp-dashboard-list__actions a:hover { background: var(--emp-sunken); color: var(--emp-ink); }
  .emp-dashboard-list__actions button:hover { background: #fcebee; color: var(--emp-danger); }
  .emp-single-page__delete:hover { background: #fcebee !important; }
}

@media (prefers-reduced-motion: reduce) {
  .emp-app *, .emp-app *::before, .emp-app *::after { transition-duration: 1ms !important; }
  .emp-card:hover .emp-card__media img, .emp-card:hover, .emp-button:active, .emp-chip:active { transform: none; }
}
