/*
 * Blog index and article pages.
 *
 * Loaded only on /blog routes, in the same way the per-service stylesheets are,
 * so the rest of the site does not carry it.
 *
 * A reading measure of ~68 characters is the one non-obvious rule here: long
 * articles set at full container width are measurably harder to read, and this
 * is the only place on the site with long-form prose.
 */

.blog,
.post {
  padding: 60px 0 90px;
}

.blog .container,
.post .container {
  max-width: 1140px;
}

/* --- Index --------------------------------------------------------------- */

.blog__intro {
  max-width: 42rem;
  margin-bottom: 50px;
}

.blog__intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog__intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #55565a;
}

.blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog__card {
  border: 1px solid #e6e7ea;
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog__card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.blog__card h2 {
  font-size: 1.3rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog__card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog__card h2 a:hover {
  color: #f47c20;
}

.blog__card p {
  color: #55565a;
  line-height: 1.65;
  margin-bottom: 12px;
}

.blog__meta,
.post__meta {
  font-size: 0.875rem;
  color: #82848a;
  margin: 0;
}

/* --- Article ------------------------------------------------------------- */

.post__crumbs {
  font-size: 0.875rem;
  color: #82848a;
  margin-bottom: 28px;
}

.post__crumbs a {
  color: #82848a;
}

.post__body {
  max-width: 68ch;
}

.post__body h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.post__body .post__meta {
  margin-bottom: 36px;
}

.post__body h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 48px 0 16px;
}

.post__body h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 32px 0 12px;
}

.post__body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #35363a;
  margin-bottom: 20px;
}

.post__body ul,
.post__body ol {
  margin: 0 0 24px;
  padding-left: 1.35em;
}

.post__body li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #35363a;
  margin-bottom: 10px;
}

.post__note {
  border-left: 4px solid #f47c20;
  background: #fdf6f0;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}

.post__note p {
  margin: 0;
}

/* Wide tables scroll in their own box; the page itself never scrolls sideways. */
.post__table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid #e6e7ea;
  border-radius: 8px;
}

.post__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.post__table th,
.post__table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eceef1;
}

.post__table th {
  background: #fafafb;
  font-weight: 600;
}

.post__table tr:last-child td {
  border-bottom: 0;
}

/* --- FAQs, related, next ------------------------------------------------- */

.post__faqs {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e6e7ea;
}

.post__faqs dl {
  margin: 0;
}

.post__faqs dt {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.post__faqs dd {
  margin: 0;
  line-height: 1.7;
  color: #55565a;
}

.post__related,
.post__next {
  max-width: 68ch;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: 12px;
  background: #f7f8fa;
}

.post__related h2,
.post__next h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.post__related ul,
.post__next ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post__related li,
.post__next li {
  margin-bottom: 8px;
}

.post__related a,
.post__next a {
  color: #f47c20;
  font-weight: 500;
}

@media (max-width: 575px) {
  .blog,
  .post {
    padding: 40px 0 60px;
  }

  .blog__card {
    padding: 22px;
  }
}

/* Author surfaces. These render nothing until content/authors.ts has real
   people in it, which is deliberate — see the note at the top of that file. */
.post__reviewed {
  font-size: 0.9375rem;
  color: #82848a;
  margin: -24px 0 36px;
}

.post__byline {
  color: #55565a;
  font-weight: 500;
}

.post__author {
  max-width: 68ch;
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid #e6e7ea;
  border-radius: 12px;
}

.post__author h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.post__author-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.post__author p {
  line-height: 1.7;
  color: #55565a;
  margin-bottom: 0;
}

.post__author-credentials {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: #55565a;
  font-size: 0.9375rem;
}
