/* RSA Shared Base — resets + shared pieces (eyebrow, pill, buttons). Prefix: rsa- */
[class*="rsa-"], [class*="rsa-"]::before, [class*="rsa-"]::after, [class*="rsa-"] * { box-sizing: border-box; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--wp--preset--color--cyan); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--heading); }
html { scroll-padding-top: calc(var(--wp--custom--header-height) + 24px); }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }

/* Remove theme blockGap stripes between full-bleed frame pieces and sections */
.wp-site-blocks > * { margin-block-start: 0; }
.entry-content > [class*="rsa-"], .wp-block-post-content > [class*="rsa-"] { margin-block-start: 0; }
.rsa-main { margin-block-start: 0; }

/* Shared: eyebrow + pill + buttons (used by section blocks) */
.rsa-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--x-small);
  letter-spacing: var(--wp--custom--tracking-wide); text-transform: uppercase; color: var(--wp--preset--color--cyan);
}
.rsa-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.rsa-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--wp--custom--radius-pill);
  background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-light) 35%, transparent);
  color: #bfdbfe; font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase;
}
.rsa-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--green); flex: none; animation: rsa-pulse 2s infinite; }
@keyframes rsa-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--green) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.rsa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: var(--wp--custom--radius-btn); border: 1px solid transparent; text-decoration: none;
  font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 0.95rem; line-height: 1.4; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.rsa-btn:hover { transform: translateY(-2px); }
.rsa-btn svg { width: 18px; height: 18px; flex: none; }
.rsa-btn--primary { background: var(--wp--preset--gradient--primary); color: var(--wp--preset--color--heading); box-shadow: var(--wp--custom--glow); }
.rsa-btn--primary:hover { color: var(--wp--preset--color--heading); }
.rsa-btn--ghost { background: color-mix(in srgb, var(--wp--preset--color--heading) 4%, transparent); border-color: var(--wp--custom--line-soft); color: var(--wp--preset--color--heading); }
.rsa-btn--ghost:hover { border-color: var(--wp--preset--color--teal); background: color-mix(in srgb, var(--wp--preset--color--teal) 8%, transparent); color: var(--wp--preset--color--heading); }
.rsa-grad-text { background: var(--wp--preset--gradient--headline); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  [class*="rsa-"], [class*="rsa-"] * { animation: none !important; transition: none !important; }
}

/* ---------- Shared section frame (used by every rsa-section block) ---------- */
.rsa-section { position: relative; padding: var(--wp--preset--spacing--80) 0; color: var(--wp--preset--color--contrast); }
.rsa-section.alignfull { margin-top: 0; margin-bottom: 0; }
.rsa-section--base { background: var(--wp--preset--color--base); }
.rsa-section--alt { background: var(--wp--preset--color--base-2); }
.rsa-container {
  width: 100%; max-width: var(--wp--style--global--wide-size); margin: 0 auto;
  padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
}
.rsa-section h2, .rsa-section h3 { margin-top: 0; }

.rsa-head { max-width: 720px; margin-bottom: 48px; }
.rsa-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rsa-head .rsa-head__title { margin: 0 0 .5em; font-size: var(--wp--preset--font-size--xx-large); }
.rsa-head__lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.rsa-head__lead p { margin: 0 0 .6em; }
.rsa-head__lead p:last-child { margin: 0; }
.rsa-head__lead strong, .rsa-head__lead b { color: var(--wp--preset--color--heading); }

.rsa-card {
  position: relative; display: block; padding: 28px; border-radius: var(--wp--custom--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--surface-2) 75%, transparent), color-mix(in srgb, var(--wp--preset--color--surface) 75%, transparent));
  border: 1px solid var(--wp--custom--line); color: var(--wp--preset--color--contrast); text-decoration: none;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.rsa-card:hover { border-color: color-mix(in srgb, var(--wp--preset--color--cyan) 45%, transparent); box-shadow: 0 0 40px -12px color-mix(in srgb, var(--wp--preset--color--teal) 35%, transparent); }
a.rsa-card:hover { color: var(--wp--preset--color--contrast); }
.rsa-card .rsa-card__title { margin: 0 0 10px; font-size: 1.2rem; font-weight: 600; color: var(--wp--preset--color--heading); }
.rsa-card .rsa-card__text { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.95rem; }

