:root {
  --surface-stone:#f4f1eb;
  --surface-raised:#fff;
  --surface-muted:#f0f3f2;
  --surface-line:#d6ddda;
  --text-main:#1c2931;
  --text-secondary:#46545c;
  --accent:#943d20;
  --accent-hover:#763018;
  --accent-wash:#f8ede7;
  --page-gap:clamp(16px,4vw,64px);
  --section-gap:clamp(32px,5vw,76px);
  --component-gap:clamp(12px,1.7vw,24px);
  --radius:12px;
  --ink:var(--text-main);
  --muted:var(--text-secondary);
  --line:var(--surface-line);
  --focus:var(--accent);
}
.wrap { width:min(92rem,calc(100% - 2 * var(--page-gap))); }
.section { padding-block:var(--section-gap); }
.eyebrow,.yo-account .yo-account-head .eyebrow { color:var(--accent); }
.btn.primary { background:var(--accent); border-color:var(--accent); }
.btn.primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.btn.secondary:hover,.btn.ghost:hover { background:var(--surface-muted); }
.main-nav a { padding-inline:.8rem; border-radius:8px; }
.main-nav a[aria-current] { background:var(--accent-wash); color:var(--accent-hover); }
.topbar { background:var(--studio-night); }
.topbar .wrap { color:#e5e9e8; }
#footer { background:var(--studio-night); }
.footer-main button,.footer-main a:not(.brand) { display:flex; width:fit-content; align-items:center; min-height:44px; }

.hero { background:var(--surface-stone); color:var(--text-main); }
.hero .hero-grid {
  grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
  align-items:center;
  min-height:0;
  gap:clamp(20px,4.25vw,68px);
  padding-block:clamp(24px,5.5vw,84px) clamp(34px,5vw,76px);
}
.hero .hero-copy { padding:0; min-width:0; }
.hero .eyebrow { color:var(--accent-hover); }
.hero .eyebrow span { background:var(--accent); flex:none; }
.hero h1 { font-size:clamp(2.2rem,4.9vw,4.8rem); letter-spacing:-.065em; line-height:1.03; margin-block-end:1rem; text-wrap:balance; }
.hero h1 em { display:block; color:var(--accent); }
.hero-copy>p:not(.eyebrow) { color:var(--text-secondary); font-size:clamp(1rem,1.6vw,1.12rem); max-width:40ch; margin-block-end:1.4rem; }
.hero-actions .btn.primary { color:white; border-color:var(--accent); background:var(--accent); }
.hero-actions .btn.primary:hover { background:var(--accent-hover); }
.hero .hero-secondary { background:transparent; color:var(--text-main); border-color:var(--border-control); }
.hero .hero-secondary:hover { background:var(--surface-raised); }
.hero :focus-visible { outline-color:var(--focus); }
.hero .city-photo {
  min-height:0;
  aspect-ratio:1.31;
  border-radius:var(--radius);
  box-shadow:0 18px 44px rgb(28 41 49 / .14);
}
.hero .city-photo::after { background:none; }
.hero .city-photo img { object-position:center 56%; filter:saturate(.84); }
.search-stats { margin-top:-1.25rem; border-radius:var(--radius); box-shadow:0 8px 28px rgb(28 41 49 / .08); }
#hero-search { padding:clamp(12px,2.1vw,24px); }
.stat-strip { background:var(--surface-muted); }
.stat-strip a:hover { background:var(--surface-raised); }
.metric-icon,.square-icon { color:var(--accent-hover); background:var(--accent-wash); }
.yo-journey { margin-block-start:var(--section-gap); }

.section-title h2,.directory-heading h1,.article-body h1,.yo-account-head h1 { text-wrap:balance; }
.section-title { gap:.8rem var(--component-gap); }
.firm-section,.resources-section { background:var(--surface-muted); }
.list-card,.firm-card,.resource-card,.sidebar-card,.role-card,.yo-panel {
  border-color:var(--surface-line);
  background-color:var(--surface-raised);
}
:is(.list-card,.firm-card,.resource-card):focus-within { border-color:var(--border-control); }
:is(.list-card,.firm-card,.resource-card) h3 { overflow-wrap:anywhere; }
.list-card,.firm-card,.resource-card { display:flex; flex-direction:column; }
.list-card-footer,.firm-card .detail-link,.resource-card .detail-link { margin-block-start:auto; }
.list-card-footer a,.firm-card .detail-link,.resource-card .detail-link,.sidebar-card .detail-link {
  display:inline-flex; width:fit-content; align-items:center; min-height:44px;
}
.firm-record { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.firm-record span { overflow-wrap:break-word; }
.list-card-top .status { max-width:75%; white-space:normal; line-height:1.3; }
.role-card:nth-child(2) { background:var(--surface-raised); }
.role-card .btn { margin-block-start:.25rem; }
.directory-heading { padding-block-end:clamp(12px,2vw,24px); border-block-end:1px solid var(--surface-line); }
.directory-filter { background:var(--surface-raised); }
.faq-list summary,.city-list a { min-height:44px; align-content:center; }
.yo-account .yo-panel-nav a { min-width:0; line-height:1.35; }
.yo-account .yo-panel-nav a[aria-current] { background:var(--accent-wash); color:var(--accent-hover); }
.yo-account .yo-entry-head > *, .yo-dash-offer > *, .yo-account-head > *, .yo-kv dd { min-width:0; overflow-wrap:anywhere; }
.panel-navigation-toggle { display:none; }
#modal.yo-modal { max-height:calc(100dvh - 24px); }
.gsm-control { min-width:0; }
.yo-dash-stat strong,.yo-value,.yo-kv dd,.firm-record strong,.stat-copy strong { font-variant-numeric:tabular-nums; }
@media (max-width:850px) {
  .hero .hero-grid { grid-template-columns:minmax(0,1fr); gap:1.2rem; }
  .hero .city-photo { aspect-ratio:2/1; }
  .hero h1 { max-width:18ch; font-size:clamp(2.2rem,7.8vw,4.2rem); }
}
@media (max-width:760px) {
  .yo-account .yo-account-grid { grid-template-columns:minmax(0,1fr); }
  .yo-account .yo-side { gap:.45rem; }
  .panel-navigation-toggle { display:inline-flex; justify-content:flex-start; gap:.6rem; }
  .panel-navigation-toggle svg:last-child { margin-inline-start:auto; rotate:90deg; }
  .panel-navigation-toggle[aria-expanded="true"] svg:last-child { rotate:-90deg; }
  .yo-account .yo-panel-nav { display:none; }
  .yo-account .yo-panel-nav.is-open { display:grid; }
  .hero .city-photo { aspect-ratio:1.9; }
}
@media (max-width:480px) {
  .hero h1 { font-size:clamp(2.05rem,8.6vw,2.65rem); }
  .hero-actions .btn { min-width:0; white-space:normal; }
  .section-title { align-items:flex-start; flex-direction:column; }
  .stat-strip a { gap:.5rem; padding:.65rem .5rem; }
  .stat-strip .metric-icon { width:30px; height:30px; }
  .stat-strip .metric-icon svg { width:16px; height:16px; }
  .account-identity strong { max-width:100%; }
}
@media (max-height:470px) {
  #modal.yo-modal { max-height:calc(100dvh - 12px); }
  #modal .yo-modal-head,#modal .yo-modal-actions { position:static; }
}

.public-account-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
@media (max-width:600px) {
  .company-note .public-account-actions { grid-column:1/-1; }
}

.home-market .market-results { min-width:0; container-type:inline-size; }
.home-market .discovery-sidebar { padding-block-start:0; }
.firm-section .firm-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:1100px) {
  .firm-section .firm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .firm-section .firm-grid { grid-template-columns:minmax(0,1fr); }
}

.role-section .role-card {
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:0;
  padding:0;
}
.role-card-heading { display:flex; align-items:center; gap:.75rem; padding:var(--panel-space) var(--panel-space) 0; }
.role-section .role-capabilities {
  grid-template-rows:repeat(4,1fr);
  gap:.45rem;
  margin:0;
  padding:1rem var(--panel-space) var(--panel-space);
}
.role-section .role-capabilities li { align-items:center; }
.role-section .role-capabilities svg { margin-top:0; }
.role-section .public-account-actions {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.6rem;
  padding:.8rem var(--panel-space);
  border-top:1px solid var(--line);
  background:var(--surface-muted);
  border-radius:0 0 var(--radius) var(--radius);
}
.role-section .public-account-actions .btn { margin:0; text-align:center; }
@media (max-width:760px) {
  .role-section .role-capabilities { grid-template-rows:none; }
}
@media (max-width:340px) {
  .role-section .public-account-actions { grid-template-columns:minmax(0,1fr); }
}

@media (min-width:761px) {
  .role-section { grid-template-rows:auto 1fr auto; row-gap:0; }
  .role-section .role-card { grid-row:span 3; grid-template-rows:subgrid; }
}

.listing-intro { display:grid; gap:.85rem; min-width:0; }
.listing-intro-lead {
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:.8rem;
  padding:1rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-stone);
}
.listing-intro-lead p,.listing-intro ol p,.listing-form-summary p { margin:.4rem 0 0; color:var(--muted); }
.listing-intro ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; margin:0; padding:0; list-style:none; }
.listing-intro li {
  display:grid; grid-template-rows:auto auto 1fr; align-content:start; gap:.35rem;
  min-width:0; padding:.75rem; border:1px solid var(--line); border-radius:8px;
}
.listing-intro li svg { color:var(--accent); }
.listing-intro li p { font-size:.85rem; line-height:1.45; margin:0; }
.listing-intro .yo-note { margin:0; }
.listing-form-summary { padding:.75rem 1rem; border-radius:8px; background:var(--surface-muted); }
.listing-form-summary p { font-size:.875rem; }
@media(max-width:480px) {
  .listing-intro ol { grid-template-columns:minmax(0,1fr); }
  .listing-intro li { grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; column-gap:.65rem; }
  .listing-intro li svg { grid-row:span 2; }
}

