/* ==========================================================================
   Security Unlocked — Theme Stylesheet
   A dark, warm-toned design system for behavioral cybersecurity research.
   ========================================================================== */


/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* ── Surfaces ── */
  --bg:            #0f0c0a;
  --surface:       #1e1b18;
  --surface-alt:   #141210;
  --surface-cool:  #12131a;

  /* ── Borders ── */
  --border-warm:   #2a2520;
  --border-cool:   #252830;

  /* ── Text ── */
  --text:          #e8e4de;
  --text-muted:    #9a9590;
  --text-subtle:   #6b6560;

  /* ── Accent palette ── */
  --gold:          #b8976a;
  --steel:         #7d8fa9;
  --teal:          #5d8a7d;
  --ember:         #c4783a;
  --rose:          #8a6b6b;

  /* ── Typography ── */
  --font-heading:  Georgia, 'Times New Roman', serif;
  --font-body:     system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:     'SF Mono', Monaco, monospace;

  /* ── Layout ── */
  --container-max: 1160px;
  --reading-width: 820px;
  --header-height: 64px;

  /* ── Spacing scale ── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 80px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

code {
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  background: rgba(42, 37, 32, 0.6);
  border-radius: 3px;
  color: var(--gold);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
  color: var(--text);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */

header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-warm);
}

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

/* Site branding */
.site-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-name span {
  color: var(--gold);
}

img.site-logo {
  height: 32px;
  width: auto;
}

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 12px;
  z-index: 101;
}

/* Hamburger icon (three lines via pseudo-elements) */
.nav-toggle-label .hamburger,
.nav-toggle-label .hamburger::before,
.nav-toggle-label .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label .hamburger::before,
.nav-toggle-label .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
}

.nav-toggle-label .hamburger::before {
  top: -7px;
}

.nav-toggle-label .hamburger::after {
  top: 7px;
}

/* Primary navigation */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a,
.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

nav a:hover,
.site-nav a:hover {
  color: var(--steel);
}

nav a.active,
.site-nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 2px;
  opacity: 0.5;
  font-size: 0;
  vertical-align: middle;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border-warm);
}

.nav-dropdown-menu a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:first-child {
  border-radius: 4px 4px 0 0;
}

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 4px 4px;
}

.nav-dropdown-menu a:not(:last-child) {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: var(--surface-alt);
}

.nav-dropdown-menu a.active {
  color: var(--text);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--text);
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown:focus-within .nav-arrow {
  opacity: 0.9;
}


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  padding: var(--space-2xl) 0 64px;
  position: relative;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 72px 64px;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 151, 106, 0.3), transparent);
  z-index: 1;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-title a {
  position: static;
}

.hero-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-excerpt {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 28px;
}

.hero-source {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-source strong {
  color: var(--steel);
  font-weight: 600;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 2.5rem auto 0;
  opacity: 0.6;
}


/* ==========================================================================
   7. ARTICLE HERO (Single Article Page)
   ========================================================================== */

.article-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 151, 106, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.article-deck {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

.article-meta .author-name {
  color: var(--text);
  font-weight: 500;
}

.article-meta .publication {
  color: var(--text-muted);
}


/* ==========================================================================
   8. ARTICLE LAYOUT (Body + Sidebar Grid)
   ========================================================================== */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
}


/* ==========================================================================
   9. ARTICLE BODY — Reading Styles
   ========================================================================== */

.article-body {
  max-width: var(--reading-width);
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.article-body a {
  color: #52b788;
  text-decoration: underline;
  text-decoration-color: rgba(82, 183, 136, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-body a:hover {
  color: var(--gold);
  text-decoration-color: rgba(184, 151, 106, 0.6);
}

/* Drop cap on first paragraph */
.article-body .lead-paragraph::first-letter,
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 3.8rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--gold);
  margin: 0.06em 0.12em 0 0;
  padding-top: 0.08em;
}

/* In-article headings */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--steel);
  line-height: 1.35;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

/* Blockquotes */
.article-body blockquote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 1.5rem 0;
  padding-left: 20px;
  border-left: 2px solid var(--border-warm);
  line-height: 1.6;
}

