/* ============================================================
   MyWaypoint Design Lab — design-lab.css
   Shared styles for all Design Lab tools (DL.2.0+)
   ============================================================ */

/* ── Reduced Motion — consolidated (A.4.1) ── */
@media (prefers-reduced-motion: reduce) {
  .dl-progress-step {
    transition: none;
  }

  .dl-swatch {
    transition: none;
  }

  .dl-swatch:hover {
    flex: 1;
  }

  .dl-option label {
    transition: none;
  }

  .dl-colour-card {
    transition: none;
  }

  .lc-article-card:hover,
  .lc-path:hover,
  .ig-playbook-card:hover {
    transform: none;
  }

  .dl-preview-tab {
    transition: none;
  }

  .dl-export-tab {
    transition: none;
  }
}

/* -- Tool layout -- */
.dl-tool-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .dl-tool-wrap {
    grid-template-columns: 1fr;
  }
  .dl-tool-sidebar {
    order: 1;
  }
  .dl-tool-main {
    order: 0;
  }
}

/* -- Step form -- */
.dl-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.dl-step {
  display: none;
}
.dl-step.active {
  display: block;
}
.dl-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dl-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0;
}
.dl-step-hint {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin: -0.5rem 0 1rem;
}

/* -- Progress bar -- */
.dl-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.dl-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--clr-border);
  transition: background 0.25s;
}
.dl-progress-step.done {
  background: var(--clr-accent);
}
.dl-progress-step.active {
  background: var(--clr-accent);
  opacity: 0.5;
}

/* -- Option grid (single-select tiles) -- */
.dl-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dl-option-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.dl-option {
  position: relative;
}
.dl-option input[type="radio"],
.dl-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.dl-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  min-height: 2.75rem;
  line-height: 1.3;
  background: var(--clr-surface);
  user-select: none;
}
.dl-option label:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
}
.dl-option input:checked + label {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  font-weight: 600;
}
.dl-option input:focus-visible + label {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* -- Step nav buttons -- */
.dl-step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}
.dl-step-nav .btn-back {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-family: var(--font);
  text-decoration: underline;
}
.dl-step-nav .btn-back:hover {
  color: var(--clr-text);
}
.dl-validation-msg {
  font-size: 0.82rem;
  color: var(--clr-red, #c0392b);
  margin-top: 0.5rem;
  display: none;
}
.dl-validation-msg.visible {
  display: block;
}

/* -- Results panel -- */
.dl-results {
  display: none;
}
.dl-results.visible {
  display: block;
}

/* -- Palette swatch strip -- */
.dl-palette-strip {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  height: 80px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.dl-swatch {
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: flex 0.2s;
}
.dl-swatch:hover {
  flex: 1.4;
}
.dl-swatch-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  pointer-events: none;
}

/* -- Colour cards -- */
.dl-colour-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.dl-colour-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.dl-colour-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.dl-colour-swatch {
  height: 64px;
}
.dl-colour-info {
  padding: 0.5rem 0.65rem;
  background: var(--clr-surface);
}
.dl-colour-role {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-muted);
  margin-bottom: 0.15rem;
}
.dl-colour-hex {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text);
  font-family: monospace;
}
.dl-colour-name {
  font-size: 0.75rem;
  color: var(--clr-muted);
}

/* -- Why this palette works -- */
.dl-rationale {
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.dl-rationale h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}
.dl-rationale p {
  font-size: 0.92rem;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.65;
}

/* -- Accessibility badge -- */
.dl-a11y-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.dl-a11y-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dl-a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dl-a11y-badge--excellent {
  background: #eaf5ea;
  color: #2d6a2d;
  border: 1px solid #a3d4a3;
}
.dl-a11y-badge--good {
  background: #fffbea;
  color: #6b5000;
  border: 1px solid #f0d060;
}
.dl-a11y-badge--needs {
  background: #fdf0f0;
  color: #8b1a1a;
  border: 1px solid #f5c6c6;
}
.dl-a11y-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dl-a11y-checks li {
  font-size: 0.85rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dl-a11y-checks .pass {
  color: #2d6a2d;
}
.dl-a11y-checks .warn {
  color: #8b5000;
}

/* -- Live preview -- */
.dl-preview {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dl-preview-tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.dl-preview-tabs::-webkit-scrollbar {
  display: none;
}
.dl-preview-tab {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.dl-preview-tab:hover {
  color: var(--clr-text);
}
.dl-preview-tab.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}
.dl-preview-frame {
  display: none;
  padding: 1.5rem;
  min-height: 200px;
}
.dl-preview-frame.active {
  display: block;
}

/* Preview mock elements */
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.mock-nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
}
.mock-nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
}
.mock-hero {
  padding: 2rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.mock-hero h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.mock-hero p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.mock-btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}
.mock-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 600px) {
  .mock-card-row {
    grid-template-columns: 1fr;
  }
}
.mock-card {
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.mock-card h4 {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.mock-card p {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.8;
}
.mock-testimonial {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border-left: 4px solid;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-style: italic;
}
.mock-form {
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.mock-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
}

/* -- Export panel -- */
.dl-export {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dl-export-tabs {
  display: flex;
  border-bottom: 1px solid var(--clr-border);
}
.dl-export-tab {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.dl-export-tab.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}
.dl-export-panel {
  display: none;
  padding: 1rem;
}
.dl-export-panel.active {
  display: block;
}
.dl-code {
  background: #1a1a2e;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
.dl-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: var(--clr-surface);
  cursor: pointer;
  font-family: var(--font);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.dl-copy-btn:hover {
  background: var(--clr-accent-lt);
  border-color: var(--clr-accent);
}
.dl-copy-btn.copied {
  color: #2d6a2d;
  border-color: #a3d4a3;
  background: #eaf5ea;
}

/* -- Sidebar -- */
.dl-sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.dl-sidebar-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-muted);
  margin-bottom: 1rem;
}
.dl-colour-psych-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.dl-colour-psych-item:last-child {
  margin-bottom: 0;
}
.dl-psych-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.dl-psych-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-text);
  margin-bottom: 0.1rem;
}
.dl-psych-text span {
  font-size: 0.8rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

/* -- Reset / try again -- */
.dl-reset-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.dl-reset-bar p {
  font-size: 0.88rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin: 0;
}

/* -- Responsive tweaks -- */
@media (max-width: 480px) {
  .dl-form {
    padding: 1.25rem;
  }
  .dl-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-colour-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-palette-strip {
    height: 60px;
  }
}

/* ============================================================
   DL.3.0 — Personality Palette—additions
   ============================================================ */

/* -- Communication style pairs -- */
.dl-comm-pair {
  margin-bottom: 1.25rem;
}
.dl-comm-pair:last-child {
  margin-bottom: 0;
}
.dl-comm-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}
.dl-comm-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.dl-comm-options .dl-option label {
  font-size: 0.82rem;
  min-height: 2.5rem;
}
.dl-comm-mid {
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-muted);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .dl-comm-options {
    grid-template-columns: 1fr;
  }
  .dl-comm-mid {
    display: none;
  }
}

/* -- Profile result card -- */
.pp-profile-card {
  background: linear-gradient(135deg, #0d2d52, #065595);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.pp-profile-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}
.pp-profile-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.pp-profile-supporting {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}
.pp-profile-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-bottom: 1rem;
}
.pp-profile-traits li {
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}
.pp-profile-summary {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0;
}

/* -- Result section cards -- */
.pp-result-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.pp-result-section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}
.pp-result-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.35rem;
  margin-top: 0.85rem;
}
.pp-result-section h4:first-of-type {
  margin-top: 0;
}
.pp-result-section p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.pp-result-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}
.pp-result-section ul li {
  font-size: 0.88rem;
  color: var(--clr-muted);
  padding-left: 1.1rem;
  position: relative;
}
.pp-result-section ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}

/* -- Voice before/after -- */
.pp-voice-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
@media (max-width: 560px) {
  .pp-voice-example {
    grid-template-columns: 1fr;
  }
}
.pp-voice-before,
.pp-voice-after {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.55;
}
.pp-voice-before {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  color: #8b1a1a;
}
.pp-voice-after {
  background: #eaf5ea;
  border: 1px solid #a3d4a3;
  color: #2d6a2d;
}
.pp-voice-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
  font-style: normal;
}

