/* RUN4IT blog styles. Loads after site.css and reuses its colors and fonts. */

/* header/footer bits that live inline in the main pages */
.social { display: inline-flex; gap: .5rem; align-items: center; align-self: center; line-height: 0; }
header.site .menu .social a, footer.site .social a, .social a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 26px; height: 26px; min-width: 26px; max-height: 26px; padding: 0; margin: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); line-height: 0; overflow: visible; transition: background .15s ease, border-color .15s ease; }
.social a:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
.social svg { width: 14px; height: 14px; flex: none; fill: #fff; }
.menu .social { margin: 0 .5rem; position: relative; top: 0; }
@media (max-width: 860px) { .menu .social { margin: .6rem 1.2rem; } }
@media (min-width: 701px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- hero ---------- */
.blog-hero {
  background: radial-gradient(900px 300px at 85% -10%, rgba(254,203,0,.22), transparent 60%), var(--charcoal);
  color: #fff; padding: clamp(2.6rem, 7vw, 4.4rem) 0 clamp(2.4rem, 6vw, 3.6rem);
}
.blog-hero .kicker { color: var(--gold); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.blog-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; margin: .4rem 0 .6rem; }
.blog-hero h1 span { color: var(--gold); }
.blog-hero .sub { color: #cfd2d4; font-size: 1.1rem; max-width: 52ch; }
.blog-hero .sub a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* ---------- list page: timeline ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding: 3rem 0 4.5rem; align-items: start; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 0; width: 2px; background: rgba(0,0,0,.12); border-radius: 2px; }
.month-label { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--amber); font-weight: 800; margin: 2.2rem 0 1rem; }
.timeline .month-label:first-child { margin-top: 0; }
.entry {
  position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; margin-bottom: 1.3rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.entry .dot { position: absolute; left: -34px; top: 1.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--charcoal); }
.entry__img { align-self: start; display: block; }
.entry__img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; background: var(--charcoal); }
.entry__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.meta { color: var(--muted); font-size: .88rem; font-weight: 700; }
.entry h3 { font-size: 1.35rem; font-weight: 800; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--amber); }
.summary { color: #444; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.tags a { font-size: .75rem; font-weight: 800; text-decoration: none; padding: .2rem .65rem; border-radius: 999px; background: rgba(254,203,0,.28); color: #5b4300; }
.tags a:hover { background: var(--gold); color: var(--charcoal); }
.empty { padding: 2rem 0; color: #555; }
.empty a { color: var(--amber); font-weight: 700; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-left: 34px; }
.pager a { color: var(--charcoal); font-weight: 800; text-decoration: none; background: var(--gold); padding: .6rem 1.1rem; border-radius: 999px; }
.pager__n { color: var(--muted); font-weight: 700; font-size: .9rem; }

/* sidebar */
.blog-side { position: sticky; top: 5rem; display: grid; gap: 1.1rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; }
.panel h4 { font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a { text-decoration: none; font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.chips a small, .archive a small { color: var(--muted); font-weight: 700; margin-left: .2rem; }
.chips a:hover, .chips a.on { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.archive { list-style: none; }
.archive .year { font-family: "Baloo 2"; font-weight: 800; margin-top: .4rem; }
.archive li { margin: .25rem 0; }
.archive a { text-decoration: none; font-weight: 600; }
.archive a:hover, .archive a.on { color: var(--amber); }
.panel--app { background: var(--charcoal); color: #fff; border: 0; }
.panel--app h4 { color: var(--gold); }
.panel--app p { color: #cfd2d4; font-size: .95rem; }
.side-btns { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.side-btns .btn { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- post page ---------- */
.post { padding-top: clamp(1.8rem, 5vw, 3rem); }
.post__wrap { width: min(760px, 92vw); }
.crumb a { color: var(--amber); font-weight: 800; text-decoration: none; }
.post .tags { margin: 1rem 0 .4rem; }
.post h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin: .3rem 0 .6rem; }
.post .meta { margin-bottom: 1.4rem; }
.post__cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 18px; background: var(--charcoal); margin-bottom: 1.6rem; }

.prose { font-size: 1.08rem; color: #262626; }
.prose p { margin: 1rem 0; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 2.6rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.8rem 0 .4rem; }
.prose ul, .prose ol { margin: .8rem 0 .8rem 1.4rem; }
.prose li { margin: .4rem 0; }
.prose a { color: var(--amber); font-weight: 700; }
.prose strong { color: #111; }
.prose img { border-radius: 14px; margin: 1.2rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose blockquote { border-left: 4px solid var(--gold); background: #fff; padding: .6rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.2rem 0; }
.prose code { background: rgba(0,0,0,.06); padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }
.prose h2#key-takeaways { border-top: 0; padding-top: 0; margin-top: 1.2rem; }
.prose h2#key-takeaways + ul { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 1.1rem 1.3rem 1.1rem 2.4rem; margin: .8rem 0 1.6rem; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: "Baloo 2"; background: rgba(254,203,0,.22); }

.cta-box { background: var(--charcoal); color: #fff; border-radius: 20px; padding: 1.8rem 1.8rem 2rem; margin: 3rem 0 2rem; text-align: center; background-image: radial-gradient(500px 200px at 50% -20%, rgba(254,203,0,.25), transparent 70%); }
.cta-box h3 { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.cta-box p { color: #cfd2d4; max-width: 46ch; margin: .6rem auto 1.2rem; }
.cta-box__btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.prevnext a { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; }
.prevnext a:hover { border-color: var(--gold); }
.prevnext small { color: var(--amber); font-weight: 800; }
.prevnext span { font-family: "Baloo 2"; font-weight: 700; line-height: 1.25; }
.prevnext .next { text-align: right; grid-column: 2; }

.more { background: rgba(0,0,0,.035); padding: 3rem 0 4rem; }
.more h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.2rem; }
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .8rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; background: var(--charcoal); }
.card__t { font-family: "Baloo 2"; font-weight: 800; line-height: 1.2; padding: .2rem .2rem 0; }
.card__m { color: var(--muted); font-size: .85rem; font-weight: 700; padding: 0 .2rem .2rem; }

.post-missing ul { margin: 1rem 0 1.4rem 1.3rem; }
.post-missing a { color: var(--amber); font-weight: 700; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .blog-side { position: static; }
  .more__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .entry .dot { left: -26px; }
  .pager { padding-left: 0; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { grid-column: 1; text-align: left; }
}
