/* IFABER public design system, shared by every route and CMS publication.
 * This final sheet owns typography and spacing. The few !important declarations
 * deliberately replace conflicting legacy page-level presentation rules only.
 * Functional display states, animation controls and source content stay intact. */
:root {
  --if-width: 1200px;
  --if-gutter: 32px;
  --if-section: 72px;
  --if-gap: 40px;
  --if-radius: 14px;
  --if-paper: #fbf7ee;
  --if-surface: #f1e8df;
  --if-border: #dfd1c7;
  --if-display: Cormorant, Georgia, serif;
  --if-body: Manrope, Arial, sans-serif;
  --if-h1: clamp(42px, 5.4vw, 68px);
  --if-h2: clamp(32px, 3.7vw, 44px);
  --if-h3: clamp(23px, 2.2vw, 28px);
}
body.editorial-site { font-family: var(--if-body); font-size: 16px; line-height: 1.75; }
body.editorial-site .shell {
  width: min(var(--if-width), calc(100% - var(--if-gutter) * 2)) !important;
  margin-inline: auto;
}
body.editorial-site #main .shell.narrow { max-width: 800px !important; }
body.editorial-site #main :is(h1,h2) {
  font-family: var(--if-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
  text-wrap: pretty;
}
body.editorial-site #main h1 { font-size: var(--if-h1) !important; line-height: 1.06 !important; }
body.editorial-site #main h2 { font-size: var(--if-h2) !important; line-height: 1.14 !important; }
body.editorial-site #main h3 {
  font-family: var(--if-body) !important;
  font-size: var(--if-h3) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -.025em !important;
}
body.editorial-site #main :is(.section,.personal-note,.contact-band,.if-about-story,.if-about-method,.if-about-centre,.if-approach-principles,.if-consultation-content,.if-publications-library,.if-story-place) {
  padding-block: var(--if-section) !important;
}
body.editorial-site #main :is(.section-top,.personal-layout,.faq-layout,.contact-layout,.editor-note,.if-about-story-grid,.if-consultation-intro,.ifm-place-grid,.contact-band>.shell) { gap: var(--if-gap); }
body.editorial-site #main :is(.section-top,.section-intro) { margin-bottom: 32px; }
body.editorial-site #main :is(.section-top,.section-intro,.personal-layout,.prose,.area-list,.process,.faq-list,.contact-layout,.contact-band,.if-about-story,.if-about-method,.if-about-centre,.if-approach-cards,.if-consultation-details,.if-publication,.ifm-place) p:not(.eyebrow):not([class*="meta"]):not([class*="status"]):not([class*="address"]):not(.contact-help) {
  font-family: var(--if-body) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  letter-spacing: 0;
}
body.editorial-site #main .lead {
  font-family: var(--if-body) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  letter-spacing: 0 !important;
}
body.editorial-site #main .eyebrow {
  font-family: var(--if-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  letter-spacing: .12em !important;
  margin-bottom: 16px;
}
body.editorial-site #main :is(figcaption,.if-about-meta,.if-publication-meta,.if-contact-address,.contact-help) { font-size: 13px !important; line-height: 1.65 !important; }
body.editorial-site #main .prose { max-width: 68ch; }
body.editorial-site #main .prose :is(p,li) { font-size: 16px; line-height: 1.75; }
body.editorial-site #main .prose h2 { margin-top: 32px; margin-bottom: 16px; font-size: clamp(28px,3vw,36px) !important; }
body.editorial-site #main .prose h2:first-child { margin-top: 0; }
body.editorial-site #main .prose h3 { margin-block: 24px 12px; font-size: 23px !important; }

/* Navigation and repeated actions share the same dimensions everywhere. */
body.editorial-site .site-header.shell {
  width: 100% !important; max-width: none; min-height: 88px;
  padding-inline: max(var(--if-gutter), calc((100% - var(--if-width)) / 2));
  margin-inline: 0; background: var(--if-paper); gap: 24px;
}
body.editorial-site .site-header .navigation { gap: 28px; }
body.editorial-site .site-header .navigation > a:not(.button) { font-size: 14px; }
body.editorial-site .site-header .brand .brand-name.ifaber-wordmark-frame { width: 190px; }
body.editorial-site .button,
body.editorial-site #main .button,
body.editorial-site #main .ifm-place .text-link,
body.editorial-site .if-copy-button {
  min-height: 48px !important;
  border-radius: 8px !important;
  padding: 12px 20px;
  font-family: var(--if-body) !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5;
}
body.editorial-site #main .text-link { min-height: 44px; font-size: 14px !important; line-height: 1.5; }
body.editorial-site #main :is(.actions,.if-story-actions,.ifm-hero-actions) { gap: 12px 24px; margin-top: 24px; }
body.editorial-site #main .if-breadcrumbs { background: var(--if-paper); border: 0; }
body.editorial-site #main .if-breadcrumbs ol { padding-block: 16px 8px !important; font-size: 12px !important; line-height: 1.6; }
body.editorial-site #main .ifm-page-index { display: none; }
body.editorial-site #main [id] { scroll-margin-top: 108px; }

