/* ===============================================
   ISUZU MIGORI — BLOG ARTICLE PAGES (blogs/*.html)
   Layout is ours; the article components at the bottom
   (callouts, tables, check cards…) come from the Smartlake
   Motors article stylesheet, re-mapped onto this theme.
   =============================================== */

/* Map the Smartlake component variables onto our palette */
.post-body,
.article-prose {
  --sl-blue: var(--brand-red);
  --sl-blue-dark: var(--brand-red-dark);
  --sl-blue-light: #FF5A63;
  --sl-gold: var(--gold);
  --sl-gold-pale: rgba(201, 162, 63, .12);
  --sl-gold-dark: #A8842B;
  --sl-black: var(--navy);
  --sl-dark: var(--ink);
  --sl-gray: var(--ink-muted);
  --sl-gray-light: #98A1AB;
  --shadow-sm: 0 1px 4px rgba(11, 29, 46, .06);
  --shadow-md: 0 6px 18px rgba(11, 29, 46, .08);
  --shadow-lg: 0 12px 32px rgba(11, 29, 46, .12);
  --transition-base: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ── Hero extras ── */
.post-hero .post-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.inner .post-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem) !important; max-width: 980px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); }
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta .fi { font-size: 16px; color: var(--gold); }

/* ── Layout ── */
.post-body { padding: clamp(48px, 7vw, 88px) 0; }
.post-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.post-main { max-width: 780px; }

.post-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.post-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.post-toc-title::before { content: ''; width: 22px; height: 4px; background: var(--gold); transform: skewX(-24deg); }
.post-toc ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line); counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-muted);
  text-decoration: none;
}
.post-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); color: var(--gold); }
.post-toc a:hover { color: var(--brand-red); border-left-color: var(--brand-red); }
.post-toc-cta { padding: 20px; background: var(--navy); border-radius: var(--radius-lg); color: #FFFFFF; }
.post-toc-cta strong { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; }
.post-toc-cta .btn { width: 100%; padding: 0 12px; }

/* ── Prose ── */
.article-prose { font-size: 1.04rem; line-height: 1.8; color: #2B3540; }
.article-prose > p { margin: 0 0 1.2em; }
.article-prose h2 {
  margin: 2.2em 0 .7em;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin: 1.6em 0 .5em; font-size: 1.4rem; color: var(--ink); }
.article-prose ul,
.article-prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article-prose li { margin-bottom: .55em; }
.article-prose li::marker { color: var(--brand-red); font-weight: 700; }
.article-prose strong { color: var(--ink); }
.article-prose a { color: var(--brand-red); font-weight: 600; text-underline-offset: 3px; }
.article-prose img { border-radius: var(--radius-lg); }

/* FAQ inside articles */
.article-prose .faq-section { margin: 0 0 1em; border-top: 1px solid var(--line); }
.article-prose .faq-item { border-bottom: 1px solid var(--line); }
.article-prose .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.article-prose .faq-question .fi { font-size: 22px; color: var(--brand-red); transition: transform .3s var(--ease); flex-shrink: 0; }
.article-prose .faq-item.active .faq-question .fi { transform: rotate(45deg); }
.article-prose .faq-answer { display: none; padding: 0 0 18px; color: var(--ink-muted); }
.article-prose .faq-item.active .faq-answer { display: block; }
.article-prose .faq-answer p { margin: 0; }

/* ── After-article blocks ── */
.post-cta {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 48px 0 28px;
  padding: 32px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,.78);
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-red) 0 70%, var(--gold) 70% 100%);
}
.post-cta h2 { margin: 0 0 6px; font-size: 1.9rem; text-transform: uppercase; color: #FFFFFF; }
.post-cta p { margin: 0; }
.post-cta p a { color: var(--gold); font-weight: 700; }
.post-cta p a:hover { color: #FFFFFF; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.post-author {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.post-author-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--navy);
}
.post-author-badge .fi { font-size: 28px; }
.post-author strong { display: block; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--ink); }
.post-author p { margin: 4px 0 10px; font-size: .88rem; color: var(--ink-muted); }

/* ── Related ── */
.post-related { padding: var(--section-y) 0; background: var(--panel); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.rel-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); }
.rel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rel-card:hover .rel-media img { transform: scale(1.06); }
.rel-tag {
  position: absolute;
  left: 0; bottom: 14px;
  padding: 5px 12px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rel-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--ink); }
.rel-card:hover .rel-title { color: var(--brand-red); }

@media (max-width: 1000px) {
  /* minmax(0, …) lets the column shrink below its widest table */
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { position: static; }
  .post-toc-cta { display: none; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rel-grid { grid-template-columns: 1fr; }
  .post-author { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   ARTICLE COMPONENTS (from the Smartlake article stylesheet)
   ═══════════════════════════════════════════════ */
/* ── CALLOUT BOXES ────────────────────────────── */

.tip-box,
.warning-box,
.info-box {
  border-radius: 10px;
  padding: 18px 22px;
  margin: 2rem 0;
  font-size: 0.97rem;
  line-height: 1.72;
}


.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  color: #14532d;
}

.tip-box strong {
  color: #15803d;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  color: #7c2d12;
}

.warning-box strong {
  color: #c2410c;
}

.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--sl-blue);
  color: #1e3a5f;
}