/* -- Typography preview -- */
.pp-typo-preview {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.75rem;
}
.pp-typo-heading-sample {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.pp-typo-body-sample {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.65;
  margin: 0;
}

/* -- Website style grid -- */
.pp-ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.pp-ws-item {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.pp-ws-item-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-accent);
  margin-bottom: 0.3rem;
}
.pp-ws-item-value {
  font-size: 0.85rem;
  color: var(--clr-text);
  line-height: 1.45;
}

/* -- Related learning -- */
.pp-related-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pp-related-links li a {
  font-size: 0.88rem;
  color: var(--clr-accent);
}
.pp-related-links li a:hover {
  text-decoration: underline;
}

/* -- Privacy note -- */
.pp-privacy-note {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}

/* -- Option with description -- */
.dl-option-described label {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem 0.9rem;
  min-height: auto;
  gap: 0.2rem;
}
.dl-option-described .opt-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-text);
}
.dl-option-described .opt-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--clr-muted);
  line-height: 1.4;
}
.dl-option input:checked + label .opt-title {
  color: var(--clr-accent);
}
.dl-option input:checked + label .opt-desc {
  color: var(--clr-accent);
  opacity: 0.8;
}

/* ============================================================
   DL.3.5 — Learning Centre Article styles
   ============================================================ */

/* -- Article layout -- */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: 2;
  }
  .article-body {
    order: 1;
  }
}

/* -- Article hero -- */
.article-hero {
  background: linear-gradient(135deg, #0d2d52, #065595);
  padding: 3rem 0 2.5rem;
}
.article-hero .article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.article-hero .article-summary {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* -- Table of contents -- */
.article-toc {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.article-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.article-toc ol li {
  counter-increment: toc;
}
.article-toc ol li a {
  font-size: 0.88rem;
  color: var(--clr-text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.article-toc ol li a::before {
  content: counter(toc) ".";
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent);
  min-width: 1.2rem;
}
.article-toc ol li a:hover {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* -- Article body typography -- */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--clr-border);
  scroll-margin-top: 5rem;
}
.article-body h2:first-of-type {
  margin-top: 0;
  border-top: none;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 5rem;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text);
  margin-bottom: 1rem;
  max-width: 700px;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text);
  margin-bottom: 0.3rem;
}
.article-body strong {
  color: var(--clr-text);
}

/* -- Callout boxes -- */
.article-callout {
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
}
.article-callout--tip {
  background: #eaf5ea;
  border: 1px solid #a3d4a3;
  border-left: 4px solid #2d6a2d;
  color: #1a3d1a;
}
.article-callout--note {
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--clr-accent);
  color: var(--clr-text);
}
.article-callout--warn {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-left: 4px solid #b8860b;
  color: #4a3800;
}
.article-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -- Colour example blocks -- */
.colour-example {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
}
.colour-example-swatch {
  width: 80px;
  flex-shrink: 0;
}
.colour-example-content {
  padding: 1rem 1.25rem;
  background: var(--clr-surface);
}
.colour-example-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--clr-text);
}
.colour-example-content p {
  font-size: 0.88rem;
  color: var(--clr-muted);
  margin: 0;
  line-height: 1.55;
}

/* -- Contrast demo -- */
.contrast-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 560px) {
  .contrast-demo {
    grid-template-columns: 1fr;
  }
}
.contrast-demo-item {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contrast-demo-item .contrast-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  display: block;
}
.contrast-demo-item .contrast-ratio {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.4rem;
  display: block;
}

/* -- Key takeaways -- */
.article-takeaways {
  background: linear-gradient(135deg, #0d2d52, #065595);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}
.article-takeaways h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.article-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.article-takeaways ul li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  padding-left: 1.5rem;
  position: relative;
}
.article-takeaways ul li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: #7dd87d;
  font-weight: 700;
}

/* -- Related tools panel -- */
.article-tools {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.article-tools h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.article-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.article-tool-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  display: block;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.article-tool-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(26, 79, 138, 0.1);
}
.article-tool-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-muted);
  margin-bottom: 0.3rem;
}
.article-tool-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.25rem;
}
.article-tool-card-desc {
  font-size: 0.8rem;
  color: var(--clr-muted);
  line-height: 1.45;
}
.article-tool-card--coming .article-tool-card-name {
  color: var(--clr-muted);
}

/* -- Related articles -- */
.article-related {
  margin-top: 2rem;
}
.article-related h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.article-related-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  display: block;
  background: var(--clr-surface);
  transition: border-color 0.15s;
}
.article-related-card:hover {
  border-color: var(--clr-accent);
}
.article-related-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-accent);
  margin-bottom: 0.3rem;
}
.article-related-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.35;
}

/* -- Article sidebar -- */
.article-sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.article-sidebar-card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 0.85rem;
}
.article-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article-sidebar-card ul li a {
  font-size: 0.88rem;
  color: var(--clr-accent);
  text-decoration: none;
}
.article-sidebar-card ul li a:hover {
  text-decoration: underline;
}
.article-sidebar-card p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.article-sidebar-card p:last-child {
  margin-bottom: 0;
}

/* -- Learning Centre article cards -- */
.lc-article-card {
  background:
    radial-gradient(circle at top left, rgba(6,85,149,0.05), transparent 55%),
    #ffffff;
  border: 1px solid rgba(6,85,149,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.lc-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6,85,149,0.30);
  box-shadow: 0 8px 20px rgba(6,85,149,0.08);
}
.lc-article-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
}
.lc-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}
.lc-article-summary {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.55;
  flex: 1;
}
.lc-article-meta {
  font-size: 0.78rem;
  color: var(--clr-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.lc-article-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* -- Learning paths -- */
.lc-path {
  background:
    radial-gradient(circle at top left, rgba(6,85,149,0.05), transparent 55%),
    #ffffff;
  border: 1px solid rgba(6,85,149,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.lc-path:hover {
  transform: translateY(-3px);
  border-color: rgba(6,85,149,0.30);
  box-shadow: 0 8px 20px rgba(6,85,149,0.08);
}
.lc-path-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.lc-path-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1rem;
}
.lc-path-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: path-step;
}
.lc-path-steps li {
  counter-increment: path-step;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--clr-text);
}
.lc-path-steps li::before {
  content: counter(path-step);
  min-width: 1.4rem;
  height: 1.4rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-path-steps li a {
  color: var(--clr-accent);
  text-decoration: none;
}
.lc-path-steps li a:hover {
  text-decoration: underline;
}
.lc-path-steps li span {
  color: var(--clr-muted);
  font-style: italic;
}

/* ============================================================
   DL.4.0 — Accessibility Auditor—styles
   ============================================================ */

/* -- Resource strip -- */
.aa-resource-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}
.aa-resource-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-accent);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.aa-resource-link:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
}
.aa-resource-icon { font-size: .9rem; }

/* -- Mode selector -- */
.aa-mode-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1rem;
}
.aa-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: .5rem;
}
.aa-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.25rem;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative;
}
.aa-mode-card:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
  box-shadow: 0 2px 12px rgba(26,79,138,.1);
}
.aa-mode-card.aa-mode-active {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
}
/* Vibe Extractor uses its own class to avoid collision */
.ve-mode-active {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
}
.aa-mode-card:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}
.aa-mode-icon { font-size: 1.4rem; }
.aa-mode-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
}
.aa-mode-desc {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.45;
}
.aa-mode-badge {
  display: inline-block;
  margin-top: .25rem;
  padding: .2rem .6rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* -- Colour inputs -- */
.aa-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: .5rem;
}
@media (max-width: 560px) { .aa-input-row { grid-template-columns: 1fr; } }

