/* Islami Dawat: a calm editorial grid with logical properties in both directions. */
:root {
 --paper:#f7f8f3; --surface:#fff; --surface-2:#edf1e9; --surface-3:#e1e8dc;
 --ink:#202b26; --ink-2:#4e5c55; --ink-3:#657268; --line:#dce2d7; --line-2:#c3ccbf;
 --accent:#123e2d; --brand:#123e2d; --brand-2:#092c1d; --brand-soft:#e5eee4;
 --emerald:#236649; --emerald-soft:#e5eee4; --gold:#896827; --gold-2:#bfaa71;
 --sand:#f1eddf; --night:#102a20; --night-2:#16382a; --on-night:#f7f8f3; --on-night-2:#c6d0c7;
 --focus:#896827; --radius-s:2px; --radius:3px; --radius-l:4px; --container:1240px;
 --fs-hero:clamp(1.8rem,1.1rem + 2vw,2.85rem); --fs-3xl:clamp(2rem,1.3rem + 2.2vw,3.2rem);
 --topbar-h:34px; --masthead-h:92px; --navbar-h:56px; --idw-header-collapse:126px;
 --shadow-1:none; --pattern-ink:rgb(18 62 45 / .04);
}
:root[data-theme="dark"] {
 --paper:#101a17; --surface:#16231d; --surface-2:#1c2c24; --surface-3:#243a2e;
 --ink:#eff3ea; --ink-2:#c3cfc1; --ink-3:#a3b4a3; --line:#2d4135; --line-2:#465d4c;
 --accent:#a5cfb1; --brand:#a5cfb1; --brand-2:#c1e1c8; --brand-soft:#233b2b;
 --gold:#d6bb80; --sand:#263024; --emerald:#a5cfb1; --focus:#d6bb80; color-scheme:dark;
}
@media(prefers-color-scheme:dark) {
 :root:not([data-theme="light"]) {
 --paper:#101a17; --surface:#16231d; --surface-2:#1c2c24; --surface-3:#243a2e;
 --ink:#eff3ea; --ink-2:#c3cfc1; --ink-3:#a3b4a3; --line:#2d4135; --line-2:#465d4c;
 --accent:#a5cfb1; --brand:#a5cfb1; --brand-2:#c1e1c8; --brand-soft:#233b2b;
 --gold:#d6bb80; --sand:#263024; --emerald:#a5cfb1; --focus:#d6bb80;
 }
}
body { background:var(--paper); }
body.idw-ui-ur { --font-serif:"Amiri","Noto Naskh Arabic",Georgia,serif; --font-sans:"Inter","Amiri",system-ui,sans-serif; }
button, a, input, summary { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
[hidden] { display:none !important; }
:where(h1,h2,h3,p,a) { overflow-wrap:break-word; }
.site-header { top:calc(-1 * var(--idw-header-collapse)); box-shadow:none; z-index:50; }
.topbar { display:block; height:auto; min-height:34px; color:#d4dfd5; background:#123e2d; border:0; }
.topbar__inner { min-height:34px; gap:1rem; padding-block:4px; }
.topbar__end { margin-inline-start:auto; gap:1rem; }
.idw-edition-label { display:flex; align-items:center; gap:.55rem; margin:0; font-size:.75rem; white-space:nowrap; }
.idw-edition-dot { width:5px; height:5px; border-radius:50%; background:#d3b57c; flex-shrink:0; }
.dateline { color:inherit; font-size:.72rem; margin:0; }
.topbar .dateline__sep { color:inherit; }
.topbar a { color:#fff; }
.masthead { display:block; border:0; background:var(--paper); }
.masthead__inner { height:92px; min-height:92px; gap:2rem; }
.masthead__end { margin-inline-start:auto; gap:2rem; min-width:0; }
.idw-masthead-note { display:none; }
.idw-brand { gap:1rem; min-width:0; }
.idw-brand__seal { width:56px; height:56px; display:grid; place-items:center; border:1px solid var(--gold); border-radius:50%; color:var(--gold); flex-shrink:0; }
.idw-brand__mark { width:38px; height:38px; }
.idw-brand__text { display:flex; flex-direction:column; gap:4px; min-width:0; }
.idw-brand__urdu { font:400 2.8rem/1.1 "Amiri",serif; color:var(--accent); }
.idw-brand__name { font:600 .76rem/1.2 "Inter",system-ui,sans-serif; letter-spacing:.19em; text-transform:uppercase; color:var(--ink-2); }
.brand--image { min-width:0; max-width:650px; }
.custom-logo-link { display:block; max-width:100%; }
.custom-logo { max-width:100%; max-height:82px; width:auto; height:auto; object-fit:contain; }
.navbar { background:#123e2d; color:#fff; border-block:0; }
.navbar__inner { gap:1rem; min-height:56px; }
.navbar .icon-btn { color:#fff; width:44px; height:44px; }
.navbar .icon-btn:hover { background:rgb(255 255 255 / .1); color:#fff; }
.navbar > .container > .brand { display:none; }
.primary-nav { flex:1; min-width:0; }
.primary-nav > .menu { gap:.2rem; }
.primary-nav > .menu > .menu-item > a { min-height:56px; color:#fff; font-size:.84rem; padding-inline:.75rem; font-weight:500; }
.primary-nav > .menu > .menu-item > a::after { display:none; }
.primary-nav > .menu > .menu-item:hover > a,
.primary-nav > .menu > .current-menu-item > a { color:#e3d5aa; background:rgb(255 255 255 / .06); }
.primary-nav .submenu-toggle { color:#d4dfd5; }
.primary-nav .sub-menu { background:var(--surface); color:var(--ink); border:1px solid var(--line); box-shadow:var(--shadow-2); }
.primary-nav .sub-menu a { color:var(--ink); }
.primary-nav .sub-menu a:hover { background:var(--surface-2); color:var(--accent); }
.sub-menu--d0 { max-height:70dvh; overflow-y:auto; }
.idw-newsline { border:0; background:var(--surface); }
.idw-newsline__inner { display:flex; align-items:center; gap:1rem; padding-block:11px; min-width:0; }
.idw-newsline__label { color:var(--gold); font-size:.74rem; font-weight:600; flex-shrink:0; }
.idw-newsline a { min-width:0; font-size:.88rem; line-height:1.6; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.idw-newsline .icon { width:17px; height:17px; margin-inline-start:auto; flex-shrink:0; color:var(--ink-3); }
.idw-front { padding-block:1.4rem 1.8rem; }
.idw-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1.2rem; border:0; padding-block:.65rem; margin-bottom:.8rem; }
.idw-front > .idw-section-heading { border-top:0; padding-top:0; }
.idw-front > .idw-section-heading .idw-overline { display:none; }
.idw-section-heading h2 { margin:0; font:600 clamp(1.6rem,1.2rem + .8vw,2.1rem)/1.3 var(--font-serif); }
.idw-overline { margin:0 0 .45rem; color:var(--gold); font:500 .67rem/1.5 var(--font-sans); letter-spacing:.12em; text-transform:uppercase; }
.idw-ui-ur .idw-overline { letter-spacing:0; font-size:.85rem; }
.idw-view-all { display:flex; align-items:center; gap:.65rem; font-size:.76rem; color:var(--ink-2); flex-shrink:0; padding-block:.65rem; }
.idw-view-all .icon { width:18px; height:18px; }
.idw-front-grid { display:grid; gap:2rem; }
.idw-front-lead,.idw-latest,.idw-story-grid > * { min-width:0; }
.card { border:0; box-shadow:none; border-radius:0; background:transparent; }
.card__media { border-radius:2px; background:var(--surface-2); overflow:hidden; }
.card__media img { transition:transform .4s ease; }
.card:hover .card__media img { transform:scale(1.015); }
.card__body { padding:.85rem 0 0; }
.card__title { font-weight:500; font-size:1.2rem; line-height:1.38; }
.card__link,.card:hover .card__link { background-image:none; text-decoration:none; }
.card__meta { margin-top:.65rem; font-size:.68rem; color:var(--ink-3); }
.card__excerpt { font-size:.94rem; color:var(--ink-2); line-height:1.75; margin-block:.7rem 0; }
.card--text .card__body { padding:0; }
.kicker { font-size:.68rem; letter-spacing:.04em; font-weight:600; color:var(--accent); margin-bottom:.45rem; }
.idw-lead .card__media { aspect-ratio:16/9; }
.idw-lead .card__body { padding-top:1.05rem; }
.idw-lead .card__title { font-size:var(--fs-hero); line-height:1.24; font-weight:500; letter-spacing:-.025em; }
.idw-lead .card__excerpt { max-width:65ch; }
.idw-latest { padding:1.2rem 1.4rem; background:var(--surface-2); border:0; border-radius:var(--radius-l); }
.idw-latest__heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; border:0; padding-bottom:.35rem; }
.idw-latest__heading h2 { margin:0; font:600 1.25rem/1.4 var(--font-serif); }
.idw-live-label { font-size:.6rem; color:var(--ink-3); }
.idw-latest ol { list-style:none; padding:0; margin:0; }
.idw-latest li { display:flex; gap:.85rem; padding-block:.9rem; border:0; }
.idw-latest__number { font:400 1.65rem/1.2 "Newsreader",Georgia,serif; color:var(--gold); opacity:.8; padding-top:3px; }
.idw-latest .card__title { font-size:1.04rem; line-height:1.4; }
.idw-latest .card__meta { margin-top:.45rem; }
.idw-latest__archive { display:flex; align-items:center; gap:.5rem; justify-content:space-between; padding-top:1rem; color:var(--accent); font-size:.72rem; }
.idw-latest__archive .icon { width:17px; }
.idw-secondary-grid { display:grid; gap:1.5rem; border:0; padding-top:1.1rem; margin-top:1.2rem; }
.idw-secondary { display:grid; grid-template-columns:110px minmax(0,1fr); gap:1rem; }
.idw-secondary .card__media { aspect-ratio:1; height:auto; }
.idw-secondary .card__body { padding:0; }
.idw-secondary .card__title { font-size:1.12rem; }
.idw-topic-strip { display:flex; align-items:center; gap:1.2rem; margin-bottom:1rem; background:var(--surface-2); padding-block:.7rem; }
.idw-topic-strip > span { font-size:.85rem; font-weight:600; color:var(--gold); flex-shrink:0; }
.idw-topic-strip ul { display:flex; gap:1.1rem; padding:0; margin:0; list-style:none; overflow-x:auto; }
.idw-topic-strip a { display:block; white-space:nowrap; padding-block:.35rem; color:var(--accent); font-size:1rem; font-weight:600; font-synthesis-weight:auto; line-height:1.65; }
.idw-topic-strip a:hover { color:var(--ink); }
.idw-section { padding-block:1.7rem 2rem; }
.idw-story-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:1.75rem; }
.idw-section-topics { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; list-style:none; margin:-.3rem 0 1.5rem; padding:0; }
.idw-section-topics a { color:var(--accent); display:block; padding-block:.35rem; font-size:.95rem; font-weight:600; font-synthesis-weight:auto; line-height:1.65; }
.idw-section-topics a:hover { color:var(--accent); text-decoration:underline; }
.idw-ui-ur .idw-topic-strip a { font-size:1.1rem; font-weight:700; }
.idw-ui-ur .idw-section-topics a { font-size:1.05rem; font-weight:700; }
.idw-section--knowledge { background:var(--surface-2); margin-block:1.5rem; padding-block:2rem 2.5rem; }
.idw-section--knowledge .idw-section-heading { border-color:var(--gold); }
.idw-section--knowledge .card__media { background:var(--surface-3); }
.idw-section--video { background:#102a20; color:#f7f8f3; margin-block:1.5rem; padding-block:2rem 2.5rem; --ink:#f7f8f3; --ink-2:#d4ded4; --ink-3:#bac9be; --accent:#d6bc85; --brand:#d6bc85; --line:#365144; }
.idw-section--video .idw-section-heading { border-color:#b59c64; }
.idw-section--video .card__media { background:#1c3d2a; }
.idw-section--video .idw-overline { color:#d6bc85; }
.idw-section--video .card__play { background:#f7f8f3; color:#123e2d; width:40px; height:40px; }
.article__header { border-top:2px solid var(--accent); margin-top:1rem; padding-top:1.4rem; }
.article__title { font-weight:500; line-height:1.25; letter-spacing:-.015em; }
.article__figure,.article__figure img { border-radius:2px; }
.prose { font-size:calc(1.15rem * var(--prose-scale,1)); line-height:1.9; }
.prose p:lang(ur),.prose p:lang(ar) { font-family:"Amiri",serif; line-height:1.95; }
.idw-ui-ur .prose { font-family:"Amiri",serif; font-size:calc(1.35rem * var(--prose-scale,1)); }
.rail-box { border-top:2px solid var(--gold); border-radius:0; box-shadow:none; background:var(--surface-2); }
.archive-head { background:var(--surface-2); }
.archive-head__watermark { opacity:.035; color:var(--gold); }
.archive-head__title { font-weight:500; }
.grid--archive { gap:2rem; }
.search-form__input { background:var(--surface); }
.page-numbers.current { background:var(--accent); color:var(--paper); }
.site-footer { background:#102a20; color:#eef3e9; margin-top:2rem; --ink:#eef3e9; --ink-2:#c4d1c5; --ink-3:#b3c2b5; --accent:#e4d4aa; --brand:#e4d4aa; --line:#355043; --gold:#d6bc85; }
.idw-footer-lead { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid #355043; padding-block:2rem; }
.idw-footer-lead p { margin:0; font:400 clamp(1.4rem,1.2rem + 1vw,2rem)/1.4 var(--font-serif); }
.idw-footer-lead a { display:flex; align-items:center; gap:.7rem; color:#d9c697; font-size:.8rem; }
.idw-footer-lead .icon { width:18px; height:18px; }
.footer__top { padding-block:2.5rem; gap:2.5rem; }
.footer__about { font-size:.87rem; max-width:28ch; line-height:1.85; color:#c4d1c5; }
.footer__title { color:#e4d4aa; font-size:.85rem; font-weight:500; margin-bottom:1.25rem; }
.footer-links a { color:#c4d1c5; font-size:.8rem; }
.footer-links a:hover { color:#fff; }
.footer__bottom { background:transparent; border-top:1px solid #355043; }
.footer__copy,.to-top { color:#b9c9bb; font-size:.72rem; }
.site-footer .idw-brand__name { color:#c4d1c5; }
.site-footer .lang-pills { display:flex; flex-direction:column; gap:.5rem; align-items:flex-start; }
.site-footer .lang-pill { border-color:#466352; color:#dce8d9; background:transparent; }
.site-footer .lang-pill:hover { background:#234732; }
.social--footer .social__link { border:1px solid #466352; color:#dce8d9; background:transparent; }
.idw-footer-network { margin-top:1.5rem; }
.drawer__panel { border-inline-end:1px solid var(--line); }
.drawer__head .idw-brand__seal { display:none; }
.drawer__head .idw-brand__urdu { font-size:1.85rem; }
.drawer__head .idw-brand__name { font-size:.6rem; }
[dir="ltr"] :is(.idw-view-all,.idw-latest__archive,.idw-footer-lead,.idw-newsline) .icon:last-child { transform:scaleX(-1); }
[dir="rtl"] :is(.article__title,.card__title,.archive-head__title,.idw-section-heading h2) { letter-spacing:0; line-height:1.65; }
.idw-ui-ur .idw-lead .card__title { font-size:clamp(1.75rem,1.3rem + 1.4vw,2.5rem); line-height:1.55; }
.idw-ui-ur .card__excerpt { font-size:1.05rem; line-height:1.85; }
.idw-ui-ur .primary-nav > .menu > .menu-item > a { font-size:.97rem; }
.idw-ui-ur .idw-latest .card__title { font-size:1.15rem; line-height:1.65; }
@media(min-width:600px) {
 .idw-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .idw-secondary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .idw-secondary { display:block; }
 .idw-secondary .card__media { aspect-ratio:16/9; }
 .idw-secondary .card__body { padding-top:.8rem; }
}
@media(min-width:1024px) {
 .navbar__menu { display:none; }
 .idw-front-grid { grid-template-columns:minmax(0,2.05fr) minmax(285px,1fr); align-items:start; }
 .idw-secondary { display:grid; grid-template-columns:100px minmax(0,1fr); gap:1rem; }
 .idw-secondary .card__media { aspect-ratio:1; }
 .idw-secondary .card__body { padding:0; }
 .idw-story-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .idw-story-grid--lead { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .idw-story-grid--lead > :first-child { grid-column:span 2; grid-row:span 2; }
 .idw-story-grid--lead > :first-child .card__title { font-size:1.7rem; }
 .idw-story-grid--lead > :not(:first-child) { display:grid; grid-template-columns:80px minmax(0,1fr); gap:.8rem; grid-column:span 2; }
 .idw-story-grid--lead > :not(:first-child) .card__media { aspect-ratio:1; }
 .idw-story-grid--lead > :not(:first-child) .card__body { padding:0; }
 .idw-story-grid--lead > :not(:first-child) .card__title { font-size:1.13rem; }
}
@media(max-width:1023px) {
 :root { --idw-header-collapse:34px; }
 .masthead { display:none; }
 .navbar > .container > .brand { display:flex; flex:1; min-width:0; margin:0; }
 .navbar .idw-brand__seal { display:none; }
 .navbar .idw-brand__urdu { color:#fff; font-size:1.7rem; }
 .navbar .idw-brand__name { color:#c5d4c8; font-size:.5rem; letter-spacing:.1em; }
 .navbar .custom-logo { max-height:40px; max-width:100%; }
 .navbar__inner { gap:.6rem; }
 .navbar__actions { gap:0; flex-shrink:0; }
 .navbar__actions .icon-btn { width:40px; }
 .primary-nav { display:none; }
 .topbar .dateline { font-size:.65rem; }
 .idw-edition-label { font-size:.65rem; }
 .idw-front { padding-top:1.4rem; }
 .idw-newsline__inner { gap:.7rem; }
 .idw-latest { margin-top:.5rem; }
 .footer__top { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:599px) {
 .idw-secondary-grid { gap:1.2rem; }
 .idw-secondary { grid-template-columns:100px minmax(0,1fr); }
 .idw-front-grid { gap:1.5rem; }
 .idw-front .idw-section-heading { margin-bottom:.4rem; }
 .idw-latest { padding:1rem 1.1rem; }
 .idw-latest li { padding-block:.85rem; }
 .idw-topic-strip { gap:.85rem; }
 .idw-topic-strip ul { gap:1rem; }
 .idw-section { padding-block:1.25rem 1.5rem; }
 .idw-section--knowledge,.idw-section--video { padding-block:1.5rem 2rem; }
 .idw-story-grid { gap:1.5rem; }
 .idw-view-all { font-size:.7rem; gap:.4rem; }
 .idw-section-heading { gap:.5rem; }
 .footer__top { gap:2rem; }
 .footer__brand { grid-column:1/-1; }
 .footer__about { max-width:40ch; }
 .idw-edition-label { font-size:.6rem; gap:.3rem; }
 .topbar .dateline { font-size:.6rem; }
 .idw-newsline a { font-size:.85rem; }
 .article__title { font-size:clamp(1.8rem,6vw,2.6rem); }
}
@media(max-width:359px) {
 .topbar .dateline { font-size:.55rem; }
 .idw-brand__name { display:none; }
 .navbar .icon-btn { width:36px; }
 .idw-view-all { max-width:90px; }
}
@media(prefers-reduced-motion:reduce) { .card__media img { transition:none; } .card:hover .card__media img { transform:none; } }
@media print { .topbar,.navbar,.idw-newsline,.idw-topic-strip,.idw-latest,.idw-footer-lead { display:none; } .site-header { position:static; } .masthead { display:block; } .idw-front-grid { display:block; } }
.idw-knowledge-grid { display:grid; gap:2rem; }
.idw-knowledge-column { min-width:0; }
.idw-knowledge-column > h3 { margin:0 0 1rem; padding-bottom:.4rem; border:0; font:500 1.5rem/1.5 var(--font-serif); }
.idw-knowledge-column > h3 a { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.idw-knowledge-column > h3 .icon { width:18px; height:18px; }
.idw-knowledge-stories { display:grid; gap:1.25rem; }
.idw-knowledge-stories .card { grid-template-columns:90px minmax(0,1fr); gap:1rem; }
.idw-knowledge-stories .card__media { width:auto; height:90px; aspect-ratio:1; }
.idw-knowledge-stories .card__body { padding:0; }
.idw-knowledge-stories .card__title { font-size:1.12rem; }
@media(min-width:768px) { .idw-knowledge-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3rem; } }
.primary-nav .menu > li.menu-item--home { display:flex; }
/* Keep the full wordmark in the masthead; desktop sticky navigation retains its room. */
@media (min-width:1024px) {
 .site-header.is-stuck .navbar > .container > .brand { display:none; }
}

/* Native horizontal scrolling keeps headline links available before JavaScript loads. */
.idw-slider__track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.idw-slider__track::-webkit-scrollbar { display:none; }
.idw-slider__slide { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.idw-slider .manset__controls { margin-top:.8rem; gap:.25rem; }
.idw-slider .manset__pager { padding:0; margin:0; list-style:none; gap:.2rem; }
.idw-slider .manset__arrow,.idw-slider .manset__toggle { width:44px; height:44px; }
.idw-slider .manset__pager button { min-height:44px; border:0; border-radius:var(--radius-l); transition:color .2s,background-color .2s; }
.idw-slider .manset__pager button:hover { background:var(--surface-2); }
.idw-slider .manset__pager button[aria-current="true"] { background:var(--accent); color:var(--paper); }
.idw-slider .manset__pager button::before { display:none; }
.rtl .idw-slider .manset__arrow .icon { transform:rotate(180deg); }
.rtl .idw-slider .manset__pager button::before { transform-origin:right; }
.no-js .idw-slider .manset__controls { display:none; }
/* Sparse collections use the whole row instead of reserving empty card columns. */
.idw-story-grid:not(.idw-story-grid--lead)[data-story-count="1"] { grid-template-columns:minmax(0,1fr); }
@media(min-width:600px) {
 .idw-story-grid:not(.idw-story-grid--lead)[data-story-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:1024px) {
 .idw-story-grid:not(.idw-story-grid--lead)[data-story-count="3"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
