/* Shared public-site presentation, based on the approved homepage. */
@media screen {
body#bernold-public{--public-title:2rem;--public-card:1.5rem;--public-copy:1.125rem}
body#bernold-public main h1,body#bernold-public main h2{font-size:var(--public-title)!important;line-height:1.25!important;font-weight:500!important}
/* Lead quotations follow the homepage title scale too. */
body#bernold-public main blockquote{font-size:var(--public-title)!important;line-height:1.3!important;font-weight:500!important;letter-spacing:-.025em}
body#bernold-public main h3{font-size:var(--public-card)!important;line-height:1.3!important;font-weight:500!important}
body#bernold-public main :is(p,li,dd){font-size:var(--public-copy)!important;line-height:1.65!important}
body#bernold-public main :is(.eyebrow,.tag,.hb-kicker,.resource-type,.demo-eyebrow,.demo-kicker,.choice-kicker){font-size:.75rem!important;line-height:1.6!important;letter-spacing:.1em!important}
body#bernold-public main :is(.note,.demo-note,.hb-note,.matchdesk-note,.flow-top){font-size:.875rem!important;line-height:1.6!important}
body#bernold-public main :is(button,input,select,textarea,label,legend){font-size:1rem!important;line-height:1.5!important}
body#bernold-public :is(.bernold-cta,main .button,main .primary,.sheet .toolbar button){--cta-bg:#b8a788;--cta-fg:#162a39;background:#b8a788!important;color:#162a39!important;border:1px solid #8d7956!important;border-radius:10px!important;font-size:1rem!important;font-weight:700!important;line-height:1.45!important;min-height:48px;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:break-word;text-decoration:none}
body#bernold-public :is(.bernold-cta,main .button,main .primary,.sheet .toolbar button):hover:not(:disabled){background:#ab9877!important;filter:none!important;border-color:#162a39!important}
body#bernold-public :is(.bernold-cta,main .button,main .primary,.sheet .toolbar button):focus-visible{outline:3px solid #162a39!important;outline-offset:4px!important;box-shadow:0 0 0 4px #fff!important}
body#bernold-public :is(button:disabled,[aria-disabled="true"]){opacity:.5;cursor:not-allowed}
body#bernold-public main :is(.knowledge-buttons,.flow-actions,.actions){gap:16px}
body#bernold-public :is(.knowledge-case-cta,.practice-entry){margin-top:56px}
body#bernold-public .knowledge-case-cta>.bernold-cta{display:flex!important;margin:28px 0 0 auto!important;width:360px;min-height:64px!important;padding:18px 22px!important}
body#bernold-public :is(.resource-heading,.section-head)>*{min-width:0}
body#bernold-public .site-menu-panel a[aria-current="page"]{background:#f3efe7;border-radius:8px;font-weight:750}
/* Printable worksheets keep their working hierarchy; only screen styles change. */
body#bernold-public .sheet h1{font-size:var(--public-title)!important;line-height:1.25!important}
body#bernold-public .sheet :is(.intro,.note){font-size:var(--public-copy);line-height:1.65}
@media(max-width:700px){body#bernold-public{--public-title:1.625rem;--public-card:1.375rem;--public-copy:1rem}}
}

/* Quiet, non-interactive industry markers for reference cards. */
.knowledge-case .reference-title{display:flex;align-items:flex-start;gap:14px}
.reference-title>span{min-width:0}
.reference-icon{display:block;flex:0 0 28px;width:28px;height:28px;margin-top:2px;color:#8d7956}
@media(max-width:700px){.knowledge-case .reference-title{gap:12px}.reference-icon{flex-basis:26px;width:26px;height:26px}}

/* One readable text palette across public pages, with explicit dark surfaces. */
@media screen {
body#bernold-public main{--text-heading:#162a39;--text-copy:#284252;--text-muted:#5e6e76;--text-accent:#806841;color:var(--text-copy);font-size:var(--public-copy);line-height:1.65}
body#bernold-public main :is(.hero-card,.mindset,.contact,.market-intro,.check-intro,.check-result,.knowledge-result,.demo-top,.hb-hero,.hb-home-teaser){--text-heading:#fff;--text-copy:#dce7eb;--text-muted:#c7d6dc;--text-accent:#d9c49d}
body#bernold-public main :is(h1,h2,h3,h4,h5,h6,blockquote){color:var(--text-heading)!important}
body#bernold-public main :is(p,li,dd,dt){color:var(--text-copy)!important}
body#bernold-public main :is(h4,h5,h6){font-size:var(--public-copy)!important;line-height:1.4!important;font-weight:700!important}
body#bernold-public main :is(.note,.demo-note,.hb-note,.matchdesk-note,.check-note,.hb-book-meta,small){color:var(--text-muted)!important;font-size:.875rem!important;line-height:1.6!important}
body#bernold-public main :is(.eyebrow,.tag,.hb-kicker,.hb-number,.resource-type,.demo-eyebrow,.demo-kicker,.choice-kicker){color:var(--text-accent)!important;font-size:.75rem!important;line-height:1.6!important;letter-spacing:.1em!important}
/* Feedback retains its meaning; it is never treated as decorative body copy. */
body#bernold-public main :is([role="alert"],.compass-error){color:#9b2920!important}
}
