/*
	Theme Name: CHP 2025
	Description:  Public-facing Consortium Health Plans Website
  Author: Clark Communications
	Author URI:   https://clarkconcepts.com
	Version: 1
*/
/* NOTE: The vertical waves were removed, but the infrastructure is still in place */

/* z-index constants */
:root {
  --z-base: 0;
  --z-below-waves: 20;    /* waves when header overlays hero */
  --z-header-normal: 200;        /* header is below the waves */
  --z-waves: 300;          /* waves layer */
  --z-above-waves: 320;  /* waves when above header */
  --z-overlay: 990;     /* darkened background below modal/drawer */
  --z-modal: 999;     /* modals, drawers, etc. */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

/* scroll margin */
[id] { scroll-margin-top: calc(var(--header-h) + var(--adminbar-h)); }


/* @group SHARED STRUCTURES AND STYLES
------------------------------------ */
body { overflow-x: hidden; }

#wrapper { 
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/**
/* Page-wide Backgrounds
*/

.page-bg-base,
.page-bg-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.page-bg-base {
  z-index: 0;
  background-color: var(--page-base-color, transparent);
  background-image: var(--page-base-image, none);  /* ← this was missing */
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
.page-bg-overlay{ 
  z-index: 30; 
  min-height: 100vh; 
  display: flex;
  justify-content: flex-end;
  align-items: stretch; 
}
.page-bg-overlay svg {
  height: 100vh;
  min-height: 100%;
  width: auto;
  max-width: 40vw;
  display: block;
}
.page-bg-overlay path {
  vector-effect: non-scaling-stroke; /* crisp strokes at any size */
}
.page-bg-overlay > svg { display: block; }

.page-bg-base { background-size: cover; background-position: top; background-repeat: no-repeat; }

/* Headband: show page background under the header only (normal + inherit) */
.page-bg-headband { display: none; }

.header-behavior-normal.header-fill-inherit .page-bg-headband {
  position: fixed;
  top: var(--adminbar-h, 0px);   /* respect WP admin bar */
  left: 0;
  right: 0;
  height: var(--header-h, 92px); /* header height var is already set in JS */
  z-index: 25;                  /* above sections (20/40/320) but below header (500) */
  pointer-events: none;
  background-color: var(--page-base-color, transparent);
  background-image: var(--page-base-image, none);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  display: block;
}

section.module {
  position: relative;
  z-index: 20;
  isolation: isolate;
}
/* Special mode: background under waves, content over waves */
section.module.bg-under-waves {
  /* IMPORTANT: do NOT give the section itself a z-index.
     That way its children can participate in the page stacking context. */
  position: relative;
  z-index: auto;
  isolation: auto;      /* avoid creating a stacking context here */
}
/* The background layer (under waves) */
section.module.bg-under-waves::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;          /* below waves (30) */
  background: var(--section-bg, transparent);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
/* The content layer (over waves) — no per-child edits needed */
section.module.bg-under-waves > .container {
  position: relative;
  z-index: 40;
}
.under-waves { z-index: 20; }
.over-waves { z-index: 60; }
/* Keep existing .page-overlay (modal scrim) – ensure it stays above */
.page-overlay{
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.page-overlay.is-active{ opacity: 1; pointer-events: auto; }


/**
/* Layout Group "Card" look
*/

/* Scope to layout when $isbox is true */
.layout_group-section.isbox {
  position: relative;
}

/* Wrapper to manage stacking */
.full-width-box-container {
  position: relative;
  z-index: 1;               /* above page bg/motif */
}

/* The card */
.full-width-box {
  position: relative;
  background: #fff;         /* the “inset box” fill */
  color: inherit;
  border-radius: 0 0 56px 0;  /* rounded bottom-right corner */
  /*overflow: hidden; */      /* clip children to the curve */
  isolation: isolate;         /* make pseudo-elements layer neatly */
  box-shadow: 0 12px 24px rgba(0, 0, 0, .22), -6px 0 10px rgba(0, 0, 0, .06), 0 -6px 12px rgba(0, 0, 0, .12);
  transition: opacity 0.3s;
  opacity: 1;
  visibility: visible;
  min-height: 340px;
}
.full-width-box.box-only {
  padding: 20px 30px;
}
.is-modal-open .full-width-box {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s; 
}
.is-modal-open .full-width-box.fading-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

/* Extra depth halo (kept under the card) */
.full-width-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 50px 120px rgba(0,0,0,.22);
  z-index: -1;
}

/* faint top gradient so it feels “inset” */
.full-width-box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.06), rgba(0,0,0,0));
  border-top-left-radius: inherit;
}

