/* ============================================================
 * v3-phrases.css — group layer for the business-phrase pages
 *   phrases.html, phrases-{email,meeting,negotiation,phone,presentation,smalltalk}.html, eigo-kaigi.html
 * Load order: … → rin-v3.css → v3-site.css → v3-phrases.css
 * Uses the --v3-* tokens bound by v3-site.css (the article body is warm white).
 * Shape only: no copy, no ids, no data-* hooks are touched.
 * ============================================================ */

/* ---------- 1. phrase entries (.ph-item: en / jp / note / ex) ---------- */
/* the three plain lists share the 960px measure the guide pages already use */
body.v3-site .ph-head + .section .wrap > .ph-item { max-width: 960px; }

body.v3-site .ph-item { padding: 30px 0 32px; }
/* close each run of entries with a rule (not where the CTA's own top rule follows) */
body.v3-site .ph-item:not(:has(+ .ph-item)):not(:has(+ .ph-cta)) { border-bottom: 1px solid var(--v3-rule); }

body.v3-site .ph-item .en {
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.6;
  letter-spacing: .005em;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
body.v3-site .ph-item .jp { font-size: 15px; line-height: 1.85; margin: 0 0 16px; }
/* style.css paints every .note as a filled box with a dark left bar; here it is a plain gloss line */
body.v3-site .ph-item .note {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--v3-mute);
  opacity: 1;
}
body.v3-site .ph-item .ex {
  margin: 0;
  padding: 1px 0 1px 16px;
  border-left: 1px solid var(--v3-accent);
  font-size: 15px;
  line-height: 1.85;
  color: var(--v3-body);
  overflow-wrap: anywhere;
}

/* ---------- 2. guide pages: table of contents ---------- */
body.v3-site .guide-toc {
  max-width: 960px;
  border-top: 1px solid var(--v3-text);
  border-bottom: 1px solid var(--v3-rule);
  padding: 28px 0 30px;
  margin: 0 0 24px;
}
body.v3-site .guide-toc p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .2em;
  color: var(--v3-accent-text);
  margin: 0 0 16px;
}
body.v3-site .guide-toc ol { gap: 8px 32px; }
body.v3-site .guide-toc a {
  font-size: 15px;
  color: var(--v3-text);
  text-decoration: underline;
  text-decoration-color: var(--v3-rule-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
body.v3-site .guide-toc a:hover { text-decoration-color: var(--v3-accent); text-decoration-thickness: 1px; }
body.v3-site .ph-head + .section .guide-byline { font-size: 13px; line-height: 1.9; color: var(--v3-mute); margin: 0; }

/* ---------- 3. guide sections: heading rhythm ---------- */
body.v3-site .guide-section { margin: 112px 0 0; max-width: 960px; }
body.v3-site .guide-byline + .guide-section { margin-top: 72px; }
body.v3-site .guide-section h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 24px;
  color: var(--v3-text);
}
body.v3-site .guide-section h3 { font-size: 18px; font-weight: 600; line-height: 1.6; margin: 48px 0 16px; color: var(--v3-text); }
body.v3-site .guide-section > p { font-size: 16px; line-height: 2; color: var(--v3-body); margin: 0 0 20px; max-width: 44em; }
/* keep the intro paragraph off the first rule of the list that follows it */
body.v3-site .guide-section > p + :is(.ph-item, .guide-quick, .guide-script, .guide-example) { margin-top: 36px; }
body.v3-site .guide-section > :is(.guide-quick, .guide-script, .guide-example) + p { margin-top: 32px; }

/* single examples */
body.v3-site .guide-example { padding: 2px 0 2px 18px; margin: 20px 0; }
body.v3-site .guide-example p { font-size: 14.5px; line-height: 1.9; color: var(--v3-body); margin: 4px 0 0; }
body.v3-site .guide-example p[lang=en] { font-size: 17px; font-weight: 600; line-height: 1.75; color: var(--v3-text); margin: 0; }

/* three-up quick examples */
body.v3-site .guide-quick { gap: 0 40px; margin-bottom: 8px; }
body.v3-site .guide-quick > div { border-top: 1px solid var(--v3-rule-2); padding: 22px 0 8px; }
body.v3-site .guide-section .guide-quick h3 { font-size: 15.5px; margin: 0 0 16px; }
body.v3-site .guide-quick .guide-example { margin: 0; }

/* scripts: role column + line, separated by hairlines (v3-site's brass bar is dropped here) */
body.v3-site .guide-section .guide-script { max-width: 960px !important; margin-bottom: 0; border-top: 1px solid var(--v3-rule-2); }
body.v3-site .guide-script > li { grid-template-columns: 168px minmax(0, 1fr); gap: 28px; padding: 24px 0 26px; border-bottom: 1px solid var(--v3-rule); }
body.v3-site .guide-role { font-size: 13px; font-weight: 600; line-height: 1.8; letter-spacing: .04em; color: var(--v3-text); padding-top: 3px; }
body.v3-site .guide-role:before { font-weight: 400; color: var(--v3-accent-text); opacity: 1; }
body.v3-site .guide-script .guide-example { border-left: 0; padding: 0; margin: 0; }
body.v3-site .guide-script .guide-note {
  font-size: 11.5px !important; /* phrase-guide.css sets .guide-note with !important */
  line-height: 1.7;
  letter-spacing: .16em;
  color: var(--v3-accent-text);
  margin: 16px 0 4px;
}
body.v3-site .guide-script .guide-note:first-child { margin-top: 0; }

/* ---------- 4. FAQ disclosures: hairline rows with a brass ＋ (as on the top page) ---------- */
body.v3-site .guide-faq { border: 0; border-top: 1px solid var(--v3-rule-2); border-radius: 0; padding: 0; max-width: 960px; }
body.v3-site .guide-faq:last-of-type { border-bottom: 1px solid var(--v3-rule-2); }
body.v3-site.meeting-page .meeting-detail { border: 0; border-top: 1px solid var(--v3-rule); border-radius: 0; margin: 0; }
/* the FAQ closes the article section: the section's own bottom rule closes the last row */
body.v3-site.meeting-page .meeting-section:has(> .meeting-detail:last-child) { padding-bottom: 0; }

body.v3-site :is(.guide-faq, .meeting-detail) > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--v3-text);
}
body.v3-site :is(.guide-faq, .meeting-detail) > summary::-webkit-details-marker { display: none; }
body.v3-site :is(.guide-faq, .meeting-detail) > summary::after {
  content: "＋";
  flex: none;
  font-size: 22px;
  line-height: 1.3;
  color: var(--v3-accent);
}
body.v3-site :is(.guide-faq, .meeting-detail)[open] > summary::after { content: "−"; }
body.v3-site .guide-faq p { margin: 0; padding: 0 56px 26px 0; font-size: 15.5px; line-height: 2; max-width: 46em; }
body.v3-site.meeting-page .meeting-detail > div { padding: 0 56px 10px 0; }

