/* ------------------------------------------------------------------ *
 * Standalone stylesheet.
 *
 * Hand-written rather than built, so the deployment needs no Node, no
 * bundler and no build step — upload and it runs. The design tokens are
 * the same ones the main site uses, so the two look identical.
 * ------------------------------------------------------------------ */

/* ---- Tokens ------------------------------------------------------ */

.sdl-site {
  color-scheme: light;

  --brand-50: oklch(0.97 0.017 275);
  --brand-100: oklch(0.94 0.035 275);
  --brand-200: oklch(0.89 0.062 275);
  --brand-300: oklch(0.82 0.098 275);
  --brand-400: oklch(0.73 0.14 275);
  --brand-500: oklch(0.64 0.176 275);
  --brand-600: oklch(0.56 0.19 275);
  --brand-700: oklch(0.48 0.172 275);
  --brand-800: oklch(0.4 0.14 275);

  --accent-300: oklch(0.87 0.106 197);
  --accent-500: oklch(0.72 0.132 197);
  --accent-600: oklch(0.63 0.122 197);

  --ink-50: oklch(0.985 0.002 275);
  --ink-100: oklch(0.965 0.003 275);
  --ink-200: oklch(0.925 0.005 275);
  --ink-300: oklch(0.86 0.007 275);
  --ink-400: oklch(0.7 0.011 275);
  --ink-600: oklch(0.47 0.014 275);
  --ink-800: oklch(0.27 0.013 275);
  --ink-900: oklch(0.2 0.012 275);

  --page-bg: var(--ink-50);
  --page-fg: var(--ink-900);
  --card-bg: #ffffff;
  --card-border: var(--ink-200);
  --muted-fg: var(--ink-600);
  --hairline: color-mix(in oklab, var(--ink-900) 9%, transparent);

  --ok-fg: oklch(0.5 0.13 155);
  --bad-fg: oklch(0.52 0.17 20);

  /* Format-chip labels in the hero illustration. Held as variables so the
     inline SVG recolours with the theme. */
  --chip-1: var(--brand-700);
  --chip-2: var(--accent-600);
  --chip-3: var(--ink-600);
  --chip-4: var(--brand-600);

  --shadow-soft: 0 1px 2px rgb(15 15 30 / 0.04), 0 8px 24px -12px rgb(15 15 30 / 0.12);
  --shadow-lift: 0 2px 4px rgb(15 15 30 / 0.05), 0 18px 44px -20px rgb(15 15 30 / 0.22);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

.dark .sdl-site {
  color-scheme: dark;
  --page-bg: oklch(0.17 0.014 275);
  --page-fg: oklch(0.96 0.004 275);
  --card-bg: oklch(0.215 0.016 275);
  --card-border: oklch(0.31 0.018 275);
  --muted-fg: oklch(0.75 0.011 275);
  --hairline: color-mix(in oklab, #ffffff 12%, transparent);

  --ok-fg: oklch(0.84 0.11 155);
  --bad-fg: oklch(0.79 0.12 20);

  --chip-1: var(--brand-300);
  --chip-2: var(--accent-300);
  --chip-3: var(--ink-300);
  --chip-4: var(--brand-400);
}

/* ---- Reset ------------------------------------------------------- */

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

.sdl-site * {
  margin: 0;
}

.sdl-site {
  -webkit-text-size-adjust: 100%;
}

.sdl-site {
  min-height: 100dvh;
  background-color: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sdl-site img,
.sdl-site svg {
  display: block;
  max-width: 100%;
}

.sdl-site button,
.sdl-site input {
  font: inherit;
  color: inherit;
}

.sdl-site h1,
.sdl-site h2,
.sdl-site h3,
.sdl-site h4 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sdl-site p {
  text-wrap: pretty;
}

.sdl-site a {
  color: var(--brand-700);
}

.dark .sdl-site a {
  color: var(--brand-300);
}

.sdl-site :focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.dark .sdl-site :focus-visible {
  outline-color: var(--brand-300);
}

.sdl-site ::selection {
  background: color-mix(in oklab, var(--brand-500) 28%, transparent);
}

/* Visible only to screen readers, until focused. */
.sdl-site .skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.sdl-site .skip-link:not(:focus):not(:focus-within),
.sdl-site .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- Layout ------------------------------------------------------ */

.sdl-site .wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sdl-site .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 2.5rem 1rem;
}

@media (min-width: 640px){
  .sdl-site .hero {
    padding-block: 4rem 1rem;
  }
}

/* Ambient glow. Pure CSS, so no image request. */
.sdl-site .hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: min(620px, 70vh);
  background:
    radial-gradient(
      42% 46% at 22% 28%,
      color-mix(in oklab, var(--brand-500) 22%, transparent),
      transparent 70%
    ),
    radial-gradient(
      38% 42% at 78% 18%,
      color-mix(in oklab, var(--accent-500) 18%, transparent),
      transparent 72%
    );
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.sdl-site .grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.sdl-site .hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px){
  .sdl-site .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.sdl-site .hero-art {
  display: none;
}

@media (min-width: 1024px){
  .sdl-site .hero-art {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
  }
}

/* ---- Theme toggle ------------------------------------------------ */

.sdl-site .theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: color-mix(in oklab, var(--card-bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sdl-site .theme-toggle:hover {
  background: var(--card-bg);
}

/* Exactly one of the two glyphs is shown, so the control reads as a state
   rather than a menu. */
.sdl-site .theme-toggle .icon-moon {
  display: none;
}

.dark .sdl-site .theme-toggle .icon-sun {
  display: none;
}

.dark .sdl-site .theme-toggle .icon-moon {
  display: block;
}

/* ---- Typography -------------------------------------------------- */

.sdl-site .eyebrow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-100);
  color: var(--brand-800);
  font-size: 0.75rem;
  font-weight: 500;
}

.dark .sdl-site .eyebrow {
  background: color-mix(in oklab, var(--brand-500) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-500) 20%, transparent);
  color: var(--brand-200);
}

.sdl-site .eyebrow::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--brand-400) 26%, transparent),
    transparent
  );
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.sdl-site h1 {
  font-size: 2.05rem;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (min-width: 640px){
  .sdl-site h1 {
    font-size: 3.1rem;
  }
}

@media (min-width: 1024px){
  .sdl-site h1 {
    font-size: 3.6rem;
  }
}

/* Two block-level spans rather than one wrapping string, so the line break
   is a decision instead of an accident at every width. */
.sdl-site h1 span {
  display: block;
}

.sdl-site .gradient-text {
  margin-top: 0.25rem;
  background-image: linear-gradient(
    100deg,
    var(--brand-600),
    var(--brand-500) 30%,
    var(--accent-600) 55%,
    var(--brand-600) 85%
  );
  /* Oversized so the gradient has somewhere to travel. Animating
     background-position costs no layout and no text repaint. */
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-drift 11s ease-in-out infinite;
}

.dark .sdl-site .gradient-text {
  background-image: linear-gradient(
    100deg,
    var(--brand-300),
    var(--brand-400) 30%,
    var(--accent-300) 55%,
    var(--brand-300) 85%
  );
}

.sdl-site .lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

@media (min-width: 640px){
  .sdl-site .lede {
    font-size: 1.125rem;
  }
}

.sdl-site .muted {
  color: var(--muted-fg);
}

/* ---- Tool card --------------------------------------------------- */

.sdl-site .tool {
  margin-top: 2rem;
  scroll-margin-top: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: color-mix(in oklab, var(--card-bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-lift);
  padding: 1rem;
}

@media (min-width: 640px){
  .sdl-site .tool {
    padding: 1.5rem;
  }
}

.sdl-site .field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px){
  .sdl-site .field {
    flex-direction: row;
  }
}

.sdl-site .input-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.sdl-site .input-shell svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted-fg);
  pointer-events: none;
}

