/* Blog pages (2026-11-13). Loaded after /tools/tools.css, which holds the tokens, nav and footer. */
[hidden] { display: none !important; }

/* Blog menu in the navbar: hover or keyboard focus shows the posts. */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { display: inline-flex !important; align-items: center; gap: 5px; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: -10px; min-width: 240px; padding: 8px; margin-top: 6px; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 60; }
.nav-drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-links .nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap; color: var(--ink-2); }
.nav-links .nav-drop-menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 480px) { .nav-drop { display: none; } }

/* Footer with a Blog link that shows its posts on hover. */
.blog-foot { border-top: 1px solid var(--hair); background: #fff; padding: 28px 20px; text-align: center; font-size: 13px; color: var(--ink-4); margin-top: auto; }
.blog-foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin-bottom: 10px; }
.blog-foot a { color: var(--ink-3); text-decoration: none; }
.blog-foot a:hover { color: var(--ink); }
.foot-drop { position: relative; display: inline-block; }
.foot-drop-btn { display: inline-flex; align-items: center; gap: 5px; }
.foot-drop-menu { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); min-width: 240px; padding: 8px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 20; text-align: left; }
.foot-drop-menu::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; }
.foot-drop:hover .foot-drop-menu, .foot-drop:focus-within .foot-drop-menu { display: block; }
.foot-drop-menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.foot-drop-menu a:hover { background: var(--paper-2); }

/* Blog home */
.blog { width: 100%; max-width: 1000px; margin: 0 auto; padding: 44px 20px 80px; flex: 1; }
@media (max-width: 600px) { .blog { padding: 28px 16px 64px; } }
.blog-hero { max-width: 680px; margin: 0 0 30px; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.035em; font-weight: 750; margin-bottom: 10px; }
.blog-hero p { font-size: 17px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--hair-2); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hair-3); }
.post-cover { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 22px; background: linear-gradient(135deg, #EEF2FF, #F8FAFC); }
.post-cover span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-kind { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.post-body h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; margin: 0; }
.post-body p { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.post-meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-4); }

/* The homepage footer, copied onto the blog pages (2026-11-13). Same look as /site.css. */
footer.site-foot { border-top: 1px solid var(--hair); background: var(--paper); padding: 0; text-align: left; font-size: 13.5px; color: var(--ink-3); margin-top: auto; }
.site-foot .foot { max-width: 1200px; margin: 0 auto; padding: 56px 20px 44px; display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--ink); }
.site-foot .brand-mark img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.site-foot .about { font-size: 13.5px; color: var(--ink-3); max-width: 30ch; margin: 0; line-height: 1.6; }
.site-foot .foot-h { font-size: 13.5px; margin: 0 0 12px; color: var(--ink); font-weight: 500; }
.site-foot .foot-col a { display: block; padding: 4px 0; font-size: 14px; }
.site-foot .foot-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 20px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.site-foot .foot-drop-menu { left: -10px; transform: none; }
@media (max-width: 900px) {
  .site-foot .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .site-foot .foot-col a { padding: 10px 0; } }

/* Comparison post cover (2026-11-13). */
.post-cover--vs { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; min-height: 112px; background: #0F1224; }
.post-cover--vs span { aspect-ratio: auto; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.post-cover--vs .vs-a { background: #4F46E5; color: #fff; }
.post-cover--vs .vs-b { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.post-cover--vs b { color: #6EE7B7; font-size: 15px; font-weight: 800; }

/* Dropdown links always dark on the white menu card (2026-11-13: white-on-white over the homepage sky hero). */
.nav-outer .nav-drop-menu { background: #fff !important; }
.nav-outer .nav-links .nav-drop-menu a { color: #0E1020 !important; opacity: 1 !important; }
.nav-outer .nav-links .nav-drop-menu a:hover { background: #EEF2FF !important; color: #3730A3 !important; }

/* Stories post cover (2026-11-14). */
.post-cover--stories { display: flex; justify-content: center; gap: 10px; padding: 26px 22px; background: linear-gradient(135deg, #F0FDFA, #ECFEFF); }
.post-cover--stories span { width: 52px; height: 52px; aspect-ratio: auto; border-radius: 50%; font-size: 15px; }
