/* Told design layer: shared tokens and components for the told style of nd-* sections.
   Loaded by components/nudel/told.html. Everything is scoped to .nd-told (added to a section's
   root only when its style setting is "told"), so other templates render exactly as before.
   Spec: docs/browser/ref-2026-11/SPEC.md */

.nd-told {
  --t-ink: #22282F;
  --t-ink-85: rgba(34, 40, 47, .85);
  --t-ink-82: rgba(34, 40, 47, .82);
  --t-ink-78: rgba(34, 40, 47, .78);
  --t-ink-66: rgba(34, 40, 47, .66);
  --t-ink-50: rgba(34, 40, 47, .5);
  --t-line: rgba(34, 40, 47, .12);
  --t-yellow: #FFD251;
  --t-sky: #C7E4F8;
  --t-sky-soft: #E3F1FB;
  --t-royal: #0033A0;
  --t-ocean: #1C7EB0;
  --t-grey: #EEF0F2;
  --t-green: #A9E5C1;
  --t-coral: #F47C5A;
  --t-white: #FFFFFF;
  --t-display: "Nd Told Display", "Bubblegum Sans", system-ui, sans-serif;
  --t-body: "Nd Told Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-wrap: 1200px;
  --t-gutter: 20px;
  --t-pad: 80px;
  --t-radius: 20px;
  --t-radius-sm: 14px;
  font-family: var(--t-body);
  color: var(--t-ink);
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.nd-told *, .nd-told *::before, .nd-told *::after { box-sizing: border-box; }

/* Backgrounds (section setting "background") */
.nd-told.t-bg-white { background: var(--t-white); }
.nd-told.t-bg-sky { background: var(--t-sky); }
.nd-told.t-bg-royal { background: var(--t-royal); color: var(--t-white); }
.nd-told.t-bg-ocean { background: var(--t-ocean); color: var(--t-white); }
.nd-told.t-bg-grey { background: var(--t-grey); }
.nd-told.t-bg-ink { background: var(--t-ink); color: var(--t-white); }

/* Layout */
.nd-told .t-wrap { width: 100%; max-width: calc(var(--t-wrap) + 2 * var(--t-gutter)); margin: 0 auto; padding: 0 var(--t-gutter); }
.nd-told .t-sec { padding: var(--t-pad) 0; }

/* Type */
.nd-told :is(.t-h1, .t-h2, .t-h3, .t-display) { font-family: var(--t-display); font-weight: 400; text-transform: uppercase; color: inherit; margin: 0; letter-spacing: 0; }
.nd-told .t-h1 { font-size: 58px; line-height: .92; }
.nd-told .t-h2 { font-size: 60px; line-height: .92; }
.nd-told .t-h2--sm { font-size: 52px; }
.nd-told .t-h2--xs { font-size: 48px; }
.nd-told .t-display { font-size: 84px; line-height: .92; }
.nd-told .t-h3 { font-size: 30px; line-height: .92; }
.nd-told .t-lede { font-size: 20px; line-height: 31px; color: var(--t-ink-82); margin: 16px 0 0; max-width: 620px; }
.nd-told.t-bg-royal .t-lede, .nd-told.t-bg-ocean .t-lede, .nd-told.t-bg-ink .t-lede { color: rgba(255, 255, 255, .85); }
.nd-told .t-body { font-size: 17px; line-height: 27px; color: var(--t-ink-66); }
.nd-told .t-small { font-size: 14px; line-height: 21px; }
.nd-told .t-micro { font-size: 12px; line-height: 17px; color: var(--t-ink-66); }
.nd-told .t-eyebrow { font-size: 15px; line-height: 18px; font-weight: 600; color: var(--t-ocean); margin: 0 0 12px; }
.nd-told .t-rte p { margin: 0 0 .6em; }
.nd-told .t-rte p:last-child { margin-bottom: 0; }
.nd-told .t-rte a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Buttons */
.nd-told .t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 0 34px; border-radius: 999px;
  border: 2px solid var(--t-ink); box-shadow: 0 5px 0 var(--t-ink);
  background: var(--t-yellow); color: var(--t-ink);
  font-family: var(--t-body); font-weight: 700; font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-appearance: none; appearance: none;
}
.nd-told .t-btn:hover { filter: brightness(.96); }
.nd-told .t-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--t-ink); }
.nd-told .t-btn:focus-visible { outline: 3px solid var(--t-ocean); outline-offset: 4px; }
.nd-told .t-btn[disabled], .nd-told .t-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }
.nd-told .t-btn--lg { min-height: 68px; font-size: 19px; }
.nd-told .t-btn--white { background: var(--t-white); }
.nd-told .t-btn--sm { min-height: 52px; padding: 0 24px; font-size: 15.5px; }
.nd-told .t-btn--block { display: flex; width: 100%; }
.nd-told .t-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Chips and tags */
.nd-told .t-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--t-sky); color: var(--t-ink); font-size: 13px; line-height: 17px; font-weight: 600; }
.nd-told .t-chip--yellow { background: var(--t-yellow); }
.nd-told .t-chip--green { background: var(--t-green); }
.nd-told .t-chip--white { background: var(--t-white); box-shadow: 0 2px 10px rgba(34, 40, 47, .1); }
.nd-told .t-chip--ink { background: var(--t-ink); color: var(--t-white); }
.nd-told .t-chip--grey { background: var(--t-grey); }