/* Keep inner grid aligned with site’s narrow container if needed */
.layout_group-section.isbox .full-width-box > .container--narrow,
.layout_group-section.isbox .full-width-box > .container {
  padding-left: 0; padding-right: 0; /* rely on .full-width-box padding */
}



/**
/* Headings/Text
*/

h1,
h1 * { font: 700 1.2rem / 1.2 var(--main-font); text-transform: uppercase; color: var(--navy); margin-bottom: 0.8em; letter-spacing: 0.2rem; }

.footer,
.footer2 {
  font: 400 0.9rem / 1.1 var(--main-font);
  color: var(--white);
}
.footer2 {
  font-size: 0.8rem;
}

.button1 > a,
.chp-btn a.button1,
.button2 > a,
.chp-btn a.button2,
.rbox-widget button.rbox-apply-button {
  text-decoration: none;
  font: 400 0.9rem / 1 var(--main-font);
  color: var(--white);
  padding: .4rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}
.button1 > a,
.chp-btn a.button1 {
  border: 2px solid var(--green);
  background-color: transparent;
}
.button2 > a,
.chp-btn a.button2,
.rbox-widget button.rbox-apply-button {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--white);
  background-color: var(--green);
}
.button1 > a:hover,
a.button2:hover,
.rbox-widget button.rbox-apply-button:hover {
  scale: 1.05;
}
.button1 > a:hover, .button1 > a:active { 
  color: var(--green); 
}
.chp-btn + .chp-btn a.button2 {
    margin-left: 0.5rem;
}

.rbox-widget button.rbox-apply-button {
	border: none;
	background-image: none;
	text-shadow: none;
}
.rbox-widget button.rbox-apply-button:hover {
	text-decoration: none !important;
}
.rbox-widget {
  text-align: left;
  padding: 20px;
  border: 1px solid var(--navy);
}


/**
/* P, LI, A, Button
*/
p { margin: 0.6rem 0; }
p,
a,
li { 
  font: 400 1rem / 1.7 var(--main-font); 
  color: var(--navy);
}

a {
  font-weight: 600;
  text-decoration: underline;
}
a[href^="tel:"] {
  text-decoration: none;
  cursor: default;
}
a, button { 
  cursor: pointer;
  -webkit-transition: var(--general-transition);
  -moz-transition: var(--general-transition);
  -ms-transition: var(--general-transition);
  -o-transition: var(--general-transition);
  transition: var(--general-transition);
}


/**
/* Background Motif
*/
.cc-section { position: relative; overflow: visible; } 
.cc-section .motif-img,
.cc-section .motif-lottie,
.cc-section .motif-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  top: calc(100% - var(--motif-top-gap, 56px));
  bottom: auto;
  max-width: none; 
  width: auto;
  height: var(--motif-h, 280px);
  /*aspect-ratio: var(--motif-ratio, 1 / 1);*/
  pointer-events: none;
  z-index: 35;
  transform: none;
}
.cc-section[data-motif] .motif-lottie {
  --motif-h: clamp(180px, 18vw, 220px);
  --motif-gap-r: 1;
  --motif-top-gap: calc(var(--motif-h) * var(--motif-gap-r));
}
.cc-section[data-motif="footer"] .motif-lottie {
  --motif-h: clamp(360px, 36vw, 440px);
  --motif-gap-r: 0.501;
}
.cc-section .motif-lottie > svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Content on top */
.cc-section > .container { position: relative; z-index: 40; }
/* IMPORTANT: don’t blanket-promote ALL direct children */
section.module.bg-under-waves > *:not(.motif-img):not(.motif-lottie):not(.motif-svg) {
  position: relative;
  z-index: 40;
}

@media only screen and (max-width: 768px) {
  .cc-section .motif-svg,
  .cc-section .motif-img,
  .cc-section .motif-lottie {
    display: none;
  }
}

/**
/* Header and Navigation
*/
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-solid {
  background: var(--navy);
  box-shadow: var(--general-shadow);
}
.header-behavior-overlay .site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  box-shadow: none;
}
.header-behavior-overlay.header-fill-inherit .site-header.header--home.is-condensed {
  background: var(--white);
  box-shadow: var(--general-shadow);
}
/*.header-behavior-overlay .site-header.is-over-first {
  background: transparent !important;
  background-image: none !important;
}
.header-behavior-overlay .site-header.is-over-first .site-header__row {
  min-height: var(--header-condensed);
  padding-top: 1rem;
  padding-bottom: 1rem;
}*/

