/* blog */
.post-head .crumbs { margin: 0 0 14px; font-size: 0.95rem; color: var(--muted); }
.post-head .crumbs a { text-decoration: none; }
.post-head .crumbs a:hover { color: var(--gold); }
.post-head h1 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.9rem, 5.4vw, 3.1rem);
}
.post-head .byline { margin-top: 18px; color: var(--gold); }

.post { max-width: 760px; }
.post .cover { margin: 0 0 30px; }
.post .cover img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2.5px solid var(--outline);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.post > p:first-of-type { font-size: 1.28rem; line-height: 1.5; }
.post h2 { margin-top: 52px; padding-top: 8px; }
.post h3 { color: var(--cream); margin: 28px 0 6px; }
.post em { font-style: normal; color: var(--gold); }
.post ul, .post ol { padding-left: 1.3em; }
.post a { overflow-wrap: anywhere; }

.toc {
  margin: 30px 0 8px;
  padding: 18px 22px 20px;
  background: rgba(11, 36, 22, 0.55);
  border: 2px solid var(--outline);
  border-radius: 16px;
}
.toc-t { margin: 0 0 8px; font-family: var(--title); font-size: 1.3rem; color: var(--cream); }
.toc ol { margin: 0; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { text-decoration: none; color: var(--cream); }
.toc a:hover { color: var(--gold); text-decoration: underline; }

.answer {
  padding: 22px 26px;
  background: linear-gradient(var(--plaque-top), var(--moss));
  border: 2.5px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--edge), 0 6px 0 2.5px var(--outline), 0 14px 22px rgba(0, 0, 0, 0.35);
}
.answer ul { margin: 0; padding-left: 1.2em; }
.answer li { color: var(--cream); }

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.98rem;
  display: block;
  overflow-x: auto;
}
.post th, .post td {
  padding: 10px 12px;
  border: 1.5px solid var(--outline);
  text-align: left;
  vertical-align: top;
}
.post th { background: rgba(11, 36, 22, 0.8); color: var(--gold); font-weight: 600; }
.post td { background: rgba(11, 36, 22, 0.35); }

.post figure { margin: 26px 0; }
.post figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.diagram img {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.diagram figcaption { max-width: 460px; margin-left: auto; margin-right: auto; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.figs .diagram { margin: 0; }
.figs .diagram img { max-width: 100%; }

.puzzle { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 22px; align-items: start; }
.puzzle img { width: 100%; height: auto; }
.puzzle figcaption { margin: 0; color: var(--cream); font-size: 1.05rem; }
.puzzle-q { margin: 0 0 12px; }
.puzzle-a { background: rgba(11, 36, 22, 0.55); border: 2px solid var(--outline); border-radius: 12px; padding: 10px 14px; }
.puzzle-a summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.puzzle-a p { margin: 10px 0 0; color: var(--cream); font-size: 0.98rem; }

.tips { list-style: none; padding-left: 0; counter-reset: tip; }
.post ol:not(.toc ol) li { margin-bottom: 8px; }

.coach {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
  padding: 16px 20px;
  background: rgba(255, 196, 64, 0.12);
  border: 2px solid var(--gold);
  border-radius: 18px;
}
.coach img { width: 84px; height: auto; }
.coach p { margin: 0; }
.coach .coach-t { color: var(--gold); font-family: var(--title); font-size: 1.15rem; margin-bottom: 4px; }

.download { margin: 22px 0; }

.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 44px 0 10px;
  padding: 28px;
  background: linear-gradient(var(--plaque-top), var(--moss));
  border: 2.5px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 7px 0 var(--edge), 0 7px 0 2.5px var(--outline), 0 16px 24px rgba(0, 0, 0, 0.4);
}
.cta-t { margin: 0 0 8px; font-family: var(--title); font-size: 1.7rem; color: var(--cream); }
.cta p:last-of-type { margin-bottom: 20px; }
.cta .badge img { height: 54px; width: auto; }
.phones { display: flex; gap: 12px; margin: 0; }
.phones img { width: 50%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 2px solid var(--outline); }
.phones img + img { margin-top: 28px; }

.post .faq { margin-top: 8px; }
.post .faq details p { margin-bottom: 0; }
.sources li { overflow-wrap: anywhere; }

.related { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--outline); }
.related-t { margin: 0 0 14px; font-family: var(--title); font-size: 1.5rem; color: var(--cream); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card {
  display: block;
  text-decoration: none;
  background: rgba(11, 36, 22, 0.55);
  border: 2px solid var(--outline);
  border-radius: 14px;
  overflow: hidden;
}
.rel-card img { width: 100%; height: auto; display: block; }
.rel-card span { display: block; padding: 10px 12px 12px; color: var(--cream); font-size: 0.95rem; line-height: 1.3; }
.rel-card:hover span { color: var(--gold); }

/* blog list and homepage teaser */
.posts { padding-top: 48px; padding-bottom: 96px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: rgba(11, 36, 22, 0.55);
  border: 2.5px solid var(--outline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 7px 0 var(--edge);
}
.card-img { display: block; background: var(--deep); }
.card-img img { width: 100%; height: auto; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-date { margin: 0 0 6px; font-size: 0.9rem; color: var(--muted); }
.card h2, .card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 0 var(--outline);
}
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--gold); }
.card-body > p:not(.card-date) { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.45; }

.teaser { padding-bottom: 96px; }
.teaser-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.teaser-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); text-shadow: 0 3px 0 var(--outline); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .toc ol { columns: 1; }
  .figs { grid-template-columns: 1fr; }
  .puzzle { grid-template-columns: 1fr; }
  .puzzle img { max-width: 360px; }
  .cta { grid-template-columns: 1fr; padding: 22px; }
  .phones { max-width: 320px; margin: 0 auto; }
  .related-grid { grid-template-columns: 1fr; }
  .post h2 { margin-top: 40px; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .coach { grid-template-columns: 64px 1fr; padding: 14px; }
  .coach img { width: 64px; }
}
