/*
 * qathet Functional Health brand layer.
 * Loaded after Alto's compiled built/screen.css, so it overrides without needing the gulp build.
 * The first section is Amber's original Code Injection CSS, moved here so the theme is self-contained.
 */

/* ===== Brand colors & fonts ===== */
:root {
    --forest: #354936;
    --sage: #78836B;
    --amber: #D39A3A;
    --cream: #F5F1E8;
    --paper: #FBF9F4;
    --line: rgba(53, 73, 54, 0.12);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-label: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ===== Opt-in banners (homepage, Academy) =====
 * Amber's Canva banners rebuilt: her side art as images, her words as real text on the same cream,
 * so the form works and the banner reflows on phones instead of shrinking into unreadable text.
 * Column widths match where each art piece sat in her design (left / text / right). */
.qfh-banner {
    --banner-ink: #284940;              /* her banner's dark green (sampled from the design) */
    --banner-left: 18.8%;
    --banner-right: 39.4%;
    display: grid;
    grid-template-columns: var(--banner-left) minmax(0, 1fr) var(--banner-right);
    min-height: 440px;          /* fallback where clamp() is unsupported */
    min-height: clamp(380px, 26vw, 520px);
    background: #F6F3EF;
    color: var(--banner-ink);
}
.qfh-banner-academy {
    --banner-left: 7.3%;
    --banner-right: 42.4%;
    background: linear-gradient(90deg, #F2F0EC 0%, #EEECE7 70%, #E9E3DA 100%);
}
.qfh-banner-art {
    position: relative;
    overflow: hidden;
}
.qfh-banner-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qfh-banner-art-right img {
    object-position: left center;   /* keep the soft edge against the text */
}
.qfh-banner-body {
    align-self: center;
    max-width: 640px;
    padding: 40px 36px;
    padding: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 44px);
}
.qfh-banner .qfh-eyebrow {
    margin: 0 0 8px;
}
.qfh-banner-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 4.4rem;
    font-size: clamp(3.2rem, 3.3vw, 5rem);
    font-weight: 600;
    line-height: 1.08;
    color: var(--banner-ink);
}
.qfh-banner-academy .qfh-banner-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}
.qfh-banner-sub {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-size: clamp(1.9rem, 1.5vw, 2.3rem);
    line-height: 1.3;
    color: #56675d;
}
.qfh-banner-rule {
    width: 100%;
    max-width: 540px;
    height: 0;
    margin: 0 0 18px;
    border: 0;
    border-top: 4px solid #1f1f1f;
}
.qfh-banner-tagline,
.qfh-banner-line {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-size: clamp(2.3rem, 1.9vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--banner-ink);
}
.qfh-banner-line {
    font-size: 2.2rem;
    font-size: clamp(2rem, 1.6vw, 2.5rem);
}