.footer-legal,.legal-nav { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1rem; }
.footer-legal button { display:inline-flex; align-items:center; min-height:44px; padding:0; color:inherit; font:inherit; background:none; border:0; cursor:pointer; }
.footer-legal button:hover { text-decoration:underline; }
.legal-nav { margin-block:1rem; }
.legal-nav :is(a[aria-current="page"],button[aria-pressed="true"]) { background:var(--accent-wash); color:var(--accent-hover); }
.legal-body h2,.legal-body h3,.legal-body h4 { margin:1.3em 0 .45em; line-height:1.3; }
.legal-body p { margin:.3rem 0 .8rem; overflow-wrap:anywhere; }
.signup-terms { display:grid; gap:.65rem; min-width:0; }
.signup-terms .yo-check { min-height:44px; }

.legal-modal-title { margin:0; }
#modal .legal-nav { margin:0; }

/* Account entry points and membership details */
.nav-actions .account-trigger {
  gap:.65rem;
  padding:.3rem .65rem .3rem .35rem;
  border-color:var(--line);
  background:var(--surface-raised);
}
.nav-actions .account-trigger:hover,
.account-sidebar-card:hover { border-color:var(--accent); }
.account-trigger .account-avatar { flex-basis:34px; height:34px; }
.account-trigger > svg { margin-inline-start:auto; color:var(--accent); }

