/* legal-healthcheck (build_legal_healthcheck.py). Every rule starts with .xa-lhc.
   Centrepiece: the report as a blank scorecard, the score box and a rating line for each of the eight areas. */
.xa-lhc .lhc-in{max-width:1220px;margin:0 auto;padding:0 28px}
.xa-lhc section[class^="lhc-"] h2{font-size:clamp(1.65rem,2.5vw,2.2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}
.xa-lhc section[class^="lhc-"] p{font-size:1.04rem;line-height:1.7;color:#2f2b2e;margin:0}

/* the questions: each area under its own bar, progress beside them */
.xa-lhc .lhc-desk{padding:36px 0 44px}
.xa-lhc .lhc-desk .tool{padding-top:0;padding-bottom:0}
.xa-lhc .lhc-desk .hcf{border:0;border-radius:0;padding:0}
.xa-lhc .lhc-desk .hcf .tfhead{border-bottom:0;margin-bottom:14px;padding-bottom:0}
.xa-lhc .lhc-desk .hcf .hcsec{margin:0 0 34px}
.xa-lhc .lhc-desk .hcf .hcsec h3{font-family:var(--head);font-size:1.12rem;font-weight:700;letter-spacing:-.015em;color:#fff;background:var(--ink);border-radius:6px;padding:12px 18px;margin:0;align-items:center}
.xa-lhc .lhc-desk .hcf .hcsec h3 em{color:#fff;font-size:.86rem;font-family:var(--body)}
.xa-lhc .lhc-desk .hcf .hcsec.done h3{background:var(--cfield);color:var(--ink)}
.xa-lhc .lhc-desk .hcf .hcsec.done h3 em{color:var(--ink)}
.xa-lhc .lhc-desk .hcf .q{padding:18px 18px 20px}
.xa-lhc .lhc-desk .hc-pills button{border:1.5px solid var(--ink)}
.xa-lhc .lhc-desk .hc-pills button[aria-pressed=true]{background:var(--cfield);border-color:var(--cfield);color:var(--ink)}
.xa-lhc .lhc-desk .hc-pills button.v-na[aria-pressed=true],.xa-lhc .lhc-desk .hc-pills button.v-unsure[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.xa-lhc .lhc-desk .hcprog{border:2px solid var(--ink);border-radius:6px}
.xa-lhc .lhc-desk .hcpbar i{background:var(--cfield)}
.xa-lhc .lhc-desk .resw>.card{border:2px solid var(--ink);border-radius:6px;box-shadow:none}
.xa-lhc .lhc-desk .card>h3{font-family:var(--head);font-size:1.5rem;letter-spacing:-.02em}
.xa-lhc .lhc-desk .card h4{font-family:var(--head);font-size:1.12rem;color:var(--ink);padding-bottom:10px}

/* the general note */
.xa-lhc .lhc-note{padding:0 0 60px}
.xa-lhc section.lhc-note p{max-width:84ch;border-left:6px solid var(--cfield);padding-left:22px;font-size:1rem;color:#3d383b}

/* the scorecard */
.xa-lhc .lhc-card{background:var(--ink);padding:76px 0 84px}
.xa-lhc section.lhc-card h2{color:#fff}
.xa-lhc .lhc-report{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;margin-top:36px;background:#fff;border-radius:4px;box-shadow:14px 14px 0 var(--plum)}
.xa-lhc .lhc-score{background:var(--cfield);border-radius:4px 0 0 4px;padding:34px 28px;display:flex;flex-direction:column;justify-content:flex-start;color:var(--ink)}
.xa-lhc .lhc-score b{display:block;height:84px;border-bottom:4px solid var(--ink);margin-bottom:12px}
.xa-lhc .lhc-score span{font-family:var(--head);font-weight:700;font-size:1.2rem;letter-spacing:-.015em}
.xa-lhc .lhc-areas{list-style:none;margin:0;padding:14px 34px 18px}
.xa-lhc .lhc-areas li{display:grid;grid-template-columns:200px minmax(0,1fr) 100px 170px;gap:24px;align-items:center;padding:17px 0;border-bottom:1px dashed #cfc6ca}
.xa-lhc .lhc-areas li:last-child{border-bottom:0}
.xa-lhc .lhc-areas h3{font-size:1.1rem;font-weight:700;letter-spacing:-.015em;line-height:1.25;margin:0;color:var(--ink)}
.xa-lhc section.lhc-card .lhc-areas p{font-size:.98rem;line-height:1.5}
.xa-lhc .lhc-n{font-size:.86rem;font-weight:700;color:var(--ink);white-space:nowrap;text-align:right}
.xa-lhc .lhc-areas i{display:block;height:12px;border-radius:99px;border:1.5px solid var(--ink);background:#fff0f4}

/* what happens next: four steps down a stair */
.xa-lhc .lhc-next{padding:84px 0 60px}
.xa-lhc .lhc-stairs{list-style:none;margin:40px 0 0;padding:0;counter-reset:st;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.xa-lhc .lhc-stairs li{counter-increment:st;position:relative;border-top:4px solid var(--ink);padding:20px 26px 0 0}
.xa-lhc .lhc-stairs li:nth-child(2){margin-top:44px}
.xa-lhc .lhc-stairs li:nth-child(3){margin-top:88px}
.xa-lhc .lhc-stairs li:nth-child(4){margin-top:132px;border-top-color:var(--cfield)}
.xa-lhc .lhc-stairs li+li:after{content:"";position:absolute;left:0;top:-48px;height:44px;border-left:4px solid var(--ink)}
.xa-lhc .lhc-stairs li:before{content:counter(st);display:block;font-family:var(--head);font-weight:700;font-size:2.6rem;line-height:1;letter-spacing:-.04em;color:var(--cfield);margin-bottom:10px}
.xa-lhc .lhc-stairs h3{font-size:1.2rem;font-weight:700;letter-spacing:-.018em;line-height:1.25;margin:0 0 8px}
.xa-lhc section.lhc-next .lhc-stairs p{font-size:.99rem;line-height:1.62}

/* questions */
.xa-lhc .lhc-faq{padding:40px 0 56px}
.xa-lhc .lhc-faq .lhc-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:64px;align-items:start}
.xa-lhc .lhc-qs{display:block;max-width:none;padding:0;border-top:2px solid var(--ink)}
.xa-lhc section.lhc-faq .fqa p{font-size:1rem;line-height:1.7;color:#3d3b41}

/* the email form */
.xa-lhc .lhc-send{padding:0 0 72px}

@media(max-width:1100px){
  .xa-lhc .lhc-areas li{grid-template-columns:170px minmax(0,1fr) 90px;gap:18px}
  .xa-lhc .lhc-areas i{display:none}
}
@media(max-width:860px){
  .xa-lhc .lhc-report{grid-template-columns:1fr}
  .xa-lhc .lhc-score{border-radius:4px 4px 0 0;flex-direction:row;align-items:flex-end;gap:14px;padding:22px 24px}
  .xa-lhc .lhc-score b{width:90px;height:44px;margin:0}
  .xa-lhc .lhc-stairs{grid-template-columns:1fr 1fr;gap:34px 0}
  .xa-lhc .lhc-stairs li:nth-child(n){margin-top:0}
  .xa-lhc .lhc-stairs li+li:after{display:none}
  .xa-lhc .lhc-faq .lhc-in{grid-template-columns:1fr;gap:26px}
}
@media(max-width:760px){
  .xa-lhc .lhc-in{padding:0 16px}
  .xa-lhc .lhc-desk{padding:20px 0 28px}
  .xa-lhc .lhc-desk .hcf .q{padding:16px 4px 18px}
  .xa-lhc .lhc-card,.xa-lhc .lhc-next{padding:52px 0}
  .xa-lhc .lhc-report{box-shadow:8px 8px 0 var(--plum);margin-right:8px}
  .xa-lhc .lhc-areas{padding:8px 20px 12px}
  .xa-lhc .lhc-areas li{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .xa-lhc section.lhc-card .lhc-areas p{grid-column:1/-1;grid-row:2}
  .xa-lhc .lhc-stairs{grid-template-columns:1fr}
  .xa-lhc .lhc-send{padding-bottom:48px}
}
@media print{
  .xa-lhc .lhc-note,.xa-lhc .lhc-card,.xa-lhc .lhc-next,.xa-lhc .lhc-faq,.xa-lhc .lhc-send{display:none}
}