/* The opt-in form inside the banners */
.qfh-optin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.qfh-optin-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 14px 16px;
    font-size: 1.6rem;
    color: var(--banner-ink);
    background: #fff;
    border: 1px solid #cfd6d0;
    border-radius: 8px;
}
.qfh-optin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--banner-ink);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}
.qfh-optin-button:hover {
    color: #fff;
    opacity: 0.92;
}
.qfh-optin-form.loading .qfh-optin-button {
    opacity: 0.6;
    pointer-events: none;
}
.qfh-optin-msg {
    display: none;
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
}
.qfh-optin-form.success .qfh-optin-row {
    display: none;
}
.qfh-optin-form.success .qfh-optin-success,
.qfh-optin-form.error .qfh-optin-error {
    display: block;
}
.qfh-optin-form.error .qfh-optin-error {
    margin-top: 10px;
}
.qfh-optin-thanks {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

/* Tablet: drop the narrow left art so the words keep their room */
@media (max-width: 1100px) {
    .qfh-banner,
    .qfh-banner-academy {
        grid-template-columns: minmax(0, 1fr) 34%;
    }
    .qfh-banner-art-left {
        display: none;
    }
}
/* Phone: picture strip on top, words and form underneath */
@media (max-width: 720px) {
    .qfh-banner,
    .qfh-banner-academy {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    .qfh-banner-art-right {
        order: -1;
        height: 190px;
    }
    .qfh-banner-home .qfh-banner-art-right img {
        object-position: 72% center;   /* the mug and books */
    }
    .qfh-banner-academy .qfh-banner-art-right {
        height: 240px;
    }
    .qfh-banner-academy .qfh-banner-art-right img {
        object-position: 45% 25%;      /* Amber */
    }
    .qfh-banner-body {
        max-width: none;
        padding: 24px 20px 32px;
    }
    .qfh-optin-button {
        width: 100%;
    }
}

body {
    font-family: var(--font-body);
    color: var(--forest);
    background: var(--cream);
}

/* Logo / site title */
.gh-head-logo {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--forest);
}
.gh-head-logo img {
    height: 84px !important;
    width: auto !important;
    max-height: none !important;
}
.gh-head-brand-wrapper,
.gh-head-brand {
    height: auto !important;
    overflow: visible !important;
}

/* Primary navigation */
.gh-head-menu nav a,
.gh-head-menu {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest);
}

/* ===== Heading hierarchy: distinct primary vs secondary ===== */
h1, .post-title, .page-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--forest);
    letter-spacing: 0.01em;
}
h2 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
}
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--sage);
}

/* Buttons / links use amber sparingly as accent */
.gh-head-btn,
.gh-btn.gh-primary-btn {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}
a {
    color: var(--forest);
}
a:hover {
    color: var(--amber);
}

/* ===== Pillar bar under the header (secondary navigation) ===== */
.gh-category-nav {
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.gh-category-nav-inner ul {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 0;
    margin: 0;
    list-style: none;
}
.gh-category-nav-inner li {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-right: 1px solid var(--amber);
    text-align: center;
}
.gh-category-nav-inner li:last-child {
    border-right: none;
}
.gh-category-nav-inner a {
    font-weight: 700;
    font-size: 13px;
    color: var(--forest);
    letter-spacing: 0.05em;
    text-transform: none;
    line-height: 1.4;
    display: inline-block;
    max-width: 140px;
}
.gh-category-nav-inner a:hover,
.gh-category-nav-inner .nav-current a {
    color: var(--amber);
}
/* On phones five wrapped items with dividers looks broken; scroll sideways instead */
@media (max-width: 767px) {
    .gh-category-nav-inner ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 14px 0;
        -webkit-overflow-scrolling: touch;
    }
    .gh-category-nav-inner li {
        flex: 0 0 auto;
        padding: 0 18px;
    }
}

/* ===== Shared pieces ===== */
.qfh-eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
}
.qfh-btn {
    font-family: var(--font-label);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}
.qfh-btn:hover {
    color: #fff;
    opacity: 0.9;
}
.qfh-empty {
    color: var(--sage);
    font-style: italic;
}

.qfh-cta-heading {
    margin: 0 0 8px;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--forest);
}
.qfh-cta-text {
    margin: 0 0 18px;
    font-size: 1.6rem;
    line-height: 1.5;
}

/* No social accounts set in Ghost -> drop the whole "Follow along" box rather than show it empty */
.qfh-sidebar-box:has(.qfh-social):not(:has(.qfh-social-link)) {
    display: none;
}
.qfh-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.qfh-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    background: var(--paper);
    transition: background 0.2s, color 0.2s;
}
.qfh-social-link:hover {
    background: var(--forest);
    color: #fff;
}
.qfh-social-link .icon,
.qfh-social-link svg {
    width: 18px;
    height: 18px;
}
.qfh-social-name {
    font-family: var(--font-label);
    font-size: 1rem;
    text-transform: uppercase;
}

