/* blog-handshake-deal-goes-wrong (build_blog_handshake_deal_goes_wrong.py). Every rule starts with .bb-hand.
   Centrepiece: the same-day confirmation note, drawn with its four lines to fill in. */

/* reading column, contents and the small print: shared shape, scoped to this page */
.bb-hand .b-art{max-width:1220px;margin:0 auto;padding:60px 28px 24px}
.bb-hand .b-sec{display:grid;grid-template-columns:minmax(0,41rem) minmax(0,1fr);column-gap:72px;align-items:start;padding-top:68px}
.bb-hand .b-sec.b-first{padding-top:0}
.bb-hand .b-sec>*{min-width:0}
.bb-hand .b-sec>.b-tx{grid-column:1}
.bb-hand .b-sec>.b-side{grid-column:2}
.bb-hand .b-sec>.b-wide{grid-column:1/-1}
.bb-hand :where(.b-art) h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.028em;line-height:1.14;margin:0 0 18px;scroll-margin-top:20px;max-width:24ch}
.bb-hand :where(.b-art) p{font-size:1.06rem;line-height:1.72;color:#2a2629;margin:0 0 16px}
.bb-hand :where(.b-art .b-tx)>p:last-child{margin-bottom:0}
.bb-hand .b-first .b-tx>p:first-child{font-family:var(--head);font-size:1.28rem;line-height:1.55;font-weight:500;letter-spacing:-.012em;color:var(--ink)}
.bb-hand :where(.b-art) p a,.bb-hand :where(.b-art) li a,.bb-hand .b-legal a{color:var(--cd);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.bb-hand :where(.b-art) strong{color:var(--ink)}
.bb-hand :where(.b-art) mark.kf{background:linear-gradient(180deg,transparent 58%,#ffc9d6 58%);color:var(--ink);padding:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.bb-hand .b-toc{counter-reset:toc;border-top:3px solid var(--ink);padding-top:14px}
.bb-hand .b-toc b{display:block;font-family:var(--head);font-size:1.02rem;font-weight:700;margin-bottom:6px}
.bb-hand .b-toc a{counter-increment:toc;display:grid;grid-template-columns:28px minmax(0,1fr);padding:9px 0;border-bottom:1px solid var(--line);font-size:.95rem;line-height:1.4;color:var(--ink);font-weight:600}
.bb-hand .b-toc a:before{content:counter(toc);font-family:var(--head);font-weight:700;color:var(--c)}
.bb-hand .b-toc a:hover{color:var(--cd)}
.bb-hand .b-legal{max-width:41rem;margin-top:44px;padding-top:20px;border-top:1px solid var(--line);font-size:.88rem;line-height:1.62;color:var(--mute)}
.bb-hand .b-legal b{display:block;color:var(--ink);font-size:.92rem;margin-bottom:4px}
.bb-hand .b-eg{font-size:.84rem;line-height:1.5;color:var(--mute);margin:14px 0 0}
.bb-hand .b-art+section.g{padding-top:40px}
.bb-hand .cap+.faqs{margin-top:40px}
.bb-hand .b-relbox{margin-top:62px;border-top:3px solid var(--ink);padding-top:14px}
.bb-hand .b-relbox>b{display:block;font-family:var(--head);font-weight:700;font-size:1.02rem;margin-bottom:8px}
.bb-hand .b-relbox p{font-size:.98rem;line-height:1.65;margin:0}
.bb-hand .b-band{margin:72px -28px 0;padding:72px 28px 80px;background:var(--ink);box-shadow:0 0 0 100vmax var(--ink);clip-path:inset(0 -100vmax);color:#fff}
.bb-hand :where(.b-band) h2{color:#fff}
.bb-hand :where(.b-band) p{color:#efe8eb}
.bb-hand :where(.b-band) mark.kf{background:linear-gradient(180deg,transparent 58%,var(--cd) 58%);color:#fff}
.bb-hand :where(.b-band) p a{color:#fff}
@media(max-width:980px){
.bb-hand .b-sec{grid-template-columns:minmax(0,1fr);padding-top:52px}
.bb-hand .b-sec>.b-side,.bb-hand .b-sec>.b-tx,.bb-hand .b-sec>.b-wide{grid-column:1}
.bb-hand .b-sec>.b-side{margin-top:26px}
.bb-hand .b-relbox{margin-top:26px}
}
@media(max-width:600px){
.bb-hand .b-art{padding:40px 18px 12px}
.bb-hand .b-band{margin:52px -18px 0;padding:52px 18px 60px}
.bb-hand .b-first .b-tx>p:first-child{font-size:1.14rem}
}

/* four things */
.bb-hand .hs-lab{font-family:var(--head);font-weight:700;font-size:1.02rem;line-height:1.35;color:var(--ink);margin:6px 0 12px}
.bb-hand .hs-lab2{margin-top:30px}
.bb-hand .hs-four ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bb-hand .hs-four ol li{padding:16px 16px 18px;border-radius:14px;background:#fff0f4}
.bb-hand .hs-four ol li:nth-child(2),.bb-hand .hs-four ol li:nth-child(3){background:#ffd3e0}
.bb-hand .hs-four ol b{display:block;font-family:var(--head);font-weight:700;font-size:1.08rem;letter-spacing:-.016em}
.bb-hand .hs-four ol span{display:block;font-size:.92rem;line-height:1.4;margin-top:4px;color:var(--ink)}
.bb-hand .hs-four ul{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.bb-hand .hs-four ul li{padding:10px 0;border-bottom:1px solid var(--line);font-size:.96rem;color:var(--ink)}

/* two memories */
.bb-hand .hs-two{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-top:62px;align-items:start}
.bb-hand .hs-say{position:relative;margin:0;padding:14px 18px;border-radius:16px;font-family:var(--head);font-weight:700;font-size:1.05rem;line-height:1.3;color:var(--ink)}
.bb-hand .hs-a{background:var(--cfield);border-bottom-left-radius:2px}
.bb-hand .hs-b{background:#fff;border:2px solid var(--ink);border-bottom-right-radius:2px;margin-top:22px}

/* the evidence file */
.bb-hand .hs-file{list-style:none;counter-reset:f;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-top:3px solid var(--ink)}
.bb-hand .hs-file li{counter-increment:f;padding:16px 18px 6px 0;font-size:.97rem;line-height:1.55;color:#2a2629}
.bb-hand .hs-file li+li{padding-left:18px;border-left:1px solid var(--line)}
.bb-hand .hs-file li:before{content:counter(f,upper-alpha);display:block;width:34px;height:26px;margin:-16px 0 14px;border-radius:0 0 8px 8px;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;font-size:.82rem;text-align:center;line-height:26px}

/* the note */
.bb-hand .hs-confirm{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:72px;align-items:center}
.bb-hand .hs-ctx>b{display:block;font-family:var(--head);font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.028em;line-height:1.14;color:#fff;margin-bottom:18px}
.bb-hand .hs-ctx p{margin:0}
.bb-hand .hs-note{background:#fff;color:var(--ink);border-radius:4px;padding:30px 36px 28px;box-shadow:14px 14px 0 var(--cfield);margin-right:14px}
.bb-hand .hs-nt{font-family:var(--head);font-weight:700;font-size:.9rem;color:var(--cd);margin:0 0 14px;padding-bottom:12px;border-bottom:2px solid var(--ink)}
.bb-hand .hs-note dl{margin:0}
.bb-hand .hs-note dl>div{display:grid;grid-template-columns:30px minmax(0,1fr);padding:10px 0 12px}
.bb-hand .hs-note dt{font-family:var(--head);font-weight:700;color:var(--cfield);font-size:1.1rem;line-height:1.3}
.bb-hand .hs-note dd{margin:0;font-family:var(--head);font-weight:600;font-size:1rem;line-height:1.35}
.bb-hand .hs-note dd i{display:block;height:24px;border-bottom:1.5px solid #cfc6ca}
.bb-hand .hs-nl{margin:14px 0 0;padding:12px 14px;background:#fff0f4;border-left:4px solid var(--cfield);font-size:.96rem;line-height:1.45;color:var(--ink)}
.bb-hand .hs-na{margin:14px 0 0;font-size:.88rem;color:var(--mute)}

/* the 4,000 job */
.bb-hand .hs-job{display:grid;grid-template-columns:minmax(0,41rem) minmax(0,1fr);column-gap:72px;align-items:start;padding-top:72px}
.bb-hand .hs-jtx>b{display:block;font-family:var(--head);font-size:.9rem;font-weight:700;color:var(--cd);margin-bottom:8px}
.bb-hand .hs-jtx h3{font-size:1.5rem;font-weight:700;letter-spacing:-.024em;line-height:1.18;margin:0 0 14px}
.bb-hand .hs-jtx p{margin:0}
.bb-hand .hs-sum{margin:6px 0 0;border-top:2px solid var(--ink)}
.bb-hand .hs-sum>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}
.bb-hand .hs-sum dt{font-size:.96rem;color:#2a2629}
.bb-hand .hs-sum dd{margin:0;font-family:var(--head);font-weight:700;font-size:1.1rem;white-space:nowrap}
.bb-hand .hs-sum .hs-tot{border-bottom:0;border-top:1px solid var(--ink)}
.bb-hand .hs-sum .hs-tot dt{font-weight:700;color:var(--ink)}
.bb-hand .hs-sum .hs-tot dd{font-size:1.9rem;letter-spacing:-.03em;color:var(--cd)}

/* gaps and subject to contract */
.bb-hand .hs-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:72px;padding-top:72px}
.bb-hand .hs-half+.hs-half{padding-left:40px;border-left:2px solid var(--ink)}
.bb-hand .hs-gaps{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.bb-hand .hs-gaps li{padding:9px 14px;border:1.5px dashed var(--ink);border-radius:8px;font-family:var(--head);font-weight:600;font-size:.9rem}

/* small claims line */
.bb-hand .hs-track{display:grid;grid-template-columns:3fr 2fr;margin-top:62px}
.bb-hand .hs-track>div{padding:18px 18px 20px}
.bb-hand .hs-track b{display:block;font-family:var(--head);font-weight:700;font-size:1.2rem;letter-spacing:-.02em}
.bb-hand .hs-track span{display:block;font-size:.92rem;line-height:1.45;margin-top:6px}
.bb-hand .hs-under{background:#ffd3e0;color:var(--ink);border-radius:12px 0 0 12px;border-right:3px solid var(--ink)}
.bb-hand .hs-over{background:var(--ink);color:#fff;border-radius:0 12px 12px 0}

@media(max-width:980px){
.bb-hand .hs-file{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.bb-hand .hs-file li,.bb-hand .hs-file li+li{padding:16px 16px 14px 0;border-left:0;border-bottom:1px solid var(--line)}
.bb-hand .hs-confirm,.bb-hand .hs-job,.bb-hand .hs-pair{grid-template-columns:minmax(0,1fr);row-gap:36px}
.bb-hand .hs-job,.bb-hand .hs-pair{padding-top:52px}
.bb-hand .hs-half+.hs-half{padding-left:0;border-left:0}
.bb-hand .hs-two,.bb-hand .hs-track{margin-top:0}
.bb-hand .hs-four,.bb-hand .hs-two,.bb-hand .hs-track,.bb-hand .hs-sum{max-width:32rem}
}
@media(max-width:600px){
.bb-hand .hs-file{grid-template-columns:minmax(0,1fr)}
.bb-hand .hs-note{padding:24px 20px;box-shadow:8px 8px 0 var(--cfield);margin-right:8px}
.bb-hand .hs-track{grid-template-columns:minmax(0,1fr)}
.bb-hand .hs-under{border-radius:12px 12px 0 0;border-right:0;border-bottom:3px solid var(--ink)}
.bb-hand .hs-over{border-radius:0 0 12px 12px}
}
