/* =========================================================================
   MyTutor — Everyday Conversation Course page
   Built to the "Clear Professional" design guidelines.
   Scoped under .ec so it is safe to drop into a WordPress Custom HTML block.
   Tokens / .mt-card / .tag mirror the shared spec exactly (same as the
   Nursing page). If css/main.css is already loaded on the host page, the
   inlined copies of .mt-card and .tag can be removed and the shared classes
   relied upon.
   ========================================================================= */

@media (min-width: 769px) {
  .everyday-conversation-page #wrap { min-width: 0; }
  .everyday-conversation-page #container { width: 100%; max-width: none; padding: 0; }
}
.everyday-conversation-page .ec { margin-bottom: 0; }

.ec {
  /* --- official core tokens --- */
  --ink: #172033;
  --muted: #657084;
  --line: #DFE5EE;
  --paper: #FFFFFF;
  --canvas: #F4F6FA;
  --navy-950: #031B68;
  --navy-800: #1E2D6E;
  --navy-700: #263A8A;
  --purple-700: #6C4DA4;
  --purple-100: #F1EDFB;
  --teal-600: #158A9A;
  --teal-050: #E8F5F7;
  --gold-500: #C99A2E;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-soft: 0 14px 40px rgba(20, 32, 62, 0.12);
  --shadow-tight: 0 8px 24px rgba(20, 32, 62, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  color-scheme: light;
  box-sizing: border-box;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ec *, .ec *::before, .ec *::after { box-sizing: inherit; }
.ec p, .ec h1, .ec h2, .ec h3, .ec h4, .ec ul, .ec ol, .ec figure { margin: 0; padding: 0; }
.ec ul, .ec ol { list-style: none; }
.ec img { max-width: 100%; display: block; }
.ec a { color: inherit; }

/* ---------- shared utilities (mirror of css/main.css) ---------- */
.ec .mt-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(3, 27, 104, 0.12);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.ec .mt-card:hover {
  border-color: rgba(3, 27, 104, 0.22);
  box-shadow: 0 12px 28px rgba(20, 32, 62, 0.14);
}
.ec .tag {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border: 0; border-radius: 999px;
  background: var(--purple-100); color: var(--navy-800);
  font-size: 10.5px; font-weight: 700; line-height: 1.25; white-space: nowrap;
}
.ec .tag--specialty { background: var(--teal-050); color: var(--teal-600); }

/* ---------- layout primitives ---------- */
.ec-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.ec-section { padding: 56px 0; }
.ec-section--canvas { background: var(--canvas); }
.ec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple-700); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.ec-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--purple-700); display: inline-block; }
.ec-h2 { font-size: 25px; line-height: 1.3; font-weight: 700; color: var(--navy-950); margin-bottom: 14px; }
.ec-lead { color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ---------- buttons & links ---------- */
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.ec-btn--primary,
.ec-btn--primary:link,
.ec-btn--primary:visited { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.ec-btn--primary:hover { background: var(--navy-950); border-color: var(--navy-950); color: #fff; text-decoration: none; }
.ec-btn--ghost,
.ec-btn--ghost:link,
.ec-btn--ghost:visited { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.ec-btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); text-decoration: none; }

/* ============================ 1. HERO ============================ */
.ec-hero { background: var(--canvas); padding: 38px 0 46px; }
.ec-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-700); }
.ec-hero__title { font-size: 30px; line-height: 1.22; font-weight: 700; color: var(--navy-950); margin: 10px 0 6px; }
.ec-hero__title-en { display: block; font-size: 16px; font-weight: 700; color: var(--purple-700); margin-top: 6px; }
.ec-hero__lead { color: var(--ink); font-size: 16px; margin-bottom: 14px; max-width: 60ch; }
.ec-hero__sub { color: var(--muted); font-size: 15px; margin-bottom: 8px; max-width: 64ch; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.ec-chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.ec-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================ shared content ============================ */
.ec-grid { display: grid; gap: 14px; margin-top: 22px; }

/* "recommended materials" line used inside level/purpose cards */
.ec-rec { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }
.ec-rec__label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--purple-700); margin-bottom: 5px; }
.ec-rec__list { font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.7; }

/* who-it's-for check rows */
.ec-scenes { display: grid; gap: 11px; margin-top: 22px; }
.ec-scene {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-md); padding: 14px 17px; font-weight: 600; font-size: 15px;
}
.ec-scene__i { color: var(--teal-600); font-weight: 800; flex: none; }