/* ---------- 5. closing blocks: CTA note, link lists, date ---------- */
body.v3-site .ph-cta .guide-note { margin: 18px 0 0; font-size: 13px !important; line-height: 1.9; color: var(--v3-mute); }
body.v3-site .rel-guide > p { margin: 0 0 24px; }
body.v3-site .ph-head + .section .updated { margin-top: 48px; }

/* ---------- 6. responsive ---------- */
@media (max-width: 720px) {
  body.v3-site .ph-item { padding: 26px 0 28px; }
  body.v3-site .ph-item .en { font-size: 18px; }
  body.v3-site .guide-toc { padding: 24px 0 26px; }
  body.v3-site .guide-toc ol { gap: 4px 24px; }
  body.v3-site .guide-section { margin-top: 80px; }
  body.v3-site .guide-byline + .guide-section { margin-top: 56px; }
  body.v3-site .guide-section h2 { font-size: 24px; margin-bottom: 20px; }
  body.v3-site .guide-section h3 { margin-top: 40px; }
  body.v3-site .guide-section > p { font-size: 15.5px; }
  body.v3-site .guide-quick { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.v3-site .guide-quick > div { padding: 20px 0 26px; }
  body.v3-site .guide-quick > div:last-child { padding-bottom: 4px; }
  body.v3-site .guide-script > li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0 22px; }
  body.v3-site .guide-role { padding-top: 0; }
  body.v3-site .guide-example p[lang=en] { font-size: 16.5px; }
  body.v3-site :is(.guide-faq, .meeting-detail) > summary { font-size: 16px; padding: 20px 0; }
  body.v3-site .guide-faq p { padding-right: 0; }
  body.v3-site.meeting-page .meeting-detail > div { padding-right: 0; }
}

/* ---------- 7. print ---------- */
@media print {
  body.v3-site .guide-section { margin-top: 32px; }
  body.v3-site :is(.guide-faq, .meeting-detail) > summary::after { content: none; }
}