.rsa-ic {
  width: 48px; height: 48px; flex: none; border-radius: var(--wp--custom--radius-btn); display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent); color: var(--wp--preset--color--accent-light);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-light) 25%, transparent);
}
.rsa-ic svg { width: 24px; height: 24px; }
.rsa-ic--green { background: color-mix(in srgb, var(--wp--preset--color--green) 14%, transparent); color: var(--wp--preset--color--green); border-color: color-mix(in srgb, var(--wp--preset--color--green) 30%, transparent); }
.rsa-ic--cyan { background: color-mix(in srgb, var(--wp--preset--color--teal) 14%, transparent); color: var(--wp--preset--color--cyan); border-color: color-mix(in srgb, var(--wp--preset--color--teal) 30%, transparent); }
.rsa-ic--amber { background: color-mix(in srgb, var(--wp--preset--color--amber) 14%, transparent); color: var(--wp--preset--color--amber); border-color: color-mix(in srgb, var(--wp--preset--color--amber) 30%, transparent); }

.rsa-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--wp--custom--radius-pill);
  font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; line-height: 1.5;
  background: color-mix(in srgb, var(--wp--preset--color--heading) 5%, transparent); border: 1px solid var(--wp--custom--line-soft); color: var(--wp--preset--color--muted);
}
.rsa-tag--green { color: var(--wp--preset--color--green); border-color: color-mix(in srgb, var(--wp--preset--color--green) 35%, transparent); background: color-mix(in srgb, var(--wp--preset--color--green) 8%, transparent); }
.rsa-tag--cyan { color: var(--wp--preset--color--cyan); border-color: color-mix(in srgb, var(--wp--preset--color--teal) 35%, transparent); background: color-mix(in srgb, var(--wp--preset--color--teal) 8%, transparent); }
.rsa-tag--amber { color: var(--wp--preset--color--amber); border-color: color-mix(in srgb, var(--wp--preset--color--amber) 35%, transparent); background: color-mix(in srgb, var(--wp--preset--color--amber) 8%, transparent); }

.rsa-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--wp--preset--color--cyan); font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: .9rem; transition: gap .2s; }
.rsa-card:hover .rsa-link { gap: 10px; }

.rsa-checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.rsa-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--wp--preset--color--contrast); }
.rsa-checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: color-mix(in srgb, var(--wp--preset--color--green) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--green) 35%, transparent);
}
.rsa-checklist li b { display: block; color: var(--wp--preset--color--heading); }
.rsa-checklist li span { display: block; color: var(--wp--preset--color--muted); }

.rsa-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.rsa-split--top { align-items: start; }
.rsa-split--flip > :first-child { order: 2; }
.rsa-split .rsa-head { margin-bottom: 0; }

.rsa-panel { padding: 32px; border-radius: 20px; background: color-mix(in srgb, var(--wp--preset--color--surface) 85%, transparent); border: 1px solid var(--wp--custom--line); }

.rsa-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--wp--preset--color--heading);
  background: linear-gradient(135deg, var(--wp--preset--color--accent), var(--wp--preset--color--teal));
}

.rsa-btn--light { background: var(--wp--preset--color--heading); color: var(--wp--preset--color--base-2); }
.rsa-btn--light:hover { color: var(--wp--preset--color--base-2); }

/* Scroll reveal — only hidden once the front-end script has marked <html> (never in the editor) */
.rsa-js .rsa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.rsa-js .rsa-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .rsa-split { grid-template-columns: 1fr; gap: 36px; }
  .rsa-split--flip > :first-child { order: 0; }
}
@media (max-width: 600px) {
  .rsa-panel { padding: 22px; }
}

/* Shared table (density matrix, spec tables) */
.rsa-table-wrap { overflow-x: auto; border-radius: var(--wp--custom--radius); border: 1px solid var(--wp--custom--line); background: color-mix(in srgb, var(--wp--preset--color--surface) 60%, transparent); }
.rsa-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rsa-table th, .rsa-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--wp--custom--line-soft); }
.rsa-table tr:last-child td { border-bottom: 0; }
.rsa-table th { font-family: var(--wp--preset--font-family--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.rsa-table td b { color: var(--wp--preset--color--heading); }
