/* Fonts are stored in the theme (no Google Fonts request) */
@font-face{font-family:'Quicksand Variable';font-style:normal;font-display:swap;font-weight:300 700;src:url(../fonts/quicksand-latin-wght-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/poppins-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/poppins-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/poppins-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/poppins-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Noto Nastaliq Urdu';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

/* muddaser.com — look taken from the old site: deep navy + the orange glow of the intro video,
   yellow pill buttons, Quicksand headings, Poppins body. */

:root {
  --navy: #1f2641;        /* old site "About" band */
  --navy-deep: #101528;   /* old site button text / darkest navy */
  --glow: #f07a2a;        /* orange rim light in the intro video */
  --cyan: #30bced;        /* old site accent */
  --paper: #ffffff;
  --paper-2: #f2f4f9;
  --card: #f7f8fc;
  --ink: #101528;
  --ink-2: #3c4363;
  --muted: #646b88;
  --line: #e2e5ee;
  --signal: #fcba04;      /* old site yellow buttons */
  --signal-ink: #101528;
  --signal-text: #c2410c; /* readable orange for text on white */
  --signal-soft: #fff4d6;
  --on-air: #ff4d3d;
  --serif: 'Quicksand Variable', 'Quicksand', system-ui, sans-serif; /* display font (name kept for the class) */
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --urdu: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #101528; --paper-2: #172042; --card: #18203d; --ink: #f2f4fa; --ink-2: #c9cee2;
    --muted: #9aa1bf; --line: #283257; --signal-text: #ffb37a; --signal-soft: #2a2a2a; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #101528; --paper-2: #172042; --card: #18203d; --ink: #f2f4fa; --ink-2: #c9cee2;
  --muted: #9aa1bf; --line: #283257; --signal-text: #ffb37a; --signal-soft: #2a2a2a; color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; }
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; }
.kicker b { color: var(--signal-text); font-weight: 700; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
.h-section {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.02em;
}
.h-section em { color: var(--signal-text); font-style: normal; }

/* ---------- top bar + header (always navy, like the old site) ---------- */
.bar { background: var(--navy-deep); color: #c9cee2; font-size: 12px; letter-spacing: 0.06em; border-bottom: 1px solid rgba(255,255,255,.06); }
.bar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 34px; }
.bar a { color: inherit; text-decoration: none; }
.bar a:hover { color: var(--signal); }
.onair { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; white-space: nowrap; }
.onair span:nth-child(2) { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; }
.onair span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-air); flex: none; box-shadow: 0 0 0 0 rgba(255, 77, 61, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); } }
.clock { white-space: nowrap; opacity: 0.75; font-variant-numeric: tabular-nums; }

.mh-header { background: rgba(16, 21, 40, 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); }
.mh-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; color: #e6e9f5; }
.nav a[aria-current='page'] { color: var(--signal); }
.nav a:hover { color: var(--signal); }
.nav .nav-cta { background: var(--signal); color: var(--navy-deep); font-weight: 600; margin-left: 8px; padding: 9px 16px; }
.nav .nav-cta:hover { background: #fff; color: var(--navy-deep); }
.theme-btn { background: none; border: 1px solid rgba(255,255,255,.18); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; margin-left: 8px; }
.theme-btn:hover { border-color: var(--signal); color: var(--signal); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: 12px var(--gutter) 22px; transform: translateY(-140%); transition: transform 0.3s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--signal); color: var(--navy-deep); border: 0; border-radius: 999px; padding: 9px 18px; font: 600 14px var(--sans); cursor: pointer; }
  .theme-btn { margin: 14px 0 0; }
  .clock { display: none; }
}

