/* ============================================================
   Applied C# — screen.css
   Professional Development Patterns
   appliedcsharp.ghost.io
   ============================================================ */

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

:root {
  --bg:        #09090F;
  --bg-1:      #0E0E18;
  --bg-2:      #131320;
  --bg-3:      #1A1A28;
  --fg:        #E8E4DC;
  --fg-2:      #8A8678;
  --fg-3:      #353330;
  --rule:      rgba(232,228,220,0.07);
  --rule-2:    rgba(232,228,220,0.13);
  --copper:    #C07A3A;
  --copper-l:  #D9924A;
  --copper-dim:rgba(192,122,58,0.12);
  --cyan:      #00C4D4;
  --cyan-dim:  rgba(0,196,212,0.08);
  --syne:  "Syne", system-ui, sans-serif;
  --lora:  "Lora", Georgia, serif;
  --mono:  "JetBrains Mono", monospace;
}

/* ── COLOUR THEMES ── */
/* Override only the variables that change per theme.              */
/* The rest (layout, typography, component CSS) is untouched.     */

[data-theme="paper"] {
  --bg:          #FFFFFF;
  --bg-1:        #F4F6FB;
  --bg-2:        #E8EDF7;
  --bg-3:        #D8E0F0;
  --fg:          #0A1628;
  --fg-2:        #3A4A6B;
  --fg-3:        #8A9AB8;
  --rule:        rgba(10,22,40,0.10);
  --rule-2:      rgba(10,22,40,0.18);
  --copper:      #BF0A30;
  --copper-l:    #D91A40;
  --copper-dim:  rgba(191,10,48,0.08);
  --cyan:        #002868;
  --cyan-dim:    rgba(0,40,104,0.08);
}

/* Header glass needs an explicit light override — the dark rgba is hardcoded */
[data-theme="paper"] .site-header {
  background: rgba(255,255,255,0.94);
}

/* Subscribe button: keep dark text readable on the red bg */
[data-theme="paper"] .subscribe-btn {
  color: #FFFFFF;
}

[data-theme="mocha"] {
  --bg:          #0E0C09;
  --bg-1:        #131109;
  --bg-2:        #1A180F;
  --bg-3:        #221F13;
  --fg:          #F0EDE4;
  --fg-2:        #8A8070;
  --fg-3:        #302C20;
  --rule:        rgba(240,237,228,0.07);
  --rule-2:      rgba(240,237,228,0.13);
  --copper:      #D4891A;
  --copper-l:    #F5A623;
  --copper-dim:  rgba(245,166,35,0.12);
  --cyan:        #6EC9B0;
  --cyan-dim:    rgba(110,201,176,0.08);
}

[data-theme="cobalt"] {
  --bg:          #070C18;
  --bg-1:        #0C1220;
  --bg-2:        #111828;
  --bg-3:        #181F30;
  --fg:          #D8E4F4;
  --fg-2:        #7288A8;
  --fg-3:        #2A3348;
  --rule:        rgba(216,228,244,0.07);
  --rule-2:      rgba(216,228,244,0.13);
  --copper:      #4A90D9;
  --copper-l:    #5AA8F0;
  --copper-dim:  rgba(74,144,217,0.12);
  --cyan:        #00D4AA;
  --cyan-dim:    rgba(0,212,170,0.08);
}

[data-theme="emerald"] {
  --bg:          #060D08;
  --bg-1:        #0B130D;
  --bg-2:        #101A12;
  --bg-3:        #172018;
  --fg:          #D4EDD8;
  --fg-2:        #6B9870;
  --fg-3:        #2A3D2C;
  --rule:        rgba(212,237,216,0.07);
  --rule-2:      rgba(212,237,216,0.13);
  --copper:      #3DB86A;
  --copper-l:    #4ED97E;
  --copper-dim:  rgba(61,184,106,0.12);
  --cyan:        #FFD060;
  --cyan-dim:    rgba(255,208,96,0.08);
}

[data-theme="obsidian"] {
  --bg:          #0A080F;
  --bg-1:        #100E18;
  --bg-2:        #161420;
  --bg-3:        #1C1A28;
  --fg:          #E4DCF4;
  --fg-2:        #8878A8;
  --fg-3:        #38304A;
  --rule:        rgba(228,220,244,0.07);
  --rule-2:      rgba(228,220,244,0.13);
  --copper:      #9B6ED9;
  --copper-l:    #B48AF0;
  --copper-dim:  rgba(155,110,217,0.12);
  --cyan:        #60D8C8;
  --cyan-dim:    rgba(96,216,200,0.08);
}


