/* Blog styles for imcadoo.com. Scoped to .imc-post / .imc-blog-index so the theme's own styles stay untouched.
   Adapted from the post's original stylesheet; typography inherits the theme's fonts. */
.imc-post, .imc-blog-index {
  --imc-text: #18181b;
  --imc-muted: #52525b;
  --imc-border: #d4d4d8;
  --imc-soft: #f4f4f1;
  --imc-accent-bg: #eef2f6;
  --imc-cobalt: #1d4ed8;
  --imc-cobalt-dark: #1e3a8a;
  --imc-green: #15803d;
  --imc-red: #b91c1c;
  --imc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--imc-text);
  line-height: 1.65;
  max-width: 900px !important;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.imc-post a, .imc-blog-index a { color: var(--imc-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.imc-post a:hover, .imc-blog-index a:hover { color: var(--imc-cobalt-dark); }
.imc-post p { margin: 0 0 1.25rem; }
.imc-post ul { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.imc-post li { margin-bottom: .5rem; }
.imc-post code { font-family: var(--imc-mono); font-size: .9em; background: var(--imc-soft); padding: .05em .3em; border-radius: 3px; }

.imc-back { font-family: var(--imc-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 1.5rem; }
.imc-back a { text-decoration: none; }

.imc-post .post-header { border-bottom: 2px solid var(--imc-text); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.imc-post .post-meta, .imc-blog-index .post-meta {
  font-family: var(--imc-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--imc-muted); margin-bottom: .75rem;
}
.imc-post h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.18; margin: 0 0 1rem; letter-spacing: -.02em; }
.imc-post .subtitle { font-size: 1.2rem; color: var(--imc-muted); margin: 0; }
.imc-post h2 {
  font-size: 1.6rem; line-height: 1.25; margin: 3rem 0 1rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--imc-border); letter-spacing: -.01em;
}
.imc-post h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }

.imc-post .tldr-box { background: var(--imc-accent-bg); border-left: 4px solid var(--imc-cobalt); padding: 1.5rem 1.75rem; margin: 2rem 0; border-radius: 0 6px 6px 0; }
.imc-post .tldr-box h2 { margin-top: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; padding-bottom: 0; color: var(--imc-cobalt-dark); }
.imc-post .tldr-box ul { margin: .75rem 0 0; }

.imc-post .table-wrapper { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--imc-border); border-radius: 6px; }
.imc-post table.comparison-matrix { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .92rem; background: #fff; text-align: left; margin: 0; }
.imc-post table.comparison-matrix th, .imc-post table.comparison-matrix td { padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--imc-border); vertical-align: top; }
.imc-post table.comparison-matrix thead th { background: var(--imc-text); color: #fff; font-weight: 600; white-space: nowrap; }
.imc-post table.comparison-matrix thead th.highlight-col { background: var(--imc-cobalt); }
.imc-post table.comparison-matrix tbody tr:nth-child(even) { background: var(--imc-soft); }
.imc-post table.comparison-matrix td.feature-col { font-weight: 600; width: 22%; }

.imc-post .pros-cons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.25rem 0 2rem; }
.imc-post .pros-card, .imc-post .cons-card { background: #fff; border: 1px solid var(--imc-border); border-radius: 6px; padding: 1.25rem 1.5rem; }
.imc-post .pros-card { border-top: 4px solid var(--imc-green); }
.imc-post .cons-card { border-top: 4px solid var(--imc-red); }
.imc-post .pros-card h4, .imc-post .cons-card h4 { margin: 0 0 .75rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.imc-post .pros-card h4 { color: var(--imc-green); }
.imc-post .cons-card h4 { color: var(--imc-red); }
.imc-post .pros-card ul, .imc-post .cons-card ul { margin: 0; font-size: .95rem; }

.imc-post .spec-list { background: var(--imc-soft); border: 1px solid var(--imc-border); border-radius: 6px; padding: 1.5rem 1.75rem; margin: 1.5rem 0; }
.imc-post .spec-list dt { font-family: var(--imc-mono); font-weight: 700; font-size: .92rem; color: var(--imc-cobalt-dark); margin-top: 1rem; }
.imc-post .spec-list dt:first-child { margin-top: 0; }
.imc-post .spec-list dd { margin: .25rem 0 0; font-size: .95rem; }

.imc-post .faq-section dt { font-weight: 700; font-size: 1.08rem; margin-top: 1.5rem; }
.imc-post .faq-section dd { margin: .5rem 0 1.25rem; color: var(--imc-muted); }

.imc-post .cta-box { margin-top: 3.5rem; padding: 2rem; background: var(--imc-text); color: #fff; border-radius: 8px; text-align: center; }
.imc-post .cta-box h3 { margin-top: 0; color: #fff; }
.imc-post .cta-box p { color: #d4d4d8; max-width: 620px; margin: 0 auto 1.5rem; }
.imc-post a.cta-button { display: inline-block; background: var(--imc-cobalt); color: #fff; font-weight: 600; padding: .85rem 1.75rem; border-radius: 5px; text-decoration: none; }
.imc-post a.cta-button:hover { background: #2563eb; color: #fff; }

/* Blog index: same width as the theme's page title above it */
.imc-blog-index { max-width: var(--wp--style--global--content-size, 900px) !important; padding-top: 0; }
.imc-blog-index .post-list { list-style: none; margin: 0; padding: 0; }
.imc-blog-index .post-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--imc-border); }
.imc-blog-index .post-list li:first-child { padding-top: 0; }
.imc-blog-index h2 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 .6rem; }
.imc-blog-index h2 a { color: var(--imc-text); text-decoration: none; }
.imc-blog-index h2 a:hover { color: var(--imc-cobalt); }
.imc-blog-index .excerpt { color: var(--imc-muted); margin: 0 0 .75rem; }

@media (max-width: 600px) {
  .imc-post, .imc-blog-index { padding-top: 1rem; }
  .imc-post .tldr-box, .imc-post .spec-list { padding: 1.25rem; }
  .imc-post .cta-box { padding: 1.5rem 1.25rem; }
}