/* Number badge (yellow, ink outline) */
.nd-told .t-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--t-yellow); border: 2px solid var(--t-ink); font-weight: 400; font-size: 22px; line-height: 1; color: var(--t-ink); }
.nd-told .t-num--sm { width: 30px; height: 30px; font-size: 17px; border-width: 1.5px; }

/* Scalloped badge ("51 builds here", "Same 100+ parts") */
.nd-told .t-scallop { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 112px; height: 112px; padding: 16px; font-weight: 800; font-size: 13.5px; line-height: 16px; color: var(--t-ink); background: var(--t-yellow);
  clip-path: polygon(50% 0%, 61% 8%, 75% 6%, 80% 19%, 93% 25%, 91% 39%, 100% 50%, 91% 61%, 93% 75%, 80% 81%, 75% 94%, 61% 92%, 50% 100%, 39% 92%, 25% 94%, 20% 81%, 7% 75%, 9% 61%, 0% 50%, 9% 39%, 7% 25%, 20% 19%, 25% 6%, 39% 8%); }
.nd-told .t-scallop--sky { background: var(--t-sky); }

/* Stars */
.nd-told .t-stars { letter-spacing: 2px; font-size: 13px; color: var(--t-ink); }

/* Cards and media */
.nd-told .t-card { background: var(--t-white); border-radius: var(--t-radius); }
.nd-told .t-img { display: block; width: 100%; height: auto; border-radius: var(--t-radius-sm); }
.nd-told .t-cover { width: 100%; height: 100%; object-fit: cover; }
.nd-told .t-blob { border-radius: 58% 42% 47% 53% / 52% 46% 54% 48%; overflow: hidden; }
.nd-told .t-round { border-radius: 50%; overflow: hidden; }

/* Price */
.nd-told .t-price { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.nd-told .t-was { font-size: 18px; font-weight: 600; color: var(--t-ink-50); text-decoration: line-through; }

/* Rules */
.nd-told .t-rule { border: 0; border-top: 1px solid var(--t-line); margin: 0; }
.nd-told.t-bg-royal .t-rule, .nd-told.t-bg-ocean .t-rule { border-top-color: rgba(255, 255, 255, .22); }

/* Visually hidden */
.nd-told .t-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 990px) {
  .nd-told { --t-pad: 64px; }
  .nd-told .t-h1 { font-size: 46px; }
  .nd-told .t-h2, .nd-told .t-h2--sm { font-size: 44px; }
  .nd-told .t-display { font-size: 60px; }
}
@media (max-width: 720px) {
  .nd-told { --t-pad: 56px; --t-gutter: 20px; font-size: 16px; line-height: 25px; }
  .nd-told .t-h1 { font-size: 40px; }
  .nd-told .t-h2, .nd-told .t-h2--sm, .nd-told .t-h2--xs { font-size: 36px; }
  .nd-told .t-display { font-size: 46px; }
  .nd-told .t-h3 { font-size: 26px; }
  .nd-told .t-lede { font-size: 17px; line-height: 26px; }
  .nd-told .t-btn { min-height: 58px; font-size: 17px; padding: 0 24px; }
  .nd-told .t-price { font-size: 34px; }
}
