/* blog styles — extends alarmpriser.css */

/* ---- blog index ---- */
.blog-hero { padding: 150px 0 60px; }
.blog-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 16px; }
.blog-hero p { font-size: 18px; color: var(--muted); max-width: 560px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 110px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .pc-visual { height: 150px; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-card .pc-visual svg { opacity: 0.9; }
.post-card .pc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .pc-cat { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.post-card h2 { font-size: 20px; line-height: 1.25; }
.post-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.post-card .pc-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.post-card .pc-meta b { color: var(--ink); font-weight: 600; }

/* featured card */
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 760px) { .post-card.featured { grid-template-columns: 1fr; } }
.post-card.featured .pc-visual { height: 100%; min-height: 240px; }
.post-card.featured .pc-body { padding: 40px; justify-content: center; }
.post-card.featured h2 { font-size: clamp(24px, 3vw, 34px); }
.post-card.featured p { flex: 0 1 auto; font-size: 16px; }

/* ---- article ---- */
.article-hero { padding: 150px 0 30px; }
.article-hero .crumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.article-hero .crumb a { text-decoration: none; color: var(--accent-ink); font-weight: 500; }
.article-hero .crumb a:hover { text-decoration: underline; }
.article-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 820px; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14.5px; color: var(--muted); align-items: center; }
.article-meta .cat { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }

.article { padding: 30px 0 90px; }
.article-body { max-width: 720px; }
.article-body > * + * { margin-top: 1.2em; }
.article-body p { font-size: 17.5px; color: #2C3D52; }
.article-body .lead-p { font-size: 20px; color: var(--ink); font-weight: 500; }
.article-body h2 { font-size: 30px; margin-top: 1.9em; }
.article-body h3 { font-size: 21px; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 24px; font-size: 17.5px; color: #2C3D52; display: grid; gap: 10px; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent-ink); font-weight: 500; }

.article-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 1.4em; }
.article-body th, .article-body td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.article-body thead th { font-family: var(--font-display); font-size: 15px; border-bottom: 2px solid var(--ink); }
.article-body td:first-child { font-weight: 600; }

.callout {
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 25%, white);
  border-radius: 16px; padding: 22px 26px; font-size: 16px;
}
.callout b { display: block; font-family: var(--font-display); margin-bottom: 6px; font-size: 17px; }

/* inline CTA card */
.article-cta {
  margin-top: 3em; background: var(--ink); color: #fff; border-radius: 24px;
  padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.article-cta::after { content: ""; position: absolute; right: -100px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(34, 97, 230, 0.3); filter: blur(50px); }
.article-cta h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.article-cta p { color: #A9B7C9; font-size: 15.5px; max-width: 400px; margin: 0; }
.article-cta .btn { position: relative; z-index: 1; flex: none; }

/* FAQ inside article */
.article-body details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0; }
.article-body details summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.article-body details summary::-webkit-details-marker { display: none; }
.article-body details summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--muted); line-height: 1; }
.article-body details[open] summary::after { content: "–"; }
.article-body details .a { padding: 0 22px 20px; font-size: 15.5px; color: var(--muted); }
.article-body details + details { margin-top: 10px; }

/* related */
.related { border-top: 1px solid var(--line); padding: 60px 0 100px; }
.related h2 { font-size: 28px; margin-bottom: 30px; }
.related .post-grid { padding-bottom: 0; }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .blog-hero { padding: 108px 0 32px; }
  .blog-hero p { font-size: 16px; }
  .post-grid { padding-bottom: 64px; gap: 16px; }
  .post-card.featured .pc-body { padding: 26px 22px; }
  .article-hero { padding: 108px 0 16px; }
  .article-hero h1 { font-size: clamp(28px, 7.6vw, 38px); }
  .article { padding: 16px 0 56px; }
  .article-body p { font-size: 16.5px; }
  .article-body .lead-p { font-size: 18px; }
  .article-body h2 { font-size: 25px; }
  .article-body ul, .article-body ol { font-size: 16.5px; padding-left: 20px; }
  .article-body th, .article-body td { padding: 10px 10px; font-size: 14px; }
  .article-cta { padding: 28px 24px; }
  .article-cta .btn { width: 100%; }
  .related { padding: 44px 0 64px; }
}