/* Lists inside articles */
.article-body ul,
.article-body ol {
  margin: 0 0 1.6rem 1.25rem;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Tables inside articles */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body th,
.article-body td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-warm);
  text-align: left;
  white-space: nowrap;
}

.article-body th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.article-body td {
  color: var(--text-muted);
}


/* ==========================================================================
   10. PULL QUOTES
   ========================================================================== */

.pull-quote {
  border-left: 3px solid var(--ember);
  margin: 2.5rem 0 2.5rem -1rem;
  padding: 1.5rem 2rem;
  background: rgba(196, 120, 58, 0.04);
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.65;
  color: #ede9e3;
  margin-bottom: 0;
}

.pull-quote .attribution {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}


/* ==========================================================================
   11. CALLOUT / INSIGHT BOXES
   ========================================================================== */

.insight-box {
  background: var(--surface-cool);
  border-top: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 0 4px 4px;
}

.insight-box .insight-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.insight-box .insight-icon {
  display: inline-block;
  color: var(--teal);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.insight-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Key Insight (used in article content via HTML) */
.key-insight {
  background: var(--surface-cool);
  border-top: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 0 4px 4px;
}

.key-insight__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.key-insight p:last-child {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0;
}

/* Key Takeaways section wrapper */
.key-takeaways {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  padding: 2rem 2rem 1.5rem;
  margin: 3rem 0;
}

.key-takeaways h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 1.25rem 0;
  padding: 0;
  border: none;
}

.key-takeaways ul,
.key-takeaways ol {
  margin: 0 0 0 1.25rem;
}

.key-takeaways li {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1rem;
}

.key-takeaways li strong {
  color: var(--text);
}


/* ==========================================================================
   12. BADGES / CATEGORY COLORS
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--gold {
  background: rgba(184, 151, 106, 0.12);
  color: var(--gold);
  border: 1px solid rgba(184, 151, 106, 0.22);
}

.badge--steel {
  background: rgba(125, 143, 169, 0.12);
  color: var(--steel);
  border: 1px solid rgba(125, 143, 169, 0.22);
}

.badge--teal {
  background: rgba(93, 138, 125, 0.12);
  color: var(--teal);
  border: 1px solid rgba(93, 138, 125, 0.22);
}

.badge--ember {
  background: rgba(196, 120, 58, 0.12);
  color: var(--ember);
  border: 1px solid rgba(196, 120, 58, 0.2);
}

.badge--rose {
  background: rgba(138, 107, 107, 0.12);
  color: var(--rose);
  border: 1px solid rgba(138, 107, 107, 0.22);
}


/* ==========================================================================
   13. SECTION LABELS & TITLES
   ========================================================================== */

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.section-label--gold  { color: var(--gold); }
.section-label--steel { color: var(--steel); }
.section-label--ember { color: var(--ember); }
.section-label--teal  { color: var(--teal); }

.section-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-xl);
}


/* ==========================================================================
   14. ARTICLE CARDS (Grid)
   ========================================================================== */

.articles-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 2px solid transparent;
  border-radius: 4px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Category-colored top border on hover */
.article-card[data-cat="gold"]:hover  { border-top-color: var(--gold); }
.article-card[data-cat="steel"]:hover { border-top-color: var(--steel); }
.article-card[data-cat="teal"]:hover  { border-top-color: var(--teal); }
.article-card[data-cat="ember"]:hover { border-top-color: var(--ember); }
.article-card[data-cat="rose"]:hover  { border-top-color: var(--rose); }

.article-card .badge {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  align-self: flex-start;
}

.article-card h3 a {
  position: static;
}

.article-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-card .card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-warm);
  font-size: 0.75rem;
  color: var(--text-subtle);
}


/* ==========================================================================
   15. READ LINK (arrow animation)
   ========================================================================== */

.read-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: gap 0.2s;
}