/* transparent: same, but header remains in normal flow; scroll toggles .is-solid */
.header-transparent .site-header {
  background: transparent; box-shadow: none;
}

/* solid: force solid at load (scroll still condenses) */
.header-solid .site-header {
  background: var(--navy); box-shadow: var(--general-shadow);
}

.header-behavior-normal .header-fill-color .site-header,
.header-behavior-normal .header-fill-image .site-header,
.site-header.is-solid {
  box-shadow: 0 12px 24px rgba(0,0,0,.22), -6px 0 10px rgba(0,0,0,.06), 0 -6px 12px rgba(0,0,0,.12);
}


.site-header__row {
  align-items: flex-start;  
  padding-top: 1rem;
  padding-bottom: 1rem;   
}
/*.site-header .site-header__row,
.site-header .container {
  position: relative;
  z-index: 1;
}*/
:root { --header-condensed: 64px; } /* match .site-header.is-condensed height */
/*.site-header.is-condensed .site-header__row {
  min-height: 60px;    
}*/

/* Logo: animate height only; image keeps aspect ratio */
.site-logo img {
  height: clamp(46px, 9vw, 86px); 
  width: auto;
  display: block;
}

.main-menu { width: 100%; }
.menu,
.footer-menu {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu {
  justify-content: center;
}
nav.main-menu > ul,
nav.main-menu .menu,
#primaryNav > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem 2.3rem;
  justify-content: flex-end;
}
nav.main-menu li { list-style: none !important; }
nav.main-menu li::marker { content: ""; }

.menu a,
.footer-menu a,
.secondary-menu a,
.button1 > a {
  text-decoration: none;
  font: 400 0.9rem / 1 var(--main-font);
  color: var(--navy);
  display: inline-block;
}
.menu a:hover, .menu a:active,
.footer-menu a:hover, .footer-menu a:active,
.secondary-menu a:hover, .secondary-menu a:active,
.menu-button a:hover {
  display: inline-block;
  /*margin-top: 0.15rem;*/
  color: var(--medium-blue);
}
.header--home .menu a {
  color: var(--navy);
}
.header--sub .menu a {
  color: var(--white);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.mobile-toggle,
.drawer-close {
  display: none; 
  background: none;
  border: 0;
  padding: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.mobile-toggle .icon-close { display: none; }
.site-header.is-open .mobile-toggle .icon-open { display: none; }
.site-header.is-open .mobile-toggle .icon-close { display: inline-block; }

#primaryNav { position: static; }

:root { --header-h: 92px; --header-condensed: 92px; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 500;
  background: transparent;
  transition: background-color .25s, box-shadow .25s, transform .2s ease;
}
.site-header { top: var(--adminbar-h); }

/* Fill:
   inherit = transparent (page bg shows through)
   color/image = inline style paints the header */
.header-fill-inherit .site-header { background: transparent; box-shadow: none; }

/* Condense on scroll */
.site-header__row { min-height: var(--header-h); padding-block: 1rem; }
/*.site-header.is-condensed .site-header__row { min-height: var(--header-condensed); }*/

.header-fill-color  .site-header { box-shadow: var(--general-shadow); }

.site-logo img { height: clamp(36px, 7vw, 60px); width: auto; display: block; }

/* NORMAL + INHERIT: do not paint a header background at all — let the page show through */
.header-behavior-normal.header-fill-inherit .site-header {
  background: transparent;
  box-shadow: none;          
  isolation: isolate;
}
.header-behavior-normal.header-fill-inherit .site-header::before,
.header-behavior-normal.header-fill-inherit .site-header::after {
  content: none;
}

/* The painter that shows the body/page background under the header only */
.header-behavior-normal.header-fill-inherit .site-header::before {
  content: "";
  position: fixed;                 /* stick to viewport */
  top: var(--adminbar-h, 0px);
  left: 0;
  right: 0;
  height: var(--header-h, 92px);   /* JS sets this */
  pointer-events: none;

  /* paint from the body's vars so it matches the page background exactly */
  background-color: var(--page-base-color, transparent);
  background-image: var(--page-base-image, none);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;

  z-index: 0;                      /* under the nav, over page content */
  transform: translateZ(0);        /* avoids 1px seams on some GPUs */
}

/* Ensure the nav/brand sits above the painter */
.header-behavior-normal.header-fill-inherit .site-header > * {
  position: relative;
  z-index: 1;
}

/* Spacer off by default */
/* Turn the spacer back on so *non-hero* pages don’t jump */
#headerSpacer { display: block; height: calc(var(--header-h) + var(--adminbar-h)); }           /* default spacer */
/*.has-hero-first #headerSpacer { display: none; }  */                    /* hide on hero-first pages */
.has-header-spacer #headerSpacer { height: var(--header-h); }
/*.has-header-spacer #headerSpacer.is-condensed { height: var(--header-condensed); }*/
.header-behavior-overlay .has-header-spacer #headerSpacer { display: block; }
.header-behavior-overlay #headerSpacer { display: none !important; height: 0 !important; }


@media (max-width: 991px) {
  .site-header.is-open #navToggle { visibility: hidden; }
  .main-menu { width: auto; }
  /* Turn the nav into a right-side drawer */
  #primaryNav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 84vw;            
    max-width: 360px;       
    background: var(--navy);
    box-shadow: -8px 0 24px rgba(0,0,0,.28);
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 84px 24px 24px;      /* leave room for header at top */
    overflow-y: auto;
    z-index: 1001;                  /* above overlay */
  }
  #primaryNav .mobile-toggle .icon-close {
    position: absolute;
    z-index: 210;
    top: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
    border: 0;
    background: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #primaryNav .mobile-toggle .icon-open { display: none; }
  #primaryNav .mobile-toggle .icon-close { display: inline-block; }
  /* Menu list vertical on mobile */
  #primaryNav .menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  #primaryNav .menu > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  #primaryNav .menu > li:not(.menu-button) > a {
    display: block;
    padding: .5rem 0;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }
  #primaryNav .menu a {
  color: var(--white);
}
  #primaryNav .menu .menu-button > a,
  #primaryNav .menu .button1 > a {
    display: inline-block;     /* not full-width */
    width: auto;               /* override any 100% */
    align-self: flex-start;    /* hug left, not stretch */
    font-size: 1.2rem;
  }
  #primaryNav.nav-drawer-active { transform: translateX(0); }
  .site-header.is-open ~ .page-overlay,
  .site-header.is-open + .container ~ .page-overlay, /* fallback if DOM order differs */
  .site-header.is-open + .page-overlay { opacity: 1; pointer-events: auto; }
  /* Prevent body scroll when drawer open */
  body.nav-locked { overflow: hidden; }
  .mobile-toggle { 
    display: inline-block; 
    width: 50px; height: 50px;
    background: none; border: 0; padding: 0;
  }
  .header--home .mobile-toggle { color: var(--navy); }
  .header--sub .mobile-toggle { color: var(--white); }
  #primaryNav.nav-drawer-active .mobile-toggle {
    position: absolute;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 600px) {
  .site-header__row {
    flex-wrap: nowrap;
  }
  .site-header__row .col {
    min-width: 0;
    flex: 1 1 0%;
  }
  .mobile-toggle {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
  }
}