/* Shared introductions. Plain informational routes get the same readable scale. */
body.editorial-site #main > :is(.page-heading,.if-story-heading,.if-approach-hero,.if-about-intro) { padding-block: 28px 48px !important; }
body.editorial-site #main > .page-heading { background: var(--if-surface) !important; border-bottom: 1px solid var(--if-border) !important; }
body.editorial-site #main > .page-heading > .shell,
body.editorial-site #main > .page-heading > .shell.narrow {
  display: block !important; max-width: var(--if-width) !important;
  padding-block: 0 !important; border: 0 !important;
}
body.editorial-site #main > .page-heading h1 { max-width: 22ch; margin: 0 !important; }
body.editorial-site #main > .page-heading .lead { max-width: 64ch !important; margin: 20px 0 0 !important; }
body.editorial-site #main .if-about-hero.shell { width: min(1040px, calc(100% - var(--if-gutter) * 2)) !important; }
body.editorial-site.ifaber-about-page #main .if-about-hero { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; }
body.editorial-site #main .if-about-hero-copy { padding: 0; }
body.editorial-site #main .if-about-hero h1 { margin-bottom: 20px; }
body.editorial-site #main .if-about-hero .lead { max-width: 55ch; }
body.editorial-site #main :is(.if-approach-hero,.if-story-heading) > .shell { gap: var(--if-gap); }
body.editorial-site #main :is(.if-approach-room,.if-story-photo) { width: 100%; max-width: 440px; justify-self: end; }
body.editorial-site #main :is(.if-approach-room,.if-story-photo) > img {
  width: 100%; height: 360px; max-height: none; object-fit: cover; border-radius: var(--if-radius);
}
body.editorial-site #main :is(.if-approach-intro,.if-story-copy) { padding: 0; }
body.editorial-site #main .if-story-copy { max-width: 840px; }
body.editorial-site #main :is(.if-approach-intro,.if-story-copy) h1 { margin-bottom: 20px; }

/* Consistent cards replace isolated border-only tables on secondary routes. */
body.editorial-site #main :is(.if-approach-cards,.if-consultation-details,.if-publication-list,.if-about-credentials .if-detail-list) { gap: 24px; }
body.editorial-site #main :is(.if-approach-cards>article,.if-consultation-details>div,.if-publication,.if-about-credentials .if-detail-list>div,.if-sitemap-grid>section) {
  border-radius: var(--if-radius) !important;
  border: 1px solid var(--if-border);
  padding: 28px !important;
  box-shadow: none !important;
}
body.editorial-site #main :is(.if-consultation-details,.if-about-credentials .if-detail-list) dt {
  font-family: var(--if-body); font-size: 24px !important; line-height: 1.3; letter-spacing: -.025em;
}
body.editorial-site #main :is(.if-consultation-details,.if-about-credentials .if-detail-list) dd { font-size: 16px !important; line-height: 1.75 !important; }
body.editorial-site #main .if-approach-cards>article>span { margin-bottom: 24px; }
body.editorial-site #main .if-approach-profile { margin-top: 40px; padding: 32px; gap: 40px; border-radius: var(--if-radius); }
body.editorial-site #main .if-about-method .section-top>div:last-child { padding: 28px; border-radius: var(--if-radius); }
body.editorial-site #main .if-about-credentials .ifm-inline-credential { margin-bottom: 24px; }
body.editorial-site #main .ifm-place-grid { border-radius: var(--if-radius); }
body.editorial-site #main .ifm-place-grid > figure > img { height: 360px !important; min-height: 0 !important; border-radius: var(--if-radius); }
body.editorial-site.ifaber-about-page #main .ifm-place-grid > figure > img { border-radius: 0; }
body.editorial-site #main .ifm-place-grid > div { min-width: 0; }
body.editorial-site #main :is(.if-story-place,.ifm-place) h2 { margin-bottom: 20px; }
body.editorial-site #main .ifm-place-grid figcaption { font-size: 12px !important; }
body.editorial-site #main .ifm-place p+p { margin-top: 16px; }
body.editorial-site #main:has(>.page-heading) .area-list {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; border: 0;
}
body.editorial-site #main:has(>.page-heading) .area-list > article {
  display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px 16px;
  padding: 28px; background: #fffaf3; border: 1px solid var(--if-border); border-radius: var(--if-radius);
}
body.editorial-site #main:has(>.page-heading) .area-list > article p { grid-column: 2; margin: 0; }
body.editorial-site #main:has(>.page-heading) .process { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; border: 0; }
body.editorial-site #main:has(>.page-heading) .process > article {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--if-surface); border: 1px solid var(--if-border); border-radius: var(--if-radius);
}
body.editorial-site #main:has(>.page-heading) .process > article>span { margin: 0; font-size: 13px; }
body.editorial-site #main .editor-note { margin-top: 40px; padding-top: 32px; }
body.editorial-site #main .if-inline-note { margin-top: 28px; }
body.editorial-site #main:has(>.page-heading) .if-sitemap-grid > section { background: #fffaf3; border: 1px solid var(--if-border); }
body.editorial-site #main .if-sitemap-grid a { font-size: 16px; line-height: 1.75; }
body.editorial-site #main .faq-list { border-top: 0; }
body.editorial-site #main .faq-list details { padding: 0 24px; margin-bottom: 12px; background: #fffaf3; border: 1px solid var(--if-border); border-radius: var(--if-radius); }
body.editorial-site #main .faq-list details[open] { padding-inline: 24px; background: #fffaf3; }
body.editorial-site #main .faq-list summary { padding-block: 22px; font-size: 17px; line-height: 1.5; }
body.editorial-site #main .faq-list details p { padding: 0 24px 22px 0; }

