/* "The Coached Model" — public reference page (the-coached-model.php).
   The foundation (fonts, header, section grid, method, lab, footer) comes from
   deep-read-landing.css, which this sheet loads on top of. */

.mdl-page { background: var(--cream); }

/* ── Hero ── */
.mdl-hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 90, 48, 0.05), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(29, 158, 117, 0.06), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(83, 74, 183, 0.05), transparent 34%),
    radial-gradient(circle at 90% 86%, rgba(153, 53, 86, 0.05), transparent 34%),
    linear-gradient(160deg, #fdfbf6 0%, #f7f2e9 60%, #f1eadb 100%);
}

.mdl-hero-inner {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.mdl-hero-left { flex: 1 1 380px; max-width: 560px; }
.mdl-hero-right { flex: 0 0 480px; }

.mdl-hero-title {
  font-family: 'Tiempos Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0.6rem 0 1.1rem;
}

.mdl-hero-desc {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
}

.mdl-cta-row { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.8rem; }

.mdl-btn {
  display: inline-block;
  background: var(--green-deep);
  color: #f2ffe5;
  font-family: 'Graphik', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.mdl-btn:hover { background: #234709; transform: translateY(-1px); }

.mdl-cta-note { font-size: 0.85rem; color: var(--ink-muted); }

/* ── The wheel ── */
.mdl-wheel-wrap { position: relative; }
.mdl-wheel-svg { display: block; width: 100%; height: auto; }

.mdl-wheel-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

.mdl-wedge { cursor: pointer; transition: opacity 0.25s ease; }
.mdl-wheel-svg.has-hover .mdl-wedge:not(.is-hover) { opacity: 0.55; }
.mdl-wedge.is-hover { fill: var(--wf); opacity: 1; }
.mdl-wedge:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }

.mdl-fam-arc-label {
  font-family: 'Graphik', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.mdl-wheel-center-fam {
  font-family: 'Graphik', Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.mdl-wheel-center-name {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 21px;
  fill: var(--ink);
}

.mdl-wheel-center-copy {
  font-family: 'Tiempos Text', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  fill: var(--ink-muted);
}

/* ── Sticky chapter nav ── */
.mdl-subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mdl-subnav-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.75rem 0;
}

.mdl-subnav-inner::-webkit-scrollbar { display: none; }

.mdl-subnav a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.mdl-subnav a:hover { color: var(--ink); }
.mdl-subnav a.mdl-subnav-cta { color: var(--green-mid); font-weight: 600; margin-left: auto; }

/* ── The idea ── */
.mdl-idea { background: #fff; border-bottom: 1px solid var(--border); padding: 4.5rem 0; }

.mdl-idea-pull {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 1.25rem 0;
}

/* ── Section headings ── */
.mdl-sec-heading {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.mdl-sec-lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

/* ── Traits ── */
.mdl-traits { padding: 4.5rem 0; background: var(--cream); }

.mdl-trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.mdl-trait-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem 1.4rem 1.2rem;
  box-shadow: 0 3px 18px rgba(43, 58, 26, 0.03);
}

.mdl-trait-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }

.mdl-trait-glyph { width: 21px; height: 21px; color: var(--ink-soft); flex: none; }
.mdl-trait-glyph svg { display: block; width: 100%; height: 100%; }

.mdl-trait-name {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.mdl-trait-reading {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--tc, var(--ink));
  text-align: right;
}

.mdl-trait-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.mdl-trait-poles {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.mdl-trait-poles .is-dominant { color: var(--tc, var(--ink)); font-weight: 600; }

.mdl-bar {
  position: relative;
  height: 22px;
  cursor: grab;
  touch-action: none;
}

.mdl-bar:active { cursor: grabbing; }

.mdl-bar-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 7px;
  transform: translateY(-50%);
  background: var(--cream-dark);
  border-radius: 5px;
}

.mdl-bar-notch {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.5px; height: 13px;
  transform: translate(-50%, -50%);
  background: rgba(43, 58, 26, 0.25);
}

.mdl-bar-fill {
  position: absolute;
  top: 50%;
  height: 7px;
  transform: translateY(-50%);
  background: var(--tc, var(--green-mid));
  border-radius: 5px;
}

.mdl-bar-thumb {
  position: absolute;
  top: 50%;
  width: 17px; height: 17px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--tc, var(--green-mid));
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(43, 58, 26, 0.22);
}

.mdl-bar:focus-visible { outline: 2px solid var(--tc, var(--green-mid)); outline-offset: 3px; border-radius: 6px; }

.mdl-trait-note {
  font-family: 'Tiempos Text', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  min-height: 3.4em;
}

/* ── Families ── */
.mdl-families {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0;
}

.mdl-fam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.mdl-fam-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--fc);
  border-radius: 10px;
  padding: 1.25rem 1.2rem 1.15rem;
  background: var(--white);
}

.mdl-fam-card svg { display: block; margin-bottom: 0.7rem; }

