/* Hettie blog. Loaded after site.css. Reuses its variables and classes. Mobile first. */

/* ---------- Shared bits ---------- */
.blog-hero { overflow: visible; padding-bottom: clamp(56px, 8vw, 96px); }
.blog-hero .wrap { position: relative; }
.blog-hero .eyebrow { margin-bottom: 18px; }
.blog-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; color: var(--white);
  max-width: 20ch;
}
.blog-hero h1 .serif { display: block; font-size: 1.04em; line-height: 1.1; letter-spacing: -0.015em; }
.blog-hero .lede { margin-top: 22px; max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.86); }

.cat {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  background: rgba(0, 51, 16, .08); color: var(--green-deep);
}
.dark .cat { background: var(--chip); color: var(--green); border: 1px solid rgba(0,255,80,.35); }

/* The figure keeps a mint background so a missing image never looks broken. */
.ph {
  position: relative; overflow: hidden; background: linear-gradient(135deg, #dcf9e5 0%, var(--mint-support) 100%);
  aspect-ratio: 16 / 9;
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 24% 30%, rgba(0,255,80,.25), transparent 46%), radial-gradient(circle at 80% 78%, rgba(0,51,16,.12), transparent 50%);
}
.ph img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listing ---------- */
.blog-list { padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (min-width: 1040px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.card-post {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-light); text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-post:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 39, 12, .12); }
.card-post:focus-visible { outline-offset: 4px; }
.card-post__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.card-post__title { font-size: 1.28rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--bg-dark); }
.card-post:hover .card-post__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card-post__sum {
  color: var(--muted); font-size: .98rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-post__meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.card-post__meta span + span::before { content: "\00b7"; margin-right: 10px; }

/* ---------- Article hero ---------- */
.art-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 14px; font-weight: 500;
  color: var(--on-dark); text-decoration: none;
}
.art-hero .crumb:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.art-hero h1 {
  margin-top: 18px; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em;
  color: var(--white); max-width: 22ch; overflow-wrap: break-word;
}
.art-hero h1 .serif { font-size: 1.03em; letter-spacing: -0.012em; }
.art-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--on-dark-2); }
.art-meta span + span::before { content: "\00b7"; margin-right: 14px; }
.art-meta strong { color: var(--white); font-weight: 600; }

.art-figure {
  position: relative; z-index: 3; max-width: 1080px; margin: calc(-1 * clamp(36px, 6vw, 72px)) auto 0;
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 39, 12, .22); aspect-ratio: 16 / 9;
}
.art-figure img { border-radius: inherit; }
@media (max-width: 600px) { .art-figure { border-radius: 20px; } }

/* ---------- Article body ---------- */
.art { background: var(--white); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.art-body { max-width: 68ch; margin: 0 auto; font-size: 1.1rem; line-height: 1.72; color: var(--ink); overflow-wrap: break-word; }
.art-body > * + * { margin-top: 1.15em; }
.art-body h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); font-weight: 600; line-height: 1.15; margin-top: 2.2em; color: var(--bg-dark); letter-spacing: -0.022em; scroll-margin-top: 90px; }
.art-body h3 { font-size: 1.28rem; font-weight: 600; line-height: 1.25; margin-top: 1.8em; color: var(--bg-dark); letter-spacing: -0.012em; }
.art-body h2 + *, .art-body h3 + * { margin-top: .7em; }
.art-body a { color: var(--green-deep); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(0, 51, 16, .4); }
.art-body a:hover { text-decoration-color: var(--green-deep); }
.art-body strong { font-weight: 600; color: var(--bg-dark); }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body li + li { margin-top: .5em; }
.art-body li::marker { color: var(--green-deep); font-weight: 600; }
.art-body hr { border: 0; border-top: 1px solid var(--line-light); margin: 2.4em 0; }

/* Key points box */
.keypoints { background: var(--bg-dark); color: var(--white); border-radius: var(--radius-md); padding: 26px 26px 24px; margin-bottom: 1.8em; }
.keypoints .eyebrow { color: var(--green); margin-bottom: 14px; }
.keypoints ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.keypoints li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.5; color: var(--on-dark); }
.keypoints li + li { margin-top: 0; }
.keypoints li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300270C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Pull-quote callout in mint */
.callout, .art-body blockquote {
  margin: 2em 0; padding: 24px 26px 24px 28px; background: var(--mint); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(1.18rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--green-deep); letter-spacing: -0.005em;
}
.art-body blockquote p { margin: 0; }
.art-body blockquote p + p { margin-top: .6em; }
.note {
  padding: 18px 22px; border-radius: var(--radius-md); background: var(--grey-card); border: 1px solid var(--line-light);
  font-size: .98rem; line-height: 1.55; color: var(--ink-2);
}

/* Tables scroll inside their own wrapper so the page never scrolls sideways */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--white); }
.table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.table-wrap th { text-align: left; background: var(--mint); color: var(--bg-dark); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line-light); white-space: nowrap; }
.table-wrap td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; color: var(--bg-dark); }

/* Sources */
.sources { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line-light); }
.sources h2 { margin-top: 0; font-size: 1.35rem; }
.sources ol { margin-top: .8em; padding-left: 1.4em; font-size: .93rem; line-height: 1.5; color: var(--muted); }
.sources li { padding-left: .2em; }
.sources a { font-weight: 500; word-break: break-word; }

/* FAQ with native details */
.faq-art { margin-top: 3em; }
.faq-art h2 { margin-top: 0; }
.faq-art details { border-bottom: 1px solid var(--line-light); }
.faq-art details:first-of-type { border-top: 1px solid var(--line-light); margin-top: 1em; }
.faq-art summary {
  list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 18px 2px; font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--bg-dark);
}
.faq-art summary::-webkit-details-marker { display: none; }
.faq-art summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--green-deep); font-size: 20px; line-height: 1; transition: transform .2s ease;
}
.faq-art details[open] summary::after { content: "\2212"; }
.faq-art details > div { padding: 0 2px 20px; }
.faq-art details > div > * + * { margin-top: .8em; }

/* ---------- Related ---------- */
.related { padding: clamp(56px, 7vw, 96px) 0; }
.related .section__head { margin-bottom: 32px; }
.related .blog-grid { margin-top: 0; }
@media (min-width: 700px) and (max-width: 1039px) { .related .blog-grid .card-post:nth-child(3) { display: none; } }

/* CTA band: same as home, sits on the section above it */
.cta-wrap--mint { background: var(--mint); }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .art-meta span + span::before { display: none; }
  .art-meta { gap: 6px 16px; }
  .art-body { font-size: 1.05rem; }
  .keypoints { padding: 22px 20px; }
  .callout, .art-body blockquote { padding: 20px 20px 20px 22px; }
  .blog-hero h1 { max-width: none; }
}
