/* FMQA public website — Direction B «Darbar» — round 2
   Scoped under body.fmqa so it never clashes with the learner app (globals.css).
   Fonts are self-hosted; adjust the url() paths to wherever DN keeps them. */

@font-face { font-family: 'Noto Nastaliq Urdu'; src: url('/fonts/noto-nastaliq-urdu-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Nastaliq Urdu'; src: url('/fonts/noto-nastaliq-urdu-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Noto Nastaliq Urdu'; src: url('/fonts/noto-nastaliq-urdu-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.fmqa {
  /* colour tokens */
  --green-deep: #123D29;  --seal: #0E3221;   --green: #1E5A3C;
  --gold-rule: #C9A23F;   --gold: #B8902F;   --gold-on-dark: #D9B65A; --gold-light: #E2C677;
  --marble: #FAFAF6;      --stone: #EEF1EB;  --white: #FFFFFF;        --paper-on-dark: #F4F1E6;
  --ink: #1B2620;         --muted: #4A5650;  --line: #D5DCD2;         --line-soft: #E3E7E0;
  --placeholder: #7D857F; --danger: #8A2B1F;
  /* type */
  --ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --ar: 'Amiri', 'Traditional Arabic', serif;
  /* layout */
  --gutter: 16px; --container: 1120px; --radius: 2px; --section: 36px;

  margin: 0; background: var(--marble); color: var(--ink);
  font-family: var(--ur); font-size: 18px; line-height: 2.1;
  direction: rtl; text-align: right;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 900px) { body.fmqa { font-size: 19px; --section: 56px; } }

.fmqa *, .fmqa *::before, .fmqa *::after { box-sizing: border-box; }
.fmqa a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .62em; text-decoration-skip-ink: none; }
/* Nastaliq sits low: a normal underline runs through the letters and reads as crossed out, so it is pushed below them. */
.fmqa .en { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: .74em; font-weight: 500; line-height: 1; direction: ltr; unicode-bidi: isolate; margin-inline-start: .55em; opacity: .9; letter-spacing: .01em; }
.fmqa h2 .en { font-size: .6em; color: var(--muted); font-weight: 400; }
.fmqa .ico { width: 1.1em; height: 1.1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-inline-end: .45em; vertical-align: -.15em; }
.fmqa a:hover { color: var(--green-deep); }
.fmqa :focus-visible { outline: 3px solid var(--gold-rule); outline-offset: 2px; }
.fmqa img { max-width: 100%; }
.fmqa .ar { font-family: var(--ar); }
.fmqa .saw { font-family: var(--ar); font-size: 1.25em; line-height: 1; }
.fmqa .ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--ar); }
.fmqa .wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.fmqa .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top band, header, kangura edges ---------- */
.fmqa .roundel-band { background: var(--green-deep); display: flex; justify-content: center; padding: 8px 0 0; }
.fmqa .roundel-band img { width: 52px; height: 52px; display: block; }
@media (min-width: 900px) { .fmqa .roundel-band { padding-top: 12px; } .fmqa .roundel-band img { width: 72px; height: 72px; } }

.fmqa .site-header { background: var(--green-deep); border-bottom: 1px solid var(--gold-rule); color: var(--paper-on-dark); }
.fmqa .site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.fmqa .brand { display: flex; align-items: center; gap: 10px; color: var(--paper-on-dark); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.9; }
.fmqa .brand:hover { color: var(--gold-light); }
.fmqa .brand img { width: 52px; height: 52px; display: block; }
@media (min-width: 900px) { .fmqa .brand { font-size: 22px; gap: 14px; } .fmqa .brand img { width: 72px; height: 72px; } }