/**
/* FOOTER
*/

.site-footer {
  position: relative;
  background: transparent;
  padding: 3rem 0 0;
  overflow: hidden;
}
.footer-transparent .site-footer {
  z-index: 20;            /* under the waves */
  isolation: auto;
}
.footer-transparent .site-footer .footer-panel {
  position: relative;
  z-index: auto;      /* inherit the footer's below-waves positioning */
  isolation: auto;
  background: none; border-radius: 0; box-shadow: none;
  padding: 0 2rem 1.5rem;
}
.footer-card .site-footer {
  z-index: auto;      /* IMPORTANT: remove any z-index on the footer */
  isolation: auto;    /* don't isolate the whole footer */
}
.footer-card .site-footer .footer-panel {
  z-index: 60;            /* over the waves */
  isolation: isolate;
}
/* Bridge the last section background behind the footer PANEL (card only) */
.footer-card section.module.bridges-footer::after {
  content: "";
  position: absolute;
  /*left: 50%;
  width: 100vw;
  transform: translateX(-50%);*/
  left: 0;
  right: 0;
 /* width: auto;
  transform: none;*/
  top: 100%;
  height: calc(var(--footer-bridge-h, 0px) - 1px);

  /* paint exactly the same background as the section */
  background: var(--section-bg, transparent);
  background-size: cover;
  background-position: var(--section-bg-pos, center);
  background-repeat: no-repeat;
  /* sit below section content, above waves, below the footer panel */
  z-index: 0;
  pointer-events: none;
}
/* Make sure the section that gets the bridge can show a pseudo-element */
.footer-card section.module.bridges-footer {
  position: relative;
  overflow: visible;
  isolation: auto; /* no new stacking context on the page wrapper */
}
.footer-inner {
  position: relative;
  margin: 0 auto;
  padding: 1rem 0 0;
}
.site-footer,
.site-footer p,
.site-footer a,
.site-footer div {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--white);
}
.site-footer .menu-item a {
 line-height: 1;
}
.footer-card .site-footer .footer-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--navy-gradient);
  border-radius: 0 68px 0 0;
  padding: 1.25rem 2rem 1.5rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .22), -6px 0 10px rgba(0, 0, 0, .06), 0 -6px 12px rgba(0, 0, 0, .12);
}
.footer-dots {
  height: 0;
  margin: 1.3rem auto;
  max-width: 100%;
  border-top: 3px dotted var(--medium-blue);
  opacity: 1;   
}
.footer-logo { height: clamp(36px, 5.2vw, 60px);
    width: auto; }