/* ── THEME PICKER ── */
.theme-picker { position: relative; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 7px 9px; cursor: pointer;
  display: flex; align-items: center;
  transition: border-color .2s;
  margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--copper); }
.theme-toggle[aria-expanded="true"] { border-color: var(--copper); }

.theme-toggle-dots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
}
.theme-toggle-dots span {
  width: 5px; height: 5px; border-radius: 50%;
}
/* Fixed accent colours so the grid always shows all four, regardless of active theme */
.theme-toggle-dots span:nth-child(1) { background: #C07A3A; } /* Copper  */
.theme-toggle-dots span:nth-child(2) { background: #4A90D9; } /* Cobalt  */
.theme-toggle-dots span:nth-child(3) { background: #3DB86A; } /* Emerald */
.theme-toggle-dots span:nth-child(4) { background: #9B6ED9; } /* Obsidian */

.theme-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2); border: 1px solid var(--rule-2);
  padding: 6px; display: flex; flex-direction: column; gap: 1px;
  min-width: 130px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.theme-panel.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .2s, transform .2s, visibility 0s;
}

.theme-swatch {
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; transition: background .15s;
  width: 100%; text-align: left;
}
.theme-swatch:hover     { background: var(--bg-3); }
.theme-swatch.is-active { background: var(--bg-3); }

.swatch-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--swatch-color); flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-2);
  transition: box-shadow .15s;
}
.theme-swatch.is-active .swatch-dot {
  box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--swatch-color);
}

.swatch-name {
  font-family: var(--mono); font-size: 10px; color: var(--fg-2);
  letter-spacing: 0.08em; transition: color .15s;
}
.theme-swatch:hover     .swatch-name,
.theme-swatch.is-active .swatch-name { color: var(--fg); }


html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--syne);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-3); }


/* ── MAX WIDTH CONTAINER ── */
.site-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  background: rgba(9,9,15,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,4vw,72px);
  animation: slideDown .5s ease both;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity:0; } }

.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-bracket { font-family: var(--mono); font-size: 19px; font-weight: 300; color: var(--copper); line-height: 1; }
.logo-text { font-family: var(--syne); font-size: 16px; font-weight: 800; color: var(--fg); letter-spacing: -0.01em; }
.logo-text span { color: var(--copper-l); }

.header-right { display: flex; align-items: center; gap: 4px; }
.nav-link { font-family: var(--mono); font-size: 11px; color: var(--fg-2); text-decoration: none; padding: 6px 12px; border-radius: 3px; letter-spacing: 0.02em; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--fg); background: var(--bg-2); }

.header-author {
  display: flex; align-items: center; gap: 10px;
  margin-left: 16px; padding-left: 16px;
  border-left: 1px solid var(--rule-2);
  text-decoration: none; color: inherit;
}
.header-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid var(--copper);
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.header-author-text { display: flex; flex-direction: column; gap: 1px; }
.header-author-name { font-family: var(--syne); font-size: 12px; font-weight: 700; color: var(--fg); line-height: 1; }
.header-author-role { font-family: var(--mono); font-size: 9px; color: var(--fg-2); letter-spacing: 0.04em; }
.subscribe-btn {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--bg); background: var(--copper);
  text-decoration: none; padding: 7px 16px;
  letter-spacing: 0.06em; margin-left: 12px;
  transition: opacity .2s; white-space: nowrap;
}
.subscribe-btn:hover { opacity: 0.82; }


/* ── STATUS BAR ── */
.status-bar {
  background: var(--bg-1); border-bottom: 1px solid var(--rule);
  padding: 8px clamp(20px,4vw,72px);
  display: flex; align-items: center; gap: 20px;
  overflow-x: auto; scrollbar-width: none;
  animation: fadeIn .5s .1s ease both;
}
.status-bar::-webkit-scrollbar { display: none; }
.sb-item { font-family: var(--mono); font-size: 10px; color: var(--fg-2); white-space: nowrap; flex-shrink: 0; }
.sb-live { color: var(--copper); display: flex; align-items: center; gap: 7px; }
.sb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 6px var(--copper);} 50%{opacity:.3;box-shadow:none;} }
.sb-sep { color: var(--fg-2); font-size: 10px; opacity: 0.4; }


/* ── HERO ── */
.hero {
  padding: clamp(64px,8vw,110px) clamp(20px,4vw,72px) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  animation: fadeUp .7s .15s ease both;
}
.hero-left { padding-bottom: 56px; border-bottom: 1px solid var(--rule); }

.hero-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--copper);
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--copper); opacity: 0.6; }

