/* contract-risk-checker (build_contract_risk_checker.py). Every rule starts with .xa-crc.
   Centrepiece: the gap scale, twelve cells from 0 to 11 gaps banded Low / Moderate / High / Severe. */
.xa-crc .crc-in{max-width:1220px;margin:0 auto;padding:0 28px}
.xa-crc section[class^="crc-"] h2{font-size:clamp(1.65rem,2.5vw,2.2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}
.xa-crc section[class^="crc-"] p{font-size:1.04rem;line-height:1.72;color:#2f2b2e}
.xa-crc section[class^="crc-"] p+p{margin-top:16px}
.xa-crc section[class^="crc-"] a{color:var(--c);font-weight:700}
.xa-crc mark.kf{background:linear-gradient(180deg,transparent 58%,rgba(255,45,111,.34) 58%);color:inherit;padding:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* the tool sits on a tinted desk straight under the page head */
.xa-crc .crc-desk{background:#fff0f4;padding:40px 0 52px}
.xa-crc .crc-desk .tool{padding-top:0;padding-bottom:0}
/* bl2.css makes the side column sticky, and it slid down over the result card; here it stays put */
.xa-crc .crc-desk .tside{position:static;align-self:start}
.xa-crc .crc-desk .card .btnrow .tgo{width:auto}
.xa-crc .crc-desk .tf{background:#fff}
.xa-crc .crc-desk .tside>.form-note{color:#4a4347}
.xa-crc .crc-desk .resw>.card{border:2px solid var(--ink);border-radius:20px;box-shadow:none;background:#fff}
.xa-crc .crc-desk .card>h3{font-family:var(--head);font-size:1.45rem;line-height:1.3;letter-spacing:-.02em;max-width:60ch}
.xa-crc .crc-desk .card>p{margin-top:14px;font-size:1.02rem}
.xa-crc .crc-desk .card>p b{display:inline-block;background:var(--cfield);color:var(--ink);border-radius:6px;padding:1px 9px;font-family:var(--head)}
.xa-crc .crc-desk .card h4{font-family:var(--head);font-size:1.08rem;color:var(--ink);padding-bottom:8px}
.xa-crc .crc-desk .card .price-list li p{color:#3d383b}

/* jump links */
.xa-crc .crc-jump{border-bottom:1px solid var(--line)}
.xa-crc .crc-jump .crc-in{display:flex;flex-wrap:wrap;gap:6px 26px;padding-top:16px;padding-bottom:16px}
.xa-crc .crc-jump a{font-size:.92rem;font-weight:700;color:var(--ink);border-bottom:2px solid var(--cfield);padding-bottom:1px}
.xa-crc .crc-jump a:hover{color:var(--c)}

/* the scale */
.xa-crc .crc-scale{background:var(--ink);color:#fff;padding:76px 0 80px}
.xa-crc .crc-ruler{margin-top:38px}
.xa-crc .crc-cells{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px}
.xa-crc .crc-cells li{height:74px;display:flex;align-items:flex-end;justify-content:flex-start;padding:0 0 8px 10px;font-family:var(--head);font-weight:700;font-size:1.25rem;letter-spacing:-.02em;border-radius:4px}
.xa-crc .crc-cells .b0{background:#fff;color:var(--ink)}
.xa-crc .crc-cells .b1{background:#ffc9d6;color:var(--ink)}
.xa-crc .crc-cells .b2{background:var(--cfield);color:var(--ink)}
.xa-crc .crc-cells .b3{background:var(--plum);color:#fff;box-shadow:inset 0 0 0 1.5px var(--cfield)}
.xa-crc .crc-bands{display:grid;grid-template-columns:1fr 2fr 3fr 6fr;gap:4px;margin:10px 0 0}
.xa-crc .crc-bands>div{border-top:3px solid #fff;padding:10px 0 0 2px}
.xa-crc .crc-bands .b1{border-color:#ffc9d6}
.xa-crc .crc-bands .b2{border-color:var(--cfield)}
.xa-crc .crc-bands .b3{border-color:var(--cd)}
.xa-crc .crc-bands dt{font-family:var(--head);font-weight:700;font-size:1.12rem;letter-spacing:-.015em}
.xa-crc .crc-bands dd{margin:2px 0 0;font-size:.9rem;line-height:1.35;color:#d9cfd4}
.xa-crc .crc-scale-tx{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;margin-top:44px}
.xa-crc section.crc-scale p{color:#f1e9ec;margin:0}
.xa-crc section.crc-scale p+p{margin-top:0}
.xa-crc .crc-scale mark.kf{background:none;color:#fff;font-weight:700;padding:0}

/* what to do next: four moves in order */
.xa-crc .crc-next{padding:80px 0 72px}
.xa-crc .crc-next .crc-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:64px;align-items:start}
.xa-crc .crc-next-h p{margin-top:18px}
.xa-crc .crc-next ol{list-style:none;margin:0;padding:0;counter-reset:mv;border-top:2px solid var(--ink)}
.xa-crc .crc-next li{counter-increment:mv;position:relative;padding:20px 0 20px 76px;border-bottom:1px solid var(--line);font-size:1.04rem;line-height:1.65;color:#2f2b2e}
.xa-crc .crc-next li:before{content:counter(mv);position:absolute;left:0;top:12px;font-family:var(--head);font-weight:700;font-size:2.5rem;line-height:1.1;letter-spacing:-.04em;color:var(--cfield)}
.xa-crc .crc-next li strong{display:block;font-family:var(--head);font-size:1.14rem;letter-spacing:-.015em;color:var(--ink);margin-bottom:3px}

/* cost: the fixed fee against the hourly rate the page quotes */
.xa-crc .crc-cost{background:#fff0f4;padding:76px 0}
.xa-crc .crc-cost-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:start;margin-top:28px}
.xa-crc .crc-cost-tx p{max-width:68ch}
.xa-crc .crc-hour{background:#fff;border:2px solid var(--ink);border-radius:18px;padding:8px 26px 26px}
.xa-crc .crc-hour-row{padding:20px 0}
.xa-crc .crc-hour-row+.crc-hour-row{border-top:1px solid var(--line)}
.xa-crc .crc-hour-row b{display:block;font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;color:var(--ink)}
.xa-crc .crc-fixed b{font-size:2.1rem;line-height:1.1}
.xa-crc .crc-hour-row>span{display:block;font-size:.93rem;line-height:1.45;color:#4a4347;margin-top:4px}
.xa-crc .crc-clock{position:relative;height:26px;margin-top:18px;border-radius:5px;background:repeating-linear-gradient(to right,var(--line) 0 1px,transparent 1px 16.666%),#f6f1f3;border:1px solid var(--line)}
.xa-crc .crc-clock i{position:absolute;top:-1px;bottom:-1px;left:50%;width:33.333%;background:var(--cfield);border-radius:3px}
.xa-crc .crc-ticks{position:relative;height:22px;margin-top:6px;font-size:.82rem;font-weight:700;color:var(--ink)}
.xa-crc .crc-ticks span{position:absolute;top:0;white-space:nowrap}
.xa-crc .crc-ticks .t0{left:0}
.xa-crc .crc-ticks .t45{left:50%;transform:translateX(-50%)}
.xa-crc .crc-ticks .t75{left:83.333%;transform:translateX(-50%)}

/* why these eleven: four topics, heading in the margin */
.xa-crc .crc-why{padding:84px 0 40px}
.xa-crc .crc-why-h{max-width:760px;margin-bottom:44px}
.xa-crc .crc-why-h p{margin-top:16px;font-size:1.14rem;line-height:1.6;color:var(--ink)}
.xa-crc .crc-topic{position:relative;padding:34px 0 38px 34%;border-top:2px solid var(--ink)}
.xa-crc .crc-topic h3{position:absolute;left:0;top:34px;width:28%;font-size:1.36rem;font-weight:700;letter-spacing:-.022em;line-height:1.22}
.xa-crc .crc-topic>p,.xa-crc .crc-topic>.crc-sum{max-width:70ch}
.xa-crc .crc-sum{display:flex;align-items:stretch;gap:14px;margin:20px 0}
.xa-crc .crc-sum span{flex:1 1 0;border:2px solid var(--ink);border-radius:12px;padding:12px 14px;font-size:.86rem;line-height:1.35;color:#3d383b}
.xa-crc .crc-sum b{display:block;font-family:var(--head);font-size:1.6rem;line-height:1.1;letter-spacing:-.03em;color:var(--ink);margin-bottom:3px}
.xa-crc .crc-sum i{align-self:center;font-style:normal;font-family:var(--head);font-weight:700;font-size:1.5rem}
.xa-crc .crc-sum .crc-tot{flex:1.5 1 0;background:var(--cfield);border-color:var(--cfield);color:var(--ink)}

/* deeds: six years against twelve */
.xa-crc .crc-deed{background:var(--plum);color:#fff;padding:76px 0 80px}
.xa-crc .crc-years{margin:36px 0 34px;display:grid;gap:14px}
.xa-crc .crc-yr{display:grid;grid-template-columns:190px minmax(0,1fr) 90px;gap:18px;align-items:center}
.xa-crc .crc-yr>span{font-family:var(--head);font-weight:700;font-size:1.05rem}
.xa-crc .crc-yr i{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}
.xa-crc .crc-yr i b{height:34px;border-radius:3px;background:#fff}
.xa-crc .crc-yr.y12 i b{background:var(--cfield)}
.xa-crc .crc-yr em{font-style:normal;font-family:var(--head);font-weight:700;font-size:1.2rem;white-space:nowrap}
.xa-crc section.crc-deed p{color:#f6e9ee;max-width:76ch}
.xa-crc .crc-deed mark.kf{background:none;color:#fff;font-weight:700;padding:0}

/* the review link and the general note */
.xa-crc .crc-end{padding:56px 0 8px}
.xa-crc section.crc-end .crc-review{font-family:var(--head);font-weight:500;font-size:1.22rem;line-height:1.5;letter-spacing:-.012em;color:var(--ink);border-left:6px solid var(--cfield);padding-left:22px;max-width:60ch}
.xa-crc section.crc-end .crc-small{margin-top:28px;font-size:.88rem;line-height:1.62;color:var(--mute);max-width:96ch}

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

/* related reading */
.xa-crc .crc-rel{padding:0 0 72px}
.xa-crc .crc-rel ul{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.xa-crc .crc-rel li{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr) auto;gap:10px 64px;align-items:baseline;padding:20px 0;border-bottom:1px solid var(--line)}
.xa-crc .crc-rel h3{font-size:1.12rem;font-weight:700;letter-spacing:-.015em;line-height:1.3}
.xa-crc section.crc-rel h3 a{color:var(--ink)}
.xa-crc section.crc-rel p{font-size:.98rem;line-height:1.55;margin:0}
.xa-crc section.crc-rel .go{white-space:nowrap;font-size:.95rem}

@media(max-width:1000px){
  .xa-crc .crc-next .crc-in,.xa-crc .crc-cost-g,.xa-crc .crc-faq .crc-in{grid-template-columns:1fr;gap:30px}
  .xa-crc .crc-topic{padding-left:0}
  .xa-crc .crc-topic h3{position:static;width:auto;margin-bottom:14px}
  .xa-crc .crc-rel li{grid-template-columns:1fr;gap:6px}
}
@media(max-width:760px){
  .xa-crc .crc-in{padding:0 16px}
  .xa-crc .crc-desk{padding:24px 0 36px}
  .xa-crc .crc-scale,.xa-crc .crc-cost,.xa-crc .crc-deed{padding:52px 0}
  .xa-crc .crc-next{padding:52px 0 44px}
  .xa-crc .crc-why{padding:52px 0 16px}
  .xa-crc .crc-cells{gap:2px}
  .xa-crc .crc-cells li{height:52px;padding:0 0 5px 4px;font-size:.86rem}
  .xa-crc .crc-bands{grid-template-columns:1fr 1fr;gap:14px 16px;margin-top:18px}
  .xa-crc .crc-scale-tx{grid-template-columns:1fr;gap:16px;margin-top:30px}
  .xa-crc .crc-next li{padding-left:52px}
  .xa-crc .crc-next li:before{font-size:2rem}
  .xa-crc .crc-hour{padding:4px 18px 20px}
  .xa-crc .crc-sum{flex-direction:column;gap:6px}
  .xa-crc .crc-sum i{line-height:1}
  .xa-crc .crc-yr{grid-template-columns:1fr auto;gap:6px 12px}
  .xa-crc .crc-yr i{grid-column:1/-1;grid-row:2}
  .xa-crc .crc-jump .crc-in{flex-wrap:nowrap;overflow-x:auto;gap:20px;scrollbar-width:none}
  .xa-crc .crc-jump a{flex:none}
}
@media print{
  .xa-crc .crc-jump,.xa-crc .crc-scale,.xa-crc .crc-next,.xa-crc .crc-cost,.xa-crc .crc-why,.xa-crc .crc-deed,.xa-crc .crc-end,.xa-crc .crc-faq,.xa-crc .crc-rel{display:none}
  .xa-crc .crc-desk{background:none;padding:0}
}
