/**
 * 1seal Main Styles
 * Version: 1.2.0
 * WCAG 2.2 AA Compliant
 *
 * SPACING SYSTEM
 * ==============
 * Page types:
 *   - Homepage (default): generous spacing for marketing feel
 *   - Secondary pages (class="page-secondary"): tighter, documentation feel
 *
 * Secondary page spacing:
 *   - Header to content: 64px (--space-16)
 *   - Between sections: 48px
 *   - Content to footer: 32px
 *
 * Default spacing:
 *   - Header to content: 48px (--space-12)
 *   - Between sections: 64px
 *   - Content to footer: 48px
 *
 * Usage: Add class="page-secondary" to <body> on inner pages
 *
 * BUTTONS
 * =======
 * Colors:
 *   - Primary default: #1a5f7a (teal)
 *   - Secondary default: transparent with teal border
 *   - All buttons hover: #f59e0b (orange, matches beta banner)
 *
 * Card buttons: Use margin-top: auto to align buttons at card bottom
 *
 * FOOTER
 * ======
 * Font size: 0.75rem (smaller than body)
 * Bottom section: separated by border, extra top margin/padding
 * Beta note: 0.75rem, minimal gap to copyright
 */

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16.8px;
  scroll-behavior: smooth;
  /* Prevent iOS text size adjustment */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@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;
  }
}

body {
  background-color: var(--seal-paper);
  color: var(--seal-text);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Link - WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--seal-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Focus Indicators - WCAG 2.4.7 */
*:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Typography - Fluid scaling with clamp() */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-headings);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--seal-text);
}

h1 {
  /* Fluid: 1.8375rem (mobile) → 2.3625rem (desktop) */
  font-size: clamp(1.8375rem, 1.575rem + 1.3125vw, 2.3625rem);
}

h2 {
  /* Fluid: 1.3125rem → 1.512rem */
  font-size: clamp(1.3125rem, 1.155rem + 0.7875vw, var(--font-size-h2));
}

/* Section headings - space from content */
main section h2,
main .container h2,
main .container-narrow h2 {
  margin-bottom: var(--space-8);
  font-size: 1.8375rem;
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin-bottom: var(--space-4);
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 200ms ease-out;
}

a:hover {
  color: var(--color-link-hover);
}

a:visited {
  color: var(--color-link-visited);
}

/* Buttons should NOT inherit visited link styles */
a.btn:visited,
a.btn-primary:visited,
a.btn-secondary:visited {
  color: inherit;
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:link {
  background: #1a5f7a;
  color: var(--seal-paper);
}

a.btn-primary:hover,
a.btn-primary:hover:visited {
  background: #d97706;
  color: var(--seal-paper);
}

a.btn-secondary,
a.btn-secondary:visited,
a.btn-secondary:link {
  background: transparent;
  border: 2px solid var(--seal-primary);
  color: var(--seal-primary);
}

a.btn-secondary:hover,
a.btn-secondary:hover:visited {
  background: #d97706;
  border-color: #d97706;
  color: var(--seal-paper);
}

/* Buttons - WCAG 2.5.8 (44×44px min) */
button,
.btn {
  display: inline-block;
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 200ms ease-out;
}

.btn-primary {
  background: #1a5f7a;
  color: var(--seal-paper);
  font-weight: 600;
}

.btn-primary:hover {
  background: #d97706;
  color: var(--seal-paper);
}

.btn-primary:visited {
  color: var(--seal-paper);
}

.btn-primary:hover:visited {
  color: var(--seal-paper);
}

.btn-primary:active {
  background: #12455d;
  color: var(--seal-paper);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--seal-primary);
  color: var(--seal-primary);
}

.btn-secondary:hover {
  background: #d97706;
  border-color: #d97706;
  color: var(--seal-paper);
}

.btn-secondary:visited {
  color: var(--seal-primary);
}

.btn-secondary:hover:visited {
  color: white;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Code Blocks */
code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.945em;
  line-height: var(--line-height-code);
}

