/* chrisgagne.com global theme CSS — maintained by Claude; referenced from Avada > Global Options > Custom CSS */
/* ── Paper ground everywhere: #wrapper defaults to near-white (#fbfaf8) and
   shows through as gutters on any page whose #main/containers don't fill it.
   Paint it ivory site-wide (the dark header + hero rows have their own bg and
   paint over this, so it's safe). Blog page (2589) has a white #main too. ── */
#wrapper { background-color:#f6f1e3 !important; }
body.page-id-2589, body.page-id-2589 #wrapper, body.page-id-2589 #main { background-color:#f6f1e3 !important; }
/* ── Blog + archive: paper ground, covers as plates ── */
body.blog, body.blog #main, body.archive, body.archive #main { background-color:#f6f1e3 !important; }
body.blog article.post, body.archive article.post { margin-bottom:52px; padding-bottom:10px; border-bottom:1px solid #e6dfca; }
body.blog article.post .fusion-image-wrapper img, body.archive article.post .fusion-image-wrapper img { border:1px solid #e6dfca; }
body.blog article .entry-title a, body.archive article .entry-title a { color:#1f1d1a; }
body.blog article .entry-title a:hover, body.archive article .entry-title a:hover { color:#7d2b2b; }
body.blog .fusion-meta-info, body.archive .fusion-meta-info { color:#8a8577; border-color:#e6dfca; }
body.blog a.fusion-read-more, body.archive a.fusion-read-more { color:#7d2b2b !important; font-weight:600; }
body.blog a.fusion-read-more:hover, body.archive a.fusion-read-more:hover { color:#5f1f1f !important; }
body.blog .page-numbers.current, body.archive .page-numbers.current { background:#7d2b2b !important; border-color:#7d2b2b !important; color:#ffffff !important; }
body.blog a.page-numbers:hover, body.archive a.page-numbers:hover { color:#7d2b2b !important; border-color:#7d2b2b !important; }
body.blog .fusion-blogsidebar .widget, body.archive .fusion-blogsidebar .widget, body.single-post .fusion-blogsidebar .widget { background:#fdfaf2; border:1px solid #e6dfca; padding:26px 26px 20px; }
body.blog .fusion-blogsidebar a, body.archive .fusion-blogsidebar a, body.single-post .fusion-blogsidebar a { color:#7d2b2b; }
body.blog .fusion-blogsidebar a:hover, body.archive .fusion-blogsidebar a:hover, body.single-post .fusion-blogsidebar a:hover { color:#5f1f1f; }
/* ── Single posts: no page-title bar, same paper ground ── */
body.single-post .fusion-page-title-bar { display:none !important; }
body.single-post, body.single-post #main { background-color:#f6f1e3 !important; }

/* ── Carried over from Avada > Custom CSS (verbatim, 2026-07-13) ── */
.blog main, .single-post main {margin-top: 20px;}
h2.fusion-post-title {font-weight: 700!important; font-size: 34px!important; line-height: 1.4!important;}
.col .heading img {margin: 0;}
#mobile-nav .mobile-sticky-nav{height: auto !important;}
.fusion-youtube{margin: 0 auto !important; width: 100%; height: auto;}
.content-boxes .content-container p {font-size: 16px;}
h4 { text-transform: uppercase; }

/* ─────────────────────────────────────────────────────────────────
   Come Prepared to Die — serialised-book landing.
   Applies to BOTH the taxonomy archive (body.category-343) and the
   Avada page that supersedes it (body.page-id-4284, /come-prepared-to-die/).
   One centred reading column, flat editorial rows, covers as plates.
   Scoped tight so other archives + pages are untouched.
   ───────────────────────────────────────────────────────────────── */

/* 1a — Archive only: drop the repeated bio sidebar, one centred column.
   Content + sidebar carry inline float + Avada-generated width, so !important. */
body.category-343 #main > .fusion-row > #sidebar { display: none !important; }
body.category-343 #main > .fusion-row > #content {
  float: none !important;
  width: 100% !important;
  margin: 0 auto !important;
}
body.category-343 #main > .fusion-row { max-width: 820px; margin-left: auto; margin-right: auto; }
body.category-343 #main { padding-top: 8px; }
body.category-343 .fusion-blog-archive { margin-top: 12px; }

/* 1b — Page only: constrain the Fusion builder rows to the same reading column. */
body.page-id-4284 #main .fusion-row { max-width: 820px; margin-left: auto; margin-right: auto; }
body.page-id-4284 #main { padding-top: 8px; }

/* 2 — Archive intro (moth-hero) reads as the page's opening. Archive uses the
   term description block; the page uses a fusion_text block. */
body.category-343 .fusion-archive-description {
  border-bottom: 1px solid #e6dfca; padding-bottom: 40px; margin-bottom: 8px;
}
body.category-343 .fusion-archive-description .post-content > p:first-child { margin-bottom: 22px; }
body.page-id-4284 .fusion-builder-row-1 {
  border-bottom: 1px solid #e6dfca; padding-bottom: 34px;
}
body.page-id-4284 .fusion-builder-row-1 .fusion-text p:first-child { margin-bottom: 22px; }
body.page-id-4284 .fusion-builder-row-1 .fusion-text p { font-size: 17px; line-height: 1.7; color: #3f3a33; }

/* ── Shared editorial rows (archive + page) ── */

/* 3 — Chapter rows: flat, generous, hairline-separated, left-aligned. */
body.category-343 article.fusion-post-large,
body.page-id-4284 article.fusion-post-large {
  margin-bottom: 0 !important;
  padding: 44px 0 40px !important;
  border-bottom: 1px solid #e6dfca;
  text-align: left !important;
}
body.category-343 .fusion-blog-archive article.fusion-post-large:last-of-type,
body.page-id-4284 .fusion-blog-archive article.fusion-post-large:last-of-type { border-bottom: none; }
body.category-343 article.fusion-post-large .fusion-post-content,
body.category-343 article.fusion-post-large .fusion-post-content-container,
body.category-343 article.fusion-post-large .fusion-meta-info,
body.page-id-4284 article.fusion-post-large .fusion-post-content,
body.page-id-4284 article.fusion-post-large .fusion-post-content-container,
body.page-id-4284 article.fusion-post-large .fusion-meta-info { text-align: left !important; }

/* 4 — Cover art as a plate: full artwork preserved, capped + centred, hairline. */
body.category-343 article.fusion-post-large .fusion-post-slideshow,
body.category-343 article.fusion-post-large .fusion-flexslider,
body.page-id-4284 article.fusion-post-large .fusion-post-slideshow,
body.page-id-4284 article.fusion-post-large .fusion-flexslider {
  margin: 0 0 26px !important; background: transparent !important; border: 0 !important; min-height: 0 !important;
}
body.category-343 article.fusion-post-large .fusion-image-wrapper,
body.page-id-4284 article.fusion-post-large .fusion-image-wrapper {
  display: block; text-align: center; background: #fdfaf2;
  border: 1px solid #e6dfca; border-radius: 2px; padding: 20px;
}
body.category-343 article.fusion-post-large .fusion-image-wrapper img,
body.page-id-4284 article.fusion-post-large .fusion-image-wrapper img {
  display: inline-block; width: auto !important; height: auto !important;
  max-width: 100% !important; max-height: 300px; object-fit: contain; border: 0 !important;
}

/* 5 — Title: serif, tight, ink → maroon on hover. */
body.category-343 h2.fusion-post-title,
body.page-id-4284 h2.fusion-post-title {
  font-size: 30px !important; line-height: 1.22 !important; margin: 0 0 12px !important; letter-spacing: -0.01em;
}
body.category-343 h2.fusion-post-title a,
body.page-id-4284 h2.fusion-post-title a { color: #1f1d1a; }
body.category-343 h2.fusion-post-title a:hover,
body.page-id-4284 h2.fusion-post-title a:hover { color: #7d2b2b; }

/* 6 — Excerpt: comfortable measure, muted-ink, real leading. */
body.category-343 .fusion-post-content-container,
body.page-id-4284 .fusion-post-content-container { margin: 0 0 20px; }
body.category-343 .fusion-post-content-container p,
body.page-id-4284 .fusion-post-content-container p {
  font-size: 18px; line-height: 1.7; color: #3f3a33; margin: 0;
}

/* 7 — Meta row: quiet, letterspaced, flex so Read More pins right. */
body.category-343 .fusion-meta-info,
body.page-id-4284 .fusion-meta-info {
  border: 0 !important; padding: 0 !important; margin: 0 !important;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; color: #9a9484;
}
body.category-343 .fusion-meta-info .fusion-alignleft,
body.category-343 .fusion-meta-info .fusion-alignright,
body.page-id-4284 .fusion-meta-info .fusion-alignleft,
body.page-id-4284 .fusion-meta-info .fusion-alignright { float: none !important; margin: 0 !important; }
body.category-343 .fusion-meta-info .fusion-alignright a.fusion-read-more,
body.page-id-4284 .fusion-meta-info .fusion-alignright a.fusion-read-more {
  text-transform: none; letter-spacing: 0; font-size: 14px; white-space: nowrap;
}

/* 8 — Neutralise Avada archive furniture that reads cheap. */
body.category-343 .flex-control-nav, body.category-343 .flex-direction-nav, body.category-343 .fusion-rollover,
body.page-id-4284 .flex-control-nav, body.page-id-4284 .flex-direction-nav, body.page-id-4284 .fusion-rollover {
  display: none !important;
}
body.category-343 article.fusion-post-large .fusion-image-wrapper img:hover,
body.page-id-4284 article.fusion-post-large .fusion-image-wrapper img:hover {
  transform: none !important; opacity: 1 !important;
}
body.category-343 .fusion-image-wrapper:hover,
body.page-id-4284 .fusion-image-wrapper:hover { box-shadow: none !important; }

/* 9 — Pagination centred (page shows all posts, so usually none). */
body.category-343 .fusion-blog-pagination, body.category-343 .pagination,
body.page-id-4284 .fusion-blog-pagination, body.page-id-4284 .pagination { text-align: center; }

/* 10 — Mobile. */
@media (max-width: 860px) {
  body.category-343 #main > .fusion-row,
  body.page-id-4284 #main .fusion-row { max-width: 100%; }
}
@media (max-width: 700px) {
  body.category-343 h2.fusion-post-title,
  body.page-id-4284 h2.fusion-post-title { font-size: 25px !important; }
  body.category-343 article.fusion-post-large,
  body.page-id-4284 article.fusion-post-large { padding: 32px 0 !important; }
  body.category-343 article.fusion-post-large .fusion-image-wrapper,
  body.page-id-4284 article.fusion-post-large .fusion-image-wrapper { padding: 14px; }
  body.category-343 article.fusion-post-large .fusion-image-wrapper img,
  body.page-id-4284 article.fusion-post-large .fusion-image-wrapper img { max-height: 220px; }
  body.category-343 .fusion-post-content-container p,
  body.page-id-4284 .fusion-post-content-container p { font-size: 16px; }
}

/* ── Single post 2214 (Open Letter to Wolfram & Jonze): alpha-cut header floats on ivory ── */
body.postid-2214 .fusion-post-slideshow,
body.postid-2214 .fusion-flexslider,
body.postid-2214 .post-slideshow {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  min-height: 0 !important; margin: 8px 0 30px !important;
}
body.postid-2214 #main .post-slideshow .slides {
  float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
  display: flex; justify-content: center;
}
body.postid-2214 #main .post-slideshow .slides li { float: none !important; width: auto !important; }
body.postid-2214 .post-slideshow img {
  max-height: 420px; width: auto !important; height: auto; display: block; margin: 0 auto;
}
@media (max-width: 700px) {
  body.postid-2214 .post-slideshow img { max-height: 260px; max-width: 92%; }
}

/* ─────────────────────────────────────────────────────────────────
   /blog (page 2589) — 3-column grid of essays, equal-height brand cards.
   Avada renders this grid with Isotope masonry; we override to CSS Grid.
   ───────────────────────────────────────────────────────────────── */
/* /blog 3-column grid — equal-height brand cards. Scope: body.page-id-2589. */

/* Avada renders this grid with Isotope (JS masonry): each article gets
   inline position:absolute + top/left and the container a fixed height.
   Override to a real CSS Grid so cards form clean equal-height rows. */
body.page-id-2589 .fusion-posts-container.fusion-blog-layout-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
}
body.page-id-2589 .fusion-posts-container.fusion-blog-layout-grid > .fusion-post-grid {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
}
/* Neutralise the inline padding:15px Avada prints for this shortcode. */
body.page-id-2589 .fusion-blog-layout-grid .fusion-post-grid { padding: 0 !important; }

/* Card: ivory paper, hairline, flex column so meta pins to the bottom. */
body.page-id-2589 .fusion-post-grid {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  background: #fdfaf2;
  border: 1px solid #e6dfca;
  border-radius: 3px;
  overflow: hidden;
}

/* Cover: uniform 16:9 plate at the top, artwork covers the box cleanly. */
body.page-id-2589 .fusion-post-grid .fusion-image-wrapper,
body.page-id-2589 .fusion-post-grid .fusion-flexslider,
body.page-id-2589 .fusion-post-grid .fusion-post-slideshow {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6dfca;
  background: #f6f1e3;
}
body.page-id-2589 .fusion-post-grid .fusion-image-wrapper img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  max-height: none !important;
}
/* Posts with no thumbnail: reserve nothing (card just starts at the title). */

/* The wrapper holds cover + content + bottom-meta; make it a flex column
   so the content region can grow and the meta foot pins to the bottom. */
body.page-id-2589 .fusion-post-grid .fusion-post-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

/* Body padding inside the card (title + top-meta + excerpt). */
body.page-id-2589 .fusion-post-grid .fusion-post-content {
  padding: 18px 20px 4px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-align: left !important;
}

/* Top single-line meta (date): tiny + muted, sits under the title. */
body.page-id-2589 .fusion-post-grid p.fusion-single-line-meta {
  order: 2;
  margin: 0 0 10px !important;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a9484;
}
body.page-id-2589 .fusion-post-grid p.fusion-single-line-meta .fusion-inline-sep { display: none; }
/* Break the line after the date so categories drop to their own row. */
body.page-id-2589 .fusion-post-grid p.fusion-single-line-meta > span:not([class]) { display: block; margin-bottom: 3px; }

/* Drop Avada's heavy divider between meta and excerpt. */
body.page-id-2589 .fusion-post-grid .fusion-content-sep { display: none !important; }

/* Title: order first, 3-line clamp so heights stay even. */
body.page-id-2589 .fusion-post-grid h2.blog-shortcode-post-title,
body.page-id-2589 .fusion-post-grid .entry-title {
  order: 1;
  font-size: 18px !important;
  line-height: 1.28 !important;
  margin: 0 0 8px !important;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.page-id-2589 .fusion-post-grid .entry-title a { color: #1f1d1a; }
body.page-id-2589 .fusion-post-grid .entry-title a:hover { color: #7d2b2b; }

/* Excerpt: order last, clamp to 4 lines, grows to fill so meta pins bottom. */
body.page-id-2589 .fusion-post-grid .fusion-post-content-container {
  order: 3;
  margin: 0 0 16px !important;
  flex: 1 1 auto;
}
body.page-id-2589 .fusion-post-grid .fusion-post-content-container,
body.page-id-2589 .fusion-post-grid .fusion-post-content-container p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a453d;
}
body.page-id-2589 .fusion-post-grid .fusion-post-content-container p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta: quiet, pinned to a hairline foot inside the card. */
body.page-id-2589 .fusion-post-grid .fusion-meta-info {
  border: 0 !important;
  border-top: 1px solid #e6dfca !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a9484;
}
body.page-id-2589 .fusion-post-grid .fusion-meta-info .fusion-alignleft,
body.page-id-2589 .fusion-post-grid .fusion-meta-info .fusion-alignright { float: none !important; margin: 0 !important; }
body.page-id-2589 .fusion-post-grid a.fusion-read-more {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600;
  color: #7d2b2b !important; white-space: nowrap;
}
body.page-id-2589 .fusion-post-grid a.fusion-read-more:hover { color: #5f1f1f !important; }

/* Kill Avada grid hover-zoom / rollover. */
body.page-id-2589 .fusion-post-grid .fusion-rollover,
body.page-id-2589 .fusion-post-grid .flex-control-nav,
body.page-id-2589 .fusion-post-grid .flex-direction-nav { display: none !important; }
body.page-id-2589 .fusion-post-grid .fusion-image-wrapper img:hover { transform: none !important; opacity: 1 !important; }

/* Pagination centred + maroon current (inherits body.blog rule; reinforce). */
body.page-id-2589 .fusion-blog-pagination { text-align: center; padding-top: 6px; }

/* Responsive: 2-up tablet, 1-up phone. */
@media (max-width: 980px) {
  body.page-id-2589 .fusion-posts-container.fusion-blog-layout-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body.page-id-2589 .fusion-posts-container.fusion-blog-layout-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Single posts — share box + comment form onto the ivory/card system.
   ───────────────────────────────────────────────────────────────── */
/* Single posts: bring Avada's white furniture (share box, comment form)
   onto the ivory/card system. Body ground already ivory via body.single-post. */

/* Social-share box: card paper, hairline, not the default grey/white slab. */
body.single-post .fusion-sharing-box {
  background: #fdfaf2 !important;
  border: 1px solid #e6dfca !important;
  border-radius: 3px;
}
body.single-post .fusion-sharing-box h4 { color: #5a544a; }

/* Author / related boxes if present, same treatment. */
body.single-post .about-author,
body.single-post .fusion-author,
body.single-post .related-posts { background: transparent !important; }

/* Comment form: kill white inputs, use paper + hairline + maroon focus. */
body.single-post #comments,
body.single-post .comment-form { background: transparent !important; }
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea,
body.single-post #comment {
  background: #fdfaf2 !important;
  border: 1px solid #e6dfca !important;
  border-radius: 3px;
  color: #1f1d1a;
  box-shadow: none !important;
}
body.single-post .comment-form input[type="text"]:focus,
body.single-post .comment-form input[type="email"]:focus,
body.single-post .comment-form input[type="url"]:focus,
body.single-post .comment-form textarea:focus,
body.single-post #comment:focus {
  border-color: #7d2b2b !important;
  outline: none !important;
}
body.single-post .comment-form ::placeholder { color: #9a9484; }

/* Post Comment button: solid maroon, matches the site CTA. */
body.single-post #comment-submit,
body.single-post .comment-form input[type="submit"] {
  background: #7d2b2b !important;
  background-image: none !important;
  border-color: #7d2b2b !important;
  color: #ffffff !important;
  border-radius: 3px;
}
body.single-post #comment-submit:hover,
body.single-post .comment-form input[type="submit"]:hover {
  background: #5f1f1f !important;
  border-color: #5f1f1f !important;
}

/* Existing comments list: card paper, hairline separators. */
body.single-post .commentlist li.comment .comment-body {
  background: #fdfaf2;
  border: 1px solid #e6dfca;
  border-radius: 3px;
}

/* Meta divider under the post: hairline, not a heavy grey rule. */
body.single-post .fusion-meta-info { border-color: #e6dfca !important; }

/* Blockquotes: Avada defaults to a grey box; use card paper + maroon rule
   so pull-quotes sit on the ivory system (matches the CPTD brand quote). */
body.single-post .post-content blockquote,
body.page-id-4284 .post-content blockquote,
body.single-post .fusion-content-boxes blockquote {
  background: #fdfaf2 !important;
  border: 1px solid #e6dfca !important;
  border-left: 3px solid #7d2b2b !important;
  border-radius: 2px;
  color: #3f3a33;
}

/* ── Blog post body containers: a stray inline background-color:#ffffff is
   baked into some posts' Fusion Builder containers (currently post 3993),
   painting a white box behind the body copy on the ivory ground. Force the
   post-body fullwidth rows transparent so the paper shows through. Inline
   styles need !important to override. Scoped to single posts; the 14 clean
   posts have no white to override so are unaffected. ── */
body.single-post .fusion-fullwidth,
body.single-post .fusion-builder-row-1 {
  background-color: transparent !important;
}
