/* /blog and /guides (tools/article_design.py writes the markup around the routines' blog cards).
   The home page's hero and news cards: a full-width photo behind a white headline with a lime bar under its
   last words, then the cards three to a row with their titles at reading size. */

/* ---------- hero ---------- */
.ld-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(380px, 48vh, 480px); background: var(--black); color: #fff; }
.ld-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.ld-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,14,14,.86) 0%, rgba(14,14,14,.66) 42%, rgba(14,14,14,.22) 74%, rgba(14,14,14,.1) 100%); }
.ld-hero-plain::after { content: none; }
.ld-hero .inner { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 80px; }
.ld-hero-in { max-width: 40rem; }
.ld-hero h1 { color: #fff; font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: 1.02; margin: 0; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.ld-hero h1 u { text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% .12em no-repeat; padding-bottom: .06em; }
.ld-hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ld-hero .btn-lime { background: var(--lime); color: var(--black); border: 2px solid var(--lime); }
.ld-hero .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.ld-hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- the cards: three to a row, title at reading size, one line under it ---------- */
.ld-list { padding: 72px 0 96px; }
.ld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ld-grid > * { grid-column: auto !important; }
.ld .blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--black); text-decoration: none; transition: border-color .15s; }
.ld .blog-card:hover { border-color: var(--black); }
.ld .blog-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.ld .blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ld .blog-card .body { padding: 20px 22px 24px; }
.ld .blog-card h2, .ld .blog-card h3 { font-family: "Lato", Arial, sans-serif !important; font-weight: 900 !important; font-size: 1.2rem !important; line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--black); margin: 0 0 10px !important; }
.ld .blog-card p { color: var(--grey); font-size: .95rem; line-height: 1.55; margin: 0; }
.ld .blog-card:hover h2, .ld .blog-card:hover h3 { text-decoration: underline; }

/* ---------- the call to action under the guides: a full lime band ---------- */
.ld > .cta-banner { padding: 72px 0; text-align: left; }
.ld > .cta-banner .btn-row { justify-content: flex-start; margin-top: 24px; }

@media (max-width: 960px) {
  .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ld-hero { min-height: 400px; }
  .ld-hero::after { background: linear-gradient(180deg, rgba(14,14,14,.45) 0%, rgba(14,14,14,.78) 55%, rgba(14,14,14,.88) 100%); }
  .ld-hero .inner { padding-top: 56px; padding-bottom: 48px; }
  .ld-hero .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .ld-list { padding: 40px 0 64px; }
  .ld-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 25 Nov 2026: a lede under the headline, subject groups on /guides, a closing band on /blog ---------- */
.ld-hero .ld-lede { color: #fff; font-size: 19px; line-height: 1.55; max-width: 34em; margin: 22px 0 0; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.ld-group { padding: 72px 0; }
.ld-group > .inner > h2 { margin: 0 0 28px; }
.ld .bg-black > .inner > h2 { color: #fff; }
.ld .bg-lime > .inner > h2 { color: var(--black); }
.ld .bg-black .blog-card, .ld .bg-lime .blog-card { border-color: transparent; }
.ld-grid.ld-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ld-grid.ld-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-cols-4 .blog-card .body { padding: 18px 18px 22px; }
.ld .ld-fee { margin: 12px 0 0; }
.ld > .cta-banner .ld-fee { color: var(--black); }
.ld-close { padding: 72px 0; }
.ld-close .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ld-close h2 { color: #fff; margin: 0 0 10px; }
.ld-close p { color: #e6e5df; margin: 0; }
.ld-close p a { color: var(--lime); font-weight: 900; }
.ld-close .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ld-close .btn-lime { background: var(--lime); color: var(--black); border: 2px solid var(--lime); }
.ld-close .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
@media (max-width: 960px) {
  .ld-grid.ld-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ld-hero .ld-lede { font-size: 17px; }
  .ld-group { padding: 48px 0; }
  .ld-grid.ld-cols-4, .ld-grid.ld-cols-2 { grid-template-columns: 1fr; }
  .ld-close { padding: 52px 0; }
  .ld-close .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
.ld-list > .inner > h2 { margin: 0 0 28px; }
.ld-list .ld-more { display: block; margin: 40px auto 0; }
