/* CR-06 (15/11/2026): layout fixes D04 to D07 from Jenni's approved changes. Content aware grid only: no fixed heights,
   no hidden overflow. Scoped to the three named card rows (Home "Three ways in", OCC "Do it yourself, hire someone, or
   outsource it", OCC software and mistakes) and the OCC comparison table. Pricing and Cash Recovery Sprint have the same
   teal raised row and are deliberately left as they are (flagged in the build log). */

/* QA B1: footer note shown instead of the Reset band while the guide file is missing (inc/cr06.php). */
.ic-footer__resetnote{margin:0;font:400 15px/1.5 var(--font-sans);color:var(--fg-on-brand-2)}
.ic-footer__resetnote a{color:#fff;text-decoration:underline}

/* WordPress flow layout gives every grid child after the first margin-block-start:24px, which pushed cards 2 and 3
   down inside their grid cells. The grid gap already spaces them. */
.ic-page-home .g3:has(> .ic-card.teal) > *,
.ic-page-services-outsourced-credit-control .g3:has(> .ic-card.teal) > *,
.ic-page-services-outsourced-credit-control .g2 > *{margin-block:0}

/* The 12px .raised lift broke the shared top and bottom edges; the teal gradient and the larger shadow stay. */
.ic-page-home .g3:has(> .ic-card.teal) > .ic-card.raised,
.ic-page-services-outsourced-credit-control .g3:has(> .ic-card.teal) > .ic-card.raised{transform:none}

/* D04: heading band, image, subheading, text and link share rows across the three cards (subgrid), so images and
   body text start at matching heights whatever the copy length. Cards hold five blocks each. */
@media (min-width:641px){
	.ic-page-home .g3:has(> .ic-card.teal) > .ic-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:14px;align-content:start}
	.ic-page-home .g3:has(> .ic-card.teal) > .ic-card > .ic-card__link{align-self:end}
}
/* D04 on phones: the brief asks for stacked cards at natural heights, replacing the CR-03 swipe row. */
@media (max-width:640px){
	.ic-page-home .ic-section:has(.ic-card.teal) .g3{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
	.ic-page-home .ic-section:has(.ic-card.teal) .g3 > .ic-card{flex:none;height:auto}
}

/* D06: heading then list, aligned across the three cards. */
@media (min-width:641px){
	.ic-page-services-outsourced-credit-control .g3:has(> .ic-card.teal) > .ic-card{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:14px;align-content:start}
}
@media (max-width:640px){
	.ic-page-services-outsourced-credit-control .g3:has(> .ic-card.teal) > .ic-card{height:auto}
}

/* D07: an image that opens a card sits flush with the card's top edge and rounded corners again. The global
   .ic-card>*{margin-block:0!important} rule had cancelled both of its block margins. */
.ic-page-services-outsourced-credit-control .ic-card > .ic-card__media:first-child{margin-top:-28px!important;margin-bottom:8px!important}
@media (max-width:640px){
	.ic-page-services-outsourced-credit-control .g2 > .ic-card{height:auto}
}

/* D05: the comparison card spans the full row and the table drops its 640px minimum, so the row labels and both
   columns show together on desktop and tablet with no sideways scrollbar. */
.g2 > .ic-card:has(.ic-table--stack){grid-column:1 / -1}
.ic-table-wrap:has(> .ic-table--stack){overflow:visible}
.ic-table--stack{min-width:0;table-layout:fixed}
.ic-table--stack th[scope="row"]{width:24%}
/* Below the 640px breakpoint each row becomes a labelled group: the row label, then each value under its column name.
   The table keeps explicit ARIA table roles in the markup, so the label and value relationship survives display:block. */
@media (max-width:640px){
	.ic-table-wrap:has(> .ic-table--stack){border:0;background:none;border-radius:0}
	.ic-table--stack,.ic-table--stack tbody,.ic-table--stack tr{display:block;width:100%}
	.ic-table--stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
	.ic-table--stack tr{padding:14px 0;border-bottom:1px solid var(--border-2)}
	.ic-table--stack tr:last-child{border-bottom:0}
	.ic-table--stack th[scope="row"]{display:block;width:auto;padding:0 0 8px;border:0;background:none;font-weight:600;font-size:16px}
	.ic-table--stack td{display:block;padding:6px 0 6px 12px;border:0;border-left:3px solid var(--border-2);background:none;margin-top:6px}
	.ic-table--stack td.hl{border-left-color:var(--ic-teal-500,#1f7a74)}
	.ic-table--stack td:before{content:attr(data-label);display:block;font:600 13px/1.4 var(--font-sans);color:var(--fg-3);margin-bottom:2px}
}

/* Closing band without the portrait (16/11/2026, David: no Jenni photo or sign off). One centred column at every width. */
.ic-ctaband__inner:not(:has(> .arch)){display:block}
.ic-ctaband__inner:not(:has(> .arch)) > .stack{max-width:760px;margin-inline:auto;align-items:center;text-align:center;gap:20px}
.ic-ctaband__inner:not(:has(> .arch)) .ic-btnrow{justify-content:center}
.ic-ctaband__inner:not(:has(> .arch)) .stack > p{max-width:62ch;margin-inline:auto}

/* ---------------- CR-07 (17/11/2026) ---------------- */
/* Card rows: WordPress flow layout gives every child after the first a 24px top margin, so the first card in a .g2, .g3
   or .g4 row sat higher than the rest (price cards on Outsourced Credit Control, and other rows). Grid gaps do the spacing. */
.g2.is-layout-flow > *,.g3.is-layout-flow > *,.g4.is-layout-flow > *{margin-block:0}

/* Home credibility strip with three items ("Founder led" removed, David 17/11/2026): three columns, and the third item
   spans the row where the strip drops to two columns. */
.ic-cred:has(> .ic-cred__item:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:960px){
	.ic-cred:has(> .ic-cred__item:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
	.ic-cred > .ic-cred__item:nth-child(3):last-child{grid-column:1 / -1}
}
@media (max-width:640px){
	.ic-cred:not(.ic-page-home *):has(> .ic-cred__item:nth-child(3):last-child){grid-template-columns:minmax(0,1fr)}
}

/* Small headings (eyebrows): no dash drawn before the text (David, 17/11/2026). */
.eyebrow:before,.ic-est__eyebrow:before{content:none;display:none}

/* Late Payment Calculator card (layout from David's screenshot). */
.ic-lpc2{background:#fff;border:1px solid var(--border-2);border-radius:var(--radius-lg);overflow:hidden;box-shadow:0 1px 2px rgba(10,35,63,.04)}
.ic-lpc2__head{background:var(--ic-navy-900);padding:clamp(28px,4vw,40px) clamp(22px,4vw,48px)}
.ic-lpc2__title{margin:0;font:700 clamp(26px,3vw,34px)/1.2 var(--font-sans);letter-spacing:-.01em;color:var(--ic-blush-500)}
.ic-lpc2__sub{margin:10px 0 0;max-width:62ch;font:400 clamp(16px,1.5vw,19px)/1.6 var(--font-sans);letter-spacing:.01em;color:var(--ic-slate-400)}
.ic-lpc2__body{padding:clamp(24px,4vw,48px)}
.ic-lpc2__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px;align-items:start}
.ic-lpc2__field label{display:block;margin:0 0 14px;font:700 13px/1.3 var(--font-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ic-teal-800)}
.ic-lpc2__field input{display:block;width:100%;min-height:58px;padding:12px 18px;background:#F6F6F4;border:1.5px solid var(--border-field,#6E7C7C);border-radius:10px;font:400 18px/1.3 var(--font-sans);color:var(--ic-navy-900)}
.ic-lpc2__field input::placeholder{color:#6B7676;opacity:1}
.ic-lpc2__field input:focus{outline:3px solid var(--ic-teal-700);outline-offset:2px;border-color:var(--ic-teal-700);background:#fff}
.ic-lpc2__hint{display:block;margin-top:10px;font:400 14.5px/1.5 var(--font-sans);letter-spacing:.01em;color:var(--fg-3)}
.ic-lpc2__hint a{color:var(--ic-teal-800);text-decoration:underline;text-underline-offset:3px}
.ic-lpc2 .ic-field__err:empty{display:none}
.ic-lpc2 .ic-field__err{margin:20px 0 0}
.ic-lpc2__btn{display:flex;width:100%;justify-content:center;margin-top:32px;min-height:64px;font-size:clamp(16px,1.6vw,19px);border-radius:10px}
.ic-lpc2__out{margin-top:28px;background:var(--gradient-deep);color:#fff;border-radius:var(--radius-lg);padding:clamp(22px,3vw,32px);display:flex;flex-direction:column;gap:16px}
.ic-lpc2__out:not(:has(> :not([hidden]))){display:none}
.ic-lpc2__out p{margin:0;color:var(--fg-on-brand-2)}
.ic-lpc2__out dl{display:grid;grid-template-columns:1fr auto;gap:10px 16px;margin:0}
.ic-lpc2__out dt{color:var(--fg-on-brand-2);font-size:15px}
.ic-lpc2__out dd{margin:0;font-weight:600;text-align:right}
@media (max-width:640px){
	.ic-lpc2__grid{grid-template-columns:minmax(0,1fr);gap:24px}
	.ic-lpc2__out dl{grid-template-columns:minmax(0,1fr)}
	.ic-lpc2__out dd{text-align:left;margin-bottom:6px}
}
