/* core.css - Concatenated from modular CSS files */
/* Generated CSS Bundle */

/* Global Design System & Layout */
:root {
  color-scheme: light dark;
  --bg: #f7f3ea;
  --bg-alt: #f0ebe0;
  --text: #15110c;
  --muted: #3a3530;
  --accent: #b5342a;
  --accent-soft: #ffe3da;
  --border: #d2c6b5;
  --surface-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  --radius: 8px;
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  --font-serif: "Georgia", ui-serif, "Times New Roman", serif;
  --focus-ring: var(--accent);
  --orange: #d97706;
  --red: #dc2626;
  --blue: #2563eb;
  --green: #16a34a;
  /* Global utility colors for on-brand usage */
  --white: #ffffff;
  --black: #000000;
  --on-accent: #ffffff;
  /* Secondary accent palette (policy roundup, etc.) */
  --purple-main: #7c3aed;
  --purple-soft-main: #f5e7ff;
  /* Shell/Container layout variables */
  --shell-max-width: 900px;
  --shell-padding: 1.5rem clamp(1.1rem, 3vw, 1.6rem) 2.4rem;

  /* Spacing Scale - Consistent rhythm across site */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;

  /* Typography Scale - Standardized heading sizes */
  --h1-size: 2rem;
  --h2-size: 1.4rem;
  --h3-size: 1.1rem;
  --h4-size: 1rem;

  /* Mobile typography scale (smaller sizes) */
  --h1-size-mobile: 1.5rem;
  --h2-size-mobile: 1.2rem;
  --h3-size-mobile: 1rem;
  --h4-size-mobile: 0.95rem;

  /* Form element standards */
  --form-input-min-height: 44px;
  --form-input-padding: 0.75rem 1rem;
  --form-input-border-width: 1px;
  --form-input-border-color: var(--border);
  --form-input-focus-color: var(--accent);
  --form-input-bg: var(--white);

  /* Component spacing defaults */
  --card-padding: 1.5rem;
  --button-padding: 0.75rem 1.5rem;
  --button-min-height: 44px;

  /* Color utility variables (pruned — only actively used) */
  --c-000: #000;
  --c-155e75: #155e75;
  --c-2563eb: #2563eb;
  --c-4ade80: #4ade80;
  --c-60a5fa: #60a5fa;
  --c-7c2d12: #7c2d12;
  --c-7c3aed: #7c3aed;
  --c-c7d2fe: #c7d2fe;
  --c-cffafe: #cffafe;
  --c-e0e7ff: #e0e7ff;
  --c-d1fae5: #d1fae5;
  --c-f3e8ff: #f3e8ff;
  --c-d97706: #d97706;
  --c-dc2626: #dc2626;
  --c-f59e0b: #f59e0b;
  --c-f5f3ff: #f5f3ff;
  --c-f87171: #f87171;
  --c-fed7aa: #fed7aa;
  --c-fff: #fff;
  --c-16a34a: var(--green);
  --c-1e3a8a: var(--blue);
  --c-5a5046: var(--muted);
  --c-b5342a: var(--accent);
  --c-d2c6b5: var(--border);
  --c-ffffff: var(--white);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050608;
    --bg-alt: #141824;
    --text: #f7f0e3;
    --muted: #b8a99a;
    --accent: #ff7a5c;
    --accent-soft: #2a1f1c;
    --border: rgba(255, 255, 255, 0.12);
    --surface-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    --orange: #f59e0b;
    --red: #f87171;
    --blue: #60a5fa;
    --green: #4ade80;
    --on-accent: #000000;
    --purple-main: #c084fc;
    --purple-soft-main: #312e81;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg));
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* Typography Scale - Standardized sizes and line-heights */
h1 {
  font-size: var(--h1-size);
  line-height: 1.25;
  margin: 1.5rem 0 1rem 0;
  font-weight: 700;
}

h2 {
  font-size: var(--h2-size);
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: 700;
}

h3 {
  font-size: var(--h3-size);
  line-height: 1.35;
  margin: 1rem 0 0.5rem 0;
  font-weight: 700;
}

h4 {
  font-size: var(--h4-size);
  line-height: 1.4;
  margin: 1rem 0 0.5rem 0;
  font-weight: 700;
}

p {
  line-height: 1.6;
}

li {
  line-height: 1.6;
}

:root[data-text-size="large"] {
  font-size: 112.5%;
}

:root[data-text-size="x-large"] {
  font-size: 125%;
}

/* Accessibility Measures */
p,
li,
/* Form Elements - Base Styles */
label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select {
  display: block;
  width: 100%;
  min-height: var(--form-input-min-height);
  padding: var(--form-input-padding);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--form-input-bg);
  border: var(--form-input-border-width) solid var(--form-input-border-color);
  border-radius: var(--radius);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--form-input-focus-color);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--form-input-focus-color) 20%, transparent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Radio and checkbox inputs */
