/* ======================================================
   SINGLE POST — PREMIUM EDITORIAL (V7) — ORANGE PREMIUM TOUCH
   File: /assets/css/single-post.css

   Purpose:
   - Premium editorial single post with brand-like orange accents (scoped to single post only).
   - ✅ Keeps your 2-col layout fix (read column + sidebar).
   - ✅ TOC default collapsed supported (.is-collapsed).
   - ✅ Adds premium orange styling: headings, TOC, links, blockquotes, tables, meta.

   Related:
   - /assets/css/sidebar.css (global layout system)
====================================================== */

/* Force ONLY single post width */
body.single-post{
  --stm-content-width: 1500px;

  /* Premium accent palette (scoped) */
  --stm-sp-orange: #ff7a00;         /* brand-like orange */
  --stm-sp-orange-2: #ff9a3d;       /* soft highlight */
  --stm-sp-orange-soft: rgba(255,122,0,.10);
  --stm-sp-orange-soft2: rgba(255,122,0,.16);
  --stm-sp-link: #0b5bd3;           /* keeps your existing link vibe */
  --stm-sp-link-hover: #ff7a00;     /* orange hover */
}

.stm-sp{
  --stm-sp-wrap: 1450px;
  --stm-sp-read: 1100px;
  --stm-sp-gap: 20px;

  --stm-sp-text: rgba(0,0,0,.88);
  --stm-sp-muted: rgba(0,0,0,.62);
  --stm-sp-line: rgba(0,0,0,.09);
  --stm-sp-accent: var(--stm-sp-orange); /* ✅ now orange */

  padding: 44px 0 72px;
}

/* Outer container */
.stm-sp__wrap{
  max-width: var(--stm-sp-wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================================
   Layout (desktop)
====================================================== */
@media (min-width: 992px){
  .stm-sp .stm-layout.stm-layout--right{
    grid-template-columns: minmax(0, var(--stm-sp-read)) var(--stm-sidebar-width) !important;
    column-gap: var(--stm-sp-gap) !important;
    justify-content: center;
    align-items: start;
  }
  .stm-sp .stm-layout__content{ min-width: 0; }
  .stm-sp aside.stm-sidebar{ min-width: 0; }
}

/* =========================
   Header
========================= */
.stm-sp__header{
  max-width: var(--stm-sp-read);
  margin: 0 0 18px;
}

.stm-sp__kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stm-sp-muted);
  margin: 0 0 12px;
}

.stm-sp__kicker a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.stm-sp__kicker a:hover{
  border-bottom-color: var(--stm-sp-orange-soft2);
}

.stm-sp__title{
  font-size: clamp(30px, 3.25vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;

  /* subtle premium depth */
  background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.86));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stm-sp__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--stm-sp-muted);
}
.stm-sp__meta-sep{ opacity: .55; }

/* =========================
   Hero
========================= */
.stm-sp__hero{
  max-width: var(--stm-sp-read);
  margin: 18px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stm-sp-line);
  background: rgba(0,0,0,.02);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.stm-sp__hero-img{
  width: 100%;
  display: block;
  height: auto;
}
.stm-sp__hero-cap{
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--stm-sp-muted);
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
}

/* =========================
   TOC (premium orange)
========================= */
.stm-toc{
  max-width: var(--stm-sp-read);
  margin: 18px 0 0;
  border: 1px solid rgba(255,122,0,.22);
  border-radius: 16px;

  /* subtle orange tint */
  background: linear-gradient(180deg, rgba(255,122,0,.09), rgba(0,0,0,.02));
  padding: 14px 16px;
}

.stm-toc__title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(0,0,0,.62);
  margin: 0 0 10px;
}

.stm-toc__toggle{
  appearance: none;
  border: 1px solid rgba(255,122,0,.35);
  background: rgba(255,255,255,.70);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  color: rgba(0,0,0,.78);
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.stm-toc__toggle:hover{
  background: rgba(255,122,0,.12);
  border-color: rgba(255,122,0,.55);
  transform: translateY(-1px);
}

.stm-toc__list{
  margin: 0;
  padding-left: 18px;
}
.stm-toc__list li{ margin: 0 0 8px; }

.stm-toc__list a{
  color: rgba(0,0,0,.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,122,0,.22);
}
.stm-toc__list a:hover{
  border-bottom-color: rgba(255,122,0,.55);
  color: rgba(0,0,0,.92);
}

.stm-toc__link.is-active{
  border-bottom-color: rgba(255,122,0,.70);
  font-weight: 800;
}

.stm-toc.is-collapsed .stm-toc__list{ display: none; }

/* =========================
   Content typography
========================= */
.stm-sp__content{
  max-width: var(--stm-sp-read);
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--stm-sp-text);
}

