/* da-diff.css: /divorce-agreement/ section 4, 最常見的五個寫法錯誤 (src/components/agreement/Mistakes.astro): the
   carousel half of the cross-border differences block (a copy of cb-diff.css, the statement pin removed). Pale ground;
   the shared site.js [data-carousel] engine runs it (no autoplay, no scroll-to-turn on this page). */
.da .da-diff { position: relative; z-index: 2; background: var(--paper, #F2F3EE); color: var(--ink, #10201B); overflow: clip; padding: 120px 0; border-radius: var(--r-sec) var(--r-sec) 0 0; transition: background-color .8s cubic-bezier(.22, 1, .36, 1); }
.da .da-diff-head { padding-inline: var(--pad); }
.da .da-diff .eyebrow i { background: var(--amber); }
.da .da-diff .h2 { margin-top: 12px; }
.da .da-diff-sub { margin: 14px auto 0; max-width: 34em; }
.da .da-diff .svc-tabrow { display: flex; margin-top: 28px; }
.da .da-diff .svc-tabrow .seg-scroll { flex: 1 1 auto; margin-top: 0; }
@media (min-width: 1024px) { .da .da-diff .svc-tabrow .seg-scroll { overflow: visible; } }
.da .da-diff [data-carousel-tabs="dadiff"] { background: rgba(16,32,27,.06); min-width: 0; }
.da .da-diff [data-carousel-tabs="dadiff"] button { color: rgba(16,32,27,.64); font-weight: 500; min-height: 44px; }
.da .da-diff [data-carousel-tabs="dadiff"] button small { color: rgba(16,32,27,.5); }
.da .da-diff [data-carousel-tabs="dadiff"] button.on { color: var(--ink); }
.da .da-diff [data-carousel-tabs="dadiff"] button.on small { color: rgba(16,32,27,.62); }
.da .da-diff [data-carousel-tabs="dadiff"] button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.da .da-diff .carousel { overflow-x: clip; overflow-y: visible; margin-top: 40px; }
.da .da-diff .slide { background: #FFFFFF; transform-origin: center; transition: opacity .5s ease, transform .5s ease, box-shadow .5s ease; }
.da .da-diff .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); }
.da .da-diff .slide:not(.on) { opacity: .32; transform: scale(.96); }
.da .da-diff .scene { aspect-ratio: 4 / 3; align-self: center; background: var(--da-sand); }
.da .da-diff .scene img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.da .da-diff .slide-copy { gap: 12px; }
.da .da-diff .dad-h3 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.2; color: var(--ink); }
.da .da-diff .slide-copy .sub { color: var(--green); font-weight: 500; font-size: 18px; }
.da .da-diff .slide-copy .sub::before { content: ''; display: inline-block; width: 18px; height: 3px; background: var(--amber); margin-right: 10px; vertical-align: middle; }
.da .dad-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 4px; }
.da .dad-cell { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r-sm, 14px); background: #F6F3EC; }
.da .dad-cell.dad-cn { background: #EEF2EE; }
.da .dad-cell b { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.da .dad-cell p { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(16,32,27,.78); }
.da .dad-law { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(16,32,27,.12); font-size: 13px; letter-spacing: .04em; color: rgba(16,32,27,.66); }
.da .da-diff .dad-body { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(16,32,27,.72); }
.da .da-diff .slide-copy .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.da .da-diff .slide-copy .btn.btn-outline { color: var(--ink); border-color: rgba(16,32,27,.3); }
.da .dad-go { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(16,32,27,.35); text-underline-offset: 5px; }
.da .dad-go:hover { text-decoration-color: var(--amber); }

.da .da-diff .arrows { color: rgba(16,32,27,.68); margin-top: 20px; }
.da .da-diff .arrows button { border-color: rgba(16,32,27,.16); width: 48px; height: 48px; }

/* the light switch into s6: once dp-consultant.js turns the ground on, this section lets the green show
   through and its own words switch to the light ink on the same .8s clock (cu-access.css did the same to
   撫養權 s5). The white cards keep their own ground. */
html.dpc-ground-on .da .da-diff { background-color: transparent; }
.da .da-diff-head .h2, .da .da-diff-sub, .da .da-diff-head .eyebrow, .da .da-diff .arrows { transition: color .8s cubic-bezier(.22, 1, .36, 1); }
html.dpc-ground-on .da .da-diff-head .h2 { color: var(--paper); }
html.dpc-ground-on .da .da-diff-sub, html.dpc-ground-on .da .da-diff-head .eyebrow, html.dpc-ground-on .da .da-diff .arrows { color: var(--mute-d); }
html.dpc-ground-on .da .da-diff .arrows button { border-color: var(--line-d); color: var(--paper); }
html.dpc-ground-on .da .da-diff [data-carousel-tabs="dadiff"] { background: rgba(255,255,255,.08); }
html.dpc-ground-on .da .da-diff [data-carousel-tabs="dadiff"] button:not(.on) { color: var(--mute-d); }
html.dpc-ground-on .da .da-diff [data-carousel-tabs="dadiff"] button:not(.on) small { color: var(--mute-d); }
@media (prefers-reduced-motion: reduce) { .da .da-diff, .da .da-diff-head .h2, .da .da-diff-sub, .da .da-diff-head .eyebrow, .da .da-diff .arrows { transition: none; } }

@media (max-width: 1023px) {
  .da .dad-cmp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .da .da-diff { padding: 72px 0; }
  .da .da-diff .svc-tabrow { margin-top: 20px; }
  .da .da-diff [data-carousel-tabs="dadiff"] .seg-ind { display: none; }
  .da .da-diff [data-carousel-tabs="dadiff"] button.on { background: var(--amber); color: var(--ink); }
  .da .da-diff .carousel { margin-top: 20px; }
  .da .da-diff .scene { aspect-ratio: 16 / 11; }
  .da .da-diff .dad-h3 { font-size: 30px; }
  .da .dad-cell { padding: 12px 14px; }
}
/* while the ground is on (s6 crossing mid-screen) the pinned statement is long past; it must not show
   through the now-transparent carousel section where the two overlap (the cover's one-screen overlap) */
/* #91 scroll-to-turn pin (owner 2026-09-26, #84 row 3): Differences.astro carries the homepage settings, so the
   head + card pin under the nav (site.css [data-carousel-pin]) while the runway turns one card per band. Fit the pin
   to the screen the way mt-s3.css does (the picture height follows the viewport) so the arrows + counter stay on
   screen while pinned at 1024x768 .. 1920x1080. Only while the runway is live: reduced motion keeps the static layout. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .da .da-diff .svc-tabrow { margin-top: 22px; }
  .da .da-diff .carousel { margin-top: 24px; }
  .da .da-diff .scene { aspect-ratio: auto; height: clamp(260px, calc(100vh - 540px), 560px); }
}
@media (min-width: 1024px) and (max-height: 860px) and (prefers-reduced-motion: no-preference) {
  .da .da-diff .svc-tabrow { margin-top: 14px; }
  .da .da-diff .carousel { margin-top: 12px; }
  .da .da-diff .arrows { margin-top: 8px; }
  .da .da-diff .slide { padding-block: 14px; }
  /* this card carries more than 贍養費's (title, point, the 香港 | 內地 cells, a link row): measured 2026-09-26 the
     copy column (364-415px) sets the card height here, not the picture, and the arrows sat 25-70px under the fold
     at 1366x768 / 1024x768 / 1280x720. Same words, tighter type and spacing on short screens only. */
  .da .da-diff .h2 { margin-top: 6px; }
  .da .da-diff-sub { margin-top: 8px; }
  .da .da-diff .slide-copy { gap: 8px; }
  .da .da-diff .dad-h3 { font-size: 32px; }
  .da .dad-cmp { gap: 10px; margin-top: 0; }
  .da .dad-cell { gap: 4px; padding: 10px 14px; }
  .da .dad-cell p { line-height: 1.55; }
  .da .dad-law { padding-top: 4px; }
}
/* site.css drops .slide-copy .btn to 42px on phones: 44px on this page (page probe, tap) */
@media (max-width: 899px) { .da .da-diff .slide-copy .btn { height: 44px; } }

/* #105: the five short tabs (探視 · 按揭 · 贍養費 · 強積金 · 披露) sit on ONE row at 480 px and below (work order s4) */
@media (max-width: 899px) {
  .da .da-diff [data-carousel-tabs="dadiff"] { flex-wrap: nowrap; gap: 6px; }
  .da .da-diff [data-carousel-tabs="dadiff"] button { padding-inline: 12px; min-width: 44px; }
}
@media (max-width: 380px) {
  .da .da-diff [data-carousel-tabs="dadiff"] { gap: 4px; }
  .da .da-diff [data-carousel-tabs="dadiff"] button { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 480px) {
  .da .da-diff [data-carousel-tabs="dadiff"] { gap: 4px; }
  .da .da-diff [data-carousel-tabs="dadiff"] button { padding-inline: 9px; }
}