/* Homepage uses the same hierarchy without changing its conversation artwork. */
body.editorial-site.editorial-home #main .ifm-hero h1 { font: 400 20px/1.4 var(--if-body) !important; margin-bottom: 24px; letter-spacing: 0 !important; }
body.editorial-site.editorial-home #main .ifm-hero .hero-line {
  font: 600 var(--if-h1)/1.06 var(--if-display); letter-spacing: -.025em; max-width: 18ch;
}
body.editorial-site.editorial-home #main .ifm-hero-grid { gap: 40px; }
body.editorial-site.editorial-home #main .ifm-hero .hero-note { font-size: 16px; line-height: 1.75; }
body.editorial-site.editorial-home #main :is(.ed-support>.shell,.ed-process>.shell,.ifm-guide>.shell,.reading .section-top,.faq-layout) { gap: var(--if-gap); }
body.editorial-site.editorial-home #main .personal-note .personal-layout { gap: 40px; }
body.editorial-site.editorial-home #main .ed-signature-row { gap: 32px; padding-block: 28px; }
body.editorial-site.editorial-home #main .ed-signature-row .hero-links a { font-size: 14px; }
body.editorial-site.editorial-home #main .ed-signature-row .ifm-portrait figcaption { font-size: 24px !important; line-height: 1.3 !important; }
body.editorial-site.editorial-home #main .ifm-credentials { gap: 32px; }
body.editorial-site.editorial-home #main .ifm-credential-copy h3 { font-size: 20px !important; }
body.editorial-site.editorial-home #main .ifm-credential-copy p:not(.eyebrow) { font-size: 14px !important; }
body.editorial-site.editorial-home #main .ifm-guide-options>a { border-radius: var(--if-radius); }
body.editorial-site #main .if-publication-filters button { min-height: 44px; font-size: 14px; }
body.editorial-site #main [data-if-publication-count] { font-size: 13px; }