.stm-sp__content > *:first-child{ margin-top: 0; }
.stm-sp__content p{ margin: 0 0 18px; }

.stm-sp__content > p:first-of-type{
  font-size: 17.5px;
  color: rgba(0,0,0,.84);
}

/* Links: professional orange hover */
.stm-sp__content a{
  color: var(--stm-sp-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,91,211,.25);
  transition: border-color .12s ease, color .12s ease;
}
.stm-sp__content a:hover{
  color: var(--stm-sp-link-hover);
  border-bottom-color: rgba(255,122,0,.55);
}

.stm-sp__content ul,
.stm-sp__content ol{
  padding-left: 22px;
  margin: 0 0 18px;
}
.stm-sp__content li{ margin: 0 0 9px; }

.stm-sp__content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .92em;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,122,0,.10);
  border: 1px solid rgba(255,122,0,.18);
}

.stm-sp__content pre{
  overflow: auto;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--stm-sp-line);
}
.stm-sp__content pre code{
  background: transparent;
  border: 0;
  padding: 0;
}

/* Blockquote: orange premium */
.stm-sp__content blockquote{
  margin: 22px 0;
  padding: 16px 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,122,0,.22);
  background: linear-gradient(180deg, rgba(255,122,0,.10), rgba(0,0,0,.03));
  position: relative;
}
.stm-sp__content blockquote:before{
  content: "“";
  position: absolute;
  top: -18px;
  left: 14px;
  font-size: 54px;
  line-height: 1;
  color: rgba(255,122,0,.28);
}
.stm-sp__content blockquote p{ margin: 0; }

.stm-sp__content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
}

/* Tables: subtle orange header */
.stm-sp__content table{
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
}
.stm-sp__content th,
.stm-sp__content td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.stm-sp__content th{
  text-align: left;
  background: rgba(255,122,0,.10);
}

/* =========================
   Headings: orange accents
========================= */
.stm-sp__content h2,
.stm-sp__content h3,
.stm-sp__content h4,
.stm-sp__content h5,
.stm-sp__content h6{
  color: rgba(0,0,0,.92);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 34px 0 12px;
  scroll-margin-top: 120px;
}

.stm-sp__content h2,
.stm-sp__content h3{
  position: relative;
  padding-left: 14px;
}
.stm-sp__content h2:before,
.stm-sp__content h3:before{
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  width: 4px;
  height: 1.05em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--stm-sp-orange), var(--stm-sp-orange-2));
  box-shadow: 0 6px 16px rgba(255,122,0,.25);
}

.stm-sp__content h2{
  font-size: 28px;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,122,0,.18);
}
.stm-sp__content h3{ font-size: 22px; }
.stm-sp__content h4{ font-size: 18px; margin-top: 26px; }

.stm-sp__content h5{
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,122,0,.92);
  margin-top: 22px;
}
.stm-sp__content h6{
  font-size: 15px;
  color: var(--stm-sp-muted);
  margin-top: 18px;
}

/* Footer */
.stm-sp__footer{
  max-width: var(--stm-sp-read);
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,122,0,.18);
}

@media (max-width: 900px){
  .stm-sp{ padding: 34px 0 56px; }
  .stm-sp__hero{ border-radius: 14px; }
}

/* ======================================================
   COMMENTS — keep your premium base, add subtle orange trims
====================================================== */

.stm-cmt{
  max-width: var(--stm-sp-read);
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255,122,0,.16);
}

.stm-cmt__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.stm-cmt__title{
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}

.stm-cmt__list{ list-style: none; margin: 0; padding: 0; }
.stm-cmt__item{ margin-bottom: 18px; }

.stm-cmt__card{
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
}

.stm-cmt__avatar img{ border-radius: 50%; }

.stm-cmt__body{ flex: 1; min-width: 0; }

.stm-cmt__head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.stm-cmt__name{
  font-weight: 700;
  color: rgba(0,0,0,.88);
}

.stm-cmt__meta{
  font-size: 12px;
  color: var(--stm-sp-muted);
}

.stm-cmt__meta a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,122,0,.22);
}
.stm-cmt__meta a:hover{ border-bottom-color: rgba(255,122,0,.55); }

