:root {
  --ink: #142d26;
  --muted: #54655d;
  --green: #164b3a;
  --green-deep: #12362c;
  --surface: #fffdf7;
  --sand: #f2efe5;
  --line: #dddcd1;
  --peach: #f2cb9f;
  --shell: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body.b237 { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.55 "Inter", "Helvetica Neue", Arial, sans-serif; }
body.b237 img { max-width: 100%; height: auto; }
body.b237 a { color: inherit; text-underline-offset: .2em; }
body.b237 a:hover { color: var(--green); }
body.b237 :focus-visible { outline: 3px solid #a85b1d; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; }
h2 { letter-spacing: -.035em; font-size: clamp(1.65rem, 3.5vw, 2.45rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; }
svg { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 99999; transform: translateY(-150%); background: white; padding: .7rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-inner { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 850; font-size: 1.4rem; letter-spacing: -.06em; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-mark { display: grid; align-items: center; justify-items: center; width: 2rem; height: 2rem; font-size: .93rem; border-radius: .5rem; background: var(--green); color: #fff; }
.brand-number { color: #a04b23; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { width: auto; max-height: 54px; max-width: 158px; object-fit: contain; }
.desktop-nav, .head-actions { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.7rem); }
.desktop-nav a, .account-link { text-decoration: none; font-weight: 650; font-size: .91rem; white-space: nowrap; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.9rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .55rem; background: var(--green); color: white; font: inherit; font-weight: 720; text-decoration: none; cursor: pointer; }
body.b237 .button { color: #fff; }
body.b237 .button:hover { background: #0b392b; color: white; }
.button.small { min-height: 2.55rem; font-size: .88rem; }
body.b237 .button.light { background: var(--peach); color: var(--ink); }
body.b237 .button.light:hover { background: #f6d5b0; }
body.b237 .button.outline { color: var(--green); background: transparent; border-color: #8fa398; }
body.b237 .button.outline:hover { background: #e7efe9; color: var(--green); }
.mobile-menu, .mobile-dock { display: none; }

.hero { background: var(--sand); padding: clamp(1.5rem, 5vw, 4rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-copy { min-width: 0; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; color: #365c4b; font-size: .8rem; font-weight: 740; }
.hero-kicker span { width: .45rem; height: .45rem; border-radius: 100px; background: #9d4c24; flex: none; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.7rem, 5.55vw, 5.05rem); line-height: .98; letter-spacing: -.075em; font-weight: 840; }
.hero h1 em { display: block; color: #376851; font-style: normal; }
.hero-description { max-width: 29rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); margin-bottom: 1.35rem; }
.hero-image { display: block; height: clamp(330px, 34vw, 462px); border-radius: 1rem; overflow: hidden; background: #a18b6e; }
.hero-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 56% center; }
.search-box { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .95fr) auto; align-items: center; gap: .4rem; padding: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; box-shadow: 0 9px 25px #2c33220b; }
.search-slot { min-width: 0; display: flex; align-items: center; gap: .55rem; padding: .2rem .48rem; color: var(--green); }
.search-slot > span { display: block; min-width: 0; width: 100%; }
.search-slot > span > span { display: block; color: var(--ink); font-weight: 750; font-size: .73rem; }
.search-slot input, .search-slot select { width: 100%; margin: 0; padding: 0; border: none; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; min-height: 1.45rem; }
.city-slot { border-left: 1px solid var(--line); }
.hero-links { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .88rem; font-weight: 700; }
.hero-links a { display: inline-flex; align-items: center; gap: .3rem; }

.section { padding-block: clamp(1.65rem, 4.2vw, 3.6rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0; }
.inline-link { font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.inline-link svg { margin-left: .25rem; }
.trades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.trade-card { position: relative; min-height: 122px; display: flex; flex-direction: column; align-items: start; gap: .65rem; padding: 1rem .85rem; border: 1px solid var(--line); border-radius: .75rem; text-decoration: none; font-weight: 750; font-size: .94rem; }
.trade-card:hover { border-color: #759686; background: #f4f8f3; }
.trade-icon { display: grid; place-items: center; width: 2.48rem; height: 2.48rem; border-radius: .62rem; background: #dbe9de; color: #22563e; font-size: 1.15rem; }
.trade-electrical .trade-icon, .trade-construction .trade-icon { background: #f6e4cd; color: #8b4b21; }
.trade-mechanics .trade-icon, .trade-carpentry .trade-icon { background: #e6ebe5; color: #374a40; }
.trade-arrow { position: absolute; top: 1rem; right: .6rem; color: #66796e; font-size: .8rem; }
.city-grid { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-grid a { display: flex; align-items: center; gap: .5rem; min-height: 3.2rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; font-weight: 650; }
.city-grid a svg:last-child { margin-left: auto; }
.work-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: clamp(1.25rem, 4vw, 2.4rem); background: var(--green-deep); color: white; border-radius: .9rem; }
.work-callout p { margin: 0; max-width: 33rem; color: #e4ece7; }
.work-callout .button { flex: none; }
.site-foot { background: #eaece3; border-top: 1px solid var(--line); padding: 2.2rem 0 1rem; }
.foot-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1rem; }
.foot-content p { color: var(--muted); margin-top: .8rem; }
.foot-content nav { display: flex; flex-direction: column; gap: .45rem; align-items: start; font-size: .88rem; }
.foot-content nav a { text-decoration: none; }
.foot-bottom { color: var(--muted); padding-top: .8rem; margin-top: 1rem; border-top: 1px solid #d1d6c9; font-size: .82rem; }

.market-page, .prose-page { padding-block: clamp(1.5rem, 4vw, 3.5rem); min-height: 52vh; }
.market-page h1, .prose-page h1 { font-size: clamp(2rem, 4.2vw, 3.65rem); letter-spacing: -.055em; margin-bottom: .55rem; }
.market-heading { margin-bottom: 1.35rem; }
.market-heading p { color: var(--muted); }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.listing-card, .card, .notice { padding: 1.05rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.listing-card h2, .listing-card h3 { font-size: 1.25rem; margin-bottom: .45rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.listing-card h2 a, .listing-card h3 a { text-decoration: none; }
.listing-card p { color: var(--muted); margin-bottom: .45rem; }
.small-label { font-size: .83rem; font-weight: 700; color: var(--green); }
.market-form { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.market-form label { display: grid; gap: .32rem; font-weight: 680; font-size: .93rem; align-content: start; }
.market-form :is(input:not([type=checkbox]):not([type=hidden]), select, textarea) { width: 100%; min-height: 2.75rem; border: 1px solid #a2aea6; border-radius: .45rem; background: white; color: var(--ink); font: inherit; padding: .55rem .65rem; }
.market-form textarea { resize: vertical; }
.market-form .form-check { display: flex; align-items: center; }
.market-form button { justify-self: start; }
.filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); align-items: end; }
.editor-form { max-width: 735px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.notice { margin-bottom: 1rem; background: #eff5f0; }
.card { margin-bottom: 1rem; }
.account-actions, .market-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.market-actions form { margin: 0; }
.market-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 1rem; align-items: start; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; font-size: .93rem; }
.meta-list dt { font-weight: 710; }
.meta-list dd { margin: 0; overflow-wrap: anywhere; }
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.thread li { padding: .55rem .75rem; border-radius: .4rem; background: #eef1ea; overflow-wrap: anywhere; }
.thread .outgoing { background: #e4f1e8; }
.thread p { margin-bottom: 0; }
.navigation.pagination { margin-top: 1.1rem; }
article { overflow-wrap: anywhere; }
@media (max-width: 930px) {
  .trades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { gap: 1.4rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { cursor: pointer; list-style: none; padding: .45rem; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% - .2rem); z-index: 8; min-width: 12rem; padding: .55rem; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 8px 25px #13251c29; }
  .mobile-menu nav a { display: block; padding: .4rem .55rem; text-decoration: none; }
  .head-actions { margin-left: auto; }
  .mobile-menu { margin-left: 0; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .head-inner { min-height: 61px; }
  .head-actions .account-link { display: none; }
  .head-actions .button { font-size: .78rem; min-height: 2.1rem; }
  .hero-grid, .market-split { grid-template-columns: 1fr; }
  .hero-image { height: clamp(180px, 50vw, 320px); }
  .search-box { grid-template-columns: minmax(0, 1fr) auto; }
  .search-box .search-slot:first-of-type { grid-column: 1 / -1; padding-block: .35rem .6rem; border-bottom: 1px solid var(--line); }
  .search-box .city-slot { border-left: 0; }
  .hero h1 { font-size: clamp(2.45rem, 10.5vw, 4.25rem); }
  .hero-links { margin-top: .75rem; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-callout { align-items: flex-start; flex-direction: column; }
  .foot-content { grid-template-columns: 1fr 1fr; }
  .foot-content > div { grid-column: 1 / -1; }
  .site-foot { padding-bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock { display: grid; position: fixed; bottom: 0; z-index: 9; left: 0; right: 0; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: .2rem .15rem calc(.2rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock a { display: grid; gap: .15rem; align-content: center; justify-items: center; min-height: 2.65rem; text-align: center; text-decoration: none; font-size: .68rem; font-weight: 700; }
  .mobile-dock a svg { font-size: .98rem; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 1.4rem); }
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-card { padding-inline: .45rem; min-height: 105px; }
  .trade-arrow { display: none; }
  .section-head { align-items: start; }
  .listing-grid, .form-grid { grid-template-columns: 1fr; }
}
.verified-label { display: inline-flex; padding: .18rem .42rem; border-radius: .35rem; color: #1b5c40; background: #e2efe6; font-size: .79rem; font-weight: 740; }
@media (prefers-color-scheme: dark) {
  body.b237 { --ink: #eaf3eb; --muted: #b4c4bb; --green: #245a46; --green-deep: #12362c; --surface: #17251e; --sand: #1e2d25; --line: #42554a; }
  body.b237 a:hover { color: #acd9bc; }
  .site-foot, .card, .listing-card { background: #202f26; }
  .hero h1 em, .hero-kicker, .search-slot, .small-label { color: #a7d2b8; }
  .brand-number { color: #efb681; }
  .skip-link { background: #253b2e; }
  .foot-bottom { border-color: var(--line); }
  .notice, .thread li { background: #263e31; }
  .thread .outgoing { background: #294b39; }
  .trade-card:hover { background: #273b30; }
  .market-form :is(input:not([type=checkbox]):not([type=hidden]), select, textarea) { background: #17251e; color: var(--ink); }
  .search-slot select { color-scheme: dark; }
  body.b237 .button.outline { color: #bfe2cb; }
  body.b237 .button.outline:hover { background: #2a503a; color: #fff; }
}
[aria-labelledby="how-title"] .trade-icon { margin-bottom: .65rem; }
.all-categories { padding: .8rem 1rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
.all-categories summary { cursor: pointer; font-weight: 750; }
.all-categories ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .45rem .85rem; padding-left: 1.25rem; margin: .85rem 0; }
.all-categories h3 { margin: 1rem 0 .45rem; }
.legacy-listings { margin-block: 1.3rem; }
.legacy-listings > p { margin-block: .8rem; }
