/* ==========================================================================
   Core block styles: make the block editor's building blocks speak the
   design system. Base button look is shared with .sk-button (base.css).
   ========================================================================== */

.sk-site .wp-block-buttons {
  gap: var(--space-5);
  align-items: center;
}

/* Outline: secondary action with weight. */
.sk-site .wp-block-button.is-style-outline > .wp-block-button__link {
  --_bg: transparent;
  --_fg: var(--text-primary);
  box-shadow: inset 0 0 0 var(--stroke-hairline) var(--button-secondary-border);
}
.sk-site .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  --_bg: var(--surface-sunken);
}

/* Text link: the quiet secondary action. Underline draws like the route. */
.sk-site .wp-block-button.is-style-text > .wp-block-button__link {
  --_bg: transparent;
  --_fg: var(--text-primary);
  min-height: var(--size-touch);
  padding-inline: 0;
  border-radius: 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% var(--stroke-hairline);
  background-position: 0 calc(100% - 0.6rem);
  transition: background-size var(--duration-fast) var(--ease-smooth-out), color var(--duration-quick) var(--ease-out);
}
.sk-site .wp-block-button.is-style-text > .wp-block-button__link:hover {
  --_bg: transparent;
  --_fg: var(--text-link-hover);
  background-size: 100% var(--stroke-route);
}
.sk-site .wp-block-button.is-style-text > .wp-block-button__link:active {
  transform: none;
}
.sk-site .wp-block-button.is-style-text > .wp-block-button__link:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ==========================================================================
   Reading layer: pages written in core blocks (Platform, the app pages,
   Security, Support, legal). A single left-aligned column at prose measure,
   with a clear heading rhythm. Designed pages (.sk-designed) opt out.
   ========================================================================== */

body.sk-prose .site-content { overflow-x: clip; }
body.sk-prose.sk-site #primary.content-area { margin-block: 0; padding-block: 0; } /* Astra's 60px would sit under the header */
body.sk-prose .site-content > .ast-container {
  max-width: var(--width-page);
  padding-inline: var(--gutter);
}
/* Night title band, full-bleed behind the page title. */
body.sk-prose .entry-header {
  position: relative;
  isolation: isolate;
  margin: 0 0 var(--space-8);
  padding: calc(var(--header-height) + clamp(3.5rem, 2rem + 6vw, 7rem)) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
}
body.sk-prose .entry-header::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(55% 90% at 15% 0%, rgb(46 123 255 / 0.32), transparent 70%),
    var(--surface-night); /* (no glow at the foot: the page below is night too, and its edge would show) */
}
body.sk-prose .entry-header::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(50% 80% at 20% 30%, #000, transparent 75%);
  mask: radial-gradient(50% 80% at 20% 30%, #000, transparent 75%);
}
/* The light waves, when a prose page has them: full-bleed like the band, and
   the band a little taller so they have room. */
body.sk-prose .entry-header > .skx-lw { inset: 0 calc(50% - 50vw); }
/* As one page-long ribbon, the band's slice reaches down over the gap below it to the body's. */
body.sk-prose .entry-header > .skx-lw.skx-lw--slice { bottom: calc(-1 * var(--space-8)) !important; }
/* The day-tone waves on white areas: the prose body (full-bleed, behind the
   text) and any light section, each its own stacking context. */
body.sk-prose .entry-content:has(> .skx-lw) { position: relative; isolation: isolate; }
/* (The text column starts at the centred container's padding, not the middle
   of the page: reach back from there to the page's left edge.) */
body.sk-prose .entry-content > .skx-lw {
  inset: 0 auto auto calc((min(100vw, var(--width-page)) - 100vw) / 2 - var(--gutter));
  width: 100vw;
  max-width: none !important; /* the reading column's width limit is for text */
}
.sk-site .sk-section:has(> .skx-lw) { position: relative; isolation: isolate; }
body.sk-prose .entry-header:has(> .skx-lw) { min-height: min(70svh, 40rem); display: flex; flex-direction: column; justify-content: center; }
/* (header.entry-header: newer Astra sizes titles with header.entry-header:not(…) .entry-title.) */
body.sk-prose header.entry-header .entry-title,
body.sk-prose .entry-title {
  max-width: 16ch;
  font-size: var(--text-h1);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  color: var(--text-on-night);
}

/* Content headings carry a short brand accent. */
.sk-prose .entry-content > h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-block-end: var(--space-5);
  border-radius: 3px;
  background: var(--gradient-brand);
}
/* Prose lists become checkmarks. */
.sk-prose .entry-content > ul:not([role="list"]) {
  list-style: none;
  padding-inline-start: 0;
}
.sk-prose .entry-content > ul:not([role="list"]) > li {
  position: relative;
  padding-inline-start: 2rem;
}
.sk-prose .entry-content > ul:not([role="list"]) > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgb(46 123 255 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231463F0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.sk-prose .entry-content {
  max-width: var(--measure-prose);
  padding-block-end: var(--space-section);
}
.sk-prose .entry-content > * {
  margin-block: 0;
}
.sk-prose .entry-content > * + * {
  margin-block-start: var(--space-4);
}
.sk-prose .entry-content > :first-child {
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--text-secondary);
}
.sk-prose .entry-content > h2 {
  margin-block-start: var(--space-8);
  font-size: var(--text-h2);
}
.sk-prose .entry-content > h3 {
  margin-block-start: var(--space-6);
  font-size: var(--text-h4);
  letter-spacing: var(--tracking-tight);
}
.sk-prose .entry-content > :is(h2, h3) + * {
  margin-block-start: var(--space-3);
}

/* Prose lists only. Component lists (an sk-* class, or role="list") and lists
   inside product scenes opt out. */
.sk-site .entry-content :is(ul, ol):not([role="list"], [class*="sk-"], .skx-scene *, .skx-eh *) {
  padding-inline-start: 1.25em;
  margin-inline: 0;
}
.sk-site .entry-content :is(ul, ol):not([role="list"], [class*="sk-"], .skx-scene *, .skx-eh *) > li + li {
  margin-block-start: var(--space-2);
}
.sk-site .entry-content :is(ul, ol):not([role="list"], [class*="sk-"], .skx-scene *, .skx-eh *) > li::marker {
  color: var(--text-tertiary);
}

/* Tables: rules encode rows; no boxed cells. */
.sk-site .wp-block-table {
  margin-inline: 0;
  overflow-x: auto;
}
.sk-site .wp-block-table table {
  width: 100%;
  border: 0; /* Astra boxes tables; rows are enough */
  border-collapse: collapse;
  font-size: var(--text-ui);
  line-height: var(--leading-snug);
}
.sk-site .wp-block-table :is(th, td) {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border: 0;
  border-block-end: var(--stroke-hairline) solid var(--border-subtle);
  text-align: start;
  vertical-align: top;
}
.sk-site .wp-block-table th {
  color: var(--text-primary);
  font-weight: var(--weight-strong);
  border-block-end-color: var(--border-strong);
}
.sk-site .wp-block-table td:first-child {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}
@media (min-width: 64em) {
  /* Tables need more room than prose. */
  .sk-prose .entry-content > .wp-block-table {
    width: min(100vw - 2 * var(--gutter), var(--width-wide));
  }
}
