/* 2026-11-14 Credit Reporting: "the report". Styles for the sections composed by practice_pages/credit_reporting.py
   (routes, procedure, checklist) and small refinements of the shared modules on this page only.
   The page reads like a document: ruled lines, a short yellow marked segment on a line that matters, paper sheets
   with a folded corner and a margin rule. Logical properties throughout; nothing here depends on a script. */
.pd{--cr-rule:#c6d5ea;--cr-rule-soft:#dbe5f2;--cr-fold:34px}

/* headings and labels break into lines of similar length, so no word is left alone on the last line */
.pd .pd-head .h2,.pd .cr-route__label,.pd .cr-step__label,.pd .cr-margin h3,.ul-visual--pd .ul-visual__title,.ul-visual--pd .ul-visual__step h3{text-wrap:balance}
.pd .cr-check__text{text-wrap:pretty}   /* phone: lines fill the sheet; no last word alone under its line */
@media (min-width:700px){.pd .cr-check__text{text-wrap:balance}}
/* Persian: the break falls at the clause boundary, after the verb, not inside the compound verb. The first clause is
   10.7em wide and 11.4em with the "and" that follows, so 11em ends the first line exactly there.
   Spanish: "Dos empresas, dos / vías de disputa" left "dos" hanging after the comma. The second clause (6.8em) is wider
   than that first line (6.66em), so no width can move the break; a one-pixel float shortens the first line only.
   Both apply where the heading takes two lines (phones, and the heading column of wide screens); between 600 and
   1023 px each heading fits on one line and is left alone. */
@media (max-width:599px),(min-width:1024px){
  [dir=rtl] .pd #practice-dispute-h{max-inline-size:11em;text-wrap:wrap}
  :lang(es) .pd #practice-roles-h{max-inline-size:7.4em;text-wrap:wrap}
  :lang(es) .pd #practice-roles-h::before{content:"";float:right;width:1.4em;height:1px}
}
.pd--statement p,.pd .cr-records__note p,.pd .cr-route__text,.pd .cr-step__text,.pd .cr-margin p,.pd .cr-timing__body p,.pd--routes .pd-head .lead{text-wrap:pretty}

/* a small heading that sits on a ruled line */
.pd .cr-rule-title{display:flex;align-items:center;gap:16px;margin:0;font:700 .875rem/1.2 var(--f-text,Montserrat,sans-serif);letter-spacing:.17em;text-transform:uppercase;color:var(--pd-muted)}
.pd .cr-rule-title::before{content:"";flex:none;width:44px;height:3px;border-radius:2px;background:var(--pd-yellow)}
.pd .cr-rule-title::after{content:"";flex:1;height:1px;background:var(--cr-rule)}
[dir=rtl] .pd .cr-rule-title{letter-spacing:0;font-size:.95rem}
/* phone: a long title ("Dos maneras de disputar") must not squeeze the hairline after it to a stub */
@media (max-width:479px){
  .pd .cr-rule-title{gap:12px;letter-spacing:.12em}
  .pd .cr-rule-title::before{width:30px}
}

/* paper: a sheet with a folded corner at the top end and a margin rule at the start */
.cr-paper{position:relative;min-width:0;filter:drop-shadow(0 20px 22px rgba(12,29,85,.13)) drop-shadow(0 0 1px rgba(12,29,85,.34))}
.cr-paper__sheet{position:relative;padding:clamp(24px,2.8vw,38px);padding-inline-start:clamp(38px,4vw,58px);border-radius:20px;background:linear-gradient(170deg,#fff 0%,#f8fbff 100%);
  clip-path:polygon(0 0,calc(100% - var(--cr-fold)) 0,100% var(--cr-fold),100% 100%,0 100%)}
/* the margin: the double hairline of ruled legal paper, in the colour of the sheet's own rules (not an accent stripe) */
.cr-paper__sheet::before{content:"";position:absolute;inset-block:0;inset-inline-start:clamp(20px,2.2vw,32px);width:3px;border-inline:1px solid var(--cr-rule)}
.cr-paper__sheet::after{content:"";position:absolute;inset-block-start:0;inset-inline-end:0;width:var(--cr-fold);height:var(--cr-fold);background:linear-gradient(225deg,transparent 50%,#cfdcee 50%,#eef4fb 100%);border-end-start-radius:9px}
[dir=rtl] .cr-paper__sheet{clip-path:polygon(var(--cr-fold) 0,100% 0,100% 100%,0 100%,0 var(--cr-fold))}
[dir=rtl] .cr-paper__sheet::after{background:linear-gradient(135deg,transparent 50%,#cfdcee 50%,#eef4fb 100%)}

/* ---------- roles: two routes as a pair, margin notes beneath ---------- */
.pd--routes .pd-head{display:grid;gap:6px clamp(26px,4.4vw,72px)}
.pd--routes .pd-head .pd-kicker{margin-bottom:8px}
@media (min-width:1024px){
  .pd--routes .pd-head{grid-template-columns:minmax(0,11fr) minmax(0,13fr);align-items:end}
  .pd--routes .pd-head .pd-kicker{grid-column:1 / -1}
  .pd--routes .pd-head .h2{margin-bottom:0}
  .pd--routes .pd-head .lead{margin:0;padding-inline-start:clamp(20px,2.4vw,34px);border-inline-start:1px solid var(--cr-rule);max-width:none}
}
.cr-routes{margin-top:clamp(28px,3.6vw,50px)}
.cr-routes__pair{list-style:none;margin:clamp(16px,1.8vw,24px) 0 0;padding:0;display:grid;gap:clamp(16px,2.2vw,30px)}
@media (min-width:700px){.cr-routes__pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cr-route{position:relative;min-width:0;padding:clamp(22px,2.8vw,38px);border:1px solid var(--pd-line);border-radius:26px;background:linear-gradient(158deg,#fff 0%,#f2f7fd 100%);box-shadow:0 24px 46px -38px rgba(12,29,85,.6)}
.cr-route__top{display:flex;align-items:center;gap:clamp(12px,1.4vw,20px);margin-bottom:clamp(14px,1.8vw,24px);padding-inline-start:8px}
.cr-route__top .pd-art{width:clamp(100px,10.5vw,140px)}   /* mirrored in Persian by the shared pd-art--mirror: the badge arrow follows the route */
/* the route strip: where the dispute travels before it reaches the company in the picture */
.cr-route__path{position:relative;flex:1;height:3px;border-radius:2px;background:var(--cr-rule)}
.cr-route__path::after{content:"";position:absolute;inset:0;border-radius:2px;background:linear-gradient(90deg,#f9e900,#e2c800);transform-origin:0 50%;transition:transform 1.2s cubic-bezier(.3,.7,.2,1) .35s}
[dir=rtl] .cr-route__path::after{transform-origin:100% 50%;background:linear-gradient(270deg,#f9e900,#e2c800)}
.pd-js .cr-route:not(.is-in) .cr-route__path::after{transform:scaleX(0)}
.cr-route__path i{position:absolute;z-index:1;inset-block-start:-6px;width:15px;height:15px;box-sizing:border-box;border-radius:50%;border:3px solid var(--pd-navy);background:#fff}
.cr-route__path i:first-child{inset-inline-start:-8px;background:var(--pd-navy)}
.cr-route--via .cr-route__path i:nth-child(2){inset-inline-start:calc(50% - 11px);inset-block-start:-9.5px;width:22px;height:22px;background:var(--pd-yellow)}
.cr-route__path i:last-child{inset-inline-start:auto;inset-inline-end:-1px;inset-block-start:-5.5px;width:14px;height:14px;border:0;border-radius:0;background:none;border-block-start:3px solid var(--pd-navy);border-inline-end:3px solid var(--pd-navy);transform:rotate(45deg)}
[dir=rtl] .cr-route__path i:last-child{transform:rotate(-45deg)}
body[data-design] .pd .cr-route__label{display:block;margin:0 0 10px;font:600 clamp(1.45rem,2.2vw,1.9rem)/1.14 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
body[data-design] .pd .cr-route__text{display:block;max-width:58ch;font:400 1.02rem/1.72 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
.cr-margins{display:grid;gap:clamp(24px,3vw,30px) clamp(16px,2.2vw,30px);margin-top:clamp(30px,3.8vw,54px)}
@media (min-width:700px){.cr-margins{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cr-margin{position:relative;min-width:0;padding:22px clamp(0px,2.8vw,38px) 0;border-block-start:1px solid var(--cr-rule)}
.cr-margin::before{content:"";position:absolute;inset-block-start:-2px;inset-inline-start:clamp(0px,2.8vw,38px);width:44px;height:3px;border-radius:2px;background:var(--pd-yellow)}
.pd .cr-margin h3{margin:0 0 10px;font:600 clamp(1.3rem,1.9vw,1.6rem)/1.2 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
body[data-design] .pd .cr-margin p{margin:0;max-width:60ch;font:400 1rem/1.7 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
body[data-design] .pd .cr-margin p+p{margin-top:12px}

/* ---------- dispute: numbered ledger and the Timing sheet ---------- */
.pd--procedure{background:linear-gradient(180deg,#edf3fb 0%,#f8fbfe 100%)}
.cr-proc{display:grid;gap:clamp(28px,3.6vw,60px)}
.cr-proc__main,.cr-proc__side{min-width:0}
.cr-proc__main .cr-rule-title{margin-top:clamp(24px,2.8vw,38px)}
@media (min-width:1024px){
  .cr-proc{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:start}
  .cr-proc__side{padding-block-start:8px}
}
/* where the sheet is shorter than the ledger (Persian), it travels with the reader instead of leaving its column bare */
@media (min-width:1024px) and (min-height:900px){.cr-proc__side{position:sticky;top:var(--pd-top)}}
.cr-steps{list-style:none;margin:16px 0 0;padding:0}
.cr-step{position:relative;display:grid;grid-template-columns:clamp(50px,5.4vw,78px) minmax(0,1fr);gap:0 clamp(10px,1.4vw,20px);align-items:start;padding:clamp(18px,2vw,26px) 0;border-block-end:1px solid var(--cr-rule)}
.cr-step::after{content:"";position:absolute;inset-block-end:-2px;inset-inline-start:0;width:44px;height:3px;border-radius:2px;background:var(--pd-yellow);transform:scaleX(0);transform-origin:0 50%;transition:transform .35s ease}
[dir=rtl] .cr-step::after{transform-origin:100% 50%}
.cr-step:hover::after{transform:scaleX(1)}
.cr-step__n{font:600 clamp(2.3rem,3.6vw,3.3rem)/.86 var(--f-head,'Barlow Condensed',sans-serif);color:#7f93bd;transition:color .35s ease;font-variant-numeric:tabular-nums}   /* readable at rest: a phone never shows the hover state */
.cr-step:hover .cr-step__n{color:var(--pd-navy)}
body[data-design] .pd .cr-step__label{display:block;margin:0 0 6px;font:600 clamp(1.3rem,1.9vw,1.6rem)/1.18 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
body[data-design] .pd .cr-step__text{display:block;max-width:60ch;font:400 1.02rem/1.7 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
.cr-timing__head{display:flex;align-items:center;gap:clamp(14px,1.6vw,22px);padding-block-end:18px;border-block-end:2px solid var(--pd-navy)}
.cr-timing__head .pd-art{width:clamp(72px,7vw,96px)}
.pd .cr-timing__head h3{margin:0;font:600 clamp(1.7rem,2.5vw,2.2rem)/1.1 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
body[data-design] .pd .cr-timing__body p{margin:0;padding:16px 0;border-block-end:1px solid var(--cr-rule-soft);font:400 .97rem/1.68 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
body[data-design] .pd .cr-timing__body p:last-child{padding-block-end:0;border-block-end:0}
@media (min-width:700px) and (max-width:1023px){
  .cr-timing__body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(24px,4vw,40px)}
  body[data-design] .pd .cr-timing__body p:nth-last-child(-n+2):nth-child(odd),body[data-design] .pd .cr-timing__body p:nth-last-child(-n+2):nth-child(odd)~p{padding-block-end:0;border-block-end:0}
}

/* ---------- review: the shared navy statement, with the note ruled like a report ---------- */
.pd--statement .pd-statement__copy p+p{margin-top:16px;padding-top:16px;border-top:1px solid rgba(190,212,240,.26)}
@media (min-width:1024px){.pd--statement .pd-navy{grid-template-columns:minmax(0,6fr) minmax(0,6fr)}}

/* ---------- records: a checklist drawn on a report sheet ---------- */
.cr-records{display:grid;gap:clamp(24px,3vw,52px)}
.cr-records__head{display:grid;gap:clamp(16px,2vw,26px);justify-items:start;min-width:0}
.cr-records__head .pd-art{width:clamp(110px,13vw,176px)}
.cr-records .cr-records__note{margin-top:0}
@media (min-width:1024px){
  /* the heading column is wide enough for "Lleve estos documentos" on one line at the largest heading size */
  .cr-records{grid-template-columns:minmax(0,13fr) minmax(0,11fr);grid-template-rows:auto 1fr;grid-template-areas:"sheet head" "sheet note";align-items:start}
  .cr-records__head{grid-area:head}
  .cr-sheet{grid-area:sheet}
  .cr-records__note{grid-area:note}
  /* the sheet is as tall as the heading column beside it: its lines share the spare height, so both columns end level */
  .cr-records{align-items:stretch}
  .cr-records__head{align-self:start}
  .cr-records__note{align-self:end}   /* where the sheet is the taller side, the note still ends level with it */
  .cr-sheet{display:grid}
  .cr-sheet .cr-paper__sheet,.cr-sheet .cr-checks{display:flex;flex-direction:column}
  .cr-sheet .cr-checks{flex:1}
  .cr-sheet .cr-check{flex:1 1 auto;display:flex}
  .cr-sheet .cr-check__row{flex:1;align-content:center}
}
/* phones and tablets: the folder is the emblem of the sheet's letterhead instead of standing alone on a row of its
   own between the heading and the sheet. The markup is unchanged: the heading box dissolves into the grid and the
   folder shares the sheet's cell. It appears with the sheet. */
@media (max-width:1023px){
  .cr-records__head{display:contents}
  .cr-records>.cr-sheet,.cr-records__head .pd-art{grid-area:2 / 1}
  .cr-records__head .pd-art{position:relative;z-index:1;align-self:start;justify-self:start;width:76px;margin-block-start:clamp(24px,2.8vw,38px);margin-inline-start:clamp(38px,4vw,58px);transition:opacity .7s ease}
  .pd-js .cr-records:has(.cr-sheet:not(.is-in)) .cr-records__head .pd-art{opacity:0}
  .cr-sheet__top{min-height:78px;padding-inline-start:92px}
}
@media (max-width:359px){.cr-sheet__top i:nth-child(3){display:none}}   /* no room for the third bar beside the folder */
.cr-sheet__top{display:grid;grid-template-columns:auto auto 1fr;gap:10px;align-items:center;padding-block-end:16px;padding-inline-end:clamp(18px,2vw,26px);border-block-end:2px solid var(--pd-navy)}
.cr-sheet__top i{height:8px;border-radius:4px;background:#c9d6ea}
.cr-sheet__top i:nth-child(1){width:clamp(70px,12vw,150px);background:var(--pd-navy)}
.cr-sheet__top i:nth-child(2){width:clamp(40px,6vw,74px);background:var(--pd-yellow)}
.cr-sheet__top i:nth-child(3){justify-self:end;width:clamp(30px,5vw,64px)}
.cr-checks{list-style:none;margin:0;padding:0}
.cr-check{border-block-end:1px solid var(--cr-rule-soft)}
.cr-check:last-child{border-block-end:0}
.cr-check__row{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);gap:clamp(12px,1.4vw,18px);align-items:start;min-height:48px;padding:clamp(15px,1.7vw,22px) 0;cursor:pointer}
.cr-check:last-child .cr-check__row{padding-block-end:2px}
.cr-check__input{position:absolute;inset-inline-start:-6px;inset-block-start:clamp(9px,1.3vw,16px);width:38px;height:38px;margin:0;opacity:0;cursor:pointer}
.cr-check__box{display:grid;place-items:center;width:26px;height:26px;margin-block-start:1px;box-sizing:border-box;border:2px solid #7f95bb;border-radius:8px;background:#fff;transition:background .2s ease,border-color .2s ease}
/* a tick is the same shape in every language: physical sides, never mirrored */
.cr-check__box::after{content:"";width:12px;height:6px;margin-top:-3px;border-left:2.5px solid var(--pd-navy);border-bottom:2.5px solid var(--pd-navy);transform:rotate(-45deg) scale(0);transition:transform .22s cubic-bezier(.22,1,.36,1)}
.cr-check__row:hover .cr-check__box{border-color:var(--pd-navy)}
.cr-check__input:checked+.cr-check__box{background:var(--pd-yellow);border-color:var(--pd-navy)}
.cr-check__input:checked+.cr-check__box::after{transform:rotate(-45deg) scale(1)}
.cr-check__input:focus-visible+.cr-check__box{outline:3px solid var(--pd-navy);outline-offset:3px}
body[data-design] .pd .cr-check__text{display:block;font:400 1.03rem/1.66 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
/* a ticked line is marked the way a line on a report is marked: the marker runs along the first line, then the next.
   (No box-decoration-break:clone here: with it the browser gives up text-wrap:pretty for the whole line of text.) */
.cr-check__mark{background:linear-gradient(transparent 58%,rgba(249,233,0,.62) 58%,rgba(249,233,0,.62) 94%,transparent 94%) no-repeat 0 0 / 0% 100%;transition:background-size .55s cubic-bezier(.3,.7,.2,1)}
[dir=rtl] .cr-check__mark{background-position:100% 0}
.cr-check__input:checked~.cr-check__text .cr-check__mark{background-size:100% 100%;color:var(--pd-ink)}

/* ---------- the diagram at five steps ---------- */
@media (min-width:1024px){
  .ul-visual--pd.ul-visual--flow .ul-visual__steps{--pd-gap:clamp(12px,1.6vw,24px)}   /* the shared rail measures its end from this gap */
  .ul-visual--pd.ul-visual--flow .ul-visual__step h3{font-size:1.26rem}
}
/* tablet, two columns: the fifth step closes the route across both columns instead of leaving an empty cell beside it */
@media (min-width:768px) and (max-width:1023px){
  .ul-visual--pd.ul-visual--flow .ul-visual__step:last-child:nth-child(odd){grid-column:1 / -1}
}

@media (max-width:767px){
  .cr-route{border-radius:22px}
  .cr-route__top .pd-art{width:100px}
  .cr-paper__sheet{border-radius:18px}
  .cr-timing__head .pd-art{width:72px}
}
@media (prefers-reduced-motion:reduce){
  .cr-route__path::after,.cr-step::after,.cr-step__n,.cr-check__box,.cr-check__box::after,.cr-check__mark{transition:none}
  .pd-js .cr-route:not(.is-in) .cr-route__path::after{transform:none}
  .cr-records__head .pd-art{transition:none}
  .pd-js .cr-records:has(.cr-sheet:not(.is-in)) .cr-records__head .pd-art{opacity:1}
}
@media (forced-colors:active){
  .cr-paper__sheet,.cr-route{border:1px solid CanvasText}
  .cr-check__box{border-color:CanvasText}
  .cr-check__input:checked+.cr-check__box{background:Highlight}
  .cr-check__mark{background:none}
}
@media print{
  .cr-paper{filter:none}
  .cr-paper__sheet{clip-path:none;border:1px solid #9fb2d2}
  .cr-paper__sheet::after{display:none}
  .pd-js .cr-records:has(.cr-sheet:not(.is-in)) .cr-records__head .pd-art{opacity:1}
}