.aa-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.aa-input-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.aa-input-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
}
.aa-colour-input-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .35rem .6rem;
  background: var(--clr-bg);
  transition: border-color .15s;
}
.aa-colour-input-wrap:focus-within { border-color: var(--clr-accent); }
.aa-colour-input-wrap input[type="color"] {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.aa-colour-input-wrap input[type="text"] {
  border: none;
  background: none;
  font-size: .9rem;
  font-family: monospace;
  color: var(--clr-text);
  width: 100%;
  outline: none;
  font-weight: 600;
}
.aa-input-hint {
  font-size: .75rem;
  color: var(--clr-muted);
  margin: 0;
}
.aa-input-err {
  font-size: .78rem;
  color: var(--clr-red, #c0392b);
  margin: 0;
  min-height: 1rem;
}
.aa-import-msg {
  font-size: .88rem;
  color: var(--clr-muted);
  margin-bottom: .75rem;
}

/* -- Section headings inside results -- */
.aa-section-heading {
  margin-bottom: 1rem;
}
.aa-section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .25rem;
}
.aa-section-heading p {
  font-size: .88rem;
  color: var(--clr-muted);
  margin: 0;
}

/* -- Summary cards -- */
.aa-overall-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.aa-overall-badge strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.aa-overall-badge p { font-size: .88rem; margin: 0; }
.aa-overall-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

.aa-summary-excellent { background: #eaf5ea; border: 1px solid #a3d4a3; color: #1a3d1a; }
.aa-summary-good      { background: #fffbea; border: 1px solid #f0d060; color: #4a3800; }
.aa-summary-borderline{ background: #fff4e6; border: 1px solid #f5c06a; color: #5a3000; }
.aa-summary-poor      { background: #fdf0f0; border: 1px solid #f5c6c6; color: #8b1a1a; }

.aa-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.aa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  text-align: center;
}
.aa-stat-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .35rem;
}
.aa-stat-label {
  font-size: .75rem;
  color: var(--clr-muted);
  line-height: 1.35;
}
.aa-stat-strong    { background: #eaf5ea; border-color: #a3d4a3; }
.aa-stat-strong .aa-stat-num { color: #2d6a2d; }
.aa-stat-borderline{ background: #fffbea; border-color: #f0d060; }
.aa-stat-borderline .aa-stat-num { color: #8b5000; }
.aa-stat-problem   { background: #fdf0f0; border-color: #f5c6c6; }
.aa-stat-problem .aa-stat-num { color: #8b1a1a; }

/* -- Findings list -- */
.aa-findings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .85rem;
  font-size: .78rem;
}
.aa-findings-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.aa-finding-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-rows: auto auto;
  gap: .4rem .75rem;
  align-items: center;
  padding: .85rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.aa-finding-swatches {
  display: flex;
  gap: .25rem;
  grid-row: 1 / 3;
}
.aa-finding-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.12);
  display: block;
  flex-shrink: 0;
}
.aa-finding-info { grid-column: 2; }
.aa-finding-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
}
.aa-finding-context {
  font-size: .75rem;
  color: var(--clr-muted);
}
.aa-finding-ratio {
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-text);
  font-family: monospace;
  white-space: nowrap;
}
.aa-finding-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.aa-finding-explain {
  grid-column: 2 / 5;
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.45;
}
@media (max-width: 600px) {
  .aa-finding-row { grid-template-columns: auto 1fr; }
  .aa-finding-ratio { grid-column: 2; }
  .aa-finding-badge { grid-column: 2; }
  .aa-finding-explain { grid-column: 1 / 3; }
}

/* -- WCAG badge colours -- */
.aa-badge-aa-aaa   { background: #eaf5ea; color: #2d6a2d; border: 1px solid #a3d4a3; }
.aa-badge-aa-pass  { background: #e8f0fe; color: #065595; border: 1px solid #b3cef5; }
.aa-badge-aa-large { background: #fffbea; color: #6b5000; border: 1px solid #f0d060; }
.aa-badge-aa-fail  { background: #fdf0f0; color: #8b1a1a; border: 1px solid #f5c6c6; }

/* -- Problems -- */
.aa-no-problems {
  padding: 1.1rem 1.4rem;
  background: #eaf5ea;
  border: 1px solid #a3d4a3;
  border-radius: var(--radius);
  font-size: .92rem;
  color: #1a3d1a;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.aa-problem-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-red, #c0392b);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: .75rem;
}
.aa-problem-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .4rem;
}
.aa-problem-desc {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.55;
  margin-bottom: .6rem;
}
.aa-problem-fix {
  font-size: .85rem;
  color: var(--clr-text);
  line-height: 1.5;
  padding: .65rem .9rem;
  background: var(--clr-accent-lt);
  border-radius: 4px;
}

/* -- Colour blindness panel -- */
.aa-cb-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.aa-cb-intro {
  font-size: .88rem;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.aa-cb-type {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.aa-cb-type:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.aa-cb-type-header { margin-bottom: .85rem; }
.aa-cb-type-header strong { font-size: .92rem; color: var(--clr-text); display: block; margin-bottom: .2rem; }
.aa-cb-type-header p { font-size: .8rem; color: var(--clr-muted); margin: 0; }
.aa-cb-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.aa-cb-swatch-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.aa-cb-swatch-orig,
.aa-cb-swatch-sim {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.12);
}
.aa-cb-swatch-label {
  font-size: .68rem;
  color: var(--clr-muted);
  text-align: center;
  font-weight: 600;
}
.aa-cb-note {
  font-size: .82rem;
  color: var(--clr-muted);
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* -- WCAG quick reference sidebar -- */
.aa-wcag-ref {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.aa-wcag-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.aa-wcag-badge {
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: center;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}
.aa-wcag-desc {
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

/* -- Template row -- */
.aa-template-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.aa-template-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.aa-template-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(26,79,138,.1);
}
.aa-template-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-text);
}
.aa-template-desc {
  font-size: .8rem;
  color: var(--clr-muted);
  line-height: 1.45;
  flex: 1;
}
.aa-template-cta {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
}

/* -- Hidden utility -- */
.aa-hidden { display: none !important; }

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .aa-mode-card,
  .aa-resource-link,
  .aa-template-card { transition: none; }
}

/* ============================================================
   DL.4.5 — Design Lab Dashboard styles
   ============================================================ */

/* -- Stats row -- */
.dl-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-stat-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem .75rem;
  border-right: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.dl-stat-item:last-child { border-right: none; }
.dl-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: .3rem;
}
.dl-stat-label {
  font-size: .75rem;
  color: var(--clr-muted);
  text-align: center;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .dl-stats-row { flex-wrap: wrap; }
  .dl-stat-item { min-width: calc(50% - 1px); border-bottom: 1px solid var(--clr-border); }
}

/* -- Starting point cards -- */
.dl-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.dl-start-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .15s, box-shadow .15s;
}
.dl-start-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 12px rgba(26,79,138,.08);
}
.dl-start-icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
  display: block;
}
.dl-start-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .4rem;
}
.dl-start-desc {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.5;
  margin-bottom: .85rem;
}
.dl-start-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.dl-start-links li a {
  font-size: .85rem;
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 500;
}
.dl-start-links li a:hover { text-decoration: underline; }
.dl-coming-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .1rem .4rem;
  background: var(--clr-border);
  color: var(--clr-muted);
  border-radius: 999px;
  margin-left: .3rem;
  vertical-align: middle;
}

/* -- Tool dashboard cards -- */
.dl-tool-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.dl-tool-dash-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .15s, border-color .15s;
}
.dl-tool-dash-card--live {
  border-top: 3px solid var(--clr-accent);
}
.dl-tool-dash-card--live:hover {
  box-shadow: 0 4px 16px rgba(26,79,138,.1);
  border-color: var(--clr-accent);
}
.dl-tool-dash-card--soon {
  opacity: .75;
}
.dl-tool-dash-header {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.dl-tool-dash-status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dl-tool-dash-status--live { color: #2d6a2d; }
.dl-tool-dash-status--soon { color: var(--clr-muted); }
.dl-tool-dash-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
}
.dl-tool-dash-desc {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.dl-tool-dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.dl-tool-dash-tags span {
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  border-radius: 999px;
  border: 1px solid #c5d8f0;
}
.dl-tool-dash-actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.dl-tool-dash-learn {
  font-size: .82rem;
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 500;
}
.dl-tool-dash-learn:hover { text-decoration: underline; }
.dl-tool-dash-coming {
  font-size: .82rem;
  color: var(--clr-muted);
  font-style: italic;
}

/* -- Industry grid -- */
.dl-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1.5rem;
}
.dl-industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem .75rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.dl-industry-card:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
}
.dl-industry-icon { font-size: 1.4rem; }

