/* Blog home + article components. Bespoke (no locked equivalent); palette tokens only.
   Reuses locked styles.css for nav/footer, what-section (How Compass Helps band), faqs-section, btn. */

/* hero */
.blog-hero { background: var(--white); padding: 3rem 0 2.5rem; }
.blog-crumb { color: var(--gray-500); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0 0 1.5rem; }
.blog-crumb a { color: var(--gray-500); text-decoration: none; }
.blog-hero__eyebrow { display:block; color: var(--teal); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; margin-bottom: 1rem; }
.blog-hero__h1 { text-align: center; color: var(--navy); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 auto 1rem; max-width: 40rem; }
.blog-hero__sub { text-align: center; color: var(--gray-700); font-size: 1.0625rem; line-height: 1.6; max-width: 38rem; margin: 0 auto 2.5rem; }

/* filter + sort controls */
.blog-controls__row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.blog-controls__label { font-size: 0.8rem; font-weight: 700; color: var(--navy); min-width: 64px; }
.filt-pills, .sort-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filt-pill, .sort-pill { border-radius: 999px; padding: 0.4rem 0.9rem; font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; background: transparent; transition: background-color 120ms ease, color 120ms ease; }
.filt-pill { border: 1.5px solid var(--coral); color: var(--navy); }
.filt-pill.is-active { background: var(--coral); border-color: var(--coral); color: #fafafa; }
.sort-pill { border: 1.5px solid var(--teal); color: var(--navy); }
.sort-pill.is-active { background: var(--teal); border-color: var(--teal); color: #fafafa; }

/* grid + cards */
.blog-grid-section { padding: 2.5rem 0 4rem; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 560px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }
.blog-card { position: relative; display: block; border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--navy); }
.blog-card__img { aspect-ratio: 3 / 4; }
.blog-card__img img, .blog-card .blog-img-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__cat { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--coral); color: #fafafa; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.32rem 0.6rem; border-radius: 999px; }
.blog-card__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem; padding: 0.85rem; }
/* title: navy hugs the text PER LINE (box-decoration-break) so long titles wrap into
   a stacked navy shape that follows the text, never one solid block. */
.blog-card__title { flex: 0 1 auto; min-width: 0; background: transparent; padding: 0; }
.blog-card__title span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--navy); color: #fafafa; font-weight: 700; font-size: 0.92rem; line-height: 1.55; padding: 0.18rem 0.5rem; border-radius: 7px; }
.blog-card__read { flex: 0 0 auto; align-self: flex-end; background: var(--navy); color: #fafafa; font-size: 0.68rem; font-weight: 600; padding: 0.45rem 0.55rem; border-radius: 7px; white-space: nowrap; }

/* placeholder for an un-pulled stock slot */
.blog-img-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; background: rgba(100,116,139,0.12); color: var(--slate); font-size: 0.85rem; }

/* article — content column widened to match the home container feel.
   One shared width for text + all images so the page reads consistently. */