/* ===== Pillar (tag) pages ===== */
.qfh-pillar-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
.qfh-pillar-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}
.qfh-pillar-title {
    margin: 0 0 20px;
    font-size: 4.8rem;
    line-height: 1.1;
}
.qfh-pillar-intro {
    font-size: 1.9rem;
    line-height: 1.6;
}

.qfh-pillar-layout,
.qfh-twocol {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.qfh-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.qfh-card:first-child {
    padding-top: 0;
}
/* Without an image the text takes the full row */
.qfh-card:not(:has(.qfh-card-image)) {
    grid-template-columns: minmax(0, 1fr);
}
.qfh-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}
.qfh-card-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}
.qfh-card-title a:hover {
    color: var(--amber);
}
.qfh-card-excerpt {
    margin: 0 0 12px;
    font-size: 1.7rem;
    line-height: 1.6;
}
.qfh-card-more {
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.qfh-sidebar {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.qfh-sidebar-box {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--amber);
    border-radius: 6px;
}
.qfh-sidebar-heading {
    margin: 0 0 16px;
    font-size: 2rem;
    color: var(--forest);
}
.qfh-sidebar-topics ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.qfh-sidebar-topics li + li {
    margin-top: 10px;
}
.qfh-sidebar-topics a {
    font-weight: 600;
}
.qfh-sidebar-topics .nav-current a {
    color: var(--amber);
}

/* ===== Single post ===== */
.qfh-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
}
/* Keep lines a readable length even on wide screens */
.qfh-post-main {
    max-width: 780px;
}
.qfh-post-main .article-header {
    margin-bottom: 32px;
}
.qfh-post-main .post-title {
    margin: 12px 0 28px;
    font-size: 4.4rem;
    line-height: 1.15;
}
.qfh-post-image img {
    width: 100%;
    border-radius: 8px;
}
.qfh-post-image figcaption {
    margin-top: 8px;
    font-size: 1.4rem;
    color: var(--sage);
    text-align: center;
}
.qfh-post-content {
    font-size: 1.8rem;
    line-height: 1.7;
}
.qfh-post-content img {
    max-width: 100%;
    height: auto;
}
.qfh-post-main .gh-meta-share {
    margin-top: 40px;
}
.qfh-author {
    margin-top: 48px;
}
.qfh-author .author {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}
.gh-comments {
    margin-top: 48px;
}

/* A portrait photo at full text width filled most of a screen ("huge", Amber, Nov 2026).
   Capping the height leaves landscape photos almost unchanged. */
.gh-content .kg-image-card:not(.kg-width-wide):not(.kg-width-full) img {
    width: auto;
    height: auto;
    max-height: 480px;
}

.qfh-headshot {
    display: block;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    border-radius: 50%;
    object-fit: cover;
}
.qfh-sidebar-booking .qfh-cta-heading {
    font-size: 2.2rem;
}
.qfh-btn-outline {
    background: transparent;
    border: 2px solid var(--forest);
    color: var(--forest);
}
.qfh-btn-outline:hover {
    background: var(--forest);
    color: #fff;
}
.qfh-sidebar-academy .qfh-sidebar-heading {
    margin-bottom: 8px;
}
.qfh-sidebar-list:not(:has(li)) {
    display: none;
}
.qfh-sidebar-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.qfh-sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    line-height: 1.4;
}
.qfh-sidebar-list li:last-child {
    border-bottom: 0;
}