/* ---------- buttons (old site: yellow pills) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1.5px solid currentColor; color: var(--ink); background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); box-shadow: 0 10px 24px -12px rgba(252, 186, 4, 0.8); }
.btn.primary:hover { background: #ffd03d; border-color: #ffd03d; color: var(--signal-ink); transform: translateY(-2px); }
.btn.light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--signal); color: var(--navy-deep); }
.ticker-track { display: flex; width: max-content; animation: tick 45s linear infinite; }
.ticker-track span { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); padding: 12px 0; white-space: nowrap; }
.ticker-track span::after { content: '●'; font-size: 0.4em; margin: 0 1.2em; vertical-align: middle; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }

/* navy band sections + wave edge (old site "About" band) */
.navy { background: var(--navy); color: #fff; --ink: #ffffff; --ink-2: #d3d8ec; --muted: #a9b0cf; --line: rgba(255,255,255,.12); --card: rgba(255,255,255,.05); --signal-text: #ffb37a; }
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section:not(.tint) { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 460px; color: var(--ink-2); margin: 0; }

/* ---------- video cards ---------- */
.vcard { text-decoration: none; display: block; }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vthumb .play { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.04em; }
.vtitle { margin-top: 10px; font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard:hover .vtitle { color: var(--signal-text); }
.vmeta { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- post list ---------- */
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; text-decoration: none; }
.plist time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plist .t { font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.3; }
.plist .c { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.plist a:hover .t { color: var(--signal-text); }
@media (max-width: 680px) {
  .plist a { grid-template-columns: 1fr; gap: 4px; }
  .plist .c { display: none; }
}

/* ---------- article prose (old posts) ---------- */
:is(.prose, .entry-content) { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 720px; }
:is(.prose, .entry-content) > * + * { margin-top: 1.1em; }
:is(.prose, .entry-content) h2, :is(.prose, .entry-content) h3, :is(.prose, .entry-content) h4 { color: var(--ink); line-height: 1.2; margin-top: 2em; }
:is(.prose, .entry-content) h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px); }
:is(.prose, .entry-content) h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; }
:is(.prose, .entry-content) h4 { font-size: 18px; }
:is(.prose, .entry-content) a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
:is(.prose, .entry-content) a:hover { color: var(--signal-text); }
:is(.prose, .entry-content) img { border-radius: 10px; margin-inline: auto; }
:is(.prose, .entry-content) figure { margin: 1.6em 0; }
:is(.prose, .entry-content) figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
:is(.prose, .entry-content) ul, :is(.prose, .entry-content) ol { padding-left: 1.3em; }
:is(.prose, .entry-content) li + li { margin-top: 0.35em; }
:is(.prose, .entry-content) blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--signal); font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.35; color: var(--ink); }
:is(.prose, .entry-content) pre { background: var(--navy-deep); color: #e6e9f5; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
:is(.prose, .entry-content) code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
:is(.prose, .entry-content) pre code { background: none; padding: 0; color: inherit; }
:is(.prose, .entry-content) table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
:is(.prose, .entry-content) th, :is(.prose, .entry-content) td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
:is(.prose, .entry-content) th { background: var(--paper-2); color: var(--ink); }
:is(.prose, .entry-content) hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
:is(.prose, .entry-content) iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
:is(.prose, .entry-content) .wp-block-buttons a, :is(.prose, .entry-content) .wp-block-button__link { display: inline-block; background: var(--signal); color: var(--signal-ink); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; }
:is(.prose, .entry-content) .aligncenter { text-align: center; }
:is(.prose, .entry-content) .has-text-align-center { text-align: center; }

:is(.prose, .entry-content) input:not([type='checkbox']):not([type='radio']), :is(.prose, .entry-content) select, :is(.prose, .entry-content) textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; max-width: 360px;
}
:is(.prose, .entry-content) button, :is(.prose, .entry-content) input[type='submit'], :is(.prose, .entry-content) input[type='button'] {
  font: 700 15px var(--sans); background: var(--signal); color: var(--signal-ink); border: 0; border-radius: 999px;
  padding: 11px 20px; cursor: pointer; margin-top: 8px;
}
:is(.prose, .entry-content) label { display: block; font-weight: 600; color: var(--ink); margin-top: 12px; }

