
/* ============================================================
   KoohRun — Single Post
   Content wraps around floating sidebar; expands to full width
   when sidebar ends. No sticky. No hashtags. Narrow sidebar.
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#0b0b0b;--bg-deep:#070707;
  --surface:#0e0e0e;--surface-2:#131313;--surface-3:#181818;
  --border:rgba(255,255,255,.07);--border-2:rgba(255,255,255,.13);
  --text:#f2efe7;--text-2:#bdb8ad;--text-3:#837d72;--text-4:#524d43;
  --gold:#d4af6a;--gold-hi:#e8c98a;
  --gold-soft:rgba(212,175,106,.1);--gold-line:rgba(212,175,106,.22);
  --ff:'B Zar',BZar,Tahoma,serif;
  --max-w:1440px;
}

html{
  background:var(--bg-deep);color:var(--text);font-family:var(--ff);
  font-size:17px;line-height:1.7;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-size-adjust:100%;scroll-behavior:smooth;
  scroll-padding-top:70px;
}
body{
  background:var(--bg);min-height:100vh;overflow-x:hidden;position:relative;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.035;mix-blend-mode:overlay;
}
body::after{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%,rgba(212,175,106,.045),transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%,rgba(0,0,0,.5),transparent 70%);
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
figure{margin:0}

a:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:3px}

/* ============================================================
   HEADER — minimal
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(7,7,7,.96);
  backdrop-filter:saturate(150%) blur(14px);
  -webkit-backdrop-filter:saturate(150%) blur(14px);
  border-bottom:1px solid rgba(212,175,106,.1);
}
.header-inner{
  max-width:var(--max-w);
  margin:0 auto;
  padding:16px 32px;
  text-align:center;
}
.brand{
  display:inline-block;
  color:var(--gold);
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:.02em;
  transition:color .2s;
}
.brand:hover{color:var(--gold-hi)}
.progress-track{
  height:2px;
  background:transparent;
  position:relative;
}
.progress-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--gold),var(--gold-hi));
  box-shadow:0 0 8px rgba(212,175,106,.4);
  transition:width .1s linear;
  border-radius:0 1px 1px 0;
}

/* ============================================================
   HERO — image beside text
   ============================================================ */
.article-hero{
  max-width:var(--max-w);
  margin:0 auto;
  padding:48px 32px 40px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px;
  align-items:center;
}
.hero-text{
  display:flex;
  flex-direction:column;
  gap:22px;
  min-width:0;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.85rem;
  color:var(--gold);
  font-weight:700;
  letter-spacing:.06em;
  width:fit-content;
}
.kicker::before{
  content:"";
  width:28px;height:2px;
  background:var(--gold);
  border-radius:1px;
}
.title{
  font-size:clamp(2rem,3vw,2.7rem);
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.012em;
  color:var(--text);
  text-wrap:balance;
  margin:0;
}
.deck{
  font-size:1.18rem;
  line-height:1.85;
  color:var(--text-2);
  margin:0;
  text-align:justify;
  padding-right:14px;
  border-right:2px solid var(--gold);
}
.hero-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.92rem;
  color:var(--text-3);
  flex-wrap:wrap;
}
.author{
  color:var(--gold);
  font-weight:600;
}
.sep{color:var(--text-4)}
.hero-image{
  aspect-ratio:1/1;
  border-radius:12px;
  overflow:hidden;
  background:var(--surface-3);
  border:1px solid var(--border-2);
  box-shadow:0 20px 48px rgba(0,0,0,.5);
}
.hero-image img{
  width:100%;height:100%;object-fit:cover;
}

/* ============================================================
   ARTICLE BODY — float layout
   Content wraps around sidebar, then expands to full width
   ============================================================ */
.article-body{
  display:flow-root;
  max-width:var(--max-w);
  margin:0 auto;
  padding:40px 32px 80px;
  border-top:1px solid var(--border);
}

/* Sidebar floats to physical left (visual left in RTL).
   Content flows to its right, wrapping naturally. */
.sidebar{
  float:left;
  width:300px;
  margin-right:44px;
  margin-bottom:32px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.sidebar-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:18px 20px;
}
.sidebar-title{
  font-size:.98rem;
  font-weight:700;
  color:var(--gold);
  padding-bottom:12px;
  margin-bottom:10px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:8px;
}
.sidebar-title::before{
  content:"";
  width:3px;height:1.1em;
  background:var(--gold);
  border-radius:2px;
}

