/* late-payment-interest-calculator (build_late_payment_interest_calculator.py). Every rule starts with .xa-lpc.
   Centrepiece: the demand letter drawn as a letter, its lines taken from the page's own list of what the letter sets out. */
.xa-lpc .lpc-in{max-width:1220px;margin:0 auto;padding:0 28px}
.xa-lpc section[class^="lpc-"] h2{font-size:clamp(1.65rem,2.5vw,2.2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}
.xa-lpc section[class^="lpc-"] h3{font-size:1.3rem;font-weight:700;letter-spacing:-.02em;line-height:1.25;margin:0}
.xa-lpc section[class^="lpc-"] p{font-size:1.04rem;line-height:1.72;color:#2f2b2e;margin:0}
.xa-lpc section[class^="lpc-"] p+p{margin-top:16px}
.xa-lpc section[class^="lpc-"] a{color:var(--c);font-weight:700}
.xa-lpc 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 calculator: an invoice slip on a dark desk */
.xa-lpc .lpc-desk{background:var(--ink);padding:40px 0 56px}
.xa-lpc .lpc-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-lpc .lpc-desk .tside{position:static;align-self:start}
.xa-lpc .lpc-desk .card .btnrow .tgo{width:auto}
.xa-lpc .lpc-desk .tf{background:#fff;border:0;border-radius:6px;border-top:10px solid var(--cfield);padding:28px 36px 34px}
.xa-lpc .lpc-desk .tf .tfhead{border-bottom:2px solid var(--ink)}
.xa-lpc .lpc-desk .tf .q{grid-template-columns:minmax(0,1fr) 260px;border-bottom:1px dashed #cfc6ca}
.xa-lpc .lpc-desk .tf .q input{font-family:var(--head);font-weight:700;font-size:1.1rem;text-align:right;border:2px solid var(--ink);border-radius:6px;background:#fff0f4;padding:11px 12px}
.xa-lpc .lpc-desk .tf .q input:focus{background:#fff;border-color:var(--c)}
.xa-lpc .lpc-desk .tf>.form-note{font-size:.9rem;line-height:1.6;color:#4a4347;max-width:74ch}
.xa-lpc .lpc-desk .tside>.form-note{color:#d9cfd4}
.xa-lpc .lpc-desk .resw>.card{border:0;border-radius:6px;border-top:10px solid var(--cfield);box-shadow:none;background:#fff}
.xa-lpc .lpc-desk .card>h3{font-family:var(--head);font-size:1.45rem;line-height:1.3;letter-spacing:-.02em;max-width:60ch}
.xa-lpc .lpc-desk .card>p{margin-top:14px;font-size:1.04rem}
.xa-lpc .lpc-desk .card>p b{font-family:var(--head)}
.xa-lpc .lpc-desk .card h4{font-family:var(--head);font-size:1.08rem;color:var(--ink);padding-bottom:8px}
.xa-lpc .lpc-desk .card .price-list{border-bottom:2px solid var(--ink);max-width:860px}
.xa-lpc .lpc-desk .card .price-list li{border-top:1px dashed #cfc6ca;padding:11px 0;align-items:baseline}
.xa-lpc .lpc-desk .card .price-list li:first-child{border-top:2px solid var(--ink)}
.xa-lpc .lpc-desk .card .price-list .amount{font-family:var(--head);font-weight:700;text-align:right;white-space:normal}
.xa-lpc .lpc-desk .card .price-list li:last-child{background:var(--cfield);border-top:0;padding:14px 14px;font-weight:700;font-size:1.1rem}
.xa-lpc .lpc-desk .card .price-list li:last-child .amount{font-size:1.4rem;letter-spacing:-.02em}

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

/* what the number means */
.xa-lpc .lpc-num{padding:72px 0 64px}
.xa-lpc .lpc-num .lpc-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:64px;align-items:start}
.xa-lpc section.lpc-num .lpc-num-tx p{font-family:var(--head);font-weight:500;font-size:1.2rem;line-height:1.6;letter-spacing:-.012em;color:var(--ink);max-width:56ch}

/* the letter */
.xa-lpc .lpc-letter{background:#fff0f4;padding:80px 0}
.xa-lpc .lpc-letter-h{max-width:820px}
.xa-lpc section.lpc-letter .lpc-letter-h p{margin-top:18px}
.xa-lpc .lpc-post{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:64px;align-items:start;margin-top:44px}
.xa-lpc .lpc-sheet{background:#fff;border:1px solid #e9c7d1;border-radius:3px;padding:44px 46px 50px;box-shadow:0 22px 40px -22px rgba(74,13,44,.45);transform:rotate(-.7deg)}
.xa-lpc .lpc-ln{display:block;height:8px;border-radius:2px;background:var(--line);margin-bottom:9px}
.xa-lpc .lpc-ln.w30{width:30%}.xa-lpc .lpc-ln.w22{width:22%}.xa-lpc .lpc-ln.w18{width:18%;margin:34px 0 0}
.xa-lpc section.lpc-letter .lpc-re{font-family:var(--head);font-weight:700;font-size:1.02rem;line-height:1.35;color:var(--ink);margin:30px 0 18px;padding-bottom:12px;border-bottom:2px solid var(--ink)}
.xa-lpc .lpc-sheet dl{margin:0}
.xa-lpc .lpc-sheet dl>div{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:16px;align-items:end;padding:13px 0;border-bottom:1px dashed #cfc6ca}
.xa-lpc .lpc-sheet dt{font-size:1rem;font-weight:700;color:var(--ink);line-height:1.35}
.xa-lpc .lpc-sheet dd{margin:0;height:22px;border-bottom:2px solid var(--ink)}
.xa-lpc .lpc-sheet .lpc-total{border-bottom:0;background:var(--cfield);margin:0 -14px;padding:13px 14px}
.xa-lpc .lpc-sheet .lpc-total dt{font-family:var(--head);font-size:1.1rem}
.xa-lpc .lpc-tips ol{list-style:none;margin:0;padding:0;counter-reset:tip}
.xa-lpc .lpc-tips li{counter-increment:tip;position:relative;padding:0 0 20px 46px;margin-bottom:20px;border-bottom:1px solid #f0c3cf;font-size:1.02rem;line-height:1.62;color:#2f2b2e}
.xa-lpc .lpc-tips li:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.xa-lpc .lpc-tips li:before{content:counter(tip);position:absolute;left:0;top:1px;width:30px;height:30px;border-radius:50%;border:2px solid var(--ink);font-family:var(--head);font-weight:700;font-size:.95rem;display:flex;align-items:center;justify-content:center;background:#fff}
.xa-lpc .lpc-tips li strong{display:block;font-family:var(--head);font-size:1.1rem;letter-spacing:-.015em;color:var(--ink)}
.xa-lpc .lpc-after{margin-top:48px;border-top:2px solid var(--ink);padding-top:22px}
.xa-lpc .lpc-after p{max-width:76ch}

/* how the interest is calculated */
.xa-lpc .lpc-how{padding:84px 0 72px}
.xa-lpc .lpc-how-top{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:center;margin-top:26px}
.xa-lpc .lpc-rate{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:stretch}
.xa-lpc .lpc-rate span{border:2px solid var(--ink);border-radius:12px;padding:14px 16px;font-size:.88rem;line-height:1.4;color:#3d383b}
.xa-lpc .lpc-rate b{display:block;font-family:var(--head);font-size:1.9rem;line-height:1.1;letter-spacing:-.03em;color:var(--ink);margin-bottom:4px}
.xa-lpc .lpc-rate i{align-self:center;font-style:normal;font-family:var(--head);font-weight:700;font-size:1.6rem}
.xa-lpc .lpc-rate i+span+i{grid-column:1/-1;justify-self:center;line-height:1}
.xa-lpc .lpc-rate .lpc-rate-t{grid-column:1/-1;background:var(--cfield);border-color:var(--cfield);color:var(--ink);font-weight:700;font-size:1rem}
.xa-lpc .lpc-rate .lpc-rate-t b{font-size:3rem}
.xa-lpc .lpc-ref{margin-top:64px;border-top:2px solid var(--ink);padding-top:30px}
.xa-lpc .lpc-cal{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:28px 0 30px}
.xa-lpc .lpc-half em{display:inline-block;font-style:normal;font-family:var(--head);font-weight:700;font-size:1rem;padding:7px 14px;border-radius:8px 8px 8px 0;background:var(--ink);color:#fff;position:relative;margin-bottom:12px}
.xa-lpc .lpc-half em:after{content:"";position:absolute;left:0;top:100%;border-left:2px solid var(--ink);height:12px}
.xa-lpc .lpc-half.h2 em{background:var(--cd)}
.xa-lpc .lpc-half.h2 em:after{border-color:var(--cd)}
.xa-lpc .lpc-half i{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;font-style:normal}
.xa-lpc .lpc-half i b{height:54px;display:flex;align-items:flex-end;padding:0 0 7px 9px;font-family:var(--head);font-size:.92rem;font-weight:700;border-radius:3px;background:#f3eef0;color:var(--ink)}
.xa-lpc .lpc-half.h2 i b{background:#ffd3e0}
.xa-lpc .lpc-half>span{display:block;margin-top:9px;font-size:.92rem;font-weight:700;color:var(--ink)}
.xa-lpc .lpc-ref-tx{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.xa-lpc section.lpc-how .lpc-ref-tx p+p{margin-top:0}
.xa-lpc .lpc-steps{margin-top:64px;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:64px;border-top:2px solid var(--ink);padding-top:30px}
.xa-lpc .lpc-steps h3{grid-column:1;grid-row:1/span 2}
.xa-lpc .lpc-steps ol{grid-column:2;list-style:none;margin:0;padding:0;counter-reset:st;font-size:1.04rem;line-height:1.6;color:#2f2b2e}
.xa-lpc .lpc-steps li{counter-increment:st;position:relative;padding:13px 0 13px 44px;border-bottom:1px dashed #cfc6ca}
.xa-lpc .lpc-steps li:before{content:counter(st);position:absolute;left:0;top:13px;font-family:var(--head);font-weight:700;color:var(--c)}
.xa-lpc .lpc-steps li:last-child{border-bottom:2px solid var(--ink);font-weight:700;color:var(--ink)}
.xa-lpc section.lpc-how .lpc-steps>p{grid-column:2;margin-top:20px}

/* when is a payment late */
.xa-lpc .lpc-late{background:var(--ink);color:#fff;padding:76px 0 80px}
.xa-lpc .lpc-days{margin:40px 0 44px}
.xa-lpc .lpc-track{position:relative;height:18px;border-radius:9px;background:linear-gradient(to right,#fff 0 33.333%,#ffc9d6 33.333% 66.666%,var(--cfield) 66.666%)}
.xa-lpc .lpc-track i{position:absolute;top:-8px;bottom:-8px;width:3px;background:var(--ink);box-shadow:0 0 0 2px #fff}
.xa-lpc .lpc-track .d30{left:33.333%}.xa-lpc .lpc-track .d60{left:66.666%}
.xa-lpc .lpc-marks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
.xa-lpc .lpc-marks span{font-size:.95rem;line-height:1.5;color:#d9cfd4;padding-right:28px}
.xa-lpc .lpc-marks b{display:block;font-family:var(--head);font-size:1.3rem;letter-spacing:-.02em;color:#fff;margin-bottom:3px}
.xa-lpc .lpc-late-tx{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.xa-lpc section.lpc-late p{color:#f1e9ec}
.xa-lpc section.lpc-late .lpc-late-tx p+p{margin-top:0}
.xa-lpc .lpc-late mark.kf{background:none;color:#fff;font-weight:700;padding:0}

/* fixed compensation: three bands */
.xa-lpc .lpc-fixed{padding:84px 0 72px}
.xa-lpc .lpc-fixed-g{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:64px;align-items:end}
.xa-lpc .lpc-fixed-g h2+p{margin-top:20px}
.xa-lpc .lpc-stair{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end}
.xa-lpc .lpc-stair>div{display:flex;flex-direction:column;justify-content:flex-end;padding:14px 14px 14px;border-radius:6px 6px 0 0;background:#ffd3e0;color:var(--ink);border-bottom:3px solid var(--ink)}
.xa-lpc .lpc-stair .s1{height:104px}
.xa-lpc .lpc-stair .s2{height:160px;background:#ff8fb0}
.xa-lpc .lpc-stair .s3{height:216px;background:var(--cfield)}
.xa-lpc .lpc-stair b{font-family:var(--head);font-size:2.2rem;line-height:1;letter-spacing:-.035em}
.xa-lpc .lpc-stair span{font-size:.9rem;font-weight:700;line-height:1.3;margin-top:6px}
.xa-lpc .lpc-except{margin-top:52px;border:2px solid var(--ink);border-left:10px solid var(--cfield);border-radius:4px;padding:22px 28px}
.xa-lpc .lpc-except p{max-width:86ch}
.xa-lpc .lpc-bdr{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.xa-lpc section.lpc-fixed .lpc-bdr p{font-size:.98rem;max-width:96ch;color:#3d383b}

/* handing it over */
.xa-lpc .lpc-hand{background:var(--plum);color:#fff;padding:76px 0 64px}
.xa-lpc .lpc-hand-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;margin-top:30px}
.xa-lpc section.lpc-hand p{color:#f6e9ee}
.xa-lpc section.lpc-hand .lpc-hand-g p+p{margin-top:0}
.xa-lpc section.lpc-hand a{color:#fff;text-decoration:underline;text-decoration-color:var(--cfield);text-decoration-thickness:2px;text-underline-offset:3px}
.xa-lpc .lpc-hand mark.kf{background:linear-gradient(180deg,transparent 88%,var(--cfield) 88%);color:#fff;padding:0}
.xa-lpc section.lpc-hand .lpc-small{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.28);font-size:.88rem;line-height:1.62;color:#e7cfd8;max-width:none}

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

/* related reading */
.xa-lpc .lpc-rel{padding:0 0 72px}
.xa-lpc .lpc-rel ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;border-top:2px solid var(--ink);padding-top:26px}
.xa-lpc .lpc-rel h3{font-size:1.14rem;line-height:1.3}
.xa-lpc section.lpc-rel h3 a{color:var(--ink)}
.xa-lpc section.lpc-rel p{font-size:.98rem;line-height:1.55;margin:8px 0 10px}
.xa-lpc section.lpc-rel .go{font-size:.95rem}

@media(max-width:1000px){
  .xa-lpc .lpc-num .lpc-in,.xa-lpc .lpc-post,.xa-lpc .lpc-how-top,.xa-lpc .lpc-fixed-g,.xa-lpc .lpc-faq .lpc-in{grid-template-columns:1fr;gap:30px}
  .xa-lpc .lpc-steps{grid-template-columns:1fr}
  .xa-lpc .lpc-steps h3{grid-row:auto;margin-bottom:14px}
  .xa-lpc .lpc-steps ol,.xa-lpc section.lpc-how .lpc-steps>p{grid-column:1}
  .xa-lpc .lpc-hand-g{grid-template-columns:1fr;gap:16px}
  .xa-lpc .lpc-rate{max-width:520px}
}
@media(max-width:760px){
  .xa-lpc .lpc-in{padding:0 16px}
  .xa-lpc .lpc-desk{padding:22px 0 36px}
  .xa-lpc .lpc-desk .tf{padding:20px 18px 26px}
  .xa-lpc .lpc-desk .tf .q{grid-template-columns:1fr}
  .xa-lpc .lpc-desk .card .price-list li{flex-direction:column;row-gap:2px}
  .xa-lpc .lpc-desk .card .price-list .amount{text-align:left}
  .xa-lpc .lpc-num,.xa-lpc .lpc-letter,.xa-lpc .lpc-how,.xa-lpc .lpc-late,.xa-lpc .lpc-fixed,.xa-lpc .lpc-hand{padding:52px 0}
  .xa-lpc section.lpc-num .lpc-num-tx p{font-size:1.08rem}
  .xa-lpc .lpc-sheet{padding:28px 22px 32px;transform:none}
  .xa-lpc .lpc-sheet dl>div{grid-template-columns:minmax(0,1fr) 64px}
  .xa-lpc .lpc-cal,.xa-lpc .lpc-ref-tx,.xa-lpc .lpc-late-tx{grid-template-columns:1fr;gap:18px}
  .xa-lpc .lpc-half i b{height:44px;padding:0 0 5px 5px;font-size:.8rem}
  .xa-lpc .lpc-ref,.xa-lpc .lpc-steps{margin-top:44px}
  .xa-lpc .lpc-track{display:none}
  .xa-lpc .lpc-marks{grid-template-columns:1fr;gap:16px;border-left:4px solid var(--cfield);padding-left:16px;margin-top:0}
  .xa-lpc .lpc-stair b{font-size:1.6rem}
  .xa-lpc .lpc-stair span{font-size:.8rem}
  .xa-lpc .lpc-stair>div{padding:10px 8px}
  .xa-lpc .lpc-except{padding:18px 18px}
  .xa-lpc .lpc-rel ul{grid-template-columns:1fr;gap:26px}
  .xa-lpc .lpc-jump .lpc-in{flex-wrap:nowrap;overflow-x:auto;gap:20px;scrollbar-width:none}
  .xa-lpc .lpc-jump a{flex:none}
}
@media print{
  .xa-lpc .lpc-jump,.xa-lpc .lpc-num,.xa-lpc .lpc-letter,.xa-lpc .lpc-how,.xa-lpc .lpc-late,.xa-lpc .lpc-fixed,.xa-lpc .lpc-hand,.xa-lpc .lpc-faq,.xa-lpc .lpc-rel{display:none}
  .xa-lpc .lpc-desk{background:none;padding:0}
}
