body.page-best-of-san-francisco { background: var(--refresh-page); }
.bo-page { width: min(calc(100% - 40px), 1320px); margin: 0 auto; padding: 24px 0 96px; color: var(--refresh-copy); }
.bo-page * { box-sizing: border-box; }
.bo-breadcrumbs { display: flex; gap: 9px; margin: 0 0 15px; color: var(--refresh-muted); font: 750 11px/1.2 var(--refresh-display); letter-spacing: .06em; text-transform: uppercase; }
.bo-breadcrumbs a { color: inherit; text-decoration: none; }
.bo-breadcrumbs a:hover { color: var(--refresh-red-dark); }

.bo-hero { position: relative; display: grid; grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr); min-height: 455px; overflow: hidden; background: var(--refresh-ink); box-shadow: var(--refresh-shadow); }
.bo-hero::before { position: absolute; z-index: 3; top: 0; left: 0; width: 180px; height: 4px; background: linear-gradient(90deg, var(--refresh-red) 0 67%, var(--refresh-gold) 67%); content: ""; }
.bo-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 68px); color: #fff; }
.bo-eyebrow { display: block; margin-bottom: 16px; color: var(--refresh-gold-light); font: 850 11px/1 var(--refresh-display); letter-spacing: .14em; text-transform: uppercase; }
.bo-hero h1 { max-width: 500px; margin: 0; color: #fff; font: 850 clamp(50px, 5vw, 82px)/.87 var(--refresh-display); letter-spacing: -.055em; }
.bo-hero-copy > p { max-width: 500px; margin: 22px 0 0; color: #d1dadd; font: 400 16px/1.55 var(--refresh-article-font); }
.bo-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 23px; color: #9eb0b8; font: 700 11px/1.3 var(--refresh-display); letter-spacing: .05em; text-transform: uppercase; }
.bo-hero-meta strong { color: #fff; }
.bo-hero-media { position: relative; min-width: 0; margin: 0; }
.bo-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.bo-hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,39,46,.45), transparent 34%); content: ""; }
.bo-hero-media figcaption { position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 7px 10px; color: #d9e1e4; background: rgba(18,31,37,.9); font: 700 9px/1.2 var(--refresh-display); letter-spacing: .04em; }
.bo-hero-media figcaption strong { color: var(--refresh-gold-light); text-transform: uppercase; }

.bo-featured, .bo-directory { margin-top: 48px; }
.bo-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--refresh-line); }
.bo-section-head > div > span { display: block; margin-bottom: 6px; color: var(--refresh-red-dark); font: 850 10px/1 var(--refresh-display); letter-spacing: .12em; text-transform: uppercase; }
.bo-section-head h2 { margin: 0; color: var(--refresh-ink); font: 850 clamp(28px, 2.4vw, 36px)/1 var(--refresh-display); letter-spacing: -.035em; }
.bo-section-head > p { max-width: 470px; margin: 0; color: var(--refresh-muted); font: 400 14px/1.45 var(--refresh-article-font); }
.bo-rule { width: 100px; height: 3px; margin-top: -2px; background: linear-gradient(90deg, var(--refresh-red) 0 52%, var(--refresh-gold) 52%); }
.bo-feature-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; margin-top: 20px; }
.bo-guide { display: flex; min-width: 0; flex-direction: column; color: inherit; background: var(--refresh-paper); text-decoration: none; box-shadow: 0 12px 28px rgba(29,43,50,.075); transition: transform .18s, box-shadow .18s; }
.bo-guide:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(29,43,50,.13); }
.bo-guide:focus-visible { outline: 3px solid var(--refresh-red); outline-offset: 3px; }
.bo-guide > img { width: 100%; height: 205px; object-fit: cover; }
.bo-guide-primary > img { height: 280px; }
.bo-guide-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 18px; border-top: 3px solid var(--refresh-gold); }
.bo-guide-copy small { color: var(--refresh-red-dark); font: 850 10px/1.2 var(--refresh-display); letter-spacing: .1em; text-transform: uppercase; }
.bo-guide-copy > strong { margin-top: 8px; color: var(--refresh-ink); font: 850 20px/1.08 var(--refresh-display); letter-spacing: -.025em; }
.bo-guide-primary .bo-guide-copy > strong { font-size: 26px; }
.bo-guide-copy > span { margin-top: 10px; color: var(--refresh-muted); font: 400 13px/1.5 var(--refresh-article-font); }
.bo-guide-copy b { margin-top: auto; padding-top: 18px; color: var(--refresh-red-dark); font: 850 10px/1.2 var(--refresh-display); letter-spacing: .07em; text-transform: uppercase; }