.single-post .post-meta,
.post-meta-tags a {
    font-family: var(--font-label);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.post-meta-tags a {
    color: var(--amber);
}

.qfh-academy {
    margin-top: 56px;
}
.qfh-academy-body {
    padding: 36px 40px;
    background: var(--forest);
    border-radius: 8px;
    color: var(--cream);
}
.qfh-academy-image + .qfh-academy-body {
    border-radius: 0 0 8px 8px;
}
.qfh-academy-image img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.qfh-academy-heading {
    margin: 0 0 10px;
    font-size: 3rem;
    line-height: 1.2;
    color: #fff;
}
.qfh-academy-text {
    margin: 0 0 22px;
    font-size: 1.8rem;
    line-height: 1.55;
    color: var(--cream);
}

.related-title {
    font-family: var(--font-heading);
    color: var(--forest);
}

/* ===== Pages ===== */
.qfh-twocol-page .post-title {
    margin-top: 0;
    font-size: 4.4rem;
}
.qfh-twocol {
    grid-template-columns: 320px minmax(0, 1fr);
}
.qfh-twocol.qfh-twocol-reverse {
    grid-template-columns: minmax(0, 1fr) 320px;
}
.qfh-twocol-main .gh-content {
    font-size: 1.8rem;
    line-height: 1.7;
}
.qfh-about-side {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.qfh-portrait {
    width: 100%;
    border-radius: 8px;
}
.qfh-credentials {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--sage);
}
.qfh-lead {
    font-size: 2rem;
    line-height: 1.5;
}

.qfh-page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 60px var(--gap);
    background-color: var(--forest);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}
/* Dark wash keeps white text readable over any photo she uploads */
.qfh-page-hero:not(.no-image)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 43, 32, 0.45);
}
.qfh-page-hero-inner {
    position: relative;
    max-width: 760px;
}
.qfh-page-hero-title {
    margin: 0;
    font-size: 5.2rem;
    line-height: 1.1;
    color: #fff;
}
.qfh-page-hero-text {
    margin: 16px 0 0;
    font-family: var(--font-label);
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
}
/* Alto adds top padding for its own header spacing; the banner sits flush instead */
.page-template .qfh-page-hero + .content-area {
    padding-top: 60px;
}

.qfh-band {
    margin-top: 80px;
    padding-top: 64px;
    padding-bottom: 64px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    text-align: center;
}
.qfh-band .qfh-cta-heading {
    font-size: 3.4rem;
}

.qfh-courses {
    padding-top: 56px;
}
.qfh-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}
.qfh-course {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.qfh-course-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.qfh-course-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px 28px;
}
.qfh-course-body .qfh-btn {
    margin-top: auto;
}
.qfh-course-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

/* ===== Homepage sections ===== */
/* Sections carry their own spacing; Alto's top padding would double it under the hero */
.home-template .site-content {
    padding-top: 0;
}
.qfh-home-section {
    padding-top: 72px;
    padding-bottom: 72px;
}
.qfh-section-title {
    margin: 0 0 40px;
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
}
.qfh-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.qfh-recent-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.qfh-recent-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.qfh-recent-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 26px;
}
.qfh-recent-title {
    margin: 0 0 10px;
    font-size: 2.3rem;
    line-height: 1.25;
    color: var(--forest);
}
.qfh-recent-body .qfh-card-more {
    margin-top: auto;
}

.qfh-home-academy {
    background: var(--forest);
    color: var(--cream);
}
.qfh-home-academy .gh-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.qfh-home-academy-heading {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}
.qfh-home-academy-text {
    margin: 0 0 24px;
    font-size: 1.9rem;
    line-height: 1.55;
}
.qfh-home-courses {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.qfh-home-course {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: rgba(245, 241, 232, 0.08);
    border: 1px solid rgba(245, 241, 232, 0.2);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
}
.qfh-home-course:hover {
    background: rgba(245, 241, 232, 0.16);
    color: #fff;
}
.qfh-home-course img {
    width: 88px;
    height: 66px;
    border-radius: 4px;
    object-fit: cover;
}
/* With no courses yet, centre the intro on its own */
.qfh-home-academy .gh-inner:not(:has(.qfh-home-courses)) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    text-align: center;
}

.qfh-home-content .gh-content {
    font-size: 1.9rem;
    line-height: 1.7;
}
.qfh-home-content .gh-content h2 {
    margin-top: 2.4em;
}
.qfh-home-content .gh-content > h2:first-child {
    margin-top: 0;
}