input[type="radio"],
input[type="checkbox"] {
  margin-right: var(--space-sm);
  cursor: pointer;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Form groups */
.form-group {
  margin-bottom: var(--space-lg);
}

/* Form submit button - standardized */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.btn,
.button {
  display: inline-block;
  min-height: var(--button-min-height);
  padding: var(--button-padding);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.btn:hover,
.button:hover {
  background-color: color-mix(in srgb, var(--accent) 90%, var(--text));
}

button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus,
.btn:focus,
.button:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
.btn:active,
.button:active {
  background-color: color-mix(in srgb, var(--accent) 80%, var(--text));
}

/* Button variants */
.btn-secondary,
button.secondary {
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
button.secondary:hover {
  background-color: color-mix(in srgb, var(--bg-alt) 85%, var(--text));
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  min-height: 36px;
}

/* Form helper text */
.form-helper,
.help-text {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Form error states */
input[type="text"].error,
input[type="email"].error,
input[type="number"].error,
input[type="tel"].error,
input[type="url"].error,
input[type="password"].error,
textarea.error,
select.error {
  border-color: var(--red);
}

input[type="text"].error:focus,
input[type="email"].error:focus,
input[type="number"].error:focus,
input[type="tel"].error:focus,
input[type="url"].error:focus,
input[type="password"].error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent);
  border-color: var(--red);
}

.field-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: var(--red);
}

.author-bio p {
  margin: 0;
}

.author-bio p:first-child {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.author-bio p:last-child {
  color: var(--muted);
}

.citations-note {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.see-also-box {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}

.see-also-box h2 {
  margin-top: 0;
}

.see-also-list {
  margin-bottom: 0;
}

.author-callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.author-callout p {
  margin: 0;
}

.author-callout p:first-child {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.breadcrumb-nav {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-separator {
  opacity: 0.5;
}

.breadcrumb-current {
  opacity: 0.7;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
}

.mt-sm {
  margin-top: 0.5rem;
}

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

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

.mt-lg {
  margin-top: 2rem;
}

.mt-md {
  margin-top: 1rem;
}

/* Table Accessibility & Readability Enhancements */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

table thead {
  background: var(--bg-alt);
}

table th {
  padding: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
}

table td {
  padding: 0.85rem;
}

/* Row alternation for improved scannability (helps dyslexia) */
table tbody tr:nth-child(odd) {
  background-color: var(--bg-alt);
}

/* Visual feedback on hover for ADHD/dyslexia readers - clear row tracking */
table tbody tr:hover {
  background-color: color-mix(in srgb, var(--accent-soft) 65%, var(--bg-alt));
}

/* Keyboard focus styling for accessibility */
table td:focus,
table th:focus {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

table tr:first-child {
  border-bottom: 1px solid var(--border);
}

table tr + tr {
  border-bottom: 1px solid var(--border);
}

/* .data-table class overrides (for backward compatibility) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem;
}

.data-table th {
  font-weight: 700;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}

.data-table tbody tr:nth-child(odd) {
  background-color: var(--bg-alt);
}

.data-table tbody tr:hover {
  background-color: color-mix(in srgb, var(--accent-soft) 65%, var(--bg-alt));
}

.data-table td:focus,
.data-table th:focus {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.data-table-num {
  text-align: right;
}

.link-strong {
  font-weight: 600;
}

.section-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.board-cta {
  padding: 2rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.board-cta h2 {
  margin-top: 0;
}

.board-cta-button {
  margin-left: 1rem;
}

.signpost-heading {
  margin-top: 0;
  border: 0;
  padding: 0;
}

.offline-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.card-surface {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.card-surface h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: var(--accent);
}

.stack-guides {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stack-guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-alt);
}

.stack-guide-link {
  text-decoration: none;
}

.stack-guide-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.mt-xs {
  margin-top: 0.75rem;
}

.research-cta {
  margin: 3rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}

.research-cta p {
  margin-top: 0;
}

.resources-cta {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 4px;
}

.resources-cta p {
  margin-top: 0;
}

.surface-spaced {
  margin-bottom: 2.5rem;
}

.surface-title--tight {
  font-size: 1.4rem;
}

.surface-list {
  margin: 0;
  padding-left: 1.25rem;
}

.contact-legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.warning-inline {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.proof-card {
  margin: 0 0 1.75rem;
}

.proof-text {
  margin: 0 0 0.5rem;
}

.proof-text-muted {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.proof-quotes {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.surface-title--sm {
  font-size: 1.25rem;
}

.newsletter-cta {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
}

.newsletter-cta-text {
  margin: 0 0 1rem;
  color: var(--muted);
}

[data-accessibility-mode="low-sensory"] {
  filter: saturate(0.5) contrast(0.9);
}

[data-accessibility-mode="high-contrast"] {
  --bg: #000;
  --bg-alt: #111;
  --text: #fff;
  --accent: #ffff00;
  --muted: #ddd;
  --border: rgba(255, 255, 255, 0.6);
}

@media (prefers-contrast: more) {
  :root {
    --bg: #000000;
    --bg-alt: #0a0a0a;
    --text: #ffffff;
    --accent: #ffff00;
    --accent-soft: #ffffcc;
    --muted: #e0e0e0;
    --border: #ffffff;
    --focus-ring: #ffff00;
    --orange: #ffaa00;
    --red: #ff0000;
    --blue: #0088ff;
    --green: #00ff00;
    --on-accent: #000000;
    --purple-main: #ff00ff;
    --purple-soft-main: #ffccff;
  }

  /* Light mode high-contrast adjustments */
  @media (prefers-color-scheme: light) {
    :root {
      --bg: #ffffff;
      --bg-alt: #f5f5f5;
      --text: #000000;
      --accent: #cc0000;
      --accent-soft: #ffcccc;
      --muted: #333333;
      --border: #000000;
      --orange: #ff6600;
      --red: #cc0000;
      --blue: #0000cc;
      --green: #008000;
      --on-accent: #ffffff;
    }
  }

  /* Remove opacity-based styling */
  .accent-soft,
  .author-callout,
  .warning-inline {
    opacity: 1 !important;
    background-color: var(--accent-soft) !important;
  }

  .breadcrumb-separator,
  .breadcrumb-current {
    opacity: 1 !important;
  }

  /* Increase border widths for better visibility */
  button,
  input,
  textarea,
  select,
  .form-group input,
  .form-group select,
  .form-group textarea {
    border-width: 2px !important;
  }

  :focus-visible {
    outline-width: 3px !important;
    outline-offset: 2px !important;
  }

  /* Enhanced focus rings */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  .command-launcher:focus-visible,
  .a11y-toggle:focus-visible,
  .cta-button:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 2px !important;
    border-radius: 2px;
  }

  /* Card and surface borders */
  .card-surface,
  .expertise-card,
  .cta-card,
  .article-card,
  .stack-guide-card,
  .surface,
  .pricing-option,
  .post-cta {
    border-width: 2px !important;
    border-color: var(--border) !important;
  }

  /* Links must be clearly distinguished */
  a {
    text-decoration-thickness: 2px !important;
    text-decoration-line: underline !important;
  }

  a:hover {
    text-decoration-thickness: 3px !important;
  }

  /* Strong borders on interactive elements */
  .see-also-box,
  .research-cta,
  .resources-cta,
  .note-box,
  .checklist,
  .tldr-box,
  .tldr,
  blockquote {
    border-left-width: 4px !important;
    border-color: var(--border) !important;
    border-left-color: var(--accent) !important;
  }

  /* CTA boxes and callouts */
  .author-callout,
  .board-cta,
  .warning-inline {
    border-width: 2px !important;
    border-color: var(--accent) !important;
  }

  /* Section headings */
  .section-heading {
    border-bottom-width: 2px !important;
  }

  /* Data tables */
  .data-table th,
  .data-table td,
  table th,
  table td {
    border: 1px solid var(--border) !important;
  }

  .data-table th,
  table th {
    border-bottom-width: 2px !important;
  }

  /* Button styling for high contrast */
  .cta-button {
    border: 2px solid var(--text) !important;
    font-weight: 700 !important;
  }

  .post-cta-btn {
    border-width: 2px !important;
  }

  .post-cta-btn-primary {
    border: 2px solid var(--text) !important;
  }

  .post-cta-btn-secondary {
    border-width: 2px !important;
    border-color: var(--text) !important;
  }

  /* Command and accessibility overlays */
  .command-overlay,
  .a11y-overlay {
    background: rgba(0, 0, 0, 0.95) !important;
  }

  .command-results button {
    border-width: 2px !important;
  }

  /* Size tags with strong borders */
  .size-tag {
    border: 2px solid var(--text) !important;
    font-weight: 700 !important;
  }

  .size-small {
    background: #c7d2fe !important;
    color: #000066 !important;
  }

  .size-medium {
    background: #bfdbfe !important;
    color: #000066 !important;
  }

  .size-large {
    background: #bfdbfe !important;
    color: #000066 !important;
  }

  /* Ensure all text is solid, not semi-transparent */
  .muted-text,
  .fine-print,
  .citations-note,
  .proof-text-muted,
  .proof-quotes,
  .newsletter-cta-text,
  .disclaimer,
  .surface-lead,
  .stack-guide-meta,
  .article-card .description,
  footer {
    color: var(--muted) !important;
    opacity: 1 !important;
  }

  /* Skip link must be visible */
  .skip-link {
    border: 2px solid var(--text) !important;
  }
}

@media (forced-colors: active) {
  :root {
    forced-color-adjust: auto;
  }

  .skip-link,
  .cta-button,
  .nav-cluster a.nav-cta {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
}

/* Reduce distractions: keep it predictable */
[data-distractions="reduced"] [data-distraction="high"] {
  display: none !important;
}

/* Reusable surfaces */
.surface {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--surface-shadow);
}

.surface + .surface {
  margin-top: 1.25rem;
}

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

.surface-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.surface-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.surface-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* Post conversion strip */
.post-cta {
  margin: 2.5rem 0 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  box-shadow: var(--surface-shadow);
}

.post-cta h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.post-cta p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  min-height: 44px;
}

.post-cta-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.post-cta-btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--text));
  color: var(--on-accent);
}

