/*
Theme Name: NSAForum V0.20
Description: Unified Arabic RTL editorial interface for NSAForum, derived from accepted QA.
Template: metro-magazine-pro
Version: 0.20.0
Text Domain: nsaforum-v020
*/
:root{--n:#1a3554;--d:#102b46;--a:#0b6b84;--g:#e5b35d;--b:#dce5ee;--bg:#f3f7fa;--ink:#1d334b;--muted:#617486}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body.nsa-v020{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.8}
.nsa-v020 a{color:inherit;text-decoration:none}.nsa-v020 a:hover{color:var(--a)}
.nsa-v020 a:focus-visible,.nsa-v020 button:focus-visible,.nsa-v020 input:focus-visible{outline:3px solid var(--g);outline-offset:3px}
.nsa-v020 h1,.nsa-v020 h2,.nsa-v020 h3{color:var(--ink);line-height:1.45;font-family:inherit;font-weight:750}
.nsa-wrap{max-width:1230px;margin:auto;padding-inline:22px}.nsa-skip{position:absolute;top:-80px;right:10px;background:white;padding:10px;z-index:100}.nsa-skip:focus{top:6px}
.nsa-qa{background:#ffeed0;padding:5px max(22px,calc((100vw - 1230px)/2));color:#68512b;font-size:12px}
.nsa-header{background:var(--d);border-bottom:3px solid var(--g);color:#fff}
.nsa-head-inner{display:flex;gap:15px;align-items:center;min-height:83px}
.nsa-brand{display:flex;align-items:center;gap:10px;color:#fff!important;white-space:nowrap}
.nsa-brand:before{content:"";background:var(--g);height:44px;width:5px;border-radius:5px}
.nsa-brand strong{font-size:22px;display:block;line-height:1.35;color:white}
.nsa-brand small{font-size:12px;color:#cfdde8;display:block}
.nsa-nav{display:flex;gap:4px;align-items:center;margin-inline-start:auto}
.nsa-nav a{font-weight:700;font-size:14px;color:white!important;white-space:nowrap;padding:9px 12px;border-radius:7px}
.nsa-nav a:hover,.nsa-nav a[aria-current=page]{background:#ffffff27}
.nsa-nav .nsa-forum{background:#0a6d88}
.nsa-toggle{display:none;border:1px solid #b5c8d8;background:transparent;border-radius:7px;color:#fff;padding:8px 11px;cursor:pointer}
.nsa-search{display:flex;gap:5px;align-items:center}.nsa-search input{min-height:42px;width:150px;border:1px solid #cad8e5;border-radius:7px;padding:9px;color:var(--ink);background:white;font:inherit}
.nsa-search button{min-height:42px;padding:0 12px;border:0;border-radius:7px;background:var(--g);color:#153047;font-weight:bold;cursor:pointer}
.nsa-main{padding-block:30px 52px}.nsa-eyebrow{font-weight:700;font-size:13px;color:var(--a);display:flex;gap:12px;align-items:center;margin-bottom:14px}
.nsa-eyebrow:after{content:"";height:1px;background:var(--b);flex:1}
.nsa-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:19px}
.nsa-lead{background:#fff;border:1px solid var(--b);border-radius:13px;overflow:hidden;box-shadow:0 6px 25px #1d3c5b12}
.nsa-image{background:linear-gradient(130deg,#dae5ed,#a4bcd0);display:block;overflow:hidden}.nsa-image img{width:100%;height:100%;object-fit:cover}
.nsa-lead .nsa-image{height:290px}.nsa-lead-content{padding:22px 24px 25px}
.nsa-meta{display:flex;gap:13px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:9px}
.nsa-meta .category{color:var(--a);font-weight:700}.nsa-lead h1{font-size:clamp(24px,2.4vw,32px);margin:0 0 12px}
.nsa-lead p{color:#546c80;line-height:1.95;margin:0 0 16px}
.nsa-cta-link{font-size:14px;color:var(--a)!important;font-weight:750}
.nsa-side{display:grid;gap:10px}.nsa-mini{display:grid;grid-template-columns:120px 1fr;background:white;border:1px solid var(--b);border-radius:10px;overflow:hidden;min-height:115px}
.nsa-mini .nsa-image{height:100%;min-height:113px}.nsa-mini-content{padding:11px 13px}
.nsa-mini h2{font-size:16px;margin:2px 0 0}.nsa-section{margin-block:32px}.nsa-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}
.nsa-section h2{font-size:24px;margin:0}.nsa-note{font-size:13px;color:var(--muted)}
.nsa-list{background:white;border:1px solid var(--b);border-radius:12px;overflow:hidden}
.nsa-card{display:grid;grid-template-columns:140px 1fr;gap:17px;padding:16px 19px;border-bottom:1px solid var(--b)}
.nsa-card:last-child{border-bottom:0}.nsa-card .nsa-image{height:98px;border-radius:7px}
.nsa-card h3{font-size:18px;margin:2px 0 5px}.nsa-card p{color:var(--muted);font-size:13px;margin:0}
.nsa-tags{display:flex;gap:9px;flex-wrap:wrap;padding:0;list-style:none}.nsa-tags a{background:#e8f1f7;border:1px solid #cbdbe8;border-radius:30px;color:#385c75;padding:6px 14px;font-size:13px}
.nsa-community{display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:15px;background:linear-gradient(120deg,#183451,#286183);padding:25px 31px;color:white;margin-top:35px}
.nsa-community h2{color:white;font-size:24px;margin:0 0 8px}.nsa-community p{color:#e0ebf4;margin:0}
.nsa-community a{border-radius:8px;padding:10px 17px;background:white;color:#13506f!important;font-weight:750;white-space:nowrap}
.nsa-article{max-width:920px;margin:auto;background:white;padding:30px;border:1px solid var(--b);border-radius:12px}
.nsa-article h1{font-size:clamp(25px,3vw,36px)}.nsa-article-cover{width:100%;max-height:430px;object-fit:cover;border-radius:10px;margin:20px 0}
.nsa-article-body{font-size:17px;line-height:2.05;overflow-wrap:anywhere}.nsa-article-body img{max-width:100%;height:auto}
.nsa-pagination{margin-top:24px}.nsa-pagination .page-numbers{display:inline-block;background:white;border:1px solid var(--b);padding:5px 12px;margin:4px;border-radius:6px}
.nsa-pagination .current{background:var(--n);color:white}
.nsa-footer{background:var(--d);padding:30px 0;color:#d9e6f1}.nsa-footer-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.nsa-footer a{color:#e8f3fd}.nsa-empty{padding:35px;text-align:center;background:white;border-radius:11px}
@media(max-width:1050px){.nsa-head-inner{flex-wrap:wrap;padding-block:12px}.nsa-nav{order:3;margin:0;width:100%}.nsa-search{margin-inline-start:auto}.nsa-hero{grid-template-columns:1fr}.nsa-side{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.nsa-wrap{padding-inline:14px}.nsa-qa{padding-inline:14px}.nsa-brand strong{font-size:18px}.nsa-brand small{font-size:11px}
.nsa-toggle{display:flex;margin-inline-start:auto}.nsa-head-inner{gap:10px;min-height:66px}
.nsa-nav{display:none;order:4;flex-direction:column;align-items:stretch}.nsa-nav.open{display:flex}.nsa-nav a{padding:9px}
.nsa-search{order:3;width:100%}.nsa-search input{width:100%;flex:1}.nsa-main{padding-block:24px 40px}
.nsa-lead .nsa-image{height:223px}.nsa-lead-content{padding:17px}.nsa-lead h1{font-size:24px}
.nsa-side{grid-template-columns:1fr}.nsa-mini{grid-template-columns:112px 1fr}.nsa-mini h2{font-size:15px}
.nsa-section h2{font-size:21px}.nsa-section-head{display:block}.nsa-card{grid-template-columns:98px 1fr;gap:11px;padding:12px}
.nsa-card .nsa-image{height:82px}.nsa-card h3{font-size:16px}.nsa-card p{display:none}
.nsa-community{display:block;padding:23px}.nsa-community h2{font-size:22px}.nsa-community a{display:block;text-align:center;margin-top:18px}.nsa-article{padding:18px}.nsa-article-body{font-size:16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* QA_TOUCH_TARGETS_V020_20261110: min 44px interaction targets in the new editorial theme. */
.nsa-v020 .nsa-toggle,
.nsa-v020 .nsa-search button { min-height:44px; min-width:44px; }
.nsa-v020 .nsa-search input { min-height:44px; }
.nsa-v020 .nsa-cta-link { display:inline-flex;align-items:center;min-height:44px; }
.nsa-v020 .nsa-tags a { display:inline-flex;align-items:center;min-height:44px; }
.nsa-v020 .nsa-pagination .page-numbers {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;
}
.nsa-v020 .nsa-footer a { display:inline-flex;align-items:center;min-height:44px;min-width:44px; }
.nsa-v020 .nsa-mini h2 a,
.nsa-v020 .nsa-card h3 a { display:inline-block;min-height:44px; }
.nsa-v020 .nsa-article nav a { display:inline-flex;align-items:center;min-height:44px; }

/* QA_DESKTOP_MIN44_V020_20261110 */
.nsa-v020 .nsa-nav a { display:inline-flex;align-items:center;min-height:44px; }
.nsa-v020 .nsa-lead h1 a { display:inline-block;min-height:44px; }


/* NSAForum V0.20 landing categories, forum and ad slots — isolated QA. */
.nsa-ad-slot {
  position:relative;
  margin:24px auto 2px;
  width:100%;
  border-radius:10px;
  overflow:hidden;
}
.nsa-ad-widget { width:100%; min-width:0; }
.nsa-ad-widget iframe,.nsa-ad-widget img { max-width:100%; }
.nsa-ad-mockup {
  background:repeating-linear-gradient(135deg,#edf3f8 0,#edf3f8 8px,#e8eff6 8px,#e8eff6 16px);
  border:1px dashed #b8cbd9;
  color:#536b7c;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:4px;
  min-height:98px;
  padding:12px 20px;
}
.nsa-ad-disclosure {font-size:11px;color:#587184;}
.nsa-ad-placeholder {font-size:15px;font-weight:700;}
.nsa-ad-infeed {max-width:700px;margin-top:30px;}
.nsa-ad-infeed.nsa-ad-mockup {min-height:145px;}
.nsa-curated-section {margin-block:30px;}
.nsa-curated-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;align-items:stretch;
}
.nsa-curated-panel {
  background:#fff;
  border:1px solid var(--b);
  border-radius:12px;
  padding:15px 19px 10px;
  min-width:0;
}
.nsa-curated-heading {
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding-bottom:10px;
  border-bottom:1px solid var(--b);
}
.nsa-curated-heading h3 {margin:0;font-size:19px;}
.nsa-curated-heading a {
  display:inline-flex;align-items:center;
  min-height:44px;min-width:44px;
  font-size:13px;font-weight:750;
  color:var(--a);white-space:nowrap;
}
.nsa-curated-item {border-bottom:1px solid #e5edf3;}
.nsa-curated-item:last-child {border-bottom:0;}
.nsa-curated-item-link {
  display:grid;grid-template-columns:94px minmax(0,1fr);
  gap:13px;align-items:center;
  min-height:110px;padding:10px 0;
  overflow-wrap:anywhere;
}
.nsa-curated-item img {
  width:94px;height:78px;object-fit:cover;
  border-radius:7px;background:#d8e5ef;
}
.nsa-curated-item time {font-size:12px;color:var(--muted);}
.nsa-curated-item h4 {font-size:15px;line-height:1.55;margin:3px 0 0;font-weight:700;}
.nsa-forum-section {
  background:#fff;border:1px solid var(--b);
  border-radius:13px;padding:22px 24px;
}
.nsa-forum-section .nsa-section-head {margin-bottom:6px;}
.nsa-forum-topic-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;margin:18px 0;
}
.nsa-forum-topic {
  min-width:0;
  background:#f4f8fb;
  border:1px solid #dce6ef;
  border-radius:9px;
  padding:16px 15px;
}
.nsa-forum-topic h3 {font-size:16px;line-height:1.7;margin:4px 0 0;}
.nsa-forum-topic h3 a {display:block;min-height:44px;overflow-wrap:anywhere;}
.nsa-forum-channel-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;margin-top:16px;
}
.nsa-forum-channel {
  display:flex;justify-content:space-between;align-items:center;
  gap:8px;background:#e6eef5;
  border:1px solid #c9dce9;border-radius:8px;
  min-height:58px;padding:11px 14px;
  font-size:15px;font-weight:700;color:#21445e!important;
}
.nsa-forum-channel:hover {background:#dbeaf4;}
.nsa-forum-channel span:last-child {color:var(--a);font-size:19px;}
@media(max-width:940px){
  .nsa-forum-topic-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .nsa-forum-channel-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
  .nsa-ad-slot {margin-top:19px;}
  .nsa-ad-mockup {min-height:100px;padding:10px;}
  .nsa-ad-infeed.nsa-ad-mockup {min-height:115px;}
  .nsa-curated-grid {grid-template-columns:1fr;gap:11px;}
  .nsa-curated-panel {padding:13px 15px 6px;}
  .nsa-curated-heading h3 {font-size:18px;}
  .nsa-curated-item-link {grid-template-columns:86px minmax(0,1fr);gap:11px;min-height:98px;}
  .nsa-curated-item img {width:86px;height:72px;}
  .nsa-curated-item h4 {font-size:15px;}
  .nsa-forum-section {padding:17px 14px;}
  .nsa-forum-topic-grid {grid-template-columns:1fr;gap:9px;}
  .nsa-forum-topic {padding:12px 14px;}
  .nsa-forum-channel-grid {grid-template-columns:1fr;gap:7px;}
  .nsa-forum-channel {min-height:52px;}
}


/* NSAForum V0.20 authentic in-house campaign creatives, QA-only. */
.nsa-ad-slot:has(.nsa-house-creative){margin-block:28px}
.nsa-house-creative{
  border-radius:12px;
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;
  background:linear-gradient(112deg,#0c6179,#173b57);
  border:1px solid #174a66;
  color:#fff;padding:18px 24px;min-height:120px;
  box-shadow:0 6px 20px #14314d1a;
}
.nsa-house-creative .nsa-house-body{flex:1;min-width:200px}
.nsa-house-label{
  display:block;font-size:11px;letter-spacing:.01em;color:#c5deed;
  font-weight:700;margin-bottom:4px
}
.nsa-house-creative strong{display:block;color:#fff;font-size:21px;line-height:1.45}
.nsa-house-creative p{margin:5px 0 0;color:#d9ecf5;font-size:13px}
.nsa-house-creative a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:124px;min-height:46px;
  background:#fff;color:#173c59!important;border-radius:8px;
  padding:9px 17px;white-space:nowrap;font-weight:750
}
.nsa-house-creative a:focus-visible{outline:3px solid #f3bc62;outline-offset:4px}
.nsa-house-infeed{background:linear-gradient(120deg,#244b68,#19344d)}
.nsa-house-infeed strong{font-size:19px}
@media(max-width:680px){
  .nsa-house-creative{padding:16px 15px;gap:10px;min-height:128px}
  .nsa-house-creative .nsa-house-body{min-width:0;width:100%}
  .nsa-house-creative strong{font-size:18px}
  .nsa-house-creative a{width:100%;min-height:48px}
}

/* NSAForum V0.20 QA homepage information architecture — 2026-11-14 */
.nsa-v020 .nsa-header{border-bottom:2px solid var(--g)}
.nsa-v020 .nsa-head-v2{min-height:90px;gap:24px}
.nsa-v020 .nsa-head-actions{display:flex;gap:13px;align-items:center;margin-inline-start:auto}
.nsa-v020 .nsa-head-v2 .nsa-search input{width:245px;min-height:46px}
.nsa-v020 .nsa-head-v2 .nsa-search button{min-height:46px}
.nsa-v020 .nsa-head-forum{display:inline-flex;align-items:center;gap:9px;justify-content:center;min-height:46px;padding:9px 17px;border-radius:9px;background:#dcb05c;color:#162e46!important;font-size:14px;font-weight:750;white-space:nowrap}
.nsa-v020 .nsa-head-forum:hover{background:#f4c974}
.nsa-v020 .nsa-header-nav-shell{background:#183b59;border-top:1px solid #ffffff1a}
.nsa-v020 .nsa-nav-v2{min-height:56px;margin:0;gap:7px;flex-wrap:wrap}
.nsa-v020 .nsa-nav-v2>a,.nsa-v020 .nsa-nav-v2 summary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:9px 15px;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;color:white}
.nsa-v020 .nsa-nav-v2>a:hover,.nsa-v020 .nsa-nav-v2 summary:hover{background:#ffffff22}
.nsa-v020 .nsa-nav-v2 a[aria-current=page]{background:#ffffff28}
.nsa-v020 .nsa-menu-details{position:relative;min-width:0}
.nsa-v020 .nsa-menu-details summary{list-style:none}
.nsa-v020 .nsa-menu-details summary::-webkit-details-marker{display:none}
.nsa-v020 .nsa-menu-details summary:focus-visible{outline:3px solid var(--g);outline-offset:3px}
.nsa-v020 .nsa-menu-dropdown{position:absolute;right:0;top:100%;z-index:40;min-width:240px;padding:8px;border:1px solid #cad9e4;border-radius:10px;background:#fff;box-shadow:0 16px 38px #102c4580;display:grid;gap:3px}
.nsa-v020 .nsa-menu-dropdown a{color:#203c56!important;min-height:44px;border-radius:6px;padding:9px 12px;display:flex;align-items:center;white-space:normal;font-size:14px}
.nsa-v020 .nsa-menu-dropdown a:hover{background:#e7f1f7;color:#006280!important}
.nsa-v020 .nsa-intro-v2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.8fr);gap:30px;align-items:center;border-radius:17px;padding:34px 38px;background:linear-gradient(120deg,#10314e,#1c536f);color:white;margin-bottom:30px}
.nsa-v020 .nsa-intro-copy{min-width:0}
.nsa-v020 .nsa-intro-kicker{font-size:13px;color:#f3c979!important;font-weight:700;margin:0 0 8px}
.nsa-v020 .nsa-intro-v2 h1{font-size:clamp(25px,2.3vw,34px);color:white;margin:0 0 12px;line-height:1.5}
.nsa-v020 .nsa-intro-v2 p:not(.nsa-intro-kicker){font-size:15px;color:#d4e4f0;line-height:1.9;margin:0 0 17px;max-width:680px}
.nsa-v020 .nsa-intro-actions{display:flex;flex-wrap:wrap;gap:11px}
.nsa-v020 .nsa-intro-actions a{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;border-radius:8px;padding:9px 17px;font-weight:700;font-size:14px}
.nsa-v020 .nsa-intro-primary{background:#e5b35d;color:#18334b!important}
.nsa-v020 .nsa-intro-secondary{border:1px solid #9db9cb;color:#fff!important}
.nsa-v020 .nsa-quick-links{border:1px solid #ffffff35;border-radius:12px;padding:17px;background:#ffffff12;display:grid;gap:4px}
.nsa-v020 .nsa-quick-links strong{font-size:14px;color:#f6d695;padding:0 0 8px}
.nsa-v020 .nsa-quick-links a{display:flex;justify-content:space-between;gap:7px;align-items:center;color:white;min-height:44px;border-top:1px solid #ffffff24;font-size:13px;padding:7px 0}
.nsa-v020 .nsa-intro-v2+.nsa-forum-section{margin-top:0}
.nsa-v020 .nsa-intro-v2+.nsa-forum-section h2{font-size:25px}
.nsa-v020 .nsa-forum-section+.nsa-eyebrow{margin-top:36px}
.nsa-v020 .nsa-lead h2{font-size:clamp(24px,2.4vw,32px);margin:0 0 12px}
.nsa-v020 .nsa-lead h2 a{display:inline-block;min-height:44px}
@media(max-width:1020px){.nsa-v020 .nsa-head-v2{flex-wrap:wrap;padding-block:14px}.nsa-v020 .nsa-nav-v2{width:100%;flex-wrap:wrap}.nsa-v020 .nsa-head-v2 .nsa-search input{width:190px}}
@media(max-width:720px){
 .nsa-v020 .nsa-head-v2{gap:10px;min-height:65px}
 .nsa-v020 .nsa-head-actions{display:contents}
 .nsa-v020 .nsa-head-v2 .nsa-toggle{display:inline-flex;margin-inline-start:auto;gap:5px;min-height:44px;align-items:center}
 .nsa-v020 .nsa-head-forum{display:none}
 .nsa-v020 .nsa-head-v2 .nsa-search{order:3;width:100%;margin:0}
 .nsa-v020 .nsa-head-v2 .nsa-search input{width:100%;flex:1}
 .nsa-v020 .nsa-nav-v2{display:none;flex-direction:column;align-items:stretch;gap:2px;padding:8px 0 12px}
 .nsa-v020 .nsa-nav-v2.open{display:flex}
 .nsa-v020 .nsa-nav-v2>a,.nsa-v020 .nsa-nav-v2 summary{width:100%;justify-content:flex-start;min-height:48px}
 .nsa-v020 .nsa-menu-details{width:100%}
 .nsa-v020 .nsa-menu-dropdown{position:static;min-width:0;box-shadow:none;border-radius:8px}
 .nsa-v020 .nsa-intro-v2{grid-template-columns:1fr;padding:22px 19px;gap:14px;margin-bottom:24px}
 .nsa-v020 .nsa-intro-v2 h1{font-size:25px}
 .nsa-v020 .nsa-intro-actions{display:grid;grid-template-columns:1fr}
 .nsa-v020 .nsa-quick-links{padding:12px 14px}
 .nsa-v020 .nsa-intro-v2+.nsa-forum-section h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.nsa-v020 .nsa-intro-v2 *{scroll-behavior:auto}}

/* NSAForum V0.20 — compact mobile entry to public forum, QA 2026-11-14.
   Quick links are already reachable through the accessible mobile main menu. */
@media(max-width:720px){
  .nsa-v020 .nsa-quick-links{display:none!important}
  .nsa-v020 .nsa-intro-v2{padding:19px 17px!important;gap:11px!important;margin-bottom:18px!important}
  .nsa-v020 .nsa-intro-v2 h1{font-size:23px!important;line-height:1.45!important}
  .nsa-v020 .nsa-intro-v2 p:not(.nsa-intro-kicker){font-size:14px!important;line-height:1.7!important;margin-bottom:12px!important}
  .nsa-v020 .nsa-intro-actions{gap:8px!important}
  .nsa-v020 .nsa-intro-actions a{min-height:44px!important;padding:8px!important}
}
