/* ============================================================
   AussieEconomist — Premium Editorial Design System
   ============================================================ */

/* ── Variables ── */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #162032;
  --navy-light:  #1e2f45;
  /* Brand gold — matches the "AUSSIE" wordmark in the logo */
  --gold:        #d4a02c;
  --gold-light:  #e7bd55;
  --gold-dark:   #b07810;
  --gold-pale:   #f6ecd2;
  --cream:       #faf8f3;
  --cream-dark:  #f0ede4;
  --white:       #ffffff;
  --text:        #0d1b2a;
  --text-sec:    #374151;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;
  --red:         #dc2626;
  /* Brand green — matches the "ECONOMIST" banner in the logo */
  --green:       #0e7c27;
  --green-dark:  #0a5f1c;
  --green-light: #1f9a3c;
  --green-pale:  #e4f3e8;

  --shadow-xs:   0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.15);

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h:  72px;
  --max-w:     1200px;
  --max-w-sm:  800px;
  --max-w-xs:  640px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: var(--max-w-xs); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.fw-600 { font-weight: 600; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--navy); background: var(--cream-dark); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag-gold    { background: var(--gold-pale); color: #7a5c0f; }
.tag-navy    { background: var(--navy);      color: var(--white); }
.tag-green   { background: #dcfce7;          color: #166534; }
.tag-red     { background: #fee2e2;          color: #991b1b; }
.tag-muted   { background: var(--cream-dark); color: var(--text-muted); }
.tag-premium { background: var(--gold); color: var(--navy); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--red); margin-top: 4px; }

/* ── Skip link ── */
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: var(--radius); font-weight: 700; z-index: 999; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 900;
  letter-spacing: -.02em;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Brand identity: real logo image + gold→green accent strips ── */
.site-logo-img { height: 42px; width: auto; display: block; }
.site-footer .site-logo-img { height: 50px; }
.site-header::before,
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--gold-dark) 0%, var(--gold) 22%, var(--gold-light) 42%,
    var(--green-light) 62%, var(--green) 82%, var(--green-dark) 100%);
}
.site-footer { position: relative; }
@media (max-width: 768px) {
  .site-logo-img { height: 36px; }
  .site-footer .site-logo-img { height: 44px; }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: all .15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--navy); background: var(--cream-dark); }
.site-nav a.active { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  font-size: .85rem; font-weight: 500;
  color: var(--text-sec);
  transition: all .15s;
  text-decoration: none;
}
.header-user-btn:hover { border-color: var(--navy); color: var(--navy); }
.reading-progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  transition: width .1s linear;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page offset ── */
.page-top { padding-top: var(--header-h); }

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--navy);
  padding: 64px 0 56px;
  margin-top: var(--header-h);
}
.page-header h1 { color: var(--white); }
.page-header .lead { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: 12px; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  padding: 120px 0 96px;
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,.12) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero .lead {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; color: var(--gold);
}
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ── Section headings ── */
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* ── Article Cards ── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--cream-dark);
}
.article-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.article-card-img-placeholder .logo-mark { width: 48px; height: 48px; font-size: 1.1rem; opacity: .5; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; color: var(--text-muted); margin-bottom: 12px;
}
.article-card-meta .dot { width: 3px; height: 3px; background: var(--border-dark); border-radius: 50%; }
.article-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--gold); }
.article-card p { color: var(--text-sec); font-size: .9rem; line-height: 1.6; flex: 1; }
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.article-card-author { font-size: .8rem; font-weight: 600; color: var(--text-muted); }

