/* ============================================================
   Jan Bosch Theme — Design 5: The Keynote Stage
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:       #0e1116;
  --surface:  #161a22;
  --card:     #1b202b;
  --border:   #2a3140;
  --text:     #e8e6df;
  --text2:    #9aa3b2;
  --text3:    #5c6675;
  --gold:     #d4a93c;
  --blue:     #4a8cc7;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter Tight', system-ui, sans-serif;

  --radius: 4px;
  --max-w:  1200px;
  --col-gap: 24px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   Top Navigation Bar
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__mark {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}

.site-header__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}

.site-header__name span {
  color: var(--text3);
  font-weight: 300;
  margin-left: 8px;
}

.site-header__nav {
  display: flex;
  gap: 30px;
}

.site-header__nav a {
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
  transition: color .2s;
}

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

.site-header__cta {
  font-size: 12px;
  background: var(--gold);
  color: #1a1a1a;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: opacity .2s;
  white-space: nowrap;
}

.site-header__cta:hover { opacity: .88; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 900px) {
  .site-header { padding: 16px 20px; }
  .site-header__nav { display: none; }
  .nav-toggle { display: block; }

  .site-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 64px 40px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 30% 30%, rgba(212,169,60,.08), transparent 60%);
}

.hero__eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.005em;
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__headline .hero__headline--small {
  display: block;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--text2);
  margin-top: 6px;
  font-style: italic;
}

.hero__sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin-top: 24px;
  max-width: 560px;
  font-weight: 300;
}

.hero__roles {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--text3);
}

.hero__roles span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__roles span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.btn--primary {
  background: var(--gold);
  color: #1a1a1a;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: var(--radius);
  border: none;
  transition: opacity .2s;
}

.btn--primary:hover { opacity: .88; }

.btn--secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}

.btn--secondary:hover { border-color: var(--gold); }

.btn--text {
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--text3);
  text-underline-offset: 4px;
  transition: color .2s;
}

.btn--text:hover { color: var(--gold); }

/* Keynote card */
.keynote-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
}

.keynote-card__badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 500;
}

.keynote-card__event {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 14px;
  font-weight: 500;
}

.keynote-card__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.keynote-card__meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.keynote-card__meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.keynote-card__meta-key { color: var(--text3); }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }
}

/* ============================================================
   Affiliations Band
   ============================================================ */
.affiliations {
  padding: 26px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.affiliations__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.affiliations__label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 500;
}

.affiliations__value {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
}

.affiliations__value a {
  border-bottom: 1px solid var(--text3);
  transition: border-color .2s, color .2s;
}

.affiliations__value a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.affiliations__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .affiliations { padding: 24px 20px; gap: 20px; }
  .affiliations__divider { display: none; }
}

/* ============================================================
   About Band
   ============================================================ */
.about {
  padding: 60px 40px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.about__portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: #0a0d12;
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(.92) contrast(1.02);
}

.about__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,17,22,.4) 100%);
  pointer-events: none;
}

.about__eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.about__quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.3;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
}

.about__quote::before {
  content: '\201C';
  color: var(--gold);
  font-size: 48px;
  line-height: 0;
  vertical-align: -12px;
  margin-right: 4px;
}

.about__bio {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text2);
  font-weight: 300;
}

.about__bio strong {
  color: var(--text);
  font-weight: 400;
}

.about__cta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity .2s;
}

.about__cta:hover { opacity: .75; }

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 32px;
  }
  .about__portrait { max-width: 280px; }
}

/* ============================================================
   Section Generic
   ============================================================ */
.section {
  padding: 60px 40px;
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section__eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.section__title em {
  font-style: italic;
  color: var(--text2);
}

.section__link {
  font-size: 13px;
  color: var(--text2);
  border-bottom: 1px solid var(--text3);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.section__link:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 768px) {
  .section { padding: 40px 20px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   Post Cards (Writing section)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--col-gap);
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: border-color .2s;
}

.post-card:hover { border-color: var(--gold); }

.post-card__tag {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text);
  flex: 1;
}

.post-card--secondary .post-card__title { font-size: 20px; }

.post-card__meta {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid .post-card:first-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid .post-card:first-child { grid-column: span 1; }
}

/* ============================================================
   Research Section
   ============================================================ */
.research {
  padding: 48px 40px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.research__sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin-top: 12px;
}

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

.research__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  transition: border-color .2s;
  min-height: 140px;
}

.research__link:hover { border-color: var(--gold); }
.research__link:hover .research__arrow { color: var(--gold); transform: translateX(2px); }

.research__link-name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.research__link-desc {
  font-size: 12px;
  color: var(--text2);
  margin-top: 6px;
  line-height: 1.5;
}

