/*
Theme Name: AllaahuAkbar (Kadence Child)
Theme URI: https://allahu-akbar.net
Description: Gold-on-black newspaper theme for AllaahuAkbar.net. Child theme of Kadence.
Author: Kausar
Author URI: https://allahu-akbar.net
Template: kadence
Version: 1.2.0
Text Domain: kadence-allaahuakbar
*/

/* =============================================================================
   ALLAAHUAKBAR CHILD THEME — Gold on Black Newspaper Aesthetic
   Ported from the Vercel Next.js project. Single source of truth for site styling.
   Sections:
     1. Design tokens (CSS variables)
     2. Body / typography baseline
     3. Header / brand strip
     4. Navbar (green strip)
     5. Article lists & cards
     6. Single article (post body)
     7. Book / Media cards (CPT archives)
     8. Footer
     9. Responsive breakpoints
   ============================================================================= */


/* ─── 1. Design tokens ───────────────────────────────────────────────────────
   Kadence reads its own variables (--global-palette*). We override the most
   visible ones. Anything site-specific lives under --aa-* to avoid collision.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* Black scale */
  --aa-black:       #0A0A0A;
  --aa-black-2:     #111111;
  --aa-black-3:     #181818;
  --aa-black-4:     #222222;
  --aa-black-5:     #2C2C2C;

  /* White scale */
  --aa-white:       #F5F0E8;
  --aa-white-2:     #E8E1D4;
  --aa-white-3:     #D4CCC0;

  /* Gold */
  --aa-gold:        #C8A84B;
  --aa-gold-2:      #E2C97E;
  --aa-gold-dim:    rgba(200, 168, 75, 0.1);
  --aa-gold-border: rgba(200, 168, 75, 0.3);

  /* Green (navbar) */
  --aa-green:       #2A6B3C;
  --aa-green-light: #3A8A50;

  /* Red (refutation / warning) */
  --aa-red:         #8B1A1A;
  --aa-red-light:   #B52020;
  --aa-red-dim:     rgba(139, 26, 26, 0.2);

  /* Borders */
  --aa-border:      rgba(245, 240, 232, 0.08);
  --aa-border-s:    rgba(245, 240, 232, 0.15);

  /* Fonts */
  --aa-fd:  'Gloock', Georgia, serif;                          /* display / headings */
  --aa-fb:  'Crimson Pro', Georgia, serif;                     /* body */
  --aa-fu:  'Courier Prime', 'Courier New', monospace;         /* UI labels, nav */
  --aa-fa:  'Amiri', serif;                                    /* Arabic */

  /* Override Kadence's default link colour so links pick up gold automatically */
  --global-palette1: var(--aa-gold);
  --global-palette2: var(--aa-gold-2);
  --global-palette9: var(--aa-white);
}


/* ─── 2. Body / typography baseline ──────────────────────────────────────── */
body,
body.wp-site-blocks {
  background: var(--aa-black);
  color: var(--aa-white);
  font-family: var(--aa-fb);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--aa-gold);
  transition: color 0.15s;
}

a:hover {
  color: var(--aa-gold-2);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--aa-fd);
  color: var(--aa-white);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

::selection {
  background: var(--aa-gold);
  color: var(--aa-black);
}


/* ─── 3. Header / brand strip ────────────────────────────────────────────────
   Kadence's header builder generates `.site-header` with `.site-header-row`
   inner sections. We theme it without rebuilding it.
   ─────────────────────────────────────────────────────────────────────────── */
.site-header,
#masthead,
.site-header-wrap {
  background: var(--aa-black) !important;
  border-bottom: 3px solid var(--aa-gold);
}