.account-sidebar-card, .account-summary {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:.75rem;
  background:var(--surface-muted);
  border:1px solid var(--line);
  border-inline-start:3px solid var(--accent);
  border-radius:var(--radius);
  padding:1rem;
  text-align:start;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.account-sidebar-card { width:100%; font:inherit; cursor:pointer; }
.account-card-avatar {
  display:grid;
  place-items:center;
  width:2.5rem;
  height:2.5rem;
  border-radius:8px;
  background:var(--studio-night);
  color:var(--white);
  font-weight:750;
}
.account-card-identity strong { display:block; line-height:1.3; }
.account-card-identity > span, .account-summary p { color:var(--muted); font-size:.82rem; }
.account-card-link {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:.6rem;
  color:var(--accent);
  font-size:.86rem;
  font-weight:650;
}
.account-card-link svg { width:16px; height:16px; flex:none; }
.account-detail { display:grid; gap:.85rem; }
.account-summary h3 { margin:0; font-size:clamp(1.2rem,3vw,1.65rem); line-height:1.2; }
.account-summary p { margin:0 0 .2rem; }
.account-plan-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:.75rem;
}
.account-section, .account-plan {
  min-width:0;
  padding:.85rem;
  background:var(--surface-raised);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.account-section h3 {
  display:flex;
  align-items:center;
  gap:.45rem;
  margin:0 0 .65rem;
  font-size:1rem;
}
.account-section h3 svg { flex:none; color:var(--accent); }
.account-section .yo-kv { margin:0; grid-template-columns:minmax(0,1fr); }
.account-section .yo-kv > div { padding:.45rem 0; }
.account-section > p, .account-plan p { margin:.45rem 0 0; color:var(--muted); font-size:.88rem; }
.account-section > .btn { margin-top:.65rem; }
.account-plan { background:var(--surface-muted); display:grid; align-content:start; gap:.35rem; }
.account-plan h4, .account-plan p { margin:0; }
.account-plan > strong { font-size:1.15rem; }
.account-plan .btn { margin-top:.3rem; }
.account-detail .btn { min-height:44px; white-space:normal; }
.account-detail .yo-modal-actions { margin-top:0; }
@media (max-width:480px) {
  .account-detail .yo-modal-actions > .btn { flex:1 1 100%; }
}

.permission-grid { display:grid; grid-column:1/-1; }
.permission-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(10rem,1fr);
  align-items:center;
  gap:.5rem .85rem;
  padding:.5rem 0;
  border-bottom:1px solid var(--line);
  font-size:.9rem;
}
.permission-row select { min-height:44px; min-width:0; width:100%; }
@media (max-width:480px) {
  .permission-row { grid-template-columns:minmax(0,1fr); }
}
.yo-account [hidden], .yo-modal [hidden] { display:none; }

