/* The Nest blog: listing and post templates on the package design tokens (styles.css). */
.blog-main { background: var(--ivory); }
.blog-hero { padding: 140px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 8px 0 12px; color: var(--ink); }
.blog-intro { max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.blog-breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.blog-breadcrumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.blog-breadcrumb a:hover { color: var(--magenta); }
.blog-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.blog-topics a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .86rem; color: var(--ink); text-decoration: none; background: var(--ivory); }
.blog-topics a[aria-current="page"], .blog-topics a:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.blog-list { padding: 48px 0 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); text-decoration: none; font-weight: 600; }
.blog-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; margin: 0; }
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--magenta); }
.blog-card-date { margin: 0; font-size: .82rem; color: var(--muted-light); }
.blog-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: .9rem; color: var(--muted); }
.blog-pager a { color: var(--magenta); font-weight: 600; text-decoration: none; }

.post-narrow { max-width: 820px; }
.post-hero { padding: 140px 0 24px; }
.post-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; margin: 10px 0 16px; color: var(--ink); }
.post-tag { display: inline-block; text-decoration: none; }
.post-meta { color: var(--muted); font-size: .92rem; }
.post-meta a { color: var(--magenta); text-decoration: none; }
.post-feature { margin: 8px auto 36px; }
.post-feature img { width: 100%; height: auto; border-radius: 18px; display: block; }
.post-body { font-size: 1.04rem; line-height: 1.8; color: var(--ink); }
.post-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; line-height: 1.15; margin: 44px 0 14px; }
.post-body h3 { font-weight: 600; font-size: 1.2rem; margin: 32px 0 10px; }
.post-body h4 { font-weight: 600; font-size: 1.05rem; margin: 24px 0 8px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--magenta); }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body a.button { color: #fff; text-decoration: none; }
.post-cta, .post-button .button { display: inline-block; margin: 6px 0; }
.post-figure { margin: 28px 0; }
.post-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.post-table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.post-table th, .post-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table thead th { background: var(--stone); font-weight: 600; }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }
.post-faq { margin: 32px 0; }
.post-faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.post-faq-item:last-child { border-bottom: 1px solid var(--line); }
.post-faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.post-faq-answer { padding: 0 0 12px; color: var(--muted); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.post-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.post-card p { font-size: .94rem; color: var(--muted); margin: 0; }
.post-card-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); color: #fff; font-weight: 600; font-size: .9rem; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .88rem; }
.post-share span { font-weight: 600; margin-right: 6px; }
.post-share a, .post-share button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; color: var(--ink); text-decoration: none; background: var(--paper); font: inherit; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--magenta); color: var(--magenta); }
.post-author { margin: 40px 0 64px; padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.post-author h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; margin: 6px 0 8px; }
.post-author h2 a { color: var(--ink); text-decoration: none; }
.post-author p { color: var(--muted); margin: 0; }
.post { padding-bottom: 56px; }
.post-table { min-width: 540px; }
@media (max-width: 760px) { .blog-hero, .post-hero { padding-top: 110px; } .post-body { font-size: 1rem; } }
.post-audio { margin: 0 0 32px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.post-audio-label { margin: 0 0 10px; font-weight: 600; font-size: .92rem; }
.post-audio-label span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.post-audio audio { width: 100%; }
/* Long CTA text wraps instead of pushing the page wider; tables inside post HTML scroll on their own. */
.post-body .button { white-space: normal; max-width: 100%; text-align: center; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; }

/* The Nest banner: text-free artwork from Tiffanni; title and tagline are live text in the site's own tokens. */
.nest-banner { position: relative; overflow: hidden; height: max(380px, 33.333vw); background: var(--ivory); border-bottom: 1px solid var(--line); }
.nest-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nest-banner-text { position: absolute; left: 0; right: 0; top: 52%; padding: 0 20px; text-align: center; }
.nest-banner-text h1 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 10px; color: var(--ink); }
.nest-banner-text .blog-intro { max-width: 640px; margin: 0 auto; color: var(--muted); font-family: var(--font-sans); font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.blog-hero-under-banner { padding: 28px 0 40px; }
@media (max-width: 560px) { .nest-banner { height: 400px; } }