/* Contact, form controls and the closing invitation. */
body.editorial-site #main > .contact-band > .shell { gap: var(--if-gap); }
body.editorial-site #main > .contact-band > .shell > div:last-child { border-radius: var(--if-radius); padding: 32px; box-shadow: none; }
body.editorial-site #main > .contact-band .email-link { min-height: 52px; padding-block: 14px; font-size: 16px; }
body.editorial-site #main :is(input,textarea,select) { font-family: var(--if-body); font-size: 16px; line-height: 1.5; border-radius: 8px; }
body.editorial-site #main .contact-details { padding-left: 32px; }
body.editorial-site #main:has(>.page-heading) .contact-layout > div { padding: 28px; border: 1px solid var(--if-border); border-radius: var(--if-radius); background: #fffaf3; }
body.editorial-site .site-footer { padding-block: 40px 28px; }
body.editorial-site .footer-top { padding-bottom: 28px; gap: 24px; }
body.editorial-site .footer-bottom { padding-top: 24px; font-size: 12px; }
body.editorial-site .footer-bottom nav a { font-size: 13px; line-height: 1.6; min-height: 32px; }
body.editorial-site [hidden] { display: none !important; }
body.editorial-site :is(.if-booking-panel,#ifm-start-dialog) { border-radius: var(--if-radius); }
body.editorial-site :is(.if-booking,#ifm-start-dialog) h2 { font: 600 34px/1.15 var(--if-display); letter-spacing: -.025em; }
body.editorial-site .if-booking h3 { font: 400 24px/1.3 var(--if-body); letter-spacing: -.025em; }
body.editorial-site #ifm-start-dialog > p:not(.ifm-dialog-note),
body.editorial-site #ifm-start-dialog .ifm-guide-options>a>p { font: 400 16px/1.75 var(--if-body); }
body.editorial-site #ifm-start-dialog .ifm-dialog-note { font-size: 13px; line-height: 1.65; }
body.editorial-site #ifm-start-dialog .ifm-guide-options>a>strong { font: 400 23px/1.3 var(--if-body); }

@media(max-width:1000px) {
  :root { --if-gutter: 24px; --if-gap: 32px; }
  body.editorial-site .site-header.shell { min-height: 80px; }
  body.editorial-site .site-header .navigation { gap: 0; padding-inline: var(--if-gutter); left: 0; right: 0; top: 100%; width: 100%; }
  body.editorial-site .site-header .navigation>a:not(.button) { font-size: 16px; }
  body.editorial-site.ifaber-about-page #main .if-about-hero { grid-template-columns: minmax(0,1fr) 260px; gap: 32px; }
  body.editorial-site #main :is(.if-approach-room,.if-story-photo)>img { height: 320px; }
  body.editorial-site #main:has(>.page-heading) .process { grid-template-columns: 1fr; }
}
@media(max-width:900px) {
  body.editorial-site #main .if-approach-room { max-width: none; justify-self: stretch; }
}
@media(max-width:760px) {
  :root { --if-gutter: 20px; --if-section: 48px; --if-gap: 28px; --if-h1: clamp(40px,9vw,54px); --if-h2: clamp(32px,7vw,40px); }
  body.editorial-site #main .lead { font-size: 17px !important; }
  body.editorial-site #main > :is(.page-heading,.if-story-heading,.if-approach-hero,.if-about-intro) { padding-block: 24px 36px !important; }
  body.editorial-site #main > .page-heading h1 { max-width: 22ch; }
  body.editorial-site.ifaber-about-page #main .if-about-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
  body.editorial-site #main:has(>.page-heading) .area-list { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body.editorial-site #main:has(>.page-heading) .area-list>article { padding: 24px; }
  body.editorial-site #main :is(.if-approach-cards>article,.if-consultation-details>div,.if-publication,.if-about-credentials .if-detail-list>div,.if-sitemap-grid>section) { padding: 24px !important; }
  body.editorial-site #main .if-approach-profile { gap: 24px; padding: 24px; }
  body.editorial-site #main :is(.if-approach-room,.if-story-photo) { max-width: none; }
  body.editorial-site #main :is(.if-approach-room,.if-story-photo)>img { height: 270px; }
  body.editorial-site #main .ifm-place-grid>figure>img { height: 270px !important; }
  body.editorial-site #main .contact-details { padding-left: 0; }
  body.editorial-site #main > .contact-band > .shell { grid-template-columns: minmax(0,1fr); }
  body.editorial-site #main > .contact-band > .shell > div:last-child { padding: 24px; }
  body.editorial-site #main .faq-list details,
  body.editorial-site #main .faq-list details[open] { padding-inline: 20px; }
  body.editorial-site.editorial-home #main .ed-support .section-intro { position: static; }
  body.editorial-site.editorial-home #main .ed-signature-row .hero-links { gap: 12px; }
  body.editorial-site .site-header .brand .brand-name.ifaber-wordmark-frame { width: 172px; }
  body.editorial-site .footer-bottom nav { gap: 8px 16px; }
}
@media(max-width:380px) {
  :root { --if-gutter: 16px; }
  body.editorial-site .site-header .brand .brand-name.ifaber-wordmark-frame { width: 158px; }
  body.editorial-site #main :is(.if-approach-cards>article,.if-consultation-details>div,.if-publication,.if-about-credentials .if-detail-list>div,.if-sitemap-grid>section) { padding: 20px !important; }
}
@media(prefers-reduced-motion:reduce) {
  body.editorial-site *,body.editorial-site *::before,body.editorial-site *::after { scroll-behavior: auto; }
}
@media print {
  :root { --if-width: 100%; --if-gutter: 0px; --if-section: 24px; }
  body.editorial-site #main .prose { max-width: none; }
  body.editorial-site #main :is(h1,h2) { break-after: avoid; }
  body.editorial-site #main :is(article,figure,details) { break-inside: avoid; }
}

/* Keep separate legal destinations legible in legacy sitemap list items. */
body.editorial-site #main .if-sitemap-grid li > a { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
body.editorial-site #main .if-sitemap-grid li > a + a { margin-top: 12px; }
