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

:root {
  --blue-light: #00aeef;
  --blue-dark: #2b3990;
  --orange: #f15a29;
  --bg: #0a0d1a;
}

body {
  background-color: var(--bg);
  font-family: sans-serif;
  position: relative;
}

/* Subtle grid background — fixed to cover the viewport regardless of body height */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow — fixed and centered in the viewport */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 174, 239, 0.07) 0%,
    rgba(43, 57, 144, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero centering wrapper.
   In Bricks: assign the `hero-center` class to the Section (or Container)
   that holds the logo, divider, and tagline. Accounts for the WP admin bar
   via the --wp-admin--admin-bar--height variable when logged in. */
.hero-center {
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  position: relative;
  z-index: 1;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap svg {
  width: min(580px, 88vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 174, 239, 0.18));
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 174, 239, 0.15)); }
  50%       { filter: drop-shadow(0 0 55px rgba(0, 174, 239, 0.28)); }
}

.divider {
  width: min(320px, 60vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 174, 239, 0.4) 30%,
    rgba(241, 90, 41, 0.4) 70%,
    transparent
  );
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}

.tagline {
  font-size: clamp(11.2px, 1.8vw, 13.6px) !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 400 !important;
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.25s;
}

/* Accessible focus ring for keyboard navigation */
.portal-btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
  background: rgba(0, 174, 239, 0.14);
  border-color: rgba(0, 174, 239, 0.7);
  color: #fff;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .container,
  .divider,
  .tagline,
  .portal-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .logo-wrap svg {
    animation: none;
    filter: drop-shadow(0 0 30px rgba(0, 174, 239, 0.18));
  }
}

/* !important overrides Bricks' default .brxe-button rules,
   which have equal specificity and load after this stylesheet. */
.portal-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 11px 28px !important;
  border: 1px solid rgba(0, 174, 239, 0.35) !important;
  border-radius: 3px !important;
  background: rgba(0, 174, 239, 0.06) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: clamp(11.2px, 1.6vw, 12.5px) !important;
  line-height: 1 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  min-height: 0 !important;
  height: auto !important;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

/* Nested text span (Bricks sometimes wraps button text in a <span>) */
.portal-btn span {
  font-size: inherit !important;
  letter-spacing: inherit !important;
}

/* Inline SVG icon */
.portal-btn svg {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.7;
  transition: opacity 0.25s;
  flex-shrink: 0;
}

/* FontAwesome / icon-font glyph (sized via font-size, not width) */
.portal-btn i,
.portal-btn .icon {
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: 0.7;
  transition: opacity 0.25s;
  flex-shrink: 0;
}

.portal-btn:hover i,
.portal-btn:hover .icon { opacity: 1; }

.portal-btn:hover {
  background: rgba(0, 174, 239, 0.14);
  border-color: rgba(0, 174, 239, 0.7);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 174, 239, 0.15);
}

.portal-btn:hover svg {
  opacity: 1;
}

/* Corner accents */
/* !important is needed because Bricks' default Block/Div element styles
   (width: 100%, display: flex) otherwise override the width/height. */
.corner {
  position: fixed !important;
  width: 48px !important;
  height: 48px !important;
  display: block !important;
  opacity: 0.18;
}
.corner--tl { top: 28px; left: 28px; border-top: 1px solid var(--blue-light); border-left: 1px solid var(--blue-light); }
.corner--tr { top: 28px; right: 28px; border-top: 1px solid var(--blue-light); border-right: 1px solid var(--blue-light); }
.corner--bl { bottom: 28px; left: 28px; border-bottom: 1px solid var(--orange); border-left: 1px solid var(--orange); }
.corner--br { bottom: 28px; right: 28px; border-bottom: 1px solid var(--orange); border-right: 1px solid var(--orange); }