.profile-dialog { display:grid; gap:1rem; }
.profile-banner {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:.9rem;
  padding:clamp(.8rem,3.4vw,1.45rem);
  border-radius:var(--radius);
  background:#192a37;
  color:#f6f4ee;
}
.profile-monogram {
  display:grid;
  place-items:center;
  width:clamp(2.7rem,10vw,3.5rem);
  aspect-ratio:1;
  border-radius:10px;
  background:#344653;
  border:1px solid #576873;
  color:#ffdbbc;
  font-weight:750;
}
.profile-role { display:flex; align-items:center; gap:.4rem; font-size:.82rem; color:#ffdbbc; }
.profile-role svg { width:15px; height:15px; }
.profile-banner h3 { margin:.25rem 0 0; font-size:clamp(1.2rem,4vw,1.75rem); line-height:1.2; overflow-wrap:anywhere; }
.profile-information {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  background:var(--surface-muted);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.profile-information section { padding:.85rem 1rem; min-width:0; }
.profile-information section + section { border-inline-start:1px solid var(--line); }
.profile-information h3 { display:flex; align-items:center; gap:.4rem; font-size:.95rem; margin:0 0 .45rem; }
.profile-information h3 svg { width:17px; height:17px; color:var(--accent); }
.profile-information .yo-kv { margin:0; grid-template-columns:minmax(0,1fr); }
.profile-information .yo-kv > div { padding:.37rem 0; }
.profile-quick-links { display:flex; flex-wrap:wrap; gap:.25rem .5rem; }
.profile-footer { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:.45rem; border-top:1px solid var(--line); padding-top:.85rem; }
.profile-dialog .btn { min-height:44px; white-space:normal; }
@media (max-width:520px) {
  .profile-information { grid-template-columns:minmax(0,1fr); }
  .profile-information section + section { border-inline-start:0; border-top:1px solid var(--line); }
  .profile-footer { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .profile-footer .btn { min-width:0; padding:.35rem .25rem; text-align:center; font-size:.8rem; }
}

:root { --record-shadow:0 3px 12px rgb(15 35 48 / .06); }
.yo-account-main > :where(.yo-panel, .yo-dash-columns), .firm-admin-list,
.yo-detail-stack > .yo-panel { min-width:0; }
.yo-panel .yo-entry {
  margin-block:.65rem;
  padding:clamp(.7rem,1.6vw,1rem);
  gap:.55rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-raised);
}
.yo-panel .yo-entry:last-child { margin-bottom:0; }
.yo-entry-head h3, .yo-panel-head h2, .yo-comparison-offer h3 {
  color:var(--ink);
  font-family:var(--font-display);
  line-height:1.25;
  overflow-wrap:anywhere;
}
.yo-entry-head h3, .yo-comparison-offer h3 { font-size:1.05rem; }
.yo-panel-head h2 { font-size:clamp(1.12rem,2vw,1.35rem); }
.yo-panel .yo-entry .yo-kv { gap:1px; padding:0; background:var(--line); border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.yo-panel .yo-entry .yo-kv > div { padding:.55rem .65rem; border-radius:0; background:var(--surface-muted); }
.yo-panel .yo-entry .yo-kv dd { font-weight:650; }
.yo-panel .yo-entry > .yo-actions { padding-top:.55rem; border-top:1px solid var(--line); justify-content:flex-start; }
.yo-panel-head > .btn, .yo-panel .yo-entry .btn, .yo-comparison-offer .btn {
  min-height:44px;
  white-space:normal;
  font-size:.86rem;
}
.yo-panel .yo-panel-head { padding-bottom:.65rem; border-bottom:1px solid var(--line); }
.yo-panel .panel-summary { margin:.75rem 0; }
.yo-panel .ledger-filter, .yo-panel .yo-compare-filter {
  background:var(--surface-muted);
  border:1px solid var(--line);
  border-radius:9px;
  padding:.7rem;
}
.yo-panel :where(.ledger-filter, .yo-compare-filter) :is(select,input,button) { min-height:44px; }
.yo-panel .delivery-log { background:var(--surface-muted); border:1px solid var(--line); }
.yo-panel .delivery-rules .yo-entry { margin:0; }
.yo-comparison-offer, .list-card, .firm-card, .resource-card, .role-card { box-shadow:var(--record-shadow); }
:is(.list-card,.firm-card,.resource-card) h3 { font-family:var(--font-display); line-height:1.25; }
.firm-card .firm-record {
  padding:.6rem;
  border:1px solid var(--line);
  background:var(--surface-muted);
  border-radius:9px;
}
:is(.firm-card,.resource-card) .detail-link, .list-card-footer a {
  color:var(--ink);
  font-weight:750;
}
:is(.firm-card,.resource-card) .detail-link:hover, .list-card-footer a:hover { color:var(--accent); }
@media (max-width:480px) {
  .yo-entry-head { align-items:flex-start; }
  .yo-panel .yo-entry .yo-kv { grid-template-columns:repeat(auto-fit,minmax(min(100%,105px),1fr)); }
}
.yo-account .yo-dash-stat { background:var(--surface-raised); box-shadow:var(--record-shadow); }
.yo-account .yo-dash-stat-top { margin-bottom:.35rem; }
.yo-modal .yo-fieldset + .yo-fieldset { padding-top:.75rem; border-top:1px solid var(--line); }
.yo-modal .yo-fieldset + .yo-fieldset legend { padding-inline-end:.4rem; }

/* Public listing, company and guide cards */
:is(.list-card,.firm-card,.resource-card,.role-card) {
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--record-shadow);
}
:is(.list-card,.firm-card,.resource-card,.role-card) .square-icon {
  background:var(--tint);
  color:var(--blue-dark);
  border-radius:10px;
}
.list-card .list-location {
  background:var(--surface-muted);
  padding:.5rem .6rem;
  border-radius:8px;
  line-height:1.35;
}
.list-card-footer { gap:.35rem .55rem; }
:is(.list-card-footer a,.firm-card .detail-link,.resource-card .detail-link) {
  align-items:center;
  gap:.35rem;
  padding:.25rem .65rem;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-raised);
  color:var(--ink);
  text-align:start;
  white-space:normal;
  line-height:1.25;
}
:is(.list-card-footer a,.firm-card .detail-link,.resource-card .detail-link) > svg {
  width:14px;
  height:14px;
  flex:none;
}
.firm-card .firm-record { border:0; gap:.55rem; padding:.65rem; margin-block:.7rem; }
.firm-card .firm-record > div + div { border-inline-start:1px solid var(--line); padding-inline-start:.55rem; }
.firm-card .firm-record strong { font-size:1.3rem; }
.role-section .public-account-actions { border-top:1px solid var(--line); }
.project-card-head { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .65rem; }
.project-card-head > div { flex:1 1 9rem; min-width:0; }
.project-card-head h3 { font-family:var(--font-display); overflow-wrap:anywhere; margin:0; font-size:1.05rem; }
.project-card-head p { color:var(--muted); margin-top:.15rem; }
.project-card-icon { display:grid; place-items:center; width:2.4rem; height:2.4rem; flex:none; border-radius:9px; background:var(--tint); color:var(--blue-dark); }
.project-card-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:0; padding:.6rem .7rem; border-radius:9px; background:var(--surface-muted); }
.project-card-facts dt { font-size:.8rem; color:var(--muted); }
.project-card-facts dd { margin:0; font-size:.9rem; font-weight:700; overflow-wrap:anywhere; }
.panel-summary dt a { color:inherit; }
.panel-summary dt a:hover { color:var(--accent); }