.fmqa .nav-desktop { display: none; }
.fmqa .nav-desktop a, .fmqa .menu-panel a { color: var(--paper-on-dark); text-decoration: none; }
.fmqa .nav-desktop a[aria-current="page"], .fmqa .menu-panel a[aria-current="page"] { color: var(--gold-light); border-bottom: 1px solid var(--gold-light); }
.fmqa .nav-desktop a.login, .fmqa .menu-panel a.login { color: var(--green-deep); background: var(--gold-light); padding: 4px 16px; border-radius: var(--radius); border: 0; }
@media (min-width: 900px) {
  .fmqa .nav-desktop { display: flex; align-items: center; gap: 26px; font-size: 17px; line-height: 2; }
  .fmqa .menu { display: none; }
}
/* phone menu — <details> works with no JavaScript */
.fmqa .menu > summary { list-style: none; cursor: pointer; font-size: 16px; line-height: 1.8; color: var(--paper-on-dark); border: 1px solid var(--gold-on-dark); border-radius: var(--radius); padding: 4px 14px; min-height: 44px; display: flex; align-items: center; }
.fmqa .menu > summary::-webkit-details-marker { display: none; }
.fmqa .menu[open] > summary { background: var(--gold-light); color: var(--green-deep); }
.fmqa .menu-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--green-deep); border-bottom: 1px solid var(--gold-rule); z-index: 20; padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; }
.fmqa .menu-panel a { padding: 8px 4px; border-bottom: 1px solid rgba(217, 182, 90, .25); font-size: 18px; }
.fmqa .menu-panel a.login { margin-top: 12px; text-align: center; }
.fmqa .site-header { position: relative; }