/* ============================================================
   DL.5.0 — Vibe Extractor—styles
   ============================================================ */

/* -- URL input -- */
.ve-url-wrap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}
.ve-url-wrap label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
}
.ve-url-input-row {
  display: flex;
  gap: .5rem;
}
.ve-url-input-row input[type="url"] {
  flex: 1;
  padding: .6rem .9rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color .15s;
}
.ve-url-input-row input[type="url"]:focus {
  outline: none;
  border-color: var(--clr-accent);
}
@media (max-width: 560px) {
  .ve-url-input-row { flex-direction: column; }
}

/* -- URL suggestions -- */
.ve-suggestions {
  margin-top: .25rem;
}
.ve-suggestion-list {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ve-suggestion-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .65rem 1rem;
  border: none;
  border-bottom: 1px solid var(--clr-border);
  background: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background .12s;
}
.ve-suggestion-item:last-child { border-bottom: none; }
.ve-suggestion-item:hover { background: var(--clr-accent-lt); }
.ve-suggestion-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-text);
}
.ve-suggestion-url {
  font-size: .8rem;
  color: var(--clr-muted);
}

/* -- Example grid -- */
.ve-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
  margin-top: .5rem;
}
.ve-example-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.1rem;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.ve-example-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 12px rgba(26,79,138,.1);
}
.ve-example-card:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}
.ve-example-swatches {
  display: flex;
  gap: .3rem;
  margin-bottom: .2rem;
}
.ve-example-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  display: block;
}
.ve-example-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ve-example-tagline {
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.35;
}
.ve-example-cta {
  font-size: .8rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: .2rem;
}

/* -- Profile card -- */
.ve-profile-card {
  background: linear-gradient(135deg, #0d2d52, #065595);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.ve-profile-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.ve-profile-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.ve-profile-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ve-profile-swatches {
  display: flex;
  gap: .5rem;
  margin-bottom: .6rem;
}
.ve-profile-swatch {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.ve-profile-colour-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: .04em;
}

/* -- Analysis grid -- */
.ve-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ve-analysis-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ve-analysis-icon {
  font-size: 1.3rem;
  margin-bottom: .1rem;
}
.ve-analysis-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
}
.ve-analysis-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ve-analysis-body {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin: 0;
}

/* -- Perception card -- */
.ve-perception-card {
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ve-perception-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
  margin-bottom: .75rem;
}
.ve-perception-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ve-perception-list li {
  font-size: .9rem;
  color: var(--clr-text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.ve-perception-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}
.ve-perception-note {
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* -- Section headings -- */
.ve-section-heading {
  margin-bottom: 1rem;
}
.ve-section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .25rem;
}
.ve-section-heading p {
  font-size: .88rem;
  color: var(--clr-muted);
  margin: 0;
}

/* -- Pattern cards -- */
.ve-patterns-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.ve-pattern-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.ve-pattern-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .75rem;
}
.ve-pattern-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .5rem;
  margin-bottom: .4rem;
  align-items: baseline;
}
.ve-pattern-row:last-child { margin-bottom: 0; }
.ve-pattern-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-accent);
}
.ve-pattern-text {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.55;
}
@media (max-width: 480px) {
  .ve-pattern-row { grid-template-columns: 1fr; gap: .2rem; }
}

/* -- Apply list -- */
.ve-apply-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.ve-apply-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 1.1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.ve-apply-num {
  min-width: 1.6rem;
  height: 1.6rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .05rem;
}
.ve-apply-text {
  font-size: .9rem;
  color: var(--clr-text);
  line-height: 1.55;
}

/* -- Recommendations -- */
.ve-recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ve-rec-group-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-muted);
  margin-bottom: .6rem;
}
.ve-rec-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: border-color .15s, box-shadow .15s;
}
.ve-rec-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(26,79,138,.1);
}
.ve-rec-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ve-rec-desc {
  font-size: .8rem;
  color: var(--clr-muted);
  line-height: 1.45;
}
.ve-rec-cta {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: .15rem;
}

/* -- Disclaimer -- */
.ve-disclaimer {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-left: 4px solid #b8860b;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: .88rem;
  color: #4a3800;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.ve-disclaimer strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

/* -- Sidebar vocabulary -- */
.ve-vocab-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.ve-vocab-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.ve-vocab-item strong {
  font-size: .85rem;
  color: var(--clr-text);
}
.ve-vocab-item span {
  font-size: .78rem;
  color: var(--clr-muted);
  line-height: 1.45;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .ve-example-card,
  .ve-rec-card,
  .ve-suggestion-item { transition: none; }
}

/* ============================================================
   DL.5.5 — Industry Design Playbooks—styles
   ============================================================ */

/* -- Index page intro strip -- */
.ig-intro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
}
.ig-intro-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--clr-muted);
  font-weight: 500;
}
.ig-intro-icon { font-size: 1rem; }

/* -- Playbook grid (index) -- */
.ig-playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
/* MWD.PLAYBOOK.UI.1 — playbook card treatment */
.ig-playbook-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.4rem 1.4rem 1.4rem 1.85rem;
  background:
    radial-gradient(circle at top left, rgba(6,85,149,0.06), transparent 60%),
    #ffffff;
  border: 1px solid rgba(6,85,149,0.12);
  border-left: 7px solid rgba(6,85,149,0.22);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ig-playbook-card:hover {
  border-color: rgba(6,85,149,0.38);
  border-left-color: var(--clr-accent);
  box-shadow: 0 4px 18px rgba(6,85,149,0.13);
  transform: translateY(-3px);
}
/* Decorative spine — purely visual, no information conveyed */
.ig-playbook-label {
  position: absolute;
  top: .85rem;
  right: .9rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(6,85,149,0.45);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.ig-playbook-icon {
  font-size: 1.5rem;
  margin-bottom: .15rem;
  color: var(--clr-accent);
  opacity: .8;
}
.ig-playbook-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ig-playbook-desc {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.5;
  flex: 1;
}
.ig-playbook-cta {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: .25rem;
}

/* -- Comparison matrix -- */
.ig-matrix {
  margin-top: 1.5rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ig-matrix-head {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.4fr 1.4fr .8fr;
  gap: 0;
  background: var(--clr-accent);
  padding: .65rem 1rem;
}
.ig-matrix-head span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
}
.ig-matrix-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.4fr 1.4fr .8fr;
  gap: 0;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: background .12s;
}
.ig-matrix-row:last-child { border-bottom: none; }
.ig-matrix-row:hover { background: var(--clr-accent-lt); }
.ig-matrix-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ig-matrix-val {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.4;
}
.ig-matrix-a11y { font-style: italic; }
.ig-matrix-link {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ig-matrix-link:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .ig-matrix-head { display: none; }
  .ig-matrix-row {
    grid-template-columns: 1fr;
    gap: .25rem;
    padding: .85rem 1rem;
  }
  .ig-matrix-name { font-size: .92rem; margin-bottom: .2rem; }
}

/* -- Playbook page: hero meta -- */
.ig-pb-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.ig-pb-meta span { display: flex; align-items: center; gap: .35rem; }

/* -- Breadcrumb -- */
.ig-breadcrumb {
  font-size: .82rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.ig-breadcrumb a { color: var(--clr-accent); text-decoration: none; }
.ig-breadcrumb a:hover { text-decoration: underline; }
.ig-breadcrumb span[aria-current] { color: var(--clr-text); font-weight: 600; }

/* -- Snapshot grid -- */
.ig-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .ig-snapshot-grid {
    grid-template-columns: 1fr;
  }
}
.ig-snapshot-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.ig-snapshot-card--warn {
  border-left: 4px solid #f0d060;
  background: #fffbea;
}
.ig-snapshot-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
  margin-bottom: .75rem;
}
.ig-snapshot-card--warn .ig-snapshot-label { color: #8b5000; }
.ig-snapshot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ig-snapshot-list li {
  font-size: .85rem;
  color: var(--clr-text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}
.ig-snapshot-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}
.ig-snapshot-card--warn .ig-snapshot-list li::before { color: #b8860b; }

/* -- Colour direction grid -- */
.ig-colour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ig-colour-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.ig-colour-swatches {
  display: flex;
  gap: .4rem;
  margin-bottom: .85rem;
}
.ig-colour-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}
.ig-colour-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .5rem;
}
.ig-colour-rationale {
  font-size: .83rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin: 0;
}