.site-branding .site-title,
.site-branding a {
  font-family: var(--aa-fd) !important;
  color: var(--aa-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.site-description {
  font-family: var(--aa-fu);
  font-size: 10px;
  color: var(--aa-white-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
}

/* Arabic brand element — added via Kadence custom HTML element */
.aa-brand-arabic {
  font-family: var(--aa-fa);
  font-size: 2rem;
  color: var(--aa-gold);
  line-height: 1;
  direction: rtl;
}


/* ─── 4. Navbar (green strip) ────────────────────────────────────────────────
   Kadence's primary nav lives in a Header Row. We restyle it green-on-gold.
   ─────────────────────────────────────────────────────────────────────────── */
.header-navigation,
.main-navigation,
.kadence-nav {
  background: var(--aa-green);
  border-bottom: 2px solid var(--aa-gold);
}

.header-navigation .menu > li > a,
.main-navigation ul li a {
  font-family: var(--aa-fu) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aa-white) !important;
  padding: 12px 16px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, color 0.15s;
}

.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a {
  background: rgba(0, 0, 0, 0.25);
  color: var(--aa-gold-2) !important;
}

/* Submenu (mega menu replacement) */
.header-navigation .sub-menu,
.main-navigation ul.sub-menu {
  background: var(--aa-black-2) !important;
  border: 1px solid var(--aa-gold-border) !important;
  border-top: 3px solid var(--aa-gold) !important;
}

.header-navigation .sub-menu li a {
  font-family: var(--aa-fu) !important;
  font-size: 12px !important;
  color: var(--aa-white-2) !important;
  padding: 8px 16px !important;
  text-transform: none;
  letter-spacing: normal;
}

.header-navigation .sub-menu li a:hover {
  background: var(--aa-gold-dim) !important;
  color: var(--aa-gold-2) !important;
}


/* ─── 5. Article lists (homepage, archive, category) ─────────────────────── */
.content-area,
.site-main,
.content-container {
  background: var(--aa-black);
}

/* Each post in a loop */
article.post,
.loop-entry,
.entry,
.search article {
  background: var(--aa-black);
  border-bottom: 1px solid var(--aa-border);
  padding: 20px 24px;
  transition: background 0.12s;
}

article.post:hover,
.loop-entry:hover {
  background: var(--aa-black-2);
}

.entry-title,
.post-title,
h2.entry-title a,
h1.entry-title a {
  font-family: var(--aa-fd);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aa-white);
  line-height: 1.25;
  margin-bottom: 8px;
}

.entry-title a:hover,
.post-title a:hover {
  color: var(--aa-gold-2);
}

.entry-meta,
.post-meta {
  font-family: var(--aa-fu);
  font-size: 11px;
  color: var(--aa-white-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.entry-summary,
.entry-excerpt {
  font-size: 14px;
  color: var(--aa-white-2);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Category pill (gold rectangle) */
.cat-links a,
.entry-categories a,
.post-categories a {
  display: inline-block;
  background: var(--aa-gold);
  color: var(--aa-black) !important;
  font-family: var(--aa-fu) !important;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 0;
}

.cat-links a:hover {
  background: var(--aa-gold-2);
  color: var(--aa-black) !important;
}


/* ─── 6. Single article (post body) ──────────────────────────────────────── */
.single .entry-header,
.single-post .entry-header {
  background: var(--aa-black-2);
  border-bottom: 2px solid var(--aa-gold);
  padding: 32px 24px;
}

.single .entry-title,
.single-post h1.entry-title {
  font-family: var(--aa-fd);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--aa-white);
  margin-bottom: 12px;
}

.single .entry-content,
.single-post .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  font-family: var(--aa-fb);
  font-size: 17px;
  line-height: 1.75;
  color: var(--aa-white);
}

.single .entry-content p,
.single-post .entry-content p {
  margin-bottom: 1.2em;
}

.single .entry-content h2,
.single-post .entry-content h2 {
  font-family: var(--aa-fd);
  font-size: 1.75rem;
  margin: 2em 0 0.6em;
  color: var(--aa-white);
}

.single .entry-content h3,
.single-post .entry-content h3 {
  font-family: var(--aa-fd);
  font-size: 1.35rem;
  margin: 1.5em 0 0.5em;
  color: var(--aa-gold-2);
}

.single .entry-content blockquote,
.single-post .entry-content blockquote {
  border-left: 3px solid var(--aa-gold);
  background: var(--aa-black-2);
  padding: 16px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--aa-white-2);
}

/* Hadith / ayah callout blocks (custom classes from Vercel rich-text editor) */
.entry-content .hadith-block,
.entry-content [data-type="hadith-block"] {
  background: var(--aa-black-2);
  border: 1px solid var(--aa-gold-border);
  border-left: 4px solid var(--aa-gold);
  padding: 20px 24px;
  margin: 1.8em 0;
  font-family: var(--aa-fb);
}

.entry-content .ayah-block,
.entry-content [data-type="ayah-block"] {
  background: var(--aa-black-2);
  border: 1px solid var(--aa-gold-border);
  border-left: 4px solid var(--aa-green);
  padding: 20px 24px;
  margin: 1.8em 0;
  font-family: var(--aa-fb);
}

.entry-content .arabic,
.entry-content [dir="rtl"] {
  font-family: var(--aa-fa);
  font-size: 1.4em;
  line-height: 1.8;
  color: var(--aa-gold-2);
  margin-bottom: 0.6em;
  direction: rtl;
  text-align: right;
}

.entry-content code {
  background: var(--aa-black-3);
  border: 1px solid var(--aa-border-s);
  padding: 1px 6px;
  font-family: var(--aa-fu);
  font-size: 0.9em;
  color: var(--aa-gold-2);
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--aa-gold-border);
  margin: 2em auto;
  width: 60%;
}

