/* ═══════════════════════════════════════════════════════════════
   THE PULAI JOURNALS — v2
   Southeast Asian Royalty: Deep Maroon · Burnished Gold · Cream
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #FAF7F2;
  --bg-2:        #F3EDE4;
  --bg-3:        #EDE5D8;

  /* Maroon */
  --maroon:      #2D0A0A;
  --maroon-mid:  #4A1010;
  --maroon-lt:   #6B1A1A;

  /* Gold */
  --gold:        #8B6914;
  --gold-bright: #C9A84C;
  --gold-lt:     #F5EDD0;
  --gold-border: #D4B56A;

  /* Text */
  --ink:         #1A0A0A;
  --ink-2:       #3D2020;
  --ink-3:       #7A6060;
  --ink-4:       #A89080;

  /* Border */
  --border:      #E0D4C0;
  --border-dk:   #C8B89A;

  /* Typography */
  --serif:       'Lora', Georgia, 'Times New Roman', serif;
  --sans:        'Inter', system-ui, sans-serif;

  /* Layout */
  --max:         1200px;
  --content-max: 740px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--maroon); }
img { max-width: 100%; height: auto; display: block; }

/* ── KG CARD REQUIRED CLASSES ──────────────────────────────── */
.kg-width-wide  { margin-left: -4rem; margin-right: -4rem; }
.kg-width-full  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-image-card img { width: 100%; border-radius: 4px; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── MASTHEAD ───────────────────────────────────────────────── */
.masthead {
  background: var(--maroon);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
}

.masthead-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.masthead-brand-rule {
  width: 1px;
  height: 20px;
  background: var(--maroon-lt);
}

.masthead-brand-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-border);
}

.masthead-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.masthead-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 0 14px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}

.masthead-nav a:hover { color: var(--gold-bright); }
.masthead-nav a.active { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-signin:hover { color: var(--gold-bright); }

.btn-subscribe {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #FAF7F2;
  border: none;
  padding: 8px 18px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-subscribe:hover { background: var(--gold-bright); color: var(--maroon); }

/* Journal band */
.journal-band {
  background: var(--maroon-mid);
  border-top: 1px solid var(--maroon-lt);
}

.journal-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.journal-band-inner::-webkit-scrollbar { display: none; }

.journal-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.journal-tab:hover { color: var(--gold-bright); }
.journal-tab.active { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

/* ── HOME — HIGHLIGHTS ROWS ─────────────────────────────────── */
.highlights-section {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.highlights-section:first-child {
  border-top: none;
}

.highlights-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.highlights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--maroon);
}

.highlights-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlights-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.highlights-see-all {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.highlights-see-all:hover { color: var(--maroon); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.highlight-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 2px 12px rgba(45,10,10,0.08);
}

.highlight-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.highlight-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.type-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon-lt);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.card-date {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-4);
}

.highlight-card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  text-decoration: none;
  display: block;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}
.highlight-card-title:hover { color: var(--gold); }

.highlight-card-excerpt {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.75rem;
}

.highlight-card-author {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
  margin-top: auto;
}
.highlight-card-author strong { color: var(--ink-3); font-weight: 500; }

/* ── HOME — ARTICLE LIST ─────────────────────────────────────── */
.home-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-list { display: flex; flex-direction: column; }

.article-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--maroon);
}

.article-list-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-list-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.article-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
}

.article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article-item:last-child { border-bottom: none; }

.article-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.journal-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--gold-lt);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 2px;
}

.article-item-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: block;
  transition: color 0.15s;
}
.article-item-title:hover { color: var(--gold); }

.article-item-excerpt {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.7;
}

.article-item-byline {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-item-byline strong { color: var(--ink-3); font-weight: 500; }

.access-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.access-open { color: #1A6B1A; background: #E8F5E8; border: 1px solid #B8DDB8; }
.access-paid { color: var(--ink-4); background: var(--bg-2); border: 1px solid var(--border); }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}

.sidebar-block-header {
  background: var(--maroon);
  padding: 10px 16px;
}

.sidebar-block-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.sidebar-block-body { padding: 1.25rem; }

.sidebar-block-body p {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.sidebar-block-body a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.sidebar-price {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 1rem;
  font-style: normal !important;
}

.btn-sub-full {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--maroon);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-sub-full:hover { background: var(--maroon-lt); color: var(--gold-bright); }

.sidebar-journal-list { list-style: none; }
.sidebar-journal-list li { border-bottom: 1px solid var(--border); }
.sidebar-journal-list li:last-child { border-bottom: none; }
.sidebar-journal-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-journal-list a:hover { color: var(--gold); }
.sidebar-journal-arrow { color: var(--ink-4); font-size: 12px; }

/* ── ARTICLE PAGE ───────────────────────────────────────────── */
.article-page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.article-page-main { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
}
.breadcrumb a { color: var(--ink-4); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border-dk); }

/* Article header */
.article-page-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

.article-page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-page-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-page-subtitle {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Authors */
.article-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.75rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
}

.article-author-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--gold-lt);
  transition: color 0.15s, border-color 0.15s;
}
.article-author-link:hover { color: var(--maroon); border-bottom-color: var(--maroon); }

