@media (min-width: 769px) {
  /* Team page: the founder alone on the first row, everyone else three to a row */
  .team-section .tws-grid--three { grid-template-columns: repeat(12, 1fr); }
  .team-section .tws-grid--three > .swiper-slide { grid-column: span 4; }   /* three to a row under the founder (five people since Helen joined, 30 Nov 2026) */
  .team-section .tws-grid--three > .swiper-slide:first-of-type { grid-column: 1 / -1; width: 50%; justify-self: center; }
}

/* Emma Pott logo: two-line wordmark, sized by height so it fits the 100px header */
.nav-logo--light { width: auto; height: 64px; }
.footer-grid--logo { max-width: 170px; }

/* Articles: headings and lists inside the article body (the reset leaves them unstyled) */
.single-post__content h2 { font-size: 30px; line-height: 1.25; font-family: inherit; }
.single-post__content h3 { font-size: 22px; line-height: 1.3; font-family: inherit; }
.single-post-content .single-post__content h2, .single-post-content .single-post__content h3 { font-family: "Fraunces", Georgia, serif; color: #1e4d4f; }
.single-post__content ul, .single-post__content ol { margin: 0 0 26px 22px; }
.single-post__content ul { list-style: disc; }
.single-post__content ol { list-style: decimal; }
.single-post__content .table-of-contents ul { list-style: none; margin-left: 0; }

/* HTML sitemap page */
.sitemap-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; }
.sitemap-list li { border-top: 1px solid rgba(30, 77, 79, 0.2); }
.sitemap-list a { display: block; padding: 12px 0; color: #1e4d4f; font-family: "Fraunces", serif; font-size: 18px; line-height: 1.35; }
.sitemap-list a:hover { color: #163a3c; }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ───────────────── Emma Pott brand (27 Nov 2026) ─────────────────
   Deep teal #1e4d4f leads, oat #f4eee4 is the base, marigold #e0a33a is the spark (small touches, never text on oat),
   peach #e8c8b4 is the soft secondary, charcoal #2b2628 is body text. Light stone #e6e0d2 for bands.
   The old Anchor colours were replaced in main.css; the rules below are the parts a colour swap cannot do. */
:root { --ep-teal: #1e4d4f; --ep-teal-deep: #163a3c; --ep-oat: #f4eee4; --ep-marigold: #e0a33a; --ep-peach: #e8c8b4; --ep-charcoal: #2b2628; --ep-stone: #e6e0d2; }
body, html { background-color: var(--ep-oat); color: var(--ep-charcoal); }

/* Buttons: sentence case, pill shape (Anchor's were spaced-out capitals with square corners) */
.button { text-transform: none !important; letter-spacing: 0.01em !important; font-size: 0.95rem !important; font-weight: 400 !important; border-radius: 999px !important; }
.button--clay, .button--navy, .service-banner__button-box .button:first-of-type { background-color: var(--ep-teal); border: 1px solid var(--ep-teal); color: var(--ep-oat); }
.button--clay:hover, .button--navy:hover, .button--navy-deep:hover, .button--olive:hover, .button--slate:hover, .button--ink:hover, .button--ink-blue:hover, .button--white:hover, .button--oat:hover, .button--paper:hover,
.service-banner__button-box .button:first-of-type:hover { background-color: var(--ep-teal-deep) !important; border-color: var(--ep-teal-deep) !important; color: var(--ep-oat) !important; }
.button--transparent, .service-banner__button-box .button:nth-of-type(2), .service-section-banner .button { background-color: transparent; border: 1px solid var(--ep-teal) !important; color: var(--ep-teal) !important; }
.button--transparent:hover, .service-banner__button-box .button:nth-of-type(2):hover, .service-section-banner .button:hover { background-color: var(--ep-teal) !important; color: var(--ep-oat) !important; }
.button--sage, .button--clay-light { color: var(--ep-teal); }
.button--sage:hover, .button--clay-light:hover { background-color: var(--ep-teal) !important; border-color: var(--ep-teal) !important; color: var(--ep-oat) !important; }
.button--white { color: var(--ep-teal); }
/* A teal button on a teal panel would vanish: there it is oat, turning marigold under the pointer */
.tws-bg-navy .button, .tws-bg-navy-deep .button, .tws-bg-clay .button, .tws-bg-olive .button, .tws-bg-ink .button, .tws-bg-ink-blue .button, .tws-bg-slate .button, .footer-section .button {
  background-color: var(--ep-oat) !important; border-color: var(--ep-oat) !important; color: var(--ep-teal) !important; }
.tws-bg-navy .button:hover, .tws-bg-navy-deep .button:hover, .tws-bg-clay .button:hover, .tws-bg-olive .button:hover, .tws-bg-ink .button:hover, .tws-bg-ink-blue .button:hover, .tws-bg-slate .button:hover, .footer-section .button:hover {
  background-color: var(--ep-marigold) !important; border-color: var(--ep-marigold) !important; color: var(--ep-charcoal) !important; }

/* Panels: deep teal and peach only */
.tws-bg-ink, .tws-bg-slate { background-color: var(--ep-teal) !important; color: var(--ep-oat); }
.tws-bg-oat, .tws-bg-banner { background-color: var(--ep-stone) !important; }
.tws-bg-sage, .tws-bg-clay-light, .tws-bg-sage .tws-card--title, .tws-bg-sage .tws-card--excerpt, .tws-bg-sage p, .tws-bg-sage h2, .tws-bg-sage h3 { color: var(--ep-teal) !important; }

/* Therapy-type tags: peach with teal text */
.tagrail-section { border-color: rgba(30, 77, 79, 0.18); }
.tagrail-section.logos .logos-slide .tagrail, .tagrail-section.logos .logos-slide .tagrail[class*="tws-bg-"] {
  background-color: var(--ep-peach) !important; border: 1px solid var(--ep-peach) !important; color: var(--ep-teal) !important; font-family: Jost, sans-serif !important; }

/* Marigold touches: the small label above a heading, quote marks, read-more and link underlines, footer labels */
.tws-pre-title { color: var(--ep-teal) !important; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--ep-marigold); }
.tws-bg-navy .tws-pre-title, .tws-bg-navy-deep .tws-pre-title, .tws-bg-clay .tws-pre-title, .footer-section .tws-pre-title { color: var(--ep-oat) !important; }
.banner--title em, .title em { color: var(--ep-teal) !important; font-style: italic; text-decoration: underline; text-decoration-color: var(--ep-marigold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.wysiwyg a:not(.button) { color: var(--ep-teal); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.wysiwyg a:not(.button):hover { text-decoration-color: var(--ep-marigold); }
.tws-bg-navy .wysiwyg a:not(.button), .tws-bg-ink .wysiwyg a:not(.button), .tws-bg-clay .wysiwyg a:not(.button) { color: var(--ep-oat); text-decoration-color: var(--ep-marigold); }
.footer-section { background-color: var(--ep-teal); }
.footer-grid--title, .footer-grid--title.tws-pre-title { color: var(--ep-marigold) !important; border-bottom: 0; }
.footer-section a:hover { text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 3px; }
.footer-section i, .footer-section svg { color: var(--ep-marigold); }

/* Header: oat, teal menu */
.nav-container, .nav-container.scrolled { background-color: var(--ep-oat); }
.primary-navigation a, .nav-container a:not(.button) { color: var(--ep-teal); }
.primary-navigation-wrapper.is-active { background-color: var(--ep-teal); }

/* Headings */
h1, h2, h3, h4, .title { color: var(--ep-teal); }
.tws-bg-navy h1, .tws-bg-navy h2, .tws-bg-navy h3, .tws-bg-navy .title, .tws-bg-ink h2, .tws-bg-ink h3, .tws-bg-ink .title, .tws-bg-clay h2, .tws-bg-clay h3, .tws-bg-clay .title,
.tws-bg-olive h2, .tws-bg-olive h3, .tws-bg-olive .title, .tws-bg-slate h2, .tws-bg-slate h3, .tws-bg-slate .title, .tws-bg-ink-blue h2, .tws-bg-ink-blue h3, .tws-bg-ink-blue .title, .footer-section h2, .footer-section h3, .footer-section .title { color: var(--ep-oat); }
.nav-container .navbar, .nav-container .navbar-menu, .nav-container .container { background-color: var(--ep-oat); }
.wysiwyg p, .wysiwyg li { color: var(--ep-charcoal); }
.tws-bg-navy .wysiwyg p, .tws-bg-navy .wysiwyg li, .tws-bg-ink .wysiwyg p, .tws-bg-clay .wysiwyg p, .tws-bg-olive .wysiwyg p, .tws-bg-slate .wysiwyg p, .tws-bg-ink-blue .wysiwyg p, .footer-section p { color: var(--ep-oat); }
.tws-bg-sage .wysiwyg p, .tws-bg-sage .wysiwyg li { color: var(--ep-teal); }

/* Services mega menu in the brand colours */
.main-nav__item--mega { position: static; }
.mega-nav { background: #fff; border: 1px solid rgba(30, 77, 79, 0.12); box-shadow: 0 24px 48px -16px rgba(30, 77, 79, 0.28); left: auto; right: 20px; width: 760px; }
.mega-nav__inner { padding: 14px; gap: 14px; }
.mega-nav__columns { padding: 14px 10px 10px 14px; gap: 24px; }
.mega-nav__column-title { color: var(--ep-teal); font-family: Jost, sans-serif; letter-spacing: 0.16em; font-weight: 500; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--ep-marigold); }
.mega-nav__link-list a, .nav-container .mega-nav__link-list a { color: var(--ep-charcoal) !important; font-size: 15px; font-weight: 400; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.mega-nav__link-list a:hover, .nav-container .mega-nav__link-list a:hover { color: var(--ep-teal) !important; text-decoration-color: var(--ep-marigold); }
.mega-nav__quick-access { background: var(--ep-teal); flex: 0 0 220px; }
.mega-nav__quick-access-heading { color: var(--ep-marigold); }
.mega-nav__quick-access-link, .nav-container .mega-nav__quick-access-link { color: var(--ep-oat) !important; border-bottom-color: rgba(244, 238, 228, 0.18); }
.mega-nav__quick-access-cta, .nav-container .mega-nav__quick-access-cta { background: var(--ep-oat); color: var(--ep-teal) !important; border-radius: 999px; text-align: center; padding: 10px 14px; margin-top: 16px; font-size: 14px; display: block; }
.mega-nav__quick-access-cta:hover { background: var(--ep-marigold); color: var(--ep-charcoal) !important; }
@media (max-width: 1023px) {
  .mega-nav { position: static; width: 100%; max-width: 100%; right: auto; box-shadow: none; margin: 6px 0 10px; }
  .mega-nav__inner { flex-direction: column; }
  .mega-nav__columns { grid-template-columns: 1fr; padding: 10px; gap: 16px; }
  .mega-nav__quick-access { flex: 0 0 auto; }
}
@media (max-width: 1023px) { .primary-navigation-wrapper.is-active { max-height: calc(100vh - 100px); overflow-y: auto; } }
/* Mega menu: an invisible bridge between "Services" and the panel, so moving the pointer down does not close it */
@media (min-width: 1024px) {
  .main-nav__item--mega > .main-nav__link { position: relative; }
  .main-nav__item--mega:hover > .main-nav__link::after, .main-nav__item--mega.is-open > .main-nav__link::after { content: ''; position: absolute; left: -40px; right: -40px; top: 100%; height: 60px; }
  .mega-nav::before { content: ''; position: absolute; left: 0; right: 0; top: -44px; height: 44px; }
}
.form-row__hint { font-size: 14px; color: var(--ep-charcoal); opacity: .8; margin: 2px 0 8px; }
.ep-jump { font-size: 15px; padding: 12px 16px; background: var(--ep-stone); border-radius: 10px; }
.service-banner--text em, .banner--text em { font-style: italic; }

.cards-section__title { margin-bottom: 28px; }
/* Homepage tagline under the name: italic, with the marigold underline */
.banner.fullimage .banner--text { margin-bottom: 26px; }
.banner.fullimage .banner--text em { font-family: Fraunces, serif; font-style: italic; font-size: clamp(18px, 2.2vw, 26px); color: var(--ep-charcoal); padding-bottom: 6px; border-bottom: 3px solid var(--ep-marigold); }
/* Tables in page text (privacy policy) */
.wysiwyg table.ep-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.wysiwyg table.ep-table th { text-align: left; font-family: Jost, sans-serif; font-weight: 500; color: var(--ep-teal); border-bottom: 2px solid var(--ep-marigold); padding: 10px 14px 10px 0; }
.wysiwyg table.ep-table td { border-bottom: 1px solid rgba(30, 77, 79, 0.18); padding: 12px 14px 12px 0; vertical-align: top; color: var(--ep-charcoal); }
.wysiwyg table.ep-table td:first-child { width: 38%; font-weight: 500; }

/* Cookie choice bar, reopen button and settings panel */
.ep-cookies[hidden], .ep-cookie-tab[hidden], .ep-cookie-panel[hidden] { display: none !important; }
.ep-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 820px; margin: 0 auto; background: var(--ep-teal); color: var(--ep-oat); border-radius: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 18px 40px -14px rgba(22, 58, 60, 0.6); font-family: Jost, sans-serif; }
.ep-cookies__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ep-oat); flex: 1; }
.ep-cookies__text a { color: var(--ep-oat); text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 3px; }
.ep-cookies__buttons { display: flex; gap: 10px; flex: 0 0 auto; align-items: center; }
.ep-cookies__btn { border-radius: 999px; padding: 10px 20px; font-family: Jost, sans-serif; font-size: 15px; line-height: 1.2; cursor: pointer; border: 1px solid var(--ep-oat); }
.ep-cookies__btn--no { background: transparent; color: var(--ep-oat); }
.ep-cookies__btn--yes { background: var(--ep-oat); color: var(--ep-teal); }
.ep-cookies__btn--link { background: transparent; border-color: transparent; color: var(--ep-oat); text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 3px; padding: 10px 6px; }
.ep-cookies__btn:hover { background: var(--ep-marigold); border-color: var(--ep-marigold); color: var(--ep-charcoal); }
@media (max-width: 700px) { .ep-cookies { flex-direction: column; align-items: stretch; } .ep-cookies__buttons { justify-content: flex-end; flex-wrap: wrap; } }

.ep-cookie-tab { position: fixed; left: 16px; bottom: 16px; z-index: 190; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ep-teal); color: var(--ep-oat); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(22, 58, 60, 0.7); transition: background .15s, color .15s; }
.ep-cookie-tab:hover, .ep-cookie-tab:focus-visible { background: var(--ep-marigold); color: var(--ep-charcoal); }
@media print { .ep-cookie-tab, .ep-cookies, .ep-cookie-panel { display: none !important; } }

html.ep-cookie-open { overflow: hidden; }
.ep-cookie-panel { position: fixed; inset: 0; z-index: 300; background: rgba(43, 38, 40, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Jost, sans-serif; }
.ep-cookie-panel__box { position: relative; background: var(--ep-oat); color: var(--ep-charcoal); border-radius: 18px; width: 100%; max-width: 680px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 30px 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.ep-cookie-panel__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ep-teal); cursor: pointer; }
.ep-cookie-panel__title { font-family: Fraunces, serif; font-size: 28px; color: var(--ep-teal); margin: 0 0 8px; }
.ep-cookie-panel__intro, .ep-cookie-panel__note { font-size: 15px; line-height: 1.55; margin: 0 0 18px; color: var(--ep-charcoal); }
.ep-cookie-panel__intro a { color: var(--ep-teal); text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 3px; }
.ep-cookie-panel__note { font-size: 14px; margin-top: 16px; }
.ep-cookie-cat { border-top: 1px solid rgba(30, 77, 79, 0.2); padding: 16px 0; }
.ep-cookie-cat__head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.ep-cookie-cat__title { font-family: Jost, sans-serif; font-size: 17px; font-weight: 500; color: var(--ep-teal); margin: 0 0 4px; }
.ep-cookie-cat__text { font-size: 14.5px; line-height: 1.5; margin: 0; color: var(--ep-charcoal); }
.ep-cookie-cat__more { margin-top: 10px; font-size: 14px; }
.ep-cookie-cat__more summary { cursor: pointer; color: var(--ep-teal); text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 3px; }
.ep-cookie-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
.ep-cookie-table th { text-align: left; font-weight: 500; color: var(--ep-teal); border-bottom: 1px solid rgba(30, 77, 79, 0.3); padding: 6px 8px 6px 0; }
.ep-cookie-table td { border-bottom: 1px solid rgba(30, 77, 79, 0.12); padding: 8px 8px 8px 0; vertical-align: top; }
.ep-cookie-table code { font-size: 12.5px; background: var(--ep-stone); padding: 1px 5px; border-radius: 4px; color: var(--ep-charcoal); }
.ep-switch { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; }
.ep-switch.is-locked { cursor: default; }
.ep-switch input { position: absolute !important; opacity: 0 !important; width: 52px; height: 30px; margin: 0; cursor: inherit; appearance: auto; visibility: visible; }
.ep-switch__track { width: 52px; height: 30px; border-radius: 999px; background: #b9b2a6; position: relative; transition: background .15s; }
.ep-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ep-switch input:checked + .ep-switch__track { background: var(--ep-teal); }
.ep-switch input:checked + .ep-switch__track::after { transform: translateX(22px); }
.ep-switch input:focus-visible + .ep-switch__track { outline: 2px solid var(--ep-marigold); outline-offset: 2px; }
.ep-switch.is-locked .ep-switch__track { opacity: .55; }
.ep-switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ep-cookie-panel__buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.ep-cookie-panel__buttons .ep-cookies__btn { border-color: var(--ep-teal); }
.ep-cookie-panel__buttons .ep-cookies__btn--no { color: var(--ep-teal); }
.ep-cookie-panel__buttons .ep-cookies__btn--yes { background: var(--ep-teal); color: var(--ep-oat); }
@media (max-width: 600px) { .ep-cookie-panel__box { padding: 24px 18px 18px; } .ep-cookie-table th:nth-child(2), .ep-cookie-table td:nth-child(2) { display: none; } }

/* Service pages on a phone: the theme only had the desktop layout (four narrow columns and a half-width text column) */
@media (max-width: 1023px) {
  .service-banner { padding: 48px 20px; }
  .service-banner-box { max-width: 100%; }
  .content-section-box { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .service-banner--title { font-size: 2.1rem; line-height: 1.15; }
  .service-details-box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .how-it-runs-section .service-details-box { grid-template-columns: 1fr; gap: 22px; }
  .service-details-box--detail { font-size: 1.05rem; line-height: 1.35; }
  .ep-jump { line-height: 2; }
}
/* Newsletter pop-up (Flodesk): its button label was dark on dark */
.fd-btn, .fd-btn * { color: #fff !important; }

/* Instagram strip above the footer */
.ep-instagram { background: var(--ep-stone); padding: 56px 20px 48px; }
.ep-instagram__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ep-instagram__title { margin: 0 !important; }
.ep-instagram__handle { color: var(--ep-teal); font-family: Jost, sans-serif; text-decoration: underline; text-decoration-color: var(--ep-marigold); text-underline-offset: 4px; }
.ep-instagram #sb_instagram { padding-bottom: 0 !important; }
.ep-instagram #sb_instagram .sbi_photo { border-radius: 10px; overflow: hidden; }
