/* Made by app-landing-seo blog.py from blog.json: change the theme there, not here. */
:root {
  --bk-accent: #1D5FA8;
  --bk-accent-soft: #E1ECF7;
  --bk-ink: #1A1B22;
  --bk-muted: #5C5E6B;
  --bk-card: #FFFFFF;
  --bk-line: #DDDEE5;
  --bk-paper: #F4F4F6;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bk-accent: #8DBBF0;
  --bk-accent-soft: #17304D;
  --bk-ink: #ECECF0;
  --bk-muted: #A7A8B4;
  --bk-card: #1B1C21;
  --bk-line: #33353D;
  --bk-paper: #111216;
} }
:root[data-theme="dark"] {
  --bk-accent: #8DBBF0;
  --bk-accent-soft: #17304D;
  --bk-ink: #ECECF0;
  --bk-muted: #A7A8B4;
  --bk-card: #1B1C21;
  --bk-line: #33353D;
  --bk-paper: #111216;
}
/* Posts, sources, the doctor box and motion icons. The site's own stylesheet sets the font, the
   header and the footer; this only styles what's inside <article class="bk-post">. No inline styles
   anywhere, so it works under style-src 'self'. */

.bk-post { max-width: 680px; margin: 0 auto; padding: 8px 0 48px; color: var(--bk-ink); }
.bk-post h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.12; margin: 8px 0 14px; letter-spacing: -0.01em; }
.bk-post h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 80px; }
.bk-post h3 { font-size: 18px; margin: 26px 0 6px; }
.bk-post p, .bk-post li { font-size: 18px; line-height: 1.6; }
.bk-post ul, .bk-post ol { padding-left: 1.3em; }
.bk-post li { margin: 4px 0; }
.bk-post a { color: var(--bk-accent); text-underline-offset: 3px; }
.bk-crumbs { font-size: 15px; color: var(--bk-muted); }
.bk-crumbs a { color: var(--bk-muted); }
.bk-lead { font-size: 20px !important; color: var(--bk-ink); }
.bk-byline { font-size: 15px !important; color: var(--bk-muted); border-bottom: 1px solid var(--bk-line); padding-bottom: 18px; margin-bottom: 8px; }
.bk-note { background: var(--bk-card); border-left: 4px solid var(--bk-line); padding: 12px 16px; border-radius: 0 12px 12px 0; }

/* Notes and sources */
.bk-cite { font-size: 0.68em; line-height: 0; margin-left: 1px; }
.bk-cite a { text-decoration: none; font-weight: 700; padding: 0 2px; }
.bk-cite a:focus-visible, .bk-back:focus-visible { outline: 2px solid var(--bk-accent); border-radius: 4px; }
.bk-sources { margin-top: 48px; border-top: 1px solid var(--bk-line); }
.bk-sources h2 { font-size: 19px; }
.bk-sources li { font-size: 15px !important; line-height: 1.5; color: var(--bk-muted); margin: 8px 0; overflow-wrap: anywhere; }
.bk-sources li:target { background: var(--bk-accent-soft); border-radius: 8px; }
.bk-back { text-decoration: none; margin-left: 4px; }
.bk-back a { text-decoration: none; margin: 0 2px; }
.bk-disclaimer { font-size: 14px !important; color: var(--bk-muted); margin-top: 18px; }

/* The doctor box */
.bk-doctor { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 20px; padding: 4px 22px 10px; margin: 32px 0; }
.bk-doctor h2 { margin-top: 18px; font-size: 20px; }

/* Colour chart (`::: colours`): swatches drawn as SVG fills; a keyline so black and pale show on any page */
.bk-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 24px 0 8px; }
@media (max-width: 520px) { .bk-colours { grid-template-columns: 1fr 1fr; } }
.bk-colour span { min-width: 0; overflow-wrap: anywhere; }
.bk-colour { min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 16px; padding: 10px 12px; text-decoration: none; color: var(--bk-ink) !important; font-size: 16px; font-weight: 600; line-height: 1.25; }
a.bk-colour:hover { border-color: var(--bk-accent); }
.bk-swatch { flex: none; overflow: visible; }
.bk-swatch circle { stroke: var(--bk-line); stroke-width: 1.5; }
.bk-colour-h { display: flex; align-items: center; gap: 10px; }
@media print { .bk-colours { grid-template-columns: repeat(4, 1fr); } .bk-swatch circle { stroke: #999; } }

/* App and related */
.bk-cta { background: var(--bk-accent-soft); border-radius: 22px; padding: 6px 24px 18px; margin: 40px 0; }
.bk-cta h2 { margin-top: 20px; }
.bk-button { display: inline-block; background: var(--bk-accent); color: var(--bk-card) !important; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; }
.bk-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bk-card { display: flex; flex-direction: column; gap: 6px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--bk-ink) !important; }
.bk-card small { color: var(--bk-muted); font-size: 14px; }
.bk-card strong { font-size: 18px; line-height: 1.3; }
.bk-card span { color: var(--bk-muted); font-size: 15px; line-height: 1.45; }
.bk-card:hover { border-color: var(--bk-accent); }
.bk-index { max-width: 900px; }
.bk-table { overflow-x: auto; margin: 18px 0; }
.bk-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.bk-table th, .bk-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bk-line); vertical-align: top; }

