/* ── BLOG ARTICLE STYLES ──────────────────────────────────────────────────── */

/* Reset nav styles for blog nav elements — prevents main.css `nav { position:fixed }` from applying */
nav.blog-crumb,
nav.blog-toc {
  position: static;
  inset: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 0;
  justify-content: flex-start;
  display: block;
}

/* Article header */
.blog-header {
  padding: 7rem var(--px) 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: #fafafa;
}

.blog-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-crumb {
  font-size: .78rem;
  color: var(--soft);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.blog-crumb a {
  color: var(--soft);
  text-decoration: none;
  transition: color .15s;
}

.blog-crumb a:hover { color: var(--ink); }

.blog-crumb-sep {
  color: var(--rule);
  font-size: .85rem;
}

.blog-header .chip {
  margin-bottom: 1.2rem;
}

.blog-h1 {
  font-family: var(--fd);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--soft);
  flex-wrap: wrap;
}

.blog-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
}

/* Article layout */
.blog-main {
  padding: 4rem var(--px) 6rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    display: none;
  }
}

/* Body text */
.blog-body {
  min-width: 0;
  min-width: 0;
}

.blog-body > * + * {
  margin-top: 1.4rem;
}

.blog-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid);
}

.blog-body p strong {
  color: var(--ink);
  font-weight: 600;
}

.blog-body h2 {
  font-family: var(--fd);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  line-height: 1.2;
}

.blog-body h3 {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-top: 2rem;
  margin-bottom: -.4rem;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.4rem;
  margin-top: .6rem;
}

.blog-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: .5rem;
}

.blog-body li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Summary / callout box */
.blog-summary {
  background: #f0f5ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.blog-summary p {
  font-size: .92rem !important;
  color: var(--mid) !important;
  font-style: italic;
  margin: 0 !important;
  line-height: 1.7 !important;
}

.blog-summary strong {
  color: var(--ink);
  font-weight: 600;
}

/* Tool card */
.blog-tool {
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 1.8rem;
  margin-top: 2rem;
}

.blog-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: .6rem;
}

.blog-tool-num {
  font-family: var(--fd);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .3rem;
}

.blog-tool-name {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
}

.blog-tool-for {
  font-size: .75rem;
  color: var(--soft);
  background: #f4f4f4;
  padding: .3rem .8rem;
  border-radius: 99px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: .25rem;
}

.blog-tool p {
  font-size: .95rem !important;
  line-height: 1.78 !important;
  color: var(--mid) !important;
  margin-bottom: .75rem;
}

.blog-tool p:last-child {
  margin-bottom: 0;
}

.blog-tool strong {
  color: var(--ink);
  font-weight: 600;
}

/* Criteria checklist */
.blog-criteria-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.blog-criteria-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  background: #fafafa;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--mid);
  margin-bottom: 0;
}

.blog-criteria-list li::before {
  content: none;
}

.blog-criteria-list strong {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--fd);
  font-size: .88rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 200px;
}

@media (max-width: 600px) {
  .blog-criteria-list li {
    flex-direction: column;
    gap: .3rem;
  }
  .blog-criteria-list strong {
    min-width: 0;
  }
}

/* Comparison table */
.blog-table-wrap {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1.5px solid var(--rule);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
  white-space: nowrap;
}

.blog-table thead {
  background: var(--ink);
  color: #fff;
}

.blog-table th {
  font-family: var(--fd);
  font-weight: 700;
  padding: .9rem 1.1rem;
  text-align: left;
  font-size: .82rem;
  letter-spacing: .01em;
}

.blog-table td {
  padding: .8rem 1.1rem;
  color: var(--mid);
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}

.blog-table tbody tr:hover {
  background: #fafafa;
}

.blog-table .tool-name {
  font-family: var(--fd);
  font-weight: 800;
  color: var(--ink);
}

.blog-table .check-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.blog-table .check-no {
  color: #dc2626;
  font-weight: 700;
  font-size: 1rem;
}

.blog-table .check-maybe {
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
}

/* Kortexe highlight box */
.blog-kortexe-box {
  background: var(--ink);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.kortexe-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #60a5fa;
  border: 1.5px solid rgba(96, 165, 250, .4);
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.blog-kortexe-box h3 {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
  margin-top: 0 !important;
}

.blog-kortexe-box > p,
.blog-kortexe-box .kbox-p {
  font-size: .95rem !important;
  line-height: 1.78 !important;
  color: rgba(255, 255, 255, .65) !important;
  margin-bottom: .8rem;
}

.blog-kortexe-box strong {
  color: #fff !important;
}

.blog-kortexe-box ul {
  padding-left: 0;
  list-style: none;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.blog-kortexe-box li {
  font-size: .92rem;
  color: rgba(255, 255, 255, .7);
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0;
  line-height: 1.6;
}

.blog-kortexe-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #60a5fa;
}

.blog-kortexe-box .kortexe-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ink);
  font-family: var(--fd);
  font-weight: 800;
  font-size: .9rem;
  padding: .85rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  margin-top: 1.8rem;
  transition: opacity .15s;
}

.blog-kortexe-box .kortexe-cta:hover {
  opacity: .88;
}

/* Profile guide */
.blog-profiles {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
}

.blog-profile-item {
  padding: .9rem 0;
  border-top: 1px solid var(--rule);
}

.blog-profile-item:first-child {
  border-top: none;
  padding-top: 0;
}

.blog-profile-cond {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: .3rem;
}

.blog-profile-rec {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.blog-profile-rec::before {
  content: '→ ';
  color: var(--blue);
  font-weight: 700;
}

/* CTA block at end of article */
.blog-cta {
  margin-top: 4rem;
  padding: 3rem 2.5rem;
  background: #eef2ff;
  border-radius: 20px;
  text-align: center;
}

.blog-cta h2 {
  font-family: var(--fd);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.blog-cta p {
  font-size: .95rem !important;
  color: var(--mid) !important;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7 !important;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--fd);
  font-weight: 800;
  font-size: .9rem;
  padding: .9rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  transition: background .15s;
}

.blog-cta-btn:hover {
  background: #222;
}

/* Sidebar — table of contents */
.blog-sidebar {
  position: sticky;
  top: 6rem;
}

.blog-toc {
  background: #fafafa;
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 1.8rem 2rem;
}

.blog-toc-title {
  font-family: var(--fd);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--soft);
  margin-bottom: 1rem;
}

.blog-toc ol {
  padding: 0;
  list-style: none;
  margin: 0;
}

.blog-toc li {
  padding: .7rem 0;
  border-top: 1px solid var(--rule);
  font-size: .82rem;
  line-height: 1.45;
  margin-bottom: 0;
  color: var(--mid);
}

.blog-toc li:first-child {
  border-top: none;
  padding-top: 0;
}

.blog-toc a {
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
  display: block;
}

.blog-toc a:hover {
  color: var(--ink);
}