.mdl-fam-name {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.mdl-fam-tagline {
  font-family: 'Tiempos Text', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.mdl-fam-members {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ── Patterns explorer: list on the left, engraved plate on the right ── */
.mdl-atlas { padding: 4.5rem 0; background: var(--cream); }

.mdl-explorer {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mdl-list-fam { margin-bottom: 1.2rem; }
.mdl-list-fam:last-child { margin-bottom: 0; }

.mdl-list-famhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fc);
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.mdl-list-item {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: none;
  border: 0;
  border-left: 2.5px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 0.55rem 0.8rem 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.mdl-list-item:hover { background: rgba(43, 58, 26, 0.04); }

.mdl-list-item.is-active {
  background: var(--white);
  border-left-color: var(--fc);
  box-shadow: 0 2px 12px rgba(43, 58, 26, 0.06);
}

.mdl-list-name {
  display: block;
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
}

.mdl-list-copy {
  display: block;
  font-family: 'Tiempos Text', Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

.mdl-plate-wrap { position: sticky; top: 58px; }

.mdl-plate {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--fc, var(--green-mid));
  border-radius: 12px;
  padding: 1.6rem 2.2rem 2rem;
  box-shadow: 0 6px 28px rgba(43, 58, 26, 0.05);
}

.mdl-plate-svg {
  display: block;
  width: min(400px, 88%);
  height: auto;
  margin: 0 auto 0.4rem;
}

/* The plate draws the report's own engraving, so it carries the report's own
   etch animation. Scoped here because the page is not a .coached-shell body. */
.mdl-plate-svg .stroke-etch {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mdlEtch var(--t, 1.1s) cubic-bezier(0.45, 0, 0.25, 1) forwards;
  animation-delay: var(--d);
}

.mdl-plate-svg .fade-in {
  opacity: 0;
  animation: mdlSoft 0.6s ease forwards;
  animation-delay: var(--d);
}

@keyframes mdlEtch { to { stroke-dashoffset: 0; } }
@keyframes mdlSoft { to { opacity: 1; } }

.mdl-plate-fam {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fc);
  margin: 0 0 0.35rem;
}

.mdl-plate-name {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.mdl-plate-copy {
  font-family: 'Tiempos Text', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.mdl-plate-blurb {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 0.9rem;
}

.mdl-plate-cta {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.mdl-plate-cta-line {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}

.mdl-plate-cta-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0.15rem 0 0;
}

.mdl-plate-cta .mdl-btn { margin-left: auto; flex: none; }

.mdl-plate-inner { animation: mdlPlateIn 0.45s ease both; }

@keyframes mdlPlateIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Closing CTA + lab band ── */
.mdl-close { background: var(--green-deep); padding: 5rem 0 4rem; text-align: center; }

.mdl-close-title {
  font-family: 'Tiempos Text', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.5px;
  color: var(--cream);
  margin-bottom: 0.9rem;
}

.mdl-close-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.72);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

.mdl-btn-light {
  display: inline-block;
  background: var(--cream);
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mdl-btn-light:hover { background: #fffaf1; }

.mdl-close-rule {
  width: 60px;
  height: 1px;
  background: rgba(245, 240, 232, 0.25);
  margin: 3.2rem auto 2.6rem;
}

.mdl-close .dr-lab-text { max-width: 660px; margin-left: auto; margin-right: auto; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .mdl-hero-inner { flex-direction: column-reverse; align-items: center; gap: 2rem; }
  .mdl-hero-right { flex: none; width: min(92vw, 430px); }
  .mdl-hero-left { max-width: 620px; text-align: center; }
  .mdl-hero-desc { margin: 0 auto; }
  .mdl-cta-row { justify-content: center; flex-wrap: wrap; }
  .mdl-trait-grid { grid-template-columns: 1fr; }
  .mdl-fam-grid { grid-template-columns: 1fr 1fr; }

  /* Explorer collapses to a chip rail above the plate. */
  .mdl-explorer { grid-template-columns: 1fr; gap: 1rem; }
  .mdl-list {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mdl-list::-webkit-scrollbar { display: none; }
  .mdl-list-fam { display: contents; }
  .mdl-list-famhead { display: none; }
  .mdl-list-item {
    flex: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    background: var(--white);
  }
  .mdl-list-item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fc);
    flex: none;
  }
  .mdl-list-item.is-active { border-color: var(--fc); box-shadow: inset 0 0 0 1px var(--fc); }
  .mdl-list-name { font-size: 0.92rem; }
  .mdl-list-copy { display: none; }
  .mdl-plate-wrap { position: static; }
}

@media (max-width: 640px) {
  .dr-logo-sub { display: none; }
  .dr-header-nav { gap: 16px; }
  .dr-nav-link { white-space: nowrap; }
  .mdl-hero { padding: 48px 0 56px; }
  .mdl-fam-grid { grid-template-columns: 1fr; }
  .mdl-plate { padding: 1.2rem 1.2rem 1.5rem; }
  .mdl-plate-name { font-size: 1.45rem; }
  .mdl-plate-cta .mdl-btn { margin-left: 0; }
  .mdl-idea, .mdl-traits, .mdl-families, .mdl-atlas { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mdl-plate-svg .stroke-etch { animation: none; stroke-dashoffset: 0; }
  .mdl-plate-svg .fade-in { animation: none; opacity: 1; }
  .mdl-plate-inner { animation: none; }
}