.read-link:hover { gap: 14px; }
.read-link::after { content: '\2192'; }


/* ==========================================================================
   16. WEEKLY BRIEF SECTION
   ========================================================================== */

.brief-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.brief-card {
  position: relative;
  background: rgba(30, 27, 24, 0.5);
  border: 1px solid var(--border-cool);
  border-left: 3px solid var(--ember);
  border-radius: 4px;
  padding: 48px 56px;
}

.brief-card .section-label {
  margin-bottom: 4px;
}

.brief-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.brief-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.brief-title a {
  position: static;
}

.brief-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brief-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.brief-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 2px;
  background: rgba(196, 120, 58, 0.08);
  color: var(--ember);
  border: 1px solid rgba(196, 120, 58, 0.18);
}

.brief-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ember);
  transition: gap 0.2s;
}

.brief-link:hover { gap: 14px; }
.brief-link::after { content: '\2192'; }


/* ==========================================================================
   17. TOOLS SECTION
   ========================================================================== */

.tools-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 40px 36px;
  transition: border-color 0.25s;
}

.tool-card:hover {
  border-color: rgba(93, 138, 125, 0.3);
}

.tool-name {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.tool-subtitle {
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}


/* ==========================================================================
   18. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--teal {
  border: 1px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn--teal:hover {
  background: var(--teal);
  color: var(--bg);
}

.btn--teal-solid {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--bg);
}

.btn--teal-solid:hover {
  background: #4e7a6d;
  border-color: #4e7a6d;
}

.btn--gold-solid {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.btn--gold-solid:hover {
  background: #a6865e;
  border-color: #a6865e;
}


/* ==========================================================================
   19. PUBLISHED-IN CREDIBILITY STRIP
   ========================================================================== */

.credibility-section {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
  border-bottom: none;
  text-align: center;
}

.credibility-section .section-label {
  margin-bottom: 20px;
}

.pub-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 36px;
}

.pub-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.pub-name:hover {
  color: var(--text-muted);
}

.credibility-credential {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 18px 0 0;
}

.credibility-credential a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.credibility-credential a:hover {
  color: var(--text-muted);
}


/* ==========================================================================
   20. ABOUT / AUTHOR SECTIONS
   ========================================================================== */

.about-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.about-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.about-text { flex: 1; }

.about-name {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.about-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 600px;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--border-warm);
  line-height: 1.6;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.about-links a {
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.about-links a:hover {
  color: var(--text);
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface) 0%, #252018 100%);
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-subtle);
}

/* Author bio card (article page, inline) */
.author-bio-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.author-bio-content .author-bio-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.author-bio-content .author-bio-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.author-bio-content .author-bio-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ==========================================================================
   21. SIDEBAR
   ========================================================================== */

.article-sidebar {
  padding-top: 0.5rem;
}

.sidebar-section {
  position: sticky;
  top: 5.5rem;
}

.sidebar-block {
  margin-bottom: 2.5rem;
}

.sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-warm);
}

/* Table of contents */
.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all 0.3s;
}

.toc-list a:hover {
  color: var(--steel);
}

.toc-list a.active {
  color: var(--text);
  border-left-color: var(--gold);
}

/* Author card (sidebar, compact) */
.author-card-sm {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-warm);
}

.author-card-sm .name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.author-card-sm .role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.author-card-sm .bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Related articles (sidebar) */
.related-link {
  display: block;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-warm);
}

.related-link:last-child {
  border-bottom: none;
}

.related-link .r-title {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.3s;
}

.related-link:hover .r-title {
  color: var(--steel);
}

.related-link .r-source {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}


/* ==========================================================================
   22. ARTICLE FOOTER (tags, share, source)
   ========================================================================== */

.article-footer {
  max-width: var(--reading-width);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-warm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #b09a9a;
  text-decoration: none;
  background: rgba(138, 107, 107, 0.12);
  border: 1px solid rgba(138, 107, 107, 0.25);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: all 0.3s;
}

