/* HealthLink brand guidelines and style guide specimens (case-study page).
   Scoped to .hb so the portfolio's own styles are untouched. Values mirror healthlink.css. */
.hb { --navy: #0B2545; --teal: #087E8B; --sky: #2D9CDB; --soft: #DCEBFF; --mint: #38BFA7; --white: #FFFFFF;
  --deep-teal: #066670; --deep-sky: #1B6FA8; --deep-mint: #0B6B5C; --slate: #4A5F7A; --mist: #F2F7FF; --hair: #D3E2F5; --edge: #6F8CAD;
  font-family: Inter, system-ui, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; display: grid; gap: 24px; }
.hb h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.hb h4 { margin: 0; font-size: 0.95rem; }
.hb .hb-sub { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 64ch; }
.hb + .hb { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 8px; }

/* Header specimen: the supplied palette sheet, rebuilt */
.hb-head { padding: 24px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; gap: 8px; }
.hb-head b { font-size: 1.5rem; }
.hb-head strong { font-size: 1.15rem; }
.hb-head p { margin: 0; color: var(--soft); }
.hb-dots { display: flex; gap: 8px; margin-top: 8px; }
.hb-dots i { width: 36px; height: 36px; border-radius: 8px; }

/* Core swatches */
.hb-core { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 16px; }
.hb-core > div { display: grid; gap: 6px; }
.hb-core .chip { height: 72px; border-radius: 12px; border: 1px solid rgba(11, 37, 69, .12); }
.hb-core b { font-size: 1.05rem; }
.hb-core code, .hb-work code { font: 600 0.85rem Inter, system-ui, sans-serif; letter-spacing: .02em; color: var(--slate, #4A5F7A); }
.hb-core p, .hb-work p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Working shades */
.hb-work { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.hb-work > div { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px 16px; }
.hb-work > div + div { border-top: 1px solid var(--line); }
.hb-work .chip { width: 56px; height: 56px; border-radius: 10px; border: 1px solid rgba(11, 37, 69, .12); }
.hb-work b { display: block; font-size: 1rem; }
.hb-work .tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--soft); color: var(--navy); font-size: .78rem; font-weight: 700; }

/* Balance bar */
.hb-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.hb-bar span { display: block; }
.hb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.hb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(11, 37, 69, .15); }

/* Tables */
.hb-tbl-wrap { overflow-x: auto; }
.hb-tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.hb-tbl th, .hb-tbl td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-top: 1px solid var(--line); }
.hb-tbl thead th { border-top: 0; font-size: .82rem; color: var(--muted); }
.hb-tbl tbody th { font-weight: 700; }
.hb-pair { display: inline-grid; place-items: center; min-width: 64px; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: .9rem; border: 1px solid rgba(11, 37, 69, .12); }
.hb-res { font-weight: 700; white-space: nowrap; }
.hb-res.ok::before { content: "Pass  "; color: #0B6B5C; }
.hb-res.lg::before { content: "Graphics and large text only  "; color: #8A4B00; }
.hb-res.no::before { content: "Fail for text  "; color: #B3261E; }

/* Do and don't */
.hb-dd { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hb-dd > div { padding: 16px 18px; border-radius: 12px; background: var(--paper-2, #f4f4f2); }
.hb-dd ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.hb-dd .yes { border-top: 3px solid #0B6B5C; }
.hb-dd .no { border-top: 3px solid #B3261E; }

/* In-use specimens */
.hb-use { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hb-use > div { padding: 20px; border-radius: 12px; display: grid; gap: 10px; align-content: start; }
.hb-use .mock-btn { display: inline-block; justify-self: start; padding: 12px 20px; border-radius: 12px; background: #087E8B; color: #fff; font-weight: 700; }
.hb-use .mock-tag { display: inline-block; justify-self: start; padding: 3px 10px; border-radius: 8px; font-size: .85rem; font-weight: 700; }
.hb-code { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--navy); color: #DCEBFF; font: 0.82rem/1.6 ui-monospace, Menlo, monospace; overflow-x: auto; }
@media (max-width: 560px) { .hb-work > div { grid-template-columns: 44px 1fr; } .hb-work .chip { width: 44px; height: 44px; } }

/* Long full-width specimens: keep the section label from following the reader over them */
.cs-section:has(.hb) .cs-label, .cs-section:has(.hl-web) .cs-label, .cs-section:has(.hl-team) .cs-label { position: static; }

/* Typography specimens */
.hb-aa { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: center; padding: 24px; border-radius: 16px; background: var(--soft); color: var(--navy); }
.hb-aa .big { font-size: 96px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.hb-aa .w { display: grid; gap: 2px; font-size: 1.25rem; }
.hb-aa .w small { font-size: .8rem; font-weight: 500; color: var(--slate); }
.hb-final { padding: 28px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; gap: 10px; justify-items: start; }
.hb-final b { font-size: 1.1rem; font-weight: 600; }
.hb-final strong { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.hb-final p { margin: 0; color: var(--soft); font-size: 1rem; }
.hb-final .mock-btn { display: inline-block; padding: 12px 20px; border-radius: 12px; background: #087E8B; color: #fff; font-weight: 600; margin-top: 6px; }
.hb-nums { display: grid; gap: 0; max-width: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; font-weight: 500; font-variant-numeric: tabular-nums; }
.hb-nums div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.hb-nums div:first-child { border-top: 0; }
@media (max-width: 560px) { .hb-aa { grid-template-columns: 1fr; } .hb-aa .big { font-size: 72px; } }

/* Specimen buttons follow the product: at least 30px radius. */
.hb-use .mock-btn, .hb-final .mock-btn { border-radius: 30px; }
.hb-use .mock-btn, .hb-final .mock-btn { height: 40px; padding: 0 20px; display: inline-flex; align-items: center; }
.hb-use .mock-btn, .hb-final .mock-btn { font-size: 15px; }

/* Spacing scale: value, bar, use */
.hb-space { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.hb-space li { display: grid; grid-template-columns: 36px 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 16px; font-size: .95rem; }
.hb-space li + li { border-top: 1px solid var(--line); }
.hb-space b { font-variant-numeric: tabular-nums; }
.hb-space i { display: block; height: 14px; background: var(--sp, #0588D8); border-radius: 2px; }
.idb .hb-space { --sp: #682F86; }
.dtb .hb-space { --sp: #0588D8; }
@media (max-width: 560px) { .hb-space li { grid-template-columns: 30px 56px minmax(0, 1fr); gap: 8px; padding: 10px 12px; } }
.cbb .hb-space { --sp: #4A1069; }