/* -- Sample palette -- */
.ig-sample-palette {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 .75rem;
}
.ig-sample-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.ig-sample-colour {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
}
.ig-sample-role {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-muted);
}
.ig-sample-hex {
  font-size: .75rem;
  font-family: monospace;
  color: var(--clr-text);
  font-weight: 600;
}
.ig-palette-rationale {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.6;
  padding: .85rem 1.1rem;
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  margin-top: .5rem;
}

/* -- Typography grid -- */
.ig-typo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.ig-typo-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.ig-typo-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .5rem;
}
.ig-typo-desc {
  font-size: .83rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin: 0;
}

/* -- Personality tags -- */
.ig-personality-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}
.ig-personality-tag {
  padding: .4rem 1rem;
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-accent);
}

/* -- Website sections grid -- */
.ig-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
  margin-top: 1.1rem;
}
.ig-section-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--clr-text);
  padding: .55rem .75rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.ig-section-item span { color: var(--clr-accent); font-size: .6rem; }

/* -- Accessibility list -- */
.ig-a11y-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.1rem;
}
.ig-a11y-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #eaf5ea;
  border: 1px solid #a3d4a3;
  border-radius: var(--radius);
  font-size: .88rem;
  color: #1a3d1a;
  line-height: 1.5;
}
.ig-a11y-icon { font-size: .9rem; flex-shrink: 0; margin-top: .05rem; }

/* -- Tools grid -- */
.ig-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ig-tool-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
}
.ig-tool-card:hover {
  box-shadow: 0 2px 12px rgba(26,79,138,.1);
}
.ig-tool-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-text);
}
.ig-tool-desc {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.45;
  flex: 1;
}
.ig-tool-cta {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: .15rem;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .ig-playbook-card,
  .ig-tool-card,
  .ig-matrix-row { transition: none; }
}

/* ============================================================
   DL.6.0 — Brand Kit Builder—styles
   ============================================================ */

/* -- Import bar -- */
.bkb-import-bar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.bkb-import-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.bkb-import-msg {
  font-size: .85rem;
  color: var(--clr-accent);
  margin: .75rem 0 0;
  font-weight: 500;
}

/* -- Quote -- */
.bkb-quote {
  border-left: 4px solid var(--clr-accent);
  margin: 1.5rem 0;
  padding: .85rem 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--clr-text);
  background: var(--clr-accent-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* -- Deliverables grid -- */
.bkb-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .65rem;
  margin-top: 1.25rem;
}
.bkb-deliverable {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--clr-text);
}
.bkb-deliverable-icon { flex-shrink: 0; display: flex; align-items: center; color: var(--clr-accent); }

