/* ==========================================================================
   YT Digital Power — Reset, typography and layout primitives
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--yt-header-h) + 24px);
  background: var(--yt-white);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--yt-white);
  color: var(--yt-ink);
  font-family: var(--yt-font-sans);
  font-size: var(--yt-fs-16);
  font-weight: var(--yt-fw-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

body.yt-no-scroll,
html.yt-no-scroll {
  overflow: hidden;
}

main,
.yt-main {
  display: block;
}

/* Inner pages sit below the fixed header; the front page hero runs beneath it. */
body.yt-inner .yt-main {
  padding-top: var(--yt-header-h);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--yt-black);
  font-weight: var(--yt-fw-bold);
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  flex: none;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

input,
textarea,
select {
  background: var(--yt-white);
  border-radius: 0;
}

textarea {
  resize: vertical;
}

select {
  cursor: pointer;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  text-align: left;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--yt-line);
}

address {
  font-style: normal;
}

strong,
b {
  font-weight: var(--yt-fw-bold);
}

small {
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

code,
kbd,
samp,
pre {
  font-family: var(--yt-font-mono);
  font-size: 0.9em;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--yt-red);
  color: var(--yt-white);
}

/* --------------------------------------------------------------------------
   Focus
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--yt-red);
  outline-offset: 2px;
}

.yt-footer :focus-visible,
.yt-video-modal :focus-visible,
.yt-cookie :focus-visible {
  outline-color: var(--yt-white);
}

/* --------------------------------------------------------------------------
   Containers and sections
   -------------------------------------------------------------------------- */
.yt-container {
  width: 100%;
  max-width: var(--yt-container);
  margin-inline: auto;
  padding-inline: var(--yt-gutter);
}

.yt-container--wide {
  max-width: var(--yt-container-wide);
}

@media (min-width: 768px) {
  .yt-container--wide {
    padding-inline: 18px;
  }
}

@media (max-width: 767px) {
  .yt-container--wide {
    padding-inline: var(--yt-gutter-mobile);
  }
}

.yt-section {
  padding-block: var(--yt-section-space);
}

.yt-section--tight {
  padding-block: 64px;
}

.yt-section--bleed {
  width: 100%;
  padding-inline: 0;
}

.yt-section__head {
  margin-bottom: var(--yt-heading-gap);
}

.yt-section__title {
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-32);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-48);
}

.yt-section__sub {
  max-width: 720px;
  margin-top: var(--yt-space-3);
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-16);
  line-height: var(--yt-lh-24);
}

.yt-section__eyebrow {
  margin-bottom: var(--yt-space-3);
  color: var(--yt-red);
  font-size: var(--yt-fs-12);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-16);
  letter-spacing: var(--yt-tracking-wider);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .yt-section--tight {
    padding-block: 40px;
  }

  .yt-section__title {
    font-size: var(--yt-fs-24);
    line-height: var(--yt-lh-32);
  }
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */
.yt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--yt-space-6);
}

.yt-grid > * {
  min-width: 0;
}

.yt-grid--2,
.yt-grid--3,
.yt-grid--4,
.yt-grid--products,
.yt-grid--news {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yt-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yt-grid--4,
.yt-grid--news {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yt-grid--products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1023px) {
  .yt-grid--3,
  .yt-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yt-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yt-grid--news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .yt-grid--2,
  .yt-grid--3,
  .yt-grid--4,
  .yt-grid--products,
  .yt-grid--news {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.yt-display {
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-40);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-48);
}

.yt-page-title {
  margin: 0;
  color: var(--yt-black);
  font-size: var(--yt-fs-48);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-56);
}

.yt-page-sub {
  max-width: 720px;
  margin-top: var(--yt-space-4);
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-18);
  line-height: var(--yt-lh-28);
}

.yt-eyebrow {
  display: block;
  margin: 0 0 var(--yt-space-3);
  color: var(--yt-red);
  font-size: var(--yt-fs-12);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-16);
  letter-spacing: var(--yt-tracking-wider);
  text-transform: uppercase;
}