.post-cta-btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.post-cta-btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  display: inline-block;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--text);
  outline-offset: -3px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.disclaimer {
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  max-width: var(--shell-max-width);
  margin-inline: auto;
  padding: var(--shell-padding);
  width: 100%;
  flex: 1;
}

/* Header & Nav — see consolidated block below */

/* ============================================
   Header Styles (consolidated from header.css)
   ============================================ */

:root {
  --header-max-width: 100%;
}

header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg-alt), transparent);
}

.header-inner {
  max-width: var(--header-max-width);
  margin-inline: auto;
  padding: 1.1rem clamp(1.1rem, 3vw, 1.6rem) 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-serif, ui-serif);
  font-size: 1.4rem;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.1;
}

.brand img,
.brand svg {
  display: none;
}

.header-brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-brand:hover {
  color: var(--accent);
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.nav-cluster {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.nav-cluster-label {
  display: none !important;
}

.nav-cluster ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.nav-cluster a {
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-cluster a.nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}

.nav-cluster a.nav-cta-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 650;
}

.nav-cluster a.nav-cta:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: #fff;
}

.nav-cluster a.nav-cta-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  color: var(--accent);
}

.nav-cluster a:hover {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  color: var(--accent);
}

.nav-cluster a:focus-visible {
  outline: 3px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

/* ============================================
   Layout Styles (consolidated from layout.css)
   ============================================ */

nav[aria-label="Primary"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

nav[aria-label="Primary"] a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

nav[aria-label="Primary"] a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

nav[aria-label="Primary"] a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Active page indicator in navigation */
.masthead-nav a[aria-current="page"],
.masthead-nav a[aria-current="true"] {
  background: var(--accent-soft);
  font-weight: 600;
}

.footer-nav a[aria-current="page"] {
  font-weight: 600;
}

.shell {
  max-width: 900px;
  margin-inline: auto;
  padding: 1.5rem clamp(1.1rem, 3vw, 1.6rem) 2.4rem;
  width: 100%;
  flex: 1;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.page-header .subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
}

.content {
  font-size: 1rem;
  line-height: 1.7;
}

.content p {
  margin: 0 0 1.25rem;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

.content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.cta-box {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.cta-box h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.cta-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta-box a {
  color: var(--accent);
}

.nav-inline-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}

.nav-inline-utilities a {
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
  margin: 0;
  color: inherit;
}

.nav-inline-utilities a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-inline-utilities a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-cta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-cta a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.footer-work .nav-cluster {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.footer-work .nav-cluster ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  display: block;
  gap: 0;
}

.footer-work .nav-cluster li {
  margin-bottom: 0.3rem;
}

/* ============================================
   Human Verification Chart Styles
   ============================================ */

.chart-axis {
  stroke: var(--border);
}

.chart-bar--primary {
  fill: var(--accent);
}

.chart-bar--secondary {
  fill: var(--blue);
}

.chart-bar--tertiary {
  fill: var(--purple-main);
}

.chart-label {
  fill: var(--muted);
}

.chart-value {
  fill: var(--white);
}

/* ============================================
   Footer Styles (consolidated from footer.css)
   ============================================ */

/* Footer */
footer {
  padding: 2rem clamp(1.1rem, 3vw, 1.6rem);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
  }

  .masthead-nav {
    width: 100%;
    order: 3;
  }

  .masthead-nav[hidden] {
    display: none;
  }

  .nav-cluster ul {
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-cluster a {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ========================================
   PRINT-FRIENDLY STYLES FOR ACCESSIBILITY
   Supports neurodivergent users: dyslexia,
   anxiety, print-preferred learning styles
   ======================================== */

@media print {
  /* Reset color scheme for print efficiency */
  * {
    box-shadow: none !important;
    filter: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-family: var(--font-serif);
    line-height: 1.8;
    font-size: 11pt;
  }

  /* Print header: show page title and source URL */
  body::before {
    content: "Unhinged Librarian — unhingedlibrarian.com";
    display: block;
    font-size: 9pt;
    color: #666;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.1in;
    margin-bottom: 0.25in;
  }

  /* Hide ND panel and nav toggle in print */
  .nd-open-button,
  .nd-overlay,
  .nav-toggle,
  .back-to-top {
    display: none !important;
  }

  /* Hide all non-essential UI elements */
  header,
  footer,
  nav,
  .skip-link,
  .command-launcher,
  .a11y-toggle,
  .masthead-nav,
  .theme-toggle,
  .command-overlay,
  .a11y-overlay,
  .newsletter-cta,
  .newsletter-signup,
  .board-cta,
  .research-cta,
  .resources-cta,
  .post-cta,
  .cta-box,
  .cta-button,
  .cta-grid,
  .cta-card,
  [data-print-hide="true"] {
    display: none !important;
  }

  /* Expand main content to full width */
  .page,
  .shell,
  main,
  article {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Optimize spacing for print */
  article,
  .article-content {
    padding: 0.5in !important;
  }

  /* Print-optimized typography */
  h1 {
    font-size: 24pt;
    margin: 0.5in 0 0.25in;
    page-break-after: avoid;
    color: #000;
  }

  h2 {
    font-size: 18pt;
    margin: 0.4in 0 0.2in;
    page-break-after: avoid;
    page-break-before: always;
    border-bottom: 2px solid #000;
    padding-bottom: 0.1in;
  }

  h3 {
    font-size: 14pt;
    margin: 0.3in 0 0.15in;
    page-break-after: avoid;
    page-break-before: avoid;
  }

  h4,
  h5,
  h6 {
    font-size: 12pt;
    margin: 0.2in 0 0.1in;
    page-break-after: avoid;
  }

  p {
    margin: 0.15in 0;
    line-height: 1.8;
    max-width: 100% !important;
  }

  /* Tables print cleanly */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.25in 0;
    page-break-inside: avoid;
    page-break-after: auto;
  }

  table,
  .data-table {
    border: 1px solid #000;
  }

  th,
  td {
    border: 1px solid #000;
    padding: 0.1in;
    text-align: left;
  }

  th {
    background: #f0f0f0;
    font-weight: bold;
    page-break-inside: avoid;
  }

  tr {
    page-break-inside: avoid;
  }

  /* Code blocks and preformatted text */
  pre,
  code,
  .offline-pre {
    background: #f5f5f5 !important;
    border: 1px solid #000 !important;
    padding: 0.1in !important;
    font-family: "Courier New", monospace;
    font-size: 9pt;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0.15in 0;
  }

  code {
    padding: 0.05in 0.08in;
  }

  /* Lists with proper spacing */
  ul,
  ol {
    margin: 0.15in 0;
    padding-left: 0.5in;
  }

  li {
    margin-bottom: 0.1in;
    line-height: 1.6;
    page-break-inside: avoid;
  }

  /* Blockquotes styled for print clarity */
  blockquote {
    margin: 0.2in 0;
    padding-left: 0.3in;
    border-left: 3px solid #000;
    font-style: italic;
    color: #333;
    background: #f9f9f9;
    page-break-inside: avoid;
  }

  blockquote p {
    margin: 0.1in 0;
  }

  /* Links: show URLs after link text */
  a[href]:after {
    content: " (" attr(href) ")";
    word-break: break-word;
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
    text-decoration: none;
  }

  /* Skip showing URLs for anchor links and non-http(s) */
  a[href^="#"]:after,
  a[href^="javascript"]:after,
  a[href^="tel:"]:after,
  a[href^="mailto:"]:after {
    content: "";
  }

  /* Article metadata block */
  .article-metadata,
  .article-meta {
    display: block !important;
    margin: 0.3in 0;
    padding: 0.15in;
    border: 1px solid #000;
    background: #f9f9f9;
    font-size: 10pt;
    page-break-after: avoid;
  }

  .meta-item {
    display: block;
    margin-bottom: 0.05in;
  }

  .meta-item strong {
    display: inline;
  }

  /* Reading time */
  .post-reading-time {
    display: block;
    margin-bottom: 0.2in;
    font-size: 10pt;
    color: #333;
  }

  /* Author bio in print */
  .author-bio {
    margin: 0.3in 0;
    padding: 0.15in;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 10pt;
    page-break-inside: avoid;
  }

  .author-bio p {
    margin: 0.05in 0;
  }

  /* Remove visual decorations that don't print well */
  .section-heading {
    border-bottom-color: #000;
    padding-bottom: 0.1in;
  }

  .card-surface,
  .surface,
  .surface-spaced,
  .note-box,
  .see-also-box,
  .author-callout,
  .proof-card,
  .warning-inline {
    background: #f9f9f9 !important;
    border: 1px solid #000 !important;
    padding: 0.15in !important;
    margin: 0.2in 0 !important;
    page-break-inside: avoid;
  }

  .card-surface h3,
  .surface-title {
    font-size: 12pt;
    margin-top: 0;
    margin-bottom: 0.1in;
  }

  /* Breadcrumbs */
  .breadcrumb-nav {
    font-size: 9pt;
    margin-bottom: 0.15in;
  }

  .breadcrumb-list {
    display: inline;
  }

  .breadcrumb-list li {
    display: inline;
    margin: 0;
  }

  .breadcrumb-separator {
    margin: 0 0.05in;
  }

  /* TLDR/Summary sections */
  .tldr-box,
  .tldr {
    background: #f9f9f9 !important;
    border: 1px solid #000 !important;
    padding: 0.15in !important;
    margin: 0.2in 0 !important;
    page-break-inside: avoid;
  }

  .tldr-box h2,
  .tldr-label {
    font-size: 12pt;
    margin: 0 0 0.1in;
    font-weight: bold;
  }

  /* Credentials/badges */
  .credentials,
  .credential {
    display: block;
    margin: 0.1in 0;
    padding: 0;
    background: none;
    border: none;
  }

  .credential {
    display: inline;
    font-size: 9pt;
    text-transform: uppercase;
    margin-right: 0.1in;
  }

  /* Article sizing tags */
  .article-sizing-info {
    display: block;
    margin: 0.15in 0;
  }

  .size-tag {
    display: inline-block;
    font-size: 9pt;
    margin-right: 0.1in;
    padding: 0.05in 0.1in;
    border: 1px solid #000;
    background: #f0f0f0;
    color: #000;
  }

  /* Citations section */
  .citations-section {
    margin-top: 0.3in;
    padding-top: 0.2in;
    border-top: 2px solid #000;
    page-break-inside: avoid;
  }

  .citations-section h2 {
    page-break-before: always;
  }

  .citations-list {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
  }

  .citations-list li {
    margin-bottom: 0.1in;
    padding-left: 0.25in;
    text-indent: -0.25in;
  }

  .citations-list a {
    color: #000;
    text-decoration: underline;
  }

  /* Remove focus outlines in print */
  *:focus,
  *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

  /* Grid layouts collapse to single column */
  .expertise-grid,
  .cta-grid,
  .metrics-grid,
  .pricing-grid,
  .stack-guides {
    display: block !important;
  }

  .expertise-card,
  .cta-card,
  .metric,
  .pricing-option,
  .stack-guide-card {
    margin-bottom: 0.2in;
    page-break-inside: avoid;
  }

  /* Checklists */
  .checklist {
    background: #f9f9f9 !important;
    border-left: 3px solid #000 !important;
    padding: 0.15in !important;
    margin: 0.2in 0 !important;
    page-break-inside: avoid;
  }

  .checklist h4 {
    margin-top: 0;
  }

  /* Print footer note with page info */
  article:after {
    content: "";
    display: block;
    margin-top: 0.5in;
    padding-top: 0.3in;
    border-top: 2px solid #000;
    font-size: 9pt;
    color: #333;
  }

  /* Page breaks */
  .page-break-before {
    page-break-before: always;
  }

  .page-break-after {
    page-break-after: always;
  }

  /* Avoid orphans and widows */
  p,
  li,
  dt,
  dd {
    orphans: 3;
    widows: 3;
  }

  /* Stack guide cards */
  .stack-guide-card {
    background: #f9f9f9 !important;
    border: 1px solid #000 !important;
    margin-bottom: 0.2in;
    page-break-inside: avoid;
  }

  .stack-guide-meta {
    font-size: 9pt;
    color: #333;
  }

  /* Details lists */
  .details-list {
    margin: 0.15in 0;
  }

  .details-list li {
    padding: 0.1in 0;
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .details-list strong {
    display: block;
    font-weight: bold;
  }

  .details-list span {
    display: block;
    padding-left: 0.2in;
    font-size: 10pt;
  }

  /* Ensure content density for print efficiency */
  br + br,
  p:empty {
    display: none;
  }

  /* Remove decorative elements */
  .surface-shadow,
  hr {
    display: none !important;
  }

  /* Visibility hint for screen readers */
  .print-note {
    display: block;
    font-size: 10pt;
    color: #333;
    margin: 0.3in 0;
    padding: 0.15in;
    border-left: 3px solid #000;
    background: #f0f0f0;
  }

  /* Optimize images for print */
  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }

  /* Print-specific link handling */
  a {
    color: #000;
    text-decoration: underline;
  }

  /* Muted text stays readable */
  .muted-text,
  .fine-print {
    color: #333 !important;
    font-size: 9pt;
  }

  /* Ensure form elements don't appear in print */
  form,
  input,
  button,
  textarea,
  select,
  .form-group {
    display: none !important;
  }

  /* Print-specific utility class to control visibility */
  .print-only {
    display: block !important;
  }

  .screen-only {
    display: none !important;
  }
}

/* Card Grids (Shared) */
.expertise-grid,
.cta-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-alt);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cta-card {
  text-decoration: none;
  color: inherit;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  border-top-width: 3px;
  /* Visual "pop" */
  padding-top: calc(1.5rem - 2px);
  /* Maintain height */
}

.expertise-card h3,
.cta-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.expertise-card p,
.cta-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Credentials / Badges */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.credential {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.cta-box {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.cta-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-family: var(--font-serif);
}

/* Shared Content Sections */
.impact-snapshot,
.pricing-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.impact-snapshot h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 560px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 600px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
}

.pricing-option h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.pricing-option .price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.5rem 0;
}

.pricing-option ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: auto;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.15s ease;
  text-align: center;
}

.cta-button:hover {
  background: var(--text);
  color: #fff;
}

.cta-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.details-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.details-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1rem;
}

/* Border Color Utilities */
.border-left {
  border-left: 4px solid var(--accent);
}

/* Specific override classes for border-color */
.border-orange {
  border-left-color: var(--orange) !important;
}

.border-blue {
  border-left-color: var(--blue) !important;
}

.border-red {
  border-left-color: var(--red) !important;
}

.border-green {
  border-left-color: var(--green) !important;
}

/* Shared Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group select {
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.note-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.note-box p {
  margin: 0;
}

/* Article Card */
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-alt);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.article-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-card .description {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.article-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.article-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.article-link:hover {
  text-decoration: underline;
}

/* Article Sizing Tags */
.article-sizing-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}

