/* Blog index and post pages. Loaded after /css/site-chrome.css (nav, footer, tokens). */



.blog-section {
  padding: 104px 0 72px;
}

@media (min-width: 768px) {
  .blog-section { padding: 128px 0 96px; }
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Index */
.blog-header { max-width: 48rem; margin-bottom: 32px; }

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(65, 211, 245, 0.15);
}

.blog-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.55);
}

.blog-card h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.blog-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.blog-card-more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.blog-empty {
  padding: 48px 32px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  max-width: 48rem;
}

.blog-empty p { margin: 0; line-height: 1.65; }

/* Post */
.post { max-width: 44rem; margin: 0 auto; }

.post-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.6);
}

.post-back:hover { color: #000; }

.post-header h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.post-dek {
  margin: 0 0 20px;
  font-size: 1.25rem;
  line-height: 1.55;
}

.post-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }

.post-body p,
.post-body li {
  font-size: 1.125rem;
  line-height: 1.75;
}

.post-body p { margin: 0 0 22px; }

.post-body h2 {
  margin: 48px 0 16px;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post-body h3 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.post-body ul,
.post-body ol { margin: 0 0 22px; padding-left: 24px; }

.post-body li { margin-bottom: 8px; }

.post-body a {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--teal);
}

.post-body blockquote p { font-size: 1.25rem; line-height: 1.6; }

.post-body img {
  height: auto;
  margin: 32px 0;
  border-radius: 24px;
}

.post-body figure { margin: 32px 0; }
.post-body figure img { margin: 0 0 8px; }
.post-body figcaption { font-size: 0.875rem; color: rgba(0, 0, 0, 0.55); }

.post-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f4f4f4;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .blog-card { padding: 24px; }
  .post-body p, .post-body li { font-size: 1.0625rem; }
}

/* Card category and tags */
.blog-card-category {
  font-weight: 500;
  color: #000;
}

.blog-card-tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-card-tags li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
}

/* Post table, pull quote, sources */
.post-table-wrap { margin: 0 0 22px; overflow-x: auto; }

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.post-table th,
.post-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.post-table th { font-weight: 500; background: #f7f7f7; }

.post-body .post-pullquote {
  margin: 32px 0 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.5;
}

.post-body .post-sources { padding-top: 0; }
.post-body .post-sources li { font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }

/* Collapsible sources */
.post-sources-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.post-sources-wrap summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.post-sources-wrap summary::-webkit-details-marker { display: none; }

.post-sources-wrap summary::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.post-sources-wrap[open] summary::after { transform: rotate(-135deg); }

.post-sources-wrap .post-sources { margin-top: 0; }

/* Card thumbnail (left of text on wider screens) */
.blog-card-thumb {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #f7f9f8;
  flex-shrink: 0;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

@media (min-width: 600px) {
  .blog-card:has(.blog-card-thumb) {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .blog-card-thumb { width: 240px; }
}

/* Byline, summary box, author bio */
.post-meta .post-author-name,
.blog-card-meta .post-author-name { color: #000; }

.post-body .post-summary {
  margin: 0 0 40px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #f7f7f7;
}

.post-body .post-summary h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 500;
}

.post-body .post-summary ul { margin: 0; }
.post-body .post-summary li:last-child { margin-bottom: 0; }

.post-body .post-author {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.post-body .post-author p { margin: 0; font-size: 1rem; line-height: 1.65; }

.post-body .post-author .post-author-photo {
  width: 104px;
  height: 104px;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 25%;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .post-body .post-summary { padding: 22px 20px; }
}

@media (max-width: 480px) {
  .post-body .post-author { align-items: flex-start; gap: 16px; }
  .post-body .post-author .post-author-photo { width: 72px; height: 72px; border-radius: 12px; }
}

/* Share buttons */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 40px 0 0;
}

.post-share-label {
  margin-right: 4px;
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.6);
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: #000;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-share-btn:hover,
.post-share-btn:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(65, 211, 245, 0.15);
}

.post-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.post-body .post-share-btn { text-decoration: none; }
