/* The Governance Academy training page, on top of training.css: the academy's green, the chapter cards with the film
   player, the readings, the term cards that turn, and the chapter map. */
:root { --accent: #047857; --accent-ink: #ffffff; --accent-soft: #d1fae5; }
@media (prefers-color-scheme: dark) { :root { --accent: #34d399; --accent-ink: #052e22; --accent-soft: #0f2e2b; } }
.hero { background: linear-gradient(135deg, #06281F, #0b3d2e 60%, #0f4f3b); }
.hero-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .hero-grid { grid-template-columns: 3fr 2fr; } }
.hero h1 { max-width: 18ch; }
.hero .ur-lead { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; text-align: left; font-size: 1.15rem; line-height: 2; color: #fde68a; }
.hero .domains { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero .domains li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px; color: #e6edf7; font-size: .95rem; display: flex; gap: 10px; align-items: baseline; }
.hero .domains b { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #F59E0B; color: #06281F; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }

.signup .grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .signup .grid2 { grid-template-columns: 1fr 1fr; } .signup .wide { grid-column: 1 / -1; } }
.signup label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.signup input, .signup textarea { font: 1rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .status { color: var(--muted); font-size: .95rem; }
.small { font-size: .9rem; color: var(--muted); }
.task-head h3 { margin: 0; }

.lesson video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #06281F; display: block; }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapters .chapter { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; font: 1rem var(--body); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chapters .chapter:hover { background: var(--soft); }
.chapters .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--lantern-soft); color: var(--lantern); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

.reading h4 { margin: 18px 0 6px; font: 700 1.1rem var(--display); }
.reading p { margin: 0 0 10px; }
.reading .example { background: var(--soft); border-left: 4px solid var(--lantern); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 10px 0 14px; white-space: pre-line; }
.reading .keys { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; }
.reading .keys h4 { margin-top: 0; }
.reading .keys ul { margin: 0; padding-left: 20px; }
details.reading { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 16px; margin-top: 12px; }
details.reading summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 1.05rem; }
details.reading[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details.reading > div { padding-bottom: 16px; }

.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.deck-head .day { text-align: center; display: flex; flex-direction: column; }
.deck-head .day span { font-size: .85rem; color: var(--muted); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { position: relative; min-height: 230px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0; cursor: pointer; text-align: left; font: 1rem var(--body); overflow: hidden; }
.card .face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; transition: opacity .2s; }
.card .front { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.card .word { font: 700 1.35rem var(--display); color: var(--ink); }
.card .pos { font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.card .hint { margin-top: auto; font-size: .85rem; color: var(--muted); }
.card .back { opacity: 0; background: var(--surface); }
.card.turned .front { opacity: 0; }
.card.turned .back { opacity: 1; }
.card .def { font-weight: 600; }
.card .ex { font-size: .92rem; color: var(--muted); font-style: italic; }
.card .ur { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; text-align: right; font-size: 1.05rem; line-height: 1.9; }
.card .forms { font-size: .85rem; color: var(--muted); margin-top: auto; }

.map td .pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.map .live { background: var(--good-soft); color: var(--good); }
.map .next { background: var(--lantern-soft); color: var(--lantern); }
.map .planned { background: var(--soft); color: var(--muted); }

.share-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .share-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.share-grid a { display: block; color: var(--muted); font-size: .9rem; text-decoration: none; }
.share-grid img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.25); margin-bottom: 6px; }

/* The paid chapter's teaser and the full chapter page (scripts/training/aigp_chapter.py). */
.teaser .price { border: 2px solid var(--accent, #F59E0B); }
.teaser .price h3 { margin: 0; }
.teaser .task-foot .btn + .btn { margin-left: 8px; }
.concept { margin: 18px 0; }
.concept h3 { margin-top: 0; }
.concept .block { border-left: 3px solid var(--line, #d6d3d1); padding: 2px 0 2px 12px; margin: 12px 0; }
.concept .block.fp { border-color: #047857; }
.concept .block.fe { border-color: #F59E0B; }
.concept .block.exam { border-color: #1e3a8a; }
.concept .block h4 { margin: 0 0 6px; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.concept figure { margin: 14px 0; }
.concept figure img { width: 100%; height: auto; border-radius: 10px; }
.concept figcaption { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.flash-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flash-grid { grid-template-columns: 1fr 1fr; } }
.flash { border: 1px solid var(--line, #d6d3d1); border-radius: 10px; padding: 10px 12px; }
.flash summary { cursor: pointer; font-weight: 600; }
.quiz .q { margin: 14px 0; }
.quiz .opts { list-style: none; padding-left: 0; }
.quiz details { margin-top: 6px; }

/* A signed-in visitor (public/training/door.js): the card that replaces the sign up box. */
.signed-in { border: 2px solid var(--accent, #F59E0B); }
.signed-in h3 { margin-top: 0; }
