/*
Theme Name: GeneratePress
Theme URI: https://generatepress.com
Author: Tom Usborne
Description: GeneratePress draft customized for PS Your Health Matter.
Version: 3.6.1
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: generatepress
Update URI: false
*/

/* Editorial recipe homepage */
body.home{background:#fff;color:#171717}
body.home .site-content{padding:0!important}
body.home #primary{width:100%!important}
body.home .widget-area{display:none!important}
body.home .site.grid-container{max-width:none!important}
body.home .content-area{float:none!important}
.psyhm-home{display:block!important;--ink:#171717;--muted:#66615b;--accent:#b84c32;--cream:#f8f3ec;--line:#e9e3db;--white:#fff;color:var(--ink)}
.psyhm-home *{box-sizing:border-box}
.psyhm-wrap{width:min(1160px,calc(100% - 40px));margin:0 auto}
.psyhm-hero{padding:88px 0 78px;background:var(--cream);border-bottom:1px solid var(--line)}
.psyhm-hero-inner{max-width:900px;margin:auto;text-align:center}
.psyhm-eyebrow,.psyhm-kicker{margin:0 0 12px!important;color:var(--accent);font-size:12px!important;line-height:1.4!important;font-weight:800;text-transform:uppercase;letter-spacing:.15em}
.psyhm-hero h1{max-width:820px;margin:0 auto 20px!important;font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,6vw,72px)!important;line-height:1.02!important;letter-spacing:-.035em;font-weight:700}
.psyhm-lead{max-width:650px;margin:0 auto 28px!important;color:var(--muted);font-size:18px!important;line-height:1.65!important}
.psyhm-actions{display:flex!important;gap:12px;justify-content:center;flex-wrap:wrap}
.psyhm-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 22px!important;border-radius:5px;text-decoration:none!important;font-size:15px!important;line-height:1.2!important;font-weight:800}
.psyhm-btn-primary{background:var(--ink)!important;color:#fff!important}.psyhm-btn-secondary{background:#fff!important;border:1px solid #cfc7bd;color:var(--ink)!important}
.psyhm-section{padding:70px 0}
.psyhm-section-soft{background:#fbfaf8}
.psyhm-section-head{display:flex!important;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}
.psyhm-section-head h2,.psyhm-feature h2,.psyhm-cta h2{margin:0!important;font-family:Georgia,'Times New Roman',serif;font-size:38px!important;line-height:1.08!important;letter-spacing:-.02em}
.psyhm-section-head>a,.psyhm-text-link{color:var(--accent)!important;font-size:14px!important;font-weight:800;text-decoration:none!important}
.psyhm-topics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.psyhm-topics>a{display:flex!important;flex-direction:column;justify-content:flex-end;min-height:145px;padding:22px!important;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink)!important;text-decoration:none!important}
.psyhm-topics strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:21px!important;line-height:1.2!important}
.psyhm-topics span{display:block;margin-top:8px;color:var(--muted);font-size:14px!important;line-height:1.45!important}
.psyhm-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.psyhm-card{display:block;background:#fff;border:0;border-bottom:1px solid var(--line);overflow:hidden}
.psyhm-card-image{display:block!important;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f0ece7}
.psyhm-card-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover}
.psyhm-card-body{padding:16px 0 20px!important}
.psyhm-card h3{margin:0 0 7px!important;font-family:Georgia,'Times New Roman',serif;font-size:21px!important;line-height:1.25!important}
.psyhm-card h3 a{color:var(--ink)!important;text-decoration:none!important}
.psyhm-card p{margin:0!important;color:var(--muted);font-size:14px!important;line-height:1.55!important}
.psyhm-feature{display:grid!important;grid-template-columns:300px minmax(0,1fr);gap:46px;align-items:start}
.psyhm-feature>div:first-child p:not(.psyhm-kicker){color:var(--muted);font-size:16px!important;line-height:1.6!important}
.psyhm-mini-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.psyhm-cta{padding:58px 0;background:#231f1b;color:#fff}
.psyhm-cta-inner{display:flex!important;align-items:center;justify-content:space-between;gap:30px}
.psyhm-cta .psyhm-kicker{color:#e6a58f}.psyhm-cta p:not(.psyhm-kicker){margin:10px 0 0!important;color:#d7d1ca;font-size:16px!important}
.psyhm-btn-light{background:#fff!important;color:#171717!important;white-space:nowrap}
@media(max-width:900px){.psyhm-topics{grid-template-columns:repeat(2,minmax(0,1fr))}.psyhm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.psyhm-feature{grid-template-columns:1fr}.psyhm-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
 .psyhm-wrap{width:calc(100% - 32px)}
 .psyhm-hero{padding:52px 0 48px}
 .psyhm-hero h1{font-size:42px!important;line-height:1.04!important}
 .psyhm-lead{font-size:17px!important;line-height:1.55!important}
 .psyhm-actions{display:grid!important;grid-template-columns:1fr;width:100%}
 .psyhm-btn{width:100%}
 .psyhm-section{padding:48px 0}
 .psyhm-section-head{display:block!important}.psyhm-section-head>a{display:inline-block;margin-top:12px}
 .psyhm-section-head h2,.psyhm-feature h2,.psyhm-cta h2{font-size:32px!important}
 .psyhm-topics,.psyhm-grid,.psyhm-mini-grid{grid-template-columns:1fr!important}
 .psyhm-topics>a{min-height:105px}
 .psyhm-card h3{font-size:24px!important}
 .psyhm-cta-inner{display:block!important}.psyhm-cta .psyhm-btn{margin-top:24px}
}

/* Polished global shell */
#masthead{background:#fff!important;border-bottom:1px solid #ece7e1;box-shadow:none!important}
#masthead .inside-header{max-width:1160px;padding:18px 20px!important;min-height:76px}
#masthead .site-branding{margin-right:34px}
#masthead .main-title{font-family:Georgia,'Times New Roman',serif;font-size:27px!important;line-height:1!important;letter-spacing:-.035em;text-transform:none}
#masthead .main-title a{color:#171717!important;text-decoration:none}
#site-navigation{background:transparent!important}
#site-navigation .main-nav>ul>li>a{color:#302d29!important;font-size:14px!important;font-weight:700;letter-spacing:.01em;padding:0 13px!important;line-height:40px!important}
#site-navigation .main-nav>ul>li>a:hover{color:#b84c32!important}
.menu-bar-item a{color:#171717!important}
.site-footer{margin-top:70px;background:#201d1a!important;color:#ddd5cd!important}
.footer-widgets{background:#201d1a!important;color:#ddd5cd!important;border-bottom:1px solid #3b3631}
.footer-widgets-container{max-width:1160px!important;padding:48px 20px 34px!important}
.footer-widgets h3{font-family:Georgia,'Times New Roman',serif;color:#fff!important;font-size:23px!important}
.footer-widgets a,.site-info a{color:#f4eee7!important;text-decoration:none!important}
.footer-widgets p{margin-bottom:10px!important;font-size:14px!important}
.site-info{background:#171513!important;color:#aaa29b!important}
.inside-site-info{max-width:1160px!important;padding:20px!important;font-size:13px!important}

/* Recipe article presentation */
.single-post .site-content{max-width:1120px!important;margin:0 auto;padding:48px 24px!important}
.single-post #primary{width:100%!important;float:none!important}
.single-post .widget-area{display:none!important}
.single-post .inside-article{max-width:860px;margin:0 auto;background:#fff!important;padding:0!important}
.single-post .featured-image{margin:0 0 34px!important}
.single-post .featured-image img{display:block;width:100%;border-radius:8px}
.single-post .entry-header{max-width:760px;margin:0 auto 30px!important;text-align:center}
.single-post .entry-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,5vw,58px)!important;line-height:1.05!important;letter-spacing:-.035em;color:#171717}
.single-post .entry-header .entry-meta{margin-top:15px!important;color:#7a746e!important;font-size:13px!important}
.single-post .entry-header .entry-meta a{color:#5c5650!important}
.single-post .entry-content{max-width:720px;margin:0 auto;font-size:18px!important;line-height:1.78!important;color:#292724}
.single-post .entry-content>p:first-of-type{font-size:20px!important;line-height:1.65!important}
.single-post .entry-content p{margin-bottom:1.25em}
.single-post .entry-content ul,.single-post .entry-content ol{margin:0 0 1.6em 1.25em}
.single-post .entry-content li{margin-bottom:.55em}
.single-post .entry-content h2,.single-post .entry-content h3{font-family:Georgia,'Times New Roman',serif;color:#171717;letter-spacing:-.02em}
.single-post .entry-content h2{font-size:34px!important;margin-top:1.6em!important}
.single-post .entry-content h3{font-size:27px!important;margin-top:1.45em!important}
.single-post .entry-content b,.single-post .entry-content strong{color:#171717}
.single-post .quads-location{margin:26px 0!important}
.single-post .theiaPostSlider_nav{margin:30px 0!important}
.single-post .theiaPostSlider_nav ._buttons{display:flex!important;gap:10px;justify-content:center}
.single-post .theiaPostSlider_nav ._button{width:auto!important;min-width:150px;max-width:100%;padding:12px 20px!important;border:0!important;border-radius:5px!important;background:#171717!important;color:#fff!important;text-decoration:none!important;font-size:14px!important;font-weight:800}
.single-post .theiaPostSlider_nav ._disabled{opacity:.35}
.single-post article>footer.entry-meta{max-width:720px;margin:38px auto 0;padding-top:20px;border-top:1px solid #ece7e1;color:#777}
.single-post .post-navigation{margin-top:35px}

@media(max-width:768px){
 #masthead .inside-header{padding:14px 16px!important;min-height:66px}
 #masthead .main-title{font-size:22px!important}
 .main-navigation .menu-toggle{color:#171717!important;background:transparent!important}
 .single-post .site-content{padding:28px 16px!important}
 .single-post .featured-image{margin-bottom:24px!important}
 .single-post .featured-image img{border-radius:5px}
 .single-post .entry-header{text-align:left;margin-bottom:24px!important}
 .single-post .entry-title{font-size:38px!important}
 .single-post .entry-content{font-size:17px!important;line-height:1.7!important}
 .single-post .entry-content>p:first-of-type{font-size:18px!important}
 .single-post .entry-content h2{font-size:29px!important}
 .single-post .entry-content h3{font-size:24px!important}
 .single-post .theiaPostSlider_nav ._button{min-width:0;flex:1}
 .footer-widgets-container{padding:38px 18px 26px!important}
}

/* Consistent featured-image frames on category and archive pages.
   Scoped to archives; original media files and the live theme stay unchanged. */
body.archive .post-image,
body.archive .inside-article .post-image,
body.category .post-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
body.archive .post-image img,
body.archive .inside-article .post-image img,
body.category .post-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
body.archive .inside-article .post-image a,
body.category .inside-article .post-image a {
  display: block;
  width: 100%;
  height: 100%;
}
/* Theia Post Slider: polished navigation, without changing pagination behavior. */
.single-post .theiaPostSlider_nav,
.single-post .theiaPostSlider_nav * { box-sizing: border-box; }
.single-post .theiaPostSlider_nav a,
.single-post .theiaPostSlider_nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #b84c32;
  border-radius: 8px;
  background: #b84c32;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.single-post .theiaPostSlider_nav a:hover,
.single-post .theiaPostSlider_nav a:focus-visible,
.single-post .theiaPostSlider_nav button:hover,
.single-post .theiaPostSlider_nav button:focus-visible {
  background: #8e3725;
  border-color: #8e3725;
  color: #fff;
}
.single-post .theiaPostSlider_nav a:focus-visible,
.single-post .theiaPostSlider_nav button:focus-visible {
  outline: 3px solid #e6b19e;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .single-post .theiaPostSlider_nav a,
  .single-post .theiaPostSlider_nav button { min-height: 48px; padding: 12px 17px; }
}
/* Theia Post Slider: override its legacy black bar and red button. */
.single-post .theiaPostSlider_nav,
.single-post .theiaPostSlider_nav ._buttons {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.single-post .theiaPostSlider_nav ._buttons > a._button._next,
.single-post .theiaPostSlider_nav ._buttons > a._button._prev {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #b84c32 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #fff !important;
  text-decoration: none !important;
}
.single-post .theiaPostSlider_nav ._buttons > a._button ._1,
.single-post .theiaPostSlider_nav ._buttons > a._button ._3 {
  display: none !important;
}
.single-post .theiaPostSlider_nav ._buttons > a._button ._2 {
  display: inline !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.single-post .theiaPostSlider_nav ._buttons > a._button._next:hover,
.single-post .theiaPostSlider_nav ._buttons > a._button._prev:hover {
  background: #8e3725 !important;
}
@media (max-width: 600px) {
  .single-post .theiaPostSlider_nav ._buttons > a._button { max-width: 100% !important; }
}
/* Final visual polish */
.psyhm-home a,.single-post .entry-content a{transition:color .18s ease,background .18s ease,transform .18s ease}
.psyhm-topics>a:hover{transform:translateY(-3px);border-color:#d8cec3;box-shadow:0 12px 28px rgba(35,31,27,.07)}
.psyhm-card-image img{transition:transform .35s ease}.psyhm-card:hover .psyhm-card-image img{transform:scale(1.025)}
.psyhm-card h3 a:hover,.psyhm-section-head>a:hover,.psyhm-text-link:hover{color:#8e3725!important}
.psyhm-btn-primary:hover{background:#b84c32!important}.psyhm-btn-secondary:hover{border-color:#171717!important}
.psyhm-card-body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.psyhm-home .psyhm-section:first-of-type{border-bottom:1px solid #eee9e3}
.single-post .entry-content .theiaPostSlider_preloadedSlide>p:first-child>b:first-child{display:block;font-family:Georgia,'Times New Roman',serif;font-size:26px;line-height:1.2;margin:4px 0 14px}
.single-post .entry-content .theiaPostSlider_preloadedSlide>p>b:only-child{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.2}
.single-post .entry-content ul{padding-left:8px}
.single-post .entry-content ul li::marker{color:#b84c32}
@media(min-width:769px){#masthead{position:sticky;top:0;z-index:50}.admin-bar #masthead{top:32px}}
@media(max-width:768px){
 body.home .site-content{overflow:hidden}
 .psyhm-hero-inner{text-align:left}
 .psyhm-actions{justify-content:flex-start}
 .psyhm-eyebrow,.psyhm-kicker{font-size:11px!important}
 .psyhm-hero h1{max-width:12ch}
 .psyhm-topics>a{padding:19px!important}
 .psyhm-card-image{aspect-ratio:16/10}
 .single-post .entry-title{overflow-wrap:anywhere}
 .site-footer{margin-top:48px}
}

