/* Guided training additions; preserves the original editorial page system. */
html { scroll-padding-top: 100px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.journey { display:grid; grid-template-columns:repeat(5,1fr); list-style:none; padding:0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); margin:2rem 0; }
.journey li + li { border-left:1px solid var(--rule); }
.journey a { display:block; text-decoration:none; padding:1.2rem .9rem; font-size:.85rem; }
.journey strong { display:block; color:var(--red); margin-bottom:.45rem; letter-spacing:.05em; }
.course-notice { padding:1.1rem 1.3rem; border-left:3px solid var(--red); background:var(--red-soft); font-size:.95rem; line-height:1.6; }
.resume-row,.quiz-actions { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; margin-top:1.25rem; }
.module-body > p { max-width:78ch; }
.module-body > p + p { margin-top:1rem; }
.module-footer { gap:.8rem; flex-wrap:wrap; }
.age-confirm,.practice-confirm { padding:1.6rem; margin-top:1.6rem; border:1px solid var(--rule); background:var(--white); }
.course-check { display:flex; align-items:flex-start; gap:.9rem; font-weight:600; margin-top:1.2rem; cursor:pointer; line-height:1.5; }
.course-check input { appearance:auto; margin-top:.3rem; flex-shrink:0; width:1.2rem; height:1.2rem; accent-color:var(--red); }
.talk-card details p { font-size:1rem; line-height:1.65; margin-top:1rem; }
.talk-card > a { margin-top:1rem; }
.quiz-questions { padding:0; margin:1.7rem 0 0; border:0; min-width:0; }
.quiz-question { padding:1.7rem; margin:0 0 1rem; border:1px solid var(--rule); background:var(--white); min-width:0; }
.quiz-question legend { font:600 .82rem var(--sans); color:var(--red); padding:0 .5rem; max-width:100%; }
.quiz-question .question-prompt { font:400 1.25rem/1.4 var(--serif); margin:0 0 1.1rem; }
.quiz-option { display:flex; align-items:flex-start; gap:.8rem; padding:.8rem; border:1px solid var(--soft-rule); margin-top:.5rem; cursor:pointer; line-height:1.45; }
.quiz-option input { appearance:auto; width:1.15rem; height:1.15rem; flex-shrink:0; margin-top:.15rem; accent-color:var(--red); }
.quiz-option:has(input:checked) { border-color:var(--red); background:var(--red-soft); }
.quiz-feedback { padding:1rem; margin-top:1rem; border-left:3px solid var(--red); background:var(--red-soft); font-size:.92rem; line-height:1.6; }
.quiz-feedback.correct { border-color:#42644d; background:rgba(66,100,77,.08); }
fieldset:disabled .quiz-option { opacity:.55; cursor:not-allowed; }
button:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.validation-message { color:var(--red-dark); font-weight:600; margin-top:1rem; }
.quiz-result { border:1px solid var(--red); padding:1.6rem; margin-top:1.5rem; background:var(--white); }
.quiz-result h3 { color:var(--red); }
.completion-section { background:var(--cream); }
.completion-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
.certificate-panel { padding:1.7rem; background:var(--white); border:1px solid var(--rule); box-shadow:8px 8px 0 var(--red-soft); }
.certificate-panel label { display:block; font-weight:600; margin:1.3rem 0 .6rem; }
.certificate-panel input { width:100%; padding:.9rem; background:white; border:1px solid var(--rule); border-radius:0; }
.download-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.download-card { padding:1.5rem; border:1px solid var(--rule); background:var(--white); display:flex; flex-direction:column; align-items:flex-start; }
.download-card:first-child { border-top:4px solid var(--red); }
.download-card h3 { font-size:1.6rem; margin:.8rem 0; }
.download-card p { margin:0 0 1.2rem; }
.download-card a { margin-top:auto; }
@media (max-width:900px) { .journey { grid-template-columns:1fr; } .journey li + li { border-left:0; border-top:1px solid var(--rule); } .journey a { padding:.85rem; } .journey strong { display:inline; margin-right:.6rem; } .completion-grid { grid-template-columns:1fr; gap:1.5rem; } .download-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .download-grid { grid-template-columns:1fr; } .quiz-question,.certificate-panel { padding:1.2rem; } .nav { width:calc(100% - 2rem); } .brand { min-width:0; } .brand-subtitle { font-size:.6rem; } .header-actions .btn { padding:.6rem; font-size:.7rem; } .quiz-actions > .btn { width:100%; text-align:center; justify-content:center; } .hero h1 { font-size:3.1rem; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }
@media print { #quiz,#completion,#downloads,.journey,.resume-row,.age-confirm,.practice-confirm,#storageNotice { display:none !important; } body { background:white; color:#111; } }

/* Enhanced two-track course; supplied PDF wording is retained on screen. */
.track-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin-top:2rem; }
.track-card { background:var(--white); border:1px solid var(--rule); border-top:3px solid var(--red); padding:1.7rem; }
.track-card h3 { margin:.9rem 0; font-size:2rem; }
.track-card p { margin-bottom:1.3rem; }
.source-details { margin:1.7rem 0; border:1px solid var(--rule); padding:1rem 1.4rem; background:var(--white); }
.source-details > summary { cursor:pointer; font:600 .95rem/1.5 var(--sans); }
.packet-page { padding:1.6rem 0; max-width:85ch; }
.packet-page + .packet-page { border-top:1px solid var(--rule); }
.packet-page > h3 { font-size:1.85rem; line-height:1.15; margin:.7rem 0 1.1rem; }
.packet-content { font:400 1.03rem/1.7 var(--serif); overflow-wrap:anywhere; }
.packet-content p { margin:0 0 1rem; max-width:80ch; }
.packet-content h4 { font:600 .96rem/1.5 var(--sans); color:var(--red); margin:1.4rem 0 .65rem; }
.packet-content a { text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.audience-tag { color:var(--red); letter-spacing:.06em; }
.talk-audience { font:400 .8rem/1.6 var(--sans); color:var(--muted); margin-top:.8rem; }
.talk-card > details { border-top:1px solid var(--rule); padding:1rem 0; }
.talk-card > details > summary { cursor:pointer; font:600 .86rem/1.5 var(--sans); }
.talk-card .packet-page > h3 { font-size:1.5rem; }
.teen-details > summary { color:var(--red); }
.caregiver-details { background:var(--red-soft); padding-left:.8rem !important; padding-right:.8rem !important; }
.local-help-title { margin-top:2.5rem; }
.self-reflection { padding:1.4rem 0; margin-top:1.4rem; border-top:1px solid var(--rule); }
#agreement .agreement-layout { margin-top:2rem; }
.course-check { text-transform:none; letter-spacing:normal; }
@media (max-width:700px) { .track-grid { grid-template-columns:1fr; } .track-card { padding:1.3rem; } .packet-page > h3 { font-size:1.65rem; } .source-details { padding:.9rem 1rem; } .talk-card { min-width:0; } }
@media print { #tool-approval,#facilitator-notes,#follow-up { break-before:page; } .source-details:not([open]) { display:none; } }

/* Expanded four-page talks need wider reading columns than the old summaries. */
.talk-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:700px) { .talk-grid { grid-template-columns:minmax(0,1fr); } }

/* Language choices are visible on phones as well as desktop. */
@font-face { font-family: FamilyArabic; src: url('/fonts/record-arabic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: FamilyLatin; src: url('/fonts/record-latin.ttf') format('truetype'); font-display: swap; }
.training-language-bar { border-bottom:1px solid var(--rule); background:var(--white); }
.training-language-bar > .wrap { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-top:.75rem; padding-bottom:.75rem; }
.training-language-bar > .wrap > span { font:500 .82rem/1.5 var(--sans); }
.training-language-links { display:flex; flex-wrap:wrap; gap:.5rem; }
.training-language-links a { text-decoration:none; padding:.5rem .8rem; border:1px solid var(--rule); font:500 .87rem/1.4 FamilyLatin, sans-serif; }
.training-language-links a[lang="ar"] { font-family:FamilyArabic,serif; font-size:1.07rem; }
.training-language-links a:hover,.training-language-links a:focus-visible { color:white; background:var(--ink); }
.training-language-links a[aria-current="page"] { color:white; background:var(--red); border-color:var(--red); }
html[dir="rtl"] { --display:FamilyArabic,serif; --serif:FamilyArabic,serif; --sans:FamilyArabic,sans-serif; }
html[dir="rtl"] body { text-align:right; }
html[dir="rtl"] .micro,html[dir="rtl"] .btn,html[dir="rtl"] .module-summary,
html[dir="rtl"] .section-kicker,html[dir="rtl"] .number,html[dir="rtl"] .audience-tag,
html[dir="rtl"] .brand-subtitle { letter-spacing:0; text-transform:none; }
html[dir="rtl"] .btn { font-size:1rem; line-height:1.5; }
html[dir="rtl"] .packet-content,html[dir="rtl"] .talk-card details p { font-size:1.2rem; line-height:1.8; }
html[dir="rtl"] .source-note { font-size:.98rem; line-height:1.7; }
html[dir="rtl"] .module-title { line-height:1.5; }
html[dir="rtl"] .module-num,html[dir="rtl"] .contact-number { unicode-bidi:isolate; direction:ltr; }
html[dir="rtl"] .course-notice { border-left:0; border-right:3px solid var(--red); }
html[dir="rtl"] .journey li + li { border-left:0; border-right:1px solid var(--rule); }
html[dir="rtl"] .quiz-feedback { border-left:0; border-right:3px solid var(--red); }
html[dir="rtl"] .quiz-feedback.correct { border-right-color:var(--red); background:var(--red-soft); }
html[dir="rtl"] .plan-form input { text-align:right; }
html[dir="rtl"] .certificate-panel input { direction:auto; }
@media (max-width:600px) { .training-language-bar > .wrap { align-items:flex-start; flex-direction:column; gap:.5rem; } .training-language-links { width:100%; } .training-language-links a { flex:1; text-align:center; } }
@media (max-width:900px) { html[dir="rtl"] .journey li + li { border-right:0; border-top:1px solid var(--rule); } }
@media print { .training-language-bar { display:none; } }
