/* partitionssanfrancisco.com - local-expert matchup style */
:root {
  --text: rgba(0, 0, 0, .87);
  --muted: rgba(0, 0, 0, .6);
  --navy: #0b4f6c;
  --navy-2: #083d54;
  --teal: #16a39a;
  --teal-dark: #0f847d;
  --teal-soft: #e3f4f2;
  --sun: #ffd98a;
  --bg: #fafafa;
  --white: #ffffff;
  --soft: #f3f5f6;
  --border: #e0e0e0;
  --border-2: #c9ced2;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.12);
  --head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", Helvetica, Arial, sans-serif;
  --wrap: 1152px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--body); color: var(--text); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-chev { width: 16px; height: 16px; }
.ic-arrow { width: 16px; height: 16px; }
.ic-check { color: var(--teal-dark); width: 20px; height: 20px; }
.badge { display: inline-block; background: var(--navy); color: #fff; font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }

/* buttons (small radius, navy, like the reference) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 500; font-size: .9rem; padding: 10px 20px; border-radius: 4px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--soft); color: var(--navy); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--navy); font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* header: logo left, centered nav with a dropdown */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.header-row { display: flex; align-items: center; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1.25rem; color: var(--navy); white-space: nowrap; }
.brand b { color: var(--teal); font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 48px; align-items: center; }
.main-nav a, .nav-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 .85rem/1 var(--body); color: var(--text); background: none; border: 0; cursor: pointer; padding: 10px 0; white-space: nowrap; }
.main-nav a:hover, .nav-btn:hover { color: var(--navy); text-decoration: none; }
.main-nav a.active, .nav-btn.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--teal); }
.has-menu { position: relative; }
.has-menu::before { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 14px; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 260px; list-style: none; margin: 0; padding: 8px 0; background: #fff; border-radius: 4px; box-shadow: var(--shadow-lg); display: none; }
.has-menu.open .dropdown, .has-menu:hover .dropdown, .has-menu:focus-within .dropdown, .dropdown:hover { display: block; }
.dropdown a { display: block; padding: 10px 18px; font-size: .88rem; }
.dropdown a:hover { background: var(--soft); }
.dropdown a.active { box-shadow: none; background: var(--teal-soft); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }
.menu-btn .ic { width: 26px; height: 26px; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-lg); }
.mobile-nav ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.mobile-nav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text); }
.mobile-nav a.active { color: var(--navy); font-weight: 700; }

