/* GCSE maths papers and lessons. Boxed, flat cards in the Academy's colours; print styles for the paper. */
.g-hero { background: var(--navy); color: #fff; padding: 46px 48px 40px; text-align: center; }
.g-hero h1 { font-family: 'Poppins', sans-serif; font-size: 2.1rem; margin: 12px auto; max-width: 760px; line-height: 1.2; }
.g-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; line-height: 1.65; }
.g-hero .crumb { color: rgba(255,255,255,.75); font-weight: 800; font-size: .85rem; text-decoration: none; }
.free-band { background: var(--cyan-light); text-align: center; padding: 14px; font-weight: 800; color: var(--blue); font-family: 'Poppins', sans-serif; }
.g-wrap { max-width: 1020px; margin: 0 auto; padding: 32px 32px 64px; }
.g-h2 { font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 1.35rem; margin: 30px 0 6px; }
.g-lede { color: var(--text-light); margin: 0 0 18px; line-height: 1.6; }
.g-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.g-card h3 { font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 1.05rem; margin: 0 0 10px; }
.g-card h3:not(:first-child) { margin-top: 18px; }
.g-card p, .g-card li { color: var(--text-mid); line-height: 1.65; }
.g-muted { color: var(--text-light); font-size: .9rem; }
.g-note { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 16px 18px; color: var(--text-mid); line-height: 1.65; margin: 12px 0; }
.g-note.warn { border-left-color: #b7791f; }
.g-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-steps div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.g-steps b { display: block; font-family: 'Poppins', sans-serif; color: var(--navy); margin-bottom: 4px; }
.g-steps span { color: var(--text-mid); font-size: .92rem; line-height: 1.55; }
.g-subject { font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 1.1rem; margin: 22px 0 8px; }
.pp-blank { border-color: transparent !important; }
.pp-tick { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #111; margin-right: 6px; vertical-align: -2px; }
.g-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-tier h3 { margin-bottom: 4px; }
.g-paper { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.g-paper div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.g-paper b { font-family: 'Poppins', sans-serif; color: var(--navy); }
.g-paper div span { color: var(--text-light); font-size: .85rem; font-weight: 700; }
.g-paper p { margin: 4px 0 10px; font-size: .9rem; }
.g-paper .btn-primary { font-size: .88rem; }
.g-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.g-input { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: 'Nunito', sans-serif; font-size: 16px; min-width: 0; }
.g-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.g-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.g-table th, .g-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.g-table th { color: var(--text-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.g-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.g-topic { display: inline-block; border: 1px solid var(--border); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .86rem; text-decoration: none; }
.g-topic:hover { border-color: var(--cyan); }
.g-topic span { color: var(--text-light); font-weight: 600; margin-left: 4px; }
.g-honest { font-size: .93rem; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .86em; line-height: 1.05; margin: 0 1px; }
.fr span:first-child { border-bottom: 1px solid currentColor; padding: 0 2px; }
/* Answer entry and results */
.g-sheet { display: grid; gap: 8px; margin: 12px 0 16px; }
.g-srow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.g-slabel { font-weight: 800; color: var(--navy); min-width: 42px; }
.g-smarks { color: var(--text-light); font-size: .82rem; min-width: 64px; }
.g-srow .g-input { flex: 1 1 180px; max-width: 280px; }
.g-choices { display: flex; gap: 6px; }
.g-choice { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-weight: 800; color: var(--navy); cursor: pointer; font-family: inherit; }
.g-choice.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-score { text-align: center; }
.g-big { font-family: 'Poppins', sans-serif; font-size: 3rem; font-weight: 800; color: var(--navy); }
.g-big span { font-size: 1.5rem; color: var(--text-light); }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-bar { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; color: var(--text-mid); }
.g-bar div { background: #eef1f6; border-radius: 6px; height: 10px; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: var(--cyan); }
.g-review { border-top: 1px solid var(--border); padding: 8px 0; }
.g-review summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.g-review summary span { font-weight: 700; color: var(--text-light); font-size: .88rem; }
.g-review.ok summary span { color: #2f855a; }
.g-review.no summary span { color: #b7791f; }
.g-review summary em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--navy); }
.g-why { border-left: 3px solid #b7791f; padding-left: 10px; }
.g-next { border-left: 3px solid var(--cyan); padding-left: 10px; }
.g-ok { color: #2f855a; }
/* Lessons */
.g-band-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.g-focus { font-weight: 700; }
.g-example { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.g-example details summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.g-pq { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.g-opts { display: grid; gap: 8px; margin: 10px 0; }
.g-opt { text-align: left; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 1rem; cursor: pointer; color: var(--text-dark, #1a2238); }
.g-opt b { color: var(--navy); margin-right: 8px; }
.g-opt.ok { border-color: #2f855a; background: #f0faf4; }
.g-opt.no { border-color: #b7791f; background: #fdf8ef; }
/* The printable paper */
.pp-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 820px; margin: 18px auto 0; padding: 0 20px; }
.pp { max-width: 820px; margin: 16px auto 48px; background: #fff; color: #111; border: 1px solid var(--border); border-radius: 12px; padding: 36px 40px; font-size: 1.02rem; }
.pp-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 12px; }
.pp-brand { font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--navy); }
.pp-head h1 { font-family: 'Poppins', sans-serif; font-size: 1.45rem; margin: 6px 0; }
.pp-sub { color: #555; margin: 0; font-size: .9rem; }
.pp-qr { width: 110px; text-align: center; font-size: .72rem; flex: none; }
.pp-qr svg { width: 110px; height: 110px; display: block; }
.pp-fields { display: flex; gap: 28px; flex-wrap: wrap; margin: 16px 0 10px; }
.pp-box { border: 1.5px solid #111; padding: 12px 16px; margin: 10px 0; font-size: .92rem; line-height: 1.55; }
.pp-box ul { margin: 6px 0 0 18px; }
.pp-owner { font-size: .8rem; color: #555; }
.pp-q { display: flex; gap: 14px; margin-top: 22px; break-inside: avoid; page-break-inside: avoid; }
.pp-num { flex: none; width: 30px; height: 30px; border: 1.5px solid #111; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pp-body { flex: 1; line-height: 1.6; }
.pp-part { font-weight: 800; }
.pp-stem { display: inline-block; margin: 6px 0; padding-left: 10px; border-left: 3px solid #ccd; }
.pp-circle { font-weight: 700; font-size: .9rem; margin: 8px 0 4px; }
.pp-opts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pp-opts b { margin-right: 4px; }
.pp-work { height: 96px; }
.pp-answer { display: flex; justify-content: flex-end; align-items: flex-end; gap: 8px; font-size: .9rem; }
.pp-answer span { display: inline-block; width: 200px; border-bottom: 1.5px dotted #111; height: 22px; }
.pp-marks { text-align: right; font-weight: 700; font-size: .88rem; margin-top: 4px; }
.pp-total { text-align: right; font-size: .85rem; font-weight: 700; border-top: 1px solid #999; padding-top: 4px; margin: 10px 0 0 44px; }
.pp-end { text-align: center; font-weight: 800; margin-top: 26px; letter-spacing: .08em; }
.pp-sheet { break-before: page; page-break-before: always; margin-top: 36px; }
.pp-sheet h2 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; }
.pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 26px; margin-top: 10px; }
.pp-cell { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #ddd; padding: 6px 0; }
.pp-cell b { min-width: 34px; }
.pp-cell i { font-style: normal; width: 24px; height: 24px; border: 1.5px solid #111; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.pp-line { flex: 1; border-bottom: 1.5px dotted #111; height: 20px; }
.pp-foot { display: none; }
@media (max-width: 720px) {
  .g-hero { padding: 34px 18px; } .g-hero h1 { font-size: 1.6rem; } .g-wrap { padding: 24px 16px 48px; }
  .g-steps, .g-tiers, .g-two { grid-template-columns: 1fr; }
  .pp { padding: 20px 16px; border-radius: 0; } .pp-head { flex-direction: column-reverse; } .pp-grid { grid-template-columns: 1fr; }
  .g-bar { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }
  body { background: #fff !important; }
  .site-nav, .site-footer, .pp-bar, .no-print, #wajd-voice, .free-band { display: none !important; }
  .pp { border: 0; margin: 0; padding: 0; max-width: none; font-size: 11pt; }
  .pp-foot { display: block; position: fixed; bottom: -12mm; left: 0; right: 0; text-align: center; font-size: 8pt; color: #444; }
  .pp-q { margin-top: 16px; }
  a { color: inherit; text-decoration: none; }
}