.blog-article { background: var(--white); padding: 3rem 0 3.5rem; }
.blog-article__inner { max-width: var(--container-wide); margin: 0 auto; }
.blog-article__eyebrow { display: block; text-align: center; color: var(--teal); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0.5rem 0 1rem; }
.blog-article__h1 { text-align: center; color: var(--navy); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; margin: 0 auto 1.25rem; max-width: 1080px; }
.blog-article__read { text-align: center; color: var(--teal); font-weight: 600; font-size: 0.95rem; margin: 0 0 2rem; }
.blog-article__intro { max-width: 1080px; margin: 0 auto 2.5rem; }
.blog-article__intro p { text-align: center; color: var(--gray-700); font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.blog-article__lead { max-width: 1080px; margin: 0 auto 2.5rem; }
.blog-article__lead img { width: 100%; height: auto; border-radius: 18px; display: block; }
.blog-article__lead .blog-img-ph { aspect-ratio: 16/9; border-radius: 18px; }
.blog-article__body { max-width: 1080px; margin: 0 auto; }
.blog-article__h2 { color: var(--navy); font-weight: 700; font-size: 1.4rem; margin: 2.25rem 0 1rem; }
.blog-article__body p { color: var(--gray-700); line-height: 1.8; margin: 0 0 1.15rem; }
.blog-article__img { margin: 2rem 0; }
.blog-article__img img { width: 100%; height: auto; border-radius: 14px; display: block; }
.blog-article__img .blog-img-ph { aspect-ratio: 16/9; border-radius: 14px; }

/* Load More: 8 shown by default, reveals 8 more per click (set by JS). */
.blog-card.is-hidden { display: none !important; }
.blog-loadmore-wrap { text-align: center; margin-top: 2.5rem; }
.blog-loadmore { border: 1.5px solid var(--teal); background: transparent; color: var(--navy); font-family: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.7rem 2rem; border-radius: 999px; cursor: pointer; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-loadmore[hidden] { display: none; }

/* How Compass Helps band CTA: the locked .what-section__body a rule paints in-prose
   links amber + underline; the CTA button must stay a teal conversion btn. */
.what-section__cta { margin-top: 1.75rem; margin-bottom: 0; }
.what-section__body a.btn--primary { color: #fafafa; text-decoration: none; }
.what-section__body a.btn--primary:hover { color: #fafafa; background-color: var(--teal); border-color: var(--teal); }

/* related */
.blog-related { background: var(--white); padding: 1rem 0 4rem; }
.blog-related__h { text-align: center; color: var(--navy); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 2rem; }
/* Related carousel: reuses the locked .carousel viewport/track scroll + buttons,
   but the items are blog-cards (4 per view desktop). Shows EVERY same-category article. */
.blog-related .carousel__track { align-items: stretch; }
/* peek layout (matches the home carousel): ~3.25 cards visible so a 4th overflows and
   the row actually scrolls + drags. With 8 it scrolls further. */
.blog-related .carousel__card-wrap { flex: 0 0 calc((100% - 4.5rem) / 3.25); scroll-snap-align: start; }
@media (max-width: 920px) { .blog-related .carousel__card-wrap { flex: 0 0 calc((100% - 1.5rem) / 2.25); } }
@media (max-width: 560px) { .blog-related .carousel__card-wrap { flex: 0 0 82%; } }
.blog-related .blog-card { height: 100%; }
.blog-related .carousel__controls { justify-content: flex-end; margin-top: 1.25rem; }
.blog-related .carousel__controls[hidden] { display: none; }

/* sign-up form (UI only; submit stubbed) */
.signup-section { background: var(--warm-sand); padding: 4.5rem 0 5rem; }
.signup-section__h { text-align: center; color: var(--navy); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; max-width: 40rem; margin: 0 auto; }
.signup-form { max-width: 820px; margin: 2.75rem auto 0; }
.signup-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .signup-row { grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: center; } }
.signup-row label { font-weight: 700; color: var(--navy); }
.signup-row input { padding: 0.9rem 1rem; border: 1.5px solid var(--navy); border-radius: 12px; background: #fafafa; font-family: inherit; font-size: 1rem; color: var(--navy); width: 100%; }
.signup-consent { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--gray-700); font-size: 0.9rem; line-height: 1.5; margin: 0 0 1.75rem; }
@media (min-width: 640px) { .signup-consent { margin-left: 166px; } }
.signup-form .btn { width: 100%; }
@media (min-width: 640px) { .signup-form .btn { width: auto; margin-left: 166px; } }
.signup-success { color: var(--teal); font-weight: 600; margin: 1rem 0 0; }
@media (min-width: 640px) { .signup-success { margin-left: 166px; } }
/* Blog body tables — borders, padding, header, mobile scroll. Append to compass-website/public/blog.css */
.blog-article__body table{width:100%;border-collapse:collapse;margin:1.75rem 0;font-size:.95rem;line-height:1.4;}
.blog-article__body thead th{background:var(--warm-sand,#F5F0E8);color:var(--navy,#1B2A4A);font-weight:600;text-align:left;}
.blog-article__body th,.blog-article__body td{border:1px solid #E3DED4;padding:.6rem .85rem;text-align:left;vertical-align:top;color:var(--navy,#1B2A4A);}
.blog-article__body tbody tr:nth-child(even){background:#FAF7F1;}
@media (max-width:640px){.blog-article__body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;}}
