/* Learn Better With AI: editorial study guide */
:root {
  --bg: #f3efe6;
  --bg-deep: #ebe4d6;
  --ink: #1a2433;
  --ink-muted: #4a5568;
  --navy: #14213d;
  --navy-soft: #1e3356;
  --accent: #b85c38;
  --accent-deep: #8f4226;
  --line: #d4cbb8;
  --card: #faf7f0;
  --tell: #f7ebe3;
  --principle: #e8eef5;
  --ai-panel: #f3ebe3;
  --focus: #b85c38;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 68rem;
  --narrow: 42rem;
  --radius: 2px;
  --space: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-deep);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #f5f0e8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: #f5f0e8;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: #d9e0ec;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover.site-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.site-nav .nav-tips.site-nav a[href="/learn/quick-reference/"] {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
}

.site-nav .nav-tips:hover.site-nav a[href="/learn/quick-reference/"]:hover {
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span:not(.sr-only):before.nav-toggle span:not(.sr-only):after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.nav-toggle span:not(.sr-only):before {
  top: -6px;
}

.nav-toggle span:not(.sr-only):after {
  top: 6px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    margin-left: 0;
  }
  .site-nav.is-open {
    display: flex;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c5cedc;
  margin-top: 4rem;
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--serif);
  color: #f5f0e8;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.footer-desc.footer-count.footer-goal.footer-pub {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.footer-goal {
  color: #f0d2c2;
  margin-top: 1rem;
}

.footer-pub {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

/* Layout */
.section {
  padding: 2.75rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--narrow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 0.5rem;
}

.eyebrow a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 0.6rem;
}

