/* The two one-page merges (1 Oct 2026): /how-honestfix-works (sections, drawers) and /tools (tabs, panels).
   Loaded after utility.css and hc.css; tokens from design.css (--paper, --pale, --line, --navy, --blue, --yellow). */

/* --- Detail lines and drawers ------------------------------------------------------------------ */
/* Trigger cards (3 Oct 2026): every "open the detail" opener is the one approved card: white, 1px blue border, radius 16,
   blue Manrope title, grey description, arrow on the right. A section's cards sit in one row at its end under "Go deeper":
   two equal columns on desktop (a single card keeps one column's width, aligned left), one column on a phone. */
.hf-deeper{clear:both;margin:28px 0 0}
.hf-deeper-label{margin:0 0 10px!important;font:700 11px/1.4 'DM Sans',Arial,sans-serif!important;letter-spacing:1.55px;text-transform:uppercase;color:var(--muted)}
.hf-triggers{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.hf-trigger-wrap{display:flex;min-width:0;scroll-margin-top:24px}
.hf-trigger{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;box-sizing:border-box;width:100%;min-height:120px;margin:0;padding:16px 52px 16px 18px;text-align:left;border:1px solid var(--blue);border-radius:16px;background:#fff;color:var(--ink);font-family:'DM Sans',Arial,sans-serif;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.hf-trigger:hover{background:var(--pale);border-color:var(--navy);box-shadow:0 2px 0 var(--navy)}
.hf-trigger:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.hf-trigger:active{box-shadow:none}
.hf-trigger-label{font:700 16px/1.3 Manrope,Arial,sans-serif;color:var(--blue);letter-spacing:-.2px}
.hf-trigger:hover .hf-trigger-label{color:var(--navy)}
.hf-trigger-desc{font:400 14px/1.45 'DM Sans',Arial,sans-serif;color:var(--muted)}
.hf-trigger-arrow{position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:20px;line-height:1;color:var(--blue);transition:transform .15s}
.hf-trigger:hover .hf-trigger-arrow{transform:translate(3px,-50%);color:var(--navy)}
@media(prefers-reduced-motion:reduce){.hf-trigger,.hf-trigger-arrow{transition:none}}
@media(max-width:700px){.hf-triggers{grid-template-columns:1fr}.hf-trigger{min-height:100px}}

/* Section scenes, newspaper style: the picture floats right (40% of the text column, at most 320px) and the text wraps
   around it; lists become their own block so bullets never run under the picture; the trigger row clears it.
   On a phone the picture sits full width above the text. */
.hf-sec-float::after{content:"";display:block;clear:both}
.hc-body.prose .hf-sec-float .hf-photo-float{float:right;width:min(40%,320px);aspect-ratio:4/3;margin:6px 0 14px 28px}
.hf-sec-float .utility-prose ul,.hf-sec-float .utility-prose ol{display:flow-root}
@media(max-width:700px){.hc-body.prose .hf-sec-float .hf-photo-float{float:none;width:100%;aspect-ratio:16/9;margin:0 0 18px}}

/* Pop-ups (3 Oct 2026): a small transparent cut-out tucked in the top-right corner beside the heading, then text set exactly like the page sections around them
   (h2 as .hc-body.prose h2, body as .hc-u .utility-prose), figures as cards like the page's .hc-card. */
.hf-drawer{width:min(680px,calc(100vw - 32px));max-height:min(88vh,920px);margin:auto;padding:0;border:1px solid var(--line);border-radius:16px 34px 16px 16px;background:#fff;color:var(--ink);box-shadow:4px 4px 0 var(--navy);overflow:hidden;display:none;flex-direction:column}
.hf-drawer[open]{display:flex}
.hf-drawer::backdrop{background:#102e4f66}
.hf-drawer-close{position:absolute;top:14px;right:14px;z-index:2;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:22px;line-height:1;color:var(--navy);cursor:pointer;box-shadow:0 1px 2px #102e4f14}
.hf-drawer-close:hover{background:var(--pale)}
.hf-drawer-body{padding:24px 24px 12px;overflow:auto;flex:1 1 auto;font-size:15px;line-height:1.85;color:#58697a}
/* The cut-out floats right under the close button; the heading and the first lines wrap beside it, the figure grid clears it. */
.hf-drawer-cut{float:right;width:140px;height:auto;max-height:150px;object-fit:contain;object-position:right bottom;margin:40px 0 12px 20px}
.hf-drawer-body ul.hf-figs{clear:both}
.hf-drawer-body .hf-drawer-text ul,.hf-drawer-body .hf-drawer-text ol{display:flow-root}
.hf-drawer-body h2{margin:0 0 16px;padding-right:56px;font:650 27px/1.35 Manrope,Arial,sans-serif;letter-spacing:-.7px;color:var(--navy)}
.hf-drawer-body h3{margin:28px 0 8px;font:650 18px/1.4 Manrope,Arial,sans-serif;letter-spacing:-.3px;color:var(--navy)}
.hf-drawer-body p{margin:0 0 16px}
.hf-drawer-body ol,.hf-drawer-body ul{padding-left:22px;margin:0 0 16px}
.hf-drawer-body li{margin:8px 0}
.hf-drawer-body .utility-table-scroll{margin:0 0 16px}
.hf-drawer-body table{min-width:0}
/* Figures: one card each, the first across the full width. Navy, Manrope, tabular, comma separated (fmt). */
.hf-drawer-body ul.hf-figs{list-style:none;padding:0;margin:4px 0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hf-drawer-body ul.hf-figs li{margin:0;display:flex;flex-direction:column;gap:4px;padding:18px 18px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px #102e4f0a;min-width:0}
.hf-drawer-body ul.hf-figs li:first-child{grid-column:1/-1}
.hf-fig{display:block;margin:0 0 4px;font:800 32px/1.1 Manrope,Arial,sans-serif;letter-spacing:-1px;color:var(--navy)!important;font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.hf-figs li:first-child .hf-fig{font-size:44px;letter-spacing:-1.6px}
.hf-fig-label{display:block;font:650 16px/1.35 Manrope,Arial,sans-serif;letter-spacing:-.3px;color:var(--navy)}
.hf-fig-note{display:block;font-size:14px;line-height:1.6;color:var(--muted)}
.hf-figs-path{margin:20px 0 12px!important;padding:14px 18px;border-radius:12px;background:var(--pale);font:650 16px/1.5 Manrope,Arial,sans-serif;letter-spacing:-.2px;color:var(--navy);font-variant-numeric:tabular-nums}
.hf-figs-foot{font-size:13px;line-height:1.65;color:var(--muted)}
.hf-drawer-foot{margin:0;padding:12px 24px 20px;border-top:1px solid var(--line);background:#fff}
@media(max-width:700px){.hc-u .hf-drawer .hf-drawer-body{font-size:14px}.hf-drawer-body h2{font-size:23px;letter-spacing:-.6px}.hf-drawer-body ul.hf-figs{grid-template-columns:1fr;gap:10px}.hf-drawer-body ul.hf-figs li{padding:16px 16px 14px}.hf-fig{font-size:30px}.hf-figs li:first-child .hf-fig{font-size:36px;letter-spacing:-1.2px}.hf-figs-path{font-size:15px;padding:12px 14px}}
@media(max-width:600px){.hf-drawer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px 29px 14px 14px}.hf-drawer-close{top:10px;right:10px}.hf-drawer-body{padding:16px 16px 8px}.hf-drawer-cut{width:96px;max-height:110px;margin:42px 0 10px 14px}.hf-drawer-foot{padding:10px 16px 16px}}

/* --- How it works: the score row --------------------------------------------------------------- */
.hf-score-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:start}
.hf-score-figure{margin:6px 0 0;display:grid;gap:10px;justify-items:center;width:112px}
.hf-score-figure figcaption{font-size:12px;line-height:1.45;color:var(--muted);text-align:center}
.hf-score-figure .scorecard{display:grid;place-items:center;position:relative}
@media(max-width:600px){.hf-score-row{grid-template-columns:1fr}.hf-score-figure{width:auto;justify-items:start;grid-template-columns:auto minmax(0,1fr);align-items:center;text-align:left}.hf-score-figure figcaption{text-align:left}}

/* --- Tools: one dashboard ---------------------------------------------------------------------- */
.hf-tools{background:var(--paper)}
.hf-tools-wrap{max-width:1160px;padding-top:36px;padding-bottom:56px}
.hf-tools-head{max-width:640px;margin:0 0 24px}
.hf-tools-head h1{font:800 36px/1.15 Manrope,Arial,sans-serif;letter-spacing:-1.4px;color:var(--ink);margin:0 0 10px}
.hf-tools-head .utility-prose{font-size:16px}
.hf-tabs{display:inline-flex;gap:4px;padding:4px;margin:0 0 20px;border:1px solid var(--line);border-radius:12px;background:#fff;max-width:100%;overflow-x:auto}
.hf-tabs a{flex:none;padding:10px 18px;min-height:42px;display:inline-flex;align-items:center;border-radius:9px;color:var(--navy);font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
.hf-tabs a:hover{background:var(--pale)}
.hf-tabs a[aria-selected="true"]{background:var(--navy);color:#fff}
.hf-tab-panel[hidden]{display:none}
.hf-tab-panel[aria-busy="true"] .hf-app-card{opacity:.6;transition:opacity .15s}
.hf-app-card{border-radius:16px 34px 16px 16px;box-shadow:4px 4px 0 var(--navy);border:1px solid var(--navy);scroll-margin-top:16px}
.hf-app-card .hc-tool-head h2{font:800 30px/1.2 Manrope,Arial,sans-serif;letter-spacing:-1.1px;color:var(--ink);margin:0 0 12px}
.hf-app-card .hc-out:focus{outline:none}
.hf-app-card .hc-out:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.hf-tool-about{margin:22px 0 8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.hf-tool-about>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;font:650 15px/1.4 'DM Sans',Arial,sans-serif;color:var(--navy)}
.hf-tool-about>summary::-webkit-details-marker{display:none}
.hf-tool-about>summary span{color:var(--blue);font-size:20px}
.hf-tool-about[open]>summary span{transform:rotate(45deg)}
.hf-tool-about .hc-body{padding:0 20px 20px;max-width:720px}
.hf-tool-about .hc-body h3{font:700 19px/1.3 Manrope,Arial,sans-serif;letter-spacing:-.4px;color:var(--navy);margin:24px 0 10px}
.hf-tools .hc-end{max-width:720px}
@media(max-width:900px){.hf-app-card{border-radius:14px 29px 14px 14px}}
@media(max-width:600px){.hf-tools-wrap{padding-top:20px}.hf-tools-head h1{font-size:30px;letter-spacing:-1.1px}.hf-tabs{display:flex}.hf-tabs a{flex:1 1 0;justify-content:center;padding:10px 8px;font-size:13px}.hf-app-card .hc-tool-head h2{font-size:26px}}
