/* pemaHire theme — loaded after every other stylesheet. Appearance only.
   Plain white surfaces, the platform's own system font, one brand colour
   kept for primary actions, and type sized for reading rather than display. */

:root {
  --ink: #222222;
  --ink-soft: #3f3f3f;
  --muted: #6a6a6a;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --surface: #ffffff;
  --canvas: #f7f7f7;
  --green: #0b6b52;
  --green-dark: #085641;
  --green-deep: #06402f;
  --mint: #eef6f2;
  --mint-bright: #dcece4;
  --danger: #c13515;
  --danger-pale: #fdf1ee;
  --warning: #8a5a00;
  --warning-pale: #fff8e6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: none;
  --shadow: 0 6px 20px rgba(0, 0, 0, .08);
  --ring: 0 0 0 3px rgba(11, 107, 82, .2);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------ base */
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: normal;
}
body::before { display: none; }
::selection { background: #d6ebe2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3 { color: var(--ink); font-family: var(--font); text-wrap: balance; }
h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.page-heading h1, .record-head h1, .detail-copy h1, .auth-intro h1, .payment-intro h1, .success-shell h1 { font-size: 30px; }
p { margin: 0 0 14px; }
small { font-size: 13px; }

/* Context labels above headings: quiet, sentence case. */
.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow::before { display: none; }

.container { margin: 32px auto 64px; }

/* ------------------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.header-inner { min-height: 64px; }

.brand { gap: 8px; color: var(--ink); font-family: var(--font); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--green);
  box-shadow: none;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.site-header nav { gap: 4px; }
.site-header nav > a, .site-header .link-button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav > a:hover, .site-header .link-button:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.site-header nav > a[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.site-header nav .nav-cta, .site-header nav .nav-cta:hover {
  margin-left: 8px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.site-header nav .nav-cta:hover { border-color: var(--ink); }

.demo-banner { border-bottom: 1px solid #f0e0b0; background: var(--warning-pale); color: #5c4300; font-size: 14px; }

/* ------------------------------------------------------------ cards & buttons */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: none; }

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green);
  box-shadow: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.button:hover { background: var(--green-dark); box-shadow: none; color: #fff; transform: none; }
.button:active { transform: scale(.98); }
.button.secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.button.danger { background: var(--danger); box-shadow: none; }
.button.danger:hover { background: #a02c11; }
.small-button { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.back-link { margin-bottom: 20px; color: var(--ink); font-size: 14px; font-weight: 600; }
.link-button { font-weight: 500; }

.badge, .status, .queue-badge, .table-status {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.status-chip { padding: 5px 12px; font-size: 13px; font-weight: 600; }

.message { border: 1px solid #cfe5da; border-radius: var(--radius-sm); background: var(--mint); color: var(--green-deep); font-weight: 500; }
.message.error { border-color: #f1cfc6; background: var(--danger-pale); color: #8a240c; }
.notice { border: 1px solid #f0e0b0; border-left: 1px solid #f0e0b0; border-radius: var(--radius-sm); background: var(--warning-pale); color: #5c4300; }
.deposit-note { border: 0; border-radius: var(--radius-sm); background: var(--canvas); color: var(--ink-soft); font-size: 14px; }

/* Bullet lists with a drawn check instead of a typed glyph. */
.clean-list { gap: 8px; color: var(--ink-soft); }
.clean-list li { position: relative; padding-left: 24px; }
.clean-list li::first-letter { color: inherit; }
.clean-list li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------ forms */
label { color: var(--ink); font-size: 14px; font-weight: 600; }
input, select, textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
input:hover, select:hover, textarea:hover { border-color: #a8a8a8; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
.helptext { font-size: 13px; }
.errorlist { padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }

/* ------------------------------------------------------------ home: search header */
.market-hero { margin: 8px 0 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.market-hero h1 { max-width: 760px; margin-bottom: 8px; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; }
.market-hero-lead { max-width: 640px; margin-bottom: 22px; color: var(--muted); font-size: 16px; }

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
  max-width: 980px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.search-panel .hero-search {
  max-width: none;
  margin: 0;
  padding: 6px 6px 6px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
  background: transparent;
  box-shadow: none;
}
.search-panel .hero-search input { min-height: 44px; padding-left: 44px; border: 0; background: transparent; box-shadow: none; }
.search-panel .search-icon { left: 18px; width: 15px; height: 15px; border-color: var(--muted); }
.search-panel .search-icon::after { background: var(--muted); }
.search-panel .nearby-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; max-width: none; margin: 0; padding: 6px; }
.search-panel .nearby-place { min-width: 0; flex: 1; gap: 6px; }
.search-panel .nearby-place input { min-height: 44px; border: 0; box-shadow: none; }
.search-panel .nearby-locate { min-height: 40px; padding: 8px 12px; border: 0; background: var(--canvas); font-size: 14px; white-space: nowrap; }
.search-panel .nearby-locate:hover { background: #ececec; }
.search-panel .nearby-place .button { min-height: 40px; padding: 8px 14px; }
.nearby-pin { width: 10px; height: 10px; border-width: 2px; }
.market-hero .nearby-status { margin-top: 10px; font-size: 14px; }
.market-hero .nearby-status:empty { display: none; }
.suggestions { border-radius: var(--radius); box-shadow: var(--shadow); }
.suggestion[aria-selected="true"], .suggestion:hover { background: var(--canvas); }

/* ------------------------------------------------------------ results */
.section-heading { align-items: center; margin: 28px 0 20px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.nearby-note { font-size: 14px; }
.scope-toggle { padding: 2px; border-color: var(--line-strong); background: #fff; }
.scope-option { padding: 6px 14px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.scope-option.active { background: var(--ink); color: #fff; }
.scope-option svg { display: block; }
.nearby-radius label { font-size: 14px; font-weight: 500; }
.nearby-radius select { min-height: 36px; font-size: 14px; }
.further-divider { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.item-card { display: flex; flex-direction: column; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transition: none; }
.item-card:hover { box-shadow: none; transform: none; }
.item-card.is-further { opacity: .9; }
.item-media { aspect-ratio: 1 / 1; height: auto; overflow: hidden; border-radius: var(--radius); background: var(--canvas); }
.item-image { transition: none; }
.item-card:hover .item-image { transform: none; }
.item-placeholder, .detail-placeholder { color: #c9c9c9; font-size: 56px; font-weight: 600; }
.item-card .badge.item-type { top: 10px; left: 10px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--ink); backdrop-filter: none; }
.item-card-body { display: grid; gap: 2px; padding: 10px 0 0; }
.item-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.item-card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 1; }
.item-card h3 a { color: var(--ink); text-decoration: none; }
.item-card h3 a::after { content: ""; position: absolute; inset: 0; }
.item-card { position: relative; }
.item-card .item-media { position: relative; z-index: 1; }
.item-sub { margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.item-card .item-description { min-height: 0; margin: 0; color: var(--muted); font-size: 14px; -webkit-line-clamp: 1; }
.item-price { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.item-price strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating-chip { flex: none; padding: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.rating-chip.new { background: none; color: var(--muted); font-weight: 500; }
.stars > span { color: var(--ink); }

.empty-state { padding: 48px 20px; border-style: solid; }
.empty-state h2 { font-size: 20px; }
.empty-icon { background: var(--canvas); color: var(--muted); font-size: 22px; }
.pager { gap: 12px; font-size: 14px; }
.fresh-results { background: var(--ink); font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ home: how it works */
.info-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  margin: 64px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.info-section-head h2 { font-size: 24px; }
.info-section-head p { color: var(--muted); }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.info-list dt { margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.info-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ------------------------------------------------------------ hero used on About and demo pages */
.home-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  align-items: start;
  gap: 48px;
  margin-bottom: 0;
  padding: 8px 0 40px;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
}
.home-hero::after { display: none; }
.home-hero .eyebrow { color: var(--muted); }
.home-hero h1 { max-width: 640px; margin-bottom: 14px; color: var(--ink); font-size: 36px; line-height: 1.15; letter-spacing: -.02em; }
.home-hero h1 span { display: inline; color: var(--ink); }
.about-hero .hero-copy h1 span { display: inline; }
.home-hero .hero-copy > p { max-width: 600px; color: var(--ink-soft); font-size: 16px; }
.hero-points { gap: 6px 18px; color: var(--muted); font-size: 14px; font-weight: 400; }
.hero-points span::before { content: none; }
.home-hero .hero-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: none;
  backdrop-filter: none;
}
.hero-card-label { margin-bottom: 14px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hero-card li { min-height: 0; padding: 0 0 14px 34px; }
.hero-card li:not(:last-child)::after { display: none; }
.hero-card li::before { width: 22px; height: 22px; top: 1px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.hero-card li strong { color: var(--ink); font-size: 15px; }
.hero-card li span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ listing detail */
.detail-media { height: min(480px, 46vw); margin-bottom: 24px; border-radius: var(--radius); background: var(--canvas); box-shadow: none; }
.detail-copy { padding-inline: 0; }
.detail-copy h1 { margin: 8px 0 4px; }
.detail-location { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.location-dot { border-color: var(--muted); }
.description-copy { padding-bottom: 8px; color: var(--ink-soft); font-size: 15px; }
.item-detail-main h2 { padding-top: 24px; border-top: 1px solid var(--line); font-size: 20px; }
.detail-facts { gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-facts > div { padding: 14px 16px; border: 0; border-radius: 0; background: none; }
.detail-facts > div + div { border-left: 1px solid var(--line); }
.detail-facts dt { font-size: 13px; font-weight: 500; }
.detail-facts dd { font-size: 15px; }
.hire-card { padding: 24px; border-color: var(--line-strong); box-shadow: var(--shadow); }
.hire-card .eyebrow { display: none; }
.hire-price { margin: 0 0 12px; }
.hire-price strong { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.hire-card > p { color: var(--ink-soft); font-size: 14px; }
.mobile-apply { background: #fff; box-shadow: 0 -1px 0 var(--line); }
.mobile-apply strong { font-size: 18px; }

/* ------------------------------------------------------------ auth, payment, success */
.auth-shell, .payment-shell { min-height: 0; margin-top: 24px; }
.auth-intro > p, .payment-intro > p { color: var(--muted); font-size: 16px; }
.auth-card, .payment-card { border-color: var(--line); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 22px; }
.auth-icon { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: var(--canvas); color: var(--ink); font-size: 15px; letter-spacing: 0; }
.vendor-icon { background: var(--green); color: #fff; }
.auth-divider { font-size: 13px; }
.success-shell { box-shadow: none; }
.success-mark { width: 56px; height: 56px; border: 0; background: var(--green); font-size: 24px; }
.next-step { border-radius: var(--radius-sm); background: var(--canvas); }
.next-step span { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.payment-total strong { font-size: 24px; letter-spacing: -.01em; }
.passkey-card::before { display: none; }
.passkey-list-icon { border-radius: 10px; background: var(--canvas); color: var(--ink); }

/* ------------------------------------------------------------ vendor dashboard */
.dashboard-heading { margin-bottom: 24px; }
.dashboard-heading p { font-size: 15px; }
.vendor-status { padding: 6px 12px; border-color: var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.vendor-status i { background: #1a8f5e; box-shadow: none; }
.stats { gap: 16px; margin-bottom: 24px; }
.stat-card { min-height: 0; padding: 18px 20px; }
.stat-card::after { display: none; }
.stat-card strong { margin: 6px 0 2px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.stat-note { font-size: 13px; }
.stat-note b { color: var(--ink); font-weight: 600; }
.vendor-stats .stat-card:hover { border-color: var(--line-strong); box-shadow: none; transform: none; }
.vendor-stats .attention { border-color: #f0e0b0; background: var(--warning-pale); }

.dashboard-panel h2 { font-size: 18px; }
.quick-actions { gap: 0; margin-top: 8px; }
.quick-actions > a { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.quick-actions > a:last-child { border-bottom: 0; }
.quick-actions > a:hover { background: none; }
.quick-actions > a:hover strong { text-decoration: underline; }
.quick-actions > a > span { width: 36px; height: 36px; border-radius: 8px; background: var(--canvas); color: var(--ink); }
.quick-actions svg { display: block; }
.quick-actions strong { font-size: 15px; font-weight: 600; }
.quick-actions small { font-size: 13px; }
.quick-actions > a > b { color: var(--muted); font-weight: 400; }

.privacy-panel { padding: 22px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink-soft); }
.privacy-panel h2 { color: var(--ink); font-size: 18px; }
.privacy-panel p { color: var(--muted); font-size: 14px; }
.privacy-panel .text-link { color: var(--ink); }
.privacy-mark { width: 36px; height: 36px; margin-bottom: 14px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }

.latest-card { border-color: var(--line); }

/* ------------------------------------------------------------ staff & tables */
.staff-nav { top: 84px; padding: 8px; border-color: var(--line); border-radius: var(--radius); }
.staff-nav .eyebrow { padding: 6px 10px 8px; }
.staff-nav a { padding: 7px 10px; border-radius: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.staff-nav a:hover { background: var(--canvas); color: var(--ink); }
.staff-nav a[aria-current="page"] { background: var(--canvas); color: var(--ink); font-weight: 600; }
.kpi span, .attention-tile span { font-size: 13px; font-weight: 500; }
.kpi strong { font-weight: 700; }
.dash-section-title { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dash-panel h2 { font-size: 17px; }

.table-card { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
th { padding: 11px 16px; background: #fafafa; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
td { padding: 13px 16px; font-size: 14px; }
tbody tr:hover { background: #fafafa; }
.table-actions a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tabs a { font-size: 14px; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.fee-setting-label, .receipt-title, .evidence-stage, .thread-author, .facts dt { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 500; }
.fee-steps > li::before, .clause-no { background: var(--canvas); color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }

/* ------------------------------------------------------------ About page sections */
.about-gap, .about-sides, .about-flow, .about-principles { margin: 56px 0; }
.about-gap h2, .about-sides h2, .about-flow h2, .about-principles h2 { font-size: 24px; }
.about-gap p { font-size: 15px; }
.about-sides h2 em { color: inherit; font-style: italic; }
.compare-card { border-radius: var(--radius); }
.compare-card.without { background: var(--canvas); }
.compare-card.with { border-color: var(--line-strong); background: #fff; box-shadow: none; }
.compare-card.without li::before { color: var(--muted); font-weight: 600; }
.compare-card.with li::before { font-weight: 600; }
.side-card { padding: 24px; border-top: 1px solid var(--line); }
.side-card h3 { font-size: 18px; }
.side-tag, .side-card.vendor .side-tag { padding: 3px 8px; border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.trust-list li::before, .side-card.vendor .trust-list li::before { background: var(--ink); }
.flow-steps li { padding: 18px; border-radius: var(--radius); }
.flow-steps li:not(:last-child)::after { color: var(--muted); font-weight: 400; }
.flow-num { width: 26px; height: 26px; margin-bottom: 10px; background: var(--ink); font-size: 13px; font-weight: 600; }
.flow-steps strong { font-size: 15px; }
.flow-note { border-left: 3px solid var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--canvas); }
.principle { padding: 20px; border-radius: var(--radius); }
.principle h3 { margin-top: 0; font-size: 16px; }
.about-close { margin: 56px 0 0; padding: 40px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); color: var(--ink); }
.about-close h2 { color: var(--ink); font-size: 26px; }
.about-close p { color: var(--muted); font-size: 16px; }
.about-close .button { background: var(--green); color: #fff; }
.about-close .button.secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); }

/* ------------------------------------------------------------ reviews & notifications */
.rep-bars b { background: linear-gradient(90deg, var(--ink) var(--pct), var(--line) var(--pct)); }
.star-options input:checked + span { border-color: var(--ink); background: var(--canvas); }
.live-bell { border-radius: 50%; }
.live-badge { background: var(--danger); }
.live-panel { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: 72px; padding: 0; border-top: 1px solid var(--line); background: var(--canvas); color: var(--ink-soft); }
.site-footer .footer-inner { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0 32px; }
.site-footer .footer-brand, .site-footer .footer-brand:hover { color: var(--ink); font-size: 17px; }
.site-footer .footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; font-size: 14px; }
.footer-about p { max-width: 320px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-col { gap: 8px; }
.footer-col h2 { margin: 0 0 4px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.footer-col a { color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { padding: 16px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 24px; }
  .home-hero .hero-card { max-width: 520px; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel .hero-search { padding: 6px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
  .info-section { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  h1, .page-heading h1, .record-head h1, .detail-copy h1, .auth-intro h1, .payment-intro h1, .success-shell h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .container { margin: 20px auto 48px; }
  .header-inner { min-height: 60px; }
  .nav-toggle { border-color: var(--line-strong); border-radius: 8px; }
  .site-header nav#primary-nav { border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .06); }
  .site-header nav#primary-nav > a, .site-header nav#primary-nav .link-button { border-radius: 8px; }
  .site-header nav#primary-nav > a[aria-current="page"] { background: var(--canvas); box-shadow: none; }
  .site-header nav#primary-nav .nav-cta { margin: 8px 0 0; }
  .market-hero h1, .home-hero h1 { font-size: 28px; }
  .market-hero-lead { font-size: 15px; }
  .search-panel .hero-search { display: flex; }
  .search-panel .hero-search .button { width: auto; grid-column: auto; }
  .search-panel .search-icon { top: 50%; }
  .search-panel .nearby-bar { flex-direction: row; }
  .search-panel .nearby-locate { justify-content: center; }
  .section-heading { align-items: flex-start; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .item-card .item-description { display: none; }
  .info-section { margin-top: 48px; padding-top: 32px; }
  .info-list { grid-template-columns: 1fr; gap: 18px; }
  .detail-media { height: 70vw; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats { gap: 10px; }
  .card { padding: 18px; border-radius: var(--radius); }
  .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .search-panel .nearby-bar { flex-wrap: wrap; }
  .search-panel .nearby-locate { flex: 1 1 100%; }
}

/* ------------------------------------------------------------ fixes */
.card.item-card { padding: 0; border: 0; border-radius: 0; }
.item-media { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.item-media img { mix-blend-mode: multiply; }
.side-card.vendor { border-top-color: var(--line); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; }

/* Staff area: use more of the screen and keep table rows on one line. */
.container:has(.staff-shell) { width: min(1360px, calc(100% - 40px)); }
.staff-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.staff-main .table-card { overflow-x: auto; }
.staff-main .table-card td { white-space: nowrap; }
.staff-main .table-card td:has(> p), .staff-main .table-card td:has(> div) { white-space: normal; min-width: 220px; }
.table-status, .table-card .badge, .table-card .status { white-space: nowrap; }
@media (max-width: 760px) { .container:has(.staff-shell) { width: min(100% - 28px, 1360px); } }
body:has(.staff-shell) .header-inner,
body:has(.staff-shell) .site-footer .footer-inner,
body:has(.staff-shell) .footer-bottom { width: min(1360px, calc(100% - 40px)); }
.card.item-card { margin-bottom: 0; }

/* ============================================================ logo */
.brand { display: inline-flex; gap: 0; line-height: 0; }
.logo { display: block; width: auto; height: 30px; overflow: visible; }
.logo-mark { fill: var(--green); transform-box: fill-box; transform-origin: 50% 33%; }
.logo-word { fill: #15171a; }
.site-footer .logo { height: 26px; }
/* The key turns into place on first visit, and gives a small turn on hover. */
.brand:hover .logo-mark { animation: logo-turn .7s var(--ease-out); }
.logo-intro .site-header .logo-mark { animation: logo-unlock .9s .15s var(--ease-out) both; }
.logo-intro .site-header .logo-word { animation: logo-word .6s .45s var(--ease-out) both; }
@keyframes logo-unlock { 0% { opacity: 0; transform: rotate(-90deg) scale(.85); } 55% { opacity: 1; transform: rotate(10deg); } 100% { transform: none; } }
@keyframes logo-turn { 0% { transform: none; } 40% { transform: rotate(-22deg); } 75% { transform: rotate(5deg); } 100% { transform: none; } }
@keyframes logo-word { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ============================================================ motion */
:root { --ease-out: cubic-bezier(.22, .8, .24, 1); }

.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }

.button { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.scope-option { transition: background-color .2s ease, color .2s ease; }
input, select, textarea { transition: border-color .15s ease, box-shadow .15s ease; }

/* Desktop nav: underline slides in from the centre. */
@media (min-width: 761px) {
  .site-header nav > a:not(.nav-cta) { position: relative; }
  .site-header nav > a:not(.nav-cta):hover { background: transparent; }
  .site-header nav > a[aria-current="page"] { box-shadow: none; border-radius: 999px; }
  .site-header nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -12px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform .3s var(--ease-out);
  }
  .site-header nav > a:not(.nav-cta):hover::after,
  .site-header nav > a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header nav > a:not(.nav-cta):hover::after { background: var(--line-strong); }
  .site-header nav > a[aria-current="page"]:hover::after { background: var(--ink); }
}

/* Search lifts slightly when in use. */
.search-panel { transition: box-shadow .25s ease, border-color .25s ease; }
.search-panel:focus-within { border-color: #9a9a9a; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }

/* Home header settles in on first paint. */
.market-hero > * { animation: rise .6s var(--ease-out) both; }
.market-hero > :nth-child(2) { animation-delay: .06s; }
.market-hero > :nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Listing photos: gentle zoom on hover, fade in when loaded. */
.item-image { transition: transform .7s var(--ease-out), opacity .45s ease; }
.item-card:hover .item-image { transform: scale(1.045); }
.item-image.is-loading, .detail-image.is-loading { opacity: 0; }
.detail-image { transition: opacity .45s ease; }
.item-media:has(.is-loading), .detail-media:has(.is-loading) {
  background: linear-gradient(100deg, #f2f2f2 30%, #e9e9e9 50%, #f2f2f2 70%) 0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Arrows nudge forward on hover. */
.quick-actions > a > b, .stat-note b { display: inline-block; transition: transform .2s var(--ease-out); }
.quick-actions > a:hover > b, .stat-card:hover .stat-note b { transform: translateX(3px); }

/* Scroll reveal (classes are added by site.js only when motion is allowed). */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease-out) var(--reveal-delay, 0ms), transform .65s var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .logo { height: 26px; }
}
