/*
Theme Name:  Pause Again
Theme URI:   https://pauseagain.com
Author:      Pause Again
Author URI:  https://pauseagain.com
Description: Custom lightweight theme for pauseagain.com. Playfair Display + Lato. Rose and sage palette.
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pauseagain
Tags:        blog, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =============================================
   BRAND TOKENS
   Define once — used everywhere
   ============================================= */
:root {

  /* --- Primary Palette --- */
  --rose:          #C78176;   /* Dusty rose — primary accent */
  --rose-dark:     #A8645A;   /* Rose hover / darker */
  --rose-light:    #F0D5D0;   /* Rose tint — highlights */
  --rose-bg:       #F5E6E0;   /* Blush — section backgrounds */

  /* --- Secondary Palette --- */
  --sage:          #7A9E7E;   /* Sage green — secondary accent */
  --sage-dark:     #5C8060;   /* Sage hover / darker */
  --sage-light:    #D8EAD9;   /* Sage tint — highlights */

  /* --- Neutrals --- */
  --cream:         #FDF8F6;   /* Warm cream — page background */
  --white:         #FFFFFF;   /* Pure white — cards, panels */
  --ink:           #1B3A2D;   /* Warm dark brown — all body text */
  --ink-soft:      #2D5A40;   /* Slightly lighter — subheadings */
  --muted:         #5A7D6A;   /* Muted warm grey — meta, captions */
  --line:          #C8DDD2;   /* Border / divider color */

  /* --- Dark (Footer, CTA) --- */
  --dark:          #1B3A2D;   /* Footer background */
  --dark-text: rgba(255,255,255,0.75);
  --dark-heading:  #FFFFFF;

  /* --- Typography --- */
  --serif:         'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:          'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --container:     1100px;    /* Max site width */
  --content:       760px;     /* Max article/page content width */
  --sidebar:       300px;     /* Sidebar width */
  --gap:           32px;      /* Standard grid gap */
  --radius:        8px;       /* Card border radius */
  --radius-lg:     12px;      /* Large border radius */
  --radius-pill:   100px;     /* Pill / button radius */

  /* --- Spacing scale --- */
  --space-xs:      8px;
  --space-sm:      16px;
  --space-md:      24px;
  --space-lg:      48px;
  --space-xl:      72px;
  --space-xxl:     96px;

  /* --- Header --- */
  --header-h:      68px;
  --header-bg:     var(--white);
  --header-border: var(--line);

  /* --- Shadows --- */
  --shadow-sm:     0 2px 8px rgba(61,43,39,0.08);
  --shadow-md:     0 8px 32px rgba(61,43,39,0.10);
  --shadow-lg:     0 16px 48px rgba(61,43,39,0.12);

  /* --- Transitions --- */
  --transition:    0.18s ease;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(30px, 4.5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p {
  margin-bottom: 1.3rem;
  color: var(--ink);
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rose-dark); }
a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink-soft);
  border-left: 3px solid var(--rose);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--sage-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

strong { font-weight: 700; }
em     { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-lg) 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: var(--space-md) 0;
}
th {
  background: var(--sage-light);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:nth-child(even) td { background: rgba(253,248,246,0.6); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

.content-width {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* =============================================
   SITE SKELETON
   ============================================= */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}
.site-branding a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-logo-img {
  height: 36px;
  width: auto;
}
.site-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-name span { color: var(--rose); }

/* Primary nav */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.primary-nav ul li { position: relative; }

.primary-nav ul li a {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all var(--transition);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
  color: var(--rose);
  background: var(--sage-light);
}

/* Dropdown */
.primary-nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  flex-direction: column;
  gap: 0;
  z-index: 300;
}
.primary-nav ul li:hover > ul,
.primary-nav ul li:focus-within > ul {
  display: flex;
}
.primary-nav ul ul li a {
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

/* CTA button in nav */
.nav-cta > a {
  background: var(--rose) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 9px 20px !important;
}
.nav-cta > a:hover {
  background: var(--rose-dark) !important;
  color: var(--white) !important;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  border-radius: 4px;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--sage-light); }
.menu-toggle svg { display: block; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 199;
  padding: 12px 0 16px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  padding: 0 var(--gap);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav ul li a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 4px;
}
.mobile-nav ul li a:hover { color: var(--rose); background: var(--sage-light); }

/* =============================================
   CONTENT AREA — default page/post layout
   ============================================= */
.site-content {
  padding: 0;
}

/* Full-width layout */
.layout-full .site-content .container {
  max-width: var(--container);
}

/* Content + sidebar layout */
.layout-sidebar .content-area-inner {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: var(--space-xl);
  align-items: start;
}

/* =============================================
   ENTRY (single post / page)
   ============================================= */
.entry-header {
  margin-bottom: var(--space-lg);
}

.entry-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--rose); }

