/* Hypertension Geoff
   Light blue, white cards, a pink readout panel, and a mascot who refuses to
   be discouraged by your systolic. */

/* ---------- type (variable fonts, one file per family) ---------- */

@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Nunito-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/Nunito-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('/assets/fonts/Baloo2-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Baloo 2'; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('/assets/fonts/Baloo2-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('/assets/fonts/Caveat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('/assets/fonts/Caveat-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- palette ---------- */

:root {
  color-scheme: light;

  --sky:       #e9f3fd;
  --sky-deep:  #d9eafb;
  --card:      #ffffff;
  --card-2:    #f6f9fd;

  --pink:      #fdeff2;
  --pink-deep: #fbdde4;

  --navy:      #16325c;
  --navy-deep: #0b2246;
  --ink:       #16325c;
  --ink-soft:  #6b8099;
  --ink-faint: #90a4bb;

  --red:       #d50b1e;
  --sys:       #e01f2d;
  --dia:       #16325c;
  --pulse:     #8e5bc9;

  --badge-blue: #dbecfc;
  --badge-pink: #fcd3da;

  --rule-soft: #e6eef8;
  --rule:      #d5e3f2;

  --c-low:      #3f7fc4;
  --c-normal:   #12a06a;
  --c-elevated: #dda01c;
  --c-stage1:   #ef7a22;
  --c-stage2:   #e0492a;
  --c-crisis:   #c40d1e;

  --r:      22px;
  --r-sm:   14px;
  --shadow: 0 1px 2px rgba(22,50,92,.05), 0 8px 22px rgba(22,50,92,.07);
  --shadow-lg: 0 2px 6px rgba(22,50,92,.06), 0 18px 44px rgba(22,50,92,.10);

  --font:    'Nunito', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Baloo 2', 'Nunito', ui-rounded, system-ui, sans-serif;
  --hand:    'Caveat', 'Bradley Hand', cursive;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- masthead ---------- */

.masthead { padding: 22px 0 4px; }

.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.brand h1 { margin: 0; font-size: 0; line-height: 0; }
.brand .logo { display: block; width: clamp(210px, 34vw, 310px); height: auto; }
.brand .geoff-head { width: clamp(52px, 8vw, 74px); height: auto; display: block; flex: none; }

.cheer {
  font-family: var(--hand);
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0 4px;
  max-width: 31ch;
  position: relative;
}
.cheer .hb { color: var(--red); }
.cheer .ul {
  display: block; width: 62%; max-width: 235px; height: 10px; margin: -2px 0 0 7%;
  background: url('/assets/img/swash.svg') no-repeat left center / 100% 100%;
}

.topnav { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* ---------- sticky note badges ---------- */

.stickie {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.08;
  color: var(--navy);
  background: var(--badge-blue);
  padding: 9px 15px 10px;
  border-radius: 26px 20px 30px 18px / 20px 28px 18px 26px;
  transform: rotate(-2.2deg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .01em;
  display: inline-block;
}
.stickie.pink { background: var(--badge-pink); color: var(--red); transform: rotate(2deg); }
.stickie .hb { color: var(--red); text-transform: none; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.card h2 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -.005em;
}
.card h2 .qual { font-size: 18px; font-weight: 700; color: var(--navy); opacity: .82; }
.card .sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }

.grid { display: grid; gap: 18px; }
.grid.two  { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

section { margin: 20px 0; }

/* ---------- the readout ---------- */

.hero {
  background: var(--pink);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.hero h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px);
  color: var(--navy); margin: 0 0 1px; display: flex; align-items: center; gap: 10px;
}
.hero h2::before, .hero h2::after {
  content: ""; width: 16px; height: 18px; flex: none;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M14 2 3 6M14 9H3M14 16 3 12' stroke='%23000' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M14 2 3 6M14 9H3M14 16 3 12' stroke='%23000' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero h2::after { transform: scaleX(-1); }
.hero .sub { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 16px; }

.readout {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--pink-deep);
  border-radius: 18px;
  padding: 14px 24px;
}
.bignum { font-family: var(--display); font-weight: 800; line-height: .95;
          font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 2px; }
.bignum .v { font-size: clamp(50px, 9vw, 78px); letter-spacing: -.02em; }
.bignum .sys { color: var(--sys); }
.bignum .dia { color: var(--navy-deep); }
.bignum .slash { color: var(--navy-deep); opacity: .38; font-size: clamp(42px, 7vw, 66px); margin: 0 6px; }
.bignum .units { font-family: var(--font); font-weight: 700; font-size: 17px;
                 color: var(--ink-soft); align-self: flex-end; margin-left: 6px; }
.bignum .v.empty { color: var(--ink-faint); }

.readout .sep { width: 2px; align-self: stretch; background: rgba(22,50,92,.13); border-radius: 2px; }

.pulsebox { display: flex; align-items: baseline; gap: 8px; }
.pulsebox .hb { color: var(--red); font-size: 26px; line-height: 1; }
.pulsebox .p {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 54px);
  color: var(--navy-deep); font-variant-numeric: tabular-nums;
}
.pulsebox .units { font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--ink-soft); }

.taken { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; flex-wrap: wrap;
         font-weight: 700; font-size: 16px; color: var(--navy); }
.taken .stamp { white-space: nowrap; }
.taken .clock { width: 19px; height: 19px; flex: none; opacity: .75; }
.taken .meta { font-weight: 400; color: var(--ink-soft); font-size: 14.5px; }

.verdict-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }
.verdict-row .quip {
  font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.9vw, 28px);
  color: var(--cat, var(--navy)); margin: 0; line-height: 1.1;
}
.pill {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  text-transform: uppercase; background: var(--cat); color: #fff;
}
.pill.cat-elevated { color: #4a3403; }
.cat-low { --cat: var(--c-low); } .cat-normal { --cat: var(--c-normal); }
.cat-elevated { --cat: var(--c-elevated); } .cat-stage1 { --cat: var(--c-stage1); }
.cat-stage2 { --cat: var(--c-stage2); } .cat-crisis { --cat: var(--c-crisis); }

.blurb { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }

/* mascot + speech bubble */
.mascot { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.mascot img { width: clamp(180px, 24vw, 250px); height: auto; display: block; }
@media (max-width: 860px) { .mascot img { width: 172px; } }

.bubble {
  position: absolute; right: 74%; bottom: 58%;
  width: max(170px, 15vw);
  background: #fff; border-radius: 22px 22px 22px 6px;
  padding: 12px 16px 13px;
  font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.16;
  color: var(--navy); box-shadow: 0 4px 16px rgba(22,50,92,.12);
  text-align: center;
}
.bubble::after {
  content: ""; position: absolute; left: 14px; bottom: -13px;
  border: 8px solid transparent; border-top-color: #fff; border-right-width: 14px;
}
.bubble .hb { color: var(--red); display: block; font-size: 18px; margin-top: 2px; }
/* On a narrow screen the bubble sits beside Geoff rather than floating over
   him, which kept pushing it off the left edge of the card. */
@media (max-width: 860px) {
  .mascot { justify-content: flex-end; align-items: flex-end; gap: 4px; }
  .mascot img { width: min(165px, 42vw); }
  .bubble {
    position: static; width: auto; flex: 1 1 130px; max-width: 230px;
    margin-bottom: 30px; font-size: 18px;
    border-radius: 18px 18px 6px 18px;
  }
  .bubble::after {
    left: auto; right: -12px; bottom: 14px; top: auto;
    border: 7px solid transparent; border-left-color: #fff; border-left-width: 13px;
    border-top-color: transparent; border-right-width: 0;
  }
  .hero.serious .bubble::after { border-left-color: var(--c-crisis); border-top-color: transparent; }
}

/* Crisis drops the cheer entirely. */
.hero.serious { background: #fde8ea; box-shadow: 0 2px 6px rgba(196,13,30,.14), 0 18px 44px rgba(196,13,30,.16); }
.hero.serious .readout { background: #fbd5d9; }
.hero.serious .bubble { background: var(--c-crisis); color: #fff; font-family: var(--font); font-size: 15px; font-weight: 700; }
.hero.serious .bubble::after { border-top-color: var(--c-crisis); }
.hero.serious .bubble .hb { display: none; }

/* ---------- tiles ---------- */

.tile {
  background: var(--card); border: 1px solid var(--rule-soft);
  border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 16px 18px;
}
.tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
               color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.tile .value { font-family: var(--display); font-weight: 800; font-size: 31px;
               color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile .foot { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- charts ---------- */

.chartbox { width: 100%; overflow-x: auto; }
.chartbox svg { display: block; width: 100%; height: auto; }
.chart-empty {
  display: grid; place-items: center; text-align: center; min-height: 190px;
  color: var(--ink-faint); font-size: 15px; border: 2px dashed var(--rule);
  border-radius: var(--r-sm); padding: 24px;
}
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px;
          justify-content: center; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend i.sw-sys { background: var(--sys); }
.legend i.sw-dia { background: var(--dia); }
.legend i.sw-pulse { background: var(--pulse); }

.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--rule);
       border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: none; color: var(--ink-soft); font: inherit;
  font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- table ---------- */

.tablebox { overflow-x: auto; }
table.log { width: 100%; border-collapse: collapse; font-size: 15px; }
table.log th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); font-weight: 700; padding: 0 12px 10px;
  border-bottom: 2px solid var(--rule-soft); white-space: nowrap;
}
table.log td { padding: 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
table.log tr:last-child td { border-bottom: 0; }
table.log .num { font-family: var(--display); font-weight: 800; font-size: 19px;
                 font-variant-numeric: tabular-nums; white-space: nowrap; }
table.log .num .s { color: var(--sys); }
table.log .num .d { color: var(--navy-deep); }
table.log .when { color: var(--ink-soft); white-space: nowrap; }
table.log .note { color: var(--ink-soft); font-size: 14px; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--navy); background: var(--card); color: var(--navy);
  text-decoration: none; min-height: 44px;
  transition: transform .06s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--c-low); outline-offset: 2px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #b00818; border-color: #b00818; }
.btn.danger { color: var(--c-crisis); border-color: var(--c-crisis); }
.btn.danger:hover { background: var(--c-crisis); color: #fff; }
.btn.big { font-size: 17px; padding: 15px 26px; width: 100%; }
.btn.small { font-size: 13px; padding: 6px 14px; min-height: 36px; border-width: 1.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft);
               margin-bottom: 6px; text-transform: uppercase; letter-spacing: .07em; }
.field .hint { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

input[type=number], input[type=text], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; padding: 12px 15px; min-height: 48px;
  border: 2px solid var(--rule); border-radius: 14px;
  background: var(--card-2); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--c-low); outline-offset: 1px; border-color: var(--c-low); }
textarea { min-height: 84px; resize: vertical; }

.bp-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.bp-inputs input {
  font-family: var(--display); font-weight: 800; font-size: 38px; text-align: center;
  padding: 10px 6px; font-variant-numeric: tabular-nums; color: var(--navy); background: var(--pink);
  border-color: var(--pink-deep);
}
.bp-inputs .field label { text-align: center; }
@media (max-width: 480px) { .bp-inputs input { font-size: 28px; } }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row.between-top { justify-content: space-between; align-items: flex-start; }
.row.tight { flex-wrap: nowrap; gap: 8px; }
.row.actions { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.key-row { justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); }
.key-row:last-of-type { border-bottom: 0; }

/* ---------- notices ---------- */

.notice { border-radius: var(--r-sm); padding: 13px 17px; font-size: 15px;
          border: 1px solid var(--rule); background: var(--card-2); margin-bottom: 16px;
          border-left: 6px solid var(--ink-faint); }
.notice.good { border-left-color: var(--c-normal); background: #eefaf4; }
.notice.bad  { border-left-color: var(--c-crisis); background: #fdeef0; }
.notice.warn { border-left-color: var(--c-elevated); background: #fdf6e6; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- camera ---------- */

.shot { position: relative; overflow: hidden; background: #000; aspect-ratio: 4 / 3;
        border-radius: var(--r-sm); border: 2px solid var(--rule); }
.shot video, .shot canvas, .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .guide { position: absolute; left: 8%; right: 8%; top: 27%; height: 46%;
               border: 3px dashed #fff; border-radius: 12px; pointer-events: none;
               box-shadow: 0 0 0 100vmax rgba(11,34,70,.45); }
.shot .guide::after {
  content: "line up the numbers"; position: absolute; left: 0; right: 0; bottom: -30px;
  text-align: center; color: #fff; font-family: var(--hand); font-size: 19px; font-weight: 700;
  text-shadow: 0 1px 5px rgba(0,0,0,.9);
}
.progress { height: 10px; background: var(--rule); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s ease; }
.ocr-guess { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
             color: var(--ink-faint); word-break: break-all; }

/* ---------- footer ---------- */

.foot { margin: 34px 0 30px; padding-top: 22px; border-top: 1px solid var(--rule);
        color: var(--ink-faint); font-size: 13.5px; }
.footline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
            justify-content: space-between; margin-bottom: 20px; }
.footline .cheer-strip {
  font-family: var(--hand); font-weight: 700; font-size: 23px; color: var(--navy);
  background: var(--badge-blue); padding: 7px 22px 9px;
  border-radius: 30px 22px 34px 20px / 22px 30px 20px 30px;
  transform: rotate(-1.2deg);
}
.footline .cheer-strip .hb { color: var(--red); }
.footline .sign { display: flex; align-items: center; gap: 12px; }
.footline .sign img { width: 148px; height: auto; display: block; }
.footline .sign span { font-family: var(--hand); font-size: 18px; font-weight: 700;
                       color: var(--ink-soft); border-left: 1px solid var(--rule);
                       padding-left: 12px; max-width: 20ch; line-height: 1.15; }
.foot p { margin: 0 0 9px; max-width: 76ch; }
.foot a { color: var(--ink-soft); }

.center-page { max-width: 470px; margin: 5vh auto; padding: 0 18px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-faint); }
.strong { font-weight: 700; }
.hb { color: var(--red); }

.m0 { margin: 0; }
.mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; }
.mb-14 { margin-bottom: 14px; } .mb-18 { margin-bottom: 18px; }
.fs-13 { font-size: 13px; } .fs-125 { font-size: 12.5px; }
.fw-normal { font-weight: 400; text-transform: none; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.center-note { font-size: 13px; margin-top: 16px; text-align: center; }
.disclosure { cursor: pointer; color: var(--ink-soft); font-size: 15px; font-weight: 700; }

/* The hero's left column; min-width:0 lets the readout wrap instead of
   forcing the grid wider than the card. */
.hero .panel { min-width: 0; }
.card-notes { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- demo mode ----------
   Invented numbers must never be mistakable for real ones, so the banner is
   loud, sits above everything, and cannot be dismissed. */
.demobar {
  background: var(--c-crisis);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  padding: 10px 18px;
  line-height: 1.35;
}
.demobar strong { text-transform: uppercase; letter-spacing: .06em; }
body.is-demo { background: repeating-linear-gradient(135deg,
    var(--sky), var(--sky) 22px, #e3eefb 22px, #e3eefb 44px); }

/* A secondary observation under the main verdict, e.g. a wide pulse pressure. */
.blurb.footnote {
  margin-top: 8px;
  font-size: 14px;
  color: var(--navy);
  background: rgba(22, 50, 92, .06);
  border-radius: 12px;
  padding: 9px 13px;
}

/* ---------- stacked table on small screens ----------
   A horizontally scrolling table pushes the Edit and Delete buttons off the
   right edge, where they are easy to miss entirely. Below 760px each row
   becomes its own card with the actions always in view. */
@media (max-width: 760px) {
  table.log.stack, table.log.stack tbody, table.log.stack tr, table.log.stack td { display: block; width: 100%; }
  table.log.stack thead { display: none; }
  table.log.stack tr {
    border: 1px solid var(--rule-soft);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--card-2);
  }
  table.log.stack td {
    border: 0;
    padding: 3px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  table.log.stack td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-faint);
  }
  table.log.stack td:last-child { padding-top: 10px; }
  table.log.stack .row.actions { justify-content: stretch; width: 100%; }
  table.log.stack .row.actions .btn,
  table.log.stack .row.actions form { flex: 1 1 0; }
  table.log.stack .row.actions .btn { width: 100%; }
}