.hero-title {
  font-family: var(--syne);
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 800; line-height: 0.94;
  letter-spacing: -0.04em; color: var(--fg);
  margin-bottom: 36px;
}
.hero-title .italic-row {
  display: block;
  font-family: var(--lora); font-weight: 400; font-style: italic;
  color: var(--fg-2); font-size: 0.88em; letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--copper-l); font-style: normal; font-family: var(--syne); }
.page-about .hero-title { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -0.03em; line-height: 1.05; }

.hero-body {
  font-family: var(--lora); font-size: 17px; line-height: 1.82;
  color: var(--fg-2); max-width: 540px; margin-bottom: 40px;
}
.hero-body strong { color: var(--fg); font-weight: 500; }

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.action-primary {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--bg); background: var(--copper); text-decoration: none;
  padding: 12px 26px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity .2s; display: inline-flex; align-items: center; gap: 10px;
}
.action-primary:hover { opacity: 0.82; }
.action-secondary {
  font-family: var(--mono); font-size: 11px; color: var(--fg-2);
  text-decoration: none; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.action-secondary:hover { color: var(--copper-l); }
.action-secondary::after { content: "→"; }


/* ── AUTHOR PANEL ── */
.author-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding-bottom: 56px; padding-top: 44px;
  text-decoration: none; color: inherit;
}
.author-photo-ring { position: relative; width: 163px; height: 163px; }
.author-photo-ring::before {
  content: "";
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--copper); opacity: 0.4;
}
.author-photo-ring::after {
  content: "";
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed var(--copper); opacity: 0.15;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.author-photo-ring img {
  width: 163px; height: 163px; border-radius: 50%;
  object-fit: cover; object-position: center top; display: block;
  border: 2px solid var(--copper);
  filter: grayscale(20%) contrast(1.05);
  transition: filter .4s;
}
.author-panel:hover .author-photo-ring img { filter: grayscale(0%) contrast(1.05); }
.author-panel-name { font-family: var(--syne); font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; text-align: center; }
.author-panel-title { font-family: var(--lora); font-size: 13px; font-style: italic; color: var(--fg-2); text-align: center; margin-top: -8px; }
.author-panel-tags { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.author-panel-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); border: 1px solid rgba(192,122,58,0.25); padding: 3px 10px; white-space: nowrap; }
.author-panel-link { font-family: var(--mono); font-size: 9px; color: var(--fg-3); letter-spacing: 0.1em; text-align: center; margin-top: 4px; transition: color .2s; }
.author-panel:hover .author-panel-link { color: var(--copper); }


