/* Chemsave header for the blog.
   Values copied from site/src/layouts/Base.astro so the bar is identical to the
   main site: same blue, same 98px height, same 1180px wrap, same orange
   current-page underline. Kept as its own file rather than folded into the
   theme's built stylesheet, which is compiled from source we do not build here.
*/
.cs-header { background: #009FD7; color: #fff; }
.cs-bar {
  max-width: 1180px; margin-inline: auto; padding-inline: 22px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 98px; gap: 20px;
}
.cs-brand { display: inline-flex; text-decoration: none; }
.cs-brand img { width: 172px; height: 70px; object-fit: contain; display: block; }
.cs-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.cs-nav a {
  color: #fff; text-decoration: none; font-weight: 600; padding: 8px 2px;
  white-space: nowrap; font-size: 17px;
  font-family: "Proxima Nova", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.cs-nav a:hover { color: #141B41; }
.cs-nav a[aria-current="page"] { box-shadow: 0 3px 0 #F2AA31; }
.cs-nav a.cs-member {
  color: #141B41; background: #fff; border-radius: 6px; padding: 8px 14px;
}
.cs-nav a.cs-member[aria-current] { box-shadow: none; }

@media (max-width: 700px) {
  /* No min-height override here. Base.astro keeps the 98px bar at every
     width, and dropping it to 0 made the blog header a different height
     from every other page the moment you crossed into it. */
  .cs-bar { flex-wrap: wrap; padding-block: 15px; }
  .cs-nav { width: 100%; justify-content: flex-start; gap: 8px 16px; font-size: 15px; }
  .cs-nav a { font-size: 15px; }
}



/* Chemsave footer — values copied from site/src/layouts/Base.astro so the blog
   ends exactly as every other page does. Brand blue, not navy. */
.cs-footer {
  background: #009FD7; color: rgba(255,255,255,.95); margin-top: 72px; padding: 44px 0 30px;
  font-family: "Proxima Nova", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.cs-fgrid {
  max-width: 1180px; margin-inline: auto; padding-inline: 22px;
  display: grid; grid-template-columns: 1.3fr 1fr .9fr .9fr; gap: 32px;
}
/* One "Explore" heading over two link columns, so both lists start level. */
.cs-fexplore { grid-column: span 2; }
.cs-flinks { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 28px; align-items: start; }
.cs-flogo { width: 190px; height: auto; margin: 0 0 10px; display: block; }
.cs-fnote { max-width: 34ch; font-size: 14.5px; margin: 0; line-height: 1.6; }
.cs-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 700; }
.cs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cs-footer a { color: rgba(255,255,255,.95); text-decoration: none; font-size: 14.5px; }
.cs-footer a:hover { color: #fff; text-decoration: underline; }
.cs-news { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.cs-news input {
  flex: 1 1 150px; padding: 10px 12px; border-radius: 6px; border: 0; font: inherit; font-size: 15px;
}
.cs-btn {
  background: #F2AA31; color: #fff; font-weight: 700; border: 0; border-radius: 6px;
  padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer;
}
.cs-btn:hover { background: #E79A19; }
.cs-socials { font-size: 14px; margin-top: 12px; }
.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-copyright {
  max-width: 1180px; margin: 32px auto 0; padding: 18px 22px 0;
  border-top: 1px solid rgba(255,255,255,.3); font-size: 13px; color: rgba(255,255,255,.85);
}
@media (max-width: 720px) { .cs-fgrid { grid-template-columns: 1fr; } .cs-fexplore { grid-column: auto; } }

/* Chemsave's page-head device, used at the top of the blog's front page and its
   pagination pages. Values copied from site/src/styles/tokens.css (.eyebrow)
   and site/src/pages/book-a-service.astro (.svc-head) so the blog opens exactly
   as Book A Service and Find A Store do.

   Headline's own .gh-pagehead is uppercase, letter-spaced and underscored by a
   rule. That is the blog theme's voice, so this replaces it rather than
   restyling it. No padding-top here: .gh-main already contributes 6.4rem.
*/
.cs-pagehead { max-width: 70ch; margin: 0 0 44px; }
.cs-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #0079A8;
}
/* The 27x5 blue bar. flex:none so it cannot be squeezed by a long label. */
.cs-eyebrow::before { content: ""; width: 27px; height: 5px; background: #009FD7; flex: none; }
.cs-pagehead h1 {
  margin: 10px 0 0; color: #141B41;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15; text-wrap: balance;
}
.cs-pagehead p { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: #47536e; }

/* Headline opens .gh-main at 6.4rem. The site's page heads start at 26px
   (.cat-head, .svc-head, .head), so the blog sat noticeably lower than every
   other page. Scoped to the templates carrying our page head -- posts and tag
   archives keep Headline's own rhythm.
*/
.cs-pagetop { padding-top: 26px; }

/* Breadcrumbs, matching site/src/components/Crumbs.astro so a reader crossing
   from a store page to a blog post sees the same device. See
   partials/chemsave-crumbs.hbs for why the blog carries the visible trail but
   not the BreadcrumbList markup. No padding-top: .gh-main already contributes
   6.4rem above it.
*/
.cs-crumbs { padding: 0 0 18px; font-size: 13.5px; color: #7c86a0; }
.cs-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
}
.cs-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Generated, so the separator is never selectable or mistaken for content. */
.cs-crumbs li + li::before { content: "\203A"; color: #bcc9d6; }
.cs-crumbs a { color: #7c86a0; text-decoration: none; }
.cs-crumbs a:hover { color: #0079A8; text-decoration: underline; }
/* A post title runs far longer than the two hops above it, so the current crumb
   truncates rather than wrapping the trail onto a second line. */
.cs-crumbs li:last-child span {
  color: #47536e; max-width: 46ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* The theme sets a serif body font, which the footer's links and list items
   inherited through its own selectors -- and a serif title font too, which the
   page-head h1 would inherit. Force the brand stack on everything inside our
   header, page head, breadcrumbs and footer so they match the main site. */
.cs-header, .cs-header *, .cs-pagehead, .cs-pagehead *,
.cs-crumbs, .cs-crumbs *, .cs-footer, .cs-footer * {
  font-family: "Proxima Nova", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
