/* === Blog styles — extends style.css === */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-dim, #6b6770);
  margin: 24px 0 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--ink-dim, #6b6770);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s, border-color 0.15s;
}
.breadcrumb a:hover { color: var(--ink, #15141a); border-color: var(--ink, #15141a); }
.breadcrumb [aria-current="page"] { color: var(--ink, #15141a); font-weight: 500; }

/* Post head */
.blog-post { padding: 24px 0 80px; }
.post-head { padding: 8px 0 32px; }
.post-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.post-head h1 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink, #15141a);
}
.post-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-dim, #4a4651);
  max-width: 760px;
  margin: 0 0 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-dim, #6b6770);
}
.post-meta a { color: var(--ink, #15141a); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Hero */
.post-hero {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream, #f9f4ea);
  aspect-ratio: 16/9;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body prose */
.post-body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #15141a);
  max-width: 760px;
}
.post-body > * + * { margin-top: 1.1em; }
.post-body p { margin: 0 0 1.1em; }
.post-body h2 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.6em;
  color: var(--ink, #15141a);
}
.post-body h3 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
  color: var(--ink, #15141a);
}
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-body li { margin: 0.4em 0; }
.post-body a {
  color: var(--ink, #15141a);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--yellow, #FFD60A), var(--yellow, #FFD60A));
  background-position: 0 95%;
  background-repeat: no-repeat;
  background-size: 100% 4px;
  transition: background-size 0.2s;
}
.post-body a:hover { background-size: 100% 100%; }
.post-body a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  color: var(--ink-dim, #6b6770);
  background: none;
}
.post-body strong { font-weight: 700; color: var(--ink, #15141a); }
.post-body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--yellow, #FFD60A);
  background: rgba(255, 214, 10, 0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink, #15141a);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 16px;
}
.post-body table th,
.post-body table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule, #e6e2d6);
  text-align: left;
  vertical-align: top;
}
.post-body table th {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-weight: 700;
  background: rgba(21, 20, 26, 0.04);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* CTA aside */
.post-cta {
  position: relative;
  margin: 56px 0 32px;
  padding: 32px;
  border-radius: 16px;
  background: var(--ink, #15141a);
  color: var(--paper, #fff);
  overflow: hidden;
}
.post-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--yellow, #FFD60A);
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
  transform: rotate(20deg);
}
.post-cta h3 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 0 0 12px;
  position: relative;
}
.post-cta p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  max-width: 600px;
}
.post-cta .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}
.post-cta .btn-ghost {
  background: transparent;
  color: var(--paper, #fff);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.post-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* Related posts */
.related-posts { margin-top: 64px; }
.related-posts h2 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cards (used in index + related) */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper, #fff);
  border: 1.5px solid var(--rule, #e6e2d6);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #15141a);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: var(--ink, #15141a);
}
.post-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream, #f9f4ea);
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card-body .eyebrow { font-size: 11px; }
.post-card-body h3 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
  color: var(--ink, #15141a);
}
.post-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-dim, #4a4651);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta { font-size: 13px; color: var(--ink-dim, #6b6770); margin-top: auto; }

/* Blog index page */
.blog-head { padding: 48px 0 32px; }
.blog-grid-section { padding: 24px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Responsive */
@media (max-width: 960px) {
  .related-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-grid, .blog-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 24px 22px; }
  .post-body { font-size: 17px; }
  .blog-post { padding: 12px 0 56px; }
}

/* ------------------------------------------------ */
/* Category chips, section grouping, overview tiles */
/* ------------------------------------------------ */

.cat-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .cat-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .cat-chips { grid-template-columns: 1fr; }
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(21, 20, 26, 0.14);
  color: #15141a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.cat-chip:hover {
  background: #FFD60A;
  border-color: #FFD60A;
  color: #15141a;
  transform: translateY(-1px);
}
.cat-chip-all {
  background: var(--brand-yellow, #FFD60A);
  color: #15141a !important;
  border-color: var(--brand-yellow, #FFD60A);
}
.cat-chip-all:hover {
  background: #ffe34d;
  border-color: #ffe34d;
}
.cat-chip.is-active {
  background: #15141a;
  border-color: #15141a;
  color: #ffffff;
}
.cat-chip.is-active:hover {
  background: #15141a;
  border-color: #15141a;
  color: #ffffff;
}
.cat-chip.is-active .cat-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.cat-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(21, 20, 26, 0.08);
  color: #15141a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.cat-chip:hover .cat-count {
  background: rgba(21, 20, 26, 0.16);
}

/* Category sections on index */
.blog-cat-section {
  padding: 56px 0 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.blog-cat-section:first-of-type { border-top: 0; padding-top: 40px; }
.cat-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.cat-section-head h2 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  margin: 4px 0 6px;
  color: var(--ink, #15141a);
}
.cat-section-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-dim, #4a4651);
  max-width: 560px;
}
.cat-section-link {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink, #15141a);
  border-bottom: 2px solid var(--brand-yellow, #FFD60A);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cat-section-link:hover {
  color: #b88800;
}
.cat-section-more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink, #15141a);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
}
.cat-section-more:hover { border-color: var(--brand-yellow, #FFD60A); }

/* Categories overview page */
.cat-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 16px 0 40px;
}
.cat-tile {
  display: block;
  background: var(--cream, #f9f4ea);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.25);
}
.cat-tile-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #15141a;
}
.cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cat-tile:hover .cat-tile-media img { transform: scale(1.04); }
.cat-tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.cat-tile-body .eyebrow { font-size: 11px; }
.cat-tile-body h3 {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: 22px;
  margin: 2px 0 4px;
  line-height: 1.2;
}
.cat-tile-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-dim, #4a4651);
}
.cat-tile-link {
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid var(--brand-yellow, #FFD60A);
  align-self: flex-start;
  padding-bottom: 1px;
}

/* 5-column variant for the master categories index */
.cat-overview-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.cat-overview-grid-5 .cat-tile-body { padding: 16px 18px 18px; }
.cat-overview-grid-5 .cat-tile-body h3 { font-size: 18px; }
.cat-overview-grid-5 .cat-tile-body p { font-size: 14px; }

@media (max-width: 1180px) {
  .cat-overview-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .cat-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-overview-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .cat-overview-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-overview-grid { grid-template-columns: 1fr; }
  .cat-section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .cat-overview-grid-5 { grid-template-columns: 1fr; }
}