/* Featured article (large card) */
.article-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.article-featured-img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.article-featured-body { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.article-featured-body .article-card-meta { margin-bottom: 16px; }
.article-featured-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.article-featured-body h2 a { color: var(--navy); }
.article-featured-body h2 a:hover { color: var(--gold); }
.article-featured-body p { color: var(--text-sec); line-height: 1.75; margin-bottom: 24px; }

/* ── Article Content (Single article) ── */
.article-hero {
  background: var(--navy);
  padding: 80px 0 64px;
  margin-top: var(--header-h);
}
.article-hero h1 { color: var(--white); max-width: 760px; margin-bottom: 20px; }
.article-hero .article-card-meta { color: rgba(255,255,255,.6); }
.article-hero .article-card-meta .dot { background: rgba(255,255,255,.3); }
.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 64px 0;
  align-items: start;
}
.article-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
}
.article-body p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.4rem; color: var(--text-sec); }
.article-body h2 { margin: 2rem 0 1rem; font-size: 1.6rem; color: var(--navy); }
.article-body h3 { margin: 1.5rem 0 .75rem; font-size: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 1.4rem; }
.article-body li { margin-bottom: 8px; color: var(--text-sec); line-height: 1.7; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
}
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--navy); }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body code { background: #f1f5f9; border-radius: 3px; padding: 2px 6px; font-size: .88em; font-family: 'Courier New', monospace; color: #be185d; }
.article-body pre { background: #1e293b; color: #e2e8f0; padding: 20px 24px; border-radius: 8px; overflow-x: auto; margin-bottom: 1.4rem; }
.article-body pre code { background: none; padding: 0; color: #e2e8f0; font-size: .9rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1.5rem auto; }
.article-body hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* Paywall */
.paywall {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(to bottom, transparent, var(--cream) 30%);
  margin-top: -80px;
  position: relative;
}
.paywall-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.paywall-icon { font-size: 2.5rem; margin-bottom: 20px; }
.paywall h3 { margin-bottom: 12px; }
.paywall p { color: var(--text-muted); margin-bottom: 28px; }
.paywall-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Store / Product cards ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-cover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 40px 32px 32px;
  position: relative;
}
.product-cover-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.product-cover h3 { color: var(--white); font-size: 1.15rem; line-height: 1.35; }
.product-cover .tag-gold { position: absolute; top: 16px; right: 16px; }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body p { color: var(--text-sec); font-size: .9rem; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.product-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.6rem; font-weight: 700; font-family: var(--font-heading); color: var(--navy); }
.product-price-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Membership Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--gold);
  background: var(--navy);
}
.pricing-card.featured * { --text: #fff; --text-sec: rgba(255,255,255,.75); }
.pricing-card.featured h3 { color: var(--white); }
.pricing-card.featured .pricing-price { color: var(--gold); }
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.1); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: 4px 16px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.pricing-price { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.pricing-price sup { font-size: 1.5rem; vertical-align: super; }
.pricing-price-period { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 28px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  font-size: .9rem; color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature-icon { color: var(--gold); font-size: .8rem; margin-top: 2px; flex-shrink: 0; }

/* ── Newsletter ── */
.newsletter-section {
  background: var(--navy);
  padding: 80px 0;
}
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.newsletter-inner h2 { color: var(--white); }
.newsletter-inner p { color: rgba(255,255,255,.65); margin-top: 12px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form .form-control {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
  flex: 1;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .form-control:focus { border-color: var(--gold); background: rgba(255,255,255,.15); }

/* ── Account page ── */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; }
.account-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 8px; height: fit-content;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.account-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--text-sec);
  transition: all .15s;
}
.account-nav-link:hover,
.account-nav-link.active { background: var(--cream-dark); color: var(--navy); }
.account-nav-link.active { font-weight: 600; }
.account-nav-link i { width: 18px; color: var(--text-muted); font-size: .85rem; }
.account-nav-link.active i { color: var(--gold); }
.account-main { display: flex; flex-direction: column; gap: 24px; }
.account-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px;
}
.account-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.account-card-header h3 { font-size: 1.1rem; }
.subscription-active {
  display: flex; align-items: center; gap: 12px;
  padding: 20px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: var(--radius);
}
.subscription-icon { width: 44px; height: 44px; background: #dcfce7; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #16a34a; font-size: 1.1rem; }
.download-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); }
.download-item:last-child { border-bottom: none; }
.download-item-title { font-weight: 600; font-size: .9rem; }
.download-item-meta { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Auth (login/register) ── */
.auth-page {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 480px;
}
.auth-panel {
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px;
  position: relative; overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(201,168,76,.15) 0%, transparent 60%);
}
.auth-panel-content { position: relative; z-index: 1; }
.auth-panel h2 { color: var(--white); font-size: 2rem; margin-bottom: 16px; }
.auth-panel p { color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 32px; }
.auth-benefit { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.auth-benefit-icon { width: 32px; height: 32px; background: rgba(201,168,76,.2); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: .8rem; flex-shrink: 0; }
.auth-benefit-text { font-size: .9rem; color: rgba(255,255,255,.75); }
.auth-form-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 48px;
  background: var(--cream);
}
.auth-logo { margin-bottom: 40px; }
.auth-tabs { display: flex; gap: 4px; background: var(--cream-dark); padding: 4px; border-radius: var(--radius); margin-bottom: 32px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; font-size: .88rem; font-weight: 600; border-radius: 6px; color: var(--text-muted); cursor: pointer; transition: all .15s; }
.auth-tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-xs); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-dark); }
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { width: 40px; height: 40px; background: var(--gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-detail-title { font-weight: 600; font-size: .9rem; }
.contact-detail-text { font-size: .88rem; color: var(--text-muted); }
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }

/* ── About ── */
.about-hero { background: var(--navy); padding: 96px 0; margin-top: var(--header-h); text-align: center; }
.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,.7); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.value-icon { width: 48px; height: 48px; background: var(--gold-pale); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.value-card h4 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .9rem; }