.sdl-site input[type='url'] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 5.5rem 0.75rem 2.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sdl-site input[type='url']::placeholder {
  color: var(--muted-fg);
}

.sdl-site input[type='url']:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-500) 22%, transparent);
}

.sdl-site input[type='url'][aria-invalid='true'] {
  border-color: var(--bad-fg);
}

.sdl-site .input-actions {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sdl-site .chip-btn {
  border: 0;
  background: transparent;
  border-radius: 0.55rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sdl-site .chip-btn:hover {
  background: var(--ink-100);
  color: var(--page-fg);
}

.dark .sdl-site .chip-btn:hover {
  background: color-mix(in oklab, var(--ink-800) 60%, transparent);
}

/* ---- Buttons ----------------------------------------------------- */

.sdl-site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding-inline: 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out-soft), background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.sdl-site .btn:active {
  transform: translateY(1px);
}

.sdl-site .btn[disabled],
.sdl-site .btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sdl-site .btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.sdl-site .btn-primary:hover:not([disabled]) {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
}

.sdl-site .btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--page-fg);
}

.sdl-site .btn-ghost:hover {
  background: var(--ink-100);
}

.dark .sdl-site .btn-ghost:hover {
  background: color-mix(in oklab, var(--ink-800) 60%, transparent);
}

