/* nn-article.css — shared stylesheet for Noor Nama editorial articles.
   Everything is scoped under .nn-article so it never touches GeneratePress
   header/footer/nav or the site's global design tokens. Load once from the
   child theme; wrap each article's body markup in <div class="nn-article">. */

.nn-article {
    --ink:        #1a1410;
    --ink-soft:   #3d3530;
    --ink-muted:  #6b5f57;
    --gold:       #b8892a;
    --gold-light: #d4aa50;
    --gold-pale:  #f5ebd4;
    --cream:      #faf7f2;
    --cream-dark: #f0ebe0;
    --white:      #ffffff;
    --green-deep: #1e3a2f;
    --green-mid:  #2d5a42;
    --green-soft: #e8f2ec;
    --border:     #d4c8b8;
    --shadow-sm:  0 2px 8px rgba(26,20,16,.08);
    --shadow-md:  0 6px 24px rgba(26,20,16,.12);
    --r:          6px;
    --max-w:      820px;
  }

  .nn-article *, .nn-article *::before, .nn-article *::after { box-sizing: border-box; margin: 0; padding: 0; }
  .nn-article { scroll-behavior: smooth; font-size: 17px; }

  .nn-article {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
  }

  .nn-article .site-header { background: var(--green-deep); padding: 10px 24px; text-align: center; }
  .nn-article .site-header a {
    color: var(--gold-light);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .nn-article .hero {
    position: relative; background: var(--green-deep); overflow: hidden; padding: 80px 24px 72px;
  }
  .nn-article .hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(184,137,42,.06) 0px, rgba(184,137,42,.06) 1px, transparent 1px, transparent 28px),
      repeating-linear-gradient(-45deg, rgba(184,137,42,.06) 0px, rgba(184,137,42,.06) 1px, transparent 1px, transparent 28px);
    pointer-events: none;
  }
  .nn-article .hero-inner { position: relative; max-width: var(--max-w); margin: 0 auto; text-align: center; }
  .nn-article .hero-eyebrow {
    display: inline-block; color: var(--gold-light); font-family: 'IBM Plex Sans', sans-serif;
    font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    border: 1px solid rgba(212,170,80,.4); border-radius: 2px; padding: 5px 16px; margin-bottom: 28px;
  }
  .nn-article .hero h1 {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; color: var(--cream); line-height: 1.18; max-width: 720px; margin: 0 auto 20px;
  }
  .nn-article .hero h1 em { color: var(--gold-light); font-style: italic; }
  .nn-article .hero-sub {
    font-family: 'IBM Plex Sans', sans-serif; font-size: .98rem; font-weight: 300;
    color: rgba(250,247,242,.7); max-width: 560px; margin: 0 auto 36px; letter-spacing: .01em;
  }
  .nn-article .hero-meta { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
  .nn-article .hero-meta span {
    font-family: 'IBM Plex Sans', sans-serif; font-size: .78rem; font-weight: 500;
    color: rgba(212,170,80,.8); letter-spacing: .08em; text-transform: uppercase;
  }

  .nn-article .page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }
  .nn-article .article-section { margin: 64px 0; }

  .nn-article .section-label {
    font-family: 'IBM Plex Sans', sans-serif; font-size: .7rem; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
  }
  .nn-article h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700; color: var(--green-deep); line-height: 1.22; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 2px solid var(--gold-pale);
  }
  .nn-article h2::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: 10px; }
  .nn-article h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
  .nn-article h4 { font-family: 'IBM Plex Sans', sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 24px 0 8px; }
  .nn-article p { margin-bottom: 20px; }
  .nn-article strong { color: var(--ink); font-weight: 600; }
  .nn-article a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

  .nn-article .tldr-box {
    background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green-deep);
    border-radius: var(--r); padding: 28px 32px; margin: -32px auto 48px; box-shadow: var(--shadow-sm);
    position: relative; z-index: 10;
  }
  .nn-article .tldr-box h2 { border: none; padding: 0; margin-bottom: 16px; font-size: 1.2rem; }
  .nn-article .tldr-box h2::after { display: none; }
  .nn-article .tldr-box ul { padding-left: 20px; font-family: 'IBM Plex Sans', sans-serif; font-size: .95rem; }
  .nn-article .tldr-box li { margin-bottom: 10px; }

  .nn-article .toc {
    background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold);
    border-radius: var(--r); padding: 28px 32px; margin: 48px 0; box-shadow: var(--shadow-sm);
  }
  .nn-article .toc-title {
    font-family: 'IBM Plex Sans', sans-serif; font-size: .75rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
  }
  .nn-article .toc ol { list-style: none; counter-reset: toc-counter; padding: 0; }
  .nn-article .toc li {
    counter-increment: toc-counter; display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
    border-bottom: 1px dashed var(--cream-dark); font-family: 'IBM Plex Sans', sans-serif; font-size: .88rem;
  }
  .nn-article .toc li:last-child { border-bottom: none; }
  .nn-article .toc li::before { content: counter(toc-counter, decimal-leading-zero); font-weight: 700; color: var(--gold); font-size: .75rem; flex-shrink: 0; }
  .nn-article .toc li a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
  .nn-article .toc li a:hover { color: var(--gold); }

  .nn-article .quran-block, .nn-article .hadith-block { margin: 32px 0; padding: 28px 32px; border-radius: var(--r); position: relative; }
  .nn-article .quran-block { background: var(--green-deep); color: var(--cream); }
  .nn-article .quran-block::before {
    content: '\FE3E'; position: absolute; top: 10px; left: 18px; font-size: 2rem;
    color: var(--gold-light); opacity: .5; font-family: 'Playfair Display', serif;
  }
  .nn-article .quran-arabic {
    font-size: 1.5rem; text-align: right; direction: rtl; line-height: 2; color: var(--gold-light);
    margin-bottom: 12px; font-family: 'Playfair Display', serif;
  }
  .nn-article .quran-translation { font-style: italic; color: rgba(250,247,242,.9); font-size: .96rem; margin-bottom: 8px; }
  .nn-article .quran-ref { font-family: 'IBM Plex Sans', sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); opacity: .8; }

  .nn-article .hadith-block { background: var(--gold-pale); border-left: 4px solid var(--gold); }
  .nn-article .hadith-text { font-style: italic; font-size: 1.02rem; color: var(--ink); margin-bottom: 10px; }
  .nn-article .hadith-ref { font-family: 'IBM Plex Sans', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

  .nn-article .callout { display: flex; gap: 16px; padding: 20px 24px; border-radius: var(--r); margin: 28px 0; font-size: .94rem; }
  .nn-article .callout-icon { font-size: 1.4rem; flex-shrink: 0; }
  .nn-article .callout.warning { background: #fff8e8; border: 1px solid #e8c84a; }
  .nn-article .callout.info { background: var(--green-soft); border: 1px solid #a8d4b8; }
  .nn-article .callout.danger { background: #fff0f0; border: 1px solid #f4a4a4; }
  .nn-article .callout.sunnah { background: var(--gold-pale); border: 1px solid var(--gold-light); }

  .nn-article .pull-quote {
    margin: 40px -8px; padding: 32px 40px; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
    font-family: 'Playfair Display', serif; font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-style: italic;
    color: var(--green-deep); text-align: center; line-height: 1.5;
  }

  .nn-article .table-wrap { overflow-x: auto; margin: 28px 0; }
  .nn-article table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Sans', sans-serif; font-size: .88rem; box-shadow: var(--shadow-sm); border-radius: var(--r); overflow: hidden; }
  .nn-article thead tr { background: var(--green-deep); color: var(--cream); }
  .nn-article thead th { padding: 14px 18px; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .nn-article tbody tr { border-bottom: 1px solid var(--cream-dark); }
  .nn-article tbody tr:nth-child(even) { background: var(--cream); }
  .nn-article tbody tr:nth-child(odd) { background: var(--white); }
  .nn-article tbody td { padding: 14px 18px; line-height: 1.5; vertical-align: top; }
  .nn-article tbody td:first-child { font-weight: 600; color: var(--ink); }
  .nn-article .badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .nn-article .badge.strong { background: var(--green-soft); color: var(--green-deep); }
  .nn-article .badge.recommended { background: var(--gold-pale); color: #7a5a10; }
  .nn-article .badge.mentioned { background: #f0f0f0; color: #555; }
  .nn-article .badge.avoid { background: #fff0f0; color: #b00; }

  .nn-article .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
  @media (max-width: 540px) { .nn-article .compare-grid { grid-template-columns: 1fr; } }
  .nn-article .compare-card { border-radius: var(--r); padding: 24px; position: relative; }
  .nn-article .compare-card.wrong { background: #fff5f5; border: 1px solid #f4aaaa; }
  .nn-article .compare-card.right { background: var(--green-soft); border: 1px solid #8fcca8; }
  .nn-article .compare-card .card-label { font-family: 'IBM Plex Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
  .nn-article .compare-card.wrong .card-label { color: #c0392b; }
  .nn-article .compare-card.right .card-label { color: var(--green-mid); }
  .nn-article .compare-card ul { list-style: none; padding: 0; font-size: .9rem; }
  .nn-article .compare-card li { padding: 5px 0 5px 22px; position: relative; }
  .nn-article .compare-card.wrong li::before { content: '\2717'; position: absolute; left: 0; color: #c0392b; }
  .nn-article .compare-card.right li::before { content: '\2713'; position: absolute; left: 0; color: var(--green-mid); }

  .nn-article .city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 32px 0; }
  .nn-article .city-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
  .nn-article .city-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--green-deep); margin-bottom: 6px; }
  .nn-article .city-market { font-family: 'IBM Plex Sans', sans-serif; font-size: .75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
  .nn-article .city-tip { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }

  .nn-article details.faq-item {
    border-bottom: 1px solid var(--cream-dark);
    padding: 20px 0;
  }
  .nn-article details.faq-item summary {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-deep);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nn-article details.faq-item summary::-webkit-details-marker { display: none; }
  .nn-article details.faq-item summary::after {
    content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--gold); transition: transform 0.2s ease;
  }
  .nn-article details.faq-item[open] summary::after { transform: rotate(45deg); }
  .nn-article .faq-a { padding-top: 14px; font-size: .96rem; color: var(--ink-soft); }

  .nn-article .scholar-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 28px; margin: 24px 0; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
  .nn-article .scholar-avatar { width: 56px; height: 56px; background: var(--green-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
  .nn-article .scholar-name { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin-bottom: 4px; }
  .nn-article .scholar-quote { font-style: italic; font-size: .94rem; color: var(--ink-soft); }

  .nn-article .conclusion-block { background: var(--green-deep); border-radius: var(--r); padding: 48px 44px; margin: 60px 0 0; position: relative; overflow: hidden; }
  .nn-article .conclusion-block h2 { color: var(--gold-light) !important; border-bottom-color: rgba(212,170,80,.2) !important; font-size: 1.7rem; }
  .nn-article .conclusion-block p { color: rgba(250,247,242,.88); }
  .nn-article .conclusion-block .table-wrap table { box-shadow: none; }
  .nn-article .conclusion-block thead tr { background: rgba(0,0,0,.3); }
  .nn-article .conclusion-block tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
  .nn-article .conclusion-block tbody tr:nth-child(odd) { background: rgba(255,255,255,.08); }
  .nn-article .conclusion-block tbody td { color: rgba(250,247,242,.85); }
  .nn-article .conclusion-block tbody td:first-child { color: var(--gold-light); }
  .nn-article .dua-box { margin-top: 32px; padding: 28px 32px; background: rgba(0,0,0,.25); border-radius: var(--r); border: 1px solid rgba(212,170,80,.25); text-align: center; }
  .nn-article .dua-arabic { direction: rtl; font-size: 1.4rem; color: var(--gold-light); line-height: 2; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
  .nn-article .dua-translation { font-style: italic; color: rgba(250,247,242,.75); font-size: .94rem; }
  .nn-article .ameen { display: inline-block; margin-top: 16px; color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .1em; }

  .nn-article .reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); z-index: 999; }

  @media (max-width: 600px) {
    .nn-article .hero { padding: 56px 20px 52px; }
    .nn-article h2 { font-size: 1.35rem; }
    .nn-article .toc, .nn-article .tldr-box, .nn-article .quran-block, .nn-article .hadith-block { padding: 20px 20px; }
    .nn-article .conclusion-block { padding: 32px 24px; }
    .nn-article table { font-size: .8rem; }
    .nn-article thead th, .nn-article tbody td { padding: 10px 12px; }
  }
  @media print {
    .nn-article .reading-progress, .nn-article .site-header { display: none; }
    .nn-article { font-size: 12pt; color: #000; }
    .nn-article .hero { background: #1e3a2f; -webkit-print-color-adjust: exact; }
  }