/* ===== Footer ===== */
.qfh-foot {
    margin-top: 80px;
    padding-top: 64px;
    padding-bottom: 32px;
    background: var(--forest);
    color: var(--cream);
}
.qfh-foot a {
    color: var(--cream);
}
.qfh-foot a:hover {
    color: var(--amber);
}
/* The booking band already gives pages a strong ending; avoid a double gap above the footer */
.qfh-band + .qfh-foot {
    margin-top: 0;
}
.qfh-foot-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}
.qfh-foot-logo img {
    max-width: 260px;
    border-radius: 4px;
}
.qfh-foot-tagline {
    margin: 16px 0 20px;
    font-family: var(--font-label);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.75);
}
.qfh-foot .qfh-social-link {
    background: transparent;
    border-color: rgba(245, 241, 232, 0.35);
    color: var(--cream);
}
.qfh-foot .qfh-social-link:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}
.qfh-foot-heading {
    margin: 0 0 16px;
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
}
.qfh-foot-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.qfh-foot-col li + li {
    margin-top: 8px;
}
.qfh-foot-col li a {
    font-size: 1.5rem;
}
.qfh-foot-col .qfh-btn {
    margin-bottom: 16px;
}
.qfh-foot-link {
    display: block;
    margin-top: 6px;
    font-size: 1.4rem;
}
.qfh-foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 241, 232, 0.2);
    font-size: 1.3rem;
    color: rgba(245, 241, 232, 0.75);
}
.qfh-foot-legal {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 20px;
}
.qfh-foot-bottom .gh-search {
    color: var(--cream);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .qfh-post-layout,
    .qfh-home-academy .gh-inner,
    .qfh-pillar-layout,
    .qfh-twocol,
    .qfh-twocol.qfh-twocol-reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .qfh-sidebar,
    .qfh-about-side {
        position: static;
    }
    .qfh-post-main {
        max-width: none;
    }
    .qfh-recent-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin: 0 auto;
    }
    .qfh-about-side .qfh-portrait {
        max-width: 360px;
    }
    .qfh-foot-inner {
        grid-template-columns: 1fr 1fr;
    }
    .qfh-foot-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    .qfh-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .qfh-pillar-title,
    .qfh-twocol-page .post-title {
        font-size: 3.6rem;
    }
    .qfh-page-hero {
        min-height: 260px;
    }
    .qfh-page-hero-title {
        font-size: 3.8rem;
    }
    .qfh-academy-body {
        padding: 28px 24px;
    }
    .qfh-foot-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .qfh-post-main .post-title {
        font-size: 3.4rem;
    }
    .qfh-home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .qfh-foot-bottom {
        flex-wrap: wrap;
        gap: 12px;
    }
    .qfh-foot-legal {
        margin: 0;
    }
}