.tag:hover {
  border-color: var(--rose);
  color: #c4aeae;
  background: rgba(138, 107, 107, 0.2);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.share-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border-warm);
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.share-btn:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.originally-published {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.originally-published a {
  color: var(--steel);
  text-decoration: none;
}

.originally-published a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   23. CONTINUE READING (Related Articles Grid)
   ========================================================================== */

.continue-reading {
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
}

.continue-reading-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.continue-reading h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 2rem;
}

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

.related-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid transparent;
  border-radius: 4px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-card[data-category="threat"]:hover   { border-top-color: var(--ember); }
.related-card[data-category="ai"]:hover       { border-top-color: var(--steel); }
.related-card[data-category="strategy"]:hover { border-top-color: var(--teal); }

.related-card .rc-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.related-card[data-category="threat"] .rc-category   { color: var(--ember); }
.related-card[data-category="ai"] .rc-category       { color: var(--steel); }
.related-card[data-category="strategy"] .rc-category { color: var(--teal); }

.related-card .rc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.related-card .rc-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}


/* ==========================================================================
   24. NEWSLETTER
   ========================================================================== */

/* Inline newsletter (homepage mid-page) */
.newsletter-inline {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border-warm);
}

.newsletter-inline__inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inline__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.newsletter-inline__form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-inline__form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.85rem;
  background: #1e1b18;
  border: 1px solid #2a2520;
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: #e8e4de;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-inline__form input[type="email"]::placeholder {
  color: #6b6560;
}

.newsletter-inline__form input[type="email"]:focus {
  border-color: #b8976a;
}

.newsletter-inline__form .btn {
  padding: 12px 24px;
  border-radius: 0 3px 3px 0;
  white-space: nowrap;
  font-size: 0.8rem;
}

.newsletter-inline__status {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.newsletter-inline__status.success {
  color: #52b788;
}

.newsletter-inline__status.error {
  color: #c4783a;
}

@media (max-width: 600px) {
  .newsletter-inline__form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .newsletter-inline__form input[type="email"] {
    border-right: 1px solid #2a2520;
    border-radius: 3px;
  }
  .newsletter-inline__form .btn {
    border-radius: 3px;
  }
}

/* Full newsletter section (page bottom) */
.newsletter-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-warm);
  text-align: center;
}

.newsletter-section .section-title {
  margin-bottom: 12px;
}

.newsletter-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.88rem;
  background: rgba(30, 27, 24, 0.6);
  border: 1px solid var(--border-cool);
  border-radius: 3px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-subtle);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
}

/* Newsletter status messages */
.newsletter-status,
.sidebar-subscribe-status {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.newsletter-status.success,
.sidebar-subscribe-status.success {
  color: #52b788;
}

.newsletter-status.error,
.sidebar-subscribe-status.error {
  color: var(--ember);
}

/* Sidebar subscribe form */
.sidebar-block .sidebar-subscribe-text {
  font-size: 0.82rem !important;
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.sidebar-block .sidebar-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-block .sidebar-subscribe-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--border-warm);
  font-size: 0.82rem;
  font-family: var(--font-body);
  box-sizing: border-box;
  background: #0f0c0a;
  color: #e8e4de;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.sidebar-block .sidebar-subscribe-form input[type="email"]::placeholder {
  color: #6b6560;
}

.sidebar-block .sidebar-subscribe-form input[type="email"]:focus {
  border-color: #b8976a;
}

.sidebar-block .sidebar-subscribe-form button[type="submit"] {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  border: none;
  background: #b8976a;
  color: #0f0c0a;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sidebar-block .sidebar-subscribe-form button[type="submit"]:hover {
  background: #c9a87a;
}

.sidebar-block .sidebar-subscribe-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-block .sidebar-subscribe-status {
  font-size: 0.78rem;
  font-family: var(--font-body);
  margin-top: 0.4rem;
  min-height: 1em;
}


