@import url('/document-templates.css');
@import url('/guidebook-reading.css?v=20261028-r26c');
/* Guidebook uses the shared Notas theme and header. Its layout stays local. */
.guide-workspace { width:100%; max-width:1100px; margin:0 auto; padding:24px 40px 32px; }
.guide-toolbar { display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.guide-search { display:flex; align-items:center; position:relative; width:min(100%,540px); min-width:0; }
.guide-search > .icon { position:absolute; left:14px; width:18px; height:18px; color:var(--muted); pointer-events:none; }
.guide-search input { width:100%; height:44px; margin:0; padding:10px 14px 10px 42px; border-radius:13px; background:var(--surface); }
.guide-error,.guide-editor-error { border:1px solid color-mix(in srgb,var(--danger) 28%,var(--border)); background:var(--surface); color:var(--danger); border-radius:9px; padding:10px 12px; font-size:calc(12px * var(--pelison-type-scale, 1)); margin:0 0 12px; line-height:1.5; }
.guide-home { max-width:980px; margin-inline:auto; }
.guide-home-actions { display:flex; justify-content:flex-end; margin:0 0 9px; }
.guide-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:13px; }
.guide-tile { --guide-accent:#3b7bd8; --guide-tint:#e8f1ff; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:12px; min-height:142px; padding:16px; border:1px solid color-mix(in srgb,var(--guide-accent) 12%,var(--border)); border-radius:17px; background:linear-gradient(135deg,color-mix(in srgb,var(--guide-tint) 76%,var(--surface)),color-mix(in srgb,var(--guide-tint) 28%,var(--surface))); box-shadow:inset 0 1px 0 #ffffffa0,0 3px 14px #233a6405; color:var(--text); text-decoration:none; font-size:calc(13px * var(--pelison-type-scale, 1)); line-height:1.35; font-weight:600; backdrop-filter:blur(12px); transition:transform .15s,border-color .15s; }
.guide-tile:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--guide-accent) 45%,var(--border)); }
.guide-tile-icon { display:grid; place-items:center; width:45px; height:45px; border-radius:13px; color:var(--guide-accent); background:color-mix(in srgb,var(--surface) 88%,transparent); }
.guide-tile-icon .icon { width:29px; height:29px; }
:root[data-theme="dark"] .guide-tile { background:linear-gradient(135deg,color-mix(in srgb,var(--guide-accent) 13%,var(--surface)),var(--surface)); box-shadow:inset 0 1px 0 #ffffff08,0 3px 14px #0000000a; }
:root[data-theme="dark"] .guide-tile-icon { color:color-mix(in srgb,var(--guide-accent) 65%,white); }
.guide-action { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:36px; min-height:36px; margin:0; padding:7px 9px; border:1px solid var(--border); border-radius:8px; color:var(--blue); background:var(--surface); gap:6px; font-size:calc(12px * var(--pelison-type-scale, 1)); line-height:1.3; }
.guide-action .icon { width:18px; height:18px; }
.guide-action:hover { background:var(--surface-soft); }
.guide-danger { color:var(--danger); }
.guide-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 12px; color:var(--muted); font-size:calc(12px * var(--pelison-type-scale, 1)); }
.guide-breadcrumb a { text-decoration:none; }
.guide-breadcrumb a:hover { text-decoration:underline; }
.guide-page { width:100%; max-width:860px; margin-inline:auto; }
.guide-panel { min-width:0; overflow:hidden; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.guide-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; }
.guide-panel-heading h2 { font-size:calc(17px * var(--pelison-type-scale, 1)); letter-spacing:-.3px; margin:0; min-width:0; overflow-wrap:anywhere; }
.guide-count { color:var(--muted); font-size:calc(11px * var(--pelison-type-scale, 1)); white-space:nowrap; }
.guide-empty { padding:30px 18px; text-align:center; color:var(--muted); font-size:calc(13px * var(--pelison-type-scale, 1)); line-height:1.6; }
.guide-empty p { margin:0; }
.guide-construction-icon { width:43px; height:43px; margin:0 auto 12px; display:grid; place-items:center; color:var(--blue); background:var(--blue-soft); border-radius:12px; }
.guide-construction-icon .icon { width:25px; height:25px; }
.guide-result { display:flex; align-items:center; gap:12px; padding:13px 16px; min-height:59px; text-decoration:none; color:var(--text); border-bottom:1px solid var(--border); }
.guide-result:last-child { border-bottom:0; }
.guide-result:hover { background:var(--surface-soft); }
.guide-result-copy { flex:1; min-width:0; }
.guide-result-title { display:block; font-size:calc(13px * var(--pelison-type-scale, 1)); line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
.guide-result-detail { display:block; color:var(--muted); font-size:calc(11px * var(--pelison-type-scale, 1)); line-height:1.4; margin-top:3px; overflow-wrap:anywhere; }
.guide-tag { flex-shrink:0; border-radius:6px; padding:3px 7px; font-size:calc(10px * var(--pelison-type-scale, 1)); font-weight:600; color:#8860b8; background:#f1eaff; }
:root[data-theme="dark"] .guide-tag { color:#d2afff; background:#3c2e50; }
.guide-result > .icon { width:15px; color:var(--muted); }
.guide-content-body { padding:16px; font-size:calc(13px * var(--pelison-type-scale, 1)); line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.guide-content-body p { margin:0 0 12px; }
.guide-content-body p:last-child { margin-bottom:0; }
.guide-content-summary { color:var(--muted); }
.guide-flow { display:grid; gap:12px; white-space:normal; }
.guide-flow-step { padding:14px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.guide-flow-step h3 { margin:0 0 8px; font-size:calc(13px * var(--pelison-type-scale, 1)); }
.guide-flow-step p { white-space:pre-wrap; }
.guide-flow-next { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.guide-editor { max-width:720px; padding:20px; }
.guide-editor .dialog-heading { margin-bottom:14px; }
.guide-editor .dialog-heading h2 { font-size:calc(18px * var(--pelison-type-scale, 1)); }
.guide-editor-list { display:grid; gap:8px; }
.guide-category-row { display:grid; grid-template-columns:34px minmax(130px,1fr) 116px 97px auto; gap:7px; align-items:center; padding:9px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.guide-category-row input,.guide-category-row select { width:100%; min-width:0; height:36px; margin:0; padding:7px 9px; border:1px solid var(--border); border-radius:7px; color:var(--text); background:var(--surface); font-size:calc(12px * var(--pelison-type-scale, 1)); }
.guide-category-actions { display:flex; gap:4px; }
.guide-category-destination {grid-column:2 / -1;}
.guide-category-actions .guide-action,.guide-grip { min-height:34px; min-width:30px; padding:6px; }
.guide-grip { cursor:grab; color:var(--muted); background:transparent; border-color:transparent; }
.guide-grip:active { cursor:grabbing; }
.guide-category-row.guide-drop-target { border-color:var(--blue); }
.guide-editor-add { margin-top:10px; }
.guide-editor .dialog-actions { margin-top:18px; }
.guide-editor-conflict { margin:8px 0; }
@media (max-width:767px) {
  .guide-workspace { padding:18px 24px 28px; }
  .guide-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:11px; }
  .guide-tile { min-height:136px; padding:14px; }
  .guide-category-row { grid-template-columns:30px minmax(0,1fr) auto; gap:6px; }
  .guide-category-row .guide-category-icon { grid-column:2; }
  .guide-category-row .guide-category-color { grid-column:3; min-width:87px; }
  .guide-category-actions { grid-column:3; grid-row:1; }
  .guide-category-row .guide-grip { grid-row:1 / span 2; }
}
@media (max-width:399px) {
  .guide-workspace { padding-inline:18px; }
  .guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-editor { padding:16px; width:calc(100% - 24px); }
  .guide-category-row { padding:7px; gap:5px; }
  .guide-category-actions { gap:2px; }
  .guide-category-actions .guide-action { min-width:27px; padding:5px; }
}

/* Compact editorial workspace, using the existing theme variables. */
.gw-tools,.gw-tabs,.gw-editor-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0;}
.gw-tabs .active {background:var(--blue-soft);color:var(--blue);}
.gw-heading h2 {font-size:calc(24px * var(--pelison-type-scale, 1));margin:10px 0;}
.gw-heading small {color:var(--muted);font-size:calc(11px * var(--pelison-type-scale, 1));}
.gw-fields,.gw-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;}
.gw-filters {grid-template-columns:repeat(4,minmax(0,1fr));}
.gw-field {display:block;min-width:0;}
.gw-field input,.gw-field select,.gw-field textarea {box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);color:var(--text);padding:10px;font:inherit;font-size:calc(12px * var(--pelison-type-scale, 1));}
.gw-field textarea {min-height:95px;resize:vertical;line-height:1.45;}
.gw-section {background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:13px;margin:10px 0;}
.gw-section summary {font-weight:600;cursor:pointer;font-size:calc(14px * var(--pelison-type-scale, 1));}
.gw-markdown {font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.5;overflow-wrap:anywhere;white-space:normal;}
.gw-markdown p {margin:8px 0;}.gw-markdown h3 {font-size:calc(15px * var(--pelison-type-scale, 1));}.gw-markdown h4 {font-size:calc(14px * var(--pelison-type-scale, 1));}
.gw-table-scroll {overflow-x:auto;}.gw-markdown table {border-collapse:collapse;white-space:nowrap;}.gw-markdown td {border:1px solid var(--border);padding:6px;}
.gw-record-search {display:flex;align-items:center;gap:8px;}.gw-record-search label {flex:1;}
.gw-current {outline:2px solid var(--blue);}.gw-sections mark {background:#ffe38e;color:#222;}
.gw-editor>.gw-field {margin:10px 0;}.gw-editor-actions {position:sticky;bottom:0;background:var(--surface);padding:10px;border:1px solid var(--border);border-radius:10px;z-index:1;}
.gw-structured-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px 0;border-bottom:1px solid var(--border);}
.gw-status {font-size:calc(12px * var(--pelison-type-scale, 1));white-space:pre-wrap;overflow-wrap:anywhere;}.gw-preview {width:min(850px,calc(100vw - 30px));max-height:85dvh;overflow:auto;}
.gw-recipe-item {display:flex;gap:8px;padding:8px;}.gw-recipe-item input {width:auto;}.gw-recipe-item small {display:block;color:var(--muted);margin-top:4px;}
.gw-result {white-space:pre-line;padding:18px;font-size:calc(18px * var(--pelison-type-scale, 1));color:var(--blue);font-weight:600;}
.guide-page>.guide-panel {margin-bottom:12px;}.gw-heading .guide-action {font-size:calc(12px * var(--pelison-type-scale, 1));}
@media(max-width:650px){.gw-fields,.gw-filters,.gw-structured-row{grid-template-columns:1fr;}.gw-heading h2{font-size:calc(21px * var(--pelison-type-scale, 1));}.gw-editor-actions button{font-size:calc(11px * var(--pelison-type-scale, 1));}.gw-record-search{flex-wrap:wrap;}.gw-field input,.gw-field select,.gw-field textarea{font-size:calc(16px * var(--pelison-type-scale, 1));}}

/* Compact adult calculators, shared fields and theme tokens. */
.gw-calc-label { display:block; font-size:calc(.8rem * var(--pelison-type-scale, 1)); color:var(--muted); margin:0 0 5px; }
.gw-calculator .gw-fields { align-items:end; }
.gw-result-main { display:block; font-size:calc(1.4rem * var(--pelison-type-scale, 1)); color:var(--blue); margin-bottom:8px; }
.gw-result-row { margin:4px 0; }
.gw-result-note { font-size:calc(.85rem * var(--pelison-type-scale, 1)); margin:10px 0 0; line-height:1.4; }
.gw-config-json { min-height:480px; font-family:monospace; font-size:calc(.85rem * var(--pelison-type-scale, 1)); }

.gw-result-row { font-size:calc(.9rem * var(--pelison-type-scale, 1)); font-weight:500; color:var(--text); }
.gw-result-note { font-weight:400; color:var(--muted); }
.gw-calculator .gw-field { margin:0; }
.gw-calculator .gw-field input,.gw-calculator .gw-field select { margin:0; }
.gw-calculator>.gw-tools { padding:0 12px; margin:0; }
.gw-config-json { min-height:480px !important; }

.gw-calculator-use { margin: 16px 12px 12px; }

/* Blood gas uses the same fields, title, copy action and theme as the library. */
.gasometry-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:8px;align-items:start;}
.gasometry-main-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start!important;}
.gasometry-main-fields .gasometry-field:first-child,.gasometry-main-fields .gasometry-field:last-child{grid-column:1/-1;}
.gasometry-view .gw-field input,.gasometry-view .gw-field select{font-size:calc(16px * var(--pelison-type-scale, 1));min-width:0;width:100%;}
.gasometry-extra{margin:0 12px 12px;border-top:1px solid var(--border);padding-top:12px;}
.gasometry-extra>summary,.gasometry-guidance-section>summary{font-size:calc(13px * var(--pelison-type-scale, 1));font-weight:600;cursor:pointer;color:var(--blue);line-height:1.5;}
.gasometry-extra-fields{padding:12px 0 0;align-items:start!important;}
.gasometry-input-note{margin:0 12px 14px;color:var(--muted);font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;}
.gasometry-unavailable{opacity:.65;}
.gasometry-result-panel{margin-top:12px;min-width:0;}
.gasometry-result-panel .gw-result{padding:16px;}
.gasometry-pattern{font-size:calc(16px * var(--pelison-type-scale, 1));line-height:1.4;font-weight:600;margin:7px 0 12px;color:var(--text);}
.gasometry-mixed{font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.5;margin:5px 0;color:var(--text);}
.gasometry-empty,.gasometry-error{font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.5;font-weight:500;margin:0;color:var(--text);}
.gasometry-warning{padding-top:8px;border-top:1px solid var(--border);}
.gasometry-equation{display:block;margin-top:12px;font-size:calc(12px * var(--pelison-type-scale, 1));color:var(--muted);font-weight:400;}
.gasometry-guidance{display:grid;gap:9px;margin:0 12px 12px;}
.gasometry-guidance-section{border:1px solid var(--border);border-radius:10px;padding:12px;background:var(--surface);}
.gasometry-guidance-section ul{margin:8px 0 0;padding-left:20px;font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.5;color:var(--text);}
.gasometry-guidance-section li+li{margin-top:6px;}
@media(max-width:760px){.gasometry-layout{grid-template-columns:1fr;}.gasometry-result-panel{margin-top:0;}}
@media(max-width:380px){.gasometry-main-fields{gap:6px;}.gasometry-view .gw-calc-label{font-size:calc(12px * var(--pelison-type-scale, 1));}.gasometry-view .gw-choice-option{padding:8px;}}

/* Small specialty tags keep the calculator library compact within its groups. */
.pc-library .gw-calc-row-heading { display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; }
.pc-library .gw-calc-row-heading strong { min-width:0; overflow-wrap:anywhere; }
.pc-library .gw-calc-specialty { display:inline-block; max-width:100%; padding:2px 6px; border-radius:5px; font-size:calc(10px * var(--pelison-type-scale, 1)); font-weight:500; line-height:1.4; color:var(--blue); background:var(--blue-soft); overflow-wrap:anywhere; }

/* The calculator choices and copy action use the same compact Pelison controls. */
.gw-choice-mode { display:inline-flex; align-items:center; gap:3px; padding:3px; margin:0 12px 14px; border:1px solid var(--border); border-radius:18px; background:var(--surface-soft); }
.gw-choice-mode-option { padding:6px 12px; margin:0; border:0; border-radius:14px; color:var(--muted); background:transparent; font-family:inherit; font-size:calc(12px * var(--pelison-type-scale, 1)); font-weight:600; line-height:1.2; }
.gw-choice-mode-option.active { color:var(--blue); background:var(--surface); box-shadow:0 1px 3px #0002; }
.gw-calculator-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 14px; padding:0 12px; }
.gw-calculator-tools .gw-choice-mode { margin:0; }
.gw-choice-options { display:grid; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.gw-choice-segmented { grid-template-columns:repeat(var(--choice-count),minmax(0,1fr)); }
.gw-choice-segmented .gw-choice-option { border-bottom:0; border-right:1px solid var(--border); }
.gw-choice-segmented .gw-choice-option:last-child { border-right:0; }
.gw-fields-buttons[data-formula=scale_gcs] { grid-template-columns:1fr; }
.gw-choice-option { display:flex; align-items:center; justify-content:space-between; gap:9px; min-height:40px; padding:9px 12px; margin:0; border:0; border-bottom:1px solid var(--border); border-radius:0; background:var(--surface-soft); color:var(--text); text-align:left; font-size:calc(13px * var(--pelison-type-scale, 1)); line-height:1.4; }
.gw-choice-option:last-child { border-bottom:0; }
.gw-choice-option:hover { background:var(--blue-soft); }
.gw-choice-option.active { background:var(--blue); color:#fff; }
:root[data-theme="dark"] .gw-choice-option.active { color:#15273f; }
.gw-choice-option:focus-visible,.gw-choice-mode-option:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.gw-choice-points { font-size:calc(11px * var(--pelison-type-scale, 1)); flex-shrink:0; opacity:.8; }
.gw-calculator .gw-field:has(.gw-choice-options) { align-self:start; }
.gw-calculator [hidden] { display:none!important; }
.gw-calculator-result { margin:0 12px 12px; }
.gw-calculator-result .gw-result { margin:0; border:1px solid var(--border); border-radius:12px; }
.gw-calculator .ped-action { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:34px; margin:0; padding:7px 9px; color:var(--blue); border:1px solid var(--border); background:var(--surface); border-radius:8px; flex-shrink:0; font-size:calc(12px * var(--pelison-type-scale, 1)); line-height:1.3; gap:6px; }
.gw-calculator .ped-action .icon { width:17px; height:17px; }
.gw-calculator .ped-action:hover { background:var(--surface-soft); }
.gw-result[data-tone=green] { background:light-dark(#f0faf5,#192e29); border-color:light-dark(#b9dfcc,#365e4d); }
.gw-result[data-tone=green] .gw-result-main { color:light-dark(#257651,#73d5aa); }
.gw-result[data-tone=amber] { background:light-dark(#fff9ed,#30291f); border-color:light-dark(#ebd4a0,#68543a); }
.gw-result[data-tone=amber] .gw-result-main { color:light-dark(#9b650c,#edc17b); }
.gw-result[data-tone=red] { background:light-dark(#fff1f2,#322127); border-color:light-dark(#e4b7be,#69424d); }
.gw-result[data-tone=red] .gw-result-main { color:var(--danger); }
.gw-result[data-tone=lime]{background:light-dark(#f4faeb,#253022);border-color:light-dark(#cbdcb1,#4f6040);}.gw-result[data-tone=lime] .gw-result-main{color:light-dark(#587d25,#b5d882);}
.gw-result[data-tone=orange]{background:light-dark(#fff3e7,#34271e);border-color:light-dark(#ecc6a0,#785534);}.gw-result[data-tone=orange] .gw-result-main{color:light-dark(#b25e18,#f0ae75);}
.gw-result[data-tone=red-orange]{background:light-dark(#fff0eb,#342320);border-color:light-dark(#e5b6a8,#795247);}.gw-result[data-tone=red-orange] .gw-result-main{color:light-dark(#c05237,#f3a38d);}
.gw-result-grade{display:inline-flex;margin:0 0 7px;padding:3px 7px;border-radius:5px;border:1px solid currentColor;font-size:calc(11px * var(--pelison-type-scale, 1));line-height:1.4;color:inherit;}.gw-result:has(.gw-result-grade){color:inherit;}.gw-result[data-tone=green]:has(.gw-result-grade){color:light-dark(#257651,#73d5aa);}.gw-result[data-tone=lime]:has(.gw-result-grade){color:light-dark(#587d25,#b5d882);}.gw-result[data-tone=amber]:has(.gw-result-grade){color:light-dark(#9b650c,#edc17b);}.gw-result[data-tone=orange]:has(.gw-result-grade){color:light-dark(#b25e18,#f0ae75);}.gw-result[data-tone=red-orange]:has(.gw-result-grade){color:light-dark(#c05237,#f3a38d);}.gw-result[data-tone=red]:has(.gw-result-grade){color:var(--danger);}

/* One reading card, clear sections and a compact side index. */
.gw-detail:has(.gw-reading-grid),.gw-edit-scene{max-width:1020px;}
.gw-content-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;border:1px solid #3669a1;border-radius:15px;background:linear-gradient(115deg,#254f80,#30679d);color:#f7faff;box-shadow:inset 0 1px 0 #ffffff10;}
.gw-content-hero h1{font-size:calc(27px * var(--pelison-type-scale, 1));font-weight:600;line-height:1.3;letter-spacing:-.5px;margin:0 0 9px;overflow-wrap:anywhere;}.gw-hero-copy{min-width:0;}
.gw-hero-meta{display:flex;flex-wrap:wrap;gap:7px 9px;font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;color:#d0e0f2;}.gw-hero-meta:empty{display:none;}.gw-hero-meta span+span:before{content:'·';margin-right:9px;color:#99badd;}
.gw-hero-actions{display:flex;gap:9px;align-items:center;flex-shrink:0;}.gw-content-hero .guide-action{background:#ffffff0b;border-color:#ffffff32;color:#e6f1ff;min-width:35px;min-height:35px;}.gw-hero-actions .guide-action .icon{width:17px;height:17px;}.gw-hero-actions button[aria-pressed=true] .icon{fill:currentColor;}
.gw-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;}.gw-heading h1{font-size:calc(24px * var(--pelison-type-scale, 1));font-weight:600;margin:8px 0;line-height:1.35;}.gw-heading .gw-hero-meta,.gw-heading .gw-hero-meta span+span:before{color:var(--muted);}
.gw-reading-grid{display:grid;grid-template-columns:216px minmax(0,1fr);gap:18px;margin-top:18px;align-items:start;}.gw-reading-sidebar{min-width:0;display:grid;gap:14px;}
.gw-side-card{border:1px solid var(--border);border-radius:var(--content-radius);background:var(--surface);padding:17px 18px;overflow-wrap:anywhere;}.gw-side-title{display:flex;align-items:center;gap:7px;font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.45;margin:0 0 12px;font-weight:600;}.gw-side-title .icon{width:16px;height:16px;}.gw-warning-card>.gw-side-title{color:var(--danger);}
.gw-warning-card .gw-reader-section{padding:0;border:0;}.gw-warning-card .gw-reader-section+.gw-reader-section{margin-top:14px;}.gw-warning-card .gw-reader-section-heading h2{font-size:calc(11px * var(--pelison-type-scale, 1));color:var(--muted);}.gw-warning-card .content-markdown{font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.65;}.gw-warning-card .content-markdown h2,.gw-warning-card .content-markdown h3{font-size:calc(12px * var(--pelison-type-scale, 1));}.gw-warning-card .content-markdown ul{padding-left:16px;}
.gw-toc summary{font-size:calc(13px * var(--pelison-type-scale, 1));font-weight:600;cursor:pointer;}.gw-contents-list{display:grid;gap:4px;margin:10px -8px -5px;}.gw-toc-link{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;margin:0;border:0;border-radius:7px;background:transparent;color:var(--muted);text-align:left;font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;}.gw-toc-link:hover,.gw-toc-link.active{background:var(--blue-soft);color:var(--blue);}.gw-section-number{font-size:calc(10px * var(--pelison-type-scale, 1));opacity:.7;font-variant-numeric:tabular-nums;line-height:1.8;}
.gw-related{padding:14px 17px;}.gw-related-link{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--blue);text-decoration:none;font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;}.gw-related-link+.gw-related-link{margin-top:10px;}.gw-related-link .icon{width:14px;height:14px;flex-shrink:0;}
.gw-reading-card{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--content-radius);overflow:hidden;}.gw-content-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:11px 16px;border-bottom:1px solid var(--border);}
.gw-content-tab{min-height:34px;margin:0;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:calc(12px * var(--pelison-type-scale, 1));font-weight:500;line-height:1.4;}.gw-content-tab.active{background:var(--blue-soft);color:var(--blue);font-weight:600;}
.gw-search-trigger{margin-left:auto;color:var(--muted);border-color:transparent;background:transparent;min-height:32px;min-width:32px;}.gw-search-trigger .icon{width:16px;height:16px;}.gw-content-search{display:flex;align-items:center;gap:7px;padding:12px 16px;background:var(--surface-soft);border-bottom:1px solid var(--border);}.gw-content-search label{flex:1;}.gw-content-search input{height:36px;margin:0;padding:7px 10px;}.gw-content-search small{white-space:nowrap;font-size:calc(11px * var(--pelison-type-scale, 1));color:var(--muted);}.gw-content-search .guide-action{min-height:32px;min-width:30px;padding:5px;background:transparent;}
.gw-reading-body{padding:20px 24px 23px;}.gw-reading-intro{color:var(--muted);margin-bottom:19px;}.gw-reader-section{scroll-margin-top:25px;outline:0;}.gw-reader-section+.gw-reader-section{border-top:1px solid var(--border);padding-top:22px;margin-top:22px;}
.gw-reader-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:9px;}.gw-reader-section-heading h2{min-width:0;flex:1;font-size:calc(15px * var(--pelison-type-scale, 1));line-height:1.5;font-weight:600;margin:0;overflow-wrap:anywhere;}.gw-reader-section>h2{font-size:calc(15px * var(--pelison-type-scale, 1));line-height:1.5;margin:0 0 12px;}
.gw-copy-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:30px;min-width:30px;margin:-3px 0 0;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--blue);}.gw-copy-button .icon{width:15px;height:15px;}
.gw-reading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:13px 20px;border-top:1px solid var(--border);}.gw-reading-actions:has(.gw-reader-feedback:empty):not(:has(button)){display:none;}.gw-reading-actions .button{min-height:35px;font-size:calc(12px * var(--pelison-type-scale, 1));padding:8px 12px;gap:7px;margin:0;}.gw-reading-actions .icon{width:16px;height:16px;}.gw-reader-feedback{font-size:calc(11px * var(--pelison-type-scale, 1));line-height:1.5;color:var(--muted);margin:0 auto 0 0;}.gw-reader-feedback:empty{display:none;}
.gw-presentation-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:13px 0;border-top:1px solid var(--border);font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.6;}.gw-presentation-row:first-of-type{border-top:0;padding-top:0;}.gw-presentation-row>.guide-action{margin-left:auto;}
.gw-regimen-row+.gw-regimen-row{border-top:1px solid var(--border);padding-top:22px;margin-top:22px;}.gw-regimen-row h3{font-size:calc(14px * var(--pelison-type-scale, 1));margin:0 0 6px;}.gw-regimen-row p{font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.65;margin:8px 0;}
.gw-detail[data-kind=prescription] .gw-reading-body .content-markdown ol{font-weight:600;margin:17px 0 6px;}.gw-detail[data-kind=prescription] .gw-reading-body .content-markdown ol:first-child{margin-top:0;}.gw-detail[data-kind=prescription] .gw-reading-body .content-markdown ol+ul{list-style:none;margin-top:0;}.gw-detail[data-kind=prescription] .gw-reading-body .content-markdown ul+ol{border-top:1px solid var(--border);padding-top:18px;margin-top:22px;}
.gw-section-number{flex:0 0 16px;}
.gw-flow-step{padding:15px 17px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);}.gw-flow-step+.gw-flow-step{margin-top:14px;}.gw-flow-step h3{margin:0 0 8px;font-size:calc(14px * var(--pelison-type-scale, 1));font-weight:600;}.gw-flow-next{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;}

/* Editing uses the same reader behind a native dialog. */
.gw-content-editor-dialog{width:min(804px,calc(100vw - 48px));max-width:none;padding:0;max-height:calc(100dvh - 60px);overflow:hidden;}.gw-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 23px 16px;}.gw-editor-top h2{font-size:calc(18px * var(--pelison-type-scale, 1));font-weight:600;letter-spacing:-.2px;margin:0;}.gw-editor-top .guide-action{color:var(--muted);border:0;background:transparent;min-height:31px;min-width:31px;padding:6px;}
.gw-editor-mode{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:0 23px 16px;}.gw-editor-tab{min-height:31px;font-size:calc(12px * var(--pelison-type-scale, 1));border:0;background:transparent;color:var(--muted);border-radius:7px;padding:7px 11px;line-height:1.4;margin:0;}.gw-editor-tab.active{background:var(--blue-soft);color:var(--blue);font-weight:600;}.gw-editor-spacer{flex:1;}
.gw-editor-scroll{padding:0 23px 22px;overflow-y:auto;max-height:calc(100dvh - 280px);overscroll-behavior:contain;}.gw-editor-basics{padding:0 0 12px;}.gw-editor-pane>.gw-fields:not(.gw-editor-basics){padding:0 0 14px;}.gw-editor-pane>.content-editor .content-editor-surface{max-height:none;min-height:280px;}.gw-editor-pane>.content-editor .content-editor-source{min-height:280px;max-height:none;}.gw-content-editor-dialog .content-format-bar{position:sticky;top:0;z-index:2;}
.gw-editor-data-section{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:13px;margin:0 0 12px;}.gw-editor-data-section summary{font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.5;font-weight:600;cursor:pointer;}.gw-editor-data-section>.guide-action{margin-top:12px;}.gw-editor-data-section>.gw-fields{padding-inline:0;}
.gw-section-checks{display:grid;gap:8px;padding-top:12px;}.gw-section-checks label{display:flex;gap:8px;align-items:center;font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;}.gw-section-checks input{margin:0;width:15px;height:15px;accent-color:var(--blue);flex-shrink:0;}.gw-section-checks p{font-size:calc(12px * var(--pelison-type-scale, 1));color:var(--muted);margin:0;}.gw-structured-text{grid-column:1/-1;}.gw-structured-text .content-editor-surface{min-height:150px;}
.gw-editor-footer{padding:15px 23px;border-top:1px solid var(--border);background:var(--surface);}.gw-editor-footer .gw-status{margin:0 0 8px;font-size:calc(12px * var(--pelison-type-scale, 1));line-height:1.5;}.gw-editor-footer .gw-status:empty{display:none;}.gw-editor-footer-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;}.gw-editor-footer-actions>button{min-height:35px;font-size:calc(12px * var(--pelison-type-scale, 1));margin:0;}
.gw-editor-footer .gw-status[data-state=error]{color:var(--danger);}
.gw-preview{max-width:1020px;width:min(1020px,calc(100vw - 36px));}.gw-preview>.guide-action{margin:0 0 12px auto;display:flex;width:32px;}.gw-recipe-dialog{max-width:680px;padding:0;}.gw-recipe-dialog>.gw-section{margin:0;border:0;border-radius:0;padding:0 23px 23px;}.gw-recipe-item{border-bottom:1px solid var(--border);padding:15px 0;font-size:calc(14px * var(--pelison-type-scale, 1));line-height:1.65;}.gw-recipe-item small{font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.65;}.gw-recipe-dialog>.gw-section>.button{margin-top:18px;}
@media(max-width:800px){.gw-reading-grid{grid-template-columns:186px minmax(0,1fr);gap:14px;}.gw-side-card{padding:15px;}.gw-reading-body{padding:19px;}.gw-content-hero{padding:20px;}}
@media(max-width:600px){.gw-reading-grid{grid-template-columns:minmax(0,1fr);}.gw-reading-sidebar{gap:12px;}.gw-content-hero{gap:12px;padding:18px;align-items:flex-start;}.gw-content-hero h1{font-size:calc(23px * var(--pelison-type-scale, 1));}.gw-hero-actions{gap:5px;}.gw-hero-actions .guide-action{min-width:31px;min-height:31px;padding:6px;}.gw-hero-meta{font-size:calc(11px * var(--pelison-type-scale, 1));}.gw-reading-body{padding:18px;}.gw-content-tabs{padding:10px 12px;}.gw-content-search{padding:10px 12px;gap:4px;flex-wrap:wrap;}.gw-content-search label{flex-basis:100%;}.gw-content-search input{font-size:calc(16px * var(--pelison-type-scale, 1));}.gw-content-editor-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}.gw-editor-top{padding:15px 16px 13px;}.gw-editor-mode{padding:0 16px 13px;gap:3px;}.gw-editor-tab{font-size:calc(11px * var(--pelison-type-scale, 1));padding:7px 8px;}.gw-editor-scroll{padding:0 16px 16px;max-height:calc(100dvh - 250px);}.gw-editor-footer{padding:12px 16px;}.gw-editor-footer-actions{gap:6px;}.gw-editor-footer-actions>button{font-size:calc(11px * var(--pelison-type-scale, 1));min-height:34px;padding:7px 9px;}.gw-editor-basics{grid-template-columns:1fr;}.gw-editor-pane>.content-editor .content-editor-surface{min-height:230px;}.gw-recipe-dialog>.gw-section{padding:0 16px 18px;}}
/* Local clinical diagrams keep consultation cards compact. */
.clinical-illustration {margin:12px 0;max-width:600px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);}
.clinical-illustration img {display:block;width:100%;height:auto;background:#f7faff;}
.clinical-illustration figcaption {padding:10px 12px;font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.45;color:var(--muted);}
.clinical-field-illustration {grid-column:1/-1;width:100%;font-size:calc(13px * var(--pelison-type-scale, 1));}
.clinical-field-illustration summary {cursor:pointer;color:var(--accent,#367bdd);padding:4px 0;}
.clinical-field-illustration .clinical-illustration {max-width:460px;}
.gw-field-description {grid-column:1/-1;color:var(--muted);font-size:calc(13px * var(--pelison-type-scale, 1));line-height:1.45;}
.gw-calculator .clinical-question-row.clinical-question-row:has(.clinical-question-actions:not([hidden])):has(.clinical-field-illustration,.gw-field-description) {flex-wrap:wrap;}
.gw-calculator .clinical-question-row:has(.clinical-field-illustration,.gw-field-description)>.clinical-question-label {flex:1 1 calc(100% - 150px);}
.clinical-question-row>.clinical-field-illustration,.clinical-question-row>.gw-field-description {flex:1 0 100%;margin-top:0;}

/* Shared consultation outline and the same path component as Pediatrics. */
.gw-empty-section{font-size:calc(12px * var(--pelison-type-scale, 1));color:var(--muted,#768195);margin:5px 0}.gw-reader-section[data-outline]{scroll-margin-top:82px}.gw-reader-section h4{font-size:calc(14px * var(--pelison-type-scale, 1));margin:16px 0 5px}.gw-flow-links{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 14px}.gw-flow-note,.gw-editor-outline-note{font-size:calc(12px * var(--pelison-type-scale, 1));color:var(--muted,#68748a);line-height:1.5}.gw-flow-reader{margin:16px 0}.gw-calculator-context h2{font-size:calc(15px * var(--pelison-type-scale, 1));margin:18px 0 6px}.gw-flow-library .pc-tool strong{display:block}.gw-reader-section>.gw-reader-section{padding:10px 0;border:0}.cg-diagram-section{margin:14px 0}

/* Keep drug names readable on phones; the shared table container scrolls. */
.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown table{min-width:700px;table-layout:fixed;}
.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown :is(th,td){min-width:0;overflow-wrap:normal;word-break:normal;}
.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown th:first-child{width:64px;}
.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown th:nth-child(2),.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown th:nth-child(3){width:22%;}
.gw-detail[data-record-id="grp-corticoides-topicos"] .content-markdown th:nth-child(4){width:16%;}

/* Initial authenticated HTML uses the same editable navigation palette. */
.guide-tile[data-color="blue"]{--guide-accent:#3b7bd8;--guide-tint:#e8f1ff;}
.guide-tile[data-color="green"]{--guide-accent:#3b966e;--guide-tint:#e8f6ef;}
.guide-tile[data-color="purple"]{--guide-accent:#8760c4;--guide-tint:#f0eafd;}
.guide-tile[data-color="orange"]{--guide-accent:#c88235;--guide-tint:#fff0e3;}
.guide-tile[data-color="red"]{--guide-accent:#cc6684;--guide-tint:#ffedf2;}
.guide-tile[data-color="teal"]{--guide-accent:#318e84;--guide-tint:#e7f6f3;}
.guide-tile[data-color="gray"]{--guide-accent:#65758a;--guide-tint:#edf0f4;}

/* Medicine names: active ingredient stays primary, representative brand secondary. */
.md-brand-subtitle{display:block;color:var(--text-secondary,#667085);font-size:calc(12px * var(--pelison-type-scale,1));font-weight:400;line-height:1.45;margin:3px 0 5px;overflow-wrap:anywhere;}
.gw-content-hero .md-brand-subtitle{color:#d0d5dd;font-size:calc(15px * var(--pelison-type-scale,1));margin:0 0 9px;}

.md-active-ingredients{white-space:normal;overflow-wrap:anywhere;}

.gw-recent-list>.guide-action{margin-bottom:12px;}