.bo-disclosure { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; margin: 24px 0 0; padding: 22px 26px; color: #c7d2d6; background: var(--refresh-ink); border-left: 5px solid var(--refresh-gold); }
.bo-disclosure strong { display: block; color: #fff; font: 850 13px/1.2 var(--refresh-display); letter-spacing: .04em; text-transform: uppercase; }
.bo-disclosure p { max-width: 850px; margin: 7px 0 0; color: #b9c6cb; font: 400 13px/1.5 var(--refresh-article-font); }
.bo-disclosure > a { color: var(--refresh-gold-light); font: 850 10px/1.3 var(--refresh-display); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }

.bo-directory-content { display: flex; flex-direction: column; margin-top: 22px; }
.bo-directory-content #mediavine-settings { display: none; }
.bo-directory-content > p:first-of-type { order: 1; max-width: 980px; margin: 0 auto; padding: 30px 38px; color: var(--refresh-copy); font: 400 17px/1.7 var(--refresh-article-font); text-align: center; background: var(--refresh-paper); border: 1px solid var(--refresh-line); }
.bo-directory-content > table:first-of-type { order: 2; margin: 18px 0 12px; }
.bo-directory-content > :not(p:first-of-type):not(table:first-of-type) { order: 3; }
.bo-directory-content table { display: block; width: 100%; margin: 0; border: 0; border-collapse: separate; background: transparent; }
.bo-directory-content table tbody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; width: 100%; background: var(--refresh-line); border: 1px solid var(--refresh-line); }
.bo-directory-content table tr { display: contents; }
.bo-directory-content table td { display: block; min-width: 0 !important; padding: 0; text-align: left !important; background: var(--refresh-paper); border: 0; }
.bo-directory-content table td:not(:has(a)) { display: none; }
.bo-directory-content table td > a { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 14px; min-height: 116px; padding: 13px; color: var(--refresh-ink); font: 800 15px/1.15 var(--refresh-display); text-decoration: none; transition: color .18s, background .18s; }
.bo-directory-content table td > a:hover { color: var(--refresh-red-dark); background: color-mix(in srgb, var(--refresh-page) 72%, var(--refresh-paper)); }
.bo-directory-content table td > a:focus-visible { position: relative; z-index: 2; outline: 3px solid var(--refresh-red); outline-offset: -3px; }
.bo-directory-content table td img { width: 92px !important; height: 76px !important; margin: 0 !important; object-fit: cover; }
.bo-directory-content > table:first-of-type tbody { grid-template-columns: repeat(5, minmax(0,1fr)); }
.bo-directory-content > table:first-of-type td > a { grid-template-columns: 58px minmax(0,1fr); min-height: 82px; padding: 11px 13px; font-size: 14px; }
.bo-directory-content > table:first-of-type td img { width: 58px !important; height: 58px !important; border-radius: 50%; }
.bo-directory-content > div[id] { scroll-margin-top: 96px; margin: 44px 0 0; padding: 20px 24px 17px; text-align: left !important; background: var(--refresh-ink); border-top: 4px solid var(--refresh-gold); }
.bo-directory-content > div[id] h3 { margin: 0; color: #fff; font: 850 30px/1 var(--refresh-display); letter-spacing: -.035em; }
.bo-directory-content > div:not([id]) { margin: 18px 0 0; padding: 14px 18px 10px; text-align: left !important; background: color-mix(in srgb, var(--refresh-paper) 80%, var(--refresh-page)); border-bottom: 2px solid var(--refresh-ink); }
.bo-directory-content > div:not([id]) p, .bo-directory-content > div:not([id]) h4 { margin: 0 !important; color: var(--refresh-ink) !important; font: 850 15px/1.25 var(--refresh-display) !important; letter-spacing: .06em; text-transform: uppercase; }
.bo-directory-content > hr { width: 100%; height: 1px; margin: 38px 0 0; background: var(--refresh-line); border: 0; }

.bo-method { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 28px; background: var(--refresh-line); border: 1px solid var(--refresh-line); scroll-margin-top: 96px; }
.bo-method > div { padding: 32px 36px; background: var(--refresh-paper); }
.bo-method > div > span, .bo-newsletter > div > span { display: block; margin-bottom: 8px; color: var(--refresh-red-dark); font: 850 10px/1 var(--refresh-display); letter-spacing: .12em; text-transform: uppercase; }
.bo-method h2 { margin: 0; color: var(--refresh-ink); font: 850 21px/1.1 var(--refresh-display); }
.bo-method p { margin: 11px 0 0; color: var(--refresh-copy); font: 400 14px/1.6 var(--refresh-article-font); }
.bo-method ul { margin: 13px 0 0; padding-left: 18px; color: var(--refresh-copy); font: 600 12px/1.7 var(--refresh-display); }
.bo-method a { color: var(--refresh-red-dark); font-family: var(--refresh-display); font-weight: 800; }
.bo-newsletter { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; color: #fff; background: var(--refresh-red); border-left: 7px solid var(--refresh-gold); }
.bo-newsletter > div { display: flex; flex-direction: column; justify-content: center; padding: 34px 40px; }
.bo-newsletter > div > span { color: #ffe3a3; }
.bo-newsletter h2 { margin: 0; color: #fff; font: 850 32px/1 var(--refresh-display); letter-spacing: -.035em; }
.bo-newsletter p { margin: 8px 0 0; color: #ffe9e9; font: 400 15px/1.5 var(--refresh-article-font); }
.bo-newsletter button { min-height: 50px; padding: 0 22px; color: #fff; font: 850 12px/1 var(--refresh-display); letter-spacing: .07em; text-transform: uppercase; background: var(--refresh-ink); border: 1px solid rgba(255,255,255,.25); cursor: pointer; }
.bo-newsletter small { margin-top: 8px; color: #ffe9e9; font: 600 10px/1.3 var(--refresh-display); }

html[data-theme="dark"] .bo-hero { background: #14242b; }
html[data-theme="dark"] .bo-guide-copy > span, html[data-theme="dark"] .bo-section-head > p, html[data-theme="dark"] .bo-directory-content > p:first-of-type, html[data-theme="dark"] .bo-method p, html[data-theme="dark"] .bo-method ul { color: #b7c4c9; }
html[data-theme="dark"] .bo-guide { box-shadow: 0 12px 30px rgba(0,0,0,.22); }
html[data-theme="dark"] .bo-directory-content > div[id] { background: #09171d; }
html[data-theme="dark"] .bo-directory-content table td > a:hover { background: #203139; }

@media (min-width: 1600px) {
    .bo-page { width: min(calc(100% - 80px), 1500px); }
    .bo-hero { min-height: 520px; }
    .bo-directory-content table td > a { grid-template-columns: 104px minmax(0,1fr); min-height: 132px; font-size: 17px; }
    .bo-directory-content table td img { width: 104px !important; height: 86px !important; }
    .bo-directory-content > table:first-of-type td > a { grid-template-columns: 62px minmax(0,1fr); min-height: 94px; }
    .bo-directory-content > table:first-of-type td img { width: 62px !important; height: 62px !important; }
}
@media (max-width: 1050px) {
    .bo-feature-grid { grid-template-columns: 1fr 1fr; }
    .bo-guide-primary { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; }
    .bo-guide-primary > img { height: 100%; min-height: 280px; }
    .bo-directory-content table tbody { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .bo-directory-content > table:first-of-type tbody { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .bo-hero { grid-template-columns: 1fr; }
    .bo-hero-copy { padding: 48px 42px; }
    .bo-hero-media { height: 360px; }
    .bo-hero-media::after { background: linear-gradient(180deg, rgba(25,39,46,.28), transparent 36%); }
    .bo-section-head { display: block; }
    .bo-section-head > p { margin-top: 10px; }
    .bo-disclosure { grid-template-columns: 1fr; gap: 14px; }
    .bo-directory-content table tbody { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bo-method { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bo-page { width: 100%; padding-top: 15px; }
    .bo-breadcrumbs { margin: 0 18px 12px; }
    .bo-hero { min-height: 0; box-shadow: none; }
    .bo-hero-copy { padding: 38px 22px 34px; }
    .bo-hero h1 { font-size: clamp(48px, 15vw, 66px); }
    .bo-hero-copy > p { font-size: 15px; }
    .bo-hero-media { height: 250px; }
    .bo-hero-media figcaption { right: 8px; bottom: 8px; }
    .bo-featured, .bo-directory { margin-right: 14px; margin-left: 14px; }
    .bo-feature-grid { grid-template-columns: 1fr; }
    .bo-guide-primary { grid-column: auto; display: flex; }
    .bo-guide-primary > img, .bo-guide > img { height: 220px; min-height: 0; }
    .bo-guide-primary .bo-guide-copy > strong { font-size: 23px; }
    .bo-disclosure { padding: 22px; }
    .bo-directory-content > p:first-of-type { padding: 24px 20px; font-size: 16px; text-align: left; }
    .bo-directory-content table tbody, .bo-directory-content > table:first-of-type tbody { grid-template-columns: 1fr; }
    .bo-directory-content > table:first-of-type td > a { min-height: 80px; }
    .bo-directory-content table td > a { grid-template-columns: 100px minmax(0,1fr); min-height: 100px; padding: 11px; }
    .bo-directory-content table td img { width: 100px !important; height: 78px !important; }
    .bo-directory-content > table:first-of-type td > a { grid-template-columns: 54px minmax(0,1fr); }
    .bo-directory-content > table:first-of-type td img { width: 54px !important; height: 54px !important; }
    .bo-directory-content > div[id] { margin-top: 34px; padding: 18px; }
    .bo-directory-content > div[id] h3 { font-size: 26px; }
    .bo-method { margin: 22px 14px 0; }
    .bo-method > div { padding: 27px 22px; }
    .bo-newsletter { grid-template-columns: 1fr; margin: 36px 14px 0; }
    .bo-newsletter > div { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .bo-guide, .bo-directory-content a, .bo-directory-content img { transition: none !important; }
}