.sdl-site .btn-block {
  width: 100%;
}

@media (min-width: 640px){
  .sdl-site .btn-auto {
    width: auto;
  }
}

/* ---- Status lines ------------------------------------------------ */

.sdl-site .status {
  min-height: 1.5rem;
}

.sdl-site .status p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.sdl-site .status .ok {
  color: var(--ok-fg);
}

.sdl-site .status .bad {
  color: var(--bad-fg);
}

.sdl-site .hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-fg);
}

.sdl-site .hint svg {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.15rem;
}

/* ---- Processing stages ------------------------------------------- */

.sdl-site .stages {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.sdl-site .stage {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.sdl-site .stage[data-state='active'] {
  color: var(--page-fg);
  font-weight: 500;
}

.sdl-site .stage[data-state='done'] {
  color: var(--ok-fg);
}

.sdl-site .stage .dot {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.sdl-site .stage[data-state='active'] .dot {
  border-color: var(--brand-500);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.sdl-site .stage[data-state='done'] .dot {
  background: currentColor;
}

/* ---- Notices ----------------------------------------------------- */

.sdl-site .notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--bad-fg) 35%, transparent);
  background: color-mix(in oklab, var(--bad-fg) 8%, transparent);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sdl-site .notice svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: var(--bad-fg);
}

/* ---- Result card ------------------------------------------------- */

.sdl-site .result {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  animation: rise 0.42s var(--ease-out-soft) both;
}

@media (min-width: 640px){
  .sdl-site .result {
    padding: 1.5rem;
  }
}

.sdl-site .result-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px){
  .sdl-site .result-head {
    flex-direction: row;
  }
}

/* Fixed box so nothing shifts while the cover loads. */
.sdl-site .cover {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 135px;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--ink-100);
  object-fit: cover;
  overflow: hidden;
  color: var(--ink-400);
}

.dark .sdl-site .cover {
  background: var(--ink-800);
}

.sdl-site .result-title {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sdl-site .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
}

.sdl-site .facts dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}

.sdl-site .facts dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.sdl-site .result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px){
  .sdl-site .result-actions {
    flex-direction: row;
  }
}

/* ---- Preview ----------------------------------------------------- */

.sdl-site .preview {
  margin-top: 1.5rem;
}

.sdl-site .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sdl-site .preview-head h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Fixed height reserves the space before the frame loads. */
.sdl-site .frame {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 400px;
  max-height: 820px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.sdl-site .frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Content sections -------------------------------------------- */

.sdl-site .section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--card-border);
}