.entry-content a {
  color: var(--aa-gold);
  border-bottom: 1px dotted var(--aa-gold-border);
}

.entry-content a:hover {
  color: var(--aa-gold-2);
  border-bottom-color: var(--aa-gold);
}


/* ─── 7. Book / Media cards (CPT archives) ───────────────────────────────── */
.post-type-archive-book .loop-entry,
.post-type-archive-islamic_media .loop-entry,
.tax-content_language .loop-entry {
  background: var(--aa-black-2);
  border: 1px solid var(--aa-border);
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color 0.15s, background 0.15s;
}

.post-type-archive-book .loop-entry:hover,
.post-type-archive-islamic_media .loop-entry:hover {
  border-color: var(--aa-gold-border);
  background: var(--aa-black-3);
}

.book-cover,
.media-thumb {
  border: 1px solid var(--aa-border-s);
}

/* Language pill */
.lang-badge,
.aa-lang-badge {
  font-family: var(--aa-fu);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--aa-black-4);
  border: 1px solid var(--aa-border-s);
  color: var(--aa-white-3);
  padding: 2px 6px;
}


/* ─── 8. Footer ──────────────────────────────────────────────────────────── */
.site-footer,
#colophon {
  background: var(--aa-black-2) !important;
  border-top: 3px solid var(--aa-gold);
  color: var(--aa-white-2);
  padding: 32px 24px 16px;
}

.site-footer a {
  color: var(--aa-white-2);
}

.site-footer a:hover {
  color: var(--aa-gold);
}

.site-footer .widget-title,
.site-footer h3 {
  font-family: var(--aa-fu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-gold);
  margin-bottom: 12px;
}


/* ─── 9. Responsive breakpoints ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .single .entry-title,
  .single-post h1.entry-title {
    font-size: 1.75rem;
  }

  .single .entry-content,
  .single-post .entry-content {
    padding: 20px 16px;
    font-size: 16px;
  }

  article.post,
  .loop-entry {
    padding: 16px;
  }

  .entry-title {
    font-size: 1.25rem;
  }
}


/* ─── Misc utility ──────────────────────────────────────────────────────── */
.aa-divider {
  border: 0;
  border-top: 1px solid var(--aa-gold-border);
  margin: 1.5em auto;
  width: 80%;
}

.aa-eyebrow {
  font-family: var(--aa-fu);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aa-gold);
}

/* =============================================================================
   10. FRONT PAGE — magazine homepage layout
   Appended in this session. Adds the 3-column grid, stance banner, all
   homepage box/card components. Tokens from section 1 are reused throughout.
   ============================================================================= */


/* ─── 10.1 Stance banner (red strip with Salafi affirmations) ────────────── */
.aa-stance-banner {
  background: var(--aa-red);
  border-top: 1px solid var(--aa-gold-border);
  border-bottom: 1px solid var(--aa-gold-border);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.aa-stance-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 0;
  /* Animation distance is 50% because the phrase set is duplicated in PHP;
     translating by half the track width loops seamlessly. */
  animation: aa-stance-scroll 60s linear infinite;
  will-change: transform;
}