/* ==========================================================================
   25. FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-warm);
  padding: 48px 0 40px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-brand .site-name {
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-style: italic;
  font-family: var(--font-heading);
}

.footer-columns {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px 0;
}

.footer-col a {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-warm);
  font-size: 0.72rem;
  color: #3a3530;
}


/* ==========================================================================
   26. UTILITY CLASSES
   ========================================================================== */

.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;
}

.text-gold   { color: var(--gold); }
.text-steel  { color: var(--steel); }
.text-teal   { color: var(--teal); }
.text-ember  { color: var(--ember); }
.text-rose   { color: var(--rose); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.bg-surface  { background: var(--surface); }
.bg-cool     { background: var(--surface-cool); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }


/* ==========================================================================
   27. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Tablet (max-width: 900px) ── */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 48px 36px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .brief-card {
    padding: 36px 28px;
  }

  .about-inner {
    flex-direction: column;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-sidebar {
    order: 2;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-warm);
  }

  .sidebar-section {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-inner {
    padding: 0 1.25rem;
    position: relative;
  }

  /* Show hamburger, hide nav by default */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(15, 12, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-warm);
    flex-direction: column;
    padding: 0.5rem 1.5rem;
    gap: 0;
    z-index: 100;
  }

  nav a,
  nav .nav-dropdown-toggle {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-warm);
    font-size: 0.85rem;
    display: block;
  }

  nav a:last-child {
    border-bottom: none;
  }

  /* Mobile: dropdowns always expanded, stacked vertically */
  .nav-dropdown {
    position: static;
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown-toggle {
    border-bottom: none;
    display: none;
  }

  .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    position: static;
    transform: none;
    padding-top: 0;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-warm);
    border-radius: 0;
    padding: 0.85rem 0;
    font-size: 0.85rem;
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: 1px solid var(--border-warm);
  }

  /* Toggle open state */
  .nav-toggle:checked ~ nav {
    display: flex;
  }

  /* Animate hamburger to X when open */
  .nav-toggle:checked ~ .nav-toggle-label .hamburger {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }

  .article-hero {
    padding: 6.5rem 1.25rem 2.5rem;
  }

  .article-layout {
    padding: 0 1.25rem 3rem;
  }

  .continue-reading-inner {
    padding: 3rem 1.25rem 4rem;
  }
}

