/* ==========================================================================
   Your Grief Solution — main stylesheet
   Brand colors taken from yourgriefsolution.com
   ========================================================================== */


:root {
  /* Brand palette (exact values from the existing site) */
  --ygs-blue: #B2C2DC;        /* rgb(178,194,220)  signature section blue */
  --ygs-blue-deep: #88A1C9;   /* rgb(136,161,201) */
  --ygs-mist: #B8C0CC;        /* rgb(184,192,204) */
  --ygs-slate: #495867;       /* rgb(73,88,103)    primary buttons */
  --ygs-slate-dark: #303F4E;  /* rgb(48,63,78)     button hover */
  --ygs-navy: #0D1B2B;        /* rgb(13,27,43)     nav hover */
  --ygs-ink: #0D131A;         /* rgb(13,19,26)     nav text */
  --ygs-text: #1A1A1A;        /* rgb(26,26,26)     body text */
  --ygs-orange: #CC6223;      /* rgb(204,98,35)    accent / headings */
  --ygs-amber: #DE8A35;       /* rgb(222,138,53) */
  --ygs-sand: #D4C7B0;        /* rgb(212,199,176) */
  --ygs-sage: #B7B7A4;        /* rgb(183,183,164) */
  --ygs-gray: #6D6E80;        /* rgb(109,110,128) */
  --ygs-white: #FFFFFF;

  /* Tints derived from the brand palette */
  --ygs-blue-50: #F3F6FB;
  --ygs-blue-100: #E4EAF3;
  --ygs-sand-50: #FAF7F2;
  --ygs-orange-50: #FBEFE7;

  /* Semantic tokens */
  --bg: var(--ygs-white);
  --bg-soft: var(--ygs-blue-50);
  --bg-warm: var(--ygs-sand-50);
  --surface: var(--ygs-white);
  --text: var(--ygs-text);
  --text-muted: #4E5566;
  --border: #DCE2EC;
  --accent: var(--ygs-orange);
  --primary: var(--ygs-slate);
  --primary-hover: var(--ygs-slate-dark);
  --success: #2E7D5B;
  --danger: #B3261E;

  /* Type */
  --font-heading: 'Cormorant Garamond', 'Cormorant', Garamond, 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-serif: Arial, Helvetica, sans-serif; /* quotes use italic Arial */

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 43, .06), 0 2px 8px rgba(13, 27, 43, .05);
  --shadow: 0 6px 24px rgba(13, 27, 43, .09);
  --shadow-lg: 0 18px 48px rgba(13, 27, 43, .14);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ygs-slate); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ygs-orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ygs-ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