/* ── SECTION HEADING ── */
.section-heading {
  padding: 56px clamp(20px,4vw,72px) 28px;
  display: flex; align-items: center; gap: 16px;
}
.sh-num { font-family: var(--mono); font-size: 10px; color: var(--copper); opacity: 0.7; letter-spacing: 0.1em; }
.sh-label { font-family: var(--syne); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.sh-line { flex: 1; height: 1px; background: var(--rule); }


/* ── FILTER TABS ── */
.filter-wrap { padding: 0 clamp(20px,4vw,72px); margin-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.filter-wrap::-webkit-scrollbar { display: none; }
.filter-tabs { display: flex; gap: 0; border: 1px solid var(--rule); background: var(--bg-1); width: fit-content; flex-wrap: nowrap; }
.ftab { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); background: transparent; border: none; border-right: 1px solid var(--rule); padding: 10px 16px; cursor: pointer; transition: color .18s, background .18s; white-space: nowrap; }
.ftab:last-child { border-right: none; }
.ftab:hover { color: var(--fg); background: var(--bg-2); }
.ftab.active { color: var(--bg); background: var(--copper); }


/* ── POST GRID ── */
.post-grid {
  padding: 0 clamp(20px,4vw,72px) 80px;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.post-card {
  background: var(--bg); padding: 32px 28px 28px;
  position: relative; overflow: hidden;
  transition: background .2s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.post-card:hover { background: var(--bg-2); }
.post-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--copper); transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.post-card:hover::before { transform: scaleY(1); }

.card-bg-num {
  position: absolute; bottom: -6px; right: 10px;
  font-family: var(--syne); font-size: 86px; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1px var(--fg-3);
  opacity: 0.2; pointer-events: none; user-select: none; line-height: 1;
  transition: opacity .2s;
}
.post-card:hover .card-bg-num { opacity: 0.4; }

.card-num-badge { font-family: var(--mono); font-size: 9px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 8px; }
.card-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.card-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); border: 1px solid rgba(192,122,58,0.25); padding: 3px 8px; }
.card-tag.live { color: #5eead4; border-color: rgba(94,234,212,0.25); }
.card-tag.buffered { color: #86efac; border-color: rgba(134,239,172,0.25); }
.card-tag.planned { color: #fbbf24; border-color: rgba(251,191,36,0.2); }
.card-difficulty { font-family: var(--mono); font-size: 10px; color: var(--fg-3); display: flex; align-items: center; gap: 3px; margin-left: auto; }
.diff-pip { width: 6px; height: 6px; background: var(--fg-3); }
.diff-pip.on { background: var(--copper); }

.card-title { font-family: var(--syne); font-size: clamp(17px,1.7vw,21px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--fg); margin-bottom: 10px; transition: color .2s; }
.post-card:hover .card-title { color: var(--copper-l); }
.card-excerpt { font-family: var(--lora); font-size: 13px; line-height: 1.78; color: var(--fg-2); margin-bottom: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); }
.card-meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.card-readtime { font-family: var(--mono); font-size: 10px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.post-card:hover .card-readtime { color: var(--copper-l); }
.card-readtime::after { content: "→"; font-size: 12px; }



/* ── SERIES INDEX ── */
.series-index { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-top: none; margin: 0 clamp(20px,4vw,72px) 80px; }
.si-row { display: grid; grid-template-columns: 36px 1fr auto auto auto; align-items: center; gap: 16px; padding: 13px 24px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background .15s, opacity .18s ease, transform .18s ease; position: relative; }
.si-row.si-hidden { opacity: 0; transform: scale(0.97); pointer-events: none; }
.si-row:last-child { border-bottom: none; }
.si-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--copper); transform: scaleY(0); transform-origin: top; transition: transform .25s ease; }
.si-row:hover { background: var(--bg-2); }
.si-row:hover::before { transform: scaleY(1); }
.si-num { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; text-align: right; }
.si-title { font-family: var(--syne); font-size: 13.5px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; line-height: 1.3; transition: color .15s; }
.si-row:hover .si-title { color: var(--copper-l); }
.si-title code { font-family: var(--mono); font-size: 0.85em; color: var(--cyan); }
.si-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); border: 1px solid rgba(192,122,58,0.2); padding: 2px 8px; white-space: nowrap; }
.si-status { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; min-width: 52px; text-align: center; }
.si-row.live .si-status { color: #5eead4; }
.si-row.buffered .si-status { color: #86efac; }
.si-row.planned .si-status { color: var(--fg-3); }
.si-time { font-family: var(--mono); font-size: 10px; color: var(--fg-3); white-space: nowrap; min-width: 44px; text-align: right; }
.si-divider { display: flex; align-items: center; gap: 16px; padding: 6px 24px; border-bottom: 1px solid var(--rule); }
.si-divider span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.si-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }


/* ── NEWSLETTER ── */
.newsletter { margin: 6rem clamp(20px,4vw,72px) 80px; border: 1px solid var(--rule-2); background: var(--bg-1); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.nl-left { padding: clamp(40px,5vw,64px); border-right: 1px solid var(--rule); position: relative; overflow: hidden; }
.nl-left::after { content: ""; position: absolute; bottom: -80px; left: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(192,122,58,0.07) 0%, transparent 70%); pointer-events: none; }
.nl-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.nl-eyebrow::before { content: "//"; opacity: 0.4; }
.nl-title { font-family: var(--syne); font-size: clamp(28px,3.5vw,46px); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; color: var(--fg); margin-bottom: 16px; }
.nl-title em { font-family: var(--lora); font-style: italic; font-weight: 400; color: var(--copper-l); }
.nl-body { font-family: var(--lora); font-size: 14px; line-height: 1.8; color: var(--fg-2); }
.nl-right { padding: clamp(40px,5vw,64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.nl-perks { display: flex; flex-direction: column; gap: 12px; }
.nl-perk { display: flex; align-items: flex-start; gap: 10px; font-family: var(--lora); font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.perk-check { font-family: var(--mono); font-size: 10px; color: var(--copper); margin-top: 3px; flex-shrink: 0; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input-row { display: flex; }
.nl-input { flex: 1; background: var(--bg-3); border: 1px solid var(--fg-3); border-right: none; padding: 12px 16px; font-family: var(--mono); font-size: 12px; color: var(--fg); outline: none; transition: border-color .2s; }
.nl-input:focus { border-color: var(--copper); }
.nl-input::placeholder { color: var(--fg-3); }
.nl-submit { background: var(--copper); border: none; padding: 12px 22px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.nl-submit:hover { opacity: 0.82; }
.nl-small { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }


/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--rule); margin-top: 6rem; padding: 32px clamp(20px,4vw,72px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo-bracket { font-family: var(--mono); font-size: 17px; color: var(--copper); }
.footer-logo-text { font-family: var(--syne); font-size: 14px; font-weight: 800; color: var(--fg); }
.footer-logo-text span { color: var(--copper-l); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-decoration: none; letter-spacing: 0.06em; transition: color .2s; }
.footer-links a:hover { color: var(--copper); }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.04em; }


/* ── POST PAGE ── */
.post-page { padding: clamp(40px,5vw,72px) clamp(20px,4vw,72px); margin-bottom: 96px; }

.post-header {
  max-width: 800px; margin: 0 auto 40px;
  padding-bottom: 32px; border-bottom: 1px solid var(--rule);
}
.post-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.post-title {
  font-family: var(--syne); font-size: clamp(28px,4vw,52px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--fg); margin-bottom: 18px;
}
.post-byline { font-family: var(--mono); font-size: 11px; color: var(--copper); display: flex; gap: 12px; flex-wrap: wrap; letter-spacing: 0.04em; }
.post-byline-dot { opacity: 0.4; }

.post-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: 1000px; margin: 0 auto; align-items: start; }

/* TOC */
.post-toc { position: sticky; top: 80px; }
.toc-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; opacity: 0.8; }
.toc-list { border-left: 2px solid var(--rule-2); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; }
.toc-item { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-decoration: none; letter-spacing: 0.04em; line-height: 1.4; transition: color .2s; }
.toc-item:hover { color: var(--fg); }
.toc-item.active { color: var(--copper); }
.toc-item.h3 { padding-left: 10px; font-size: 9px; }

/* Author bio */
.post-author-bio { max-width: 1000px; margin: 56px auto 0; padding: clamp(24px,3vw,40px); border: 1px solid var(--rule-2); background: var(--bg-1); }
.author-bio-inner { display: flex; gap: 20px; align-items: flex-start; }
.bio-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--copper); flex-shrink: 0; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-name { font-family: var(--syne); font-size: 17px; font-weight: 800; color: var(--fg); letter-spacing: -0.02em; margin-bottom: 2px; }
.bio-role { font-family: var(--lora); font-size: 13px; font-style: italic; color: var(--fg-2); margin-bottom: 10px; }
.bio-body { font-family: var(--lora); font-size: 14px; line-height: 1.75; color: var(--fg-2); margin-bottom: 12px; }
.bio-link { font-family: var(--mono); font-size: 10px; color: var(--copper); text-decoration: none; letter-spacing: 0.06em; transition: color .2s; }
.bio-link:hover { color: var(--copper-l); }

.related-posts { max-width: none; }


/* ── GHOST CONTENT STYLES ── */
/* Styles the HTML that Ghost renders from the editor */

.gh-content {
  font-family: var(--lora);
  font-size: 17px;
  line-height: 1.82;
  color: var(--fg-2);
}
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > h2 + *, .gh-content > h3 + * { margin-top: 0.8em; }

.gh-content h2 {
  font-family: var(--syne); font-size: clamp(20px,2.5vw,30px);
  font-weight: 700; letter-spacing: -0.025em; color: var(--fg);
  margin: 52px 0 0; padding-top: 12px;
  border-top: 2px solid rgba(192,122,58,0.3); line-height: 1.1;
}
.gh-content h3 {
  font-family: var(--syne); font-size: clamp(16px,1.8vw,20px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--fg);
  margin-top: 36px;
}
.gh-content h4 {
  font-family: var(--syne); font-size: 16px; font-weight: 600;
  color: var(--copper); margin-top: 28px;
}

.gh-content p { margin-bottom: 0; }
.gh-content strong { color: var(--fg); font-weight: 500; }
.gh-content em { font-style: italic; }

.gh-content a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.gh-content a:hover { color: var(--copper-l); }

.gh-content code {
  font-family: var(--mono); font-size: 0.88em;
  color: var(--cyan); background: var(--cyan-dim);
  padding: 1px 6px; border-radius: 3px;
}

.gh-content pre {
  background: #050709; border: 1px solid var(--fg-3);
  padding: 20px 24px; overflow-x: auto; position: relative;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
}
.gh-content pre code {
  color: #c9d1d9; background: transparent; padding: 0; border-radius: 0; font-size: inherit;
}

/* Language label badge — pure CSS, no JS needed */
.gh-content pre:has(code[class*="language-"])::before {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 10px; font-family: var(--mono);
  color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em;
  pointer-events: none;
}
.gh-content pre:has(code.language-csharp)::before     { content: "Csharp"; }
.gh-content pre:has(code.language-javascript)::before { content: "JS"; }
.gh-content pre:has(code.language-typescript)::before { content: "TS"; }
.gh-content pre:has(code.language-json)::before       { content: "JSON"; }
.gh-content pre:has(code.language-bash)::before,
.gh-content pre:has(code.language-shell)::before      { content: "Shell"; }
.gh-content pre:has(code.language-xml)::before        { content: "XML"; }
.gh-content pre:has(code.language-html)::before       { content: "HTML"; }
.gh-content pre:has(code.language-css)::before        { content: "CSS"; }
.gh-content pre:has(code.language-sql)::before        { content: "SQL"; }
.gh-content pre:has(code.language-yaml)::before       { content: "YAML"; }

/* Prism.js token colours — GitHub Dark palette */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8b949e; font-style: italic; }
.token.keyword, .token.operator { color: #ff7b72; }
.token.string, .token.char, .token.attr-value { color: #a5d6ff; }
.token.number, .token.boolean { color: #79c0ff; }
.token.function { color: #d2a8ff; }
.token.class-name, .token.type-name { color: #ffa657; }
.token.namespace { color: #ffa657; opacity: 0.85; }
.token.punctuation { color: #c9d1d9; }
.token.property, .token.tag, .token.attr-name { color: #7ee787; }
.token.regex, .token.important, .token.variable { color: #ffa657; }

.gh-content blockquote {
  border-left: 2px solid var(--copper); padding: 12px 20px;
  font-style: italic; color: var(--fg-2);
}
.gh-content blockquote p { margin: 0; }

.gh-content img { max-width: 100%; border: 1px solid var(--rule-2); }

.gh-content table { width: 100%; border-collapse: collapse; }
.gh-content th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); background: var(--bg-1); padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--rule-2); }
.gh-content td { font-family: var(--lora); font-size: 14px; color: var(--fg-2); padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.gh-content tr:hover td { background: var(--bg-2); }

.gh-content hr { border: none; border-top: 1px solid var(--rule-2); }

.gh-content ul, .gh-content ol { padding-left: 24px; }
.gh-content li { margin-bottom: 8px; }
.gh-content li::marker { color: var(--copper); }

/* Custom callout classes */
.callout-warning { background: rgba(255,107,0,0.1); border-left: 4px solid #ff6b00; padding: 1rem; margin: 1.5rem 0; border-radius: 4px; }
.callout-success { background: rgba(0,255,136,0.1); border-left: 4px solid #00ff88; padding: 1rem; margin: 1.5rem 0; border-radius: 4px; }
.callout-info    { background: rgba(0,191,255,0.1); border-left: 4px solid #00bfff; padding: 1rem; margin: 1.5rem 0; border-radius: 4px; }
.callout-neutral { background: rgba(150,150,150,0.1); border-left: 4px solid #999; padding: 1rem; margin: 1.5rem 0; border-radius: 4px; }
.callout-warning strong,
.callout-success strong,
.callout-info strong,
.callout-neutral strong { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; text-transform: none; font-weight: 600; letter-spacing: normal; }

/* Ghost callout card */
.gh-content .kg-callout-card {
  display: flex; gap: 14px; padding: 16px 20px;
  border-left: 3px solid var(--copper); background: var(--copper-dim);
}
.kg-callout-emoji { font-size: 18px; flex-shrink: 0; line-height: 1.5; }
.kg-callout-text { font-family: var(--lora); font-size: 14px; line-height: 1.7; color: var(--fg-2); }

/* Ghost bookmark card */
.kg-bookmark-card { border: 1px solid var(--rule-2); background: var(--bg-1); }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; padding: 20px; gap: 20px; transition: background .2s; }
.kg-bookmark-container:hover { background: var(--bg-2); }
.kg-bookmark-content { flex: 1; }
.kg-bookmark-title { font-family: var(--syne); font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.kg-bookmark-description { font-family: var(--lora); font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.kg-bookmark-metadata { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-top: 8px; }
.kg-bookmark-thumbnail img { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; }

/* Ghost image card */
.kg-image-card { margin: 28px 0; }
.kg-image-card img { max-width: 100%; display: block; }
.kg-image-card figcaption { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-align: center; padding-top: 8px; letter-spacing: 0.06em; }

/* Ghost video card */
.kg-video-card { margin: 28px 0; }
.kg-video-card video { max-width: 100%; }

/* Ghost toggle card */
.kg-toggle-card { border: 1px solid var(--rule-2); margin: 24px 0; }
.kg-toggle-heading { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--syne); font-size: 15px; font-weight: 700; color: var(--fg); }
.kg-toggle-content { padding: 0 18px 14px; font-family: var(--lora); font-size: 14px; line-height: 1.75; color: var(--fg-2); }

/* ── KG WIDTH CLASSES (required by Ghost) ── */
/* These allow images/embeds to break out of the content column */

.gh-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 0 auto;
  transform: translateX(calc(50% - 50vw * 0.85));
}

.gh-content .kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── ADDITIONAL REQUIRED CARD CLASSES ── */

/* Gallery card */
.kg-gallery-card { margin: 28px 0; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; width: 100%; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Embed card */
.kg-embed-card { margin: 28px 0; }
.kg-embed-card iframe { width: 100%; border: none; }

/* File card */
.kg-file-card { margin: 24px 0; border: 1px solid var(--rule-2); background: var(--bg-1); }
.kg-file-card a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: inherit; transition: background .2s; }
.kg-file-card a:hover { background: var(--bg-2); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-family: var(--syne); font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 2px; }
.kg-file-card-caption { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.kg-file-card-metadata { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.kg-file-card-icon { flex-shrink: 0; }
.kg-file-card-icon svg { width: 24px; height: 24px; fill: var(--copper); }

/* Audio card */
.kg-audio-card { margin: 24px 0; border: 1px solid var(--rule-2); background: var(--bg-1); padding: 16px 20px; }
.kg-audio-title { font-family: var(--syne); font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.kg-audio-player-container audio { width: 100%; accent-color: var(--copper); }

/* Product card */
.kg-product-card { margin: 28px 0; border: 1px solid var(--rule-2); background: var(--bg-1); padding: 24px; }
.kg-product-card-image { margin-bottom: 16px; }
.kg-product-card-image img { max-width: 100%; }
.kg-product-card-title { font-family: var(--syne); font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.kg-product-card-description { font-family: var(--lora); font-size: 14px; line-height: 1.7; color: var(--fg-2); margin-bottom: 16px; }
.kg-product-card-rating { display: flex; gap: 4px; margin-bottom: 12px; }
.kg-product-card-rating-star svg { width: 16px; height: 16px; fill: var(--copper); }
.kg-product-card-button a { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--copper); text-decoration: none; padding: 10px 20px; transition: opacity .2s; }
.kg-product-card-button a:hover { opacity: 0.82; }

/* Header card */
.kg-header-card { margin: 28px 0; padding: clamp(32px,5vw,64px); text-align: center; background: var(--bg-1); border: 1px solid var(--rule-2); }
.kg-header-card h2 { font-family: var(--syne); font-size: clamp(24px,4vw,40px); font-weight: 800; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 12px; border: none; padding: 0; margin-top: 0; }
.kg-header-card p { font-family: var(--lora); font-size: 16px; line-height: 1.7; color: var(--fg-2); margin-bottom: 20px; }
.kg-header-card .kg-btn { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--copper); text-decoration: none; padding: 10px 22px; transition: opacity .2s; }
.kg-header-card .kg-btn:hover { opacity: 0.82; }

/* NFT card (required by Ghost validator) */
.kg-nft-card { margin: 24px 0; }


/* ── READING PROGRESS BAR ── */
#reading-progress {
  position: fixed; top: 60px; left: 0;
  width: 0%; height: 2px;
  background: var(--copper);
  z-index: 199; pointer-events: none;
  transition: width .08s linear;
}


/* ── ABOUT PAGE ── */
.about-hero {
  padding: clamp(64px,8vw,100px) clamp(20px,4vw,72px) 0;
  display: grid; grid-template-columns: 1fr auto;
  gap: 80px; align-items: start;
  animation: fadeUp .7s .15s ease both;
}
.about-hero-left { padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.about-hero-right {
  padding-top: 44px; padding-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.about-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--copper);
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.about-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--copper); opacity: 0.6; }

.about-name {
  font-family: var(--syne); font-size: clamp(52px,7.5vw,88px);
  font-weight: 800; line-height: 0.94; letter-spacing: -0.04em;
  color: var(--fg); margin-bottom: 18px;
}
.about-name em {
  display: block; font-family: var(--lora); font-weight: 400; font-style: italic;
  color: var(--fg-2); font-size: 0.86em; letter-spacing: -0.02em;
}

.about-subtitle { font-family: var(--lora); font-size: 17px; font-style: italic; color: var(--fg-2); margin-bottom: 28px; }

.about-location {
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.1em; margin-bottom: 40px;
  display: flex; align-items: center; gap: 8px;
}
.about-location::before { content: "●"; color: var(--copper); font-size: 8px; }

.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin-bottom: 40px;
}
.about-stat { background: var(--bg-1); padding: 20px 22px; }
.about-stat-num {
  font-family: var(--syne); font-size: 36px; font-weight: 800;
  letter-spacing: -0.04em; color: var(--copper-l); line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.about-stat-suffix { font-family: var(--syne); font-size: 20px; font-weight: 400; color: var(--fg-3); }
.about-stat-label {
  font-family: var(--mono); font-size: 9px; color: var(--fg-3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px;
}

.about-story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 0 clamp(20px,4vw,72px) 80px;
}
.about-story-col { background: var(--bg); padding: clamp(32px,4vw,56px); }
.about-story-col p { font-family: var(--lora); font-size: 17px; line-height: 1.85; color: var(--fg-2); }
.about-story-col p + p { margin-top: 1.4em; }
.about-story-col strong { color: var(--fg); font-weight: 500; }

.about-expertise {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 0 clamp(20px,4vw,72px) 80px;
}
.about-skill { background: var(--bg-1); padding: 24px 22px; }
.about-skill-cat {
  font-family: var(--mono); font-size: 9px; color: var(--copper);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px;
}
.about-skill-name { font-family: var(--syne); font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.about-skill-desc { font-family: var(--lora); font-size: 13px; line-height: 1.7; color: var(--fg-2); }

.about-paths {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin: 0 clamp(20px,4vw,72px) 80px;
}
.about-path {
  background: var(--bg); padding: clamp(28px,3.5vw,44px);
  position: relative; overflow: hidden;
  transition: background .2s;
}
.about-path::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--copper); transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.about-path:hover { background: var(--bg-2); }
.about-path:hover::before { transform: scaleY(1); }
.about-path-label {
  font-family: var(--mono); font-size: 9px; color: var(--copper);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.about-path-title {
  font-family: var(--syne); font-size: 16px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.2;
}
.about-path-desc { font-family: var(--lora); font-size: 13px; line-height: 1.75; color: var(--fg-2); margin-bottom: 20px; }
.about-path-links { display: flex; flex-direction: column; gap: 6px; }
.about-path-link {
  font-family: var(--mono); font-size: 10px; color: var(--fg-3);
  text-decoration: none; letter-spacing: 0.04em; padding-left: 12px;
  position: relative; transition: color .2s;
}
.about-path-link::before { content: "→"; position: absolute; left: 0; color: var(--copper); }
.about-path-link:hover { color: var(--copper-l); }


/* ── FILTER CARD TRANSITIONS ── */
.post-card {
  /* added opacity + transform to the existing transition */
  transition: background .2s, opacity .22s ease, transform .22s ease;
}
.post-card.is-hidden { opacity: 0; transform: scale(0.97); pointer-events: none; }


/* ── ANIMATIONS ── */
@keyframes fadeUp { from { transform: translateY(22px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }


/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .author-panel { flex-direction: row; padding-bottom: 56px; justify-content: flex-start; align-items: center; gap: 20px; }
  .author-panel-tags { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .author-panel-link { margin-top: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; gap: 0; }
  .about-hero-right { flex-direction: row; justify-content: flex-start; padding-top: 32px; }
  .about-expertise { grid-template-columns: repeat(2,1fr); }
  .about-paths { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { display: none; }
}

@media (max-width: 680px) {
  .header-author { display: none; }
  .post-grid { grid-template-columns: 1fr; background: transparent; border: none; gap: 0; }
  .post-card { border: 1px solid var(--rule); margin-bottom: 1px; }
  .newsletter { grid-template-columns: 1fr; }
  .nl-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .header-nav .nav-link { display: none; }
  .si-row { grid-template-columns: 30px 1fr auto; }
  .si-tag, .si-time { display: none; }
  .si-divider { padding: 4px 16px; }
  .author-bio-inner { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
  .about-expertise { grid-template-columns: 1fr 1fr; }

  /* Fix — Viewport overflow containment */
  body { overflow-x: hidden; }
  .site-wrap { overflow-x: hidden; max-width: 100vw; }

  /* Fix 1 — Post body horizontal overflow */
  .post-page { padding: 24px 20px; }
  .post-header { padding: 0 0 24px; }
  .post-layout { display: block; }
  .post-body.gh-content { width: 100%; min-width: 0; }
  .gh-content pre { overflow-x: auto; -webkit-overflow-scrolling: touch; width: calc(100vw - 40px); max-width: calc(100vw - 40px); box-sizing: border-box; white-space: pre; padding: 16px; }
  .gh-content pre code { display: inline-block; white-space: pre; word-break: normal; }

  /* Fix 2 — Author panel stacking on homepage */
  .author-panel { flex-direction: column; align-items: center; text-align: center; padding: 32px 20px; }
  .author-panel-tags { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .author-photo-ring { width: 120px; height: 120px; }
  .author-photo-ring img { width: 120px; height: 120px; }

  /* Fix 3 — Status bar wrapping */
  .status-bar { flex-wrap: nowrap; white-space: nowrap; }
  .sb-live { flex-shrink: 0; }
  .sb-item, .sb-sep { display: none; }

  /* Fix 4 — Hide reading progress bar on mobile */
  #reading-progress { display: none; }
}