/* Motion icons. The resting state is the final frame (every step lit); the animation only adds
   the dark moments before each step lights. Plays once, under 5 seconds (WCAG 2.2.2), or follows
   the scroll where the browser can; nothing moves with Reduce Motion. */
.bk-motion { margin: 28px 0; padding: 22px 16px 14px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 22px; text-align: center; }
.bk-motion svg { width: 100%; max-height: 150px; overflow: visible; }
.bk-appear svg { max-height: 110px; }
.bk-motion figcaption { font-size: 15px; color: var(--bk-muted); margin-top: 10px; line-height: 1.45; }
.bk-tile { fill: var(--bk-accent-soft); stroke: var(--bk-accent); stroke-width: 2; }
.bk-icon { fill: var(--bk-accent); }
.bk-arrow { fill: none; stroke: var(--bk-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bk-label { font-family: inherit; font-size: 15px; font-weight: 600; fill: var(--bk-ink); text-anchor: middle; }

@media (prefers-reduced-motion: no-preference) {
  .bk-motion .bk-tile, .bk-motion .bk-icon, .bk-motion .bk-arrow, .bk-motion .bk-label {
    animation-duration: 4.2s; animation-delay: .5s; animation-timing-function: ease-out; animation-fill-mode: both; animation-iteration-count: 1;
  }
  .bk-s1 .bk-tile { animation-name: bk-tile-1; } .bk-s1 .bk-icon, .bk-s1 .bk-label { animation-name: bk-ink-1; }
  .bk-s2 .bk-tile { animation-name: bk-tile-2; } .bk-s2 .bk-icon, .bk-s2 .bk-label { animation-name: bk-ink-2; } .bk-a2 { animation-name: bk-arrow-2; }
  .bk-s3 .bk-tile { animation-name: bk-tile-3; } .bk-s3 .bk-icon, .bk-s3 .bk-label { animation-name: bk-ink-3; } .bk-a3 { animation-name: bk-arrow-3; }
  .bk-s4 .bk-tile { animation-name: bk-tile-4; } .bk-s4 .bk-icon, .bk-s4 .bk-label { animation-name: bk-ink-4; } .bk-a4 { animation-name: bk-arrow-4; }
  .bk-appear .bk-step { animation: bk-arrive 1.4s .4s ease-out both; transform-box: fill-box; transform-origin: center; }
  .bk-appear .bk-tile, .bk-appear .bk-icon { animation: none; }

  @supports (animation-timeline: view()) {
    .bk-motion .bk-tile, .bk-motion .bk-icon, .bk-motion .bk-arrow, .bk-motion .bk-label, .bk-appear .bk-step {
      animation-timeline: view(); animation-range: entry 40% cover 50%; animation-delay: 0s; animation-duration: auto;
    }
  }
}

@keyframes bk-tile-1 { 0%, 6% { fill: var(--bk-card); stroke: var(--bk-line); } 14%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-1 { 0%, 6% { fill: var(--bk-muted); opacity: .45; } 14%, 100% { fill-opacity: 1; opacity: 1; } }
@keyframes bk-tile-2 { 0%, 30% { fill: var(--bk-card); stroke: var(--bk-line); } 38%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-2 { 0%, 30% { fill: var(--bk-muted); opacity: .45; } 38%, 100% { opacity: 1; } }
@keyframes bk-arrow-2 { 0%, 22% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 32%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-tile-3 { 0%, 54% { fill: var(--bk-card); stroke: var(--bk-line); } 62%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-3 { 0%, 54% { fill: var(--bk-muted); opacity: .45; } 62%, 100% { opacity: 1; } }
@keyframes bk-arrow-3 { 0%, 46% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 56%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-tile-4 { 0%, 76% { fill: var(--bk-card); stroke: var(--bk-line); } 84%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-4 { 0%, 76% { fill: var(--bk-muted); opacity: .45; } 84%, 100% { opacity: 1; } }
@keyframes bk-arrow-4 { 0%, 68% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 78%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-arrive { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 60% { opacity: 1; transform: translateY(0) scale(1.04); } 100% { opacity: 1; transform: none; } }

/* Tool pages: forms (form-summary.js), the printed summary, printable tables */
.bk-tool form fieldset { border: 1px solid var(--bk-line); border-radius: 20px; background: var(--bk-card); padding: 16px 18px 18px; margin: 0 0 16px; min-width: 0; }
.bk-tool legend { font-weight: 700; font-size: 19px; padding: 0 6px; }
.bk-tool form label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 16px; }
.bk-tool .bk-hint { color: var(--bk-muted); font-size: 15px !important; margin: 0 0 8px; }
.bk-tool input[type="text"], .bk-tool input[type="number"], .bk-tool input[type="date"], .bk-tool input[type="time"], .bk-tool select, .bk-tool textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; color: var(--bk-ink); background: var(--bk-paper);
  border: 1px solid var(--bk-line); border-radius: 12px; padding: 10px 12px; }
.bk-tool textarea { min-height: 80px; resize: vertical; }
.bk-tool input:focus-visible, .bk-tool select:focus-visible, .bk-tool textarea:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 1px; }
.bk-checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.bk-tool form label.bk-check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; padding: 10px 12px; border: 1px solid var(--bk-line); border-radius: 12px; background: var(--bk-paper); cursor: pointer; }
.bk-check input { width: 20px; height: 20px; accent-color: var(--bk-accent); flex: none; }
.bk-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); padding: 10px 0; border-top: 1px solid var(--bk-line); }
.bk-row:first-of-type { border-top: 0; }
.bk-row label { margin-top: 0 !important; }
.bk-add { margin-top: 10px; font: inherit; font-weight: 700; color: var(--bk-accent); background: var(--bk-accent-soft); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.bk-actions[hidden] { display: none; }
.bk-actions button { font: inherit; font-weight: 700; font-size: 17px; border-radius: 999px; padding: 12px 20px; cursor: pointer; border: 0; }
.bk-actions .bk-primary { background: var(--bk-accent); color: var(--bk-card); }
.bk-actions .bk-quiet { background: var(--bk-accent-soft); color: var(--bk-accent); }
.bk-private { background: var(--bk-accent-soft); border-radius: 16px; padding: 12px 16px; font-size: 16px !important; }
.bk-summary { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 20px; padding: 20px 22px; margin: 22px 0; }
.bk-summary[hidden] { display: none; }
.bk-summary h2 { margin-top: 0; }
.bk-summary h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--bk-muted); margin: 18px 0 4px; }
.bk-summary p, .bk-summary li, .bk-summary td, .bk-summary th { font-size: 16px !important; }
.bk-summary-table { width: 100%; border-collapse: collapse; }
.bk-summary-table th, .bk-summary-table td { text-align: left; border-bottom: 1px solid var(--bk-line); padding: 6px 8px 6px 0; vertical-align: top; }
.bk-empty, .bk-muted { color: var(--bk-muted); }
.bk-empty { font-style: italic; }
.bk-small { font-size: 14px !important; }
.bk-blank { border-bottom: 1px solid var(--bk-line); min-height: 28px; margin: 6px 0; }
/* Body chart (`::: html` with an SVG: injection sites and the like). Areas are shaded the same, with no
   order or numbers: the page records where, the medicine's leaflet says which areas. */
.bk-body { display: block; width: 100%; max-width: 460px; margin: 12px auto; }
.bk-body .bk-figure { fill: var(--bk-paper); stroke: var(--bk-muted); stroke-width: 1.5; }
.bk-body .bk-zone { fill: var(--bk-accent-soft); stroke: var(--bk-accent); stroke-width: 1.5; }
.bk-body text { font-family: inherit; font-size: 13px; fill: var(--bk-ink); }
.bk-body .bk-caption { font-weight: 700; fill: var(--bk-muted); text-anchor: middle; }
.bk-body line { stroke: var(--bk-muted); stroke-width: 1; }
@media print { .bk-body .bk-zone { fill: #eee; stroke: #555; } .bk-body .bk-figure { fill: #fff; stroke: #555; } }
.bk-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 16px; margin: 4px 0 18px; }
.bk-langs a[aria-current] { font-weight: 700; color: var(--bk-ink) !important; text-decoration: none; }
.bk-print-wrap { overflow-x: auto; margin: 16px 0; }
.bk-print { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--bk-card); }
.bk-print caption { text-align: left; font-weight: 700; font-size: 17px; padding: 6px 0; }
.bk-print th, .bk-print td { border: 1px solid var(--bk-line); padding: 6px 8px; text-align: left; font-size: 14px; }
.bk-print th { background: var(--bk-paper); }
.bk-print td { height: 40px; }

@media print {
  html.bk-summary-ready body * { visibility: hidden; }
  html.bk-summary-ready .bk-summary, html.bk-summary-ready .bk-summary * { visibility: visible; }
  html.bk-summary-ready .bk-summary { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; margin: 0; }
  .bk-tool form, .bk-actions, .bk-private { display: none !important; }
  .bk-print-wrap { overflow: visible; }
  .bk-print { min-width: 0; }
  .bk-print th, .bk-print td { border-color: #888; }
  .bk-page-break { break-before: page; }
  .no-print { display: none !important; }
}

@media print {
  .bk-motion, .bk-cta, .bk-related { display: none; }
  .bk-sources a::after { content: " (" attr(href) ")"; }
}