sup { font-size: .55em; line-height: 0; vertical-align: super; }
h1 sup, h2 sup { font-size: .38em; vertical-align: .9em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
/* Anything marked hidden stays hidden, even if a component sets its own display (e.g. blog cards) */
[hidden] { display: none !important; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--ygs-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--ygs-blue); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--ygs-slate-dark); color: #E9EEF5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #C9D3E0; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); }
.text-center { text-align: center; }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; min-height: 48px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--ygs-orange); --btn-bd: var(--ygs-orange); }
.btn--accent:hover { --btn-bg: #B3531C; --btn-bd: #B3531C; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ygs-slate); --btn-bd: var(--ygs-slate); }
.btn--ghost:hover { --btn-bg: var(--ygs-slate); color: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ygs-ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--ygs-blue-100); --btn-bd: var(--ygs-blue-100); color: var(--ygs-ink); }
.btn--sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / navigation ---------- */
.crisis-bar {
  background: var(--ygs-slate-dark); color: #E9EEF5; font-size: .85rem; text-align: center; padding: .45rem 16px;
}
.crisis-bar a { color: #fff; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ygs-ink); flex-shrink: 0; }
.brand img { height: 80px; width: auto; }
.site-header .nav { min-height: 96px; } /* room for the round logo */
@media (max-width: 760px) { .brand img { height: 64px; } .site-header .nav { min-height: 80px; } }
.brand span { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.nav-menu { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block; padding: .5rem .6rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  color: var(--ygs-ink); font-weight: 400; font-size: .95rem;
}
.nav-menu a:hover { background: var(--ygs-blue-100); color: var(--ygs-navy); }
.nav-menu a[aria-current="page"] { background: var(--ygs-blue); color: var(--ygs-ink); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; color: var(--ygs-ink); text-decoration: none;
}
.cart-link:hover { background: var(--ygs-blue-100); color: var(--ygs-ink); }
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--ygs-orange); color: #fff; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 50%;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--ygs-blue-100); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ygs-ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* The header button repeats the hero call-to-action, so it gives way to the menu first */
@media (max-width: 1360px) { .nav-cta { display: none; } }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 16px 24px; gap: 2px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h) - 20px); max-height: calc(100dvh - var(--header-h) - 20px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-menu .nav-menu-cta { display: block; margin-top: .5rem; }
  .nav-menu .nav-menu-cta a { background: var(--ygs-orange); color: #fff; text-align: center; border-radius: 999px; }
}
@media (min-width: 1121px) { .nav-menu .nav-menu-cta { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ygs-blue); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--ygs-orange); }
.hero p { font-size: 1.12rem; color: #26303B; max-width: 60ch; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-quote {
  position: absolute; left: -28px; bottom: 32px; max-width: 280px; background: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-lg); font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.5;
  color: var(--ygs-ink); border-left: 4px solid var(--ygs-orange);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1.6rem; font-size: .93rem; color: #26303B; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--ygs-orange); flex-shrink: 0; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .hero-quote { left: 12px; right: 12px; max-width: none; bottom: 16px; }
}