.yt-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-meta a {
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-meta a:hover {
  color: var(--yt-red);
}

@media (max-width: 767px) {
  .yt-display {
    font-size: var(--yt-fs-28);
    line-height: 36px;
  }

  .yt-page-title {
    font-size: var(--yt-fs-32);
    line-height: var(--yt-lh-40);
  }

  .yt-page-sub {
    font-size: var(--yt-fs-16);
    line-height: var(--yt-lh-24);
  }
}

/* --------------------------------------------------------------------------
   Long-form prose
   -------------------------------------------------------------------------- */
.yt-prose {
  max-width: var(--yt-prose-max);
  color: var(--yt-ink);
  font-size: var(--yt-fs-16);
  line-height: 1.75;
}

.yt-prose > * {
  margin: 0 0 1.25em;
}

.yt-prose > :last-child {
  margin-bottom: 0;
}

.yt-prose h2,
.yt-prose h3,
.yt-prose h4 {
  margin: 2em 0 0.6em;
  color: var(--yt-black);
  line-height: 1.3;
}

.yt-prose h2 {
  font-size: var(--yt-fs-28);
}

.yt-prose h3 {
  font-size: var(--yt-fs-20);
}

.yt-prose h4 {
  font-size: var(--yt-fs-18);
}

.yt-prose p {
  margin: 0 0 1.25em;
}

.yt-prose p:last-child {
  margin-bottom: 0;
}

.yt-prose a {
  color: var(--yt-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--yt-dur-fast) var(--yt-ease);
}

.yt-prose a:hover {
  color: var(--yt-red-dark);
}

.yt-prose ul,
.yt-prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.yt-prose ul {
  list-style: disc;
}

.yt-prose ol {
  list-style: decimal;
}

.yt-prose li {
  margin: 0 0 0.4em;
  padding-left: 0.2em;
}

.yt-prose li::marker {
  color: var(--yt-red);
}

.yt-prose blockquote {
  margin: 1.75em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--yt-red);
  color: var(--yt-gray-60);
  font-size: var(--yt-fs-18);
  line-height: 1.7;
}

.yt-prose blockquote p:last-child {
  margin-bottom: 0;
}

.yt-prose img,
.yt-prose video,
.yt-prose iframe {
  max-width: 100%;
  height: auto;
}

.yt-prose figure {
  margin: 1.75em 0;
}

.yt-prose table {
  margin: 1.5em 0;
  font-size: var(--yt-fs-14);
  line-height: var(--yt-lh-21);
}

.yt-prose th,
.yt-prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--yt-line);
  vertical-align: top;
}

.yt-prose th {
  background: var(--yt-bg-soft);
  font-weight: var(--yt-fw-bold);
}

.yt-prose code {
  padding: 2px 5px;
  background: var(--yt-bg-soft);
  font-size: 0.9em;
}

.yt-prose pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--yt-bg-soft);
}

.yt-prose pre code {
  padding: 0;
  background: transparent;
}

.yt-prose hr {
  margin: 2.5em 0;
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */
.yt-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--yt-bg-soft);
}

.yt-media img,
.yt-media video {
  width: 100%;
  height: 100%;
}

.yt-media--cover img,
.yt-media--cover video {
  object-fit: cover;
}

.yt-media--contain img,
.yt-media--contain video {
  object-fit: contain;
}

.yt-ratio {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--yt-bg-soft);
}

.yt-ratio > img,
.yt-ratio > video,
.yt-ratio > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-ratio--16x9 {
  aspect-ratio: 16 / 9;
}

.yt-ratio--4x3 {
  aspect-ratio: 4 / 3;
}

.yt-media-placeholder {
  display: block;
  width: 100%;
  min-height: 160px;
  background-color: var(--yt-bg-soft);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.04) 0,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.yt-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.yt-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--yt-z-skip);
  padding: 12px 20px;
  background: var(--yt-white);
  border: 2px solid var(--yt-red);
  color: var(--yt-ink);
  font-size: var(--yt-fs-14);
  font-weight: var(--yt-fw-bold);
  line-height: var(--yt-lh-21);
  transform: translateY(-200%);
  transition: transform var(--yt-dur-fast) var(--yt-ease);
}

.yt-skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.yt-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Scroll reveal (JS adds .yt-js; no-JS content stays visible)
   -------------------------------------------------------------------------- */
html.yt-js [data-yt-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--yt-dur) var(--yt-ease),
    transform var(--yt-dur) var(--yt-ease);
}

html.yt-js [data-yt-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.yt-js [data-yt-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Target fidelity: 1200px of content at a 1440 viewport (120px optical
   margins), while What's New keeps its 1440 full-bleed frame with 12px
   outer gutters. */
@media (min-width: 1200px) {
  .yt-container {
    max-width: 1200px;
    padding-inline: 0;
  }

  .yt-container--wide {
    max-width: 1440px;
    padding-inline: 12px;
  }
}

/* YT case grid */
.yt-case-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:24px 0}
.yt-case-card{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.yt-case-card:hover{border-color:#165dfc;box-shadow:0 6px 20px rgba(22,93,252,.12)}
.yt-case-card strong{font-size:16px;color:#0f172a}
.yt-case-card span{font-size:13px;color:#64748b}
