/* Visual explanations of VINE's records; all selectors stay within the component. */
#specification .data-section-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}
#specification .data-section-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}
#specification .data-section-intro > div > p { margin: 0; font-size: 17px; line-height: 1.8; }
#specification .data-explainer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#specification .data-explainer {
  min-width: 0;
  padding: 28px;
  border: 1px solid #e3d9ee;
  border-radius: 21px;
  background: linear-gradient(145deg, #fff, #fcfaff);
}
#specification .data-card-heading { display: flex; align-items: center; gap: 14px; }
#specification .data-card-number {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff0e5;
  color: #b96227;
  font: 600 11px/1 'DM Sans', sans-serif;
}
#specification .data-card-heading h3 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
#specification .data-illustration { width: 100%; aspect-ratio: 12 / 7; margin: 24px 0 20px; }
#specification .data-illustration-svg { width: 100%; height: auto; display: block; overflow: visible; }
#specification .data-card-copy p { font-size: 15px; line-height: 1.8; margin: 0 0 13px; }
#specification .data-card-copy .data-summary { font-size: 16px; font-weight: 600; color: #57366e; line-height: 1.65; }
#specification .data-card-copy .data-detail { border-top: 1px solid #eee5f4; padding-top: 12px; margin: 0; font-size: 13px; color: #80678f; line-height: 1.75; }
#specification .data-explainer-wide { grid-column: 1 / -1; }
#specification .data-explainer-wide .data-card-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
#specification .data-explainer-wide .data-illustration { margin-bottom: 0; }
#specification .data-explainer-wide .data-card-copy { margin-top: 24px; }
#specification .data-section-note { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; color: #80678f; font-size: 13px; line-height: 1.8; }
#specification .data-section-note a { text-decoration: underline; text-underline-offset: 4px; }

.data-illustration .data-motion { transform-box: fill-box; transform-origin: center; animation-play-state: running; }
.data-illustration .data-packet { animation: data-record-travel 10s linear infinite; animation-delay: var(--data-delay, 0s); }
.data-illustration .data-highlight { animation: data-record-highlight 10s ease-in-out infinite; animation-delay: var(--data-delay, 0s); }
.data-illustration .data-scan { animation: data-record-scan 10s ease-in-out infinite; animation-delay: var(--data-delay, 0s); }
.data-illustration .data-draw { animation: data-record-trace 10s ease-in-out infinite; animation-delay: var(--data-delay, 0s); }
@keyframes data-record-travel {
  0%, 8% { opacity: 0; transform: translate(0, 0); }
  17% { opacity: 1; }
  43% { opacity: 1; transform: translate(var(--data-mx, calc(var(--data-dx, 0px) * .5)), var(--data-my, calc(var(--data-dy, 0px) * .5))); }
  74% { opacity: 1; transform: translate(var(--data-dx, 0px), var(--data-dy, 0px)); }
  86%, 100% { opacity: 0; transform: translate(var(--data-dx, 0px), var(--data-dy, 0px)); }
}
@keyframes data-record-highlight { 0%, 12%, 100% { opacity: .18; } 35%, 72% { opacity: .9; } 92% { opacity: .18; } }
@keyframes data-record-scan { 0%, 12%, 100% { opacity: 0; transform: translateY(0); } 24% { opacity: .8; } 70% { opacity: .8; transform: translateY(var(--data-dy, 40px)); } 85% { opacity: 0; transform: translateY(var(--data-dy, 40px)); } }
@keyframes data-record-trace { 0%, 12%, 100% { stroke-dashoffset: 100; opacity: 0; } 25% { opacity: .8; } 70%, 85% { stroke-dashoffset: 0; opacity: .8; } 94% { opacity: 0; } }
.data-illustration:not([data-model-active="true"]) .data-motion,
.motion-paused .data-illustration .data-motion { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .data-illustration .data-motion { animation-play-state: paused !important; } }
@media (max-width: 1000px) {
  #specification .data-section-intro { gap: 32px; }
  #specification .data-explainer-grid { gap: 18px; }
  #specification .data-explainer { padding: 24px; }
  #specification .data-card-heading h3 { font-size: 21px; }
  #specification .data-explainer-wide .data-card-body { gap: 24px; }
}
@media (max-width: 760px) {
  #specification .data-section-intro { grid-template-columns: minmax(0, 1fr); gap: 23px; margin-bottom: 29px; }
  #specification .data-explainer-grid { grid-template-columns: minmax(0, 1fr); }
  #specification .data-explainer { padding: 25px; }
  #specification .data-explainer-wide .data-card-body { display: block; }
  #specification .data-explainer-wide .data-card-copy { margin-top: 20px; }
}
@media (max-width: 420px) {
  #specification .data-explainer { padding: 21px 18px 23px; border-radius: 18px; }
  #specification .data-card-heading { gap: 11px; align-items: start; }
  #specification .data-card-heading h3 { font-size: 20px; padding-top: 2px; }
  #specification .data-illustration { width: calc(100% + 12px); max-width: none; margin: 22px -6px; }
}

/* A local scroll region keeps source labels at least 12 CSS pixels. */
#specification .data-illustration { aspect-ratio: auto; container-type: inline-size; }
#specification .data-art-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 3px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c9b3dc #f4eef8; }
#specification .data-art-scroll:focus-visible { outline: 2px solid #9887ef; outline-offset: -2px; border-radius: 8px; }
#specification .data-art-scroll .data-illustration-svg { width: 100%; min-width: 384px; max-width: none; }
#specification .data-scroll-hint { display: none; align-items: center; gap: 7px; margin: 9px 0 0; color: #806a91; font-size: 11px; line-height: 1.65; }
#specification .data-scroll-hint>span { flex: none; color: #a374bd; font-size: 17px; }
@container (width < 384px) { #specification .data-scroll-hint { display: flex; } }