/* Contact dialog */
.contact-dialog {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px 32px;
  border: 1px solid rgba(0, 174, 239, 0.35);
  border-radius: 4px;
  background: rgba(10, 13, 26, 0.96);
  color: rgba(255, 255, 255, 0.85);
  /* Layered glow: close cyan halo + wider indigo spread = logo's
     cyan→indigo gradient in ambient form. */
  box-shadow:
    0 0 40px rgba(0, 174, 239, 0.18),
    0 10px 80px rgba(43, 57, 144, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.contact-dialog::backdrop {
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(4px);
}

.contact-dialog[open] {
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-dialog__title {
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 0 6px !important;
}

.contact-dialog__subtitle {
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid transparent !important;
  border-image: linear-gradient(
    90deg,
    transparent,
    rgba(0, 174, 239, 0.4) 30%,
    rgba(241, 90, 41, 0.4) 70%,
    transparent
  ) 1 !important;
}

.contact-dialog__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(0, 174, 239, 0.25) !important;
  border-radius: 3px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.contact-dialog__close svg,
.contact-dialog__close i,
.contact-dialog__close * {
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.contact-dialog__close:hover,
.contact-dialog__close:focus-visible {
  color: #fff !important;
  border-color: rgba(0, 174, 239, 0.7) !important;
  background: rgba(0, 174, 239, 0.12) !important;
  outline: none !important;
}

/* Contact form — apply to the Form element in Bricks */
.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* Reset spacing that Bricksforge's Bootstrap-derived .form-group
   and field wrappers add on top of the form's gap. Targets the field
   wrappers specifically so the Submit Wrapper isn't caught. */
.contact-form .form-group,
.contact-form .pro-forms-builder-field,
.contact-form [class*="brf-pro-forms-field"],
.contact-form [class*="turnstile" i],
.contact-form [class*="captcha" i],
.contact-form .cf-turnstile,
.contact-form .cf-turnstile > div {
  margin: 0 !important;
  padding: 0 !important;
}

/* Turnstile's iframe lives inside a closed shadow DOM, so a direct
   iframe selector can't reach it. Setting line-height: 0 on the host
   ancestors inherits across the shadow boundary and collapses the
   baseline whitespace the inline iframe otherwise creates below itself. */
.contact-form [class*="turnstile" i],
.contact-form .cf-turnstile,
.contact-form .cf-turnstile > div {
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Force every direct child of the form (including the Submit Wrapper)
   to fill the form's width, without touching margins. */
.contact-form > * {
  width: 100% !important;
  max-width: 100% !important;
}

.contact-form__field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
}

.contact-form__field > label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(0, 174, 239, 0.25) !important;
  border-radius: 3px !important;
  background: rgba(0, 174, 239, 0.04) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  resize: vertical;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.contact-form__field textarea { min-height: 110px !important; }

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none !important;
  border-color: rgba(0, 174, 239, 0.7) !important;
  background: rgba(0, 174, 239, 0.08) !important;
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.12),
    0 0 16px rgba(43, 57, 144, 0.3) !important;
}

/* Standalone submit button — apply this one class to the Bricks Submit Button.
   Selector is prefixed with .contact-form to raise specificity above the
   field-wrapper reset rules that would otherwise zero its padding. */
.contact-form .contact-form__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 28px !important;
  border: 1px solid var(--orange) !important;
  border-radius: 3px !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 0 !important;
  transition: background 0.25s, box-shadow 0.25s;
}

.contact-form .contact-form__submit:hover,
.contact-form .contact-form__submit:focus-visible {
  background: #d94a1e !important;
  box-shadow: 0 0 24px rgba(241, 90, 41, 0.45) !important;
  outline: none;
}

/* Reset any inner wrapper/span/progress element Bricksforge adds
   inside the submit button (that's what was showing as the white bar),
   and force the text span to inherit the button's typography. */
.contact-form .contact-form__submit * {
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Form confirmation messages. Bricksforge renders
   <div class="message success|error"><div class="text">…</div></div>
   at runtime. Double-class on the status bumps specificity above
   Bricks core's .message.success rule. */
.message.success,
.message.error,
.message.danger {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 3px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.message .text {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.message.success.success {
  background-color: rgba(17, 183, 107, 0.08) !important;
  border: 1px solid rgba(17, 183, 107, 0.4) !important;
  color: #11b76b !important;
}

.message.error.error,
.message.danger.danger {
  background-color: rgba(250, 67, 98, 0.08) !important;
  border: 1px solid rgba(250, 67, 98, 0.4) !important;
  color: #fa4362 !important;
}

/* ---------- Guides index page ---------- */

/* Shared centering for the three top-level blocks. Keeps them independent
   so each can map to its own Bricks Section. */
.guides-header,
.guides-page,
.guides-footer {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.guides-header {
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.guides-page {
  padding-bottom: 48px;
}

.guides-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.25s, transform 0.25s;
}

.guides-home-link svg {
  width: min(300px, 60vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(0, 174, 239, 0.15));
  transition: filter 0.3s;
}

.guides-home-link:hover svg,
.guides-home-link:focus-visible svg {
  filter: drop-shadow(0 0 38px rgba(0, 174, 239, 0.3));
}

.guides-home-link:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 6px;
  border-radius: 4px;
}

.guides-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.guides-subtitle {
  font-size: clamp(11.2px, 1.8vw, 13.6px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin: 0;
}

.guides-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px 28px 28px;
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 4px;
  background: rgba(0, 174, 239, 0.04);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.guide-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 174, 239, 0.7) 0%,
    rgba(241, 90, 41, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.guide-card:hover,
.guide-card:focus-visible {
  background: rgba(0, 174, 239, 0.1);
  border-color: rgba(0, 174, 239, 0.7);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 174, 239, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.guide-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(0, 174, 239, 0.18),
    0 0 24px rgba(0, 174, 239, 0.18);
}

.guide-card:hover::before,
.guide-card:focus-visible::before {
  opacity: 1;
}

.guide-card__tag {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.guide-card__title {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.guide-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Card arrow — works whether the class is on a wrapper containing the
   icon, on a Bricks <svg> Icon element, or on a Bricks <i> font-icon. */
.guide-card__arrow {
  position: absolute !important;
  top: 22px !important;
  right: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: rgba(0, 174, 239, 0.5) !important;
  transition: color 0.25s, transform 0.25s;
}

.guide-card__arrow svg {
  width: 100% !important;
  height: 100% !important;
}

.guide-card__arrow i,
.guide-card__arrow .icon {
  font-size: inherit !important;
  line-height: inherit !important;
}

.guide-card:hover .guide-card__arrow,
.guide-card:focus-visible .guide-card__arrow {
  color: var(--blue-light) !important;
  transform: translateX(3px);
}

.guides-footer {
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

/* Respect reduced motion preference for the guides page */
@media (prefers-reduced-motion: reduce) {
  .guides-header,
  .guides-grid,
  .guides-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .guide-card,
  .guide-card__arrow {
    transition: none;
    transform: none;
  }
}

/* ---------- Single guide post ---------- */

.guide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(28px, 5vw, 48px) 64px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.65;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.guide__head {
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.guide__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 14px;
}

.guide__title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 14px;
}

.guide__lede {
  font-size: clamp(13px, 1.8vw, 15px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin: 0;
}

.guide section {
  margin-top: 56px;
}

.guide__section {
  position: relative;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 20px 0;
  margin: 0 0 28px;
}

.guide__section::before,
.guide__section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 174, 239, 0.4) 30%,
    rgba(241, 90, 41, 0.4) 70%,
    transparent
  );
}
.guide__section::before { top: 0; }
.guide__section::after { bottom: 0; }

.guide__subsection {
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin: 36px 0 14px;
}

.guide__step {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  margin: 24px 0 10px;
}

.guide p {
  margin: 0 0 14px;
}

.guide strong {
  color: #fff;
  font-weight: 500;
}

.guide em {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Code blocks */
.guide pre {
  position: relative;
  margin: 12px 0 18px;
  padding: 14px 92px 14px 16px;
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-left: 2px solid rgba(0, 174, 239, 0.55);
  border-radius: 3px;
  background: rgba(0, 174, 239, 0.05);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  tab-size: 4;
}

/* Copy-to-clipboard button injected into each <pre> by the page script */
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 3px;
  background: rgba(10, 13, 26, 0.85);
  color: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.guide pre:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  color: #fff;
  border-color: rgba(0, 174, 239, 0.7);
  background: rgba(0, 174, 239, 0.2);
  opacity: 1;
}

.code-copy:focus-visible {
  outline: 2px solid rgba(0, 174, 239, 0.6);
  outline-offset: 2px;
}

.code-copy svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.code-copy.is-copied {
  color: #11b76b;
  border-color: rgba(17, 183, 107, 0.5);
  background: rgba(17, 183, 107, 0.12);
  opacity: 1;
}

.code-copy.is-error {
  color: #fa4362;
  border-color: rgba(250, 67, 98, 0.5);
  background: rgba(250, 67, 98, 0.12);
  opacity: 1;
}

/* Touch devices have no hover — keep button visible */
@media (hover: none) {
  .code-copy { opacity: 0.75; }
}

.guide pre code {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border: 0;
  white-space: pre;
  display: block;
}

/* Inline code (not inside <pre>) */
.guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 2px;
  background: rgba(0, 174, 239, 0.06);
  color: #fff;
}

/* Callout / reference boxes */
.guide__callout {
  position: relative;
  margin: 24px 0 18px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 4px;
  background: rgba(0, 174, 239, 0.035);
  font-size: 13.5px;
  line-height: 1.6;
}

.guide__callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 174, 239, 0.6) 0%,
    rgba(241, 90, 41, 0.6) 100%
  );
  border-radius: 4px 0 0 4px;
}

.guide__callout-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}

