/* physicianbuyoutplan.com
   Palette: ink #14202c, teal #1b6b6e (link text uses #135a5d for contrast), copper #b5652c (accents only),
   paper #f7f4ee, mist #e9e4da, slate text #2a3441.
   Type: Newsreader (display) + Public Sans (body). */

:root {
  --ink: #14202c;
  --slate: #2a3441;
  --muted: #5a6573;
  --teal: #1b6b6e;
  --teal-dark: #135a5d;
  --teal-tint: #e3efee;
  --copper: #b5652c;
  --copper-dark: #8d4a1c;
  --copper-tint: #f6ebe1;
  --paper: #f7f4ee;
  --mist: #e9e4da;
  --line: #d8d2c6;
  --white: #ffffff;
  --danger-tint: #fbe9e6;
  --danger: #8c2f22;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 70ch;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 44, 0.06), 0 8px 24px rgba(20, 32, 44, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.3rem; margin-top: 1.6em; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
strong { color: var(--ink); font-weight: 600; }
small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 4px solid var(--copper); font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
blockquote p:last-child { margin-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.brand-sub { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; flex-wrap: wrap; }
.site-nav a { display: block; padding: 0.55rem 0.6rem; text-decoration: none; color: var(--slate); font-size: 0.9rem; font-weight: 500; border-radius: 6px; }
.site-nav a:hover { background: var(--teal-tint); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 6px 6px 0 0; }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.9rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding-bottom: 0.75rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.75rem 0.5rem; font-size: 1rem; }
}

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 3rem 0 2.6rem; }
.hero h1 { color: var(--white); max-width: 22ch; margin-bottom: 0.6rem; }
.hero .lede { font-size: 1.22rem; line-height: 1.55; max-width: 60ch; color: #dfe6ea; margin-bottom: 1rem; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: #e8b48a; margin-bottom: 0.9rem; }
.hero .byline { font-size: 0.9rem; color: #b8c3cb; margin: 0; }
.hero .byline a { color: #e8b48a; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 0.5rem; font-size: 0.85rem; color: #b8c3cb; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #6f7f8b; }
.breadcrumb a { color: #dfe6ea; }
.page-index .hero { padding: 4rem 0 3.5rem; background: linear-gradient(160deg, #14202c 0%, #1a3a44 100%); }
.page-index .hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* Content */
.content-wrap { display: block; padding: 2.5rem 0 3rem; }
.article { max-width: var(--measure); }
.article > p:first-of-type { font-size: 1.1rem; }
.short-answer { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1.8rem; box-shadow: var(--shadow); }
.short-answer-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 0.4rem; }
.short-answer p:last-child { margin-bottom: 0; font-size: 1.08rem; color: var(--ink); }
.key-facts { background: var(--mist); border-radius: var(--radius); padding: 1.3rem 1.5rem 0.6rem; margin-bottom: 2rem; }
.key-facts h2 { font-size: 1.15rem; margin: 0 0 0.9rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.key-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.6rem 1.5rem; margin: 0; }
.key-facts .fact { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.key-facts dt { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.key-facts dd { margin: 0.15rem 0 0; font-size: 0.95rem; }

.callout { border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.6rem 0; border: 1px solid var(--line); background: var(--white); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; display: block; }
.callout.warn { background: var(--danger-tint); border-color: #e7c3bc; }
.callout.warn .callout-title { color: var(--danger); }
.callout.note { background: var(--teal-tint); border-color: #c5dcda; }
.callout.example { background: var(--copper-tint); border-color: #ead4c1; }
.callout.example .callout-title { color: var(--copper-dark); }

.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 520px; }
caption { text-align: left; font-weight: 600; color: var(--ink); padding: 0.8rem 1rem 0.3rem; caption-side: top; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); color: var(--ink); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.steps h3 { margin-top: 0; font-size: 1.15rem; }

.faq { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1rem 2.2rem 1rem 0; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.85rem; font-size: 1.5rem; line-height: 1; color: var(--teal); font-weight: 400; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary h3 { display: inline; font-size: 1.12rem; margin: 0; font-family: var(--font-body); font-weight: 600; }
.faq-answer { padding: 0 0 1.2rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.cta { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 2rem 2rem 2.2rem; margin-top: 3rem; max-width: 820px; }
.cta h2 { color: var(--white); margin-top: 0; font-size: 1.6rem; }
.cta p { color: #dfe6ea; max-width: 60ch; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.button { display: inline-block; background: var(--copper-dark); color: var(--white); text-decoration: none; padding: 0.8rem 1.3rem; border-radius: 8px; font-weight: 600; border: 2px solid var(--copper-dark); font-size: 0.98rem; }
.button:hover { background: #6f3812; border-color: #6f3812; color: var(--white); }
.button-secondary { background: transparent; color: var(--white); border-color: #7a8a95; }
.button-secondary:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }
.button-light { background: var(--teal); border-color: var(--teal); }
.button-light:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.cta .button:focus-visible, .cta .button-secondary:focus-visible { outline-color: var(--white); }

/* Cards and grids used on hubs and the homepage */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin: 1.6rem 0 2rem; list-style: none; padding: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--teal-dark); text-decoration: underline; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card .card-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper-dark); font-weight: 700; margin-bottom: 0.4rem; }
.full { max-width: none; }
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat .stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--ink); line-height: 1.1; display: block; }
.stat .stat-label { font-size: 0.9rem; color: var(--muted); display: block; margin-top: 0.3rem; }
.stat .stat-src { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 0.4rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.home-section { padding: 1rem 0 0.5rem; }
.home-section h2 { margin-top: 1.2rem; }
.eyebrow-dark { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; color: var(--copper-dark); margin-bottom: 0.4rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--teal); }
.x-list li::before { background: var(--copper); }

/* Calculator */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.calc legend { font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; font-size: 1.05rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem 1.2rem; }
.calc label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.calc .hint { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.calc input, .calc select { width: 100%; font: inherit; padding: 0.55rem 0.7rem; border: 1px solid #b9b2a5; border-radius: 6px; background: var(--white); color: var(--ink); }
.calc-results { margin-top: 1.5rem; }
.calc-results table { min-width: 0; }
.calc-results tfoot td { font-weight: 700; color: var(--ink); background: var(--teal-tint); }
.calc-note { font-size: 0.88rem; color: var(--muted); }
output { display: block; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 2rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 0.5rem; }
.footer-heading { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; color: var(--slate); }
.footer-col a:hover { text-decoration: underline; color: var(--ink); }
.disclosure { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.disclosure a { color: var(--teal-dark); }

@media print {
  .site-header, .site-footer .footer-grid, .cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; padding: 0; }
  .hero h1, .hero .lede { color: #000; }
}

/* Wide layouts for the homepage and hub pages */
.page-index .article, .page-specialties .article, .page-states .article, .page-faq .article { max-width: none; }
.page-index .article > .full > .home-section p, .page-specialties .article > .full > p, .page-states .article > .full > p { max-width: var(--measure); }
.glossary dt { font-weight: 700; color: var(--ink); margin-top: 1.1rem; font-size: 1.05rem; }
.glossary dd { margin: 0.2rem 0 0; }