.entry-thumbnail {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

.entry-content > * + * { margin-top: 1.4rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content img { border-radius: var(--radius); margin: var(--space-md) 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.entry-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* =============================================
   SIDEBAR
   ============================================= */
.widget-area {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.widget-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget ul li a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  transition: all var(--transition);
}

.widget ul li a:hover {
  color: var(--rose);
  background: var(--sage-light);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination,
.post-navigation {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.page-numbers,
.nav-previous a,
.nav-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  transition: all var(--transition);
}

.page-numbers:hover,
.nav-previous a:hover,
.nav-next a:hover {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

.page-numbers.current {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  text-align: center;
}

/* Rose (primary) */
.btn,
.wp-block-button__link,
input[type="submit"] {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: var(--white);
}

/* Sage (secondary) */
.btn-sage {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

/* Outline rose */
.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
}

/* Ghost (dark outline) */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* Small */
.btn-sm { padding: 9px 20px; font-size: 11px; }

/* Large */
.btn-lg { padding: 16px 36px; font-size: 13px; }

/* =============================================
   FORMS
   ============================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  line-height: 1.5;
}

textarea {
  border-radius: var(--radius);
  resize: vertical;
  min-height: 120px;
}

select { border-radius: var(--radius); }

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(199,129,118,0.15);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field { margin-bottom: var(--space-md); }

/* Search form */
.search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--white);
}
.search-form input[type="search"] {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}
.search-form button {
  border-radius: 0;
  padding: 11px 20px;
  border: none;
  flex-shrink: 0;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.comment-list { list-style: none; padding: 0; }

.comment {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
}

.comment-author .fn {
  font-weight: 700;
  font-size: 14px;
}

.comment-content { font-size: 16px; margin-top: 8px; }

.comment-metadata {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* =============================================
   FOOTER — ALWAYS FULL WIDTH
   ============================================= */
.site-footer {
  width: 100%;
  flex-shrink: 0;
}

.footer-widgets {
  background: var(--dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-widgets .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Footer widget typography */
.footer-widgets .widget {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.footer-widgets .widget-title {
  color: var(--dark-heading);
  border-bottom-color: rgba(255,255,255,0.1);
}

.footer-widgets .widget p,
.footer-widgets .widget li {
  color: var(--dark-text);
  font-size: 14px;
}

.footer-widgets .widget ul li a {
  color: var(--dark-text);
  background: transparent;
}

.footer-widgets .widget ul li a:hover {
  color: var(--white);
  background: transparent;
}

/* Footer bar */
.footer-bar {
  background: #0F2318;
  padding: 16px 0;
  text-align: center;
}

.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bar p,
.footer-bar span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.footer-bar a {
  color: rgba(255,255,255,0.3);
}
.footer-bar a:hover {
  color: var(--white);
}

/* =============================================
   WOOCOMMERCE BASE
   ============================================= */
.woocommerce-notices-wrapper { margin-bottom: var(--space-md); }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.woocommerce .woocommerce-message {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  color: var(--ink);
}

.woocommerce .woocommerce-error {
  background: var(--rose-light);
  border-left: 3px solid var(--rose);
  color: var(--ink);
}

/* WooCommerce buttons inherit theme style */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--rose) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 11px 22px !important;
  border: none !important;
  transition: all var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--rose-dark) !important;
  color: var(--white) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--sage) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--sage-dark) !important;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-rose   { color: var(--rose); }
.text-sage   { color: var(--sage); }
.text-muted  { color: var(--muted); }
.text-ink    { color: var(--ink); }
.text-white  { color: var(--white); }

.bg-cream    { background-color: var(--cream); }
.bg-blush    { background-color: var(--rose-bg); }
.bg-sage     { background-color: var(--sage-light); }
.bg-white    { background-color: var(--white); }
.bg-dark     { background-color: var(--dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root {
    --gap: 24px;
    --space-xl: 56px;
  }
  .footer-widgets .container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 20px;
    --space-xl: 48px;
    --space-xxl: 64px;
  }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .layout-sidebar .content-area-inner {
    grid-template-columns: 1fr;
  }
  .widget-area { position: static; }
  .footer-widgets .container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-bar .container {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 16px;
    --space-xl: 40px;
  }
  body { font-size: 16px; }
  .btn, .btn-lg { padding: 12px 22px; }
}

/* =============================================
   ARCHIVE HEADER
   ============================================= */
.archive-header {
  background: var(--sage-light);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-lg);
}
.archive-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.archive-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.archive-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}
.archive-header .search-form {
  margin-top: var(--space-md);
  max-width: 480px;
}

/* =============================================
   POST GRID
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--space-lg);
}

/* =============================================
   POST CARD
   ============================================= */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card__image {
  transform: scale(1.04);
}
.post-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.post-card__cat:hover { color: var(--sage-dark); }
.post-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.post-card__title a {
  color: var(--ink);
  transition: color var(--transition);
}
.post-card__title a:hover { color: var(--rose); }
.post-card__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: auto;
  transition: gap var(--transition);
}
.post-card__link::after { content: '→'; }
.post-card__link:hover { color: var(--rose-dark); gap: 7px; }

/* =============================================
   ENTRY CATEGORY LABEL
   ============================================= */
.entry-cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  transition: background var(--transition);
}
.entry-cat-label:hover {
  background: var(--rose-light);
  color: var(--rose-dark);
}

