/* Blog hub (/blog.html) cleanup, 2026-11-17.
   Loaded only by blog.html, so no other page changes. Follows WEBSITE_DESIGN.md (Quiet):
   white cards with hairline borders, neutral bands, ink text, no tints, no dot patterns.
   The card markup stays the same (.widget-hub-card); the inline script in blog.html groups
   cards into shelves (roundups, guides, tools), so new cards keep working when added. */

body[data-page="blog"] { background: #FFFFFF; }

/* Header */
body[data-page="blog"] .blog-hub-section { padding: 36px 0 72px; }
body[data-page="blog"] .blog-hub-section .section-header { text-align: center; margin: 0 auto 20px !important; max-width: 720px; }
body[data-page="blog"] .blog-hub-section .breadcrumb { justify-content: center; font-size: 13px; color: #6B6B73; background: transparent; margin-bottom: 14px; }
body[data-page="blog"] .blog-hub-section .breadcrumb a { color: #18181B; text-decoration: underline; text-underline-offset: 2px; }
body[data-page="blog"] .blog-hub-section .section-label { color: #6B6B73 !important; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
body[data-page="blog"] .blog-hub-section h1.section-title { font-family: var(--font-display); font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: #18181B; margin: 0; }
body[data-page="blog"] .blog-hub-lede { margin: 12px auto 0; max-width: 600px; font-size: 17px; line-height: 1.55; color: #52525B; }

/* Filter chips */
body[data-page="blog"] .resources-filter-bar { margin: 0 auto 8px; gap: 8px; }
body[data-page="blog"] .resources-filter-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #D4D4D8; background: #FFFFFF; color: #18181B; font-size: 14px; font-weight: 600; }
body[data-page="blog"] .resources-filter-btn:hover { border-color: #18181B; background: #FFFFFF; color: #18181B; }
body[data-page="blog"] .resources-filter-btn.active { background: #18181B; border-color: #18181B; color: #FFFFFF; }
body[data-page="blog"] .resources-filter-count { opacity: 0.7; font-size: 12px; }

/* Shelves */
.blog-shelf { padding: 40px 0 8px; }
.blog-shelf + .blog-shelf { border-top: 1px solid #E4E4E7; margin-top: 32px; }
.blog-shelf[hidden] { display: none; }
.blog-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.blog-shelf-head p { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6B73; }
.blog-shelf-head h2 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: #18181B; }
.blog-shelf-head span { font-size: 14px; color: #6B6B73; white-space: nowrap; }
.blog-shelf-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.blog-shelf-guides .blog-shelf-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Cards: one quiet style for every kind */
body[data-page="blog"] .widget-hub-card,
body[data-page="blog"] .widget-hub-card.is-live { border: 1px solid #E4E4E7 !important; border-radius: 10px !important; box-shadow: none !important; transform: none !important; background: #FFFFFF !important; transition: border-color 0.15s ease; }
body[data-page="blog"] a.widget-hub-card:hover { border-color: #18181B !important; box-shadow: none !important; transform: none !important; }
body[data-page="blog"] a.widget-hub-card:focus-visible { outline: none; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #18181B !important; }
body[data-page="blog"] .widget-hub-preview,
body[data-page="blog"] .widget-hub-card.is-live .widget-hub-preview { height: 150px; padding: 16px; background: #F4F4F5 !important; background-image: none !important; border-bottom: 1px solid #E4E4E7; }
body[data-page="blog"] .widget-hub-badge,
body[data-page="blog"] .widget-hub-badge.live { top: 10px; right: auto; left: 10px; padding: 3px 8px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E4E4E7; color: #52525B; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
body[data-page="blog"] .widget-hub-body { padding: 14px 16px 16px; gap: 4px; }
body[data-page="blog"] .widget-hub-body h3 { font-family: var(--font-display); font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: #18181B; }
body[data-page="blog"] .widget-hub-sub { font-size: 13px; line-height: 1.45; color: #6B6B73; }

/* Roundups: three design tiles, straight and flat */
body[data-page="blog"] .widget-hub-stickers { grid-template-columns: repeat(3, 68px); gap: 10px; }
body[data-page="blog"] .widget-hub-sticker { width: 68px; height: 68px; padding: 6px; border-radius: 10px; border: 1px solid #E4E4E7; box-shadow: none; transform: none !important; }

/* Tools: screenshot cropped to the top, no inner frame */
.blog-shelf-tools .widget-hub-preview { padding: 14px 14px 0 !important; align-items: flex-end; }
.blog-shelf-tools .widget-hub-preview img { border: 1px solid #E4E4E7 !important; border-bottom: 0 !important; border-radius: 8px 8px 0 0 !important; background: #FFFFFF; }
.blog-shelf-tools .widget-hub-badge { display: none; }

/* Guides: compact rows with the icon on the left and the label as a kicker */
.blog-shelf-guides .widget-hub-card { flex-direction: row; align-items: center; min-height: 92px; }
.blog-shelf-guides .widget-hub-preview { height: auto !important; width: 64px; flex: none; padding: 0 0 0 16px !important; background: transparent !important; border-bottom: 0 !important; }
.blog-shelf-guides .widget-hub-badge { display: none; }
.blog-shelf-guides .widget-hub-icon-box { width: 44px; height: 44px; border-radius: 10px; background: #F4F4F5; border: 0; box-shadow: none; color: #18181B; }
.blog-shelf-guides .widget-hub-icon-box svg { width: 20px; height: 20px; }
.blog-shelf-guides .widget-hub-body { padding: 14px 16px; }
.blog-card-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6B73; }

@media (max-width: 640px) {
  body[data-page="blog"] .blog-hub-section { padding-top: 24px; }
  body[data-page="blog"] .blog-hub-section h1.section-title { font-size: 30px; }
  body[data-page="blog"] .blog-hub-lede { font-size: 16px; }
  .blog-shelf { padding-top: 28px; }
  .blog-shelf + .blog-shelf { margin-top: 20px; }
  .blog-shelf-head h2 { font-size: 21px; }
  .blog-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .blog-shelf-guides .blog-shelf-grid { grid-template-columns: 1fr; }
  body[data-page="blog"] .widget-hub-preview { height: 120px; padding: 10px; }
  body[data-page="blog"] .widget-hub-stickers { grid-template-columns: repeat(3, 44px); gap: 6px; }
  body[data-page="blog"] .widget-hub-sticker { width: 44px; height: 44px; padding: 4px; }
  body[data-page="blog"] .widget-hub-body { padding: 12px; }
  body[data-page="blog"] .widget-hub-body h3 { font-size: 15px; }
}
