/* ============================================================
   PRETTYPINKSTRONG — resource documents
   Printables: the Quiet Kitchen starter card, the protection
   pack, tracking cards. Self-contained so a printed card stays
   the same as the day it was reviewed.

   Screen: cream paper, sage and terracotta, arched softness.
   Print:  A4 or US Letter, quiet rules, high contrast.
   ============================================================ */

:root{
  --cream:#FAF5EE; --cream2:#F4EDE2; --card:#FFFDF9;
  --blush:#F2DFD6; --blush2:#E9CDC0;
  --sage:#DDE6D8; --sage2:#9DB09A; --sagedeep:#38473C; --sagedeep2:#415346;
  --ink:#3A3A40; --ink2:#55535A; --mut:#7E767C;
  --terra:#C56A48; --terra2:#A85538; --gold:#D9A462;
  --warn:#B0763B; --bad:#A44E3C;
  --rule:rgba(58,58,64,.34); --rule2:rgba(58,58,64,.13);
  --serif:"Young Serif",Georgia,"Times New Roman",serif;
  --sans:"Figtree","Helvetica Neue",Arial,sans-serif;
  --hand:"Shantell Sans",cursive;
  --sheet-w:210mm;
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans);color:var(--ink);background:var(--cream);
  font-size:16px;line-height:1.62;padding:0 0 72px;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--terra);outline-offset:3px}
::selection{background:rgba(197,106,72,.2)}

/* ---------- screen-only chrome ---------- */

.res-bar{
  position:sticky;top:0;z-index:20;background:rgba(250,245,238,.95);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--rule2);
}
.res-bar__in{
  max-width:var(--sheet-w);margin:0 auto;padding:12px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.res-back{
  font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mut);transition:.2s;
}
.res-back:hover{color:var(--terra2)}
.res-print{
  font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;cursor:pointer;border:0;border-radius:999px;padding:12px 24px;
  background:var(--terra);color:#FFF8F3;transition:.25s;
}
.res-print:hover{background:var(--terra2);transform:translateY(-1px)}

/* ---------- the sheet ---------- */

.doc{
  max-width:var(--sheet-w);margin:28px auto;background:var(--card);
  border:1px solid var(--rule2);border-radius:14px;
  box-shadow:0 18px 44px -20px rgba(58,58,64,.22);
  padding:24mm 20mm 18mm;
}

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

.doc-mast{text-align:center;margin-bottom:24px}
.doc-brand{font-family:var(--serif);font-size:18px;color:var(--sagedeep)}
.doc-kicker{
  font-family:var(--sans);font-weight:600;font-size:10.5px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--terra2);margin:14px 0 10px;
}
.doc h1{font-family:var(--serif);font-size:34px;line-height:1.15;margin-bottom:10px;font-weight:400}
.doc h1 em{font-style:italic;color:var(--terra2)}
.doc-lede{font-size:16.5px;color:var(--ink2);line-height:1.62;max-width:58ch;margin:0 auto}
.arch{
  width:72px;height:2px;margin:20px auto;border-radius:2px;
  background:linear-gradient(90deg,var(--sage2),var(--terra));
}

/* ---------- sections ---------- */

.sect{margin-top:24px}
.sect h2{font-family:var(--serif);font-weight:400;font-size:22px;line-height:1.2;margin-bottom:8px;break-after:avoid}
.sect h3{
  font-family:var(--sans);font-weight:600;font-size:10.5px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--sagedeep);margin:18px 0 8px;break-after:avoid;
}
.sect > p{margin-bottom:11px;max-width:66ch}
.sect .hint{color:var(--mut);font-size:14.5px;margin-bottom:12px}
.sect-head{border-top:1px solid var(--rule2);padding-top:14px;margin-top:28px;break-after:avoid}
.sect-head .n{
  font-family:var(--sans);font-weight:600;font-size:10px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--terra);display:block;margin-bottom:5px;
}

/* ---------- lists ---------- */

