.breadcrumb .container { text-align: center; }
/* ============================================================
   PATIO STYLE · Blog theme
   Layers on top of /styles/site.css (design tokens, base reset,
   nav, footer, buttons, eyebrow, container). This file only adds:
     1. The interactive components that live inline on the main
        site and are NOT in site.css (mobile nav + back-to-top),
        ported verbatim so /blog/ behaves identically.
     2. Blog-specific listing + single-post styling.
   Every colour references a shared design-system variable. No
   tokens are redefined here.
   ============================================================ */

/* ============================================================
   1 · MOBILE NAV + BACK-TO-TOP (ported from the main site's inline
   <style>; site.css does not include these).
   ============================================================ */
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 11px 8px; flex-direction: column; justify-content: center; gap: 5px; justify-self: end; }
.nav-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease; }
.nav.scrolled .nav-burger span { background: var(--text-primary, #1A1A1A); }
.nav-burger.open span { background: #fff; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1140; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.nav-scrim.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.nav-mobile { position: fixed; top: 0; right: 0; height: 100%; width: min(82vw, 320px); background: var(--charcoal, #111111); z-index: 1150; transform: translateX(100%); visibility: hidden; transition: transform 0.34s cubic-bezier(0.25,1,0.5,1), visibility 0s linear 0.34s; display: flex; flex-direction: column; padding: 5.5rem 1.75rem 2rem; overflow-y: auto; }
.nav-mobile.open { transform: translateX(0); visibility: visible; transition: transform 0.34s cubic-bezier(0.25,1,0.5,1); }
.nav-mobile a { color: rgba(255,255,255,0.92); font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 1.08rem; letter-spacing: 0.01em; padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.09); text-decoration: none; }
.nav-mobile a:hover, .nav-mobile a:focus-visible { color: var(--brass-light, #D4BA85); }
@media (max-width: 900px) {
  .nav .nav-left a.nav-link, .nav .nav-right a.nav-link { display: none; }
  .nav-burger { display: flex; position: absolute; top: 0; bottom: 0; right: 1.1rem; margin: auto 0; }
  .nav-logo { justify-self: start; }
}

.back-to-top{position:fixed;right:1.25rem;bottom:1.25rem;z-index:1100;width:44px;height:44px;border:0;border-radius:50%;background:var(--charcoal,#111);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .3s ease,transform .3s ease,visibility .3s ease,background .3s ease;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover,.back-to-top:focus-visible{background:var(--brass,#C8A96E)}
.back-to-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
@media print{.back-to-top{display:none}}

/* Blog pages carry no sticky mobile CTA, so reclaim the space site.css
   reserves for it on small screens. */
@media (max-width: 768px) { body { padding-bottom: 0; } }

/* Anchor jumps (and the skip link) clear the fixed nav. */
#main { scroll-margin-top: 100px; }
.custom_blog_html :target { scroll-margin-top: 110px; }

/* ============================================================
   2 · BLOG MASTHEAD (the dark band injected by blog_header.php)
   Gives the transparent fixed nav a dark backdrop and titles the page.
   ============================================================ */
.blog-hero {
  background: var(--charcoal);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding-block: clamp(8rem, 14vw, 11rem) clamp(2.5rem, 5vw, 3.5rem);
}
.blog-hero .eyebrow { color: var(--brass-light); justify-content: center; }
.blog-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-style: normal;
  color: #fff;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 0.7rem;
}
.blog-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brass-light);
  font-size: var(--step-1);
  line-height: 1.4;
  margin-top: 0.9rem;
}

/* ============================================================
   3 · BREADCRUMB (php_breadcrumb output on single posts)
   ============================================================ */
.breadcrumb {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.breadcrumb .container { padding-block: 1rem; }

/* ============================================================
   4 · SHARED READING COLUMN
   ============================================================ */
#blog-listing, #blog-details { padding-block: clamp(2.5rem, 5vw, 4rem); }
.custom_blog_html {
  max-width: 820px;
  margin-inline: auto;
  color: var(--text-primary);
  font-size: var(--step-0);
  line-height: 1.8;
}

/* ============================================================
   5 · BLOG LISTING (/blog/)
   ============================================================ */
/* The default "Blog Page" H2 is redundant with the masthead title. */
.blog_page_heading { display: none; }

/* Collapse the table layout so each post becomes a stacked card. */
#blog_list_front,
#blog_list_front tbody,
#blog_list_front tr,
#blog_list_front td { display: block; width: 100%; }
#blog_list_front thead { display: none; }
#blog_list_front td { padding: 0; }
.blog_listing_front td { padding: 0; }

#blog_list_front .blog_list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
#blog_list_front .blog_list:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
#blog_list_front .blog_list h3.main_heading { margin: 0; }
#blog_list_front .blog_list h3.main_heading a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  transition: color .2s ease;
}
#blog_list_front .blog_list h3.main_heading a:hover { color: var(--brass-dark); }
#blog_list_front .blog_list h4.sub_heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--brass-dark);
  margin: 0.35rem 0 0;
}
#blog_list_front .blog_list .imgthumbnail_wr {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: none;
}
#blog_list_front .blog_list .imgthumbnail_wr img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-width: 100%;
}
#blog_list_front .blog_list p {
  color: var(--text-secondary);
  font-size: var(--step-0);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}