.sdl-site .section h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

@media (min-width: 640px){
  .sdl-site .section h2 {
    font-size: 2rem;
  }
}

.sdl-site .section > .wrap > p {
  margin-top: 0.75rem;
  max-width: 44rem;
  color: var(--muted-fg);
}

.sdl-site .cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.sdl-site .card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.sdl-site .card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.sdl-site .card h3 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--brand-600);
}

.dark .sdl-site .card h3 svg {
  color: var(--brand-300);
}

.sdl-site .card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-fg);
}

.sdl-site .steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.sdl-site .steps li {
  counter-increment: step;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.sdl-site .steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 700;
}

.dark .sdl-site .steps li::before {
  background: color-mix(in oklab, var(--brand-500) 16%, transparent);
  color: var(--brand-300);
}

.sdl-site .steps h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.sdl-site .steps p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-fg);
}

.sdl-site details {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.sdl-site details + details {
  margin-top: 0.75rem;
}

.sdl-site summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style-position: outside;
}

.sdl-site details p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-fg);
}

.sdl-site .faq-list {
  margin-top: 2rem;
}

/* ---- Content pages ----------------------------------------------- */

/* The first section on an inner page sits under the floating theme
   toggle, so it needs clearance the home page's hero already has. */
.sdl-site .section-first {
  padding-top: 2rem;
  border-top: 0;
}

@media (min-width: 640px){
  .sdl-site .section-first {
    padding-top: 3rem;
  }
}

.sdl-site .backlink {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.sdl-site .backlink a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  text-decoration: none;
}

.sdl-site .backlink a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sdl-site .page-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.sdl-site .page-head h1 {
  font-size: 2rem;
}

@media (min-width: 640px){
  .sdl-site .page-head h1 {
    font-size: 2.75rem;
  }
}

.sdl-site .page-head .lede {
  margin-top: 1rem;
}

.sdl-site .meta {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.sdl-site .more {
  margin-top: 1.75rem;
  font-size: 0.9rem;
}

/* Long-form article body. Constrained to a comfortable measure — around
   70 characters — because full-width paragraphs are genuinely hard to
   read. */
.sdl-site .prose {
  max-width: 46rem;
}

.sdl-site .prose h2 {
  margin-top: 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

@media (min-width: 640px){
  .sdl-site .prose h2 {
    font-size: 1.5rem;
  }
}

.sdl-site .prose h3 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.sdl-site .prose p,
.sdl-site .prose ul,
.sdl-site .prose ol {
  margin-top: 1rem;
  line-height: 1.75;
  color: var(--muted-fg);
}

.sdl-site .prose ul,
.sdl-site .prose ol {
  padding-left: 1.35rem;
}

.sdl-site .prose li {
  margin-top: 0.5rem;
}

.sdl-site .prose li::marker {
  color: var(--brand-500);
}

.sdl-site .prose strong {
  color: var(--page-fg);
  font-weight: 600;
}

.sdl-site .prose a {
  font-weight: 500;
  text-underline-offset: 3px;
}

.sdl-site .prose a:hover {
  text-decoration: underline;
}

.sdl-site .prose code,
.sdl-site code {
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  background: var(--ink-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.dark .sdl-site .prose code,
.dark .sdl-site code {
  background: color-mix(in oklab, var(--ink-800) 70%, transparent);
}

.sdl-site .prose pre {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  /* Wide code must scroll inside its own box rather than pushing the
     page sideways. */
  overflow-x: auto;
}

.sdl-site .prose pre code {
  padding: 0;
  background: none;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre;
}

.sdl-site kbd {
  padding: 0.15em 0.45em;
  border: 1px solid var(--card-border);
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  background: var(--card-bg);
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
}

.sdl-site .email-box {
  margin: 1.5rem 0;
}

/* ---- Tables ------------------------------------------------------- */

.sdl-site .table-scroll {
  margin-top: 2rem;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
}

.sdl-site .link-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 0.875rem;
  /* Keeps the columns readable rather than letting the notes column
     crush the others on a narrow screen. */
  min-width: 44rem;
}

.sdl-site .prose .link-table {
  margin-top: 1.5rem;
  min-width: 0;
}

.sdl-site .link-table th,
.sdl-site .link-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--card-border);
}

.sdl-site .link-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  background: color-mix(in oklab, var(--ink-100) 60%, transparent);
}

