/* Motion styles. Section A: SVG draw (motion-svg.js) */
/* Inlined diagram SVG: same box as .diagram img in site.css */
.diagram svg.diagram-svg { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--tl-line); border-radius: .375rem; background: #fff; padding: .75rem; overflow: visible; }
/* Inlined hero art keeps .hero-illus sizing from illustrations.css */
.page-hero svg.hero-illus { overflow: visible; }

/* Section B: page motion (motion-page.js) */
/* Reading progress: child of the sticky header, so it sits right under it */
.mp-progress { position: absolute; left: 0; right: 0; top: 100%; height: 3px; background: #F5C808; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; will-change: transform; }
.mp-progress.is-fixed { position: fixed; top: 0; z-index: 1031; }
@media print { .mp-progress { display: none; } }

/* TOC scrollspy */
.toc a { transition: color .2s ease, text-decoration-color .2s ease; }
.toc a.is-current { color: var(--tl-ink); font-weight: 500; text-decoration-color: currentColor; }
.toc li:has(> a.is-current)::marker { color: #F5C808; }

/* Hover details: pointer devices only */
@media (hover: hover) and (pointer: fine) {
  .card-tl .more { align-self: flex-start; background: linear-gradient(#F5C808, #F5C808) no-repeat 0 100% / 0 2px; padding-bottom: 2px; transition: background-size .3s cubic-bezier(.23, 1, .32, 1); }
  a.card-tl:hover .more, a.card-tl:focus-visible .more { background-size: 100% 2px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .table-tl tbody td:first-child { transition: box-shadow .2s ease; }
  .table-tl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 #F5C808; }
}
@media (prefers-reduced-motion: reduce) {
  .card-tl .more, .table-tl tbody td:first-child, .toc a { transition: none; }
}

/* Section C: extras (motion-extras.js) */
/* DPDP countdown band (_includes/dpdp-countdown.html). Numbers are reserved space, shown once JS fills them */
.dpdp-cd { background: #FFFBE6; border-top: 1px solid #F3E3A0; border-bottom: 1px solid #F3E3A0; }
.dpdp-cd__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .9rem 0; }
.dpdp-cd__text { margin: 0; flex: 1 1 auto; color: var(--tl-ink, #2E3338); font-size: 1rem; line-height: 1.5; }
.dpdp-cd__nums { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid #E3D27F; color: var(--tl-ink-2, #50565C); white-space: nowrap; font-variant-numeric: tabular-nums; visibility: hidden; }
.dpdp-cd__nums b { display: inline-block; min-width: 2ch; text-align: right; color: var(--tl-ink, #2E3338); font-weight: 700; }
.dpdp-cd__nums b[data-cd-days] { min-width: 3ch; }
.dpdp-cd.is-live .dpdp-cd__nums { visibility: visible; }
.dpdp-cd__dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #F5C808; box-shadow: 0 0 0 3px rgba(245, 200, 8, .25); }
.dpdp-cd.is-past .dpdp-cd__dot { background: var(--tl-ink, #2E3338); box-shadow: none; }
.dpdp-cd__link { font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .dpdp-cd.is-live .dpdp-cd__dot { animation: dpdp-cd-pulse 3.2s ease-in-out infinite; }
  @keyframes dpdp-cd-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .75; } }
}
@media (max-width: 575.98px) {
  .dpdp-cd__inner { align-items: flex-start; }
  .dpdp-cd__dot { margin-top: .5rem; }
  .dpdp-cd__text { flex-basis: calc(100% - 1.6rem); }
  .dpdp-cd__nums { display: block; margin: .15rem 0 0; padding: 0; border: 0; }
  .dpdp-cd__link { margin-left: 1.55rem; }
}
@media print { .dpdp-cd__nums, .dpdp-cd__dot { display: none; } }

/* SOC 2 checklist progress meter */
.ck-meter { position: sticky; top: 5rem; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1rem; margin: 1.5rem 0 0; padding: .75rem 1rem; background: #fff; border: 1px solid var(--tl-line, #E6E7E8); border-radius: .5rem; box-shadow: 0 -9px 0 #fff, 0 6px 18px rgba(46, 51, 56, .06); visibility: hidden; }
.ck-meter.is-ready { visibility: visible; }
.ck-meter__text { margin: 0 !important; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1rem !important; line-height: 1.4 !important; }
.ck-meter__bar { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 3px; background: var(--tl-line, #E6E7E8); overflow: hidden; }
.ck-meter__bar span { display: block; height: 100%; background: #F5C808; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.23, 1, .32, 1); }
.ck-meter__clear { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; color: var(--tl-ink, #2E3338); background: #fff; border: 1px solid var(--tl-line, #E6E7E8); border-radius: .375rem; }
.ck-meter__clear:disabled { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .ck-meter__clear:not(:disabled):hover { border-color: var(--tl-ink, #2E3338); } }
.checklist h2:has(+ ul.tick) { position: relative; padding-right: 3.75rem; }
.ck-sec { position: absolute; right: 0; top: .3em; padding: .1rem .5rem; font-family: Inter, system-ui, sans-serif; font-size: .85rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--tl-ink-2, #50565C); background: var(--tl-wash, #F6F6F4); border: 1px solid var(--tl-line, #E6E7E8); border-radius: 999px; font-variant-numeric: tabular-nums; transition: background-color .3s ease, border-color .3s ease; }
.ck-sec.is-done { background: #FFFBE6; border-color: #F5C808; color: var(--tl-ink, #2E3338); }
@media (prefers-reduced-motion: no-preference) {
  .tick input.ck-pop { animation: ck-pop .22s cubic-bezier(.23, 1, .32, 1); }
  @keyframes ck-pop { from { transform: scale(.9); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .ck-meter__bar span, .ck-sec { transition: none; } }
@media print { .ck-meter, .ck-sec { display: none !important; } }

/* Industries connector graph (inline SVG in industries/index.html) */
.ind-graph { margin: 2rem 0 0; }
.ind-graph svg { display: block; width: 100%; height: auto; border: 1px solid var(--tl-line, #E6E7E8); border-radius: .375rem; background: #fff; padding: .75rem; }
.ind-graph .ig-sm { display: none; }
@media (max-width: 575.98px) { .ind-graph .ig-lg { display: none; } .ind-graph .ig-sm { display: block; } }
.ind-graph figcaption { font-size: .95rem; color: var(--tl-muted, #6B7075); margin-top: .6rem; }