.blog-list-button { margin-top: 0.25rem; }
.blog-list-button a { text-decoration: none; }
.listing-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.8rem 1.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.listing-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- Listing pagination ---- */
#blog-listing .text-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  margin-top: 2.5rem;
}
#blog-listing .text-right hr { flex-basis: 100%; width: 100%; border: none; border-top: 1px solid var(--border); margin: 1.5rem 0 0.5rem; }
#blog-listing .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#blog-listing .btn-secondary:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
#blog-listing .input-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
#blog-listing .form-control {
  width: auto;
  min-width: 3.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  text-align: center;
  color: var(--text-primary);
  background: #fff;
}
#blog-listing .input-group-text { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
#blog-listing input[type="submit"] {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
#blog-listing input[type="submit"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ============================================================
   6 · SINGLE POST (/blog/<slug>.html)
   ============================================================ */
/* All single-post rules are scoped to #blog-details so they never leak into
   the listing, which also wraps its markup in .custom_blog_html. */
#blog-details .social_share_option { margin-bottom: 1.75rem; }

/* Post subtitle / lead (rendered as h2.sub_heading by ezBLOG). */
#blog-details .custom_blog_html h2.sub_heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  color: var(--brass-dark);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 1.5rem;
}
#blog-details .custom_blog_html h3.sub_heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--brass-dark);
  margin: 0 0 1.25rem;
}

/* Featured image + any in-body images. */
#blog-details .custom_blog_html img.img-thumbnail,
#blog-details .custom_blog_html img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 0 1.75rem;
}

/* Article body typography (author-written $generatedhtml). */
#blog-details .custom_blog_html p { margin: 0 0 1.4rem; color: var(--text-secondary); }
#blog-details .custom_blog_html h2,
#blog-details .custom_blog_html h3,
#blog-details .custom_blog_html h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
#blog-details .custom_blog_html h2 { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
#blog-details .custom_blog_html h3 { font-size: var(--step-1); margin: 2rem 0 0.85rem; }
#blog-details .custom_blog_html h4 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Archivo', sans-serif; margin: 1.75rem 0 0.75rem; }
#blog-details .custom_blog_html a {
  color: var(--brass-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
#blog-details .custom_blog_html a:hover { color: var(--brass-dark-hover); }
#blog-details .custom_blog_html ul,
#blog-details .custom_blog_html ol { margin: 0 0 1.4rem 1.4rem; color: var(--text-secondary); }
#blog-details .custom_blog_html ul { list-style: disc; }
#blog-details .custom_blog_html ol { list-style: decimal; }
#blog-details .custom_blog_html li { margin-bottom: 0.5rem; }
#blog-details .custom_blog_html blockquote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--brass);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--text-primary);
}
#blog-details .custom_blog_html hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
#blog-details .custom_blog_html table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--step--1); }
#blog-details .custom_blog_html th,
#blog-details .custom_blog_html td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
#blog-details .custom_blog_html th { background: var(--paper-warm); font-family: 'Archivo', sans-serif; }