/* -- Kit section wrapper -- */
.bkb-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.bkb-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--clr-accent);
  margin-bottom: .6rem;
}
.bkb-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .35rem;
}
.bkb-section-desc {
  font-size: .88rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* -- Summary card -- */
.bkb-summary-card {
  background: linear-gradient(135deg, #0d2d52, #065595);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.bkb-summary-headline {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.bkb-summary-headline strong { color: #fff; }
.bkb-summary-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  margin: 0;
  line-height: 1.6;
}
.bkb-trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.bkb-trait {
  padding: .25rem .7rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}

/* -- Colour grid -- */
.bkb-colour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}
.bkb-colour-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bkb-colour-swatch {
  height: 64px;
  display: flex;
  align-items: flex-end;
  padding: .4rem .6rem;
}
.bkb-colour-info {
  padding: .5rem .65rem;
  background: var(--clr-surface);
}
.bkb-colour-hex {
  font-size: .88rem;
  font-weight: 700;
  color: var(--clr-text);
  font-family: monospace;
  margin-bottom: .15rem;
}
.bkb-colour-use {
  font-size: .75rem;
  color: var(--clr-muted);
  line-height: 1.35;
}

/* -- Typography grid -- */
.bkb-typo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.bkb-typo-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.bkb-typo-role {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  margin-bottom: .35rem;
}
.bkb-typo-value {
  font-size: .88rem;
  color: var(--clr-text);
  line-height: 1.45;
}

/* -- Voice grid -- */
.bkb-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.bkb-voice-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.bkb-voice-card--avoid {
  background: #fdf0f0;
  border-color: #f5c6c6;
}
.bkb-voice-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  margin-bottom: .4rem;
}
.bkb-voice-card--avoid .bkb-voice-label { color: #8b1a1a; }
.bkb-voice-value {
  font-size: .88rem;
  color: var(--clr-text);
  line-height: 1.55;
}
.bkb-voice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.bkb-voice-list li {
  font-size: .85rem;
  color: var(--clr-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.bkb-voice-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}
.bkb-voice-card--avoid .bkb-voice-list li { color: #8b1a1a; }
.bkb-voice-card--avoid .bkb-voice-list li::before { color: #c0392b; }

/* -- Website style grid -- */
.bkb-ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.bkb-ws-item {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.bkb-ws-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  margin-bottom: .35rem;
}
.bkb-ws-value {
  font-size: .85rem;
  color: var(--clr-text);
  line-height: 1.5;
}

/* -- Industry grid -- */
.bkb-industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* -- Template link -- */
.bkb-template-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.bkb-template-link:hover {
  background: var(--clr-accent-lt);
  box-shadow: 0 2px 10px rgba(26,79,138,.1);
}
.bkb-template-icon { font-size: 1.6rem; flex-shrink: 0; }
.bkb-template-info { display: flex; flex-direction: column; gap: .2rem; }
.bkb-template-label { font-size: .95rem; font-weight: 700; color: var(--clr-text); }
.bkb-template-cta { font-size: .82rem; color: var(--clr-accent); font-weight: 600; }

/* -- Resources grid -- */
.bkb-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.bkb-resource-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.bkb-resource-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(26,79,138,.1);
}
.bkb-resource-name { font-size: .9rem; font-weight: 700; color: var(--clr-text); }
.bkb-resource-time { font-size: .75rem; color: var(--clr-muted); }
.bkb-resource-cta { font-size: .82rem; color: var(--clr-accent); font-weight: 600; margin-top: .15rem; }

/* -- Preview wrap -- */
.bkb-preview-wrap { overflow: hidden; }

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .bkb-template-link,
  .bkb-resource-card,
  .bkb-deliverable { transition: none; }
}

/* -- Mobile -- */
@media (max-width: 600px) {
  .bkb-colour-grid { grid-template-columns: repeat(2, 1fr); }
  .bkb-voice-grid  { grid-template-columns: 1fr; }
  .bkb-ws-grid     { grid-template-columns: 1fr; }
  .bkb-typo-grid   { grid-template-columns: 1fr; }
}

/* ============================================================
   DL.6.5 — Platform Integration Layer styles
   ============================================================ */

/* -- Journey strip -- */
.dl-journey-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.dl-journey-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.dl-journey-steps {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.dl-journey-step {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--clr-muted);
  text-decoration: none;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.dl-journey-step:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.dl-journey-step--done {
  border-color: #a3d4a3;
  background: #eaf5ea;
  color: #2d6a2d;
  font-weight: 600;
}
.dl-journey-step--done:hover {
  border-color: #2d6a2d;
  color: #1a3d1a;
}
.dl-journey-icon {
  font-size: .8rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .dl-journey-name { display: none; }
  .dl-journey-icon { font-size: 1rem; }
  .dl-journey-step { padding: .35rem .5rem; }
}

/* -- Smart recommendation banners -- */
.dl-smart-banner {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  line-height: 1.55;
}
.dl-smart-banner--info {
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-left: 4px solid var(--clr-accent);
  color: var(--clr-text);
}
.dl-smart-banner--action {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-left: 4px solid #b8860b;
  color: #4a3800;
}
.dl-smart-banner--success {
  background: #eaf5ea;
  border: 1px solid #a3d4a3;
  border-left: 4px solid #2d6a2d;
  color: #1a3d1a;
}
.dl-smart-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.dl-smart-banner strong { color: inherit; }
.dl-smart-btn {
  display: inline-block;
  margin-top: .4rem;
  padding: .35rem .85rem;
  background: #b8860b;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.dl-smart-btn:hover { background: #8b6508; }

/* -- Next step recommendation -- */
.dl-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, #0d2d52, #065595);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.dl-next-step-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-bottom: .25rem;
}
.dl-next-step-tool {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}
.dl-next-step-reason {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.dl-next-step-cta {
  display: inline-block;
  padding: .55rem 1.25rem;
  background: #fff;
  color: var(--clr-accent);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.dl-next-step-cta:hover { background: var(--clr-accent-lt); }

/* -- Journey strip container (page-level) -- */
#dl-journey-strip {
  margin-bottom: 1.25rem;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .dl-journey-step,
  .dl-smart-btn,
  .dl-next-step-cta { transition: none; }
}


/* ============================================================
   DL.7.0 — Search & Discovery Layer
   ============================================================ */

/* -- Search section wrapper -- */
#dl-search-section {
  background: var(--clr-surface, #f8fafc);
  border-bottom: 1px solid var(--clr-border, #e2e8f0);
  padding: 2.5rem 0 2rem;
}

.dl-search-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-heading, #0f172a);
  margin: 0 0 0.35rem;
}

.dl-search-sub {
  font-size: 0.9rem;
  color: var(--clr-muted, #64748b);
  margin: 0 0 1.1rem;
}

/* -- Search input -- */
.dl-search-wrap {
  position: relative;
  max-width: 640px;
}

.dl-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--clr-muted, #64748b);
  pointer-events: none;
}

#dl-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-size: 1rem;
  border: 2px solid var(--clr-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  color: var(--clr-text, #1e293b);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

#dl-search-input:focus {
  border-color: var(--clr-primary, #1e40af);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

/* -- ARIA live region (visually hidden) -- */
#dl-search-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -- Popular searches row -- */
.dl-popular-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.dl-popular-label {
  font-size: 0.8rem;
  color: var(--clr-muted, #64748b);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dl-popular-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 20px;
  background: #fff;
  color: var(--clr-primary, #1e40af);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
}

.dl-popular-tag:hover,
.dl-popular-tag:focus-visible {
  background: var(--clr-primary, #1e40af);
  color: #fff;
  border-color: var(--clr-primary, #1e40af);
  outline: none;
}

/* -- Results container -- */
#dl-search-results {
  margin-top: 1.5rem;
}

.dl-search-results-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dl-search-count {
  font-size: 0.85rem;
  color: var(--clr-muted, #64748b);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--clr-border, #e2e8f0);
}

/* -- Result groups -- */
.dl-search-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted, #64748b);
  margin-bottom: 0.65rem;
}

.dl-search-group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

/* -- Result card -- */
.dl-search-card {
  background: #fff;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.dl-search-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-color: var(--clr-primary, #1e40af);
}

.dl-search-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dl-search-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dl-search-badge--tool          { background: #dbeafe; color: #1e40af; }
.dl-search-badge--article       { background: #f0fdf4; color: #166534; }
.dl-search-badge--learning-path { background: #fef9c3; color: #854d0e; }
.dl-search-badge--playbook      { background: #fdf4ff; color: #7e22ce; }
.dl-search-badge--resource      { background: #fff7ed; color: #9a3412; }

.dl-search-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-heading, #0f172a);
  line-height: 1.35;
}

.dl-search-desc {
  font-size: 0.82rem;
  color: var(--clr-muted, #64748b);
  line-height: 1.5;
  flex: 1;
}

.dl-search-cta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-primary, #1e40af);
  text-decoration: none;
}

.dl-search-cta:hover { text-decoration: underline; }

/* -- Empty state -- */
.dl-search-empty {
  padding: 1.5rem 0;
}

.dl-search-empty-msg {
  font-size: 0.95rem;
  color: var(--clr-muted, #64748b);
  margin-bottom: 0.75rem;
}

.dl-search-empty-try {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.dl-search-popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* -- Popular Topics (dashboard) -- */
.dl-popular-topics-section {
  padding: 2rem 0;
  background: #fff;
  border-bottom: 1px solid var(--clr-border, #e2e8f0);
}

.dl-popular-topics-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted, #64748b);
  margin-bottom: 0.75rem;
}

.dl-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dl-topic-chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--clr-border, #e2e8f0);
  border-radius: 24px;
  background: #fff;
  color: var(--clr-text, #1e293b);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-family: inherit;
}

.dl-topic-chip:hover,
.dl-topic-chip:focus-visible {
  background: var(--clr-primary, #1e40af);
  color: #fff;
  border-color: var(--clr-primary, #1e40af);
  outline: none;
}

/* -- LC Browse By Topic -- */
.dl-lc-topics-wrap {
  margin: 1.25rem 0 0.5rem;
}

.dl-lc-topics-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-muted, #64748b);
  margin-bottom: 0.6rem;
}

.dl-lc-topic-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dl-lc-topic-btn {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--clr-border, #e2e8f0);
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
}

.dl-lc-topic-btn:hover,
.dl-lc-topic-btn:focus-visible {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
  outline: none;
}

/* LC topics outside hero (light background) */
.dl-lc-topics-wrap--light .dl-lc-topic-btn {
  background: #fff;
  color: var(--clr-primary, #1e40af);
  border-color: var(--clr-border, #e2e8f0);
}

.dl-lc-topics-wrap--light .dl-lc-topic-btn:hover,
.dl-lc-topics-wrap--light .dl-lc-topic-btn:focus-visible {
  background: var(--clr-primary, #1e40af);
  color: #fff;
  border-color: var(--clr-primary, #1e40af);
}

/* -- Recently Viewed -- */
.dl-recently-viewed {
  margin-bottom: 1.5rem;
}

.dl-recently-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dl-recently-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--clr-text, #1e293b);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}

.dl-recently-item:hover {
  border-color: var(--clr-primary, #1e40af);
  background: #eff6ff;
}

.dl-recently-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-muted, #64748b);
}

.dl-recently-title {
  font-weight: 500;
}

/* -- Related Content -- */
.dl-related-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border, #e2e8f0);
}

.dl-related-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted, #64748b);
  margin-bottom: 0.75rem;
}

.dl-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.dl-related-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.12s, border-color 0.12s;
}

.dl-related-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-color: var(--clr-primary, #1e40af);
}

.dl-related-item-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dl-related-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-heading, #0f172a);
  line-height: 1.35;
}

/* -- Mobile -- */
@media (max-width: 640px) {
  .dl-search-group-cards {
    grid-template-columns: 1fr;
  }

  .dl-related-list {
    grid-template-columns: 1fr;
  }

  #dl-search-input {
    font-size: 16px; /* prevent iOS zoom */
  }
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  #dl-search-input,
  .dl-search-card,
  .dl-popular-tag,
  .dl-topic-chip,
  .dl-lc-topic-btn,
  .dl-recently-item,
  .dl-related-item {
    transition: none;
  }
}

/* ============================================================
   DL.7.5 — Contextual Discovery & Related Content Rollout
   ============================================================ */

/* -- Smart banner (dashboard journey continuation) -- */
#dl-dash-smart-banner .dl-smart-banner {
  margin: 0 0 1rem;
  border-radius: 8px;
}

/* -- Related content section spacing -- */
section[aria-label="Related content"],
section[aria-label="Related Design Lab guidance"] {
  padding: 2rem 0;
}

/* -- Recently viewed in LC / playbooks -- */
#dl-rv-lc,
[id^="dl-rv-"] {
  margin-bottom: 0.5rem;
}

/* -- Playbook related content gets slightly more breathing room -- */
.dl-related-content + .dl-related-content {
  margin-top: 1.5rem;
}

/* -- Templates page industry guidance -- */
#dl-rc-templates .dl-related-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ============================================================
   DL.8.0 — Industry Expansion & Starter Pack Components
   ============================================================ */

/* Industry Starter Pack */
.ig-starter-pack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.25rem;
}

.ig-starter-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color .15s;
}

.ig-starter-step:hover {
  border-color: var(--clr-accent);
}

.ig-starter-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
}

.ig-starter-step-link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
}

.ig-starter-step-link:hover {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* Related industries strip */
.ig-related-industry-link {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.ig-related-industry-link:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent);
  color: #fff;
}

/* Mobile: 15-industry matrix horizontal scroll */
@media (max-width: 700px) {
  .ig-matrix {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ig-matrix-head,
  .ig-matrix-row {
    min-width: 560px;
  }
  .ig-starter-step {
    flex-wrap: wrap;
  }
}

/* ============================================================
   DL.11.0 — Layout Planner—styles
   ============================================================ */

/* -- Site map output -- */
.lp-sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.lp-sitemap-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--clr-text);
}
.lp-sitemap-item svg {
  color: var(--clr-accent);
  flex-shrink: 0;
}
.lp-sitemap-item--primary {
  border-left: 3px solid var(--clr-accent);
  font-weight: 600;
}

/* -- Homepage sections list -- */
.lp-homepage-sections {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.lp-section-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--clr-text);
}
.lp-section-num {
  min-width: 1.5rem;
  height: 1.5rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* -- Navigation output -- */
.lp-nav-group {
  margin-bottom: 1.1rem;
}
.lp-nav-group:last-child { margin-bottom: 0; }
.lp-nav-group-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}
.lp-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.lp-nav-tag {
  padding: .3rem .75rem;
  background: var(--clr-accent-lt);
  border: 1px solid #c5d8f0;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--clr-accent);
}

/* -- Content priority table -- */
.lp-priority-group {
  margin-bottom: 1.1rem;
}
.lp-priority-group:last-child { margin-bottom: 0; }
.lp-priority-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.lp-priority-label--must { color: #2d6a2d; }
.lp-priority-label--recommended { color: var(--clr-accent); }
.lp-priority-label--optional { color: var(--clr-muted); }
.lp-priority-items {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.lp-priority-item {
  font-size: .88rem;
  color: var(--clr-text);
  padding: .45rem .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}
.lp-priority-item--must { background: #eaf5ea; border-color: #a3d4a3; }
.lp-priority-item--recommended { background: var(--clr-accent-lt); border-color: #c5d8f0; }
.lp-priority-item--optional { background: var(--clr-surface); }

/* -- Template recommendation cards -- */
.lp-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.lp-template-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
}
.lp-template-card:hover {
  box-shadow: 0 2px 12px rgba(26,79,138,.1);
}
.lp-template-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--clr-text);
}
.lp-template-desc {
  font-size: .8rem;
  color: var(--clr-muted);
  line-height: 1.45;
  flex: 1;
}
.lp-template-cta {
  font-size: .82rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: .15rem;
}

/* -- Output section wrapper -- */
.lp-output-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.lp-output-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--clr-accent);
  margin-bottom: .4rem;
}
.lp-output-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lp-output-section-title svg {
  color: var(--clr-accent);
  flex-shrink: 0;
}

/* -- Important callout -- */
.lp-important-callout {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-left: 4px solid #b8860b;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: #4a3800;
  line-height: 1.6;
}
.lp-important-callout strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .lp-template-card { transition: none; }
}

/* ============================================================
   DL.10.7 — AI Cost Calculator—styles
   ============================================================ */

/* -- Planning notice -- */
.acc-notice {
  background: #fffbea;
  border: 1px solid #f0d060;
  border-left: 4px solid #b8860b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  color: #4a3800;
  line-height: 1.6;
}
.acc-notice strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.acc-notice p { margin: 0; }
.acc-notice--info {
  background: var(--clr-accent-lt);
  border-color: #c5d8f0;
  border-left-color: var(--clr-accent);
  color: var(--clr-text);
}

/* -- Step counter -- */
.acc-step-counter {
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

/* -- Form fields -- */
.acc-field-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.acc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) { .acc-field-row { grid-template-columns: 1fr; } }

.acc-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
}
.acc-label-sm {
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-text);
}
.acc-required { color: var(--clr-red, #c0392b); }
.acc-hint {
  font-size: .78rem;
  color: var(--clr-muted);
  margin: 0;
  line-height: 1.45;
}

.acc-input {
  padding: .55rem .75rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.acc-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,79,138,.1);
}
.acc-input--num { max-width: 180px; }
.acc-input--sm  { max-width: 120px; }

.acc-select {
  padding: .55rem .75rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
}
.acc-select:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,79,138,.1);
}

/* -- Currency input -- */
.acc-currency-input {
  display: flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .45rem .75rem;
  background: var(--clr-bg);
  max-width: 220px;
  transition: border-color .15s;
}
.acc-currency-input:focus-within {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,79,138,.1);
}
.acc-currency-sym {
  font-size: .88rem;
  color: var(--clr-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.acc-currency-input input {
  border: none;
  background: none;
  font-size: .92rem;
  font-family: var(--font);
  color: var(--clr-text);
  width: 100%;
  outline: none;
  padding: 0;
}

/* -- Fieldsets -- */
.acc-fieldset {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.acc-legend {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  padding: 0 .4rem;
}

/* -- Effort rows -- */
.acc-effort-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--clr-border);
  flex-wrap: wrap;
}
.acc-effort-row:last-child { border-bottom: none; }
.acc-effort-label {
  font-size: .88rem;
  color: var(--clr-text);
  flex: 1;
  min-width: 160px;
  padding-top: .25rem;
}
.acc-effort-inputs {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.acc-field-group--inline {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: 0;
}

/* -- Custom rows -- */
.acc-custom-section {
  margin-top: .75rem;
  margin-bottom: 1rem;
}
.acc-custom-label-row {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-muted);
  margin-bottom: .5rem;
}
.acc-custom-row-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}
.acc-custom-row-item .acc-custom-label { flex: 1; min-width: 140px; }
.acc-custom-row-item .acc-custom-amount { max-width: 120px; }
.acc-custom-row-item .acc-custom-freq { max-width: 110px; }
.acc-remove-row {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .35rem .5rem;
  cursor: pointer;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.acc-remove-row:hover { color: var(--clr-red, #c0392b); border-color: var(--clr-red, #c0392b); }
.acc-add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: none;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .15s, background .15s;
}
.acc-add-row-btn:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-lt);
}

/* -- Review grid (step 7) -- */
.acc-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.acc-review-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem .85rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.acc-review-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
}
.acc-review-val {
  font-size: .88rem;
  color: var(--clr-text);
  font-weight: 500;
}

/* -- Results -- */
.acc-results-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.acc-results-heading {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .5rem;
}
.acc-results-intro {
  font-size: .92rem;
  color: var(--clr-muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}

/* -- Summary cards -- */
.acc-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.acc-summary-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.acc-summary-card--primary {
  border-top: 3px solid var(--clr-accent);
  background: var(--clr-accent-lt);
}
.acc-summary-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-muted);
}
.acc-summary-card--primary .acc-summary-label { color: var(--clr-accent); }
.acc-summary-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.1;
}
.acc-summary-note {
  font-size: .75rem;
  color: var(--clr-muted);
}

