/* Dr. Sami chair materials - shared styles
   Light mode only. Palette and type match uthealth-obgyn-chair/business-plan.html.
   Icons are inline Feather SVGs (stroke="currentColor"). No emojis. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --navy: #13294B;
  --teal: #0F7C80;
  --coral: #C8553D;
  --ink: #1d2433;
  --muted: #5a6475;
  --line: #d9dee6;
  --panel: #f4f6f9;
  --bg: #ffffff;
  --surface: #ffffff;
  --heading: #13294B;
  --link: #0F7C80;
  --teal-tint: #e7f3f3;
  --coral-tint: #faeeea;
  --navy-tint: #e9edf4;
  --pos: #0b6b4f;
  --neg: #b23f28;
  --nav-bg: #13294B;
  --nav-ink: #ffffff;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 2px 8px rgba(19, 41, 75, .05);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 4px; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; }
h1 { line-height: 1.2; }
h2 {
  font-size: 21px; margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; scroll-margin-top: 72px;
}
h3 { font-size: 16px; margin: 22px 0 8px; }
h4 { font-size: 14.5px; margin: 0 0 6px; }
small, .small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.pos { color: var(--pos); font-weight: 600; }
.neg { color: var(--neg); font-weight: 600; }
.nowrap { white-space: nowrap; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.lg { width: 22px; height: 22px; }
h2 .icon { color: var(--teal); width: 22px; height: 22px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 56px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 6px 10px; border-radius: 4px; }

/* ---------- Top nav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); color: var(--nav-ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.topnav-inner { max-width: 960px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.topnav .brand { color: var(--nav-ink); text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.topnav .brand span { font-weight: 500; opacity: .75; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.topnav li { margin: 0; }
.topnav ul a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px;
  color: var(--nav-ink); opacity: .82; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.topnav ul a:hover { opacity: 1; background: rgba(255, 255, 255, .10); }
.topnav ul a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .18); font-weight: 600; }
.topnav .icon { width: 16px; height: 16px; vertical-align: 0; }

/* ---------- Page header ---------- */
.page-header { padding: 30px 0 18px; border-bottom: 3px solid var(--heading); margin-bottom: 8px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 6px; }
.page-header h1 { font-size: 30px; margin: 0 0 8px; font-weight: 700; }
.page-header .lead { font-size: 17px; color: var(--ink); margin: 0 0 10px; max-width: 46em; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card.teal { border-top: 3px solid var(--teal); }
.card.navy { border-top: 3px solid var(--heading); }
.card.coral { border-top: 3px solid var(--coral); }
.card.panel { background: var(--panel); box-shadow: none; }

a.link-card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.link-card:hover { border-color: var(--teal); }
a.link-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.link-card .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.link-card .ic.navy { background: var(--navy-tint); color: var(--heading); }
.link-card .ic.coral { background: var(--coral-tint); color: var(--coral); }
.link-card .body { min-width: 0; }
.link-card .t { display: block; font-weight: 600; color: var(--heading); font-size: 15.5px; margin-bottom: 2px; }
.link-card .d { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.link-card .u { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.link-card .u .icon { width: 13px; height: 13px; vertical-align: 0; }
.link-card .keys { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

kbd {
  display: inline-block; font: 600 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 3px 5px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); color: var(--ink);
}

/* Dated list (notes and feedback) */
.dated { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.dated li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); margin: 0; flex-wrap: wrap; }
.dated li:last-child { border-bottom: 0; }
.dated time { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--teal); min-width: 92px; font-variant-numeric: tabular-nums; }
.dated a { font-weight: 600; }
.dated .d { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-left: 106px; }

/* ---------- Callouts ---------- */
.callout { background: var(--teal-tint); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 6px; margin: 12px 0 16px; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--coral-tint); border-left-color: var(--coral); }
.callout.navy { background: var(--navy-tint); border-left-color: var(--heading); }
.callout .ttl { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }

/* ---------- Tables ---------- */
.tw { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--nav-bg); color: #fff; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--panel); }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--teal-tint) !important; border-top: 2px solid var(--teal); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px; vertical-align: 1px; white-space: nowrap; line-height: 1.5;
}
.tag .icon { width: 12px; height: 12px; vertical-align: 0; }
.tag.decision { background: var(--navy-tint); color: var(--heading); }
.tag.question { background: var(--teal-tint); color: var(--teal); }
.tag.unv { background: var(--coral-tint); color: var(--neg); }
.tag.est { background: var(--navy-tint); color: var(--heading); }

