/* mt-s3.css - 贍養費 v4 section 3 (Orders), issue #74.
   Reuses the HOMEPAGE services carousel markup/engine as-is (public/site.css §3 services,
   public/site.js [data-carousel]) but keeps THIS page's cream palette: paper background, white
   cards, ink text, amber accent. Every rule here is scoped under .mt-orders so the shared .svc/
   .dark rules in site.css (dark-green cards, light-on-dark text) never leak in, and nothing here
   touches the homepage's own .svc styling. */

.mt-orders { background: var(--paper, #F2F3EE); color: var(--ink, #10201B); overflow: clip; padding: 120px 0; }

/* ---------- head: eyebrow + H2 + intro + tabs ---------- */
.mt-orders-head { padding-inline: var(--pad); }
.mt-orders .eyebrow i { background: var(--amber); }
/* Contrast fix (judge round 2): amber #E9A93A on white/cream measures ~2:1 (lab/../contrast calc:
   2.06:1 on white, 1.85:1 on --paper), well under WCAG AA 4.5:1 -- amber can never be the TEXT
   colour on this section. The H2's ".hi" keeps ink-dark text (16.87:1 on white) and gets an amber
   MARKER band under the lower ~40% of the glyphs instead. box-decoration-break: clone keeps the
   band per-line if the phrase ever wraps across more than one box. */
.mt-orders .h2 .hi {
  color: var(--ink);
  background: linear-gradient(transparent 60%, rgba(233,169,58,.55) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .08em;
}
/* each H2 phrase wraps as a unit, never 五/種類別 mid-phrase (vision check 2026-09-24, #74) */
.mt-orders .s3-ph { display: inline-block; white-space: nowrap; }
.mt-orders .svc-tabrow { display: flex; margin-top: 28px; }
.mt-orders .svc-tabrow .seg-scroll { flex: 1 1 auto; margin-top: 0; }
/* overflow:visible only where site.css sets it (>=1024): below that the strip must scroll sideways
   so the active tab stays on screen (review 2026-09-24, #74; probe-mt-s3 "tabVisible"). */
@media (min-width: 1024px) { .mt-orders .svc-tabrow .seg-scroll { overflow: visible; } }

/* light track (cream section): base .seg-track/.seg-track button assume a dark section
   (rgba(255,255,255,.08) track, var(--paper) text) - flip both for a light track. */
.mt-orders [data-carousel-tabs="orders"] { background: rgba(16,32,27,.06); }
/* site.css's shared .seg-track button is weight 600 (fine on the homepage's own H1/H2 scale) but
   this page's ONE TYPE SCALE rule (mt-page.css, probe-mt-typescale.mjs) forbids anything above 500
   inside [data-mt-sec] -- "the font style must be standardized ... no bold" (owner, v3). */
.mt-orders [data-carousel-tabs="orders"] button { color: rgba(16,32,27,.6); font-weight: 500; }
.mt-orders [data-carousel-tabs="orders"] button small { color: rgba(16,32,27,.38); }
.mt-orders [data-carousel-tabs="orders"] button.on { color: var(--ink); }
.mt-orders [data-carousel-tabs="orders"] button.on small { color: rgba(16,32,27,.58); }

/* ---------- carousel: sits OUTSIDE .wrap (full-bleed) so neighbours peek both sides ---------- */
.mt-orders .carousel { overflow-x: clip; overflow-y: visible; margin-top: 40px; }

/* ---------- cards: white, active lifted with an amber ring + a cream-tuned deep shadow ---------- */
.mt-orders .slide { background: #FFFFFF; transform-origin: center; transition: opacity .5s ease, transform .5s ease, box-shadow .5s ease; }
.mt-orders .slide.on { opacity: 1; transform: scale(1); box-shadow: 0 0 0 1px rgba(233,169,58,.55), 0 30px 80px rgba(16,32,27,.14); }
.mt-orders .slide:not(.on) { opacity: .32; transform: scale(.96); }

/* ---------- art: bigger, on a sand panel, contain-fit so no line drawing is cropped ---------- */
.mt-orders .scene { aspect-ratio: 4 / 5; background: var(--sand, #E9ECE4); }
.mt-orders .scene img { object-fit: contain; padding: 8%; box-sizing: border-box; }

/* ---------- copy: ink/mute text on the cream card ---------- */
.mt-orders .slide-copy h3 { font-size: 48px; }
/* base .slide-copy .sub is amber text (18px) -- same 2:1 contrast problem as the H2 .hi. Deep
   green text (14.68:1 on white) + a short amber BAR (marker, not text) keeps the accent without
   the fail. */
.mt-orders .slide-copy .sub { color: var(--green); font-weight: 500; }
.mt-orders .slide-copy .sub::before { content: ''; display: inline-block; width: 18px; height: 3px; background: var(--amber); margin-right: 10px; vertical-align: middle; }
.mt-orders .slide-copy > p:not(.sub) { color: rgba(16,32,27,.68); font-size: 17px; }
.mt-orders .subs li { border-color: rgba(16,32,27,.14); color: rgba(16,32,27,.68); font-size: 14px; }
.mt-orders .slide-copy .btn.btn-outline { color: var(--ink); border-color: rgba(16,32,27,.3); }

/* ---------- arrows: light hairline to match the cream section ---------- */
.mt-orders .arrows { color: rgba(16,32,27,.68); margin-top: 20px; }
.mt-orders .arrows button { border-color: rgba(16,32,27,.16); width: 48px; height: 48px; }

@media (max-width: 899px) {
  .mt-orders { padding: 72px 0; }
  .mt-orders .svc-tabrow { margin-top: 20px; }
  /* Phone: same wrapped-pill fix as homepage phone (site.css .seg-track), mirrored here because
     our tablist carries data-carousel-tabs="orders", not data-svc-tabs, and this cream page needs
     its own pill colours instead of site.css's dark-track ones. The wrap/gap/no-scroll mechanics
     (.seg-scroll/.seg-track base rules) are shared and already fixed in site.css -- only the
     colours + track-background removal are page-specific here. */
  .mt-orders [data-carousel-tabs="orders"] .seg-ind { display: none; }
  .mt-orders [data-carousel-tabs="orders"] { background: none; }
  .mt-orders [data-carousel-tabs="orders"] button { border-color: rgba(16,32,27,.18); }
  .mt-orders [data-carousel-tabs="orders"] button.on { background: var(--amber); color: var(--ink); border-color: transparent; }
  .mt-orders .carousel { margin-top: 20px; }
  .mt-orders .scene { aspect-ratio: 16 / 11; }
  .mt-orders .slide-copy h3 { font-size: 30px; }
}

/* ---------- #91 scroll-to-turn pin: fit head + card + arrows under the sticky nav ----------
   With data-carousel-bands on (owner 2026-09-26, #91) the pin sticks at nav-h+12px; at 1440x900 the
   unfitted pin was 1014px tall in 792px of room, so the card foot + arrows sat off-screen for the
   whole runway. Same fit move as the homepage (site.css >=1024: .svc .scene height tied to the
   viewport). Only while the runway is live - reduced motion keeps the static layout above. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .mt-orders .svc-tabrow { margin-top: 22px; }
  .mt-orders .carousel { margin-top: 24px; }
  /* min 340px -> 260px (#91 fix round): on short desktops (1280x720 / 1366x768) the pinned arrows sat
     at 775 / 779px. Same formula, so 1440x900 (360px) and taller are unchanged. */
  .mt-orders .scene { aspect-ratio: auto; height: clamp(260px, calc(100vh - 540px), 560px); }
}
/* Short desktop screens (1024x768: arrows sat at 750-798px, just under the fold, so reaching them
   scrolled the page across a band). Tighter head/card/arrow spacing keeps them on screen. 1280x720
   and shorter still overflow - same as the homepage .svc pin (measured 2026-09-26, #91). */
@media (min-width: 1024px) and (max-height: 860px) and (prefers-reduced-motion: no-preference) {
  .mt-orders .svc-tabrow { margin-top: 14px; }
  .mt-orders .carousel { margin-top: 12px; }
  .mt-orders .arrows { margin-top: 8px; }
  .mt-orders .slide { padding-block: 18px; }
}