ul.marks,ol.marks{list-style:none;margin:0 0 12px}
ul.marks li{padding:5px 0 5px 20px;position:relative;font-size:15.5px}
ul.marks li::before{
  content:"";position:absolute;left:2px;top:12px;width:7px;height:7px;
  border-radius:50%;background:var(--sage2);
}
ol.marks{counter-reset:m}
ol.marks li{padding:6px 0 6px 28px;position:relative;font-size:15.5px;counter-increment:m;break-inside:avoid}
ol.marks li::before{
  content:counter(m);position:absolute;left:0;top:7px;
  font-family:var(--sans);font-weight:600;font-size:11px;color:var(--terra2);
}

ul.checks{list-style:none;margin:0 0 12px}
ul.checks li{
  padding:8px 0 8px 26px;position:relative;font-size:15.5px;
  border-bottom:1px solid var(--rule2);break-inside:avoid;
}
ul.checks li:last-child{border-bottom:0}
ul.checks li::before{
  content:"";position:absolute;left:0;top:12px;width:12px;height:12px;
  border:1px solid var(--sage2);border-radius:3px;
}
ul.checks.plain li{border-bottom:0}
ul.checks li .sub{display:block;color:var(--mut);font-size:14px;margin-top:2px}

.cols2{columns:2;column-gap:18mm}
.cols2 > *{break-inside:avoid}

/* ---------- write-on ---------- */

.write{margin:6px 0 14px;break-inside:avoid}
.write .ln{display:block;height:10mm;border-bottom:1px solid var(--rule2)}
.write .ln:first-child{border-top:1px solid var(--rule2)}
.write.tightlines .ln{height:8mm}

.fld{margin:0 0 12px;break-inside:avoid}
.fld > .lab,label.lab{
  display:block;font-family:var(--sans);font-weight:600;font-size:9.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mut);margin-bottom:5px;
}
.fld .line{display:block;height:9mm;border-bottom:1px solid var(--rule2)}
.fld-row{display:flex;gap:16px;break-inside:avoid}
.fld-row > .fld{flex:1}

/* ---------- tables ---------- */

.sheet-wrap{margin:10px 0 16px;overflow-x:auto}
table.sheet{width:100%;border-collapse:collapse;font-size:14px;line-height:1.4}
table.sheet thead th{
  font-family:var(--sans);font-weight:600;font-size:9px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--sagedeep);text-align:left;
  padding:8px;border-bottom:2px solid var(--sage2);vertical-align:bottom;
}
table.sheet td,table.sheet tbody th{
  padding:0 8px;border-bottom:1px solid var(--rule2);height:11mm;
  text-align:left;font-weight:400;vertical-align:middle;
}
table.sheet tbody th{font-weight:600;font-size:14px}
table.sheet tr{break-inside:avoid}
table.sheet td + td,table.sheet td + th,
table.sheet th + td,table.sheet th + th{border-left:1px solid var(--rule2)}
table.sheet.dense td,table.sheet.dense tbody th{height:8.5mm}
table.sheet.tall td,table.sheet.tall tbody th{height:15mm}
table.sheet .tick{width:13mm;text-align:center}
table.sheet td.tick::before{
  content:"";display:inline-block;width:11px;height:11px;
  border:1px solid var(--sage2);border-radius:3px;vertical-align:-1px;
}

/* ---------- call-outs ---------- */

.note{
  border:1px solid var(--sage2);background:var(--sage);border-radius:12px;
  padding:15px 19px;margin:16px 0;font-size:14.5px;line-height:1.6;
  color:var(--sagedeep);break-inside:avoid;
}
.note strong{font-weight:700}

