/* ============================================================
   Reverse Logistics page (src/pages/platform/reverse-logistics-new.astro),
   loaded only on that page, after public/home/tokens.css, public/home/home.css
   and public/search/search.css (which give it the buttons, the dark glow
   ground, hero, logo strip, tab rails, platform cards, FAQ and resource tiles).
   Brand colors: src/styles/tokens.css. Sections in page order; each group
   names its component in src/components/sections/reverse-logistics/.
   Breakpoints: 900, 880 (rails become accordions), 760, 640.
   ============================================================ */

/* ==== Hero (RlHero.astro): the Search hero plus a bold one-liner ==== */
.krl-hero__kicker { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--kibo-white); }
/* the design lines the hero up with the sections below (1280px plus the gutters) */
.krl-page .ks-hero__in { max-width: calc(1280px + 2 * var(--ks-gutter)); }

/* ==== Dark bands with a left shade (RlResults.astro, RlAnalysts.astro) ==== */
.krl-band__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(46,52,62,.92) 0%, rgba(46,52,62,.72) 32%, rgba(46,52,62,0) 64%); }
.krl-band__in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 92px var(--ks-gutter); }
.krl-results { padding-top: 128px; padding-bottom: 88px; }
.krl-results__h { text-align: center; max-width: 980px; margin: 0 auto; }
.krl-results__note { margin: 0 auto; max-width: 860px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); text-align: center; text-wrap: balance; }

/* Stat table: rows between yellow rules; the value line is the homepage's .kh-anl__line */
.krl-table { margin: 48px auto 28px; display: flex; flex-direction: column; width: fit-content; max-width: min(100%, 980px); border-bottom: 1.5px solid var(--kibo-yellow); }
.krl-table--equal { display: grid; grid-auto-rows: 1fr; max-width: min(100%, 1100px); margin: 0 auto; }
.krl-table__row { display: grid; grid-template-columns: minmax(0, 300px) auto; align-items: center; gap: 20px 72px; padding: 28px 0; border-top: 1.5px solid var(--kibo-yellow); }
.krl-table__name { font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--kibo-white); }
.krl-table .kh-anl__line { gap: 16px; }
.krl-table .kh-anl__line > span { max-width: 560px; }
.krl-table .kh-anl__line strong { font-weight: 600; }
.krl-table .kh-anl__arrow { height: 44px; }
.krl-arrow--down { transform: rotate(180deg); }
.krl-table__logo img { height: 29px; }

/* ==== Problem statement (RlProblem.astro) ==== */
.krl-problem { display: flex; flex-direction: column; }
.krl-problem__icon { max-width: 264px; }
.krl-problem__flow { display: block; width: 100%; height: auto; overflow: visible; }
.krl-flow-line { fill: none; stroke: var(--kibo-white); stroke-width: 3; stroke-linejoin: miter; stroke-linecap: butt; }
.krl-fill-y { fill: var(--kibo-yellow); }
.krl-fill-ground { fill: var(--kibo-dark-grey); }
.krl-cube { stroke-width: 1; stroke-linejoin: round; stroke-opacity: .55; }
.krl-cube--y { fill: var(--kibo-yellow); stroke: var(--kibo-yellow); }
.krl-cube--b { fill: var(--kh-blue); stroke: var(--kh-blue); }
.krl-cube--s { fill: var(--kh-sky); stroke: var(--kh-sky); }
.krl-problem__h { margin-top: 20px; }
.krl-problem__sub { margin: 16px 0 0; font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--kibo-white); }
.ks-xlist.krl-problem__list { margin: 20px 0 0; }
.krl-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.krl-stat { position: relative; overflow: hidden; background: var(--kh-blue); border-radius: 5px; padding: 36px 34px; min-height: 216px; display: flex; flex-direction: column; justify-content: flex-end; }
.krl-stat::before { content: ""; position: absolute; inset: 0; background-position: center; background-size: cover; filter: contrast(1.1); pointer-events: none; }
.krl-stat--0::before { background-image: url('/home/patterns/hex-01.svg'); }
.krl-stat--1::before { background-image: url('/home/patterns/hex-04.svg'); }
.krl-stat--2::before { background-image: url('/home/patterns/hex-07.svg'); }
.krl-stat p { position: relative; margin: 0; font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--kibo-white); }
.krl-stat__num { color: var(--kibo-yellow); font-weight: 700; }
.krl-problem__source { margin-top: 12px; align-self: flex-end; font-size: 12px; color: rgba(255,255,255,.75); }
.krl-problem__close { margin: 24px 0 0; font-size: 22px; line-height: 1.3; font-weight: 500; max-width: 980px; color: var(--kibo-white); }

/* ==== Tab rails (RlRail.astro): the Search rail plus a line under the heading and bullets ==== */
.krl-head__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 560px; }
.krl-head__sub { margin: 0; font-size: 18px; line-height: 1.34; max-width: 760px; color: var(--kibo-white); }
.ks-head.krl-head--tight { margin-bottom: 32px; gap: 14px 24px; }
.krl-rail__icon { display: block; color: var(--kibo-white); }
.krl-bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 62ch; color: var(--kibo-white); }
.krl-bullets li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.krl-bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1.5px; background: var(--kibo-yellow); }
#order-flow { scroll-margin-top: 96px; }

/* ==== Closing band (RlFinalCta.astro): the homepage's .kh-finalcta with two buttons ==== */
.krl-page .krl-finalcta h2 { max-width: 22ch; margin: 0 auto 28px; }
.krl-finalcta .kh-cta-row { gap: 12px; }
.krl-btn-ghost { display: inline-flex; align-items: center; background: transparent; color: var(--kibo-white); border-color: rgba(255,255,255,.32); text-decoration: none; }
.krl-btn-ghost:hover { background: var(--kibo-white); color: var(--kibo-dark-grey); border-color: var(--kibo-white); }
.krl-btn-ghost:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 2px; }

/* =================== Responsive =================== */

/* FAQ (the Search page's SearchFaq.astro) stacked: closed panels show the short title on one line */
@media (max-width: 1340px) {
  .krl-page .ks-faq__title { white-space: normal; }
}

@media (max-width: 900px) {
  .krl-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .krl-hero__kicker { font-size: 20px; }
  .krl-results { padding-top: 80px; padding-bottom: 64px; }
  .krl-analysts { padding-top: 64px; padding-bottom: 64px; }
  .krl-table__row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .krl-table__name { font-size: 19px; }
  .krl-table .kh-anl__line { font-size: 19px; }
  .krl-table .kh-anl__arrow { height: 44px; }
  .krl-table .kh-anl__line br { display: none; }
  .krl-problem__sub, .krl-problem__close { font-size: 19px; }
  .ks-xlist.krl-problem__list { font-size: 16px; }
  .krl-problem__source { align-self: flex-start; }
  .krl-stat { min-height: 170px; padding: 28px 24px; }
  .krl-stat p { font-size: 20px; }
}

@media (max-width: 640px) {
  .krl-head__sub { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .krl-btn-ghost { transition: none !important; }
}