/* ── Legal ── */
.legal-body { background: var(--white); border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border); max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body p { color: var(--text-sec); line-height: 1.8; margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 24px; color: var(--text-sec); }
.legal-body ul li { margin-bottom: 6px; }
.legal-toc { background: var(--cream-dark); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.legal-toc h4 { margin-bottom: 12px; }
.legal-toc a { display: block; padding: 4px 0; font-size: .9rem; color: var(--text-sec); }
.legal-toc a:hover { color: var(--gold); }

/* ── Search ── */
.search-bar { display: flex; gap: 12px; max-width: 640px; }
.search-bar .form-control { font-size: 1rem; padding: 14px 18px; }
.search-results { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.search-result { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; }
.search-result-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.search-result-body h3 a { color: var(--navy); }
.search-result-body h3 a:hover { color: var(--gold); }
.search-result-body p { color: var(--text-sec); font-size: .9rem; line-height: 1.6; }

/* ── Alert / Flash ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: .9rem; display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 280px repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-mark { background: var(--gold); color: var(--navy); }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.7; margin-top: 16px; }
.footer-col h5 { color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: .88rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px; display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .85rem;
  transition: all .15s;
}
.social-link:hover { background: var(--gold); color: var(--navy); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state-icon { font-size: 3rem; color: var(--border-dark); margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: 0 auto 24px; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.divider-gold { border-color: var(--gold); opacity: .3; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--border-dark); }

/* ── Category filter tabs ── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-tab {
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--border-dark);
  font-size: .82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: all .15s; background: var(--white);
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 48px; justify-content: center; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-dark); border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .15s; background: var(--white);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Loading spinner ── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(201,168,76,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast notifications ── */
.toast-container { position: fixed; top: calc(var(--header-h) + 16px); right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px;
  font-size: .9rem; animation: slideIn .25s ease;
}
.toast.success { border-color: #22c55e; }
.toast.error   { border-color: var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Success / Checkout success ── */
.success-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.success-card { background: var(--white); border-radius: var(--radius-xl); padding: 64px; text-align: center; max-width: 520px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.success-icon { width: 72px; height: 72px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 1.8rem; color: #16a34a; }

/* ── Admin Panel ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f1f5f9; }
.admin-sidebar {
  background: var(--navy);
  padding: 0;
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
  overflow-y: auto; z-index: 50;
  display: flex; flex-direction: column;
}
.admin-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-section { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 16px 8px 8px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: all .15s;
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-nav-link i { width: 18px; font-size: .9rem; }
.admin-nav-link:hover,
.admin-nav-link.active { background: rgba(255,255,255,.08); color: var(--white); }
.admin-nav-link.active { background: rgba(201,168,76,.15); color: var(--gold); }
.admin-nav-sub { padding-left: 28px; font-size: .82rem; opacity: .85; margin-bottom: 1px; }
.admin-nav-sub:hover { opacity: 1; }
.admin-sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main { margin-left: 240px; padding: 32px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-topbar h1 { font-size: 1.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); }
.stat-card-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-card-sub { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.admin-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 24px; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 1rem; }
.admin-card-body { padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; text-align: left; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 14px; font-size: .88rem; border-bottom: 1px solid var(--border); color: var(--text-sec); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.admin-table a { color: var(--navy); font-weight: 600; }
.admin-table a:hover { color: var(--gold); }
.admin-form { max-width: 760px; }
.admin-form .form-group { margin-bottom: 24px; }
.admin-actions { display: flex; gap: 10px; }

/* ── Admin login ── */
.admin-login-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card { background: var(--cream); border-radius: var(--radius-xl); padding: 48px; width: 100%; max-width: 400px; }
.admin-login-card .site-logo { justify-content: center; margin-bottom: 32px; }

/* ── Utilities ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.relative { position: relative; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-body-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; box-shadow: var(--shadow); z-index: 99; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; width: 100%; border-radius: var(--radius); }
  .hamburger { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions .btn:last-child { display: flex; }

  .hero { padding: 80px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .article-featured { grid-template-columns: 1fr; }
  .article-featured-img { min-height: 240px; }
  .article-featured-body { padding: 28px 24px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-form { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .article-body { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .pricing-card { padding: 28px 24px; }
  .article-body { padding: 20px 16px; }
  .success-card { padding: 40px 24px; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Admin UI — Enhanced styles (v2)
   ═══════════════════════════════════════════════════════════ */

/* ── Admin layout base fix ── */
/* Override the grid layout — fixed sidebar + margin-left is reliable */
.admin-layout {
  display: block;
  min-height: 100vh;
  background: #f0f4f8;
}
.admin-main {
  margin-left: 240px;
  padding: 0;
  min-height: 100vh;
}
.admin-content {
  padding: 32px;
}

/* ── Admin topbar ── */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.admin-topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 0;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-size: .85rem;
}
.admin-topbar-avatar {
  width: 30px; height: 30px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}
.admin-topbar-name {
  font-weight: 600;
  color: var(--text-sec);
  white-space: nowrap;
}
.admin-topbar-role {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-topbar-link {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all .15s;
  text-decoration: none;
}
.admin-topbar-link:hover { background: var(--cream-dark); color: var(--navy); }

/* ── Mobile sidebar toggle ── */
.admin-menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--cream-dark);
  border: 1px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.admin-menu-toggle i { font-size: 1rem; }
.admin-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 49;
}
.admin-sidebar-overlay.open { display: block; }

/* ── Admin sidebar improvements ── */
.admin-sidebar {
  width: 240px;
  transition: transform .25s ease;
}

/* ── Stat cards ── */
.stat-grid { gap: 20px; }
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}
.stat-card-icon {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--cream-dark);
}
.stat-card-value { font-size: 1.8rem; }
.stat-card-sub a { color: var(--gold); font-weight: 600; font-size: .8rem; }
.stat-card-sub a:hover { color: var(--navy); }

/* ── Admin cards ── */
.admin-card {
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.admin-card-header {
  padding: 16px 20px;
}
.admin-card-header h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
.admin-card-body { padding: 20px; }

/* ── Tables: overflow-safe wrapper ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.admin-table { min-width: 500px; }
.admin-table th { padding: 10px 16px; background: var(--cream); font-size: .75rem; }
.admin-table td { padding: 12px 16px; font-size: .86rem; }
.admin-table td a { color: var(--navy); font-weight: 600; }
.admin-table td a:hover { color: var(--gold); text-decoration: underline; }

/* ── Admin forms ── */
.admin-form { max-width: none; width: 100%; }
.admin-form-narrow { max-width: 720px; }
.admin-form .form-group { margin-bottom: 20px; }

/* ── Admin actions ── */
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }

/* ── Dashboard grid responsive ── */
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ── Alert placement in admin ── */
.admin-content > .alert { margin-bottom: 24px; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; opacity: .35; display: block; }
.empty-state h3 { margin-bottom: 16px; font-size: 1.1rem; color: var(--text-muted); }

/* ── Quill editor integration ── */
.quill-wrap { border-radius: var(--radius); overflow: hidden; }
.ql-toolbar.ql-snow {
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream);
  font-family: var(--font-body);
}
.ql-container.ql-snow {
  border: 1.5px solid var(--border-dark);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 420px;
}
.ql-editor {
  min-height: 420px;
  padding: 16px 20px;
  line-height: 1.75;
  color: var(--text);
}
.ql-editor p { margin-bottom: .75rem; }
.ql-editor h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 1.5rem 0 .75rem; color: var(--navy); }
.ql-editor h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 1.25rem 0 .5rem; color: var(--navy); }
.ql-editor blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.ql-editor img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; }
.ql-editor pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: var(--radius); font-size: .85rem; }
.ql-snow .ql-picker.ql-header { width: 120px; }