.article-page-date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-4);
}

/* Abstract */
.article-abstract {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: 0 4px 4px 0;
}

.article-abstract-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.article-abstract p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* Paywall */
.paywall-wrap { position: relative; margin-top: 2rem; }

.paywall-fade {
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
}

.paywall-gate {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.paywall-gate h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.75rem;
}

.paywall-gate p {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.paywall-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.paywall-sub-btn {
  background: var(--maroon);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}
.paywall-sub-btn:hover { background: var(--maroon-lt); color: var(--gold-bright); }

.paywall-signin-btn {
  background: transparent;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.paywall-signin-btn:hover { border-color: var(--maroon); color: var(--maroon); }

.paywall-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 1rem;
}

/* Article body */
.gh-content {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
}

.gh-content h2, .gh-content h3, .gh-content h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}
.gh-content h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.gh-content h3 { font-size: 18px; }
.gh-content p  { margin-bottom: 1.5rem; }

.gh-content a { color: var(--gold); border-bottom: 1px solid var(--gold-lt); }
.gh-content a:hover { color: var(--maroon); border-bottom-color: var(--maroon); }

.gh-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink-3);
  background: var(--bg-2);
}

.gh-content figure { margin: 2rem 0; }
.gh-content figcaption {
  font-size: 13px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
}

.gh-content pre {
  background: var(--maroon);
  border-radius: 4px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.gh-content pre code { color: var(--gold-bright); font-size: 14px; }
.gh-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--maroon-lt);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 14px;
  font-family: var(--sans);
}
.gh-content th {
  background: var(--maroon);
  color: var(--gold-bright);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gh-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
}
.gh-content tr:nth-child(even) td { background: var(--bg-2); }

.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* Article sidebar */
.article-page-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.aside-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}

.aside-block-head {
  background: var(--maroon);
  padding: 9px 14px;
}

.aside-block-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.aside-block-body { padding: 1rem 1.25rem; }

.aside-info-row { display: flex; flex-direction: column; gap: 10px; }

.aside-info-item { display: flex; flex-direction: column; gap: 2px; }

.aside-info-key {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.aside-info-val {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}

.aside-info-val a { color: var(--gold); }

/* ── AUTHOR PAGE ────────────────────────────────────────────── */
.author-page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.author-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-border);
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-bright);
  flex-shrink: 0;
  border: 3px solid var(--gold-border);
}

.author-info { flex: 1; }

.author-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.author-affiliation {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.author-bio {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: all 0.15s;
}
.author-link-btn:hover { border-color: var(--gold); color: var(--gold); }

.author-link-btn.orcid { border-color: #A6CE39; color: #4B8B00; }
.author-link-btn.orcid:hover { background: #A6CE39; color: #FFFFFF; }

.author-link-btn.scholar { border-color: #4285F4; color: #4285F4; }
.author-link-btn.scholar:hover { background: #4285F4; color: #FFFFFF; }

.author-link-btn.pubmed { border-color: #336699; color: #336699; }
.author-link-btn.pubmed:hover { background: #336699; color: #FFFFFF; }

.author-link-btn.twitter { border-color: #1DA1F2; color: #1DA1F2; }
.author-link-btn.twitter:hover { background: #1DA1F2; color: #FFFFFF; }

.author-papers-header {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--maroon);
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-papers-header::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── TAG PAGE ───────────────────────────────────────────────── */
.tag-page-header {
  background: var(--maroon);
  border-bottom: 3px solid var(--gold);
  padding: 3rem 0;
}

.tag-page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.tag-page-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-border);
  margin-bottom: 0.75rem;
}

.tag-page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tag-page-desc {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 600px;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 13px;
}
.pagination a { color: var(--gold); font-weight: 500; }
.pagination-info { color: var(--ink-4); }

/* ── PAGE (static) ──────────────────────────────────────────── */
.static-page-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.static-page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--maroon);
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-border);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--maroon-lt);
  padding: 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .home-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .article-page-wrap { grid-template-columns: 1fr; }
  .article-page-sidebar { display: none; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .author-header { flex-direction: column; }
}

@media (max-width: 640px) {
  .masthead-nav { display: none; }
  .highlights-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .home-wrap, .article-page-wrap, .author-page-wrap { padding: 1.5rem 1rem; }
  .highlights-inner { padding: 0 1rem; }
  .kg-width-wide { margin-left: 0; margin-right: 0; }
  .kg-width-full { margin-left: 0; margin-right: 0; }
}
