/* Cohort 109 only. These compositions are tied to five different reader tasks. */
.dating-guide-layout-student-first-message-workshop,
.dating-guide-layout-student-first-message-workshop .dating-guide-hero {
  --guide-accent: #155d60;
  --guide-wash: #eaf4f1;
  --c109-paper: #f6fbf9;
  --c109-line: #abcac6;
}

.dating-guide-layout-parent-green-flags-field-notes,
.dating-guide-layout-parent-green-flags-field-notes .dating-guide-hero {
  --guide-accent: #555c3e;
  --guide-wash: #f1f4e9;
  --c109-paper: #fbfcf6;
  --c109-line: #c7d1ae;
}

.dating-guide-layout-faith-exclusivity-agreement-table,
.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-hero {
  --guide-accent: #644b34;
  --guide-wash: #f7f0e6;
  --c109-paper: #fdfaf5;
  --c109-line: #d9c7ad;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger,
.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-hero {
  --guide-accent: #365172;
  --guide-wash: #edf2f7;
  --c109-paper: #f7f9fc;
  --c109-line: #bfcfe0;
}

.dating-guide-layout-later-date-conversation-walk,
.dating-guide-layout-later-date-conversation-walk .dating-guide-hero {
  --guide-accent: #674756;
  --guide-wash: #f6eff1;
  --c109-paper: #fdf9fa;
  --c109-line: #ddc9d1;
}

.dating-guide-page:is(
  .dating-guide-layout-student-first-message-workshop,
  .dating-guide-layout-parent-green-flags-field-notes,
  .dating-guide-layout-faith-exclusivity-agreement-table,
  .dating-guide-layout-diaspora-breadcrumb-thread-ledger,
  .dating-guide-layout-later-date-conversation-walk
) .dating-guide-hero {
  background: var(--c109-paper);
}

/* A working draft: the reader sees the note, the decision, then the four edits. */
.dating-guide-layout-student-first-message-workshop .dating-guide-hero h1 {
  max-width: 21ch;
  font-family: var(--font-body);
  font-weight: 850;
  letter-spacing: -.047em;
}

.dating-guide-layout-student-first-message-workshop .dating-guide-answer {
  border: 1px solid var(--c109-line);
  border-left: 5px solid var(--guide-accent);
  border-radius: 2px;
  box-shadow: none;
}

.dating-guide-layout-student-first-message-workshop .dating-guide-editorial-lens {
  border: 0;
  border-top: 5px solid var(--guide-accent);
  border-radius: 0;
  background: linear-gradient(180deg, #f4faf8, #fff 64%);
}

.dating-guide-layout-student-first-message-workshop .dating-guide-lens-card {
  border: 1px solid var(--c109-line);
  border-radius: 3px;
  background: #fff;
}

.dating-guide-layout-student-first-message-workshop .dating-guide-lens-card:nth-child(2) {
  transform: translateY(.45rem);
}

.dating-guide-layout-student-first-message-workshop .dating-guide-lens-card:nth-child(4) {
  transform: translateY(.45rem);
}

.dating-guide-layout-student-first-message-workshop .dating-guide-feature {
  border-top: 1px solid var(--c109-line);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
}

.dating-guide-layout-student-first-message-workshop .dating-guide-feature:nth-of-type(even) .dating-guide-feature-copy {
  order: 0;
}

.dating-guide-layout-student-first-message-workshop .dating-guide-type-compare {
  border-radius: 2px;
  background: #edf7f3;
}

/* Field notes: planning, repair and privacy read as observations over time. */
.dating-guide-layout-parent-green-flags-field-notes .dating-guide-hero h1,
.dating-guide-layout-parent-green-flags-field-notes .dating-guide-feature h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-editorial-lens {
  border: 1px solid var(--c109-line);
  border-left: 6px solid var(--guide-accent);
  border-radius: 0 8px 8px 0;
  background: #fcfdf8;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-lens-card {
  border: 0;
  border-bottom: 1px solid var(--c109-line);
  border-radius: 0;
  background: transparent;
  padding: .9rem .5rem .9rem 1.1rem;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-lens-card:last-child {
  border-bottom: 0;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-feature {
  border-top: 0;
  border-left: 3px solid var(--c109-line);
  margin-left: clamp(.1rem, 1.8vw, 1.5rem);
  padding: clamp(1.2rem, 2.3vw, 1.8rem);
  background: #fcfdf9;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-feature:nth-of-type(even) {
  background: #f5f8ef;
}

.dating-guide-layout-parent-green-flags-field-notes .dating-guide-type-compare {
  border-radius: 0 12px 12px 0;
  border-left: 5px solid var(--guide-accent);
  background: #f4f7ed;
}

/* Agreement table: present scope is written down; other permissions stay separate. */
.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-hero h1,
.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-editorial-lens h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.03em;
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-answer {
  border-left-width: 0;
  border-top: 5px solid var(--guide-accent);
  border-radius: 0;
  box-shadow: none;
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-editorial-lens {
  border: 1px solid var(--c109-line);
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, #fffdf9, #fffdf9 3.2rem, #f5eee4 3.25rem);
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-lens-card {
  border: 1px solid var(--c109-line);
  border-radius: 2px;
  background: #fffdf8;
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-feature {
  border-top: 2px solid var(--c109-line);
  border-bottom: 1px solid var(--c109-line);
  padding-block: clamp(1.3rem, 3vw, 2rem);
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-type-compare {
  border: 2px solid var(--guide-accent);
  border-radius: 2px;
  background: #f9f3e9;
}

.dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-compare-grid article {
  border-radius: 0;
  border: 0;
  border-top: 2px solid var(--guide-accent);
  background: #fff;
}

/* Contact ledger: compare warm words with a call that has an actual time. */
.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-hero h1 {
  max-width: 19ch;
  font-family: var(--font-body);
  font-weight: 830;
  letter-spacing: -.045em;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-editorial-lens {
  border: 0;
  border-top: 1px solid var(--c109-line);
  border-bottom: 1px solid var(--c109-line);
  border-radius: 0;
  background: #fff;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-lens-grid {
  border-left: 2px solid var(--c109-line);
  padding-left: 1rem;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-lens-card {
  position: relative;
  border: 0;
  border-bottom: 1px dashed var(--c109-line);
  border-radius: 0;
  background: transparent;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-lens-card::before {
  position: absolute;
  top: 1.25rem;
  left: calc(-1rem - 6px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--guide-accent);
  content: '';
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-feature {
  border-top: 1px dashed var(--c109-line);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-feature:nth-of-type(even) .dating-guide-feature-copy {
  order: 0;
}

.dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-type-compare {
  border-radius: 0;
  background: #f1f5fa;
}

/* A conversational walk: give the scene room, then let two voices share space. */
.dating-guide-layout-later-date-conversation-walk .dating-guide-hero h1,
.dating-guide-layout-later-date-conversation-walk .dating-guide-feature h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -.034em;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-hero h1 {
  max-width: 21ch;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-editorial-lens {
  border: 0;
  border-top: 1px solid var(--c109-line);
  border-bottom: 1px solid var(--c109-line);
  border-radius: 0;
  background: #fff;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-lens-card {
  border: 0;
  border-top: 2px solid var(--c109-line);
  border-radius: 0;
  background: transparent;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-lens-card:nth-child(even) {
  margin-top: 1.4rem;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-feature {
  grid-template-columns: 1fr;
  max-width: 76rem;
  margin-inline: auto;
  border-top: 0;
  border-bottom: 1px solid var(--c109-line);
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-feature-copy {
  max-width: 68ch;
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-feature .dating-guide-inline-art,
.dating-guide-layout-later-date-conversation-walk .dating-guide-feature .dating-guide-takeaway-card {
  width: min(100%, 55rem);
}

.dating-guide-layout-later-date-conversation-walk .dating-guide-type-compare {
  border-radius: 18px 2px 18px 2px;
  background: #fbf4f6;
}

@media (min-width: 981px) {
  .dating-guide-layout-student-first-message-workshop .dating-guide-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas: 'copy copy' 'art decision' 'art provenance';
  }

  .dating-guide-layout-student-first-message-workshop .dating-guide-hero-copy {
    max-width: 70rem;
  }

  .dating-guide-layout-student-first-message-workshop .dating-guide-editorial-lens {
    grid-template-columns: 1fr;
  }

  .dating-guide-layout-student-first-message-workshop .dating-guide-lens-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dating-guide-layout-parent-green-flags-field-notes .dating-guide-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: 'art copy' 'art provenance' 'decision decision';
  }

  .dating-guide-layout-parent-green-flags-field-notes .dating-guide-editorial-lens {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .dating-guide-layout-parent-green-flags-field-notes .dating-guide-lens-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: 'copy art' 'provenance art' 'decision decision';
  }

  .dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-hero-grid {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    grid-template-areas: 'copy copy' 'decision art' 'provenance art';
  }

  .dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-editorial-lens {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .dating-guide-layout-diaspora-breadcrumb-thread-ledger .dating-guide-lens-grid {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .dating-guide-layout-later-date-conversation-walk .dating-guide-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    grid-template-areas: 'copy decision' 'art art' 'provenance provenance';
  }

  .dating-guide-layout-later-date-conversation-walk .dating-guide-editorial-lens {
    grid-template-columns: 1fr;
  }

  .dating-guide-layout-later-date-conversation-walk .dating-guide-lens-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dating-guide-layout-student-first-message-workshop .dating-guide-lens-grid,
  .dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-lens-grid,
  .dating-guide-layout-later-date-conversation-walk .dating-guide-lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dating-guide-layout-student-first-message-workshop .dating-guide-lens-grid,
  .dating-guide-layout-faith-exclusivity-agreement-table .dating-guide-lens-grid,
  .dating-guide-layout-later-date-conversation-walk .dating-guide-lens-grid {
    grid-template-columns: 1fr;
  }

  .dating-guide-layout-student-first-message-workshop .dating-guide-lens-card:nth-child(2),
  .dating-guide-layout-student-first-message-workshop .dating-guide-lens-card:nth-child(4),
  .dating-guide-layout-later-date-conversation-walk .dating-guide-lens-card:nth-child(even) {
    transform: none;
    margin-top: 0;
  }

  .dating-guide-layout-parent-green-flags-field-notes .dating-guide-feature {
    margin-left: 0;
    padding: 1rem;
  }
}

/* The exact teaching copy remains readable when the 1200px diagram cannot. */
.dating-guide-page .c109-visual-companion {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 3px solid var(--guide-accent);
  background: var(--c109-paper, #fff);
  color: #24343d;
}

.c109-visual-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
}

.c109-visual-eyebrow,
.dating-guide-page .c109-visual-label {
  color: var(--guide-accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.c109-visual-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--guide-accent);
  font-size: .94rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c109-visual-heading a:focus-visible {
  outline: 3px solid var(--guide-accent);
  outline-offset: 3px;
}

.dating-guide-page .c109-visual-companion h3 {
  margin: .25rem 0 .8rem;
  color: #1d3039;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.dating-guide-page .c109-visual-companion h4 {
  margin: 0 0 .4rem;
  color: #24343d;
  font-size: 1rem;
  line-height: 1.35;
}

.dating-guide-page .c109-visual-companion :is(p, li, dd, blockquote) {
  color: #253942;
  font-size: .96rem;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.c109-visual-setup,
.c109-visual-branches,
.c109-visual-comparison,
.c109-visual-explanations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: .75rem 0 0;
  padding: 0;
}

.c109-visual-setup > div,
.c109-visual-branches > li,
.c109-visual-comparison > section,
.c109-visual-explanations > div,
.c109-visual-explanations > li {
  min-width: 0;
  padding: .85rem .95rem;
  border: 1px solid var(--c109-line, #cbd4d8);
  background: #fff;
  list-style: none;
}

.c109-visual-setup dt,
.c109-visual-branches strong,
.c109-visual-explanations dt,
.c109-visual-action-steps strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--guide-accent);
  font-size: .88rem;
  font-weight: 850;
}

.c109-visual-setup dd,
.c109-visual-explanations dd {
  margin: 0;
}

.c109-visual-branches span,
.c109-visual-action-steps span {
  display: block;
}

.c109-visual-action-steps {
  counter-reset: c109-action;
}

.c109-visual-action-steps > li {
  position: relative;
  counter-increment: c109-action;
  padding-left: 2.6rem;
}

.c109-visual-action-steps > li::before {
  position: absolute;
  top: .85rem;
  left: .9rem;
  color: var(--guide-accent);
  content: counter(c109-action, decimal-leading-zero);
  font-size: .78rem;
  font-weight: 850;
}

.c109-visual-list {
  display: grid;
  gap: .55rem;
  margin: .55rem 0 0;
  padding-left: 1.4rem;
}

.c109-visual-questions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dating-guide-page .c109-visual-label {
  margin: .9rem 0 .3rem;
}

.c109-visual-companion blockquote {
  margin: .35rem 0 .75rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--guide-accent);
  background: #fff;
}

.dating-guide-page .c109-visual-companion blockquote p {
  margin: 0;
  color: #20343c;
}

.dating-guide-page .c109-visual-takeaway {
  margin: 1rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--c109-line, #cbd4d8);
  color: #20343c;
}

.c109-visual-takeaway strong {
  color: var(--guide-accent);
}

@media (max-width: 680px) {
  .c109-visual-setup,
  .c109-visual-branches,
  .c109-visual-comparison,
  .c109-visual-explanations,
  .c109-visual-questions {
    grid-template-columns: 1fr;
  }

  .dating-guide-page .c109-visual-companion {
    padding: 1rem;
  }

  .dating-guide-page .c109-teaching-figure > picture,
  .dating-guide-page .c109-teaching-figure > a:first-child,
  .dating-guide-page .c109-teaching-figure > figcaption,
  .dating-guide-page .c109-teaching-figure > .dating-guide-image-read {
    display: none;
  }
}