.info-box strong {
  color: var(--sl-blue-dark);
}


/* ── SERVICE TABLE ────────────────────────────── */

.service-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0 2rem;
  font-size: 0.9375rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-table thead tr {
  background: var(--sl-blue);
  color: var(--white);
}

.service-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.service-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.18s;
}

.service-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.service-table tbody tr:hover {
  background: rgba(0,94,171,0.04);
}

.service-table td {
  padding: 13px 18px;
  vertical-align: top;
  line-height: 1.6;
}

.service-table td:first-child {
  font-weight: 600;
  color: var(--sl-blue);
  white-space: nowrap;
}

/* Phones: wide tables scroll sideways instead of stretching the page.
   760px, not 640: up to there the column is narrower than the widest
   table (~620px), and every table is wider than the column at its
   natural size, so in scroll mode they still fill the width. */
@media (max-width: 760px) {
  .service-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


    .check-card {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--gray-200);
      margin-bottom: 40px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow 0.22s;
    }

    .check-card:hover {
      box-shadow: var(--shadow-md);
    }

    .check-card-header {
      display: flex;
      align-items: stretch;
      gap: 0;
      border-bottom: 1px solid var(--gray-100);
      border-left: 4px solid var(--sl-blue);
    }

    .check-card-header-text {
      flex: 1;
      padding: 20px 26px;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .check-number {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--sl-blue);
      color: #fff;
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      flex-shrink: 0;
    }

    .check-card-header-text h2 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--sl-dark);
      margin: 0 0 3px;
      border: none;
      padding: 0;
    }

    .check-time-label {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.4px;
      color: var(--sl-blue);
    }

    .check-card-body {
      padding: 24px 26px 26px;
    }

    .check-card-body p {
      font-size: 0.9375rem;
      line-height: 1.78;
      color: #333;
      margin-bottom: 14px;
    }

    .check-card-body p:last-child { margin-bottom: 0; }

    .check-card-body h3 {
      font-family: var(--font-display);
      font-size: 0.92rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--sl-gray);
      margin: 18px 0 10px;
    }

    .step-list {
      list-style: none;
      padding: 0;
      margin: 0 0 16px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      counter-reset: step-counter;
    }

    .step-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.9375rem;
      line-height: 1.65;
      color: var(--sl-dark);
      counter-increment: step-counter;
    }

    .step-list li::before {
      content: counter(step-counter);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--sl-blue);
      color: #fff;
      font-family: var(--font-display);
      font-size: 0.72rem;
      font-weight: 700;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .flag-list {
      list-style: none;
      padding: 0;
      margin: 0 0 16px;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .flag-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.9375rem;
      line-height: 1.65;
      color: var(--sl-dark);
    }

    .flag-list li::before {
      content: '⚑';
      color: #dc2626;
      font-size: 0.85rem;
      flex-shrink: 0;
      margin-top: 2px;
    }

    /* What to look for strip */
    .look-for-strip {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      border-top: 1px solid var(--gray-100);
      margin-top: 18px;
      padding-top: 18px;
      font-size: 0.9rem;
      line-height: 1.65;
    }

    .look-for-strip .look-label {
      font-family: var(--font-display);
      font-weight: 700;
      white-space: nowrap;
      padding: 2px 10px;
      border-radius: 6px;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      background: var(--sl-blue);
      color: #fff;
    }

    .look-for-strip.warn .look-label {
      background: #dc2626;
    }

    .look-for-strip.tip .look-label {
      background: #16a34a;
    }

    .look-for-strip p { margin: 0; color: var(--sl-gray); font-size: 0.9rem; }

    /* ── Checklist summary table ────────────────────────────────── */
    .checklist-summary {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: 12px;
      padding: 24px;
      margin: 2.4rem 0;
    }

    .checklist-summary h3 {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--sl-dark);
      margin-bottom: 16px;
      text-align: center;
    }

    .summary-row {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--gray-200);
      font-size: 0.9rem;
    }

    .summary-row:last-child { border-bottom: none; }
    .summary-row .check-name { font-weight: 600; color: var(--sl-dark); }
    .summary-row .check-dur  { color: var(--sl-gray); font-size: 0.85rem; text-align: center; }
    .summary-row .check-tool { color: var(--sl-gray-light); font-size: 0.82rem; text-align: right; }
    .summary-row-header { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sl-gray-light); }

    @media (max-width: 600px) {
      .check-card-header-text { padding: 16px 18px; }
      .check-card-body         { padding: 18px 18px 20px; }
      .summary-row { grid-template-columns: 1fr; gap: 2px; }
      .summary-row .check-dur, .summary-row .check-tool { text-align: left; }
    }


