/* ── Blog pages styles ─────────────────────────────────────────────────── */

body.blog-page {
  background: var(--white);
}

.blog-main {
  justify-content: flex-start;
  align-items: stretch;
  padding: clamp(32px, 5vh, 72px) 5vw clamp(64px, 8vh, 100px);
  overflow-y: auto;
}

.blog-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-intro {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.blog-intro h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--blue);
  margin-bottom: 16px;
}

.blog-intro .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--blue);
  opacity: 0.8;
}

/* ── Blog grid (landing) ───────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.blog-card {
  background: var(--white);
  border: 1px solid rgba(40, 66, 119, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  text-decoration: none;
  color: var(--blue);
  height: 100%;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.65;
}

.blog-card-sep { opacity: 0.5; }

.blog-card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--blue);
}

.blog-card-excerpt {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--blue);
  opacity: 0.82;
  flex-grow: 1;
}

.blog-card-more {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--blue);
  margin-top: 4px;
}

/* ── Article page ──────────────────────────────────── */

body.article-page .blog-main {
  padding: clamp(24px, 4vh, 56px) 5vw clamp(64px, 8vh, 100px);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  color: var(--blue);
}

.article-breadcrumb {
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.article-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.article-breadcrumb a:hover { text-decoration: underline; }

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 16px;
}

.article h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.article-lede {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: rgba(40, 66, 119, 0.04);
  margin: 28px 0 36px;
}

.article h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 44px 0 16px;
}

.article h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 32px 0 12px;
}

.article p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article ul,
.article ol {
  margin: 12px 0 20px 24px;
}

.article li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 8px;
}

.article li strong { font-weight: 500; }

.article a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a:hover { opacity: 0.7; }

.article strong { font-weight: 500; }

.article em { font-style: italic; }

.article blockquote {
  border-left: 3px solid var(--blue);
  padding: 8px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 17px;
  opacity: 0.85;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article th,
.article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(40, 66, 119, 0.15);
}

.article th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  background: rgba(40, 66, 119, 0.04);
}

/* ── FAQ block ─────────────────────────────────────── */

.article .faq {
  margin: 40px 0;
  border-top: 1px solid rgba(40, 66, 119, 0.15);
  padding-top: 32px;
}

.article .faq h2 {
  margin-top: 0;
}

.article details {
  border-bottom: 1px solid rgba(40, 66, 119, 0.15);
  padding: 16px 0;
}

.article details[open] summary {
  margin-bottom: 12px;
}

.article summary {
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  padding-right: 32px;
  position: relative;
}

.article summary::-webkit-details-marker {
  display: none;
}

.article summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s;
}

.article details[open] summary::after {
  content: "−";
}

/* ── Visit CTA box ─────────────────────────────────── */

.article-cta {
  margin: 48px 0 32px;
  padding: 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
}

.article-cta h3 {
  color: var(--white);
  margin: 0 0 10px;
  font-weight: 400;
  font-size: 22px;
}

.article-cta p {
  color: var(--white);
  opacity: 0.92;
  margin-bottom: 16px;
}

.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--white);
  color: var(--blue);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.article-cta a:hover {
  opacity: 0.88;
}

/* ── Related posts ─────────────────────────────────── */

.article-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(40, 66, 119, 0.15);
}

.article-related h2 {
  font-size: 20px;
  margin: 0 0 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.7;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.article-related a {
  padding: 16px 20px;
  border: 1px solid rgba(40, 66, 119, 0.2);
  border-radius: 5px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 400;
  line-height: 1.3;
  font-size: 15px;
  transition: border-color 0.2s;
}

.article-related a:hover {
  border-color: var(--blue);
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-lede { padding: 16px 20px; }
}
