/* Directory theme. One layout, four palettes chosen in site.json. */
:root {
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --line-2: #d1d5db;
  --bg: #ffffff; --page: #f6f7f9; --soft: #f3f4f6;
  --accent: #0b5e66; --accent-dark: #073f45; --accent-ink: #ffffff; --accent-soft: #e4f1f1;
  --gold: #d97706; --gold-soft: #fff7e6; --star-off: #d6dae0;
  --radius: 14px; --radius-sm: 10px; --wrap: 1120px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px rgba(17, 24, 39, .06);
  --shadow-lg: 0 2px 4px rgba(17, 24, 39, .04), 0 12px 32px rgba(17, 24, 39, .10);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: var(--sans);
}
.palette-harbour { --accent: #0b5e66; --accent-dark: #073f45; --accent-soft: #e4f1f1; }
.palette-clay { --accent: #a3401f; --accent-dark: #6e2a14; --accent-soft: #f9ebe5; --gold: #b45309; }
.palette-forest { --accent: #2d6a3e; --accent-dark: #1b4527; --accent-soft: #e7f2e9; --gold: #b7791f; }
.palette-slate { --accent: #2b4a80; --accent-dark: #1a2f55; --accent-soft: #e8eef8; --head: Georgia, "Times New Roman", serif; }

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink-2); background: var(--page); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 1.6em 0 .55em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.85rem); font-weight: 800; letter-spacing: -.025em; margin-top: .5em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: .7em 0; }
img { max-width: 100%; height: auto; }
main > section { margin-top: 48px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 9; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.12rem/1 var(--head); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; flex: none; }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.top nav a:hover { background: var(--soft); color: var(--ink); }
.top nav a.nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.top nav a.nav-cta:hover { background: var(--accent-dark); }

.crumbs { font-size: .85rem; color: var(--muted); margin-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Home hero: a full-width band behind the first section */
.hero { position: relative; padding: 56px 0 44px; margin-bottom: 8px; color: #e8f0f1; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.hero h1 { color: #fff; max-width: 820px; margin-top: .25em; }
.hero p { max-width: 760px; color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .14); display: inline-block; padding: 5px 12px; border-radius: 999px; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; color: var(--accent); font-weight: 750; margin: 0; }
.lede { margin-top: -.2em; font-size: 1.05rem; }

.stats { display: flex; gap: 12px; list-style: none; padding: 0; margin: 26px 0 0; flex-wrap: wrap; }
.stats li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); padding: 10px 18px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.stats b { font-size: 1.55rem; display: block; color: #fff; line-height: 1.15; font-weight: 800; }

/* Search */
.search { display: flex; gap: 8px; margin: 26px 0 0; max-width: 640px; background: var(--bg); padding: 6px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.search input { flex: 1; min-width: 0; border: 0; box-shadow: none; font-size: 1.02rem; padding: 12px 14px; }
.search input:focus { box-shadow: none; }
main > .search, .search:not(.hero .search) { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Forms and buttons */
input, textarea, select { font: inherit; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); width: 100%; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-sm); padding: 11px 20px; font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, var(--line)); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.wide { display: flex; width: 100%; margin-bottom: 10px; padding: 13px 18px; }

/* Listing cards */
.list { display: grid; gap: 12px; margin: 18px 0; }
.list.compact { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card.no-rank { grid-template-columns: 1fr auto; }
.list.compact .card, #results .card { grid-template-columns: 1fr; }
.card-body { min-width: 0; }
.card.sponsored { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(180deg, var(--gold-soft), var(--bg) 70%); }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head a { color: var(--ink); text-decoration: none; }
.card-head a:hover { color: var(--accent); }
.card h3 a::after { content: ""; }
.rank { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-weight: 800; font-size: 1.05rem; align-self: start; }
.card.top .rank { background: var(--accent); color: var(--accent-ink); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 2px; font-size: .92rem; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.rating b { color: var(--ink); }
.rating.none { color: var(--muted); }
.stars { --pct: calc(var(--r) / 5 * 100%); font-size: 1rem; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #f59e0b var(--pct), var(--star-off) var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.where { color: var(--muted); }
.where::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: 6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid currentColor; vertical-align: -1px; opacity: .7; }
p.where { margin: 4px 0 0; }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--soft); color: var(--ink-2); border-radius: 999px; padding: 3px 11px; font-size: .8rem; font-weight: 550; }
.chips li.more { background: transparent; color: var(--muted); padding-left: 4px; }
.chips a { color: inherit; text-decoration: none; }
.chips a:hover { color: var(--accent); }
.card-actions { display: flex; flex-direction: column; gap: 8px; }
.card-actions .btn { min-width: 168px; }
.list.compact .card-actions { flex-direction: row; margin-top: 10px; }
.list.compact .card-actions .btn { min-width: 0; }
.badge { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 9px; }
.badge.paid { background: var(--gold); color: #fff; }
.badge.claimed { background: var(--accent-soft); color: var(--accent); }
.card[hidden] { display: none; }

.side-trade { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 20px 0 2px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.side-trade::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 4px; }
.chip-btn { font: inherit; font-size: .86rem; font-weight: 550; border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-count { font-size: .88rem; margin-left: 4px; }

/* Area and service tiles */
.area-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.area-grid a { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 44px 16px 18px; text-decoration: none; color: var(--ink); background: var(--bg); box-shadow: var(--shadow-sm); transition: all .2s; }
.area-grid a::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .2s, color .2s; }
.area-grid a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.area-grid a:hover::after { color: var(--accent); transform: translate(3px, -50%); }
.area-grid b { font-weight: 700; }
.area-grid span { display: block; font-size: .86rem; margin-top: 2px; }

/* One listing */
.listing-head { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.listing-head h1 { margin: 0 0 .25em; }
.listing-head .badge { margin-right: 6px; vertical-align: middle; }
.listing-head p { margin: .2em 0 .5em; }
.listing-grid { display: grid; grid-template-columns: 1fr 350px; gap: 28px; margin-top: 22px; align-items: start; }
.listing-grid > div:first-child { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 22px; box-shadow: var(--shadow-sm); }
.listing-grid > div:first-child h2 { font-size: 1.15rem; margin-top: 1.4em; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); box-shadow: var(--shadow); position: sticky; top: 86px; }
.facts dl { margin: 12px 0 0; }
.facts dt { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 16px; }
.facts dd { margin: 3px 0 0; font-size: .95rem; color: var(--ink); }
.hours { border-collapse: collapse; font-size: .9rem; width: 100%; }
.hours th { text-align: left; padding: 2px 12px 2px 0; font-weight: 600; color: var(--ink-2); width: 4.5em; }
.claim-box { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.photos img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 14px; }

/* Job request band */
.lead { position: relative; isolation: isolate; color: rgba(255, 255, 255, .88); padding: 40px 36px; margin: 56px 0; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: var(--shadow-lg); }
.lead h2 { margin-top: 0; color: #fff; }
.lead p { max-width: 680px; }
.lead .form { background: var(--bg); color: var(--ink-2); padding: 22px; border-radius: var(--radius); margin-top: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
main > .form, .tiers + p + .form, p + .form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.form label { font-size: .88rem; font-weight: 650; display: grid; gap: 6px; color: var(--ink); }
.form label.wide { grid-column: 1 / -1; }
.form label.tick { font-weight: 450; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.form label.tick input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form .btn { grid-column: 1 / -1; justify-self: start; padding: 13px 26px; }

/* Questions, notes, prices */
.faqs details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin: 10px 0; transition: box-shadow .2s; }
.faqs details[open] { box-shadow: var(--shadow); }
.faqs summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faqs details[open] summary::after { content: "−"; }
.faqs details > p { margin: 0 0 16px; }
.note { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 6px 24px 14px; }
.note h2 { font-size: 1.15rem; margin-top: 1em; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--bg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tier h2 { margin: 0 0 .4em; font-size: 1.08rem; }
.price { font-size: 1.9rem; font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -.02em; }
.price .muted { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.sponsored-box { border: 1px dashed var(--gold); border-radius: var(--radius); padding: 4px 14px 14px; margin: 18px 0; background: var(--gold-soft); }
.small-h { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 10px 0 8px; }

/* Plain text pages */
main > h1 + p, main > h1 ~ p { max-width: 760px; }

/* Footer */
.foot { margin-top: 72px; padding: 44px 0 40px; background: #0f172a; color: #cbd5e1; font-size: .92rem; }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot .brand { color: #fff; }
.foot-brand p { margin: 12px 0 0; color: #94a3b8; max-width: 320px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links b { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.foot a { color: #cbd5e1; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid #1e293b; padding-top: 20px; margin: 8px 0 0; color: #94a3b8; font-size: .84rem; }

@media (max-width: 860px) {
  .listing-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
  .top nav { gap: 0; width: 100%; flex-wrap: nowrap; justify-content: space-between; margin: 0 -8px; width: calc(100% + 16px); }
  .top nav a { padding: 6px 8px; font-size: .86rem; white-space: nowrap; }
  .top nav a.nav-cta { margin-left: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip-btn { white-space: nowrap; flex: none; }
  .hero { padding: 36px 0 30px; }
  .stats li { flex: 1 1 0; padding: 8px 12px; }
  .stats b { font-size: 1.3rem; }
  .card, .card.no-rank { grid-template-columns: auto 1fr; padding: 16px; }
  .card.no-rank { grid-template-columns: 1fr; }
  .rank { width: 34px; height: 34px; font-size: .95rem; border-radius: 10px; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; margin-top: 8px; }
  .card-actions .btn { flex: 1; min-width: 0; }
  .listing-head, .listing-grid > div:first-child { padding-left: 18px; padding-right: 18px; }
  .lead { padding: 28px 18px; border-radius: 16px; }
  .lead .form { padding: 16px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* An unsold paid spot, shown where it would sit */
.open-spot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 22px; border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, var(--line)); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 6px; background: var(--gold-soft); }
.open-tag { display: grid; gap: 6px; justify-items: start; font-weight: 700; color: var(--ink); font-size: .92rem; min-width: 130px; }
.open-body p { margin: 0; font-size: .92rem; }
.open-body .open-title { font-weight: 750; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 680px) { .open-spot { grid-template-columns: 1fr; } .open-spot .btn { width: 100%; } }
.open-fine { margin-top: 6px !important; font-size: .82rem !important; color: var(--muted); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.listing ol, main > ol { padding-left: 1.3em; }
