/* Idori — blog layer. Loads AFTER styles.css, reusing the same design system
   (header, footer, .faq accordion, buttons, tokens). Adds only the long-form
   article column + post-specific bits, so blog pages stay consistent site-wide. */

/* ---- Article column (clears the fixed header) ---- */
.article {
  max-width: 760px; margin: 0 auto;
  padding: clamp(112px, 15vw, 152px) 24px 80px;
}

/* ---- Prose typography (scoped to .article) ---- */
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3rem); color: var(--ink); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-top: 1.8em; margin-bottom: 0.6em; padding-bottom: 0.35em; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.article h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-top: 1.5em; margin-bottom: 0.5em; }
.article p { margin-bottom: 1em; color: var(--ink-soft); line-height: 1.75; }
.article ul, .article ol { margin: 0 0 1em 1.4em; }
.article li { margin-bottom: 0.5em; color: var(--ink-soft); line-height: 1.75; }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--clay-deep); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* Tip / callout box */
.article .highlight { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--clay); padding: 18px 22px; margin: 1.8em 0; border-radius: var(--r-md); color: var(--ink); }

/* ---- Breadcrumb ---- */
.crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4em; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--clay-deep); }

/* ---- Post header ---- */
.post-header { margin-bottom: 1.4em; }
.post-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clay-deep);
  background: var(--sand); padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 1.1em;
}
.byline { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; margin-top: 0.6em; }
.byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.byline .dot { opacity: 0.5; }

/* ---- Lead paragraph ---- */
.post-lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.6; margin: 1.1em 0 1.6em; }

/* ---- Figures ---- */
figure.post-figure { margin: 2.2em 0; }
figure.post-figure img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); display: block; }
figure.post-figure figcaption { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 0.7em; }

/* ---- Inline CTA card (conversion hook → intent page) ---- */
.cta-card-inline {
  background: linear-gradient(135deg, #fff 0%, var(--sand) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; margin: 2.6em 0;
  text-align: center;
}
.cta-card-inline h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0 0 0.4em; }
.cta-card-inline p { color: var(--ink-soft); margin-bottom: 1.2em; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: background 0.25s, transform 0.25s; box-shadow: var(--shadow-md);
}
.cta-btn:hover { background: var(--clay-deeper); color: var(--paper); transform: translateY(-2px); text-decoration: none; }

/* ---- FAQ inside an article (the site .faq is already styled by styles.css;
        just give it room) ---- */
.article .faq { margin-top: 0.5em; }

/* ---- Related / read-next ---- */
.related { margin-top: 3em; border-top: 1px solid var(--line); padding-top: 1.6em; }
.related h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.8em; margin-top: 0; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 0.5em; }
.related a { font-weight: 500; }

/* ---- Blog index list (cards) ---- */
.post-list { list-style: none; margin: 1.8em 0 0; padding: 0; display: grid; gap: 1.1em; }
.post-list li { margin: 0; padding: 0; border: none; }
.post-list a {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5em 1.6em; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.post-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post-list h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.7rem); color: var(--ink); margin: 0.4em 0 0.3em; padding: 0; border: none; transition: color 0.2s; }
.post-list a:hover h2 { color: var(--clay-deep); }
.post-list .excerpt { color: var(--ink-soft); margin: 0.3em 0 1em; line-height: 1.6; }
.post-list .post-date { color: var(--muted); font-size: 0.85rem; }
.post-list .read-more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--clay-deep); font-weight: 600; font-size: 0.92rem;
}
.post-list .read-more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.post-list a:hover .read-more svg { transform: translateX(3px); }

/* ---------- Comparison tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.8em 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.9rem; line-height: 1.45; }
.table-scroll th, .table-scroll td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table-scroll th { background: var(--sand); font-weight: 600; white-space: nowrap; }
.table-scroll td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- Spot Edit pinned figure ----------
   Pin overlay grammar shared with the homepage (.pins/.spot/.pin/.pin-ref/
   .spot-label live in styles.css); .spot-canvas scopes the overlay to the
   image, keeping the pins off the figcaption. */
.spot-canvas { position: relative; }
.spot-canvas > img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); display: block; }
.spot-promptbar {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  width: fit-content; margin: 0.85em auto 0; padding: 0.5rem 1.05rem;
  background: var(--sand); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.spot-promptbar .at { color: var(--clay-deep); font-weight: 700; }
@media (max-width: 560px) {
  .spot-canvas .spot-label { font-size: 0.66rem; padding: 0.28rem 0.55rem; }
  .spot-canvas .spot .pin { width: 32px; height: 32px; font-size: 0.82rem; }
  .spot-canvas .spot .pin-ref { width: 46px; height: 46px; }
}

/* ---------- Comparison posts: short version + job-match grid ---------- */
.tldr {
  position: relative; text-align: center; padding: 2.2rem 0 2.4rem; margin: 0.4em 0 2.4em;
}
.tldr::before, .tldr::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 88px; height: 1px; background: linear-gradient(90deg, transparent, var(--clay), transparent);
}
.tldr::before { top: 0; }
.tldr::after { bottom: 0; }
.tldr-label {
  font-family: var(--serif); font-style: italic; font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--clay-deep); margin-bottom: 1.1rem;
}
.tldr p {
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.55; color: var(--ink-soft);
  max-width: 600px; margin: 0 auto;
}
.tldr p strong { color: var(--ink); font-weight: 500; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2.2em 0 2.6em; }
.match-col { padding: 0 2rem 0 0; }
.match-col + .match-col { padding: 0 0 0 2rem; border-left: 1px solid var(--line-strong); }
.match-col h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.8rem;
  letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 1.1rem;
}
.match-col--yes h3 { color: var(--clay-deep); }
.match-col--other h3 { color: var(--muted); }
.match-col ul { list-style: none; margin: 0; padding: 0; }
.match-col li { position: relative; padding-left: 1.2rem; margin-bottom: 0.7rem; line-height: 1.6; }
.match-col li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--clay); }
.match-col--other li { color: var(--muted); }
.match-col--other li::before { background: var(--line-strong); }
@media (max-width: 640px) {
  .match-grid { grid-template-columns: 1fr; }
  .match-col, .match-col + .match-col { padding: 0; border-left: none; }
  .match-col + .match-col { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
}