/* search (rectangular field with an icon inside) */
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch input { width: 100%; border: 1px solid var(--border-2); border-radius: 4px; padding: 13px 44px 13px 14px; font: inherit; font-size: .9rem; background: #fff; color: var(--text); }
.hsearch input::placeholder { color: rgba(0,0,0,.45); }
.hsearch input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.hsearch > .ic { position: absolute; right: 14px; color: var(--teal-dark); pointer-events: none; width: 20px; height: 20px; }
.hsearch-mobile { margin: 14px 0 6px; }
.hsearch-hero { margin: 26px 0 0; max-width: 640px; }
.hsearch-hero input { padding: 15px 48px 15px 16px; font-size: .95rem; border: 1px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hsearch-band { flex: 1; max-width: 520px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-lg); z-index: 60; max-height: 380px; overflow: auto; text-align: left; }
.search-results a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus { background: var(--soft); text-decoration: none; }
.search-results .r-title { display: block; font-weight: 500; font-size: .93rem; }
.search-results .r-page { font-size: .7rem; color: var(--teal-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.search-results .r-snip { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.search-results .r-empty { padding: 12px 14px; color: var(--muted); font-size: .9rem; }
.search-band { padding: 8px 0 40px; }
.search-band-inner { display: flex; align-items: center; gap: 28px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 22px 28px; }
.search-band-label { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 500; color: var(--text); }
.search-band-label .ic { width: 34px; height: 34px; color: var(--teal); stroke-width: 1.6; }

/* hero: full-bleed scene, big friendly headline, search field */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #0b2f3f; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,29,37,.62) 0%, rgba(6,29,37,.42) 50%, rgba(6,29,37,.15) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 90px 0 80px; }
.hero-title { font-family: var(--head); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.15; color: #fff; margin: 0 0 18px; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: #fff; line-height: 1.35; max-width: 640px; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* sections */
.section { padding: 56px 0; }
.section-soft { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 8px; }
.intro-cols p { font-size: .95rem; color: var(--text); }
.edu-note { font-size: .88rem; color: var(--muted); margin: 22px 0 0; }
.glance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.glance { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 20px 22px; }
.glance h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4em; color: var(--navy); }
.glance p { margin: 0; font-size: .92rem; }
.gcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gcard { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 32px 24px 24px; }
.gcard-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.gcard-icon .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.gcard-title { font-size: 1.1rem; font-weight: 500; margin-bottom: .5em; }
.gcard-desc { font-size: .9rem; color: var(--text); flex: 1; margin-bottom: 18px; }

/* article pages: breadcrumbs, badge, single column */
.page-head { padding: 24px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--text); margin-bottom: 26px; }
.crumbs a { color: var(--text); }
.crumbs .sep { color: var(--muted); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .85rem; color: var(--text); margin: 4px 0 18px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.meta-item .ic { width: 18px; height: 18px; color: var(--navy); }
.article-wrap { padding-bottom: 32px; }
.toc-box { background: var(--soft); border-radius: 4px; padding: 20px 26px; margin: 0 0 32px; }
.toc-title { font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
.toc-box ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 40px; }
.toc-box li { margin-bottom: 4px; font-size: .92rem; break-inside: avoid; }
.toc-box a { color: var(--text); }
.toc-box a:hover { color: var(--navy); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill { font-size: .8rem; font-weight: 500; padding: 6px 14px; border-radius: 4px; background: var(--soft); color: var(--navy); border: 1px solid var(--border); }
.pill:hover { background: var(--teal-soft); border-color: var(--teal); text-decoration: none; }

/* prose */
.prose { max-width: 100%; }
.prose-wide { max-width: 100%; }
.prose > h2 { margin-top: 2em; scroll-margin-top: 90px; font-size: 1.35rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; scroll-margin-top: 90px; font-size: 1.05rem; font-weight: 700; }
.prose p, .prose li { font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
sup.cite { font-size: .68em; line-height: 0; margin-left: 2px; font-weight: 500; }
sup.cite a { color: var(--teal-dark); }
.refs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ref { display: inline-block; min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 4px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 500; font-size: .8rem; }
.ref:hover { background: var(--teal); color: #fff; text-decoration: none; }
.callout { border-radius: 4px; padding: 16px 20px; background: var(--soft); border-left: 4px solid var(--teal); }
.callout-example { background: var(--teal-soft); }
.sources-heading { font-size: 1.2rem; }
.sources { counter-reset: src; list-style: none; padding: 0; margin: 0; }
.sources li { counter-increment: src; display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); font-size: .88rem; scroll-margin-top: 90px; }
.sources li::before { content: counter(src); flex: none; font-weight: 500; color: var(--navy); background: var(--soft); border-radius: 4px; min-width: 28px; padding: 2px 4px; text-align: center; font-size: .78rem; align-self: flex-start; }
.sources li:target { background: var(--teal-soft); }
.src-domain { color: var(--muted); font-size: .76rem; white-space: nowrap; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 4px; background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: .82rem; text-align: left; padding: 11px 14px; }
tbody td, tbody th { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; text-align: left; }
tbody th { font-weight: 700; background: var(--soft); width: 30%; }
tbody tr:nth-child(even) td { background: var(--bg); }
tbody td:first-child { font-weight: 500; }
.td-refs { white-space: nowrap; }

/* stepper */
.stepper { list-style: none; padding: 0; margin: 0 0 2em; position: relative; }
.stepper::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.stepper li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; margin-bottom: 12px; position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; box-shadow: 0 0 0 4px var(--bg); }
.step-body { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; }
.step-body h3 { font-size: 1rem; margin: 0 0 .25em; font-weight: 700; }
.step-body p { margin: 0; font-size: .92rem; }
.step-src { white-space: nowrap; }

/* sale cards */
.sale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 1.6em; }
.sale { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.sale-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sale-price { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.sale-sold { font-size: .8rem; color: var(--muted); }
.sale-prop { font-size: .98rem; margin: 0; line-height: 1.3; font-weight: 500; }
.sale-type, .sale-stype, .sale-role { margin: 0; font-size: .85rem; color: var(--muted); }
.sale-stype { color: var(--teal-dark); }
.sale-result { margin: 4px 0 0; font-size: .88rem; display: flex; gap: 6px; align-items: flex-start; font-weight: 500; }
.sale-role { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }

/* faq */
.faq-group { margin-bottom: 36px; }
.faq-group h2 { scroll-margin-top: 90px; }
.faq { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; background: #fff; scroll-margin-top: 90px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; font-weight: 500; font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq .chev { width: 24px; height: 24px; flex: none; position: relative; transition: transform .2s; }
.faq .chev::before { content: ""; position: absolute; left: 8px; top: 6px; width: 7px; height: 7px; border-right: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(45deg); }
.faq[open] .chev { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 14px 18px 4px; }
.faq-body p { font-size: .93rem; }

/* featured specialist band: image left, text right */
.featured { padding: 24px 0 64px; }
.featured-grid { display: grid; grid-template-columns: 440px 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--border); padding-top: 48px; }
.featured-photo { position: relative; }
.featured-photo img { width: 100%; height: auto; border-radius: 4px; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.featured-caption { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; font-family: var(--body); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border-radius: 0 0 4px 4px; }
.featured-main h2 { font-size: 1.75rem; margin-bottom: .15em; }
.featured-main h2 a, .profile-body h2 a { color: var(--text); }
.featured-main h2 a:hover, .profile-body h2 a:hover { color: var(--navy); }
.featured-main .kicker, .profile-body .kicker { font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 .4em; }
.become { font-style: italic; }
.featured-sub { color: var(--teal-dark); font-weight: 500; margin-bottom: 1em; }
.featured-main p { font-size: .95rem; }
.featured-list-label { font-weight: 700; margin-bottom: .4em; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.featured-main small { display: block; margin-top: 14px; color: var(--muted); font-size: .78rem; }
.profile-card { display: flex; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 28px 32px; margin: 0 0 32px; }
.profile-photo { width: 200px; height: 200px; border-radius: 4px; object-fit: cover; flex: none; }
.profile-body h2 { margin-bottom: .1em; }
.profile-body .featured-sub { color: var(--muted); }

/* footer: light, quiet, small print */
.site-footer { background: #fff; border-top: 1px solid var(--border); color: var(--text); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: .88rem; }
.site-footer a { color: var(--text); }
.site-footer p { font-size: .88rem; }
.site-footer .brand { margin-bottom: 10px; }
.footer-legal { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; }
.footer-legal p { font-size: .8rem; color: var(--text); margin-bottom: .6em; }

/* responsive */
@media (max-width: 1024px) {
  .main-nav > ul { gap: 28px; }
  .gcard-grid, .glance-grid, .sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: 320px 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { min-height: 0; }
  .hero-inner { padding: 60px 0; }
  .hero-overlay { background: linear-gradient(180deg, rgba(6,29,37,.66), rgba(6,29,37,.6)); }
  .intro-cols { grid-template-columns: 1fr; gap: 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-photo { max-width: 360px; }
  .search-band-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .hsearch-band { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc-box ol { columns: 1; }
}
@media (max-width: 600px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .gcard-grid, .glance-grid, .sale-grid, .tick-list, .footer-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; }
  .step-src, .src-domain { white-space: normal; }
  table { min-width: 0; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap th { display: block; }
  .table-wrap thead { position: absolute; left: -9999px; }
  .table-wrap tr { border-top: 3px solid var(--teal-soft); padding: 6px 0; }
  .table-wrap tr:first-child { border-top: 0; }
  .table-wrap td, .table-wrap tbody th { border-top: 0; padding: 6px 16px; width: auto; white-space: normal; }
  .table-wrap tbody tr:nth-child(even) td { background: transparent; }
  .table-wrap td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); margin-bottom: 2px; }
  .table-wrap tbody th { background: var(--soft); font-size: 1rem; }
}