/* ── Image upload drop area ── */
.image-drop {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.image-drop:hover, .image-drop.drag-over {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}
.image-drop i { font-size: 1.8rem; margin-bottom: 8px; display: block; }

/* ── Admin nav link in site header ── */
.nav-admin-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--navy);
  color: var(--gold) !important;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s;
}
.nav-admin-pill:hover { background: var(--navy-light) !important; color: var(--gold) !important; }

/* ── Responsive admin ── */
@media (max-width: 1024px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    display: flex;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 0; }
  .admin-menu-toggle { display: flex; }
  .admin-topbar { padding: 0 16px; height: 56px; }
  .admin-content { padding: 16px; }
  .admin-topbar-role { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-actions { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════
   Premium Editorial — Institutional Design Components
   ═══════════════════════════════════════════════════════════ */

/* ── Category colour chips ── */
.cat-monetary-policy { background: #dbeafe; color: #1e40af; }
.cat-housing         { background: #dcfce7; color: #166534; }
.cat-cost-of-living  { background: #fef9c3; color: #854d0e; }
.cat-markets         { background: #ede9fe; color: #5b21b6; }
.cat-employment      { background: #ffedd5; color: #9a3412; }
.cat-fiscal-policy   { background: #fee2e2; color: #991b1b; }
.cat-global-economy  { background: #cffafe; color: #164e63; }
.cat-explainer       { background: #f3f4f6; color: #374151; }

/* ── Editorial Hero (homepage immersive) ── */
.editorial-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.editorial-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.42) saturate(.7);
}
.editorial-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.96) 0%, rgba(13,27,42,.45) 55%, transparent 100%);
}
.editorial-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56px;
}
.editorial-hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: flex-end;
}
.editorial-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.editorial-hero-main h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
}
.editorial-hero-excerpt {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.editorial-hero-meta .pipe { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.editorial-hero-side {
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 32px;
}
.editorial-hero-side-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 12px;
}
.hero-side-article {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: all .15s;
}
.hero-side-article:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-article:hover .hero-side-title { color: var(--gold); }
.hero-side-num {
  font-size: .75rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  min-width: 22px;
  padding-top: 2px;
  flex-shrink: 0;
}
.hero-side-title {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
  transition: color .15s;
}
.hero-side-cat {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
}

/* ── Macro Indicators Strip ── */
.macro-strip {
  background: var(--white);
  border-bottom: 2px solid var(--border);
}
.macro-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.macro-item {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.macro-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.macro-value {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 3px;
}
.macro-value sup { font-size: .75rem; vertical-align: super; }
.macro-change { font-size: .75rem; font-weight: 600; }
.macro-up   { color: #16a34a; }
.macro-down { color: #dc2626; }
.macro-flat { color: var(--text-muted); }
.macro-source { font-size: .65rem; color: var(--text-muted); margin-top: 2px; }

/* ── Section Rule Divider ── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.section-rule-line { flex: 1; height: 1px; background: var(--border-dark); }
.section-rule-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-rule-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.section-rule-link:hover { color: var(--gold); }

/* ── Article card image hover ── */
.article-card-img-wrap {
  overflow: hidden;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.article-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.article-card:hover .article-card-img-wrap img { transform: scale(1.04); }
.article-card-img-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/* ── Research Cards (dark) ── */
.research-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.research-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0,0,0,.35); }
.research-card-header {
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.research-card-header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: rgba(201,168,76,.07);
  border-radius: 50%;
  pointer-events: none;
}
.research-card-icon {
  width: 46px; height: 46px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}
.research-card-type {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
  margin-bottom: 8px;
}
.research-card-header h3 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.42;
}
.research-card-body {
  padding: 20px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.research-card-body p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.research-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.research-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.research-price-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.3);
  margin-top: 2px;
}

/* ── Premium Gate Banner ── */
.premium-gate-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f48 100%);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.premium-gate-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(201,168,76,.06);
  border-radius: 50%;
  pointer-events: none;
}
.premium-gate-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.premium-gate-banner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
}
.premium-gate-banner p {
  color: rgba(255,255,255,.6);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.premium-features-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.premium-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .74rem;
  color: rgba(255,255,255,.65);
}
.premium-feature-chip i { color: var(--gold); font-size: .62rem; }
.premium-gate-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item i { color: var(--gold); font-size: .85rem; }