pre {
  background: var(--seal-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  max-width: 100%;
  box-sizing: border-box;
}

pre code {
  background: none;
  padding: 0;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header */
header {
  /* solid background (matches the "intent → 1seal → pass/fail" light green block) */
  background: #ebf7f3;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  header {
    background: var(--seal-paper);
  }
}

header.is-scrolled {
  box-shadow: var(--elevation-1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--seal-primary);
  font-weight: 700;
  font-size: 1.26rem;
}

.logo:hover,
.logo:visited,
.logo:active {
  color: var(--seal-primary);
}

.logo img {
  width: 48px;
  height: 48px;
}

/* Navigation */
nav ul {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  /* Ensure minimum touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--seal-text);
  position: relative;
  transition: background 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--seal-text);
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Main Content */
main {
  flex: 1;
  padding: var(--space-12) 0;
}

/* Secondary pages - good top spacing from header, tighter between sections */
body.page-secondary main {
  padding-top: var(--space-16); /* 64px from header */
}

body.page-secondary main > .container:first-child > h1,
body.page-secondary main > .container-narrow:first-child > h1 {
  margin-bottom: var(--space-8);
  /* match home page hero headline size */
  font-size: clamp(2.205rem, 1.575rem + 3.15vw, 3.15rem);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-4);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  margin-bottom: var(--space-8);
  /* Fluid: 2.205rem (360px) → 3.15rem (1200px) */
  font-size: clamp(2.205rem, 1.575rem + 3.15vw, 3.15rem);
}

.hero h1 .h1-secondary {
  display: block;
  /* Fluid: 1.4175rem → 1.89rem */
  font-size: clamp(1.4175rem, 1.26rem + 0.945vw, 1.89rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

.hero .tagline {
  /* Fluid: 0.91875rem → 1.05rem */
  font-size: clamp(0.91875rem, 0.84rem + 0.2625vw, 1.05rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}

.hero > p.text-muted {
  margin-bottom: var(--space-6);
}

.hero .diagram {
  background: var(--seal-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: left;
  font-size: 0.8515625rem;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.quick-win {
  background: rgba(26, 95, 122, 0.05);
  border-left: 4px solid var(--seal-primary);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin-top: 56px;
  margin-bottom: var(--space-6);
  text-align: left;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.quick-win h2,
.quick-win h3 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}

.quick-win pre {
  max-width: 100%;
  overflow-x: auto;
}

/* Scroll Hint */
.scroll-hint {
  text-align: center;
  margin-top: 40px;
  padding: var(--space-4) 0 0;
  animation: bounce 2s infinite;
}

.scroll-hint-text {
  color: var(--color-text-secondary);
  font-size: 0.7875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.scroll-arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--seal-primary);
  border-bottom: 2px solid var(--seal-primary);
  transform: rotate(45deg);
  margin-top: 0;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

/* First section after hero - reduce top gap */
main > .container#products {
  margin-top: var(--space-4);
}

main > .container#products h2 {
  margin-bottom: var(--space-8);
}

/* Cards */
.card {
  background: var(--seal-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--elevation-1);
}

.card h2 {
  margin-bottom: var(--space-8);
}

.card h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.card > h3:first-child {
  margin-top: 0;
}

.card h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.card > h4:first-child {
  margin-top: 0;
}

.card-subheading {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.card-subheading + ul,
.card-subheading + ol {
  margin-top: 0;
}

.card-grid .card {
  display: flex;
  flex-direction: column;
}

.card-grid .card h3 {
  margin-bottom: var(--space-2);
}

.card-grid .card > p:first-of-type {
  margin-bottom: var(--space-3);
}

.card-grid .card > .btn:last-child {
  margin-top: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Section spacing - breathe between major sections */
main > section + section,
main > .container + .container,
main > .container-narrow + .container,
main > .container + .container-narrow {
  margin-top: 64px;
}

/* Secondary pages - tighter section spacing */
body.page-secondary main > section + section,
body.page-secondary main > .container + .container,
body.page-secondary main > .container-narrow + .container,
body.page-secondary main > .container + .container-narrow {
  margin-top: 48px;
}

/* Extra spacing for Works With section heading */
main > .container h2.text-center,
main > .container-narrow h2.text-center {
  padding-top: var(--space-8);
}

/* Extra margin-top for sections after cards to create breathing room */
section.container-narrow + section.container-narrow {
  margin-top: var(--space-16);
}

/* Footer */
footer {
  background: var(--color-graphite);
  color: var(--seal-paper);
  padding: var(--space-8) 0;
  margin-top: 48px;
  font-size: 0.7875rem;
}

body.page-secondary footer {
  margin-top: 32px;
}

footer a,
footer a:visited,
footer a:link {
  color: var(--color-primary-light);
}

footer a:hover,
footer a:hover:visited {
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-body);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

/* Utilities */
.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;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-secondary);
}

.text-small {
  font-size: 0.8925rem;
}

.list-indented {
  margin-left: var(--space-4);
}

.list-spaced {
  margin-bottom: var(--space-4);
}

.mt-2 {
  margin-top: var(--space-2);
}

.card-accent-danger {
  background: rgba(220, 38, 38, 0.05);
  border-left: 4px solid var(--color-error);
}

.card-accent-info {
  background: rgba(87, 196, 229, 0.1);
  border-left: 4px solid var(--color-info);
}

.card-accent-success {
  background: rgba(5, 150, 105, 0.05);
  border-left: 4px solid var(--color-success);
}

.icon-badge {
  border-radius: 12px;
  margin-bottom: var(--space-3);
}

.beta-banner {
  background: #d97706;
  color: white;
  border: none;
  padding: var(--space-3);
  margin: 0 0 var(--space-4) 0;
  border-radius: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9975rem;
}

footer > .container.text-center {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-note {
  margin-bottom: 4px;
  color: #e0f2f1;
  font-size: 0.7875rem;
}

[data-ga-visible] {
  display: none;
}

[data-env="ga"] {
  display: none;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

/* ===========================================
   RESPONSIVE DESIGN - Mobile First (2025)
   Breakpoints: 480px (small), 768px (tablet), 1024px (desktop)
   =========================================== */

/* Tablet and below (≤768px) */
@media (max-width: 768px) {
  /* Container padding - more breathing room on mobile */
  .container,
  .container-narrow {
    padding: 0 var(--space-4);
  }

  /* Header - show hamburger, hide nav */
  .header-content {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--seal-paper);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--elevation-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  nav.is-open {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: flex;
    width: 100%;
    padding: var(--space-4) var(--space-6);
    min-height: 52px;
    border-radius: 0;
    justify-content: flex-start;
  }

  nav a:hover,
  nav a:focus {
    background: rgba(0, 0, 0, 0.05);
  }

  /* CTA buttons - full width stack */
  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Buttons inside paragraphs - stack vertically */
  p > .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--space-3);
    text-align: center;
  }

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

  /* Adjacent buttons - stack */
  .btn + .btn {
    margin-left: 0;
    margin-top: var(--space-3);
  }

  /* Action containers with multiple buttons */
  .action,
  .schema-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action .btn,
  .schema-actions .btn {
    width: 100%;
  }

  /* Footer - 2 columns on tablet */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Hero adjustments */
  .hero {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .hero .diagram {
    padding: var(--space-3);
    font-size: 0.7875rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero .diagram code {
    white-space: pre;
    display: block;
  }

  /* Quick win - smaller padding */
  .quick-win {
    padding: var(--space-4);
    margin-top: var(--space-8);
  }

  /* Beta banner - more muted on mobile */
  .beta-banner {
    font-size: 0.8515625rem;
    padding: var(--space-2) var(--space-3);
    background: rgba(217, 119, 6, 0.85);
    opacity: 0.9;
    line-height: 1.5;
  }

  /* Section spacing - tighter on mobile */
  main {
    padding: var(--space-8) 0;
  }

  main > section + section,
  main > .container + .container,
  main > .container-narrow + .container,
  main > .container + .container-narrow {
    margin-top: var(--space-10, 40px);
  }

  /* Buttons - 48px minimum touch target */
  .btn,
  button {
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
  }

  /* Cards - full width with proper spacing */
  .card {
    padding: var(--space-4);
  }

  .card-grid {
    gap: var(--space-4);
  }

  /* Code blocks - horizontal scroll */
  pre {
    font-size: 0.8515625rem;
    padding: var(--space-3);
    -webkit-overflow-scrolling: touch;
  }

  pre code {
    white-space: pre;
  }

  /* Hide scroll hint on mobile - saves space */
  .scroll-hint {
    display: none;
  }
}

/* Small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more container padding */
  .container,
  .container-narrow {
    padding: 0 var(--space-3);
  }

  /* Beta banner - more compact */
  .beta-banner {
    font-size: 0.8125rem;
    padding: var(--space-2) var(--space-3);
  }

  /* Footer - single column */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Card grid - always single column */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Framework grid (integrations page) */
  .framework-grid {
    grid-template-columns: 1fr;
  }

  /* Code blocks - even smaller font */
  pre {
    font-size: 0.7875rem;
    border-radius: var(--radius-sm);
  }

  code {
    font-size: 0.8925em;
    word-break: break-word;
  }

  /* Inline code - prevent overflow */
  p code,
  li code {
    word-break: break-all;
  }

  /* Product icons - smaller on mobile */
  .icon-badge {
    width: 40px;
    height: 40px;
  }

  /* Logo - slightly smaller */
  .logo img {
    width: 40px;
    height: 40px;
  }

  /* Section headings */
  main section h2,
  main .container h2,
  main .container-narrow h2 {
    margin-bottom: var(--space-6);
  }
}

/* Extra small screens (≤360px) - iPhone SE, older devices */
@media (max-width: 360px) {
  .container,
  .container-narrow {
    padding: 0 var(--space-2);
  }

  .hero {
    padding: var(--space-3) var(--space-2);
  }

  .beta-banner {
    font-size: 0.7875rem;
    padding: var(--space-2);
  }

  .btn,
  button {
    padding: var(--space-2) var(--space-3);
    font-size: 0.945rem;
  }

  nav a {
    padding: var(--space-3) var(--space-4);
  }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: var(--space-4) var(--space-6);
  }

  /* Reduce vertical spacing in landscape */
  main {
    padding: var(--space-6) 0;
  }

  .scroll-hint {
    display: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase all tap targets */
  .btn,
  button,
  nav a,
  .footer-section a {
    min-height: 48px;
    min-width: 48px;
  }

  /* Remove hover states that don't work on touch */
  .btn:hover,
  nav a:hover {
    transform: none;
  }

  /* Add active state for feedback */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  nav a:active {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }

  .card {
    border-width: 2px;
  }

  nav a:focus {
    outline-width: 3px;
  }
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
  .container,
  .container-narrow {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
  }
}

/* Print styles - hide nav, show URLs */
@media print {
  .nav-toggle,
  nav,
  .beta-banner,
  .scroll-hint,
  .cta {
    display: none !important;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* 1seal playground overrides (extracted from inline <style>) */
.playground-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.input-section {
  margin-bottom: var(--space-8);
}

.input-section h2 {
  margin-bottom: var(--space-3);
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: var(--space-3);
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.91875rem;
  line-height: var(--line-height-code);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--seal-paper);
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.action {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.output {
  margin-top: var(--space-8);
}

.output pre {
  background: var(--seal-paper);
  max-height: 400px;
  overflow-y: auto;
}

.result-success {
  border-left: 4px solid var(--color-success);
  background: rgba(5, 150, 105, 0.05);
}

.result-error {
  border-left: 4px solid var(--color-error);
  background: rgba(220, 38, 38, 0.05);
}

.loader {
  display: none;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--seal-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

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

.loader.active {
  display: inline-block;
}

.info-box {
  background: rgba(87, 196, 229, 0.1);
  border-left: 4px solid var(--color-info);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.info-box h3 {
  margin-bottom: var(--space-2);
}

.info-box ul {
  margin-left: var(--space-6);
}