/* ── Mobile (max-width: 600px) ── */
@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 36px 24px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-excerpt {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .pub-strip {
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-columns {
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .share-row {
    flex-wrap: wrap;
  }

  .pull-quote {
    margin-left: 0;
    padding: 1.25rem 1.5rem;
  }
}


/* ==========================================================================
   28. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* Hide non-essential UI */
  header,
  .site-header,
  nav,
  .site-nav,
  footer,
  .site-footer,
  .newsletter-section,
  .share-row,
  .share-btn,
  .article-sidebar,
  .continue-reading,
  .tools-section {
    display: none !important;
  }

  .article-layout {
    display: block;
  }

  .article-body {
    max-width: 100%;
  }

  .hero-card {
    border: none;
    padding: 0;
  }

  .hero-card::before {
    display: none;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}


/* ==========================================================================
   30. EDITORIAL PAGES (About, Contact/Work With Me)
   ========================================================================== */

.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-hero .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero .section-subtitle,
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.editorial-page {
  padding: 0 0 4rem;
}

/* Reuse article-body typography for editorial pages */
.article-content {
  line-height: 1.78;
  font-size: 1.1rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-warm);
  color: var(--text);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.article-content a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: var(--steel);
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-content li strong {
  color: var(--gold);
}

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

.article-content blockquote {
  border-left: 3px solid var(--ember);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(196, 120, 58, 0.05);
  font-style: italic;
  color: var(--text-muted);
}

.article-content blockquote p {
  margin-bottom: 0;
}


/* ==========================================================================
   31. MENTIONS PAGE
   ========================================================================== */

.mentions-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.mentions-hero .section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.mentions-hero .section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mentions-listing {
  padding: 0 0 4rem;
}

.mentions-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mention-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.mention-card:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.mention-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mention-card__outlet {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  border: 1px solid var(--steel);
  background: rgba(125, 143, 169, 0.08);
}

.mention-card__date {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.mention-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.mention-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mention-card__title a:hover {
  color: var(--steel);
}

.external-icon {
  opacity: 0.5;
  flex-shrink: 0;
}

.mention-card__title a:hover .external-icon {
  opacity: 1;
}

.mention-card__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ==========================================================================
   32. SINGLE MENTION PAGE
   ========================================================================== */

.mention-single {
  padding: 2rem 0 4rem;
}

.mention-outlet-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  border: 1px solid var(--steel);
  background: rgba(125, 143, 169, 0.08);
  margin-bottom: 1rem;
}

.mention-source-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--steel);
  border: 1px solid var(--steel);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mention-source-link:hover {
  background: rgba(125, 143, 169, 0.12);
  color: var(--text);
}

.back-link {
  display: inline-block;
  color: var(--steel);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}


/* ==========================================================================
   33. TOOLS LISTING PAGE
   ========================================================================== */

.tools-listing {
  padding: 0 0 4rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.tool-listing-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tool-listing-card[data-accent="teal"]:hover { border-color: var(--teal); }
.tool-listing-card[data-accent="steel"]:hover { border-color: var(--steel); }

.tool-listing-card__icon {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tool-listing-card[data-accent="teal"] .tool-listing-card__icon { color: var(--teal); }
.tool-listing-card[data-accent="steel"] .tool-listing-card__icon { color: var(--steel); }

.tool-listing-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tool-listing-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tool-listing-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tool-listing-card__cta {
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-listing-card[data-accent="teal"] .tool-listing-card__cta { color: var(--teal); }
.tool-listing-card[data-accent="steel"] .tool-listing-card__cta { color: var(--steel); }

.tool-listing-card:hover .tool-listing-card__cta {
  text-decoration: underline;
}


/* ==========================================================================
   34. PHRENEX DEMO EMBED
   ========================================================================== */

.phrenex-demo {
  padding: 0 0 4rem;
}

.phrenex-frame {
  width: 100%;
  min-height: 5000px;
  border: none;
  border-radius: 10px;
  background: transparent;
}

/* Tool hero — centered title block with visual separation */
.tool-hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.tool-hero .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.25rem;
}

.tool-hero .section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 auto 1.5rem;
  max-width: 640px;
  line-height: 1.6;
}

.tool-hero .section-desc {
  color: var(--ash);
  font-size: 0.9rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-warm);
}

/* Minimal header for standalone tool pages */
.header--minimal {
  background: var(--bg);
  border-bottom: 1px solid var(--border-warm);
}

.header--minimal nav,
.header--minimal .nav-toggle,
.header--minimal .nav-toggle-label {
  display: none;
}

.header--minimal .header-inner {
  justify-content: center;
}

/* Support CTA */
.support-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.support-cta a {
  color: var(--gold);
  font-weight: 600;
}

.support-cta a:hover {
  color: var(--text);
}

/* Footer support link */
.footer-support {
  margin-top: 0.75rem;
}

.bmc-link {
  font-size: 0.85rem;
  opacity: 0.8;
}

.bmc-link:hover {
  opacity: 1;
}

/* ==========================================================================
   QUICK TAKES
   ========================================================================== */

.quick-take-confidence {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.quick-take-confidence--high {
  background: rgba(207, 102, 86, 0.15);
  color: var(--ember);
}

.quick-take-confidence--medium {
  background: rgba(184, 151, 106, 0.15);
  color: var(--gold);
}

.quick-take-confidence--low {
  background: rgba(125, 143, 169, 0.15);
  color: var(--steel);
}

.quick-take-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  font-size: 0.82rem;
}

.quick-take-campaign {
  color: var(--text-muted);
}


/* ── Cookie Consent Banner ── */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e1b18;
  border-top: 1px solid rgba(184,151,106,0.3);
  padding: 1rem 2rem;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
#cookie-consent .cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  flex-direction: row-reverse;
}
#cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  color: #e8e4de;
}
#cookie-consent a {
  color: #b8976a;
  text-decoration: underline;
}
#cookie-accept {
  background: #b8976a;
  color: #0f0c0a;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#cookie-accept:hover {
  background: #c9a87b;
}