/* Listing and contractor detail pages */
.detail-header {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.48fr);
  align-items:center;
  gap:clamp(1rem,3vw,2rem);
  padding:clamp(1rem,3.4vw,2.8rem);
  border:1px solid var(--line);
  border-inline-start:4px solid var(--accent);
  border-radius:16px;
  background:var(--surface-raised);
  box-shadow:var(--record-shadow);
}
.detail-heading { display:flex; gap:clamp(.65rem,2vw,1.2rem); align-items:flex-start; min-width:0; }
.detail-mark {
  flex:none; display:grid; place-items:center;
  width:clamp(2.5rem,6vw,4rem); aspect-ratio:1;
  border-radius:12px; background:var(--tint); color:var(--blue-dark);
  font:800 clamp(1rem,2vw,1.4rem)/1 var(--font-display);
}
.detail-mark svg { width:55%; height:55%; }
.detail-identity { min-width:0; }
.detail-kicker { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem .65rem; }
.detail-kicker > span:first-child { color:var(--accent); font-size:.79rem; font-weight:750; }
.detail-header h1 { margin:.4rem 0 .5rem; font-size:clamp(1.6rem,3.6vw,3rem); line-height:1.12; overflow-wrap:anywhere; }
.detail-header p { margin:0; font-size:.93rem; }
.detail-header .yo-area svg { color:var(--accent); }
.detail-facts {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px;
  margin:0; padding:1px; border-radius:12px; background:var(--line); overflow:hidden;
}
.detail-facts > div { padding:.8rem; background:var(--surface-muted); min-width:0; }
.detail-facts dt { color:var(--muted); font-size:.8rem; line-height:1.3; }
.detail-facts dd { margin:.35rem 0 0; font:750 clamp(1rem,2vw,1.45rem)/1.2 var(--font-display); overflow-wrap:anywhere; }
.detail-layout { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr); align-items:start; gap:1rem; margin-top:1rem; }
.detail-rail { min-width:0; display:grid; align-content:start; gap:1rem; }
.detail-action-panel { padding:clamp(1rem,2vw,1.35rem); background:var(--accent-wash); border:1px solid var(--line); border-radius:var(--radius); }
.detail-action-panel h2 { margin:.65rem 0 .45rem; font:750 1.3rem/1.25 var(--font-display); }
.detail-action-panel p { margin:0; font-size:.9rem; }
.detail-action-panel .yo-lock-symbol { background:var(--surface-raised); color:var(--accent); }
.detail-action-buttons { margin-top:.85rem; }
.detail-page .btn { min-height:44px; white-space:normal; }
.detail-page .yo-kv > div { background:var(--surface-muted); }
.detail-rail .yo-kv { grid-template-columns:minmax(0,1fr); }
.detail-page .yo-step-list li::before { background:var(--tint); color:var(--blue-dark); }
.detail-references { display:grid; gap:.55rem; list-style:none; margin:0; padding:0; }
.detail-references li {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.65rem;
  border:1px solid var(--line); background:var(--surface-muted); padding:.55rem; border-radius:10px;
}
.detail-references strong { overflow-wrap:anywhere; }
.detail-references .yo-lock-symbol { width:36px; height:36px; background:var(--tint); color:var(--blue-dark); }
.detail-references .yo-lock-symbol svg { width:18px; }
@media (max-width:760px) {
  .detail-header,.detail-layout { grid-template-columns:minmax(0,1fr); }
  .detail-page .detail-action-buttons > .btn { width:100%; }
}
@media (max-width:420px) {
  .detail-references li > .yo-flag { grid-column:2; }
}
.detail-page .yo-flag:not(.positive):not(.pending) { background:var(--tint); color:var(--ink); }
.detail-process { margin-top:1rem; }
@media (min-width:761px) {
  .detail-process .yo-step-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.directory-filter[data-kind="firms"] { grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr); }
