/* Product truth is shared; this screen layer never enters the print cascade.
   Craft reference mapping and explicit exclusions: docs/hard-report-craft-v8.md. */
.hard-grade-document-heading,.hard-grade-document-orientation,.hard-grade-check-ledger,.hard-grade-finding-brief,.hard-grade-print-review-path{display:none}
@media screen {
  .hard-grade-page{--hg-reading:#303833;--hg-muted:#59615c;--hg-rule:#d9ddd5;--hg-paper:#fcfbf8}
  .hard-grade-scan-boundary{position:relative;z-index:2;max-width:62ch;margin:14px 20px 0;font:400 12px/1.5 var(--hg-sans);color:#183b57}
  .hard-grade-micro{margin-top:8px}
  .hard-grade-micro,.hard-grade-proof{color:#234156;font-style:normal;font-size:11px;line-height:1.5}
  .hard-grade-proof{flex-wrap:wrap;max-width:calc(100% - 32px);gap:8px;margin-top:18px}
  .hard-grade-proof i{background:#607b8f}
  .hard-grade-page:has(.hard-grade-results:not([hidden])) .hard-grade-hero{padding-bottom:214px}
  .hard-grade-results:not([hidden]){background:linear-gradient(180deg,rgba(219,233,243,0) 0,rgba(219,233,243,.55) 60px,#dce8f0 110px,#e7e8e8 165px,#f0eae5 226px,#f6f1ec 510px,#fff 1320px)}
  .hard-grade-export-options{margin:18px 62px 0;font-size:13px;color:#4e504d}
  .hard-grade-export-options label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
  .hard-grade-export-options input{width:18px;height:18px;accent-color:#184d7a;flex-shrink:0}
  .hard-grade-export-options>span{display:block;max-width:70ch;margin:2px 0 18px 28px;color:#62635c;font-size:12px;line-height:1.5}
  .hard-grade-reader-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px 26px;margin:0 62px;padding:12px 0 16px;border-top:1px solid var(--hg-rule)}
  .hard-grade-reader-nav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#243d32;font-size:13px;text-decoration:none;text-underline-offset:5px}
  .hard-grade-reader-nav a:hover{text-decoration:underline}
  .hard-grade-reader-nav span{font:600 10px/1 var(--hg-sans);font-variant-numeric:tabular-nums;color:#68756c}
  .hard-grade-priority{padding-block:42px}
  .hard-grade-priority-detail{margin-top:22px;border-top:1px solid #ffffff30;padding-top:10px}
  .hard-grade-priority-detail summary{display:list-item;cursor:pointer;min-height:44px;padding:12px 0;color:#e2e8df;font-size:13px;line-height:1.5}
  .hard-grade-priority-detail .hard-grade-trace{margin-top:18px}
  .hard-grade-founder-bridge{padding-top:36px;padding-bottom:32px}
  .hard-grade-founder-bridge-copy h3{max-width:24ch;font-size:36px;line-height:1.07}
  .hard-grade-founder-bridge-copy>p:last-child{max-width:65ch;margin-top:14px;font-size:13px;color:var(--hg-muted)}
  .hard-grade-founder-bridge-priority{display:none}
  .hard-grade-founder-bridge-signal{margin-top:20px}
  .hard-grade-founder-bridge-signal strong{font-size:26px;font-variant-numeric:tabular-nums}
  .hard-grade-founder-bridge-signal span{font-size:10px;letter-spacing:.045em}
  .hard-grade-founder-bridge-actions{margin-top:20px}
  .hard-grade-founder-bridge-trust{position:relative;z-index:1;max-width:65ch;margin:12px 0 0;color:var(--hg-muted);font-size:12px;line-height:1.6}
  .hard-grade-action-plan{display:block;padding:46px 62px 40px;border-bottom:1px solid var(--hg-rule);background:var(--hg-paper);color:var(--hg-reading);scroll-margin-top:24px}
  .hard-grade-action-intro{max-width:65ch}
  .hard-grade-action-intro .hard-grade-eyebrow{color:var(--grade-ink);font-size:10px;letter-spacing:.12em}
  .hard-grade-action-intro h3{margin:10px 0 14px;font:500 clamp(32px,3.5vw,44px)/1.04 var(--hg-serif);letter-spacing:-.035em;text-wrap:balance}
  .hard-grade-action-intro>p:last-child,.hard-grade-action-question>p,.hard-grade-action-close>p{font-size:14px;line-height:1.65;color:var(--hg-muted);max-width:65ch}
  .hard-grade-task-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:20px 0 0}
  .hard-grade-task-tools .button{min-height:46px;gap:8px;padding:0 18px;font-size:13px;background:#243d32;border:1px solid #243d32;color:#fff;border-radius:6px}
  .hard-grade-task-tools .button:hover{background:#344e40}
  .hard-grade-task-tools .button:active{transform:translateY(1px)}
  .hard-grade-task-tools .button:disabled{opacity:.65;cursor:wait}
  .hard-grade-copy-task-status{min-height:0;margin:0;max-width:42ch;color:var(--hg-muted);font-size:12px;line-height:1.5}
  .hard-grade-copy-task-status:empty{display:none}
  .hard-grade-task-fallback{flex-basis:100%;min-width:0}
  .hard-grade-task-fallback label{display:block;margin:12px 0 8px;font-size:13px;font-weight:600}
  .hard-grade-task-fallback textarea{width:100%;min-height:260px;resize:vertical;padding:14px;border:1px solid #839588;border-radius:6px;background:#fff;color:#24352c;font:400 14px/1.6 var(--hg-sans)}
  .hard-grade-action-question{margin:28px 0 4px;padding:24px 0 18px;border-top:2px solid var(--grade-ink);border-bottom:1px solid var(--hg-rule)}
  .hard-grade-action-question h4{max-width:32ch;margin:10px 0 14px;font:500 28px/1.13 var(--hg-serif);letter-spacing:-.02em;text-wrap:pretty;color:#202b25}
  .hard-grade-action-basis{margin-top:12px!important;font-size:12px!important;color:var(--hg-muted)!important}
  .hard-grade-action-steps{margin:0}
  .hard-grade-action-steps>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:24px;padding:18px 0}
  .hard-grade-action-steps>div+div{border-top:1px solid #e6e8e1}
  .hard-grade-action-steps dt{font-size:12px;font-weight:600;line-height:1.6;color:#415445}
  .hard-grade-action-steps dd{margin:0;font-size:14px;line-height:1.65;max-width:65ch;text-wrap:pretty}
  .hard-grade-action-steps [data-task-part="proof"] dd{font-weight:500;color:#203b2b}
  .hard-grade-action-steps [data-task-part="acceptance"]{background:#eef2ec;padding:20px 16px;border:0;border-radius:4px;margin:2px -16px 4px}
  .hard-grade-action-steps [data-task-part="acceptance"]+div{border-top:0}
  .hard-grade-action-close{margin-top:20px;padding-top:22px;border-top:1px solid #b8c4b8}
  .hard-grade-action-close>strong{display:block;max-width:30ch;font:500 23px/1.2 var(--hg-serif);letter-spacing:-.015em}
  .hard-grade-action-close>p{margin-top:10px;font-size:12px}
  .hard-grade-action-close a{color:#145486;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
  .hard-grade-finding-source{font-size:12px!important;line-height:1.6!important;color:#555b54!important;overflow-wrap:anywhere}
  .hard-grade-finding-source a{color:#1d527b;text-decoration:underline;text-underline-offset:2px;padding:4px 2px}
  .hard-grade-surface-row a{color:#244f76;overflow-wrap:anywhere;font-size:12px;line-height:1.55;text-decoration:underline;text-underline-offset:2px}
  .hard-grade-surface-row small{display:block;font-size:11px;line-height:1.5;color:#666}
  .hard-grade-method-sources h4{font-size:15px;margin:24px 0 14px}
  .hard-grade-snapshot-note{overflow-wrap:anywhere;max-width:72ch;font-size:11.5px;line-height:1.6;color:#6f6f69}
  .hard-grade-demo-label{padding:14px 20px;background:#fff3db;color:#603f13;font-size:12px;font-weight:700}
  .hard-grade-results[data-grade="na"]{--grade-accent:#61717c;--grade-accent-2:#879ba6;--grade-ink:#263c4d;--grade-on:#fff;--grade-faint:#eef2f4;--grade-soft:#e5edf0}
  .hard-grade-results[data-grade="na"] .hard-grade-score-meter{display:none}
  .hard-grade-results[data-grade="na"] .hard-grade-letter{font-size:clamp(76px,14vw,140px)}
  .hard-grade-results[data-grade="na"] .hard-grade-score small{display:none}
  .hard-grade-action-plan :focus-visible,.hard-grade-export-options :focus-visible,.hard-grade-reader-nav a:focus-visible,.hard-grade-priority-detail summary:focus-visible{outline:3px solid #3674a4;outline-offset:4px}
  .hard-grade-views,.hard-grade-findings,.hard-grade-provenance{scroll-margin-top:24px}
  @media(max-width:760px){
    .hard-grade-export-options{margin-inline:20px}
    .hard-grade-reader-nav{margin-inline:20px;gap:6px 18px}
    .hard-grade-reader-nav a{font-size:12px}
    .hard-grade-founder-bridge-copy h3{font-size:31px}
    .hard-grade-founder-bridge-signal{grid-template-columns:repeat(3,minmax(0,1fr))}
    .hard-grade-founder-bridge-signal>div:last-child{grid-column:auto;border-top:0;padding-left:10px}
    .hard-grade-founder-bridge-signal>div{padding:14px 10px 14px 0}
    .hard-grade-founder-bridge-signal>div+div{padding-left:10px}
    .hard-grade-founder-bridge-signal span{font-size:9px;letter-spacing:.025em;line-height:1.5}
    .hard-grade-founder-bridge-signal strong{font-size:25px}
    .hard-grade-action-plan{padding:34px 20px}
    .hard-grade-action-steps>div{grid-template-columns:1fr;gap:7px;padding-block:16px}
    .hard-grade-action-question h4{font-size:26px}
    .hard-grade-action-steps [data-task-part="acceptance"]{margin-inline:-10px;padding:18px 10px}
    .hard-grade-product-input.input,.hard-grade-review-input.input,.hard-grade-task-fallback textarea{font-size:16px}
    .hard-grade-review-form>div{min-width:0}
    .hard-grade-scan-boundary{font-size:12px;max-width:38ch}
    .hard-grade-view-copy .hard-grade-view-meta>span:not(.tag){white-space:normal}
    .hard-grade-source-links{flex-wrap:wrap}
    .hard-grade-page:has(.hard-grade-results:not([hidden])) .hard-grade-hero{padding-bottom:175px}
    .hard-grade-results:not([hidden]){background:linear-gradient(180deg,rgba(219,233,243,0) 0,rgba(219,233,243,.5) 50px,#dce8f0 96px,#e7e8e8 145px,#f0eae5 195px,#f6f1ec 390px,#fff 1020px)}
  }
  @media(prefers-reduced-motion:reduce){.hard-grade-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
}