/* level cards */
.ec-level { padding: 22px; display: flex; flex-direction: column; }
.ec-level__tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: var(--navy-800); padding: 4px 11px; border-radius: var(--radius-sm); margin-bottom: 10px;
}
.ec-level__jp { font-size: 18px; font-weight: 700; color: var(--navy-950); margin-bottom: 8px; }
.ec-level__b { font-size: 14.5px; color: var(--muted); }
.ec-level .ec-rec { margin-top: auto; }

/* numbered cards (purpose & strengths) */
.ec-num {
  width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--purple-100); color: var(--navy-800);
  font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.ec-purpose { padding: 22px; display: flex; flex-direction: column; }
.ec-purpose__h { font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--navy-950); margin-bottom: 7px; }
.ec-purpose__b { font-size: 14.5px; color: var(--muted); }
.ec-purpose .ec-rec { margin-top: auto; }

/* ============================ Daily News NEW block ============================ */
.ec-section--news { background: var(--teal-050); }
.ec-news {
  background: var(--paper);
  border: 1px solid rgba(21, 138, 154, 0.28);
  border-top: 3px solid var(--teal-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
  margin-top: 4px;
}
.ec-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--teal-600); margin-bottom: 12px;
}
.ec-badge__new {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: var(--teal-600); padding: 3px 9px; border-radius: var(--radius-sm);
}
.ec-news__title { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--navy-950); margin-bottom: 6px; }
.ec-news__sub { font-size: 15px; font-weight: 700; color: var(--teal-600); margin-bottom: 16px; }
.ec-news__b { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.ec-news__h3 { font-size: 16px; font-weight: 700; color: var(--navy-950); margin: 22px 0 10px; }
.ec-news__list { display: grid; gap: 8px; margin: 14px 0; }
.ec-news__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.ec-news__list li::before { content: "✓"; color: var(--teal-600); font-weight: 800; flex: none; }
.ec-news__meta {
  background: var(--canvas); border-radius: var(--radius-md); padding: 15px 18px; margin: 18px 0;
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.ec-news__meta strong { color: var(--navy-950); font-weight: 700; }
.ec-news__actions { margin-top: 20px; }
.ec-btn--news,
.ec-btn--news:link,
.ec-btn--news:visited { background: var(--teal-600); color: #fff; border: 1px solid var(--teal-600); }
.ec-btn--news:hover { background: #11707e; border-color: #11707e; color: #fff; text-decoration: none; }
.ec-extlink { font-size: 13px; }

/* ============================ Material list ============================ */
.ec-matcat { margin-top: 30px; }
.ec-matcat:first-of-type { margin-top: 22px; }
.ec-matcat__h {
  font-size: 16px; font-weight: 700; color: var(--navy-950);
  display: flex; align-items: center; gap: 10px; margin-bottom: 13px;
}
.ec-matcat__h::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--purple-700); flex: none; }
.ec-matlist { display: grid; gap: 9px; }
@media (min-width: 640px) { .ec-matlist { grid-template-columns: 1fr 1fr; } }
.ec-mat {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 13px 16px; text-decoration: none; color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ec-mat:hover { border-color: rgba(3, 27, 104, 0.22); box-shadow: var(--shadow-tight); text-decoration: none; }
.ec-mat__t { font-size: 14.5px; font-weight: 700; color: var(--navy-800); }
.ec-mat__t .ec-mat__ext { font-size: 11px; color: var(--teal-600); font-weight: 800; margin-left: 4px; }
.ec-mat__d { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ============================ notes / usage ============================ */
.ec-note {
  margin-top: 18px; font-size: 14px; color: var(--muted);
  background: var(--purple-100); border-radius: var(--radius-md); padding: 16px 18px; line-height: 1.7;
}
.ec-note strong { color: var(--navy-950); }
.ec-usage { display: grid; gap: 14px; margin-top: 22px; }
.ec-usage p { font-size: 15px; color: var(--ink); }
.ec-usage p span { color: var(--muted); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .ec-section { padding: 72px 0; }
  .ec-hero { padding: 48px 0 56px; }
  .ec-hero__title { font-size: 40px; }
  .ec-hero__title-en { font-size: 18px; }
  .ec-h2 { font-size: 30px; }
  .ec-news__title { font-size: 26px; }
  .ec-grid--2 { grid-template-columns: 1fr 1fr; }
  .ec-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .ec-scenes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ec * { transition: none !important; } }
.ec :where(a, button):focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; border-radius: 6px; }
.ec [id] { scroll-margin-top: 24px; }