.stm-cmt__text{
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,.86);
}

.stm-cmt__awaiting{
  font-size: 13px;
  margin: 6px 0;
  color: #a56a00;
}

.stm-cmt__actions{ margin-top: 8px; }
.stm-cmt__actions a{
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(0,0,0,.7);
  border-bottom: 1px solid transparent;
}
.stm-cmt__actions a:hover{
  color: rgba(0,0,0,.85);
  border-bottom-color: rgba(255,122,0,.35);
}

.stm-cmt__list .children{
  list-style: none;
  margin: 14px 0 0 44px;
  padding: 0;
}

.stm-cmt__form{ margin-top: 36px; }

.stm-cmtf{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 20px;
}

.stm-cmtf__title{
  grid-column: 1 / -1;
  font-size: 22px;
  margin: 0 0 6px;
}

.stm-cmtf__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stm-cmtf__field label{
  font-size: 13px;
  color: var(--stm-sp-muted);
}

.stm-cmtf__field input,
.stm-cmtf__field textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 15px;
  background: #fff;
}

.stm-cmtf__field input:focus,
.stm-cmtf__field textarea:focus{
  outline: none;
  border-color: rgba(255,122,0,.45);
  box-shadow: 0 0 0 3px rgba(255,122,0,.12);
}

.stm-cmtf__field--full{ grid-column: 1 / -1; }

.stm-cmtf__submit{
  grid-column: 1 / -1;
  align-self: flex-start;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,0,.35);
  background: rgba(255,122,0,.10);
  font-size: 14px;
  cursor: pointer;
  font-weight: 800;
}
.stm-cmtf__submit:hover{
  background: rgba(255,122,0,.14);
  border-color: rgba(255,122,0,.55);
}

@media (max-width: 900px){
  .stm-cmtf{ grid-template-columns: 1fr; }
  .stm-cmt__list .children{ margin-left: 22px; }
}

@media (max-width: 600px){
  .stm-cmt__card{ padding: 14px; }
  .stm-cmt__title,
  .stm-cmtf__title{ font-size: 20px; }
}

/* ======================================================
   SINGLE POST — AUTHOR BOX (Premium, WHITE + GREY)
   File: /assets/css/single-post.css
   Purpose:
   - White card + grey border (no orange background)
   - Fix bio HTML rendering spacing (strong/a)
====================================================== */

body.single-post .stm-sp__authorbox{
  margin-top: 30px;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);   /* ✅ grey border */
  background: #fff;                    /* ✅ white card */
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.single-post .stm-sp__author-avatar img{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: block;
}

body.single-post .stm-sp__author-body{
  min-width: 0;
  flex: 1;
}

body.single-post .stm-sp__author-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.single-post .stm-sp__author-name{
  font-weight: 900;
  text-decoration: none;
  color: rgba(0,0,0,.88);
}
body.single-post .stm-sp__author-name:hover{
  text-decoration: underline;
}

body.single-post .stm-sp__author-site{
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);  /* ✅ grey */
  background: #f3f4f6;                /* ✅ light grey pill */
  color: rgba(0,0,0,.75);
}

body.single-post .stm-sp__author-bio{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0,0,0,.62);
}

body.single-post .stm-sp__author-bio p{
  margin: 0 0 10px;
}
body.single-post .stm-sp__author-bio p:last-child{
  margin-bottom: 0;
}

/* Bio me links/strong proper look */
body.single-post .stm-sp__author-bio strong{
  color: rgba(0,0,0,.78);
  font-weight: 800;
}
body.single-post .stm-sp__author-bio a{
  color: rgba(0,0,0,.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.single-post .stm-sp__author-bio a:hover{
  opacity: .9;
}

@media (max-width: 600px){
  body.single-post .stm-sp__authorbox{
    padding: 14px;
    gap: 12px;
  }
}

/* ======================================================
   SINGLE POST — IMAGE CAPTION FIX
   Purpose:
   - Image ke neche caption 11px
   - Center aligned
   - Clean + professional
====================================================== */

body.single-post .stm-sp__content figure figcaption,
body.single-post .stm-sp__content .wp-block-image figcaption{
  margin-top: 6px;
  font-size: 12px;          /* ✅ requested */
  line-height: 1.4;
  text-align: center;       /* ✅ center */
  color: rgba(0,0,0,.55);   /* soft grey */
  font-style: normal;       /* no italic */
}