/* -- Secondary row -- */
.acc-secondary-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.acc-secondary-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .85rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.acc-secondary-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-muted);
}
.acc-secondary-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
}
.acc-secondary-note {
  font-size: .72rem;
  color: var(--clr-muted);
}

/* -- Result sections -- */
.acc-result-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.acc-result-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1rem;
}
.acc-result-note {
  font-size: .85rem;
  color: var(--clr-muted);
  margin-bottom: .85rem;
  line-height: 1.55;
}

/* -- Tables -- */
.acc-table-wrap { overflow-x: auto; }
.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.acc-table th {
  text-align: left;
  padding: .6rem .85rem;
  background: var(--clr-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.acc-table td {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
  vertical-align: top;
}
.acc-table tr:last-child td { border-bottom: none; }
.acc-table tr:nth-child(even) td { background: var(--clr-bg); }
.acc-table-total td {
  background: var(--clr-accent-lt) !important;
  border-top: 2px solid var(--clr-accent);
}

/* -- Signals -- */
.acc-signals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.acc-signals-list li {
  font-size: .9rem;
  color: var(--clr-text);
  padding: .65rem .9rem .65rem 2.25rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  position: relative;
  line-height: 1.55;
}
.acc-signals-list li::before {
  content: '\2192';
  position: absolute;
  left: .75rem;
  color: var(--clr-accent);
  font-weight: 700;
}
.acc-no-signals {
  font-size: .88rem;
  color: var(--clr-muted);
  font-style: italic;
}

/* -- Questions -- */
.acc-questions-list {
  padding-left: 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.acc-questions-list li {
  font-size: .9rem;
  color: var(--clr-text);
  line-height: 1.6;
}

/* -- Privacy note -- */
.acc-privacy-note {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.55;
}
.acc-privacy-note strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text);
  margin-bottom: .35rem;
}
.acc-privacy-note p { margin: 0; }

/* -- Result actions -- */
.acc-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

/* -- Service link -- */
.acc-service-link {
  font-size: .88rem;
  color: var(--clr-muted);
  padding: .75rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.acc-service-link p { margin: 0; }

/* -- Print -- */
@media print {
  .site-header, .site-footer, .acc-result-actions, .acc-service-link,
  #acc-form-wrap, .dl-tool-sidebar, .page-hero, .section-alt { display: none !important; }
  .acc-results-inner { gap: 1rem; }
  .acc-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .acc-table { font-size: .8rem; }
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .acc-input, .acc-select, .acc-add-row-btn, .acc-remove-row { transition: none; }
}

/* -- Mobile -- */
@media (max-width: 600px) {
  .acc-summary-cards { grid-template-columns: 1fr; }
  .acc-secondary-row { grid-template-columns: 1fr 1fr; }
  .acc-effort-row { flex-direction: column; gap: .5rem; }
  .acc-input--num { max-width: 100%; }
}

/* ============================================================
   DESIGN.5.10  Learning Centre Category Filter
   ============================================================ */

/* -- Filter pill active state -- */
.lc-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lc-filter-pill.lc-filter-active,
.lc-filter-pill[aria-pressed="true"] {
  background: #fff !important;
  color: var(--clr-accent, #065595) !important;
  border-color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

/* -- Filter status bar (count + clear) -- */
.lc-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--clr-border, #e2e8f0);
  margin-bottom: 0.5rem;
}

#lc-filter-count {
  font-size: 0.82rem;
  color: var(--clr-accent, #065595);
  font-weight: 600;
}

#lc-filter-clear {
  font-size: 0.78rem;
  color: var(--clr-muted, #64748b);
  background: none;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, border-color 0.12s;
}

#lc-filter-clear:hover {
  color: var(--clr-text, #1e293b);
  border-color: var(--clr-text, #1e293b);
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .lc-filter-pill,
  #lc-filter-clear { transition: none; }
}

/* ============================================================
   DL.1.1A  Learning Path Selector (Design Lab hub)
   ============================================================ */
.dl-path-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.dl-path-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-top-color 0.15s;
}
.dl-path-card:hover {
  box-shadow: 0 4px 16px rgba(6,85,149,0.10);
  border-top-color: #0d2d52;
}
.dl-path-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--clr-accent);
  margin-bottom: 0.45rem;
}
.dl-path-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.dl-path-card-desc {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.85rem;
}
.dl-path-card-meta {
  font-size: 0.72rem;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}
.dl-path-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-accent);
}
.dl-path-card:hover .dl-path-card-cta {
  text-decoration: underline;
}