/* ---------- footer ---------- */
.mh-footer { background: var(--navy-deep); color: #f2f4fa; padding-block: 72px 32px; margin-top: 0; }
.mh-footer a { color: #f2f4fa; text-decoration: none; }
.mh-footer a:hover { color: var(--signal); }
.foot-big { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 6.5vw, 92px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.foot-big em { color: var(--signal); font-style: normal; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: #9aa1bf; margin-bottom: 12px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { margin-top: 48px; font-size: 13px; color: #9aa1bf; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ================= .mh-home (src/pages/index.astro) ================= */
.mh-home .hero { position: relative; background: #0c1321; color: #fff; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.mh-home .hero-media { position: absolute; inset: 0; z-index: -1; }
.mh-home .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transform: translateX(16%); }
@media (max-width: 1180px) {
.mh-home .hero-video { transform: translateX(6%); }
}
.mh-home .hero-shade { position: absolute; inset: 0;
    background:
      linear-gradient(90deg, #0c1321 0%, rgba(12, 19, 33, 0.92) 26%, rgba(12, 19, 33, 0.35) 52%, rgba(12, 19, 33, 0) 70%),
      linear-gradient(0deg, rgba(12, 19, 33, 0.85) 0%, rgba(12, 19, 33, 0) 30%); }
.mh-home .hero-inner { padding-block: clamp(64px, 10vh, 120px); }
.mh-home .hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #c9cee2; margin: 0 0 22px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.mh-home .hero-name { font-size: clamp(54px, 8.2vw, 116px); line-height: 0.98; letter-spacing: -0.035em; max-width: 9ch; margin: 0 0 22px; }
.mh-home .hero-name .urdu { display: block; font-family: var(--urdu); font-weight: 400; font-size: 0.3em; line-height: 2.1; letter-spacing: 0; color: var(--glow); margin-top: 0.1em; text-align: left; height: 2.1em; overflow: visible; }
.mh-home .hero-role { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; max-width: 560px; margin: 0 0 12px; }
.mh-home .hero-sub { color: #c9cee2; max-width: 520px; margin: 0 0 32px; }
.mh-home .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mh-home .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 28px; margin: 48px 0 0; }
.mh-home .facts dt { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; color: var(--signal); }
.mh-home .facts dd { margin: 8px 0 0; font-size: 13px; color: #c9cee2; line-height: 1.4; }
.mh-home .hero-toggle { position: absolute; right: var(--gutter); bottom: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(12, 19, 33, 0.5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mh-home .hero-toggle:hover { border-color: var(--signal); color: var(--signal); }
.mh-home .hero-toggle .i-play, .mh-home .hero-toggle.paused .i-pause { display: none; }
.mh-home .hero-toggle.paused .i-play { display: block; }
.mh-home .about-band { padding-top: clamp(64px, 8vw, 110px); }
.mh-home .about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-bottom: clamp(40px, 5vw, 70px); }
.mh-home .about-band .h-section { margin: 14px 0 22px; }
.mh-home .about-band .lead { font-size: clamp(18px, 1.6vw, 21px); color: #fff; }
.mh-home .about-band p { color: var(--ink-2); max-width: 620px; }
.mh-home .about-band a:not(.btn) { color: var(--signal); }
.mh-home .about-band .cta-row { margin-top: 28px; }
.mh-home .about-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mh-home .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mh-home .wave { margin-bottom: -2px; position: relative; }
.mh-home .wave.flip { margin: -2px 0 0; }
.mh-home .tint { background: var(--paper-2); }
.mh-home .guide { display: grid; gap: 20px; }
.mh-home .guide-row { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.mh-home .guide-info { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; align-items: center; }
.mh-home .guide-avatar { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--signal); }
.mh-home .guide-info h3 { font-size: clamp(26px, 2.6vw, 32px); }
.mh-home .guide-meta { margin: 0; font-size: 13px; color: var(--muted); }
.mh-home .guide-blurb { grid-column: 1 / -1; color: var(--ink-2); margin: 18px 0 20px; }
.mh-home .guide-info .btn { grid-column: 1 / -1; justify-self: start; }
.mh-home .guide-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-content: start; }
.mh-home .more { margin: 28px 0 0; font-weight: 600; }
.mh-home .more a { text-decoration: none; color: var(--signal-text); }
.mh-home .built { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mh-home .built a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.mh-home .built a:hover { transform: translateY(-4px); border-color: var(--signal); box-shadow: 0 20px 40px -24px rgba(16, 21, 40, 0.35); color: inherit; }
.mh-home .b-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-deep); background: #ffe7a3; padding: 4px 10px; border-radius: 999px; }
.mh-home .built strong { font-size: 24px; line-height: 1.15; margin-top: 6px; }
.mh-home .b-what { color: var(--muted); font-size: 14.5px; }
.mh-home .b-go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--signal-text); }
.mh-home .two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.mh-home .two .h-section { margin: 12px 0 28px; }
.mh-home .tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mh-home .tools a { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: 14px; background: var(--card); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.mh-home .tools a:hover { transform: translateX(4px); box-shadow: 0 12px 30px -20px rgba(16, 21, 40, 0.4); color: inherit; }
.mh-home .tools strong { font-size: 16px; font-weight: 600; }
.mh-home .tools span { font-size: 14px; color: var(--muted); }
.mh-home .plist.small a { grid-template-columns: 100px 1fr; }
.mh-home .plist.small .c { display: none; }
.mh-home .work { padding-bottom: clamp(64px, 8vw, 110px); }
.mh-home .work .wrap { padding-top: clamp(40px, 5vw, 70px); }
.mh-home .work .h-section { margin: 14px 0 36px; }
.mh-home .help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mh-home .help-card { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.mh-home .help-no { font-weight: 700; font-size: 13px; color: var(--signal); }
.mh-home .help-card h3 { font-size: 21px; margin: 10px 0 8px; }
.mh-home .help-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.mh-home .doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.mh-home .door { display: flex; flex-direction: column; gap: 10px; padding: 28px; min-height: 250px; border-radius: 22px; background: #fff; color: var(--navy-deep); text-decoration: none; transition: transform 0.25s, background 0.25s; }
.mh-home .door:hover { transform: translateY(-4px); background: var(--signal); color: var(--navy-deep); }
.mh-home .door-k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8a5300; }
.mh-home .door:hover .door-k { color: var(--navy-deep); }
.mh-home .door strong { font-size: 32px; line-height: 1.1; }
.mh-home .door span:nth-child(3) { color: #3c4363; }
.mh-home .door-go { margin-top: auto; font-weight: 600; }
@media (max-width: 1060px) {
.mh-home .help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
.mh-home .guide-row { grid-template-columns: 1fr; }
.mh-home .two { grid-template-columns: 1fr; }
.mh-home .doors { grid-template-columns: 1fr; }
.mh-home .door { min-height: 0; }
}
@media (max-width: 860px) {
.mh-home .about-grid { grid-template-columns: 1fr; }
.mh-home .about-photo { max-width: 460px; }
}
@media (max-width: 760px) {
.mh-home .hero { flex-direction: column; align-items: stretch; min-height: 0; }
.mh-home .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3.6; }
.mh-home .hero-video { transform: none; object-position: 50% 25%; }
.mh-home .hero-shade { background: linear-gradient(0deg, #0c1321 0%, rgba(12, 19, 33, 0) 45%); }
.mh-home .hero-inner { padding-block: 0 48px; margin-top: -56px; position: relative; }
.mh-home .hero-toggle { top: 14px; bottom: auto; }
.mh-home .hide-sm { display: none; }
.mh-home .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.mh-home .help { grid-template-columns: 1fr; }
.mh-home .guide-videos { grid-template-columns: repeat(3, 74%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.mh-home .guide-videos > * { scroll-snap-align: start; }
.mh-home .plist.small a { grid-template-columns: 1fr; }
}


/* ================= .mh-about (src/pages/about.astro) ================= */
.mh-about .about-hero { padding-block: clamp(48px, 7vw, 104px) 40px; }
.mh-about .about-hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.03em; max-width: 1100px; margin-top: 16px; }
.mh-about .about-hero em { color: var(--signal-text); font-style: normal; }
.mh-about .urdu-line { font-family: var(--urdu); font-size: clamp(28px, 3vw, 40px); color: var(--muted); margin: 18px 0 0; line-height: 2; }
.mh-about .about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(64px, 8vw, 110px); }
.mh-about .ph { margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.mh-about .ph img { width: 100%; height: auto; }
.mh-about .ph-a { position: sticky; top: 90px; }
.mh-about .big { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.45; color: var(--ink); }
.mh-about .muted { color: var(--ink-2); max-width: 420px; }
.mh-about .talks-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); }
.mh-about .ph-b { margin-top: 32px; max-width: 460px; }
.mh-about .talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mh-about .talks li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mh-about .talks .n { color: var(--signal-text); font-weight: 700; font-size: 13px; padding-top: 10px; }
.mh-about .talks .where { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.1; }
.mh-about .talks .what { grid-column: 2; color: var(--muted); }
.mh-about .run { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mh-about .run a { display: grid; gap: 4px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.mh-about .run a:hover { border-color: var(--signal); color: inherit; }
.mh-about .run strong { font-size: 18px; }
.mh-about .run span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
.mh-about .about-grid, .mh-about .talks-grid { grid-template-columns: 1fr; }
.mh-about .ph-a { position: static; }
}


/* ================= .mh-videos (src/pages/my-videos.astro) ================= */
.mh-videos .ch { padding-block: 40px; border-top: 1px solid var(--ink); }
.mh-videos .ch-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; margin-bottom: 28px; }
.mh-videos .ch-head img { border-radius: 50%; }
.mh-videos .ch-head h2 { font-size: clamp(32px, 3.4vw, 44px); }
.mh-videos .ch-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 620px; }
.mh-videos .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.mh-videos .sub { margin: 36px 0 16px; }
.mh-videos .note { color: var(--muted); font-size: 14px; margin-top: 24px; }
@media (max-width: 680px) {
.mh-videos .ch-head { grid-template-columns: 56px 1fr; }
.mh-videos .ch-head .btn { grid-column: 1 / -1; justify-self: start; }
}


/* ================= .mh-contact (src/pages/contact.astro) ================= */
.mh-contact .intro { color: var(--ink-2); max-width: 520px; margin: 0 0 40px; font-size: 19px; }
.mh-contact .lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mh-contact .lines li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.mh-contact .k { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.mh-contact .v { color: var(--muted); }
.mh-contact .lines a { font-weight: 700; text-decoration: none; color: var(--signal-text); word-break: break-all; }
.mh-contact .soc { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mh-contact .soc a { display: inline-flex; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.mh-contact .soc span { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
.mh-contact .lines li { grid-template-columns: 1fr; gap: 4px; }
}


/* ================= .mh-list (src/components/PostIndex.astro) ================= */
.mh-list .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.mh-list .cats a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.mh-list .cats a[aria-current='page'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mh-list .pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; font-weight: 600; }
.mh-list .pager a { text-decoration: none; }
.mh-list .pager span:nth-child(2) { color: var(--muted); font-weight: 500; font-size: 14px; }


/* ================= GeneratePress integration ================= */
/* GeneratePress prints our header/footer inside its own wrappers: neutralise them */
.site-header:not(.mh-header), #mobile-header, .main-navigation, #site-navigation, .site-info, .footer-widgets { display: none !important; }
.site-footer { background: none !important; padding: 0 !important; }
/* WordPress screen-reader text and skip link (GeneratePress's own stylesheet is not loaded on our templates) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px; padding: 12px 18px; background: var(--signal); color: #101528; border-radius: 8px; }
#page, .site.container, .site-content, .content-area, .site-main, .inside-article, .one-container .container { background: transparent !important; }
body { background: var(--paper) !important; color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); }
/* old post content: GeneratePress colours headings itself, so set ours there only (the hero keeps its own white) */
.entry-content :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); }
/* GP Premium's old slide-out menu markup is still printed; this theme has its own menu */
.slideout-overlay, .slideout-navigation, #generate-slideout-menu { display: none !important; }

/* our full-width templates (home, about, videos, contact, blog lists) */
.mh-full .site.grid-container, .mh-full #page { max-width: none !important; width: 100%; padding: 0 !important; margin: 0 !important; }
.mh-full .site-content { display: block !important; padding: 0 !important; }
.mh-list .intro { color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }

/* single posts and normal pages: centred reading column */
body:not(.mh-full) .site.grid-container { max-width: 900px; padding: clamp(32px, 5vw, 72px) var(--gutter); background: transparent; }
body:not(.mh-full) .site-content { display: block; padding: 0; }
body:not(.mh-full) .content-area, body:not(.mh-full) .site-main { width: 100%; margin: 0; }
.separate-containers .inside-article, .one-container .site-content, .inside-article { padding: 0 !important; background: transparent !important; }
.entry-header { margin-bottom: 28px; }
.entry-title { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.entry-meta, .entry-meta a { color: var(--muted); font-size: 15px; }
.featured-image, .post-image { margin: 0 0 32px; }
.featured-image img, .post-image img { border-radius: 16px; width: 100%; height: auto; }
.single .entry-content { max-width: 760px; }
.page:not(.mh-full) .entry-content { max-width: none; }
footer.entry-meta { margin-top: 32px; }
.comments-area { max-width: 760px; }

/* plain top line ("New video: ...") and plain sub-headings instead of eyebrow labels */
.onair { display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sub-h { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); margin: 56px 0 18px; }
.mh-videos .sub-h { margin: 36px 0 16px; }
.art-foot .sub-h { margin: 0 0 14px; }
.art-foot .author-name { margin-top: 0; }

/* no wave dividers: straight section edges need their own bottom space */
.mh-home .about-band { padding-bottom: clamp(64px, 8vw, 110px); }

/* ================= Work with me + booking form (home, contact) ================= */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.offer-k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-text); }
.offer h3 { margin: 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
.offer p { margin: 0; color: var(--ink-2); }
.offer a:not(.btn) { color: var(--signal-text); }
.offer ul { margin: 6px 0 18px; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.offer li { margin: 4px 0; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.mh-home .also { margin: 26px 0 0; color: var(--ink-2); }
.mh-home .also a, .mh-home .more-link { color: var(--signal-text); font-weight: 600; text-decoration: none; }

.btn.wa { background: #25d366; border-color: #25d366; color: #06301a; }
.btn.wa:hover { background: #1fb457; border-color: #1fb457; color: #06301a; }
.btn.big { font-size: 17px; padding: 16px 26px; }

.mh-home .book { position: relative; }
.mh-home .book .wrap { padding-block: clamp(40px, 5vw, 70px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mh-contact .book-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); margin-top: 32px; }
.book-intro .h-section { margin: 14px 0 18px; }
.book-intro p { color: var(--ink-2); max-width: 460px; }
.book-intro .btn.wa { margin: 14px 0 6px; }
.book-mail { font-size: 15px; color: var(--ink-2); }
.book-mail a { color: var(--signal-text); }
.book-side { display: flex; flex-direction: column; gap: 10px; }

.book-form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.book-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.book-form legend { font-weight: 600; margin-bottom: 10px; color: var(--ink); padding: 0; }
.book-form .chip { position: relative; cursor: pointer; }
.book-form .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.book-form .chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.book-form .chip input:checked + span { background: var(--signal); border-color: var(--signal); color: #101528; font-weight: 600; }
.book-form .chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.book-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form .fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.book-form .fields label.wide { grid-column: 1 / -1; }
.book-form small { font-weight: 400; color: var(--muted); }
.book-form input[type=text], .book-form input[type=email], .book-form input[type=tel], .book-form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.navy .book-form input[type=text], .navy .book-form input[type=email], .navy .book-form input[type=tel], .navy .book-form textarea { background: rgba(0, 0, 0, 0.18); }
.book-form input::placeholder, .book-form textarea::placeholder { color: var(--muted); }
.book-form input:focus, .book-form textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.book-form textarea { resize: vertical; min-height: 120px; }
.book-form .form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book-form .form-small { margin: 0; font-size: 13px; color: var(--muted); }
.book-form .form-small a { color: inherit; }
.form-note { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.form-note.ok { background: #d9f7e5; color: #06301a; }
.form-note.err { background: #ffe1dc; color: #7a1405; }
@media (max-width: 960px) {
  .offers { grid-template-columns: 1fr; }
  .book-grid, .mh-contact .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .book-form .fields { grid-template-columns: 1fr; }
}

/* author box + read next under posts */
.art-foot { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--ink); }
.art-foot .author-name { font-family: var(--serif); font-weight: 700; font-size: 30px; margin: 6px 0 10px; color: var(--ink); }
.art-foot .author p:not(.kicker):not(.author-name) { color: var(--ink-2); }
.art-foot .plist a { grid-template-columns: 1fr; gap: 2px; }
.art-foot .plist .c { display: none; }
@media (max-width: 860px) { .art-foot { grid-template-columns: 1fr; } }