.fmqa .kangura { height: 9px; background-repeat: repeat-x; background-size: 16px 9px; }
.fmqa .kangura.down { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Cpath d='M0 0A8 7.5 0 0 0 16 0Z' fill='%23123D29' stroke='%23C9A23F' stroke-width='1.1'/%3E%3C/svg%3E"); }
.fmqa .kangura.up { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Cpath d='M0 9A8 7.5 0 0 1 16 9Z' fill='%23123D29' stroke='%23C9A23F' stroke-width='1.1'/%3E%3C/svg%3E"); }
@media (min-width: 900px) { .fmqa .kangura { height: 11px; background-size: 20px 11px; } }

/* ---------- headings, dividers ---------- */
.fmqa h1, .fmqa h2, .fmqa h3 { color: var(--green); margin: 0; }
.fmqa h1 { font-size: 32px; line-height: 1.9; font-weight: 700; }
.fmqa h2 { font-size: 22px; line-height: 2; font-weight: 600; }
.fmqa h3 { font-size: 18px; line-height: 2; font-weight: 600; }
@media (min-width: 900px) { .fmqa h1 { font-size: 46px; } .fmqa h2 { font-size: 26px; } .fmqa h3 { font-size: 20px; } }
.fmqa .scallop { display: block; width: 60px; height: 8px; margin: 2px 0 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8'%3E%3Cpath d='M0 8a10 8 0 0 1 20 0a10 8 0 0 1 20 0a10 8 0 0 1 20 0' fill='none' stroke='%23B8902F' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat; }
.fmqa .center { text-align: center; }
.fmqa .center .scallop { margin-inline: auto; }
.fmqa .section { padding-top: var(--section); }
.fmqa .lead { font-size: 18px; }
@media (min-width: 900px) { .fmqa .lead { font-size: 21px; } }
.fmqa .muted { color: var(--muted); }
.fmqa .small { font-size: 15px; line-height: 2; }
.fmqa .crumbs { font-size: 14px; line-height: 2; color: var(--muted); padding-top: 18px; }
.fmqa .crumbs a { color: var(--muted); text-decoration: none; }
.fmqa .crumbs .sep { color: var(--gold); padding: 0 6px; }
.fmqa p { margin: 0 0 10px; }

/* ---------- buttons, pills ---------- */
.fmqa .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: var(--radius); font-family: var(--ur); font-size: 18px; line-height: 1.9; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.fmqa .btn-primary { background: var(--green); color: var(--marble); box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px var(--gold-on-dark); }
.fmqa .btn-primary:hover { background: var(--green-deep); color: var(--white); box-shadow: inset 0 0 0 3px var(--green-deep), inset 0 0 0 4px var(--gold-on-dark); }
.fmqa .btn-primary:active { transform: translateY(1px); }
.fmqa .btn-secondary { background: var(--marble); color: var(--green); border: 1.5px solid var(--green); }
.fmqa .btn-secondary:hover { background: var(--stone); color: var(--green-deep); }
.fmqa .btn-quiet { background: var(--white); color: var(--green); border: 1px solid #C9CFC6; min-height: 48px; font-size: 16px; font-weight: 400; }
.fmqa .btn-quiet:hover { border-color: var(--green); }
.fmqa .btn[disabled] { opacity: .5; cursor: not-allowed; }
.fmqa .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fmqa .btn-row > .btn { flex: 1 1 0; }
@media (min-width: 900px) { .fmqa .btn { min-height: 58px; font-size: 19px; } .fmqa .btn-row > .btn { flex: 0 0 230px; } }
.fmqa .pill { display: inline-block; font-size: 14px; line-height: 1.9; padding: 0 12px; border-radius: var(--radius); background: var(--gold-light); color: var(--green-deep); }
.fmqa .pill.dark { background: var(--green); color: var(--marble); }
.fmqa [data-enrolment="closed"] .when-open, .fmqa [data-enrolment="open"] .when-closed { display: none; }

/* ---------- panels ---------- */
.fmqa .card { background: var(--stone); border-top: 3px solid var(--green); padding: 14px 16px; display: block; text-decoration: none; color: var(--ink); }
.fmqa a.card:hover { background: #E6EBE2; color: var(--ink); }
.fmqa .card .card-title { display: block; font-size: 22px; line-height: 2; font-weight: 600; color: var(--green); }
.fmqa .card .more { display: block; margin-top: 6px; font-size: 16px; color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
.fmqa .arch { border: 1px solid var(--gold-rule); background: var(--stone); border-radius: 50% 50% var(--radius) var(--radius) / 46px 46px var(--radius) var(--radius); padding: 40px 16px 20px; }
@media (min-width: 900px) { .fmqa .arch { border-radius: 50% 50% var(--radius) var(--radius) / 90px 90px var(--radius) var(--radius); padding: 64px 64px 36px; } }
.fmqa .band { background: var(--stone); }
.fmqa .dashed { border: 1px dashed #A9B3AC; color: var(--placeholder); padding: 16px; text-align: center; }
.fmqa .grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .fmqa .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .fmqa .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .fmqa .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.fmqa .split { display: grid; gap: 28px; }
@media (min-width: 900px) { .fmqa .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; } }

/* lineage niches */
.fmqa .niches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.fmqa .niches li { background: var(--marble); border: 1px solid var(--gold-rule); border-radius: 50% 50% var(--radius) var(--radius) / 22px 22px var(--radius) var(--radius); padding: 14px 3px 6px; }
.fmqa .niches .title { display: block; font-size: 11px; line-height: 1.9; color: var(--muted); }
.fmqa .niches .name { display: block; font-size: 14px; line-height: 1.9; }
.fmqa .niches .rh { display: block; font-size: 11px; line-height: 1.9; color: var(--muted); }
@media (min-width: 900px) { .fmqa .niches { gap: 16px; } .fmqa .niches li { border-radius: 50% 50% var(--radius) var(--radius) / 34px 34px var(--radius) var(--radius); padding: 22px 10px 10px; } .fmqa .niches .title { font-size: 14px; } .fmqa .niches .name { font-size: 18px; } .fmqa .niches .rh { font-size: 14px; } }

/* ledger (label — value) */
.fmqa .ledger { margin: 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); font-size: 16px; line-height: 2; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold-rule); }
.fmqa .ledger dt { color: var(--muted); padding: 6px 12px; border-bottom: 1px solid var(--line-soft); }
.fmqa .ledger dd { margin: 0; padding: 6px 12px; border-bottom: 1px solid var(--line-soft); }
.fmqa .ledger .ph { color: var(--placeholder); }

/* numbered steps */
.fmqa .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.fmqa .steps li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); counter-increment: s; }
.fmqa .steps li::before { content: counter(s, urdu); flex: 0 0 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold-rule); color: var(--green); font-size: 16px; line-height: 36px; text-align: center; }
.fmqa .steps li:last-child { border-bottom: 0; }
.fmqa .steps b { color: var(--green); font-weight: 600; }

/* FAQ */
.fmqa .faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.fmqa .faq summary { cursor: pointer; font-weight: 600; color: var(--green); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fmqa .faq summary::after { content: '+'; color: var(--gold); font-family: var(--ar); font-size: 22px; }
.fmqa .faq details[open] summary::after { content: '–'; }
.fmqa .faq summary::-webkit-details-marker { display: none; }

/* ---------- forms ---------- */
.fmqa .form { display: grid; gap: 14px; }
.fmqa .field label { display: block; font-size: 16px; line-height: 2; color: var(--ink); }
.fmqa .field .opt { color: var(--muted); font-size: 14px; }
.fmqa .field input, .fmqa .field textarea, .fmqa .field select { width: 100%; font-family: var(--ur); font-size: 17px; line-height: 2; color: var(--ink); background: var(--white); border: 1px solid #A9B3AC; border-radius: var(--radius); padding: 6px 12px; min-height: 52px; }
.fmqa .field input[type=file] { font-size: 15px; padding: 10px 12px; background: var(--stone); cursor: pointer; }
.fmqa .field input[type=file]::file-selector-button { font-family: var(--ur); font-size: 15px; border: 1px solid var(--green); background: var(--white); color: var(--green); border-radius: var(--radius); padding: 2px 12px; margin-inline-end: 10px; cursor: pointer; }
.fmqa .field input.ltr-input { direction: ltr; text-align: left; font-family: var(--ar); }
.fmqa .field textarea { min-height: 140px; resize: vertical; }
.fmqa .field input:focus, .fmqa .field textarea:focus, .fmqa .field select:focus { border-color: var(--green); outline: 2px solid var(--gold-light); }
.fmqa .field .hint { font-size: 14px; color: var(--muted); line-height: 2; }
.fmqa .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmqa .notice { padding: 12px 16px; border-radius: var(--radius); font-size: 16px; }
.fmqa .notice.ok { background: #E3F0E6; border: 1px solid var(--green); color: var(--green-deep); }
.fmqa .notice.err { background: #F7E9E6; border: 1px solid var(--danger); color: var(--danger); }
.fmqa .form[data-state="sent"] .form-fields { display: none; }

/* ---------- footer ---------- */
.fmqa .site-footer { background: var(--green-deep); color: var(--paper-on-dark); }
.fmqa .kangura.up { margin-top: var(--section); }
.fmqa .site-footer .inner { padding: 22px 0 18px; display: grid; gap: 16px; }
.fmqa .site-footer .seal { width: 112px; height: 112px; display: block; }
.fmqa .site-footer a { color: var(--paper-on-dark); }
.fmqa .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.fmqa .site-footer .rights { border-top: 1px solid rgba(217, 182, 90, .5); padding: 12px 0 22px; font-size: 14px; color: #D8DDD3; }
@media (min-width: 900px) {
  .fmqa .site-footer .inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 32px 0 24px; }
  .fmqa .site-footer .seal { width: 128px; height: 128px; }
  .fmqa .site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 48px; font-size: 17px; }
}

/* ---------- book page ---------- */
.fmqa .book-hero { background: var(--stone); padding: 18px 0 20px; }
.fmqa .book-hero .row { display: flex; gap: 16px; align-items: flex-start; }
.fmqa .cover { flex: 0 0 auto; background: var(--white); border: 1px solid var(--gold-rule); padding: 4px; }
.fmqa .cover img { display: block; width: 104px; height: auto; }
@media (min-width: 900px) { .fmqa .book-hero { padding: 30px 0 44px; } .fmqa .book-hero .row { gap: 56px; } .fmqa .cover { padding: 8px; } .fmqa .cover img { width: 264px; } }
.fmqa .book-title { font-size: 30px; line-height: 1.9; font-weight: 700; color: var(--green); margin: 0; }
@media (min-width: 900px) { .fmqa .book-title { font-size: 50px; } }
.fmqa .resume { display: none; margin-top: 10px; }
.fmqa .resume.show { display: block; }
.fmqa .durood-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fmqa .durood-list a { display: block; background: var(--stone); padding: 4px 10px; text-decoration: none; color: var(--ink); font-size: 16px; }
.fmqa .durood-list a:hover { background: #E6EBE2; color: var(--green); }
@media (min-width: 900px) { .fmqa .durood-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .fmqa .durood-list a { font-size: 18px; } }
.fmqa .show-phone { display: block; }
.fmqa .hide-phone { display: none; }
@media (min-width: 900px) { .fmqa .show-phone { display: none; } .fmqa .hide-phone { display: block; } }
@media (max-width: 899px) { .fmqa .btn { padding: 0 10px; font-size: 17px; white-space: nowrap; } }