.research__arrow {
  font-size: 14px;
  color: var(--text3);
  transition: all .2s;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .research { grid-template-columns: 1fr; padding: 40px 20px; gap: 24px; }
  .research__links { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .research__links { grid-template-columns: 1fr; }
}

/* ============================================================
   Books Section
   ============================================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

.book-card {
  display: flex;
  gap: 18px;
  background: var(--card);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  transition: border-color .2s;
}

.book-card:hover { border-color: var(--gold); }

.book-card__cover {
  width: 60px;
  height: 84px;
  background: #0a0d12;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  flex-shrink: 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.book-card__cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__cover-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 9px;
  color: var(--text2);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.book-card__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 4px;
}

.book-card__sub {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .04em;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .books-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .books-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Newsletter Section
   ============================================================ */
.newsletter {
  padding: 48px 40px;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.newsletter__eyebrow {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.newsletter__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 8px;
}

.newsletter__sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}

/* Ghost member subscribe form */
.newsletter__form {
  display: inline-flex;
  gap: 8px;
  max-width: 480px;
  width: 100%;
}

.newsletter__input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
  border-radius: var(--radius);
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s;
}

.newsletter__input:focus { border-color: var(--gold); }
.newsletter__input::placeholder { color: var(--text3); }

.newsletter__btn {
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--sans);
  white-space: nowrap;
  transition: opacity .2s;
}

.newsletter__btn:hover { opacity: .88; }

@media (max-width: 600px) {
  .newsletter { padding: 40px 20px; }
  .newsletter__form { flex-direction: column; }
}

/* ============================================================
   Individual Post Page
   ============================================================ */
.post-header {
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

.post-header__tag {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.post-header__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-style: italic;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 20px;
}

.post-header__meta {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-header__meta span { margin-right: 16px; }

.post-feature-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text2);
  font-weight: 300;
}

.post-content p  { margin-bottom: 1.5em; }
.post-content h2 { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--text); margin: 2em 0 .75em; font-weight: 400; }
.post-content h3 { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--text); margin: 1.75em 0 .5em; font-weight: 400; }
.post-content a  { color: var(--gold); border-bottom: 1px solid rgba(212,169,60,.4); transition: border-color .2s; }
.post-content a:hover { border-color: var(--gold); }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content em { font-style: italic; }
.post-content blockquote { border-left: 2px solid var(--gold); padding-left: 24px; margin: 2em 0; font-style: italic; font-family: var(--serif); font-size: 20px; color: var(--text); }
.post-content code { background: var(--card); border: 1px solid var(--border); padding: 2px 6px; border-radius: 3px; font-size: .9em; color: var(--gold); }
.post-content pre { background: var(--card); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 1.5em 0; }
.post-content pre code { background: none; border: none; padding: 0; color: var(--text2); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: .5em; }
.post-content img { border-radius: var(--radius); margin: 2em auto; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

@media (max-width: 768px) {
  .post-header { padding: 32px 20px 24px; }
  .post-content { padding: 32px 20px; font-size: 16px; }
}

/* ============================================================
   Post Navigation & Related
   ============================================================ */
.post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 40px 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.post-nav__link {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
}

.post-nav__link:hover { color: var(--gold); }
.post-nav__link--prev::before { content: '← '; }
.post-nav__link--next::after  { content: ' →'; }

/* ============================================================
   Tag / Archive Page
   ============================================================ */
.archive-header {
  padding: 48px 40px 32px;
  border-bottom: 1px solid var(--border);
}

.archive-header__eyebrow {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.archive-header__title {
  font-family: var(--serif);
  font-size: 42px;
  font-style: italic;
  font-weight: 400;
}

.archive-header__count {
  font-size: 13px;
  color: var(--text3);
  margin-top: 8px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  padding: 40px;
}

@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr 1fr; padding: 24px 20px; } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

.pagination__link {
  font-size: 13px;
  color: var(--text2);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}

.pagination__link:hover { border-color: var(--gold); color: var(--gold); }
.pagination__info { font-size: 13px; color: var(--text3); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__links a {
  transition: color .2s;
}

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

@media (max-width: 600px) {
  .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Ghost-specific: Member notice, alerts
   ============================================================ */
.gh-portal-trigger { display: none !important; }

.notice {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  margin: 16px 0;
}

.notice--success { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.3); color: #3fb950; }
.notice--error   { background: rgba(247,129,102,.1); border: 1px solid rgba(247,129,102,.3); color: #f78166; }

/* ============================================================
   Ghost Card Width Classes (required by gscan)
   ============================================================ */

/* Wide cards break slightly outside the content column */
.post-content .kg-width-wide {
  margin-left: calc(50% - 50vw + 80px);
  margin-right: calc(50% - 50vw + 80px);
  max-width: 1000px;
  width: calc(100vw - 160px);
}

/* Full-width cards stretch edge to edge */
.post-content .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.post-content .kg-image { max-width: 100%; }

.post-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2em 0;
}

.post-content .kg-gallery-row {
  display: flex;
  gap: 8px;
}

.post-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content .kg-bookmark-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 1.5em 0;
}

.post-content .kg-bookmark-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.post-content .kg-bookmark-description {
  font-size: 13px;
  color: var(--text2);
}

.post-content .kg-bookmark-url {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
  display: block;
}

.post-content .kg-callout-card {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  display: flex;
  gap: 12px;
}

.post-content .kg-callout-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

.post-content .kg-video-card {
  margin: 2em 0;
}

.post-content .kg-video-card video {
  width: 100%;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .post-content .kg-width-wide,
  .post-content .kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
}

/* ============================================================
   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;
}