.page-hero { background: var(--ygs-blue); padding-block: clamp(48px, 7vw, 88px); text-align: center; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.45), rgba(255,255,255,0) 70%); pointer-events: none;
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { max-width: 680px; margin-inline: auto; color: #26303B; font-size: 1.12rem; }
.breadcrumb { font-size: .88rem; margin-bottom: 1rem; color: #3A4554; }
.breadcrumb a { color: inherit; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ygs-orange-50); color: var(--ygs-orange); margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card--lift:hover { transform: translateY(-4px); }
.card-media { margin: calc(-1 * clamp(22px, 3vw, 32px)); margin-bottom: 1.25rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-footer { margin-top: auto; padding-top: 1.25rem; }

/* Value props */
.value-grid .card { text-align: left; }

/* ---------- Course / product cards ---------- */
.course-card { padding: 0; overflow: hidden; }
.course-card .course-img { aspect-ratio: 16/10; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.course-card .course-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.course-card .course-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .3rem .65rem; border-radius: 999px; background: var(--ygs-blue-100); color: var(--ygs-slate-dark);
}
.tag--accent { background: var(--ygs-orange-50); color: #9A4615; }
.tag--sand { background: #F1EADF; color: #5B4C33; }
.price { font-family: var(--font-body); font-weight: 700; font-size: 1.75rem; color: var(--ygs-ink); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.price-old { text-decoration: line-through; color: var(--ygs-gray); font-weight: 500; font-size: 1rem; margin-right: .35rem; }
.course-actions { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.feature-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--ygs-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303F4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

details.more { margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .75rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--ygs-slate); list-style: none; display: flex; align-items: center; gap: .4rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; margin-left: auto; transition: transform .2s; }
details.more[open] summary::after { transform: rotate(45deg); }
details.more .more-body { padding-top: .75rem; font-size: .97rem; color: #2B3340; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
table.compare th, table.compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--ygs-blue-50); font-family: var(--font-body); font-size: .95rem; color: var(--ygs-ink); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover { background: #FBFCFE; }

/* ---------- Books ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px; }
.book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.book a.book-cover { display: block; border-radius: 6px; box-shadow: 0 10px 28px rgba(13,27,43,.18); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; background: #fff; }
.book a.book-cover:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(13,27,43,.24); }
.book img { width: 100%; max-width: 190px; aspect-ratio: 2/3; object-fit: cover; }
.book img.square { aspect-ratio: 1/1; }
.book h4 { margin: 1rem 0 .3rem; font-size: 1rem; }
.book h4 a { color: var(--ygs-ink); text-decoration: none; }
.book h4 a:hover { color: var(--accent); }
.book p { font-size: .88rem; color: var(--text-muted); margin-bottom: .6rem; }
.amazon-note { font-size: .85rem; color: var(--text-muted); text-align: center; margin-top: 2rem; }

.feature-book { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-book img { border-radius: 8px; box-shadow: var(--shadow-lg); }
.feature-book--reverse { grid-template-columns: 1fr 300px; }
.feature-book--reverse > img { order: 2; }
@media (max-width: 760px) { .feature-book, .feature-book--reverse { grid-template-columns: 1fr; } .feature-book--reverse > img { order: 0; } .feature-book img { max-width: 260px; margin-inline: auto; } }
.ribbon {
  display: inline-block; background: var(--ygs-orange); color: #fff; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 4px; margin-bottom: 1rem;
}

/* ---------- Quote & testimonials ---------- */
.big-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.4; color: var(--ygs-ink); text-align: center; max-width: 860px; margin: 0 auto; }
.big-quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--ygs-orange); margin-bottom: .2em; font-style: normal; }
.big-quote cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-style: normal; font-size: 1rem; color: var(--text-muted); }
.testimonial { position: relative; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column; }
.testimonial::before { content: "\201C"; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--ygs-blue); position: absolute; top: 12px; right: 22px; }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: 1rem; color: #2B3340; }
.testimonial .who { margin-top: auto; font-weight: 600; color: var(--ygs-slate); font-size: .92rem; }
.stars { color: var(--ygs-amber); letter-spacing: 2px; margin-bottom: .6rem; font-size: 1rem; }

/* ---------- Media / image blocks ---------- */
.img-rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.img-arch { border-radius: 240px 240px var(--radius-lg) var(--radius-lg); }
.photo-stack { position: relative; padding-bottom: 12%; }
.photo-stack img:nth-child(2) { position: absolute; width: 48%; right: -4%; bottom: 0; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.press-list { display: grid; gap: 16px; }
.press-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; text-decoration: none; color: var(--ygs-ink); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.press-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ygs-ink); }
.press-item img { width: 160px; height: 44px; object-fit: cover; object-position: left; border-radius: 6px; flex-shrink: 0; }
.press-item strong { display: block; font-family: var(--font-heading); }
.press-item span { font-size: .88rem; color: var(--text-muted); }
@media (max-width: 520px) { .press-item img { width: 100px; } }

/* E-books */
.ebook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.ebook { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.ebook:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ebook img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; background: var(--ygs-blue-50); }
.ebook h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.ebook .btn { margin-top: auto; }

/* Timeline */

/* Steps (GRM components) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); position: relative; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--ygs-blue-deep); display: block; margin-bottom: .4rem; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .97rem; color: #2B3340; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ygs-slate-dark); color: #E9EEF5; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(178,194,220,.35), rgba(178,194,220,0) 70%); }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; color: #C9D3E0; font-size: 1.08rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.search-input { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-input input { width: 100%; padding: .8rem 1rem .8rem 2.75rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.search-input svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ygs-gray); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: #fff; padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--ygs-ink); }
.chip:hover { border-color: var(--ygs-blue-deep); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ygs-slate); border-color: var(--ygs-slate); color: #fff; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; line-height: 1.4; }
a.chip:hover { color: var(--ygs-ink); }
a.chip[aria-pressed="true"]:hover, a.chip[aria-current="page"]:hover { color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ygs-blue-50); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .8rem; }
.post-card h3 a { color: var(--ygs-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .link-arrow { margin-top: auto; font-size: .93rem; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--text-muted); }

.article-hero { background: var(--bg-soft); padding-block: clamp(40px, 6vw, 72px) 0; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--text-muted); font-size: .93rem; margin-bottom: 2rem; }
.article-cover { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; transform: translateY(40px); background: #fff; }
.article { padding-top: calc(40px + clamp(40px, 6vw, 72px)); }
.prose { font-size: 1.1rem; line-height: 1.8; color: #222A35; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose h2 { font-size: 1.75rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.15rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem auto; box-shadow: var(--shadow-sm); }
.prose a { color: var(--ygs-orange); }
.prose blockquote { border-left: 4px solid var(--ygs-blue); margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; font-family: var(--font-serif); font-style: italic; }
.prose ul li::marker, .prose ol li::marker { color: var(--ygs-orange); }
.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share strong { margin-right: .4rem; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: var(--bg-warm); border-radius: var(--radius); padding: 24px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.author-box p { margin: 0; font-size: .95rem; color: #3A4554; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2.5rem; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--ygs-ink); background: #fff; }
.post-nav a:hover { border-color: var(--ygs-blue-deep); box-shadow: var(--shadow-sm); }
.post-nav small { display: block; color: var(--text-muted); font-size: .8rem; margin-bottom: .2rem; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } .author-box { grid-template-columns: 1fr; text-align: center; } .author-box img { margin-inline: auto; } }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.4rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; position: relative; color: var(--ygs-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ygs-orange); border-bottom: 2px solid var(--ygs-orange); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq[open] summary { background: var(--ygs-blue-50); }
.faq .faq-body { padding: 1rem 1.4rem 1.4rem; color: #2B3340; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; color: var(--ygs-ink); }
.field .req { color: var(--ygs-orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #CBD3DF; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ygs-slate); box-shadow: 0 0 0 4px rgba(178,194,220,.55); }
.field .hint { font-size: .83rem; color: var(--text-muted); margin-top: .3rem; }
.field .error-msg { display: none; font-size: .85rem; color: var(--danger); margin-top: .35rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--ygs-slate); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-success { display: block; background: #E7F4EE; color: #1D5A40; border: 1px solid #B9DFCB; }
.form-status.is-error { display: block; background: #FBEAEA; color: #8A1C16; border: 1px solid #F1C2BF; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; padding: .85rem 1.1rem; border-radius: 999px; border: 1.5px solid #CBD3DF; min-height: 50px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; margin: 0; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ygs-blue-100); color: var(--ygs-slate-dark); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-body); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); filter: saturate(.85); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table td { padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* Social icons */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: inherit; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--ygs-orange); color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.socials--dark a { background: var(--ygs-blue-100); color: var(--ygs-slate-dark); }