.dark .sdl-site .link-table thead th {
  background: color-mix(in oklab, var(--ink-800) 45%, transparent);
}

.sdl-site .link-table tbody tr:last-child th,
.sdl-site .link-table tbody tr:last-child td {
  border-bottom: 0;
}

.sdl-site .link-table td {
  color: var(--muted-fg);
}

.sdl-site .link-table code {
  font-size: 0.8rem;
}

.sdl-site .pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sdl-site .pill.ok {
  background: color-mix(in oklab, var(--ok-fg) 14%, transparent);
  color: var(--ok-fg);
}

.sdl-site .pill.warn {
  background: color-mix(in oklab, oklch(0.65 0.14 75) 16%, transparent);
  color: oklch(0.48 0.13 75);
}

.dark .sdl-site .pill.warn {
  color: oklch(0.83 0.12 75);
}

.sdl-site .pill.bad {
  background: color-mix(in oklab, var(--bad-fg) 14%, transparent);
  color: var(--bad-fg);
}

/* ---- Cards that are links ---------------------------------------- */

.sdl-site .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s var(--ease-out-soft),
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.sdl-site .card-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  box-shadow: var(--shadow-soft);
}

.sdl-site .card-link h3 {
  color: var(--page-fg);
}

.sdl-site .card-link .meta {
  margin-top: 0.75rem;
}

.sdl-site .card p + p {
  margin-top: 0.6rem;
}

.sdl-site .card strong {
  color: var(--page-fg);
}

/* Numbered steps used on the how-to page, where the list is the content
   rather than a supporting grid. */
.sdl-site .steps-numbered {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

/* ---- Site footer (only when Layout::SHOW_FOOTER is on) ------------ */

.sdl-site .site-footer {
  border-top: 1px solid var(--card-border);
  margin-top: 2rem;
}

.sdl-site .footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.sdl-site .footer-grid h2 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sdl-site .footer-grid ul {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.sdl-site .footer-grid li + li {
  margin-top: 0.6rem;
}

.sdl-site .footer-grid a {
  color: var(--muted-fg);
  font-size: 0.875rem;
  text-decoration: none;
}

.sdl-site .footer-grid a:hover {
  color: var(--page-fg);
}

.sdl-site .footer-legal {
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
}

.sdl-site .footer-legal p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted-fg);
}

.sdl-site .footer-legal p + p {
  margin-top: 1rem;
}

/* ---- Motion ------------------------------------------------------ */

@keyframes gradient-drift{
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* Drift and tilt on two axes rather than a straight bob, which reads as
   depth instead of a loop. Transform-only, so it stays on the compositor. */
@keyframes doc-drift-3d{
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  }
  33% {
    transform: translate3d(0, -12px, 0) rotateX(2.4deg) rotateY(-3.2deg);
  }
  66% {
    transform: translate3d(0, -5px, 0) rotateX(-1.6deg) rotateY(2.4deg);
  }
}

/* The arrow travels down, fades at the tray, and re-enters from the top —
   the familiar "downloading" loop rather than a decorative bob. */
@keyframes dl-arrow-travel{
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  18% {
    transform: translateY(-2px);
    opacity: 1;
  }
  58% {
    transform: translateY(3.5px);
    opacity: 1;
  }
  72%,
  100% {
    transform: translateY(7px);
    opacity: 0;
  }
}

/* Offset from the arrow so the two do not pulse in lockstep — that is what
   makes a loop look mechanical. */