/* =============================================
   ENTRY PAGE SPACING
   ============================================= */
.entry-page .entry-title { margin-bottom: var(--space-md); }
.entry-page .entry-content { max-width: var(--content); }

/* =============================================
   ERROR 404
   ============================================= */
.error-404 {
  max-width: 560px;
  padding: var(--space-xl) 0;
}
.error-404 .entry-title { margin-bottom: var(--space-md); }
.error-404 .search-form { margin: var(--space-md) 0; }
.error-404 .btn { margin-top: var(--space-sm); }

/* =============================================
   NO RESULTS
   ============================================= */
.no-results { text-align: center; padding: var(--space-xl) 0; }
.no-results h2 { margin-bottom: var(--space-sm); }
.no-results p  { color: var(--muted); margin-bottom: var(--space-md); }
.no-results .search-form { max-width: 400px; margin: 0 auto; }

/* =============================================
   FOOTER NAV (footer bar)
   ============================================= */
.footer-nav {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-nav li a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,0.1);
  line-height: 1;
}
.footer-nav li:last-child a { border-right: none; }
.footer-nav li a:hover { color: var(--white); }

/* =============================================
   HEADER SCROLLED STATE
   ============================================= */
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

/* =============================================
   RESPONSIVE — GRID
   ============================================= */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ARCHIVE — HERO FIRST POST
   Coaching Plus style
   ============================================= */
.archive-hero-post {
  background: var(--sage-light);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
}
.archive-hero-post__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.archive-hero-post__image-wrap {
  display: block;
  overflow: hidden;
}
.archive-hero-post__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
  transition: transform 0.3s ease;
}
.archive-hero-post__image-wrap:hover .archive-hero-post__image {
  transform: scale(1.03);
}
.archive-hero-post__content {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archive-hero-post__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}
.archive-hero-post__cat:hover { color: var(--rose-dark); }
.archive-hero-post__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.archive-hero-post__title a { color: var(--ink); }
.archive-hero-post__title a:hover { color: var(--rose); }
.archive-hero-post__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.archive-hero-post__excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* =============================================
   ARCHIVE — CATEGORY FILTER TABS
   ============================================= */