.size-tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-block;
}

.size-small {
  background: #c7d2fe;
  color: #1e40af;
}

.size-medium {
  background: #bfdbfe;
  color: #1e3a8a;
}

.size-large {
  background: #bfdbfe;
  color: #1e3a8a;
}

@media (prefers-color-scheme: dark) {
  .size-small {
    background: color-mix(in srgb, var(--blue) 28%, #000);
    color: color-mix(in srgb, var(--blue) 35%, #fff);
  }

  .size-medium {
    background: color-mix(in srgb, var(--green) 22%, #000);
    color: color-mix(in srgb, var(--green) 35%, #fff);
  }

  .size-large {
    background: color-mix(in srgb, var(--orange) 24%, #000);
    color: color-mix(in srgb, var(--orange) 38%, #fff);
  }
}

/* Citations Section */
.citations-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.citations-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.citations-list {
  list-style-position: inside;
  margin-left: 0;
  padding-left: 0;
}

.citations-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.citations-list a {
  color: var(--accent);
}

/* Checklist Style */
.checklist {
  background: var(--bg-alt);
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.checklist h4 {
  margin-top: 0;
}

.checklist ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.checklist li {
  margin-bottom: 0.4rem;
}

/* Article Metadata Box */
.article-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.meta-item {
  font-size: 0.9rem;
  color: var(--text);
}

.meta-item strong {
  font-weight: 600;
}

/* Post Reading Time */
.post-reading-time {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.post-meta + .post-reading-time {
  margin-top: -0.25rem;
}

/* TLDR Box & Section */
.tldr-box,
.tldr {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.tldr-box h2,
.tldr-label {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.tldr-box ul,
.tldr ul {
  margin: 0;
  padding-left: 1.5rem;
}

.tldr-box li,
.tldr li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Blockquote */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

blockquote p {
  margin: 0;
}

/* Footer styles */

footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
}

.footer-inner {
  padding: 2rem clamp(1.1rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-nav-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
}

.footer-nav-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.footer-nav-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-nav-box a {
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.footer-nav-box a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.footer-nav-box a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.footer-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-utilities a {
  color: inherit;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.footer-utilities a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.footer-utilities a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Footer nav section (from footer.css) */
.footer-nav {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-nav a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.footer-copyright {
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.72;
  max-width: 50rem;
  text-align: center;
}

/* Back to top link in footer */
.back-to-top {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.back-to-top a {
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.back-to-top a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.back-to-top a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================
   Human Verification Component
   ============================================ */

.human-verification {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.human-verification .me-angle {
  margin: 0 0 0.75rem;
  font-weight: 650;
  color: var(--text);
}

.human-verification .human-warning {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--accent);
  background: rgba(181, 52, 42, 0.09);
  border-radius: 0 6px 6px 0;
}

.human-verification .human-warning p {
  margin: 0;
  font-weight: 600;
}

.human-verification .original-asset {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem;
  background: #fffaf4;
}

.human-verification .original-asset-graphic {
  width: 100%;
  height: auto;
  display: block;
}

.human-verification .original-asset-caption {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .human-verification {
    color: var(--text);
  }

  .human-verification .me-angle {
    color: var(--text);
  }

  .human-verification .human-warning {
    background: rgba(255, 122, 92, 0.16);
  }

  .human-verification .original-asset {
    background: rgba(255, 255, 255, 0.04);
  }
}

/* Mobile responsive typography */
@media (max-width: 560px) {
  h1 {
    font-size: var(--h1-size-mobile);
  }

  h2 {
    font-size: var(--h2-size-mobile);
  }

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

  h4 {
    font-size: var(--h4-size-mobile);
  }

  .footer-nav-box ul {
    flex-direction: column;
  }
  .footer-nav-box a {
    width: 100%;
    justify-content: center;
  }
  .footer-utilities {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-utilities a {
    width: 100%;
    justify-content: center;
  }

  .footer-nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-cluster ul {
    flex-direction: column;
  }
  .nav-cluster a {
    width: 100%;
    justify-content: center;
  }
  .nav-inline-utilities {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-inline-utilities a {
    width: 100%;
    justify-content: center;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* Print media query */
@media print {
  body {
    background: var(--white);
    color: var(--black);
  }

  .shell {
    max-width: 100%;
    padding: 1.2rem;
  }

  .skip-link {
    display: none;
  }

  a {
    text-decoration: underline;
  }
}

@media (pointer: coarse) {
  .masthead-nav a {
    min-height: 48px;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* posts-beginning-end.css */

:root {
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.shell {
  max-width: 720px;
  margin-inline: auto;
  padding: 1.6rem 1.2rem 2.2rem;
}
header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.header-inner {
  max-width: 720px;
  margin-inline: auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-decoration: none;
}
nav a {
  margin-left: 1.2rem;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}
p {
  margin: 0 0 1.2rem;
}
ul,
ol {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th,
td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
th {
  background: var(--border);
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.series-nav {
  background: var(--border);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.series-nav strong {
  display: block;
  margin-bottom: 0.5rem;
}
.series-nav a {
  color: var(--accent);
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (pointer: coarse) {
  nav a {
    min-height: 48px;
  }
}
@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin-left: 0;
    margin-right: 0.5rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}
@media print {
  .skip-link {
    display: none;
  }
  a {
    text-decoration: underline;
  }
}

.article-sizing-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}

.size-tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-block;
}

.size-small {
  background: #c7d2fe;
  color: #1e40af;
}

.size-medium {
  background: #bfdbfe;
  color: #1e3a8a;
}

.size-large {
  background: #bfdbfe;
  color: #1e3a8a;
}

@media (prefers-color-scheme: dark) {
  .size-small {
    background: #1e3a8a;
    color: #c7d2fe;
  }

  .size-medium {
    background: #1e3a8a;
    color: #bfdbfe;
  }

  .size-large {
    background: #1e3a8a;
    color: #bfdbfe;
  }
}

/* ========================================
   posts-case-study.css
   ======================================== */

/* Case study shared styles.
   Theme, header, and footer are provided by:
   - /assets/global.css
   - /assets/header.css
   - /assets/footer.css
*/

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
}

.back {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

h1 {
  font-size: 2.2rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.note-box,
.callout,
.template-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.75rem 0;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9rem;
}

code {
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

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

@media (max-width: 560px) {
  .shell {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

@media print {
  .skip-link,
  nav,
  footer,
  .masthead-nav {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
}

/* ========================================
   tutorials-shared.css
   ======================================== */

/* Tutorials shared styles.
   Theme, header, and footer are provided by:
   - /assets/global.css
   - /assets/header.css
   - /assets/footer.css
*/

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  margin-bottom: 2rem;
}

.back {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

h1 {
  font-size: 2.2rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9rem;
}

code {
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

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

hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.5rem;
  text-align: left;
}

.comparison-table tr:first-child {
  background: var(--accent-soft);
}

.further-reading,
.tutorial-nav {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.further-reading ul {
  list-style: none;
  padding: 0;
}

@media (max-width: 560px) {
  .shell {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

@media print {
  .skip-link,
  header .back,
  nav,
  footer,
  .masthead-nav {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
  p {
    orphans: 3;
    widows: 3;
  }
}
/* Homepage restart pass: simplified structure, clearer pathways, less visual noise */

.brand-subtitle {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
  opacity: 0.85;
}

.hero {
  margin-bottom: 2rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  line-height: 1.2;
}

.hero .lead {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
}

#tone-toggle-checkbox:checked ~ .page .tone-toggle-label {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pathways,
.sixty-second-start,
.proof,
.featured {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 1.2rem 1.1rem;
}

.pathways h2,
.sixty-second-start h2,
.proof h2,
.featured h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.section-intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.path-grid {
  display: grid;
  gap: 0.9rem;
}

.path-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  padding: 1rem;
}

.path-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.path-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.path-card a {
  text-decoration: none;
  font-weight: 600;
}

.path-card a:hover {
  text-decoration: underline;
}

.sixty-second-start ol {
  margin: 0;
  padding-left: 1.2rem;
}

.sixty-second-start li {
  margin-bottom: 0.65rem;
}

.sixty-second-start li:last-child {
  margin-bottom: 0;
}

.proof ul {
  margin: 0;
  padding-left: 1.2rem;
}

.proof li {
  margin-bottom: 0.55rem;
}

.proof li:last-child {
  margin-bottom: 0;
}

.featured {
  margin-bottom: 0.8rem;
}

.featured-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.featured h2 a {
  text-decoration: none;
}

.featured h2 a:hover {
  text-decoration: underline;
}

.featured p {
  margin: 0;
}

.featured-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.featured-links a {
  text-decoration: none;
  font-weight: 600;
}

.featured-links a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Contact Page Specific Styles */

.contact-method {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  margin-bottom: 1rem;
}

.contact-method h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.contact-method p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-method a {
  color: var(--accent);
}

.note-box {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-size: 0.95rem;
}

.note-box p {
  margin: 0;
}

.contact-email-fallback {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-form {
  margin: 2rem 0;
}

.form-required {
  color: var(--accent);
  margin-left: 0.2rem;
}

.form-required abbr {
  text-decoration: none;
  cursor: help;
}

.form-required-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-loading-state {
  display: none;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-loading-state.show {
  display: block;
}

form[data-state="loading"] .form-submit {
  display: none;
}

form[data-state="loading"] .form-loading-state {
  display: block;
}

.quick-pick {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.quick-pick p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-pick ul {
  margin: 0;
  padding-left: 1.25rem;
}

.quick-pick code {
  display: block;
  margin-top: 0.6rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  overflow-x: auto;
}

.cred {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--surface-shadow);
}

.cred h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.cred ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cred li {
  margin: 0.4rem 0;
  color: var(--muted);
}

/* Radio button grid layout */
.radio-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 560px) {
  .radio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.radio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: var(--bg);
}

.radio-card label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
}

/* Form status messages */
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  display: none;
}

.form-status.success {
  border-color: color-mix(in srgb, var(--green) 35%, var(--border));
  background: color-mix(in srgb, var(--green) 12%, var(--bg-alt));
}

.form-status.error {
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
  background: color-mix(in srgb, var(--red) 10%, var(--bg-alt));
}
/* Beginning & End series specific styles */

.shell {
  max-width: 900px;
  margin-inline: auto;
  padding: 1.5rem clamp(1.1rem, 3vw, 1.6rem) 2.4rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.series-nav {
  background: var(--border);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.series-nav strong {
  display: block;
  margin-bottom: 0.5rem;
}

.series-nav a {
  color: var(--accent);
}

.article-sizing-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}

.size-tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-block;
}

.size-small {
  background: #c7d2fe;
  color: #1e40af;
}

.size-medium {
  background: #bfdbfe;
  color: #1e3a8a;
}

.size-large {
  background: #bfdbfe;
  color: #1e3a8a;
}

@media (prefers-color-scheme: dark) {
  .size-small {
    background: #1e3a8a;
    color: #c7d2fe;
  }

  .size-medium {
    background: #1e3a8a;
    color: #bfdbfe;
  }

  .size-large {
    background: #1e3a8a;
    color: #bfdbfe;
  }
}
/* Case study shared styles.
   Theme, header, and footer are provided by:
   - /assets/global.css
   - /assets/header.css
   - /assets/footer.css
*/

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
}

.back {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

h1 {
  font-size: 2.2rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.note-box,
.callout,
.template-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.75rem 0;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9rem;
}

code {
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

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

@media (max-width: 560px) {
  .shell {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

@media print {
  .skip-link,
  nav,
  footer,
  .masthead-nav {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
}

/* Tutorials shared styles.
   Theme, header, and footer are provided by:
   - /assets/global.css
   - /assets/header.css
   - /assets/footer.css
*/

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  margin-bottom: 2rem;
}

.back {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.back a {
  color: var(--accent);
  text-decoration: none;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

h1 {
  font-size: 2.2rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 1rem 0;
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9rem;
}

code {
  background: var(--bg-alt);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

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

hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.5rem;
  text-align: left;
}

.comparison-table tr:first-child {
  background: var(--accent-soft);
}

.further-reading,
.tutorial-nav {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.further-reading ul {
  list-style: none;
  padding: 0;
}

@media (max-width: 560px) {
  .shell {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
}

@media print {
  .skip-link,
  header .back,
  nav,
  footer,
  .masthead-nav {
    display: none !important;
  }
  a {
    text-decoration: underline;
  }
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
  p {
    orphans: 3;
    widows: 3;
  }
}
:root {
  --card-radius: 12px;
  --card-border: color-mix(in srgb, var(--border) 75%, transparent);
  --card-bg: color-mix(in srgb, var(--bg-alt) 85%, transparent);
}

.wb-lede {
  font-size: 1rem;
  color: var(--muted);
  max-width: 70ch;
}

.wb-callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

.wb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.wb-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1rem 1rem 0.9rem;
}

.wb-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.wb-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.wb-badge--must {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  color: var(--text);
}

.wb-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--card-bg);
}

.wb-table th,
.wb-table td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  vertical-align: top;
}

.wb-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}

.wb-table tr:last-child td {
  border-bottom: none;
}

.wb-muted {
  color: var(--muted);
}

.wb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0 1.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-alt) 78%, transparent);
}

.wb-actions .wb-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.wb-actions .wb-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wb-actions .wb-actions-right a,
.wb-actions button {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: inherit;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.wb-actions .wb-actions-right a:hover,
.wb-actions button:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.wb-actions .wb-actions-right a:focus-visible,
.wb-actions button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

@media print {
  .wb-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .wb-table th:nth-child(3),
  .wb-table td:nth-child(3) {
    display: none;
  }
}
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header .back {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.page-header .meta-line {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-header .lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}

.article-metadata {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
}

.article-sizing-info {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.article-sizing-info .size-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.size-small {
  background: #1e3a8a;
  color: #c7d2fe;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.size-medium {
  background: #7c3aed;
  color: #f5f3ff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.size-large {
  background: #155e75;
  color: #cffafe;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

@media (prefers-color-scheme: dark) {
  .size-small {
    background: #1e40af;
    color: #dbeafe;
  }

  .size-medium {
    background: #9333ea;
    color: #fae8ff;
  }

  .size-large {
    background: #0d9488;
    color: #ccfbf1;
  }
}

.tldr-box {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.tldr-box h2 {
  margin-top: 0;
  font-family: var(--font-serif);
}

.citations-section--practitioner {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.feedback-block {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.feedback-block h2 {
  font-family: var(--font-serif);
  margin-top: 0;
}

.feedback-buttons {
  margin-bottom: 1rem;
}

.feedback-choice {
  margin-right: 1rem;
  cursor: pointer;
}

.feedback-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.feedback-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  display: block;
  margin-bottom: 1rem;
}

.feedback-submit {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.feedback-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ========================================
   Utility classes (extracted from inline styles)
   ======================================== */

/* Pre-formatted code/text blocks used in research pages */
.pre-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Inline icon alignment (SVG icons in running text) */
.icon-inline {
  vertical-align: text-bottom;
  margin-right: 0.25rem;
}

/* Styled horizontal rule (section divider) */
.hr-section {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Simple data table */
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table-simple th,
.table-simple td {
  text-align: left;
  padding: 0.5rem;
}
.table-simple tr {
  border-bottom: 1px solid var(--border);
}
.table-simple thead tr {
  border-bottom: 2px solid var(--border);
}

/* Compact list inside table cells or tight contexts */
.list-compact {
  margin: 0;
  padding-left: 1.5rem;
}

/* CTA section (accent background callout) */
.section-cta {
  background: var(--accent);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
  text-align: center;
}
.section-cta h2,
.section-cta p,
.section-cta a {
  color: var(--on-accent);
}
.section-cta h2 {
  margin-top: 0;
}
.section-cta p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.section-cta .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
}

/* Aside section (bg-alt background box) */
.section-aside {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
}

/* Page footer note (privacy, terms, etc.) */
.page-footer-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3rem;
}

/* Back-link paragraph */
.back-link {
  margin: 0 0 0.75rem;
}

/* Callout box with accent border */
.callout-accent {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}