@keyframes dl-halo-pulse{
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.06;
  }
}

/* The disc lifts and settles slightly out of phase with the sheet beneath
   it. That parallax is what sells the depth. */
@keyframes dl-disc-bob{
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes dl-gloss-drift{
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate(3px, 2px);
    opacity: 0.3;
  }
}

@keyframes sheen{
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  55%,
  100% {
    transform: translateX(320%) skewX(-18deg);
  }
}

@keyframes spin{
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise{
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wrapper supplies the perspective; the child does the tilting. */
.sdl-site .scene-3d {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.sdl-site .animate-doc-3d {
  animation: doc-drift-3d 12s var(--ease-out-soft) infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

/* SVG needs fill-box, or a transform origin resolves against the whole
   canvas and the disc scales from the corner instead of its own centre. */
.sdl-site .dl-disc {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-disc-bob 3.6s var(--ease-out-soft) infinite;
  will-change: transform;
}

.sdl-site .dl-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-halo-pulse 2.9s ease-in-out infinite;
  will-change: transform, opacity;
}

.sdl-site .dl-arrow {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-arrow-travel 2.2s cubic-bezier(0.45, 0, 0.35, 1) infinite;
  will-change: transform, opacity;
}

.sdl-site .dl-gloss {
  transform-box: fill-box;
  transform-origin: center;
  animation: dl-gloss-drift 3.6s var(--ease-out-soft) infinite;
}

.sdl-site .spin {
  animation: spin 0.7s linear infinite;
}

.sdl-site .hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce){
  .sdl-site *,
.sdl-site *::before,
.sdl-site *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- WordPress-contained site integration ----------------------- */

html:has(body .sdl-site) {
  margin-top: 0 !important;
}

body:has(.sdl-site) #wpadminbar {
  display: none !important;
}

body:has(.sdl-site) main#wp--skip-link--target > .wp-block-group:first-child {
  display: none !important;
}

body:has(.sdl-site) {
  overflow-x: clip;
}

body:has(.sdl-site) main#wp--skip-link--target,
body:has(.sdl-site) .wp-block-post-content,
body:has(.sdl-site) .entry-content {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
}

body:has(.sdl-site) .wp-block-post-content > .sdl-site,
body:has(.sdl-site) .entry-content > .sdl-site {
	width: 100% !important;
	max-width: none !important;
  margin: 0 !important;
}

.sdl-site {
  width: 100% !important;
	max-width: none !important;
  min-height: 100dvh;
  color: var(--page-fg);
  background: var(--page-bg);
  font-family: var(--font-sans);
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .sdl-site .wrap {
    max-width: 1440px;
    padding-inline: clamp(2rem, 4vw, 5rem);
  }
}

.sdl-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--page-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.admin-bar .sdl-site-header {
  top: 32px;
}

.sdl-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}

.sdl-site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;
  color: var(--page-fg);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sdl-site-brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  box-shadow: 0 8px 22px -12px var(--brand-700);
}

.sdl-site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sdl-site-nav::-webkit-scrollbar {
  display: none;
}

.sdl-site-nav a {
  flex: 0 0 auto;
  color: var(--muted-fg);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.sdl-site-nav a:hover {
  color: var(--brand-700);
}

.sdl-site-main {
  display: block;
  min-height: 60vh;
}

.sdl-reference-tool {
  width: 100%;
  margin-top: 1.75rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  background: color-mix(in oklab, var(--card-bg) 96%, var(--brand-50));
  box-shadow: var(--shadow-lift);
}

.sdl-reference-tool .sdl-label {
  color: var(--page-fg);
}

.sdl-reference-tool .sdl-legal {
  color: var(--muted-fg);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 782px) {
  .admin-bar .sdl-site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .sdl-site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 0.8rem;
  }

  .sdl-site-nav {
    width: 100%;
    padding-bottom: 0.1rem;
  }
}