.toc-list{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.toc-list a{
  display:block;
  padding:8px 11px;
  font-size:.88rem;
  line-height:1.6;
  color:var(--text-2);
  border-right:2px solid transparent;
  border-radius:0 6px 6px 0;
  transition:all .2s;
}
.toc-list a:hover,
.toc-list a.active{
  color:var(--gold);
  background:var(--gold-soft);
  border-right-color:var(--gold);
}

.latest-list{
  list-style:none;
  padding:0;
  margin:0;
}
.latest-list li{
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.latest-list li:last-child{
  border-bottom:0;
  padding-bottom:2px;
}
.latest-list a{
  display:block;
  font-size:.88rem;
  line-height:1.6;
  color:var(--text);
  transition:color .2s;
}
.latest-list a:hover{
  color:var(--gold-hi);
}

/* ============================================================
   CONTENT
   ============================================================ */
.content{
  min-width:0;
}

.content .lead{
  font-size:1.22rem;
  line-height:1.95;
  color:#f0ece3;
  font-weight:500;
  padding-right:18px;
  border-right:3px solid var(--gold);
  margin-bottom:32px;
  text-align:justify;
}

.content p{
  font-size:1.1rem;
  line-height:2.05;
  color:#e2ddd4;
  margin-bottom:20px;
  text-align:justify;
  text-justify:inter-word;
}

.content h2{
  font-size:1.5rem;
  font-weight:700;
  line-height:1.5;
  color:var(--gold-hi);
  margin:44px 0 16px;
  padding-right:16px;
  border-right:3px solid var(--gold);
  letter-spacing:-.005em;
}

.content blockquote{
  margin:28px 0;
  padding:20px 24px;
  background:linear-gradient(135deg,#15140f 0%,#0e0e0e 100%);
  border-right:3px solid var(--gold);
  border-radius:0 8px 8px 0;
  position:relative;
}
.content blockquote::before{
  content:"«";
  position:absolute;
  top:-.2rem;right:1rem;
  font-size:3.2rem;
  line-height:1;
  color:var(--gold);
  opacity:.15;
  font-family:Georgia,serif;
  pointer-events:none;
}
.content blockquote p{
  font-size:1.05rem;
  line-height:1.9;
  color:#ede5d3;
  margin:0;
  font-style:italic;
  position:relative;
}

.content ul{
  list-style:none;
  padding-right:20px;
  margin:16px 0 24px;
}
.content ul li{
  position:relative;
  padding-right:22px;
  margin-bottom:12px;
  font-size:1.05rem;
  line-height:1.9;
  color:#e2ddd4;
}
.content ul li::before{
  content:"";
  position:absolute;
  right:0;
  top:13px;
  width:6px;height:6px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 3px rgba(212,175,106,.12);
}

.content a{
  color:var(--gold);
  text-decoration:underline;
  text-decoration-color:rgba(212,175,106,.45);
  text-underline-offset:3px;
  transition:color .2s;
}
.content a:hover{color:var(--gold-hi)}

/* Tags — NO hashtag */
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:44px;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.tag{
  display:inline-block;
  padding:7px 15px;
  font-size:.82rem;
  color:var(--text-2);
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
  transition:all .2s;
}
.tag:hover{
  color:var(--gold);
  border-color:var(--gold-line);
  background:var(--gold-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  padding:32px 24px;
  text-align:center;
  border-top:1px solid rgba(212,175,106,.15);
  background:var(--bg-deep);
  font-size:.86rem;
  color:var(--text-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  .hero-grid{
    grid-template-columns:1fr;
    gap:28px;
  }
  .hero-image{
    order:-1;
    max-width:520px;
    margin:0 auto;
    width:100%;
  }
  /* Disable float, use flex column */
  .article-body{
    display:flex;
    flex-direction:column;
  }
  .content{order:1}
  .sidebar{
    order:2;
    float:none;
    width:100%;
    margin:28px 0 0 0;
  }
}

@media(max-width:760px){
  html{font-size:16px;scroll-padding-top:60px}
  .header-inner{padding:12px 18px}
  .brand{font-size:1.1rem}
  .article-hero{padding:28px 18px 24px}
  .title{font-size:1.6rem;line-height:1.4}
  .deck{font-size:1rem;line-height:1.8}
  .hero-meta{font-size:.85rem}
  .article-body{padding:28px 18px 48px}
  .content .lead{font-size:1.08rem;line-height:1.9}
  .content p{font-size:1rem;line-height:1.95}
  .content h2{font-size:1.28rem;margin-top:32px}
  .content blockquote p{font-size:1rem}
  .sidebar-card{padding:16px 18px}
  .latest-list a{font-size:.84rem}
  .site-footer{padding:24px 16px;font-size:.8rem}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important}
}

::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:var(--bg-deep)}
::-webkit-scrollbar-thumb{background:rgba(212,175,106,.2);border-radius:5px;border:2px solid var(--bg-deep)}
::-webkit-scrollbar-thumb:hover{background:rgba(212,175,106,.35)}

/* WordPress integration and article reading baseline. */
.is-single .main-content{max-width:none;padding:0 0 3rem}
.single-article{max-width:1600px;margin:0 auto}
.article-body{max-width:1460px}
.content p{font-size:clamp(20px,1.55vw,22.5px);line-height:2.04;margin-bottom:1.28em}
.content h2{font-size:clamp(25px,2.3vw,33px)}
.content h3{font-size:clamp(22px,1.95vw,28px);color:#d7bd8d;line-height:1.6;margin:2rem 0 1rem}
.content .lead{font-size:clamp(24px,2.15vw,31px);line-height:1.9;color:#efd7a6}
@media(max-width:760px){.content p{font-size:19.5px;line-height:2.02}.content .lead{font-size:24px}.content h2{font-size:25px}.content h3{font-size:22px}}


/* WordPress single integration refinements */
.is-single .main-content{max-width:none;padding:0 0 3rem}
.single-article{max-width:1600px;margin:0 auto}
.article-hero{max-width:1460px;padding-inline:clamp(20px,3.5vw,52px)}
.hero-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,.9fr);gap:clamp(26px,3.4vw,52px)}
.hero-image{aspect-ratio:auto;width:100%;max-width:420px;justify-self:start;align-self:center;height:auto;padding:6px;border:1px solid rgba(197,166,110,.42);border-radius:2px;background:#191914;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.hero-image img{width:100%;height:auto;max-height:460px;object-fit:contain}
.article-body{max-width:1460px}
.content p{font-size:clamp(20px,1.55vw,22.5px);line-height:2.04;margin-bottom:1.28em;color:#ded8cd}
.content .lead{font-size:clamp(24px,2.15vw,31px);line-height:1.9;color:#efd7a6}
.content h2{font-size:clamp(25px,2.3vw,33px);color:#f0d9ad}
.content h3{font-size:clamp(22px,1.95vw,28px);color:#d7bd8d;line-height:1.6;margin:2rem 0 1rem}
.content h4{font-size:clamp(20px,1.55vw,22px);color:#d7bd8d}
.author-box{display:flex;align-items:flex-start;gap:1rem;margin:3rem 0 0;padding:1.2rem 1.35rem;background:#10100e;border:1px solid rgba(197,166,110,.18);border-right:3px solid #b99a62}
.author-box__avatar{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#242119;color:#e8c98a;font-size:1.3rem;font-weight:700}
.author-box__name{color:#f0d9ad;font-size:1.15rem;margin:0 0 .25rem}
.author-box__bio{color:#bdb8ad;font-size:.95rem;line-height:1.8;margin:0}
.related-section{max-width:1460px;margin:0 auto;padding:1rem clamp(20px,3.5vw,52px) 3rem}
.related-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.related-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:.85rem;align-items:center;padding:.75rem;background:#10100e;border:1px solid var(--border);border-radius:7px;min-width:0}
.related-card__media{aspect-ratio:4/3;overflow:hidden;background:var(--surface-3)}
.related-card__media img{width:100%;height:100%;object-fit:cover}
.related-card__cat{font-size:.78rem;color:var(--gold)}
.related-card__title{font-size:.98rem;line-height:1.6;color:var(--text)}
.related-card:hover{border-color:var(--gold-line)}
.related-card:hover .related-card__title{color:var(--gold-hi)}
.single-empty{max-width:900px;margin:3rem auto;padding:2rem;text-align:center;color:var(--text-2)}
@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:1.6rem}
  .hero-image{order:-1;justify-self:center;width:min(100%,420px);max-width:420px;margin:0 auto}
  .article-body{display:flex;flex-direction:column;padding:2rem clamp(22px,4vw,44px) 3rem}
  .content{order:1}
  .sidebar{order:2;float:none;width:100%;margin:2rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .content p{font-size:20px;line-height:2.02}
  .related-list{grid-template-columns:1fr}
}
@media(max-width:760px){
  .article-hero{padding:28px 18px 24px}
  .title{font-size:clamp(31px,8vw,39px);line-height:1.5}
  .deck{font-size:1.08rem;line-height:1.9}
  .hero-text{gap:1rem}
  .hero-image{width:min(calc(100% - 44px),420px);max-width:420px;margin:0 auto;padding:6px}
  .article-body{padding:28px 18px 48px}
  .content .lead{font-size:24px;line-height:1.9}
  .content p{font-size:19.5px;line-height:2.02}
  .content h2{font-size:25px;margin-top:32px}
  .content h3{font-size:22px}
  .sidebar{grid-template-columns:1fr}
  .sidebar-card{padding:16px 18px}
  .author-box{padding:1rem}
  .related-section{padding-inline:18px}
}
@media(max-width:360px){
  .article-hero{padding-inline:14px}
  .article-body{padding-inline:14px}
  .hero-image{width:min(calc(100% - 28px),420px)}
}

@media(min-width:1025px){.hero-image{justify-self:end}}

/* Post 1332: compact title, byline and featured image header */