.aa-stance-banner:hover .aa-stance-track {
  animation-play-state: paused;
}

.aa-stance-item {
  font-family: var(--aa-fb);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--aa-white);
  letter-spacing: 0.01em;
  padding: 0 24px;
  border-right: 1px solid rgba(245, 240, 232, 0.25);
  flex-shrink: 0;
}

@keyframes aa-stance-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
  .aa-stance-track {
    animation: none;
    transform: translateX(0);
  }
}


/* ─── 10.2 Front-page grid container ─────────────────────────────────────── */
.aa-front {
  background: var(--aa-black);
  padding: 0;
}

.aa-front-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  align-items: start;
}


/* ─── 10.3 Generic "box" component (used by left and right columns) ──────── */
.aa-box {
  background: var(--aa-black);
  border: 1px solid var(--aa-gold-border);
  margin-bottom: 24px;
}

.aa-box-header {
  font-family: var(--aa-fu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid var(--aa-gold-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.aa-box-header-gold {
  color: var(--aa-black);
  background: var(--aa-gold);
}

.aa-box-header-warn {
  color: var(--aa-white);
  background: var(--aa-red);
  border-bottom-color: var(--aa-gold-border);
}

.aa-warn-icon {
  font-size: 12px;
}


/* ─── 10.4 Left column — Warn / Deviant Cults / Stats ────────────────────── */
.aa-warn-list,
.aa-deviant-list,
.aa-stats-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.aa-warn-list li,
.aa-deviant-list li {
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid var(--aa-border);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.aa-warn-list li:last-child,
.aa-deviant-list li:last-child {
  border-bottom: 0;
}

.aa-warn-bullet {
  color: var(--aa-red-light);
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.5;
}

.aa-warn-list a,
.aa-deviant-list a {
  color: var(--aa-white-2);
  border-bottom: none;
  font-family: var(--aa-fb);
  font-size: 13px;
  text-decoration: none;
}

.aa-warn-list a:hover,
.aa-deviant-list a:hover {
  color: var(--aa-gold-2);
}

.aa-deviant-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
}

.aa-x {
  color: var(--aa-red-light);
  font-size: 11px;
  flex-shrink: 0;
}

/* Site Stats — two-column k/v list */
.aa-stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--aa-border);
}

.aa-stats-list li:last-child {
  border-bottom: 0;
}

.aa-stat-label {
  font-family: var(--aa-fb);
  color: var(--aa-white-2);
}

.aa-stat-val {
  font-family: var(--aa-fu);
  font-size: 11px;
  font-weight: 700;
  color: var(--aa-gold);
  letter-spacing: 0.04em;
}


/* ─── 10.5 Centre column — section headers ───────────────────────────────── */
.aa-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--aa-gold);
  padding-bottom: 6px;
  margin-bottom: 16px;
  margin-top: 24px;
}

.aa-section-head:first-child {
  margin-top: 0;
}

.aa-section-label {
  font-family: var(--aa-fu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-gold);
}

.aa-section-all {
  font-family: var(--aa-fu);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-gold);
  text-decoration: none;
  border-bottom: none;
}

.aa-section-all:hover {
  color: var(--aa-gold-2);
}


/* ─── 10.6 Editor's Pick (centre, top) ───────────────────────────────────── */
.aa-feature {
  margin-bottom: 32px;
}

.aa-feature-card {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--aa-gold);
}

.aa-feature-title {
  font-family: var(--aa-fd);
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--aa-white);
}

.aa-feature-title a {
  color: inherit;
  border-bottom: none;
  text-decoration: none;
}

.aa-feature-title a:hover {
  color: var(--aa-gold-2);
}

.aa-feature-excerpt {
  font-family: var(--aa-fb);
  font-size: 16px;
  line-height: 1.6;
  color: var(--aa-white-2);
  margin: 0 0 12px;
}

.aa-feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--aa-fu);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--aa-white-3);
  text-transform: uppercase;
}