/* ===== Booking blocks: functional medicine first, in-person visits visibly separate ===== */
.qfh-cta-inperson {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.qfh-cta-inperson-label,
.qfh-foot-book-label {
    margin: 0 0 6px;
    font-family: var(--font-label);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.qfh-cta-inperson-label {
    color: var(--sage);
}
.qfh-cta-inperson-text {
    margin: 0 0 14px;
    font-size: 1.5rem;
}
.qfh-foot-book-label {
    color: var(--cream);
}
.qfh-foot-book-text {
    margin: 0 0 14px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: rgba(245, 241, 232, 0.85);
}
.qfh-foot-book-inperson {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 241, 232, 0.2);
}
.qfh-foot-clinic {
    margin: 0 0 14px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: rgba(245, 241, 232, 0.85);
}
.qfh-foot .qfh-foot-btn-outline {
    background: transparent;
    border: 2px solid rgba(245, 241, 232, 0.6);
    color: var(--cream);
}
.qfh-foot .qfh-foot-btn-outline:hover {
    border-color: var(--amber);
    background: var(--amber);
    color: #fff;
}

/* ===== Newsletter signup (sidebar box and footer band) ===== */
.qfh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.qfh-subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qfh-subscribe-input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 14px;
    font-size: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--forest);
}
.qfh-subscribe-button {
    flex: 0 0 auto;
    background: var(--forest);
    color: #fff;
}
.qfh-subscribe-form.loading .qfh-subscribe-button {
    opacity: 0.6;
    pointer-events: none;
}
/* Ghost sets .success / .error on the form after submitting */
.qfh-subscribe-msg {
    display: none;
    margin: 10px 0 0;
    font-size: 1.4rem;
}
.qfh-subscribe-form.success .qfh-subscribe-row {
    display: none;
}
.qfh-subscribe-form.success .qfh-subscribe-success,
.qfh-subscribe-form.error .qfh-subscribe-error {
    display: block;
}
.qfh-foot-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(245, 241, 232, 0.2);
}
.qfh-foot-subscribe-intro p {
    margin: 0;
    font-size: 1.5rem;
    color: rgba(245, 241, 232, 0.85);
}
.qfh-foot-subscribe-intro .qfh-foot-heading {
    margin-bottom: 6px;
}
.qfh-foot-subscribe .qfh-subscribe-form {
    flex: 1 1 360px;
    max-width: 520px;
}
.qfh-foot-subscribe .qfh-subscribe-input {
    border-color: transparent;
}
.qfh-foot-subscribe .qfh-subscribe-button {
    background: var(--amber);
}
.qfh-foot-subscribe .qfh-foot-link {
    margin-top: 0;
}

/* ===== Work With Me (Amber's layout, Nov 2026) ===== */
/* Faint logo behind the opening acupuncture and osteopathy sections */
.qfh-wwm {
    position: relative;
}
.qfh-wwm::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: min(560px, 92%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: url("../images/logo-watermark.png") center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
}
.qfh-wwm > * {
    position: relative;   /* keeps text above the watermark */
}

/* "qathet Functional Health's approach": the old site's photo-beside-list block. The photo fades to
   white on its right, so the block sits on a white panel and the list is set over the faded part. */
.qfh-approach {
    position: relative;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    margin: 4.8rem 0;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}
.qfh-approach-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: left center;
    border-radius: 0;
}
.qfh-approach-text {
    position: relative;
    grid-column: 2;
    padding: 36px 36px 36px 8px;
}
.gh-content .qfh-approach-text h2 {
    margin: 0 0 14px;   /* size and style: the site's h2 label style, like her other headings */
}
.gh-content .qfh-approach-text ul {
    margin: 0;
    padding-left: 1.2em;
}
.gh-content .qfh-approach-text li {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.5;
}
@media (max-width: 760px) {
    .qfh-approach {
        grid-template-columns: minmax(0, 1fr);
    }
    .qfh-approach-photo {
        position: static;
        height: 240px;
        object-position: 18% center;   /* Amber, not the white fade */
    }
    .qfh-approach-text {
        grid-column: 1;
        padding: 20px 20px 28px;
    }
}

/* Functional medicine icon grid (the old site's widget): white circles on sage */
.qfh-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
    margin: 4rem 0;
    padding: 44px 28px;
    background: #E2EDDA;
    border-radius: 8px;
}
.qfh-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.qfh-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    color: #1f2a22;
    background: #fff;
    border-radius: 50%;
}
.qfh-icon-circle svg {
    width: 42px;
    height: 42px;
}
.qfh-icon-label {
    font-size: 1.7rem;
    line-height: 1.3;
    color: #1f2a22;
}
@media (max-width: 640px) {
    .qfh-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 32px 16px;
    }
    .qfh-icon-circle {
        width: 84px;
        height: 84px;
    }
}

/* Members label field: hidden by the browser already; stated so no renderer ever shows it */
.qfh-optin-form input[type="hidden"] {
    display: none;
}