/* ---------- Numbered checklist ---------- */
ol.checklist { list-style: none; counter-reset: ck; padding: 0; margin: 8px 0 14px; }
ol.checklist > li { counter-increment: ck; position: relative; padding: 10px 12px 10px 48px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
ol.checklist > li::before {
  content: counter(ck); position: absolute; left: 12px; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
ol.checklist > li > :last-child { margin-bottom: 0; }
ol.checklist.compact > li { padding: 7px 10px 7px 42px; margin-bottom: 6px; }
ol.checklist.compact > li::before { top: 7px; left: 10px; width: 22px; height: 22px; font-size: 12px; }

/* ---------- Game plan specifics ---------- */
.hook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 12px; }
.hook .card { text-align: left; }
.hook .big { font-size: 40px; font-weight: 700; line-height: 1; color: var(--teal); margin-bottom: 6px; }
.hook .card.coral .big { color: var(--coral); }
.hook .card.navy .big { color: var(--heading); }
.hook .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hook .say { font-size: 16px; font-weight: 600; color: var(--heading); margin: 0; }

.pitch { font-size: 19px; font-weight: 600; color: var(--heading); line-height: 1.4; margin: 0 0 8px; }
.close-lines { font-size: 22px; font-weight: 700; color: var(--heading); line-height: 1.3; margin: 0 0 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 10px 0 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 8px; padding: 12px 14px; }
.stat .v { font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--heading); }
.stat .l { font-size: 13px; color: var(--ink); margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 6px; }

.qa { display: grid; gap: 10px; }
.qa .card h4 { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.qa .card h4 .icon { color: var(--coral); margin-top: 1px; }
.qa .card p { font-size: 14px; }
.qa .src { font-size: 12.5px; color: var(--muted); }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--teal);
  background: var(--teal); color: #fff; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--teal); }

/* Source links next to a fact: "Plan 7", "Slide 24" */
.refs { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: 1px; }
a.ref {
  display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none;
  padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--link); background: var(--surface);
}
a.ref:hover { border-color: var(--link); }

/* Jump list */
.toc { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.toc li { margin: 0; }
.toc a { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--teal); color: var(--teal); }

/* Plain list of short items with a tag in front */
ul.tagged { list-style: none; padding: 0; margin: 6px 0 12px; }
ul.tagged > li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.tagged > li:last-child { border-bottom: 0; }
ul.tagged > li > .tag { margin-right: 6px; }

/* One-card summary */
.onecard { border: 2px solid var(--heading); border-radius: 10px; padding: 16px 18px; background: var(--surface); margin-top: 12px; }
.onecard h3 { margin: 0 0 4px; font-size: 18px; }
.onecard .oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 10px; }
.onecard h5 { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); }
.onecard ul, .onecard ol { font-size: 13px; margin: 0; padding-left: 18px; }
.onecard li { margin-bottom: 2px; }
.onecard .oc-pitch { font-size: 14.5px; font-weight: 600; color: var(--heading); margin: 6px 0 0; }
.onecard .oc-close { font-weight: 700; color: var(--heading); }
.onecard .full { grid-column: 1 / -1; }

/* Footer */
.site-foot { margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--heading); font-size: 13px; color: var(--muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .page-header h1 { font-size: 24px; }
  .page-header .lead { font-size: 15.5px; }
  .hook, .twocol, .onecard .oc-grid { grid-template-columns: 1fr; }
  .pitch { font-size: 17px; }
  .close-lines { font-size: 19px; }
  .dated .d { margin-left: 0; }
}
@media (max-width: 560px) {
  .topnav-inner { padding: 6px 12px; gap: 2px 8px; }
  .topnav .brand span { display: none; }
  .topnav ul { width: 100%; justify-content: space-between; }
  .topnav ul a { padding: 6px 6px; font-size: 13px; gap: 4px; }
  /* Tables marked .stack become one block per row on phones */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border-bottom: 0; padding: 4px 12px; background: transparent !important; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .topnav .icon { width: 14px; height: 14px; }
  h2 { font-size: 19px; }
}
@media (max-width: 420px) {
  .topnav ul a .icon { display: none; }
}

/* ---------- Print ---------- */
@media print {
  :root { --line: #c9d0db; --link: #1d2433; --shadow: none; }
  @page { size: letter; margin: 0.5in 0.55in; }
  body { font-size: 10pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topnav, .no-print, .skip, .toc { display: none !important; }
  a.ref { border: 0; padding: 0 2px; color: var(--muted); }
  .wrap { max-width: none; padding: 0; }
  a { color: var(--ink); text-decoration: none; }
  h2 { font-size: 14pt; margin-top: 18px; break-after: avoid; page-break-after: avoid; }
  h3 { break-after: avoid; }
  .card, .stat, .callout, tr, ol.checklist > li, .dated li { break-inside: avoid; page-break-inside: avoid; }
  .tw { overflow: visible; }
  table { font-size: 8.8pt; }
  .page-header { padding-top: 0; }
  .onecard-section { break-before: page; page-break-before: always; }
  .onecard { border-width: 1.5px; padding: 10px 12px; font-size: 9pt; }
  .onecard .oc-grid { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .onecard ul, .onecard ol { font-size: 8.6pt; }
  .onecard .oc-pitch { font-size: 10pt; }
  .onecard h3 { font-size: 13pt; }

  /* "Print one-card only" mode, set by a button on the game plan page */
  body.print-card-only main > *:not(.onecard-section) { display: none !important; }
  body.print-card-only .site-foot { display: none !important; }
  body.print-card-only .onecard-section { break-before: auto; page-break-before: auto; }
  body.print-card-only .onecard-section > h2 { margin-top: 0; }
}