/* ============================================================
   DL.1.1D/E/F  Featured AI Tool section
   ============================================================ */
.dl-featured-tool-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.dl-tool-dash-card--featured {
  width: 100%;
  max-width: 680px;
  padding: 1.75rem 2rem;
  border-top: 4px solid var(--clr-accent);
  box-shadow: 0 4px 24px rgba(6,85,149,0.13);
}
.dl-tool-dash-card--featured .dl-tool-dash-name {
  font-size: 1.35rem;
}
.dl-tool-dash-card--featured .dl-tool-dash-desc {
  font-size: 0.93rem;
}
.dl-tool-dash-card--featured .dl-tool-dash-actions {
  margin-top: 0.5rem;
}

/* ============================================================
   DL.1.1E/F  Featured AI Tool section styling
   ============================================================ */
.dl-ai-featured-section {
  background: var(--clr-accent-lt);
  padding: 2.75rem 0;
  border-top: 1px solid #c5d8f0;
  border-bottom: 1px solid #c5d8f0;
}
.dl-ai-featured-section .dl-featured-tool-wrap {
  margin-top: 1.5rem;
}
.dl-featured-badge {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

/* ============================================================
   LC.1.0 — Learning Centre Card Depth & Visual Hierarchy
   MWD.UI.ENHANCE.1
   ============================================================ */

/* Section alternation — white / off-white rhythm */
[data-lc-section="cornerstone"]        { background: #ffffff; }
[data-lc-section="learning-paths"]     { background: #f7fafc; }
[data-lc-section="colour"]             { background: #ffffff; }
[data-lc-section="typography"]         { background: #f7fafc; }
[data-lc-section="branding"]           { background: #f7fafc; }
[data-lc-section="accessibility"]      { background: #ffffff; }
[data-lc-section="website-design"]     { background: #f7fafc; }
[data-lc-section="templates"]          { background: #ffffff; }
[data-lc-section="business-web-strategy"] { background: #f7fafc; }
[data-lc-section="ai-planning"]        { background: #f7fafc; }

/* Override .section-alt on LC sections so alternation controls background */
[data-lc-section].section-alt { background: inherit; }

/* Section header spacing — more breathing room above h2 */
[data-lc-section] .section-label { margin-bottom: 0.5rem; }
[data-lc-section] h2             { margin-bottom: 0.6rem; }
[data-lc-section] > .container > p { margin-bottom: 0; }

/* Card grid top margin tightened slightly for visual grouping */
[data-lc-section] .card-grid { margin-top: 1.25rem; }

/* Cornerstone featured card — keep accent treatment, add depth */
.lc-article-card[style*="border-color:var(--clr-accent)"] {
  background:
    radial-gradient(circle at top left, rgba(6,85,149,0.07), transparent 55%),
    var(--clr-accent-lt);
}

/* Cornerstone badge cards — top-border variant gets depth too */
.lc-article-card[style*="border-top: 3px solid"] {
  background:
    radial-gradient(circle at top left, rgba(6,85,149,0.05), transparent 55%),
    #ffffff;
  border: 1px solid rgba(6,85,149,0.12);
  border-top: 3px solid var(--clr-accent);
}

/* Read-time metadata — remove emoji dependency, keep styling */
.lc-article-meta span,
.card [style*="0.8rem"][style*="clr-muted"] {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

/* AI Planning read-time divs */
.card > div[style*="0.8rem"] {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
}

/* Reduce transform on mobile — no hover on touch */
@media (hover: none) {
  .lc-article-card:hover,
  .lc-path:hover,
  .card:hover {
    transform: none;
  }
}

/* Tablet — ensure cards don't shift layout on hover */
@media (max-width: 768px) {
  .lc-article-card,
  .lc-path,
  [data-lc-section] .card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .lc-article-card:hover,
  .lc-path:hover,
  [data-lc-section] .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(6,85,149,0.07);
  }
}


/* ============================================================
   LC.2.0 — Featured Card Accent Line System

   MWD.UI.ENHANCE.2
   ============================================================ */

/* Base featured class — supplies position context for ::before */
.lc-card-featured {
  position: relative;
}

/* Accent line — 2px brand-tinted top edge, purely decorative */
.lc-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(6,85,149,0.15);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

/* Cornerstone badge cards already have border-top: 3px solid var(--clr-accent).
   The ::before sits behind that border visually — suppress the pseudo-element
   on those cards so the existing 3px accent border remains the sole top signal. */
.lc-article-card[style*="border-top: 3px solid"].lc-card-featured::before {
  display: none;
}

/* AI Planning callout — featured tool block, not a card class */
.lc-ai-featured {
  position: relative;
}
.lc-ai-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(6,85,149,0.15);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

/* Hover — accent line is stable, no animation, no colour change */
.lc-card-featured:hover::before,
.lc-ai-featured:hover::before {
  background: rgba(6,85,149,0.15);
}

/* Responsive — accent line renders correctly at all breakpoints.
   No transform or dimension changes needed; pseudo-element is
   position:absolute within the card's own box. */
