/* Evolvcode single post — reference-style reading layout (2026-11-13)
   Two-column article + sticky "On this page" sidebar, serif body,
   collapsible FAQ accordion, share pills, author box, CTA, related cards. */

/* ---------- scroll progress ---------- */
.evp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ev-accent, #4f46e5), var(--ev-accent2, #06b6d4));
  z-index: 1200; }

.evp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero band ---------- */
.evp-hero { background: linear-gradient(180deg, #eef0fe 0%, #f6f7ff 100%);
  padding: 148px 0 34px; }
.evp-crumb { font-size: .86rem; color: #6b7280; margin-bottom: 18px; }
.evp-crumb a { color: #6b7280; text-decoration: none; }
.evp-crumb a:hover { color: var(--ev-accent, #4f46e5); }
.evp-crumb .sep { margin: 0 8px; color: #c3c8d4; }
.evp-crumb .here { color: var(--ev-accent, #4f46e5); font-weight: 600; }
.evp-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.14;
  letter-spacing: -.01em; max-width: 1020px; margin: 0 0 22px; }
.evp-byline { display: flex; align-items: center; gap: 13px; }
.evp-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--ev-accent, #4f46e5), var(--ev-accent2, #06b6d4)); }
.evp-byline .who { font-size: .95rem; color: #374151; }
.evp-byline .who strong { color: #111827; }
.evp-byline .when { font-size: .85rem; color: #6b7280; margin-top: 1px; }

/* ---------- layout ---------- */
.evp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px; padding: 36px 0 8px; align-items: start; }
.evp-featured { margin: 0 0 30px; }
.evp-featured img { width: 100%; display: block; border-radius: 16px; }

/* ---------- article typography ---------- */
.evp-article { font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.13rem; line-height: 1.78; color: #26313d; }
.evp-article p { margin: 0 0 1.45em; }
.evp-article h2, .evp-article h3, .evp-article h4 {
  font-family: inherit; color: #0f1f2e; letter-spacing: -.01em; }
.evp-article h2 { font-family: var(--font-heading, inherit); font-size: 1.78rem;
  line-height: 1.25; margin: 2.1em 0 .65em; scroll-margin-top: 110px; }
.evp-article h3 { font-family: var(--font-heading, inherit); font-size: 1.32rem;
  line-height: 1.3; margin: 1.7em 0 .55em; scroll-margin-top: 110px; }
.evp-article a { color: var(--ev-accent, #4f46e5); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.evp-article ul, .evp-article ol { margin: 0 0 1.45em; padding-left: 1.35em; }
.evp-article li { margin-bottom: .5em; }
.evp-article li::marker { color: var(--ev-accent, #4f46e5); }
.evp-article img { max-width: 100%; height: auto; border-radius: 14px; }
.evp-article figure { margin: 1.8em 0; }
.evp-article figure img { width: 100%; }
.evp-article figcaption { font-family: var(--font-body, sans-serif);
  font-size: .82rem; color: #6b7280; text-align: center; margin-top: 9px; }
.evp-article blockquote { margin: 1.8em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--ev-accent, #4f46e5); color: #374151; font-style: italic; }
.evp-article pre { font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .86rem; line-height: 1.6; background: #0f1f2e; color: #e5edf5;
  border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 0 0 1.6em; }
.evp-article code { font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em; background: #eef0fe; border-radius: 5px; padding: 1px 6px; }
.evp-article pre code { background: none; padding: 0; }
.evp-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em;
  font-family: var(--font-body, sans-serif); font-size: .95rem; }
.evp-article th, .evp-article td { border: 1px solid #e3e6ef;
  padding: 10px 13px; text-align: left; }
.evp-article th { background: #eef0fe; color: #0f1f2e; }

/* ---------- FAQ accordion ---------- */
.evp-article .evp-faq-item { border: 1px solid #e3e6ef; border-radius: 14px;
  background: #fff; margin: 0 0 12px; overflow: hidden; }
.evp-article .evp-faq-item summary { font-family: var(--font-heading, sans-serif);
  font-size: 1.04rem; font-weight: 600; color: #0f1f2e; line-height: 1.4;
  padding: 17px 52px 17px 20px; cursor: pointer; list-style: none;
  position: relative; }
.evp-article .evp-faq-item summary::-webkit-details-marker { display: none; }
.evp-article .evp-faq-item summary::after { content: ""; position: absolute;
  right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ev-accent, #4f46e5);
  border-bottom: 2px solid var(--ev-accent, #4f46e5);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.evp-article .evp-faq-item[open ] summary { color: var(--ev-accent, #4f46e5); }
.evp-article .evp-faq-item[open ] summary::after { transform: translateY(-30%) rotate(225deg); }
.evp-article .evp-faq-a { padding: 2px 20px 8px; font-size: 1.04rem; }
.evp-article .evp-faq-a p:last-child { margin-bottom: 10px; }

/* ---------- sidebar ---------- */
.evp-side { position: sticky; top: 96px; max-height: calc(100vh - 116px);
  overflow-y: auto; padding-right: 2px; }
.evp-toc-title { font-size: 1rem; font-weight: 700; color: #0f1f2e; margin: 0 0 12px; }
.evp-toc { border-left: 2px solid #e8eaf3; padding-left: 16px; }
.evp-toc a { display: block; font-size: .9rem; line-height: 1.45; color: #6b7280;
  text-decoration: none; padding: 5px 0; }
.evp-toc a:hover { color: var(--ev-accent, #4f46e5); }
.evp-toc a.active { color: var(--ev-accent, #4f46e5); font-weight: 700; }
.evp-side-cta { margin-top: 26px; border-radius: 16px; padding: 24px 22px;
  color: #dbe4f0; background: linear-gradient(150deg, #101f31, #16283f); }
.evp-side-cta h3 { color: #fff; font-size: 1.18rem; margin: 0 0 8px; line-height: 1.3; }
.evp-side-cta p { font-size: .92rem; line-height: 1.55; margin: 0 0 16px; color: #c9d6e4 !important; }
.evp-side-cta a { display: block; text-align: center; background: #dde8e1;
  color: #0f1f2e; font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 12px 16px; border-radius: 10px; }
.evp-side-cta a:hover { background: #cfe0d4; }

/* ---------- share / author / cta ---------- */
.evp-share { border-top: 3px solid #0f1f2e; border-bottom: 1px solid #e3e6ef;
  padding: 20px 0; margin-top: 44px; display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; }
.evp-share .lbl { font-weight: 700; font-size: .95rem; color: #0f1f2e; margin-right: 2px; }
.evp-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem;
  font-weight: 600; color: #26313d; background: #fff; border: 1px solid #d8dce6;
  border-radius: 999px; padding: 8px 15px; text-decoration: none; cursor: pointer;
  font-family: var(--font-body, sans-serif); }
.evp-pill:hover { border-color: var(--ev-accent, #4f46e5); color: var(--ev-accent, #4f46e5); }
.evp-pill.dark { border-color: #0f1f2e; }
.evp-author { display: flex; gap: 22px; margin-top: 38px; }
.evp-author .ava { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--ev-accent, #4f46e5), var(--ev-accent2, #06b6d4)); }
.evp-author .written { font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ev-accent, #4f46e5); margin-bottom: 4px; }
.evp-author h3 { font-size: 1.55rem; margin: 0 0 8px; color: #0f1f2e; }
.evp-author p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem;
  line-height: 1.65; color: #3c4756; margin: 0; }
.evp-cta { margin-top: 40px; border-radius: 16px; padding: 30px 32px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, #101f31, #1b2f47); color: #dbe4f0; }
.evp-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.evp-cta p { margin: 0; font-size: .98rem; line-height: 1.55; color: #c9d6e4 !important; }
.evp-cta .txt { flex: 1 1 320px; }
.evp-cta a { background: #dde8e1; color: #0f1f2e; font-weight: 700;
  text-decoration: none; padding: 14px 24px; border-radius: 10px; font-size: .98rem; }
.evp-cta a:hover { background: #cfe0d4; }

/* ---------- related ---------- */
.evp-related { background: #f7f8fd; margin-top: 64px; padding: 52px 0 60px; }
.evp-related-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; border-bottom: 2px solid #0f1f2e; padding-bottom: 14px; margin-bottom: 28px; }
.evp-related-head h2 { font-size: 1.9rem; margin: 0; color: #0f1f2e; }
.evp-related-head a { color: var(--ev-accent, #4f46e5); font-weight: 600;
  text-decoration: none; font-size: .95rem; }
.evp-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.evp-rel-card { text-decoration: none; display: block; }
.evp-rel-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 14px; display: block; margin-bottom: 14px; }
.evp-rel-meta { font-size: .85rem; color: #4b5563; margin-bottom: 6px; }
.evp-rel-meta .cat { color: var(--ev-accent, #4f46e5); font-weight: 700; }
.evp-rel-card h3 { font-size: 1.18rem; line-height: 1.35; color: #0f1f2e; margin: 0; }
.evp-rel-card:hover h3 { color: var(--ev-accent, #4f46e5); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .evp-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .evp-side { display: none; } /* TOC + sidebar hidden on mobile (Lavkush, 2026-11-13) */
  .evp-rel-grid { grid-template-columns: 1fr; }
  .evp-hero { padding-top: 118px; }
  .evp-author { flex-direction: column; gap: 14px; }
}
