/* ============================================================
   CLEO VANE — resource documents
   The printable layer: script packs, audits, checklists,
   menu templates, worked models. Self-contained so a document
   prints the same way in a year.

   Screen: bone paper on cream, printed-matter feel.
   Print:  A4 or US Letter, charcoal rules, terracotta marks.
   ============================================================ */

:root{
  --cream:#F6F1E8; --bone:#EFE8DB; --blush:#EAD7CE; --blush2:#F3E6DF; --white:#FFFDF9;
  --char:#2A2724; --char2:#3A362F; --ink:#332F2A;
  --terra:#B65C38; --terra-deep:#96431F; --sage:#A8B096; --sage-deep:#7C8570;
  --gold:#AD9059; --mut:#6F675D; --mut2:#9A9187;
  --rule:rgba(42,39,36,.42); --rule2:rgba(42,39,36,.15);
  --pd:"Playfair Display",Georgia,"Times New Roman",serif;
  --dm:"DM Sans","Helvetica Neue",Arial,sans-serif;
  --sheet-w:210mm;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--cream);color:var(--ink);
  font:400 16px/1.6 var(--dm);-webkit-font-smoothing:antialiased;
  padding:0 0 72px;
}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--terra);outline-offset:3px}
::selection{background:rgba(182,92,56,.22)}

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

.res-bar{
  position:sticky;top:0;z-index:20;background:rgba(246,241,232,.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(--dm);font-weight:600;font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mut);transition:.2s;
}
.res-back:hover{color:var(--terra)}
.res-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.res-print,.res-dl{
  font-family:var(--dm);font-weight:600;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;cursor:pointer;border-radius:3px;padding:11px 20px;
  border:1px solid var(--char);background:var(--char);color:var(--cream);transition:.25s;
}
.res-print:hover,.res-dl:hover{background:var(--terra);border-color:var(--terra);color:#FFF7EF}
.res-dl{background:transparent;color:var(--char)}

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

.doc{
  max-width:var(--sheet-w);margin:30px auto;background:var(--white);
  border:1px solid var(--rule2);box-shadow:0 22px 50px -30px rgba(42,39,36,.4);
  padding:24mm 20mm 18mm;
}

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

.doc-mast{margin-bottom:26px;border-bottom:3px solid var(--char);padding-bottom:20px}
.doc-brand{
  font-family:var(--pd);font-size:17px;font-weight:500;letter-spacing:-.01em;color:var(--char);
}
.doc-brand .tick{color:var(--terra)}
.doc-brand small{
  display:inline-block;font-family:var(--dm);font-weight:600;font-size:9.5px;
  letter-spacing:.22em;text-transform:uppercase;color:var(--mut);margin-left:10px;
}
.doc-kicker{
  font-family:var(--dm);font-weight:600;font-size:10.5px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--terra);margin:18px 0 10px;
}
.doc h1{
  font-family:var(--pd);font-weight:500;font-size:38px;line-height:1.1;
  letter-spacing:-.015em;margin-bottom:12px;
}
.doc h1 em{font-style:italic;color:var(--terra)}
.doc-lede{font-size:17px;color:var(--mut);line-height:1.65;max-width:62ch}

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

.sect{margin-top:26px}
.sect h2{font-family:var(--pd);font-weight:500;font-size:23px;line-height:1.18;margin-bottom:8px;break-after:avoid}
.sect h2 em{font-style:italic;color:var(--terra)}
.sect h3{
  font-family:var(--dm);font-weight:600;font-size:10.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--terra-deep);margin:20px 0 9px;break-after:avoid;
}
.sect > p{margin-bottom:11px;max-width:68ch}
.sect .hint{color:var(--mut);font-size:15px;margin-bottom:12px}
.sect-head{border-top:1px solid var(--rule);padding-top:13px;margin-top:30px;break-after:avoid}
.sect-head .n{
  font-family:var(--pd);font-style:italic;font-size:22px;color:var(--terra);
  display:block;margin-bottom:2px;
}

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

ul.marks,ol.marks{list-style:none;margin:0 0 13px}
ul.marks li{padding:5px 0 5px 20px;position:relative;font-size:15.5px}
ul.marks li::before{content:"";position:absolute;left:0;top:12px;width:8px;height:1px;background:var(--terra)}
ol.marks{counter-reset:m}
ol.marks li{padding:6px 0 6px 30px;position:relative;font-size:15.5px;counter-increment:m;break-inside:avoid}
ol.marks li::before{
  content:counter(m) ".";position:absolute;left:0;top:6px;
  font-family:var(--pd);font-style:italic;font-size:16px;color:var(--terra);
}

ul.checks{list-style:none;margin:0 0 13px}
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(--char);
}
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:20mm}
.cols2 > *{break-inside:avoid}

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

.write{margin:6px 0 15px;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 13px;break-inside:avoid}
.fld > .lab,label.lab{
  display:block;font-family:var(--dm);font-weight:600;font-size:9.5px;letter-spacing:.16em;
  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}
.blank{display:inline-block;min-width:110px;border-bottom:1px solid var(--rule);margin:0 3px}