.archive-filter-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: var(--space-md) 0;
}
.archive-filter-tabs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-filter-tab {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  background: var(--white);
}
.archive-filter-tab:hover {
  color: var(--rose);
  border-color: var(--rose);
  background: var(--sage-light);
}
.archive-filter-tab.is-active {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* =============================================
   ARCHIVE — GRID SECTION
   ============================================= */
.archive-grid-section {
  padding: var(--space-xl) 0 var(--space-xxl);
}
.archive-grid-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}

/* =============================================
   SINGLE POST — FEATURED IMAGE (full width)
   ============================================= */
.single-featured-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
}
.single-featured-image__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* =============================================
   SINGLE POST — LAYOUT (content + sidebar)
   ============================================= */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0 var(--space-xxl);
}

/* =============================================
   SINGLE POST — ENTRY
   ============================================= */
.single-entry {}

.single-entry__header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.single-entry__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  transition: background var(--transition);
}
.single-entry__cat:hover {
  background: var(--rose-light);
  color: var(--rose-dark);
}
.single-entry__title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.single-entry__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.single-entry__meta a { color: var(--muted); }
.single-entry__meta a:hover { color: var(--rose); }
.single-entry__meta-sep { color: var(--line); }

.single-entry__content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}
.single-entry__content > * + * { margin-top: 1.4rem; }
.single-entry__content h2 { margin-top: 2.5rem; font-family: var(--serif); }
.single-entry__content h3 { margin-top: 2rem; font-family: var(--serif); }
.single-entry__content h4 { margin-top: 1.5rem; font-size: 17px; font-family: var(--sans); }
.single-entry__content ul,
.single-entry__content ol { padding-left: 1.5em; }
.single-entry__content a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.single-entry__content img { border-radius: var(--radius); margin: var(--space-md) 0; }
.single-entry__content blockquote { margin: var(--space-md) 0; }

.single-entry__footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.single-entry__filed a {
  color: var(--rose);
  font-weight: 700;
}

/* =============================================
   AUTHOR BIO BOX
   ============================================= */
.author-bio {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--sage-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
  border: 1px solid var(--line);
}
.author-bio__avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.author-bio__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* =============================================
   POST NAVIGATION
   ============================================= */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.post-navigation .nav-previous,
.post-navigation .nav-next { display: flex; }
.post-navigation .nav-next { justify-content: flex-end; text-align: right; }
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
}
.post-navigation .nav-direction {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}
.post-navigation .nav-title { font-weight: 700; line-height: 1.3; }
.post-navigation a:hover .nav-title { color: var(--rose); }

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.comments-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}
.comment {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: none; }
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-metadata {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.comment-metadata a { color: var(--muted); }
.comment-content p { font-size: 15px; line-height: 1.7; }
.comment-reply-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 8px;
  display: inline-block;
}
.comment-reply-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--ink);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  margin-bottom: var(--space-sm);
}
.comment-form textarea { min-height: 130px; border-radius: var(--radius); }
.form-submit { margin-top: 4px; }

/* =============================================
   SINGLE — FOOTER CTA STRIP
   ============================================= */
.single-cta-strip {
  background: var(--sage-light);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0;
  text-align: center;
}
.single-cta-strip__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.single-cta-strip__desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto var(--space-lg);
}
.single-cta-strip__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   SINGLE SIDEBAR
   ============================================= */
.single-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .archive-hero-post__inner {
    grid-template-columns: 1fr;
  }
  .archive-hero-post__image { min-height: 240px; }
  .single-layout {
    grid-template-columns: 1fr;
  }
  .single-sidebar { position: static; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { justify-content: flex-start; text-align: left; }
}
@media (max-width: 600px) {
  .archive-filter-tabs__inner { gap: 6px; }
  .archive-filter-tab { font-size: 11px; padding: 7px 14px; }
  .author-bio { flex-direction: column; }
}

/* =============================================
   COACHING PLUS STYLE PAGINATION
   ============================================= */
