/* ============================================================
   Dropship page (src/pages/platform/dropship-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, hero, logo strip, tab
   rails, platform cards and resource tiles). This file adds what the Search
   page doesn't have. Brand colors: src/styles/tokens.css. Sections in page
   order; each group names its component in src/components/sections/dropship/.
   Breakpoints: 880 (rails become accordions, in search.css), 760, 700, 640, 480.
   ============================================================ */

.kds-sub { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 400; max-width: 620px; color: var(--kibo-white); }

/* Ghost button beside the yellow one (hero, closing band) */
.ks-page .kds-btn-ghost { background: transparent; color: var(--kibo-white); border-color: rgba(255,255,255,.45); transition: background .2s var(--ks-ease), color .2s var(--ks-ease), border-color .2s var(--ks-ease); }
.ks-page .kds-btn-ghost--soft { border-color: rgba(255,255,255,.32); }
.ks-page .kds-btn-ghost:hover { background: var(--kibo-white); color: var(--kibo-dark-grey); border-color: var(--kibo-white); }
.ks-page .kds-btn-ghost:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: 2px; }
.ks-hero .kh-cta-row { gap: 14px; }

/* ==== Customer strip (search/SearchCustomers.astro + DropshipCustomersNote.astro) ==== */
.kds-customers { background: var(--kibo-light-grey); padding-bottom: 60px; }
.kds-customers .ks-customers { padding-bottom: 0; }
.kds-customers .ks-customers__h { max-width: 1280px; }
.kds-note p { margin: 36px auto 0; padding: 0 var(--ks-gutter); max-width: 1280px; text-align: center; font-size: 22px; line-height: 1.3; color: var(--kibo-dark-grey); }

/* ==== Problem statement (DropshipProblem.astro) ==== */
.kds-problem { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }

/* ==== Tab rails (DropshipRail.astro; the rail itself is .ks-rail in search.css) ==== */
.kds-head__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 560px; }
.ks-head.kds-head--tight { margin-bottom: 32px; gap: 14px 24px; }
.kds-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 62ch; }
.kds-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--kibo-white); text-wrap: pretty; }
.kds-list li::before { content: ""; flex-shrink: 0; width: 10px; height: 1.5px; background: var(--kibo-yellow); margin-top: 11px; }
#capabilities { scroll-margin-top: 130px; }

/* Icons (DropshipIcon.astro): the portal's cut-out mask and the timer */
.kds-mask-keep { fill: var(--kibo-white); stroke: none; }
.kds-mask-cut { fill: var(--kibo-black); stroke: var(--kibo-black); }
.kds-icon-timer { stroke-linecap: butt; stroke-linejoin: miter; }
.kds-hex-static { fill: var(--kibo-yellow); stroke: none; }

/* ==== Platform cards (DropshipPlatform.astro; .ks-plat in search.css) ==== */
.ks-plat.kds-plat { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* ==== Analyst recognition (DropshipAnalysts.astro) ==== */
.kds-anl { position: relative; overflow: hidden; color: var(--kibo-white); }
.kds-anl__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%); }
.kds-anl__in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 92px var(--ks-gutter); }
.kds-anl__list { display: grid; grid-auto-rows: 1fr; width: fit-content; max-width: min(100%, 1100px); margin: 0 auto; border-bottom: 1.5px solid var(--kibo-yellow); }
.kds-anl__row { display: grid; grid-template-columns: minmax(0, 280px) auto; align-items: center; gap: 20px 72px; padding: 28px 0; border-top: 1.5px solid var(--kibo-yellow); }
.kds-page .kds-anl__logo { display: block; height: 29px; width: auto; max-width: 100%; justify-self: start; object-fit: contain; filter: brightness(0) invert(1); }
.kds-anl__claim { margin: 0; display: flex; align-items: center; gap: 16px; }
.kds-page .kds-anl__arrow { display: block; flex-shrink: 0; width: 30px; height: 44px; }
.kds-anl__claim span { display: block; max-width: 560px; font-size: 23px; line-height: 1.3; color: var(--kibo-white); }
.kds-anl__claim strong { font-weight: 600; }

/* ==== FAQ (DropshipFaq.astro): two columns of accordions, one open in each ==== */
.kds-faq { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 4px 20px; align-items: start; }
.kds-faq__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kds-faq__item { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: var(--kibo-dark-grey); color: var(--kibo-white); cursor: pointer; transition: background .5s var(--ks-ease-faq), border-color .5s var(--ks-ease-faq); }
.kds-faq__item.is-open { background: var(--kibo-link); border-color: var(--kibo-link); cursor: default; }
.kds-faq__trigger { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: 0 22px; display: flex; align-items: center; background: none; border: 0; color: var(--kibo-white); cursor: pointer; text-align: left; font-family: var(--font-base); font-size: 14px; line-height: 21px; font-weight: 500; transition: opacity .35s var(--ks-ease-faq); }
.kds-faq__trigger span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kds-faq__trigger:focus-visible { outline: 2px solid var(--kibo-yellow); outline-offset: -2px; }
.kds-faq__item.is-open .kds-faq__trigger { opacity: 0; pointer-events: none; }
.kds-faq__body { display: grid; grid-template-rows: 0fr; min-height: 54px; transition: grid-template-rows .6s var(--ks-ease-faq); }
.kds-faq__item.is-open .kds-faq__body { grid-template-rows: 1fr; }
.kds-faq__inner { overflow: hidden; min-height: 0; }
.kds-faq__content { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .45s var(--ks-ease-faq) .15s; }
.kds-faq__item.is-open .kds-faq__content { opacity: 1; }
.kds-faq__content h3 { margin: 0; font-family: var(--font-base); font-size: 19px; line-height: 25px; font-weight: 400; color: var(--kibo-white); }
.kds-faq__content p { margin: 0; font-size: 14px; line-height: 21px; font-weight: 400; color: var(--kibo-white); text-wrap: pretty; }

/* ==== Resource tiles (DropshipResources.astro; .ks-res in search.css) ==== */
.kds-page .ks-res__type strong { font-weight: 600; }

/* ==== Closing band (DropshipFinalCta.astro; .kh-finalcta in home.css) ==== */
.kds-page .kds-finalcta h2 { max-width: 22ch; margin-bottom: 28px; }

/* =================== Responsive =================== */
@media (max-width: 760px) {
  .kds-note p { font-size: 19px; }
  .kds-anl__in { padding-top: 64px; padding-bottom: 64px; }
  .kds-page .kds-finalcta { padding: 64px 0; }
}

@media (max-width: 700px) {
  .kds-anl__row { grid-template-columns: 1fr; }
  .kds-anl__claim span { font-size: 19px; }
  .kds-anl__claim br { display: none; }
}

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

@media (max-width: 480px) {
  .kds-faq__trigger span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

@media (prefers-reduced-motion: reduce) {
  .kds-faq__item, .kds-faq__trigger, .kds-faq__body, .kds-faq__content, .ks-page .kds-btn-ghost { transition: none !important; }
}