/* ---------- 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(--dm);font-weight:600;font-size:9px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--terra-deep);text-align:left;
  padding:8px;border-bottom:2px solid var(--char);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-family:var(--dm);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 .num{text-align:right}
table.sheet .rowlab{
  font-family:var(--dm);font-weight:600;font-size:9.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--mut);
}
table.sheet .tick{width:14mm;text-align:center}
table.sheet td.tick::before{
  content:"";display:inline-block;width:11px;height:11px;border:1px solid var(--char);vertical-align:-1px;
}

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

.note{
  border:1px solid var(--rule2);border-left:3px solid var(--terra);background:var(--bone);
  padding:15px 19px;margin:16px 0;font-size:14.5px;line-height:1.6;break-inside:avoid;
}
.note strong{font-weight:600;color:var(--terra-deep)}
.note p + p{margin-top:8px}
.bound{
  border:1px solid var(--char);background:var(--white);padding:14px 18px;margin:16px 0;
  font-size:14px;line-height:1.6;break-inside:avoid;
}
.bound strong{font-weight:600}
.pull{
  font-family:var(--pd);font-style:italic;font-size:19px;color:var(--char);
  line-height:1.5;margin:20px 0;padding-left:18px;border-left:2px solid var(--terra);
  break-inside:avoid;max-width:58ch;
}

/* ---------- script blocks ---------- */

.script-block{
  font-family:var(--dm);font-size:14.5px;line-height:1.72;white-space:pre-wrap;
  background:var(--bone);border:1px solid var(--rule2);padding:16px 19px;margin:0 0 8px;
  break-inside:avoid;
}
.temp{
  display:inline-block;font-family:var(--dm);font-weight:600;font-size:9px;letter-spacing:.18em;
  text-transform:uppercase;padding:4px 9px;border:1px solid var(--rule);color:var(--mut);
  margin-bottom:8px;
}
.temp-soft{color:var(--sage-deep);border-color:var(--sage)}
.temp-firm{color:var(--terra-deep);border-color:var(--terra)}
.temp-policy{color:var(--char);border-color:var(--char)}
.copybtn{
  font-family:var(--dm);font-weight:600;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  border:1px solid var(--rule);background:transparent;color:var(--mut);padding:6px 12px;
  cursor:pointer;border-radius:2px;transition:.2s;margin-bottom:10px;
}
.copybtn:hover{border-color:var(--terra);color:var(--terra)}

/* menu template rows */
.menu-row{display:flex;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--rule2)}
.menu-row .svc{flex:0 1 auto}
.menu-row .svc b{font-weight:600;font-size:15.5px}
.menu-row .svc i{display:block;font-style:italic;color:var(--mut);font-size:13.5px}
.menu-row .dots{flex:1;border-bottom:1px dotted var(--rule);margin:0 12px;transform:translateY(-4px)}
.menu-row .p{font-family:var(--pd);font-size:17px;white-space:nowrap}
.menu-h{
  font-family:var(--dm);font-weight:600;font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--terra-deep);margin:22px 0 6px;border-bottom:1px solid var(--char);padding-bottom:5px;
}

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

/* ---------- foot ---------- */
.doc-foot{
  margin-top:30px;border-top:2px solid var(--char);padding-top:12px;
  font-family:var(--dm);font-weight:600;font-size:9px;letter-spacing:.1em;color:var(--mut2);
  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-family:var(--dm);font-weight:400;font-size:12px;letter-spacing:0;
  flex-basis:100%;color:var(--mut);
}

/* index cards */
.res-index{max-width:1080px;margin:0 auto;padding:0 24px}
.res-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}
.res-card{
  background:var(--white);border:1px solid var(--rule2);padding:24px 24px 22px;
  display:flex;flex-direction:column;transition:.25s;
}
a.res-card:hover{border-color:var(--terra);transform:translateY(-3px);
  box-shadow:0 18px 40px -22px rgba(42,39,36,.45)}
.res-card .no{
  font-family:var(--dm);font-weight:600;font-size:9.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--terra);margin-bottom:9px;
}
.res-card h3{font-family:var(--pd);font-weight:500;font-size:20px;margin-bottom:7px;line-height:1.2}
.res-card p{color:var(--mut);font-size:14.5px;line-height:1.6;flex:1}
.res-card .go{
  font-family:var(--dm);font-weight:600;font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--terra-deep);margin-top:14px;
}

@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}
  .doc h1{font-size:29px}
  .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:#26231F}
  .res-bar,.res-noprint,.copybtn{display:none!important}
  .doc{max-width:none;margin:0;padding:0;border:0;box-shadow:none;background:#fff}
  .doc-mast{margin-bottom:16px;padding-bottom:12px}
  .doc-brand{font-size:11pt}
  .doc h1{font-size:21pt;margin-bottom:8px}
  .doc-lede{font-size:10.6pt}
  .doc-kicker{font-size:7.5pt;margin:10px 0 7px}
  .sect{margin-top:18px}
  .sect h2{font-size:14pt}
  .sect h3{font-size:8pt}
  .sect-head{margin-top:20px;padding-top:10px}
  .sect-head .n{font-size:13pt}
  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{font-size:9.4pt;padding:10px 13px}
  .script-block{font-size:9.4pt;padding:11px 14px;line-height:1.6}
  .doc-foot{font-size:7pt;margin-top:18px}
  .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,.write,.fld,.script-block,table.sheet tr{page-break-inside:avoid}
  .doc.compact .doc-mast{margin-bottom:10px;padding-bottom:9px}
  .doc.compact h1{font-size:17pt}
  .doc.compact .sect{margin-top:13px}
}

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