/* /intro-to-homeschooling only. Loaded after /free-course.css. */
.ih-gate{display:grid;grid-template-columns:1fr 1.2fr;gap:28px 40px;align-items:start;background:var(--cream);border:var(--line);border-radius:4px;padding:clamp(22px,4vw,40px);box-shadow:none}
.ih-gate-copy p{max-width:44ch}
.ih-form{display:grid;gap:14px}
.ih-form label{display:grid;gap:6px;font-weight:700}
.ih-form input:not([type=checkbox]):not([type=radio]),.ih-form select{font:inherit;font-weight:400;padding:12px 14px;border:var(--line);border-radius:4px;background:#fff;color:inherit;min-height:48px}
.ih-form fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.ih-form legend{font-weight:700;margin-bottom:8px;width:100%}
.ih-form .ih-tick{display:flex;align-items:center;gap:8px;font-weight:400;min-height:44px}
.ih-form .ih-tick input{width:20px;height:20px;accent-color:var(--teal)}
.ih-form button{justify-self:start}
.ih-err{margin:0;color:#9b1c1c;font-weight:700}
/* gate: course hidden until the form is sent (only when JS runs) */
.ih-gated .ih-course{display:none}
.ih-gated.ih-open .ih-course{display:block}
.ih-gated.ih-open .ih-gate-wrap{display:none}
html:not(.ih-gated) .ih-gate-wrap{display:none}
/* optional faith box inside lessons */
.ih-faith{margin:14px 0;padding:14px 18px;border:1px solid rgba(164,122,42,.45);border-radius:4px;background:#f6efe0}
@media (max-width:820px){.ih-gate{grid-template-columns:1fr}}
.ih-fig{margin:6px 0 4px}
.ih-fig svg{max-width:860px}
@media (max-width:700px){
  .ih-fig{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  .ih-fig svg{min-width:640px}
  .ih-fig::after{content:"Swipe to see the whole diagram →";display:block;font-size:14px;color:var(--muted);margin-top:6px;position:sticky;left:0}
}
