/* Utility pages — ds shell + legacy layout blocks (markup mostly unchanged). */

@import url("tools-legacy-extract.css");

/* Legacy design tokens for utility page sections */
.ds-page .site-main .breadcrumb-nav,
.ds-page .site-main .hero,
.ds-page .site-main .content-section,
.ds-page .site-main section.cta-section#contact,
.ds-page .site-main .privacy-content,
.ds-page .site-main .error-hero {
  --color-primary: #1a7f64;
  --color-primary-dark: #145c47;
  --color-secondary: #8b4513;
  --color-accent-legacy: #ff6b35;
  --color-bg: #f8f6f0;
  --color-bg-alt: #e8e4dd;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --slate-500: #64748b;
  --primary-600: #1a7f64;
  --primary-300: #64c3a9;
  --color-white: #ffffff;
  --font-heading: var(--font-serif);
  --font-body: var(--font-sans);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --border-radius: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
}

/* Progress bar */
.ds-page #progress-bar {
  background: #1a7f64;
}

/* Breadcrumbs (legacy pattern, scoped) */
.ds-page .site-main .breadcrumb-nav {
  background: var(--color-bg);
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.ds-page .site-main .breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.ds-page .site-main .breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--slate-500);
}

.ds-page .site-main .breadcrumb li > span {
  pointer-events: none;
}

.ds-page .site-main .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ds-page .site-main .breadcrumb a:active,
.ds-page .site-main .breadcrumb a:focus {
  text-decoration: underline;
}

.ds-page .site-main .breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: inherit;
  pointer-events: none;
}

.ds-page .site-main .breadcrumb li[aria-current="page"] {
  color: var(--color-text-light);
}

/* Hero card */
.ds-page .site-main .hero {
  text-align: center;
  padding: 4rem 20px 3rem 20px;
  background: linear-gradient(120deg, #f3faf7 0%, #e6f4ef 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(26, 127, 100, 0.08), 0 1.5px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 2.8rem;
  border: 1.5px solid #d0ede2;
  position: relative;
  margin-top: 0.5rem;
}

.ds-page .site-main .hero-subtitle {
  color: #145c47;
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0.8rem auto 0.3rem auto;
  letter-spacing: 0.01em;
  max-width: 95%;
  text-align: center;
}

/* Privacy page */
.ds-page .site-main .privacy-content {
  padding: 3rem 0;
}

.ds-page .site-main .privacy-content .content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.ds-page .site-main .privacy-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.ds-page .site-main .privacy-content p + p,
.ds-page .site-main .privacy-content p + ul,
.ds-page .site-main .privacy-content ul + p {
  margin-top: 0.9rem;
}

/* Results page add-ons */
.ds-page .site-main .results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ds-page .site-main .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ds-page .site-main .result-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 127, 100, 0.05);
}

.ds-page .site-main .result-card h3 {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile sticky CTA (results page) */
.ds-page .sticky-cta-mobile {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 9997;
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  background: linear-gradient(135deg, #1a7f64 0%, #145c47 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
  .ds-page .sticky-cta-mobile {
    display: block;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
}

/* 404 page (moved from inline styles) */
.ds-page .site-main .error-hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

.ds-page .site-main .error-hero::before {
  content: "404";
  position: absolute;
  font-size: clamp(150px, 30vw, 350px);
  font-weight: 900;
  color: rgba(26, 127, 100, 0.03);
  font-family: var(--font-heading);
  z-index: 0;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ds-page .site-main .error-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.ds-page .site-main .error-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-ink);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.ds-page .site-main .error-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--ink-60);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ds-page .site-main .game-container {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1rem;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.ds-page .site-main .game-title {
  font-size: 1rem;
  color: var(--ink-60);
  margin-bottom: 1rem;
  font-weight: 500;
}

.ds-page .site-main #gameCanvas {
  border: 2px solid #535353;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  background: #f7f7f7;
  max-width: 100%;
  height: auto;
  touch-action: none;
}

.ds-page .site-main .game-score {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.ds-page .site-main .game-instructions {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-60);
}

.ds-page .site-main .error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .ds-page .site-main .game-container {
    padding: 1.5rem 0.75rem;
    margin: 1.5rem auto;
  }

  .ds-page .site-main .error-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto;
  }
}