.aa-feature-reads {
  margin-left: auto;
  color: var(--aa-gold);
}


/* ─── 10.7 Article cards (numbered list) ─────────────────────────────────── */
.aa-list {
  margin-bottom: 32px;
}

.aa-article-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--aa-border);
}

.aa-article-card:last-child {
  border-bottom: 0;
}

.aa-article-num {
  font-family: var(--aa-fd);
  font-size: 2rem;
  line-height: 1;
  color: var(--aa-gold);
  flex-shrink: 0;
  width: 32px;
  text-align: right;
  padding-top: 2px;
}

.aa-article-body {
  flex: 1;
  min-width: 0; /* prevents overflow inside flex child */
}

.aa-article-title {
  font-family: var(--aa-fd);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--aa-white);
}

.aa-article-title a {
  color: inherit;
  border-bottom: none;
  text-decoration: none;
}

.aa-article-title a:hover {
  color: var(--aa-gold-2);
}

.aa-article-excerpt {
  font-family: var(--aa-fb);
  font-size: 13px;
  line-height: 1.5;
  color: var(--aa-white-2);
  margin: 0 0 8px;
}

.aa-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--aa-fu);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--aa-white-3);
  text-transform: uppercase;
}

.aa-byline {
  color: var(--aa-white-3);
}

.aa-reads {
  margin-left: auto;
  color: var(--aa-gold);
}

/* Category pill on cards (override default .cat-links from section 5) */
.aa-cat-pill {
  display: inline-block;
  background: var(--aa-red);
  color: var(--aa-white) !important;
  font-family: var(--aa-fu);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 0;
  text-decoration: none;
  border-bottom: none !important;
}

.aa-cat-pill:hover {
  background: var(--aa-red-light);
  color: var(--aa-white) !important;
}


/* ─── 10.8 Right column — Creed + Verse ──────────────────────────────────── */
.aa-creed-list {
  padding: 4px 0;
}

.aa-creed-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--aa-border);
}

.aa-creed-item:last-child {
  border-bottom: 0;
}

.aa-creed-heading {
  font-family: var(--aa-fu);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-gold);
  margin: 0 0 6px;
}

.aa-creed-body {
  font-family: var(--aa-fb);
  font-size: 13px;
  line-height: 1.5;
  color: var(--aa-white-2);
  margin: 0;
}

.aa-verse {
  padding: 16px 14px 18px;
  text-align: center;
}

.aa-verse-arabic {
  font-family: var(--aa-fa);
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--aa-gold-2);
  margin: 0 0 12px;
  direction: rtl;
}

.aa-verse-translation {
  font-family: var(--aa-fb);
  font-size: 13px;
  line-height: 1.55;
  color: var(--aa-white-2);
  margin: 0 0 8px;
}

.aa-verse-ref {
  font-family: var(--aa-fu);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--aa-gold);
  text-transform: uppercase;
  margin: 0;
}


/* ─── 10.9 Responsive: tablet (collapse to 2 cols) ───────────────────────── */
@media (max-width: 1024px) {
  .aa-front-grid {
    grid-template-columns: 1fr 240px;
    gap: 24px;
  }

  /* Move left column below the centre on tablet — it's chrome, not content */
  .aa-col-left {
    grid-column: 1 / -1;
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }

  .aa-col-left .aa-box {
    margin-bottom: 0;
  }

  .aa-col-center { order: 1; }
  .aa-col-right  { order: 2; }
}


/* ─── 10.10 Responsive: mobile (single column stack) ─────────────────────── */
@media (max-width: 720px) {
  .aa-front-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 48px;
  }

  .aa-col-left {
    display: block;
    order: 3;
  }

  .aa-col-left .aa-box {
    margin-bottom: 16px;
  }

  .aa-col-center { order: 1; }
  .aa-col-right  { order: 2; }

  .aa-feature-title { font-size: 1.65rem; }
  .aa-article-title { font-size: 1.05rem; }
  .aa-article-num   { font-size: 1.6rem; width: 26px; }

  .aa-stance-item {
    font-size: 12px;
    padding: 0 16px;
  }
}