/* ── Author Photo ── */
.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  float: right;
  margin: 0 0 1.5rem 2rem;
  border: 3px solid rgba(184,151,106,0.4);
}
@media (max-width: 600px) {
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
  }
}

/* ── Alert Banner ── */
.alert-banner {
  background: linear-gradient(135deg, rgba(196, 120, 58, 0.15) 0%, rgba(196, 120, 58, 0.08) 100%);
  border-top: 2px solid #c4783a;
  border-bottom: 1px solid rgba(196, 120, 58, 0.2);
  padding: 0.65rem 0;
}
.alert-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.alert-badge {
  background: #c4783a;
  color: #0f0c0a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 120, 58, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(196, 120, 58, 0.3); }
}
.alert-link {
  color: #e8e4de;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.alert-link:hover strong {
  color: #c4783a;
}
.alert-link strong {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alert-date {
  color: #9a9590;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .alert-link strong {
    font-size: 0.8rem;
  }
  .alert-inner {
    gap: 0.6rem;
  }
}

/* ==========================================================================
   TOPIC PILLARS (homepage band)
   ========================================================================== */
.pillars-section {
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--surface-alt);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}
.pillars-section .section-title {
  margin-bottom: var(--space-md);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 2px solid transparent;
  border-radius: 4px;
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.pillar-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--text);
  letter-spacing: 0.005em;
}
.pillar-blurb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
}
.pillar-arrow {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 700px) {
  .pillars-section { padding: var(--space-lg) 0; }
  .pillar-card { min-height: 0; padding: 20px 18px; }
}

/* When the cookie consent banner is visible, lift the Buy Me a Coffee
   floating widget above it on mobile so it doesn't overlap the Accept
   button. The cookie banner is removed from the DOM after Accept, so
   this rule auto-disengages. */
@media (max-width: 768px) {
  body:has(#cookie-consent) #bmc-wbtn,
  body:has(#cookie-consent) .bmc-wbtn,
  body:has(#cookie-consent) [class*="bmc-button"],
  body:has(#cookie-consent) iframe[id*="bmc"] {
    bottom: 96px !important;
    transition: bottom 0.2s ease;
  }
}

/* ==========================================================================
   EDITOR'S PICKS (homepage band)
   ========================================================================== */
.picks-section {
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--bg);
}
.picks-section .section-title {
  margin-bottom: var(--space-md);
}
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pick-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pick-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.pick-lane {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.pick-title {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.7rem;
  color: var(--text);
}
.pick-blurb {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.3rem;
  flex: 1;
}
.pick-arrow {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .picks-grid { grid-template-columns: 1fr; gap: 18px; }
  .picks-section { padding: var(--space-lg) 0; }
  .pick-card { padding: 24px 22px; }
}

/* ==========================================================================
   HEADER RSS BADGE
   ========================================================================== */
.header-rss {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  margin-left: 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-rss:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ==========================================================================
   FEATURE IMAGE — article hero + homepage hero variant
   ========================================================================== */
.article-feature-image {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}
.article-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-warm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Homepage hero, when the featured article has an image */
.hero--with-image .hero-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero--with-image .hero-image-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-warm);
}
.hero--with-image .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  aspect-ratio: 16 / 10;
}
.hero--with-image .hero-image-link:hover .hero-image {
  transform: scale(1.03);
}
.hero--with-image .hero-card-body {
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .hero--with-image .hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .article-feature-image {
    margin-bottom: var(--space-md);
  }
}

/* ==========================================================================
   NEWSLETTER RSS LINE (full newsletter section)
   ========================================================================== */
.newsletter-rss-line {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: center;
}
.newsletter-rss-line a {
  color: var(--gold);
  text-decoration: none;
}
.newsletter-rss-line a:hover {
  text-decoration: underline;
}