/* ---------- Footer ---------- */
.crisis-panel { background: var(--ygs-blue); padding-block: 40px; }
.crisis-panel h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.crisis-panel .intro { max-width: 760px; margin-bottom: 1.5rem; color: #26303B; }
.crisis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.crisis-card { background: rgba(255,255,255,.75); border-radius: var(--radius); padding: 18px 20px; }
.crisis-card h3 { font-size: 1rem; color: var(--ygs-orange); margin-bottom: .4rem; }
.crisis-card p { margin: 0; font-size: .93rem; line-height: 1.55; }
@media (max-width: 860px) { .crisis-grid { grid-template-columns: 1fr; } }
.site-footer { background: var(--ygs-ink); color: #B9C3D1; font-size: .95rem; }
.site-footer a { color: #DCE4EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 64px 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand img { height: 120px; width: auto; margin-bottom: 1rem; background: #fff; padding: 8px; border-radius: 18px; } /* white panel matches the logo's white background on the dark footer */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.disclosure { font-size: .8rem; color: #8592A3; padding-bottom: 28px; margin: 0; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.cart-item img { width: 88px; height: 88px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--border); padding: 4px; }
.cart-item h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.cart-item .sub { font-size: .85rem; color: var(--text-muted); }
.cart-item .line-price { font-weight: 700; font-family: var(--font-body); text-align: right; }
.cart-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .55rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ygs-ink); }
.qty button:hover:not(:disabled) { background: var(--ygs-blue-50); }
.qty button:disabled { color: #B4BAC6; cursor: not-allowed; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: .95rem; }
.remove-btn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; color: var(--ygs-gray); font-size: .85rem; cursor: pointer; padding: .3rem .2rem; border-radius: 6px; }
.remove-btn svg { width: 16px; height: 16px; }
.remove-btn:hover { color: var(--danger); background: #FBEAEA; }
@media (max-width: 520px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .cart-item .line-price { grid-column: 2; text-align: left; } }
/* Compact lines in the checkout sidebar */
.cart-item--compact { grid-template-columns: 52px 1fr; gap: 10px; padding: 10px; }
.cart-item--compact img { width: 52px; height: 52px; }
.cart-item--compact h3 { font-size: .92rem; }
.cart-item--compact .line-price { grid-column: 2; text-align: left; font-size: .95rem; }
.cart-item--compact .qty button { width: 28px; height: 28px; }
.summary .cart-items { gap: 8px; margin-bottom: .5rem; }
.add-more { font-size: .9rem; color: var(--text-muted); margin: .6rem 0 .4rem; }
.add-more a { font-weight: 700; }
.review-cart { margin-top: 1rem; }
.review-cart .summary-row { padding-inline: .2rem; }

/* Book purchase options */
.format-options { display: grid; gap: 10px; margin: 1.25rem 0 .75rem; max-width: 520px; }
.format-option { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.format-option strong { display: block; font-family: var(--font-body); color: var(--ygs-ink); }
.format-option span:not(.price) { font-size: .88rem; color: var(--text-muted); }
.format-option .price { font-size: 1.35rem; }
@media (max-width: 480px) { .format-option { grid-template-columns: 1fr auto; } .format-option .btn { grid-column: 1 / -1; } }
.amazon-alt { font-size: .9rem; color: var(--text-muted); margin: .25rem 0 0; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin: 1rem 0; }
.summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: .45rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; font-family: var(--font-body); }
.summary-row.savings { color: var(--success); font-weight: 600; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 .75rem; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.trust { display: grid; gap: .5rem; margin-top: 1.1rem; font-size: .85rem; color: var(--text-muted); }
.trust span { display: flex; gap: .45rem; align-items: center; }
.trust svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

.order-bump { border: 2px dashed var(--ygs-orange); background: var(--ygs-orange-50); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.order-bump label { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.order-bump input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--ygs-orange); flex-shrink: 0; }
.order-bump strong { color: #8A3D10; }
.order-bump .bump-head { display: block; font-family: var(--font-body); font-weight: 700; color: var(--ygs-ink); margin-bottom: .2rem; }

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; counter-reset: s; }
.stepper li { flex: 1; margin: 0; counter-increment: s; font-size: .88rem; font-weight: 600; color: var(--text-muted); padding-top: 12px; border-top: 4px solid var(--border); }
.stepper li::before { content: "Step " counter(s) " · "; font-weight: 500; }
.stepper li.is-active { color: var(--ygs-ink); border-color: var(--ygs-orange); }
.stepper li.is-done { color: var(--ygs-slate); border-color: var(--ygs-slate); }
@media (max-width: 560px) { .stepper li::before { content: counter(s) ". "; } .stepper li { font-size: .78rem; } }
.checkout-step[hidden] { display: none; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.35rem; }

.offer { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ygs-orange); background: #fff; box-shadow: var(--shadow); }
.offer-head { background: var(--ygs-orange); color: #fff; text-align: center; padding: .7rem 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.offer-body { padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.offer-body img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.offer-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.offer-price { display: flex; align-items: baseline; gap: .6rem; margin: .6rem 0 1.2rem; }
.offer-price .now { font-family: var(--font-body); font-weight: 700; font-size: 2rem; color: var(--ygs-orange); }
.offer-price .was { text-decoration: line-through; color: var(--ygs-gray); }
.offer-actions { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.no-thanks { background: none; border: 0; color: var(--ygs-gray); text-decoration: underline; cursor: pointer; font-size: .92rem; padding: .3rem 0; }
.no-thanks:hover { color: var(--ygs-ink); }
@media (max-width: 640px) { .offer-body { grid-template-columns: 1fr; text-align: center; } .offer-body img { max-width: 180px; margin-inline: auto; } .offer-price, .offer-actions { justify-content: center; align-items: center; } }
.offer-count { font-size: .85rem; color: var(--text-muted); margin-bottom: .8rem; text-align: center; }

.pay-options { display: grid; gap: 14px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--ygs-blue-50); border: 1px solid var(--ygs-blue-100); font-size: .93rem; }
.notice--warn { background: #FFF7E8; border-color: #F5DEB0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--ygs-ink); color: #fff; padding: .85rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .9rem; font-size: .95rem; opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s; max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: var(--ygs-blue); font-weight: 600; white-space: nowrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-code { font-family: var(--font-heading); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ygs-blue); margin-bottom: .2rem; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ygs-slate); color: #fff; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ygs-orange); }
.to-top svg { width: 20px; height: 20px; }

@media print {
  .site-header, .crisis-bar, .site-footer, .crisis-panel, .to-top, .share, .cta-band { display: none !important; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   VERSION 4 — "Healing Hearts" look
   Palette taken from the hero and banner artwork: warm cream, soft sky blue,
   sage leaves and deep navy titles, with the brand's terracotta orange.
   ========================================================================== */
:root {
  --ygs-navy-title: #13213A;   /* banner title navy */
  --ygs-sky: #D3DCE8;          /* soft sky blue behind the mug */
  --ygs-sky-deep: #C6D1DF;
  --ygs-cream: #F8F2EA;        /* warm morning light */
  --ygs-sand-warm: #EFE4D6;
  --ygs-sage: #6F8462;         /* eucalyptus / olive leaves */
  --ygs-sage-50: #EEF2E9;
  --bg-warm: var(--ygs-cream);
  --bg-soft: #EEF2F7;
}

/* Headings: Cormorant Garamond. It runs small, so sizes are a little larger than before. */
h1, h2, h3, h4, h5, h6 { color: var(--ygs-navy-title); font-weight: 600; letter-spacing: 0; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.3rem; }
h1 sup, h2 sup { font-size: .32em; vertical-align: 1.2em; font-family: var(--font-body); font-weight: 400; }
.faq summary { font-size: 1.3rem; font-weight: 600; }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; }
.book h4 { font-size: 1.15rem; }
.course-card h3 { font-size: 1.5rem; }
.step h3 { font-size: 1.35rem; }
.card-icon { background: var(--ygs-sage-50); color: var(--ygs-sage); }
.section--blue { background: linear-gradient(180deg, #DCE4EE 0%, #E9EEF4 100%); }
.section--warm { background: linear-gradient(180deg, var(--ygs-cream) 0%, #FBF8F3 100%); }

/* ---------- Home hero (inspired by the "Healing Hearts" banner) ---------- */
.hero--photo {
  background: linear-gradient(100deg, #C8D3E1 0%, #D2DBE7 38%, #CFD8E5 62%, #C9D3E0 100%);
  min-height: clamp(560px, 74vh, 760px);
  display: flex; align-items: center;
}
.hero--photo .hero-photo {
  position: absolute; top: 0; right: 0; height: 100%; width: min(54%, 820px);
  object-fit: cover; object-position: 30% 58%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 14%, #000 34%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 14%, #000 34%);
}
.hero--photo .hero-inner { display: block; position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 104px); }
.hero--photo .hero-copy { max-width: 700px; }
.hero--photo .eyebrow { letter-spacing: .2em; margin-bottom: 1.2rem; }
.hero--photo h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; font-weight: 600; margin-bottom: .45em; color: #101B2E; }
.hero--photo h1 em { font-style: normal; color: var(--ygs-orange); display: block; }
.hero--photo p { font-size: 1.12rem; line-height: 1.75; color: #2E3A4A; max-width: 56ch; }
.hero--photo .btn-row { margin-top: 2rem; gap: 1rem; }
.hero--photo .btn { padding: 1rem 1.8rem; min-height: 54px; }
.hero--photo .btn--ghost { --btn-fg: #2E3A4A; --btn-bd: #5B6878; }
.hero--photo .btn--ghost:hover { --btn-bg: #fff; color: var(--ygs-ink); --btn-bd: #fff; }
.hero-tagline { background: var(--ygs-cream); text-align: center; padding: 22px 16px; font-family: var(--font-heading); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ygs-navy-title); margin: 0; }
.hero-tagline span { color: var(--ygs-orange); }
@media (max-width: 900px) {
  .hero--photo { display: block; min-height: 0; }
  .hero--photo .hero-photo {
    position: relative; width: 100%; height: 300px; object-position: 50% 42%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .hero--photo .hero-inner { padding-top: 8px; }
}

/* ---------- Page banners (artwork fades into the text) ---------- */
.page-hero--art {
  background: linear-gradient(90deg, #F6EEE4 0%, #F3EFEA 30%, #ECF0F5 65%, #E3EAF2 100%);
  padding-block: clamp(56px, 7vw, 92px);
  min-height: clamp(260px, 26vw, 360px);
  display: flex; align-items: center;
}
.page-hero--art::after { display: none; }
.page-hero--art > .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero--art .hero-art {
  position: absolute; top: 0; height: 100%; width: auto; max-width: 46%;
  object-fit: cover; pointer-events: none; user-select: none;
}
.page-hero--art .hero-art--left {
  left: 0; object-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
          mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}
.page-hero--art .hero-art--right {
  right: 0; object-position: right center;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
          mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.page-hero--art .hero-art--wide { max-width: 58%; }
/* Busy right-hand artwork (bench, leaves on rock) stays clear of the centred title */
.page-hero--art .hero-art--right.hero-art--wide {
  max-width: 38%;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
          mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
/* soft light behind the text keeps it readable over any artwork */
.page-hero--art > .container::before {
  content: ""; position: absolute; inset: -30px 8%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.72) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 72%);
}
.page-hero--art h1 { color: var(--ygs-navy-title); margin-bottom: .25em; }
.page-hero--art p { color: #33404F; }
.page-hero--art .breadcrumb { color: #4A5566; }
@media (max-width: 760px) {
  .page-hero--art { min-height: 0; padding-block: 48px; }
  .page-hero--art .hero-art { max-width: 70%; opacity: .5; }
  .page-hero--art .hero-art--right { display: none; }
  .page-hero--art .hero-art--left:only-of-type, .page-hero--art .hero-art--right:only-of-type { display: block; }
  .page-hero--art > .container::before { inset: -20px 0; background: radial-gradient(ellipse at center, rgba(255,255,255,.8) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 80%); }
}
/* ---------- Supplied page banner pictures (words are part of the picture) ----------
   Shown whole, never cropped, so no words are cut off on any screen. Kept to the
   content width on desktop so the ~955px artwork is barely enlarged and stays sharp. */
.page-banner { background: var(--ygs-cream); padding: 20px 20px 0; }
.page-banner img {
  display: block; width: 100%; max-width: 1140px; height: auto; margin: 0 auto;
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.page-banner + .page-hero { padding-block: clamp(36px, 5vw, 56px); }
@media (max-width: 760px) {
  .page-banner { padding: 0; }
  .page-banner img { border-radius: 0; box-shadow: none; }
}
/* Functional pages (cart, checkout, thank you) keep a quiet banner */
.page-hero { background: linear-gradient(90deg, #F6EEE4 0%, #ECF0F5 60%, #E3EAF2 100%); }
.page-hero::after { display: none; }

/* ---------- Blog search: clear results, obvious way back ---------- */
.search-input input { padding-right: 2.8rem; font-size: 1rem; min-height: 50px; border: 1.5px solid #C9D1DC; }
.search-input input:focus { outline: none; border-color: var(--ygs-slate); box-shadow: 0 0 0 4px rgba(178,194,220,.55); }
.search-input input::-webkit-search-cancel-button { display: none; }
.search-clear-x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ygs-blue-100); color: var(--ygs-ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.search-clear-x:hover { background: var(--ygs-orange); color: #fff; }
.blog-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; justify-content: space-between;
  background: var(--ygs-cream); border: 1px solid var(--ygs-sand-warm); border-radius: var(--radius);
  padding: .8rem 1.1rem; margin-bottom: 24px;
}
.blog-status strong { color: var(--ygs-navy-title); }
.blog-status .btn { min-height: 40px; }
.blog-status.is-filtered { background: #FFF6EE; border-color: #F2CFB4; }
.post-card mark { background: #FCE3CF; color: inherit; padding: 0 .1em; border-radius: 3px; }
.book .book-buy { margin-top: auto; }
.book p + .book-buy, .book h4 + .book-buy { margin-top: .4rem; }
.post-card .match-note { font-size: .82rem; color: var(--ygs-sage); margin: -.3rem 0 .8rem; font-weight: 700; }

/* ---------- Version 5: tighter vertical rhythm (quicker scrolling, sections feel connected) ---------- */
.section { padding-block: clamp(36px, 5vw, 64px); }
.section-head { margin-bottom: clamp(20px, 3vw, 36px); }
.section-head p { margin-bottom: 0; }
.page-hero { padding-block: clamp(32px, 4.5vw, 56px); }
.page-banner { padding-top: 16px; }
.page-banner + .page-hero { padding-block: clamp(22px, 3vw, 36px); }
.page-hero--art { padding-block: clamp(36px, 5vw, 60px); min-height: clamp(220px, 22vw, 300px); }
.article-hero { padding-block: clamp(28px, 4vw, 48px) 0; }
.article { padding-top: calc(40px + clamp(24px, 4vw, 44px)); }
.crisis-panel { padding-block: 32px; }
.footer-grid { padding-block: 48px 32px; }
hr { margin: 1.75rem 0; }
.mt-3 { margin-top: 2rem; }
.share { margin: 1.75rem 0; }
.post-nav { margin-top: 1.75rem; }
@media (max-width: 760px) {
  .page-banner { padding-top: 0; }
  .page-hero--art { min-height: 0; padding-block: 36px; }
}
/* Article without a cover picture (e.g. 30-Day Self-Care Challenge): no gap left for the missing cover */
.article-hero:not(:has(.article-cover)) { padding-bottom: clamp(24px, 3vw, 36px); }
.article-hero:not(:has(.article-cover)) + .article { padding-top: clamp(24px, 3vw, 36px); }

/* ---------- Version 6 ---------- */
/* Buttons inside article text keep their own text colour (it was orange on orange until hovered) */
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose a.btn:hover { color: #fff; }
/* Small button placed at the end of a line of text (About: "Micro Site") */
.btn--inline { margin-left: .5rem; min-height: 32px; padding: .3rem .9rem; font-size: .85rem; vertical-align: middle; }

/* ---------- WordPress (Version 7): blocks look exactly like the Version 6 markup ---------- */
/* Testimonials were <figure>s in Version 6; keep the browser's figure spacing */
.wp-block-group.testimonial { margin: 1em 40px; }
.testimonial blockquote > p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.wp-block-quote > p:last-child { margin-bottom: 0; }
/* Editor-made pictures and buttons */
.wp-block-image { margin: 0 0 1.25rem; }
.wp-block-image img { height: auto; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose .wp-block-embed iframe, .prose iframe { max-width: 100%; }
.wp-block-buttons.ygs-center { justify-content: center; }
/* Outline buttons on the dark next-step band are white (Version 6 set this on each button) */
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: #fff; }
.wp-block-buttons.text-center { justify-content: center; }
.testimonial p.who { margin-bottom: 0; }