@media (max-width:760px) {
  .directory-filter[data-kind="firms"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .directory-filter[data-kind="firms"] label:first-child { grid-column:1/-1; }
}
@media (max-width:360px) {
  .directory-filter[data-kind="firms"] { grid-template-columns:minmax(0,1fr); }
}

/* Typography shared by public pages, forms and account panels. */
body.yapiortak :is(h1,h2) { font-weight:650; letter-spacing:-.025em; }
body.yapiortak :is(h3,.list-card h3 a,.firm-card h3 a,.yo-entry-head h3 a) {
  font-weight:620;
  letter-spacing:-.012em;
}
body.yapiortak #hero-search label,
body.yapiortak .directory-filter label,
body.yapiortak .yo-field > span:first-child,
body.yapiortak .panel-summary dt,
body.yapiortak :is(.ledger-filter,.yo-compare-filter) label { font-weight:550; }
body.yapiortak #hero-search :is(input,select),
body.yapiortak .directory-filter :is(input,select),
body.yapiortak .yo-field :is(input,select,textarea),
body.yapiortak :is(.ledger-filter,.yo-compare-filter) :is(input,select) {
  font-family:var(--font-text);
  font-weight:450;
}
body.yapiortak :is(.list-card-footer a,.firm-card .detail-link,.resource-card .detail-link,.main-nav a,.yo-panel-nav a,.yo-panel-nav button) {
  font-weight:550;
}
body.yapiortak .btn { font-weight:600; }
body.yapiortak :is(.yo-flag,.list-card .status) { font-weight:600; }
body.yapiortak :is(.panel-summary dd strong,.stat-copy strong,.firm-record strong,.detail-facts dd,.firm-admin-balance dd) {
  font-weight:650;
}

.brand-logo {
  display:block;
  width:clamp(122px,14vw,172px);
  aspect-ratio:4.8;
  flex:none;
  background:url('/kentseltime-light.png') left center / contain no-repeat;
}
[data-theme="dark"] .brand-logo, footer .brand-logo, .login-brand .brand-logo {
  background-image:url('/kentseltime-dark.png');
}

.signup-terms a {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:.18em;
}
.signup-terms-dialog {
  position:fixed;
  width:min(calc(100% - 24px),600px);
  max-height:calc(100dvh - 24px);
  padding:0;
  overflow:auto;
  overscroll-behavior:contain;
  background:var(--surface-raised);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 16px 50px rgb(12 23 35 / .28);
}
.signup-terms-dialog::backdrop { background:rgb(12 23 35 / .52); }
