/* Tempe v3 homepage — lesson plan */
body.site-page main.tpm{width:100% !important;max-width:none;margin:0}
.tpm{--ink:#1d211b;--muted:#666d5e;--accent:#5b6f3c;--accent2:#9a5134;--soft:#edf1e8;--line:#dedfd6;--dark:#1b2116;
  color:var(--ink);font-size:1.05rem;line-height:1.66}
.tpm h2{font-size:clamp(1.45rem,3vw,1.95rem);margin:.2em 0 .5em}
.tpm p{margin:.8em 0}
.tpm a{color:var(--accent2)}
.tpm mark{background:#fff3b0;padding:0 4px}

.tp-hero{background:#fff;border-bottom:3px solid var(--dark);padding:52px 24px}
.tp-hero-in{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center}
.tp-hero-lead{max-width:36em}
.tp-kick{text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;color:var(--accent2);font-weight:700;margin:0 0 12px}
.tp-hero h1{font-size:clamp(1.9rem,4.2vw,2.8rem);line-height:1.1;margin:0 0 14px}
.tp-line{font-size:1.15rem;color:var(--muted);margin:0 0 24px;max-width:32em}
.tp-note{font-size:.93rem;color:var(--muted);margin-top:12px}
.tp-hero-pic img{width:100%;max-height:460px;object-fit:cover;border-radius:8px;border:2px solid var(--dark)}

.tp-call{display:inline-block;background:var(--accent2);color:#fff !important;text-decoration:none;font-weight:700;
  font-size:1.25rem;padding:14px 34px;border-radius:6px}
.tp-call:hover{background:#7e4229}
.tp-call-lg{font-size:1.5rem;padding:18px 42px}

.tp-syllabus{background:var(--soft);padding:44px 0;border-bottom:1px solid var(--line)}
.tp-syl-in{max-width:760px;margin:0 auto;padding:0 24px}
.tp-syl-in h2{margin-top:0}
.tp-syl-row{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:12px 0;border-bottom:1px dashed var(--line);align-items:baseline}
.tp-syl-row span{font-weight:700;color:var(--accent2);text-transform:uppercase;letter-spacing:.06em;font-size:.9rem}
.tp-syl-row p{margin:0;color:var(--muted)}

.tp-lesson{max-width:700px;margin:0 auto;padding:30px 24px 4px}
.tp-list{margin:.8em 0;padding-left:1.25em}
.tp-list li{margin:.5em 0}

.tpl-fig,.tpm .tpl-fig{max-width:1000px;margin:38px auto;padding:0 24px}
.tpm .tpl-fig img{width:100%;max-height:440px;object-fit:cover;border-radius:8px;border:2px solid var(--dark)}

.tp-band{background:var(--dark);color:#e7ecdf;text-align:center;padding:46px 24px;margin:44px 0}
.tp-band p{font-size:1.25rem;font-weight:700;margin:0 0 18px}

.tp-quiz{background:var(--soft);padding:48px 0;margin-top:44px}
.tp-quiz-in{max-width:760px;margin:0 auto;padding:0 24px}
.tp-quiz-in h2{margin-top:0}
.tp-q{background:#fff;border:2px solid var(--dark);border-radius:8px;margin:10px 0;padding:4px 18px}
.tp-q summary{font-weight:700;padding:12px 0;cursor:pointer}
.tp-q p{margin:0 0 14px;color:var(--muted)}

.tp-close{text-align:center;padding:60px 24px}
.tp-close h2{margin-top:0}
.tp-close p{max-width:40em;margin-left:auto;margin-right:auto}

@media (max-width:780px){
  .tp-hero-in{grid-template-columns:1fr;gap:26px}
  .tp-syl-row{grid-template-columns:1fr;gap:2px}
  .tp-call-lg{font-size:1.25rem;padding:15px 32px}
}

/* ===== v3.1 polish: content image alignment + rhythm (2026-07-03) =====
   Fixes platform rule `body.site-page figure{margin:0}` out-specifying site
   figure classes (left-anchored images), oversized portrait images, and
   excessive vertical spacing. Append AFTER site css; idempotent by marker. */
figure[class$="-ph"],figure[class$="-photo"],figure[class$="-fig"],
figure.vnp-pic,figure.srp-pic,figure.pxp-pic,figure.hbp-cardpic,figure.sr-wide{
 max-width:720px !important;margin:24px auto !important;padding:0 20px !important;
 box-sizing:border-box;float:none;clear:both}
figure[class$="-ph"] img,figure[class$="-photo"] img,figure[class$="-fig"] img,
figure.vnp-pic img,figure.srp-pic img,figure.pxp-pic img,figure.hbp-cardpic img,figure.sr-wide img{
 width:100% !important;display:block;max-height:480px;object-fit:cover}
body main[class] h2{margin-top:30px}
main[class] section>h2:first-child,main[class] div>h2:first-child{margin-top:0}
body main[class] p{margin-top:12px;margin-bottom:12px}
main[class] section[class*="-sec"]{margin-top:32px}