.cp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.cp-pagination__item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: all var(--transition);
  text-decoration: none;
}
.cp-pagination__item .page-numbers:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.cp-pagination__item .page-numbers.current {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}
.cp-pagination__item .page-numbers.dots {
  border: none;
  background: none;
  width: auto;
  cursor: default;
  color: var(--muted);
}
.cp-pagination__next {
  margin-left: 8px;
  background: var(--rose) !important;
  color: var(--white) !important;
  border-color: var(--rose) !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
}
.cp-pagination__next:hover {
  background: var(--rose-dark) !important;
  border-color: var(--rose-dark) !important;
}

/* =============================================
   GREEN THEME OVERRIDES
   Footer, CTA sections, dark elements
   ============================================= */

/* Footer — deep forest green */
.site-footer { background: transparent; }
.footer-widgets { background: #1B3A2D; }
.footer-bar { background: #0F2318; }

/* Footer widget text */
.footer-widgets .widget-title { color: #FFFFFF; border-bottom-color: rgba(255,255,255,0.12); }
.footer-widgets .widget p,
.footer-widgets .widget li { color: rgba(255,255,255,0.75); }
.footer-widgets .widget ul li a { color: rgba(255,255,255,0.75); }
.footer-widgets .widget ul li a:hover { color: #FFFFFF; }
.footer-bar p,
.footer-bar span,
.footer-bar a { color: rgba(255,255,255,0.4); }
.footer-bar a:hover { color: #FFFFFF; }
.footer-nav li a { color: rgba(255,255,255,0.4); }
.footer-nav li a:hover { color: #FFFFFF; }

/* Single post CTA strip — light sage green */
.single-cta-strip { background: #E8F5EE; border-color: #C8DDD2; }
.single-cta-strip__title { color: #1B3A2D; }
.single-cta-strip__desc { color: #5A7D6A; }

/* Archive hero background — light green tint */
.archive-hero-post { background: #E8F5EE; border-bottom-color: #C8DDD2; }

/* Archive filter tabs — active state uses sage */
.archive-filter-tab.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}
.archive-filter-tab:hover {
  color: var(--sage-dark);
  border-color: var(--sage);
  background: var(--sage-light);
}

/* Author bio box — light green */
.author-bio { background: #E8F5EE; border-color: #C8DDD2; }

/* Blockquote — green left border */
blockquote { border-left-color: var(--sage); background: #E8F5EE; }

/* Post navigation links */
.post-navigation .nav-direction { color: var(--sage); }
.post-navigation a:hover .nav-title { color: var(--sage); }

/* Widget active link */
.widget ul li a:hover { color: var(--sage); background: var(--sage-light); }

/* Pagination current — sage */
.cp-pagination__item .page-numbers.current {
  background: var(--sage);
  border-color: var(--sage);
}
.cp-pagination__item .page-numbers:hover {
  border-color: var(--sage);
  color: var(--sage);
}
.cp-pagination__next {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
}
.cp-pagination__next:hover {
  background: var(--sage-dark) !important;
  border-color: var(--sage-dark) !important;
}

/* =============================================
   TWO-LAYER HEADER SYSTEM
   ============================================= */

/* Top announcement bar */
.site-topbar {
  width: 100%;
  background: #2D6A4F;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, height 0.3s ease;
  position: relative;
  z-index: 201;
}
.site-topbar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.site-topbar__text {
  text-align: center;
  line-height: 1.4;
}
.site-topbar__text strong {
  font-weight: 900;
  letter-spacing: 0.06em;
}
.site-topbar__text a {
  color: inherit;
  text-decoration: underline;
}
.site-topbar__close {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  letter-spacing: normal;
  text-transform: none;
  font-size: inherit;
  font-weight: inherit;
}
.site-topbar__close:hover { color: #FFFFFF; background: rgba(255,255,255,0.1); }

/* Main header — sticky, appears after topbar scrolls away */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  transition: box-shadow var(--transition);
}
.site-header.is-sticky {
  box-shadow: 0 2px 20px rgba(27,58,45,0.10);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Header actions — search, cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  padding: 0;
}
.header-action-btn:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}
.header-cart { text-decoration: none; color: var(--ink); }
.header-cart__count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--rose);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Search dropdown */
.header-search-dropdown {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
}
.header-search-dropdown .search-form {
  max-width: 560px;
  margin: 0 auto;
}

/* Customizer: Topbar controls */
/* (Defined in functions.php) */

/* =============================================
   BODY PADDING — account for sticky header
   ============================================= */
/* No extra padding needed — topbar is in flow,
   header is sticky so content starts below it */

/* =============================================
   RESPONSIVE TOPBAR
   ============================================= */
@media (max-width: 600px) {
  .site-topbar { font-size: 12px; padding: 8px 0; }
  .site-topbar__text { padding-right: 24px; }
}

/* =============================================
   TOPBAR COUNTDOWN TIMER
   ============================================= */
.topbar-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex-shrink: 0;
}
.topbar-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 3px 8px;
  min-width: 44px;
}
.topbar-countdown__num {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-family: var(--sans);
}
.topbar-countdown__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
}
.topbar-countdown__sep {
  font-size: 18px;
  font-weight: 900;
  opacity: 0.6;
  margin-bottom: 8px;
}
.topbar-countdown.is-expired {
  display: none;
}
@media (max-width: 600px) {
  .topbar-countdown__unit { min-width: 36px; padding: 2px 6px; }
  .topbar-countdown__num { font-size: 14px; }
  .topbar-countdown { margin-left: 10px; }
}

/* =============================================
   FULL WIDTH PAGE TEMPLATE
   ============================================= */
.site-main--full {
  width: 100%;
  padding: 0;
  margin: 0;
}
.entry-content--full {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Remove any WordPress default padding/margins on full-width pages */
.site-main--full .wp-block-group,
.site-main--full .wp-block-cover,
.site-main--full > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Also remove the default site-content padding */
.site-main--full ~ * { padding: 0; }

/* =============================================
   ARTICLE HTML CONTENT FIXES
   When article HTML is pasted into WordPress
   ============================================= */

/* Fix 1: Remove blank space — the article hero dark section
   inside entry-content needs no extra top margin */
.single-entry__content .hero,
.single-entry__content > div:first-child,
.entry-content > div:first-child {
  margin-top: 0 !important;
}

/* Fix 2: Remove top padding from single layout when
   featured image is absent */
.single-layout {
  padding-top: var(--space-lg);
}
.single-featured-image + .container .single-layout {
  padding-top: var(--space-xl);
}

/* Fix 3: Product grid inside article content —
   force 2-column grid to stay 2 columns */
.entry-content .product-grid,
.single-entry__content .product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

/* Fix 4: Amazon button inside article content —
   make sure it is always visible with correct colors */
.entry-content .product-link,
.single-entry__content .product-link,
.entry-content a.product-link,
.single-entry__content a.product-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  background: #FF9900 !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  text-decoration: none !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  opacity: 1 !important;
}
.entry-content .product-link:hover,
.single-entry__content .product-link:hover {
  opacity: 0.88 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Fix 5: Product cards inside entry content —
   ensure border and background show correctly */
.entry-content .product-card,
.single-entry__content .product-card {
  background: #FFFFFF !important;
  border: 0.5px solid rgba(26,23,20,0.12) !important;
  border-radius: 12px !important;
  padding: 20px !important;
}

/* Fix 6: Ensure product grid doesn't collapse
   to 1 column on medium screens inside article */
@media (min-width: 600px) {
  .entry-content .product-grid,
  .single-entry__content .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .entry-content .product-grid,
  .single-entry__content .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================
   FIX: Blank space above article hero section
   The article HTML has its own .hero dark section.
   WordPress single.php adds padding-top via
   .single-layout — remove it when no featured image
   ============================================= */
.single-post-main .single-layout {
  padding-top: var(--space-lg);
}
/* Remove margin-top from first child inside entry content */
.single-entry__content > *:first-child {
  margin-top: 0 !important;
}
/* Specifically target the article hero dark block */
.single-entry__content .hero {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Remove extra space when there's no featured image */
.single-post-main:not(:has(.single-featured-image)) .single-layout {
  padding-top: 0 !important;
}

/* =============================================
   CRITICAL LAYOUT FIXES
   ============================================= */

/* Fix site-content padding — pages and archives
   need their own section padding, not a global one */
.site-content { padding: 0; }
.archive-grid-section { padding: var(--space-xl) 0 var(--space-xxl); }
.site-main > .container > .site-content { padding: var(--space-lg) 0 var(--space-xxl); }

/* Fix: single post — remove blank space above article hero.
   The article HTML's own .hero section should start immediately
   after the sticky header with no gap */
.single-post-main { padding-top: 0; }
.single-post-main .single-layout { padding-top: var(--space-lg); }

/* Fix: About page and other static pages — the pasted HTML
   may have a .page class with max-width. Override to allow
   the content to breathe within the container */
.entry-page .entry-content > .page,
.entry-page .entry-content > div {
  max-width: 100%;
}

/* Fix: Footer ALWAYS full width — the footer must break
   out of any parent container constraints */
.site-footer {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.footer-widgets,
.footer-bar {
  width: 100%;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix: sidebar gap — reduce excessive gap between
   article content and sidebar */
.single-layout {
  gap: var(--space-lg);
}

/* Fix: stat strip inside article — keep 4 cards in one row */
.entry-content .stat-strip,
.single-entry__content .stat-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
@media (max-width: 768px) {
  .entry-content .stat-strip,
  .single-entry__content .stat-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Page content — no container constraint on the content itself */

/* Default WordPress page content — center and constrain */
.entry-content--page > *:not(.page):not(style) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
/* Wrap bare WordPress content in a centered column */
.entry-page 
/* The .page div inside About HTML has its own max-width — respect it */
.entry-content--page .page {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 80px;
}
/* CTA strip and footer inside About HTML — full width */
.entry-content--page .cta-strip,
.entry-content--page footer,
.entry-content--page .site-footer {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =============================================
   PAGE ENTRY HEADER
   ============================================= */
.page-entry-header {
  padding: var(--space-md) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.page-entry-header .entry-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

/* Hide the page title when the pasted HTML has its own hero
   (About page, landing pages etc that start with a big heading) */
.entry-page .entry-content--page > .page ~ * { }
.entry-page:has(.entry-content--page > .page) .page-entry-header,
.entry-page:has(.entry-content--page > style + div) .page-entry-header {
  display: none;
}


.entry-content--page > p,
.entry-content--page > h2,
.entry-content--page > h3,
.entry-content--page > h4,
.entry-content--page > ul,
.entry-content--page > ol,
.entry-content--page > blockquote,
.entry-content--page > table,
.entry-content--page > figure,
.entry-content--page > div:not(.page):not(.cta-strip):not(.site-footer) {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

/* =============================================
   PAGE CONTENT INNER — centers plain page content
   ============================================= */


/* When page has custom HTML with its own .page wrapper
   (About page etc) — let it control its own width */
.page-content-inner > .page,
.page-content-inner > style + div {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Override the page-content-inner constraints for
   custom HTML pages that have full-width sections */
.page-content-inner:has(> .page) {
  max-width: 100%;
  padding: 0;
}




/* =============================================
   PAGE LAYOUT — Authority Pro style
   Left-aligned title, centered content column
   ============================================= */

/* Title area — full width, left-aligned */
.page-entry-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.page-entry-header .entry-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

/* Content area — centered column, matches Authority Pro width */
.entry-content--page {
  width: 100%;
  padding: 0;
}

/* All content elements: centered at 680px, equal left/right space */
.entry-content--page p,
.entry-content--page h1,
.entry-content--page h2,
.entry-content--page h3,
.entry-content--page h4,
.entry-content--page h5,
.entry-content--page h6,
.entry-content--page ul,
.entry-content--page ol,
.entry-content--page li,
.entry-content--page blockquote,
.entry-content--page table,
.entry-content--page figure,
.entry-content--page img,
.entry-content--page .wp-block-group,
.entry-content--page .wp-block-columns {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Wrap the whole content in a padded centered column */
.entry-content--page {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg) 32px var(--space-xxl);
  box-sizing: border-box;
}

/* Override for custom HTML pages (About, landing pages)
   that have their own .page wrapper — go full width */
.entry-page:has(.entry-content--page > .page) .entry-content--page,
.entry-page:has(.entry-content--page > style) .entry-content--page {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* =============================================
   SIDEBAR WIDGET TITLE — reduce size
   ============================================= */
.widget-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* =============================================
   ABOUT PAGE — hide theme title, remove constraints
   The about page HTML has its own hero heading
   ============================================= */
.entry-page .entry-content--page > .pa-about {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
/* Hide the theme-generated page title for pages
   that start with their own full hero section */
.entry-page:has(.pa-about) .page-entry-header {
  display: none;
}
.entry-page:has(.pa-about) .entry-content--page {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Recommended products page — hide title, full width */
.entry-page:has(.pa-rp) .page-entry-header { display: none; }
.entry-page:has(.pa-rp) .entry-content--page {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.entry-content--page > .pa-rp { max-width: 100%; padding: 0; }

/* Recommended products — ensure full content width */
.entry-page:has(.pa-rp) .entry-content--page,
.entry-content--page > .pa-rp {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =============================================
   POST CARD — hover only on image, not container
   ============================================= */

/* Remove container hover effects */
.post-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

/* Image zoom on hover only */
.post-card:hover .post-card__image {
  transform: scale(1.06);
}

/* Subtle border highlight on card hover */
.post-card:hover {
  border-color: rgba(199,129,118,0.35);
}

/* =============================================
   GLOBAL LINK HOVER — underline on all links
   ============================================= */
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Exceptions — elements that should NOT get underline */
.site-nav a:hover,
.primary-nav a:hover,
.mobile-nav a:hover,
.post-card__cat:hover,
.post-card__title a:hover,
.post-card__link:hover,
.btn:hover,
.pa-rp__btn:hover,
.pa-cta-btn:hover,
.archive-filter-tab:hover,
.entry-cat-label:hover,
.single-entry__cat:hover,
.nav-cta > a:hover,
.site-name:hover,
.site-branding a:hover,
.pagination a:hover,
.page-numbers:hover,
.footer-nav li a:hover,
.footer-widgets .widget ul li a:hover,
.widget ul li a:hover,
.cp-pagination__item .page-numbers:hover,
.cp-pagination__next:hover {
  text-decoration: none;
}

/* Post card title — underline on hover */
.post-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--rose);
}

/* Archive hero post title — underline on hover */
.archive-hero-post__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   FINAL HOVER FIXES
   ============================================= */

/* Card container — absolutely no movement or shadow */
.post-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}

/* Image only — zoom on hover */
.post-card__image-wrap:hover .post-card__image,
.post-card:hover .post-card__image {
  transform: scale(1.06);
}

/* Post card title — underline on hover, no color change */
.post-card__title a:hover {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Archive hero title — underline on hover */
.archive-hero-post__title a:hover {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Single post entry title — underline on hover */
.single-entry__title a:hover,
.entry-title a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* All body content links — underline on hover */
.entry-content a:hover,
.single-entry__content a:hover,
.page-content a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* =============================================
   POST CARD EXCERPT — match body text size
   ============================================= */
.post-card__excerpt {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
}

/* =============================================
   SIDEBAR WIDGET TITLE — definitive small size
   Override ALL WordPress default heading styles
   ============================================= */
.widget-title,
.widget h2,
.widget h3,
.widgettitle,
aside .widget-title,
.widget-area .widget-title,
.single-sidebar .widget-title,
#secondary .widget-title {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--line) !important;
  line-height: 1.4 !important;
}

/* =============================================
   RELATED POSTS — 2 column grid
   ============================================= */
.related-posts {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.related-posts__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.posts-grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Remove post navigation completely */
.post-navigation { display: none !important; }

@media (max-width: 600px) {
  .posts-grid--2col {
    grid-template-columns: 1fr !important;
  }
}