h2.subhead {
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.section-lede {
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.section-lede.tight {
  margin-bottom: 0.75rem;
}

.hero-anchor {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
}

.hero-anchor.small {
  font-size: 1.05rem;
}

.count-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* Hero */
.hero {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 1.25rem 3rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-lede {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-small {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn-small:hover {
  background: var(--navy-soft);
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Situations */
.situation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.situation-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.situation-card h3 {
  font-size: 1.35rem;
}

.situation-methods {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.situation-methods li {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.situation-methods a {
  text-decoration: none;
  color: var(--ink);
}

.situation-methods a:hover {
  color: var(--accent-deep);
}

/* Tips tease */
.tips-tease-panel {
  display: grid;
  gap: 1.5rem;
  background: var(--navy);
  color: #e8edf5;
  padding: 2rem 1.5rem;
}

.tips-tease-panel h2 {
  color: #f5f0e8;
}

.tips-tease-panel p {
  color: #c5cedc;
  max-width: 32rem;
}

.tips-preview {
  margin: 0;
  padding-left: 1.1rem;
  color: #f0d2c2;
}

@media (min-width: 800px) {
  .tips-tease-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-dense {
    grid-template-columns: repeat(4, 1fr);
  }
}

.method-card {
  background: var(--card);
  border: 1px solid var(--line);
  height: 100%;
}

.method-card-link {
  display: block;
  padding: 1.1rem 1.1rem 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.method-card-link:hover h3 {
  color: var(--accent-deep);
}

.method-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
}

.method-card-head h3 {
  flex: 1 1 100%;
  margin: 0;
}

.method-id.method-id-lg {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

.method-id-lg {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.method-card-sum {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.try-line {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.try-label {
  font-weight: 600;
  color: var(--navy);
  margin-right: 0.25rem;
}

.short-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 0.1rem 0.35rem;
}

.more-link {
  margin-top: 1.25rem;
}

/* Tags, never color-alone: always include text key */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-row.compact .tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.tag-key {
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.tag-impact.impact-6 {
  border-color: var(--navy);
  background: var(--principle);
}

.tag-impact.impact-5 {
  border-color: var(--accent);
  background: #f8efe8;
}

.tag-evidence {
  border-style: dashed;
}

/* Pathways */
.path-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

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

.path-links a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.path-links a:hover {
  border-color: var(--navy);
}

.path-links strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.path-links span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Poster / tips */
.page-poster .site-footer {
  margin-top: 2rem;
}

.poster {
  max-width: 52rem;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.poster-head {
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}

.poster-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin: 0.5rem 0;
}

.tips-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 720px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tips-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.tip-cell {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  background: var(--bg);
}

.tip-cell h3 {
  font-size: 0.98rem;
  margin: 0 0 0.3rem;
}

.tip-cell p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.step-num {
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.2rem !important;
  font-size: 0.8rem !important;
}

.golden-rule {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem;
  background: var(--navy);
  color: #e8edf5;
}

.golden-rule h2 {
  color: #f5f0e8;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.golden-rule p {
  margin: 0;
  color: #f0d2c2;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.poster-foot {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

@media print {
  .site-header.site-footer.nav-toggle.skip-link {
    display: none !important;
  }
  .poster {
    border: none;
    margin: 0;
    max-width: none;
  }
  body {
    background: #fff;
  }
}

/* Playbook */
.playbook {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.play-stage {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem;
  border-left: 4px solid var(--navy);
}

.stage-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0;
}

.stage-goal {
  color: var(--ink-muted);
  margin: 0.35rem 0 1rem;
}

.play-methods {
  display: grid;
  gap: 0.5rem;
}

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

.play-method {
  display: block;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.play-method:hover {
  border-color: var(--navy);
}

.play-method strong {
  display: block;
  margin: 0.15rem 0 0.35rem;
}

.example-prompt {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border-left: 3px solid var(--accent);
}

.example-prompt p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.move-on {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink-muted);
}

/* Browse */
.browse-filters {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.filter-search label.filter-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.filter-search input.filter-field select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
}

.filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.85rem;
}

@media (min-width: 800px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.browse-meta {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.browse-grid {
  display: grid;
  gap: 0.75rem;
}

.browse-card {
  background: var(--card);
  border: 1px solid var(--line);
}

.browse-card[hidden] {
  display: none !important;
}

.browse-card a {
  display: block;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.browse-card a:hover h3 {
  color: var(--accent-deep);
}

.browse-card h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}

.browse-card p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.browse-empty {
  color: var(--ink-muted);
  padding: 1rem 0;
}

/* Families */
.family-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.family-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 11rem;
}

.family-card.variant-1 {
  background: var(--bg-deep);
  padding-top: 1.75rem;
}

.family-card.variant-2 {
  border-left: 4px solid var(--accent);
}

.family-card:hover {
  border-color: var(--navy);
}

.family-letter {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.family-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}

/* Subjects */
.subject-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.subject-card {
  display: block;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.subject-card:hover {
  border-color: var(--navy);
}

.subject-guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.subject-guide-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.subject-guide-list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.subject-guide-list p {
  margin: 0.3rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.guide-num {
  font-size: 0.8rem;
  color: var(--accent-deep);
  margin-right: 0.35rem;
}

/* Method page */
.method-page {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.method-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.promise {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}

.method-section {
  margin: 1.75rem 0;
}

.method-section h2 {
  font-size: 1.25rem;
}

.prompt-section .prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.prompt-section .prompt-header h2 {
  margin: 0;
}

.prompt-block {
  background: var(--navy);
  color: #e8edf5;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: var(--radius);
  margin: 0.5rem 0;
}

.prompt-block code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
}

.tell-section {
  background: var(--tell);
  border: 1px solid #e5cfc1;
  padding: 1.1rem 1.15rem;
}

.tell-section h2 {
  margin-top: 0;
}

.evidence-panels {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 720px) {
  .page-method .method-page {
    max-width: 48rem;
  }
  .evidence-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.evidence-panel {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
}

.evidence-panel.principle {
  background: var(--principle);
}

.evidence-panel.ai-delivery {
  background: var(--ai-panel);
}

.evidence-panel h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.panel-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  margin: 0.4rem 0;
}

.related-list a {
  text-decoration: none;
  font-weight: 500;
}

.source-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2.5rem;
}

.prose p {
  margin: 0.75rem 0;
}

.prose ul.prose ol {
  padding-left: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

th {
  background: var(--bg-deep);
}

.path-block {
  margin: 2.5rem 0;
}

/* Stylized AI chat threads (example exchanges) */
.chat-thread.exchange.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0 0.25rem;
  padding: 1rem 0.9rem 1.1rem;
  background: linear-gradient(180deg, #f7f2e8 0%, #f0ebe0 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  max-width: 40rem;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: min(92%, 34rem);
}

.chat-bubble--user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble--ai {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 0.15rem;
}

.chat-bubble--user .chat-label {
  color: var(--navy-soft);
}

.chat-bubble--ai .chat-label {
  color: var(--accent-deep);
}

.chat-text {
  margin: 0;
  padding: 0.7rem 0.9rem;
  line-height: 1.45;
  border-radius: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.chat-bubble--user .chat-text {
  background: var(--navy);
  color: #f3f0ea;
  border-bottom-right-radius: 4px;
}

.chat-bubble--ai .chat-text {
  background: var(--card);
  color: var(--ink);
  border: 1px solid #e2d8c6;
  border-left: 3px solid var(--accent);
  border-bottom-left-radius: 4px;
}

.chat-text p {
  margin: 0.4rem 0;
}

.chat-text p:first-child {
  margin-top: 0;
}

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

@media (max-width: 520px) {
  .chat-thread.exchange.chat-thread {
    padding: 0.85rem 0.65rem 1rem;
    border-radius: 10px;
  }
  .chat-bubble {
    max-width: 100%;
  }
  .chat-text {
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }
}

.exchange {
  background: var(--bg-deep);
  padding: 1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.copy-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  z-index: 80;
}


/* Method meta strip: labelled pairs, readable separation */
.method-meta {
  display: grid;
  gap: 0.55rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .method-meta {
    grid-template-columns: 1fr 1fr;
  }
}
.meta-pair {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
}
.meta-pair.meta-ai {
  border-left-color: var(--accent);
}
.meta-label.method-meta .meta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.meta-value.method-meta .meta-value {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
}
.situation-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.situation-list li {
  margin: 0.4rem 0;
}
.how-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.how-steps li {
  margin: 0.55rem 0;
}
.exchange-turn {
  margin: 0.65rem 0;
}
.exchange-who {
  font-weight: 600;
  color: var(--navy);
}
.source-note { display: none; }


/* Breadcrumbs: visible, keyboard-accessible trail */
.breadcrumbs {
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  max-width: var(--max);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  color: var(--line);
  margin-left: 0.15rem;
}
.breadcrumb-list a {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.breadcrumb-list [aria-current="page"] span {
  color: var(--ink);
}
.page-method .breadcrumbs,
.page-poster .breadcrumbs,
.page-qr .breadcrumbs {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