.footer-copy {
  margin-top: 1.3rem;
  opacity: .85;
}
.footer-contact p {
  margin-top: 0;
  margin-bottom: 0.2rem;
}
.footer-contact img {
  width: 26px;
  height: auto;
}
.footer-contact a {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}


@media only screen and (max-width: 768px) {
  .footer-nav,
  .footer-dots,
  .footer-logo { 
    display: none;
  }
  .footer-panel {
    border-radius: 0 36px 0 0;
    padding: 1rem 1rem 1.5rem;
  }
  .footer-inner .footer-logo-col {
    margin-top: 0;
  }
}
@media only screen and (min-width: 769px) and (max-width: 991px) {
  .footer-logo { 
    height: clamp(32px, 4.8vw, 48px);
  }
}


/**
/* PASSWORD PROTECT FORM - built-in WordPress form, overwriting styles
*/
.post-password-form {
  margin: 2em;
}
.post-password-form input[type="password"] {
  border: 1px solid var(--dark-grey);
  padding: 0.5em 1em;
  margin-right: 1em;
}
.post-password-form input[type="submit"] {
  background-color: var(--dark-grey);
  padding: 0.5em 1em;
  cursor: pointer;
}




/**
/* LAYOUT SECTIONS - previously these styles were replicated in individual css files per component
/* .layout-section must have a .row, then either 1 .layout-section__single_col or 2 .layout-section__multi_col
*/

.layout-section {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  margin: 0 auto;
  align-items: baseline;
}

/* for layout groups, undo the outer margin/padding */
/* - ensure background extends the full width */
.layout-section.layout_group-section:not(.isbox) > .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* 404, search, single layout padding */
.layout-section.search-results .full-width-box,
.layout-section.single-post .full-width-box,
.layout-section.not-found .full-width-box {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Search form */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.search-form__field {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--dark-grey, #ccc);
  padding: 0.5rem 0.75rem;
  font: 400 1rem / 1.4 var(--main-font);
}
.search-form__label.hidden-label {
  display: none;
}

.search-form__submit {
  border: 0;
  padding: 0.5rem 1.25rem;
  font: 400 0.9rem / 1 var(--main-font);
  border-radius: 999px;
  background-color: var(--green);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
}

.search-form__submit:hover {
  transform: scale(1.03);
}

/* A basic screen-reader text helper */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* Search results list */
.search-results__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-results__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-results__title {
  margin: 0 0 0.25rem;
}

.search-results__title a {
  font-size: 1.25rem;
  text-decoration: none;
}

.search-results__title a:hover {
  text-decoration: underline;
}

.search-results__meta {
  font-size: 0.85rem;
  color: var(--dark-grey, #555);
  margin-bottom: 0.5rem;
}

.search-results__categories {
  margin-left: 0.5rem;
}

.search-results__excerpt p {
  margin: 0.4rem 0 0.6rem;
}

.search-results__read-more {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 2.5rem;
}

/* Single post */
.single-post__title {
  margin: 0 0 0.75rem;
}

.single-post__meta {
  font-size: 0.85rem;
  color: var(--dark-grey, #555);
  margin-bottom: 1.5rem;
}

.single-post__categories {
  margin-left: 0.5rem;
}

.single-post__content {
  margin-bottom: 2rem;
}

.single-post__footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.single-post__tags-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.single-post__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-post__nav a {
  text-decoration: none;
}

.single-post__nav a:hover {
  text-decoration: underline;
}

/* 404 specific */
.layout-section.not-found .not-found__home-link {
  margin-top: 1.5rem;
}

/* Mobile tweaks */
@media only screen and (max-width: 600px) {
  .single-post__nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form__submit {
    width: auto;
    align-self: flex-start;
  }
}


/* @end */

/* --- */