/* Collapsible callouts via native <details>/<summary> */
.guide__callout > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.25s;
}
.guide__callout > summary::-webkit-details-marker { display: none; }
.guide__callout > summary::marker { content: ''; }

.guide__callout > summary::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(0, 174, 239, 0.7);
  border-bottom: 1.5px solid rgba(0, 174, 239, 0.7);
  transform: rotate(-45deg);
  transition: transform 0.25s, border-color 0.25s;
  margin-left: auto;
  flex-shrink: 0;
}

.guide__callout[open] > summary::after {
  transform: rotate(45deg);
}

.guide__callout > summary:hover { color: #fff; }
.guide__callout > summary:hover::after { border-color: var(--blue-light); }

.guide__callout > summary:focus-visible {
  outline: 2px solid rgba(0, 174, 239, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove bottom margin on the summary when closed so the box stays tight */
.guide__callout:not([open]) > .guide__callout-title {
  margin-bottom: 0;
}

.guide__callout p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
}

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

.guide__callout strong {
  color: var(--blue-light);
  font-weight: 500;
}

.guide__callout pre {
  margin: 10px 0;
}

/* Scrollbar styling for code blocks */
.guide pre::-webkit-scrollbar {
  height: 8px;
}

.guide pre::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.guide pre::-webkit-scrollbar-thumb {
  background: rgba(0, 174, 239, 0.3);
  border-radius: 4px;
}

.guide pre::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 174, 239, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .guide {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