/* ── Pull Quote ── */
.pull-quote {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 32px;
  margin: 2.5rem 0;
}
.pull-quote-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pull-quote-source {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pull-quote-source::before { content: '— '; }

/* ── Author Block ── */
.author-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  margin-top: 32px;
  border: 1px solid var(--border);
}
.author-avatar {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}
.author-block-name { font-weight: 700; font-size: .9rem; margin-bottom: 3px; }
.author-block-bio { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── Premium member page enhancements ── */
.membership-hero {
  background: var(--navy);
  padding: 96px 0 80px;
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.membership-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(201,168,76,.12) 0%, transparent 60%);
}
.membership-hero-inner { position: relative; z-index: 1; }
.membership-hero h1 { color: var(--white); margin-bottom: 16px; }
.membership-hero p { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 580px; margin: 0 auto 32px; }
.membership-includes {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.membership-include-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.membership-include-item i { color: var(--gold); font-size: .75rem; }

/* ── Comparison table ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 40px 0; }
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td {
  padding: 14px 20px;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: #16a34a; font-size: 1rem; }
.compare-table .cross { color: var(--border-dark); font-size: 1rem; }
.compare-table .plan-header { background: var(--navy); color: var(--white); font-family: var(--font-heading); font-size: 1.1rem; text-align: center; padding: 20px; }
.compare-table .plan-header.featured { background: var(--gold); color: var(--navy); }

/* ── Editorial grid (featured + secondary layout) ── */
.editorial-grid-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2px;
}
.editorial-main {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.editorial-main-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.editorial-main-body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.editorial-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
}
.editorial-secondary {
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.editorial-secondary-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.editorial-secondary-body {
  padding: 18px 20px;
  flex: 1;
}

/* ── Responsive additions for premium components ── */
@media (max-width: 1024px) {
  .editorial-hero-inner { grid-template-columns: 1fr; }
  .editorial-hero-side { display: none; }
  .macro-strip-inner { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .editorial-grid-wrap { grid-template-columns: 1fr; }
  .editorial-secondary-stack { flex-direction: row; }
  .premium-gate-banner { grid-template-columns: 1fr; padding: 40px 36px; }
  .membership-includes { gap: 20px; }
}

@media (max-width: 768px) {
  .editorial-hero { min-height: 500px; }
  .macro-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { gap: 20px; }
  .editorial-secondary-stack { flex-direction: column; }
}

@media (max-width: 480px) {
  .editorial-hero { min-height: 420px; }
  .macro-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .premium-gate-banner { padding: 28px 20px; }
  .macro-value { font-size: 1.25rem; }
}