/* the one that carries the clinical boundary — must never look decorative */
.bound{
  border:1.5px solid var(--terra);background:#FCF3EE;border-radius:12px;
  padding:15px 19px;margin:16px 0;font-size:14.5px;line-height:1.62;
  color:#6E3A28;break-inside:avoid;
}
.bound strong{color:var(--terra2);font-weight:700}
.bound.urgent{border-color:var(--bad);background:#FBEDEA;color:#6B2E22}
.bound.urgent strong{color:var(--bad)}

.pending{
  border:1px dashed var(--warn);background:#FCF6EC;border-radius:12px;
  padding:13px 17px;margin:14px 0;font-size:13.8px;line-height:1.6;
  color:#6C4A20;break-inside:avoid;
}
.pending strong{color:var(--warn);font-weight:700}

.meal{
  border:1px solid var(--rule2);border-radius:12px;padding:15px 18px;margin-bottom:12px;
  background:#FFFDF9;break-inside:avoid;
}
.meal .tt{
  font-family:var(--sans);font-weight:600;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--terra2);margin-bottom:5px;
}
.meal h4{font-family:var(--serif);font-weight:400;font-size:18px;margin-bottom:5px}
.meal p{font-size:14.5px;color:var(--ink2)}

/* ---------- page control ---------- */
.pbreak{break-before:page;page-break-before:always}
.keep{break-inside:avoid;page-break-inside:avoid}

/* ---------- foot ---------- */
.doc-foot{
  margin-top:28px;border-top:1px solid var(--rule);padding-top:12px;
  font-family:var(--sans);font-weight:600;font-size:9px;letter-spacing:.1em;color:var(--mut);
  line-height:1.7;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;
  text-transform:uppercase;
}
.doc-foot .lic{
  text-transform:none;font-weight:400;font-size:12px;letter-spacing:0;
  flex-basis:100%;color:var(--ink2);
}

/* index cards */
.res-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}

@media screen and (max-width:900px){ .res-grid{grid-template-columns:1fr 1fr} }
@media screen and (max-width:820px){
  .doc{margin:16px 12px;padding:24px 20px;border-radius:10px}
  .doc h1{font-size:27px}
  .cols2{columns:1}
  .fld-row{flex-direction:column;gap:0}
}
@media screen and (max-width:620px){ .res-grid{grid-template-columns:1fr} }

/* ============================================================
   PRINT — A4 and US Letter
   ============================================================ */

@page{ margin:14mm 13mm 15mm; }

@media print{
  html,body{background:#fff!important}
  body{font-size:10.4pt;line-height:1.5;padding:0;color:#2E2E33}
  .res-bar,.res-noprint{display:none!important}
  .doc{max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff}
  .doc-mast{margin-bottom:14px}
  .doc-brand{font-size:11pt}
  .doc h1{font-size:20pt;margin-bottom:7px}
  .doc-lede{font-size:10.4pt}
  .doc-kicker{font-size:7.5pt;margin:8px 0 6px}
  .arch{margin:14px auto}
  .sect{margin-top:17px}
  .sect h2{font-size:13.5pt}
  .sect h3{font-size:8pt}
  .sect-head{margin-top:19px;padding-top:10px}
  ul.marks li,ol.marks li,ul.checks li{font-size:10.2pt}
  table.sheet{font-size:8.8pt}
  table.sheet thead{display:table-header-group}
  table.sheet thead th{font-size:7pt;padding:5px 6px}
  table.sheet td,table.sheet tbody th{padding:0 6px;font-size:8.8pt;height:10mm}
  table.sheet.dense td,table.sheet.dense tbody th{height:7.4mm}
  table.sheet.tall td,table.sheet.tall tbody th{height:13mm}
  .note,.bound,.pending{font-size:9.4pt;padding:10px 13px}
  .meal{padding:10px 13px;margin-bottom:8px}
  .meal h4{font-size:12.5pt}
  .meal p{font-size:9.4pt}
  .doc-foot{font-size:7pt;margin-top:16px}
  .doc-foot .lic{font-size:8.4pt}
  .fld .line{height:8mm}
  a{color:inherit;text-decoration:none}
  h1,h2,h3{break-after:avoid;page-break-after:avoid}
  .keep,.note,.bound,.pending,.meal,.write,.fld,table.sheet tr{page-break-inside:avoid}
  .doc.compact .doc-mast{margin-bottom:10px}
  .doc.compact h1{font-size:17pt}
  .doc.compact .sect{margin-top:12px}
}

@media (prefers-reduced-motion:reduce){ *{animation:none!important;transition:none!important} }