/* =============================================================================
   11. HEADER REFINEMENTS — top utility bar, brand stack, search pill
   Appended in this session. Styles the Kadence Header Builder rows after
   they've been configured via Customizer. See HEADER-SETUP.md for the
   click-by-click Customizer steps that produce the markup these styles target.
   ============================================================================= */


/* ─── 11.1 Top utility row (date + admin link) ───────────────────────────── */

/* The Top Row — Kadence wraps it in .site-top-header-wrap when enabled. */
.site-top-header-wrap {
  background: var(--aa-black) !important;
  border-bottom: 1px solid var(--aa-gold-border);
  font-family: var(--aa-fu);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-top-header-wrap .site-header-row-container-inner,
.site-top-header-wrap .site-header-row-tablet-layout-default {
  min-height: 30px;
}

/* Date on the left, admin on the right — both rendered by our shortcodes */
.aa-utility-date {
  color: var(--aa-white-3);
  font-family: var(--aa-fu);
}

.aa-utility-admin {
  color: var(--aa-gold);
  font-family: var(--aa-fu);
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0.1em;
}

.aa-utility-admin:hover {
  color: var(--aa-gold-2);
}


/* ─── 11.2 Brand stack — Arabic above English wordmark ───────────────────── */

/* The HTML item wrapping the brand. Kadence outputs it inside .header-html. */
.aa-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}

.aa-brand-stack .aa-brand-arabic {
  font-family: var(--aa-fa);
  font-size: 1.6rem;
  color: var(--aa-gold);
  line-height: 1;
  direction: rtl;
  margin: 0;
}

.aa-brand-stack .aa-brand-english {
  font-family: var(--aa-fd);
  font-size: 1.5rem;
  color: var(--aa-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin: 4px 0 0;
  text-decoration: none;
}

.aa-brand-stack a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.aa-brand-stack a:hover .aa-brand-english {
  color: var(--aa-gold-2);
}


/* ─── 11.3 Search field in the green nav row ─────────────────────────────── */

/* The Kadence Search Item renders as .header-search-icon-wrap or
   .header-search-input-bar-container depending on Display Style.
   We're targeting the "Input Bar" style for an inline pill search. */
.site-bottom-header-wrap .search-toggle-open-class,
.header-search-bar.kadence-search-bar input[type="search"],
.search-toggle-style-input-bar input[type="search"] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--aa-white) !important;
  font-family: var(--aa-fu);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px !important;
  height: 32px;
  border-radius: 0;
}

.search-toggle-style-input-bar input[type="search"]::placeholder {
  color: rgba(245, 240, 232, 0.5);
  font-style: italic;
}

/* The submit / "Search" button rendered by the input-bar variant */
.search-toggle-style-input-bar button[type="submit"],
.header-search-bar.kadence-search-bar button[type="submit"] {
  background: var(--aa-gold);
  color: var(--aa-black) !important;
  border: 0;
  font-family: var(--aa-fu);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 32px;
  cursor: pointer;
}

.search-toggle-style-input-bar button[type="submit"]:hover,
.header-search-bar.kadence-search-bar button[type="submit"]:hover {
  background: var(--aa-gold-2);
}

/* If you go with the icon-toggle search style instead of input-bar, this
   targets the magnifying glass icon button. */
.search-toggle-open-class .kadence-svg-iconset {
  color: var(--aa-white);
}

.search-toggle-open-class:hover .kadence-svg-iconset {
  color: var(--aa-gold-2);
}


/* ─── 11.4 Mobile header (off-canvas + tightened spacing) ────────────────── */
@media (max-width: 1024px) {
  .aa-brand-stack .aa-brand-arabic { font-size: 1.4rem; }
  .aa-brand-stack .aa-brand-english { font-size: 1.2rem; }

  .site-top-header-wrap {
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  /* Hide the date on phones — admin link only, to save vertical space */
  .site-top-header-wrap .aa-utility-date {
    display: none;
  }

  .aa-brand-stack .aa-brand-arabic { font-size: 1.3rem; }
  .aa-brand-stack .aa-brand-english { font-size: 1.05rem; letter-spacing: 0.04em; }
}



