/* Colours, fonts and sizes are overridden per client from content.json "style" */
:root {
  --theme: #4A707C;
  --accent: #A4BCB9;
  --dark: #00042A;
  --text: #666666;
  --heading: #4A707C;
  --bg: #FFFFFF;
  --surface: #F7F7F7;
  --line: #E3E3E3;
  --menu: #A4BCB9;
  --menu-text: #FFFFFF;
  --menu-selected: #4A707C;
  --pager-on: #A4BCB9;
  --pager-off: #666666;
  --radius: 12px;
  --gap: 8px;
  --font: Arial, Helvetica, sans-serif;
  --menu-font: 'Roboto', Arial, sans-serif;
  --fs-hub: 33px;
  --fs-list-title: 25px;
  --fs-list-text: 21px;
  --fs-node: 23px;
  --fs-detail-title: 33px;
  --fs-detail-text: 21px;
  --fs-detail-sub: 21px;
  --fs-slide-title: 33px;
  --fs-slide-text: 17px;
  --fs-widget: 25px;
  --fs-menu: 18px;
  --slide-btn-bg: #FFFFFF;
  --slide-btn-text: #A4BCB9;
  --news-bg: #4A707C;
  --news-text: #FFFFFF;
  --news-btn: #00042A;
  --social-bg: #A4BCB9;
  --social-icon: #FFFFFF;
  --top: calc(58px + env(safe-area-inset-top));
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}
img { max-width: 100%; display: block; }
a { color: var(--theme); }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--top);
  padding: env(safe-area-inset-top) 6px 0;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  background: var(--theme); color: #fff;
}
.topbar .brand { grid-column: 2; justify-self: center; display: flex; height: 100%; align-items: center; color: #fff; text-decoration: none; }
.topbar .brand img { max-height: 32px; width: auto; }
.topbar #back-btn, .topbar #menu-btn { grid-column: 1; grid-row: 1; }
.topbar #action-btn { grid-column: 3; color: #fff; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: none; color: inherit;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
}
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(84vw, 340px); z-index: 50;
  background: var(--menu); color: var(--menu-text);
  transform: translateX(-102%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
.drawer-head { padding: 22px 15px 14px; }
.drawer-head img { max-height: 70px; width: auto; }
.drawer-list { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.drawer-list a {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 15px;
  color: var(--menu-text); text-decoration: none;
  font-family: var(--menu-font); font-weight: 500; font-size: var(--fs-menu);
}
.drawer-list a svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-list a.active { background: #fff; color: var(--menu-selected); }
.drawer-foot { padding: 14px 15px calc(18px + env(safe-area-inset-bottom)); font-family: var(--menu-font); font-size: 13px; border-top: 1px solid rgba(255,255,255,.35); }
.drawer-foot .shortcuts { display: flex; gap: 6px; margin: 0 0 8px -10px; }
.drawer-foot .shortcuts a { color: var(--menu-text); }
.drawer-foot a.flink { display: block; color: var(--menu-text); text-decoration: none; padding: 5px 0; }
.drawer-foot .copy { opacity: .85; margin: 4px 0 6px; color: #E3E3E3; }

/* ---------- layout ---------- */
main { padding-top: var(--top); min-height: 100vh; outline: none; }
.page { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; }
.wrap { max-width: 760px; margin: 0 auto; padding: var(--gap) var(--gap) 40px; }
.page-title { font-weight: 400; font-size: var(--fs-detail-title); line-height: 1.15; margin: 6px 0 16px; color: var(--heading); }
.section-title { font-weight: 400; font-size: var(--fs-widget); margin: 24px 16px 10px; color: var(--heading); }
.muted { color: var(--text); }
.loading { display: grid; place-items: center; height: 60vh; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--theme); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- home slideshow: one big rounded card filling the screen ---------- */
.slides {
  position: relative; overflow: hidden; background: var(--accent);
  margin: var(--gap); border-radius: var(--radius);
  height: calc(100vh - var(--top) - (2 * var(--gap)));
  height: calc(100svh - var(--top) - (2 * var(--gap)));
  min-height: 320px;
}
.slides-track { display: flex; height: 100%; transition: transform .45s ease; }
.slide { position: relative; flex: 0 0 100%; height: 100%; color: #fff; text-decoration: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
.slide .cap p { margin: 0; font-family: var(--font); font-size: var(--fs-slide-text); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.slide .cap strong { display: inline-flex; align-items: center; justify-content: center; min-width: 146px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--slide-btn-bg); color: var(--slide-btn-text); font-family: var(--button-font, var(--menu-font)); font-weight: 400; font-size: 18px; text-transform: uppercase; letter-spacing: normal; }
.slides .arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(0,0,0,.2); }
.slides .arrow.prev { left: 8px; } .slides .arrow.next { right: 8px; }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--pager-off); opacity: .7; cursor: pointer; }
.dots button.on { background: var(--pager-on); opacity: 1; }

/* ---------- hub: GoodBarber "une grid" (feature, then pairs) ---------- */
.ugrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap); max-width: 760px; margin: 0 auto; }
.utile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; aspect-ratio: 1.05; }
.utile.feature { grid-column: 1 / -1; aspect-ratio: 5 / 3; }
.utile.wide { grid-column: 1 / -1; aspect-ratio: 5 / 2; }
.utile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.utile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 45%, rgba(0,0,0,.18)); }
.utile span {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; padding: 14px 16px;
  font-size: var(--fs-hub); line-height: 1.1; color: #fff;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.utile:not(.feature):not(.wide) span { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }

/* ---------- hub: plain list ---------- */
.nlist { list-style: none; margin: 0; padding: 0 16px; max-width: 760px; margin: 0 auto; }
.nlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--heading); text-decoration: none; font-size: var(--fs-node); }
.nlist a::after { content: '›'; font-size: 30px; line-height: 1; color: var(--accent); }

/* ---------- article lists: GoodBarber "visuels" cards ---------- */
.vcard { display: block; text-decoration: none; margin: 0 0 calc(var(--gap) * 2); }
.vcard .ph { aspect-ratio: 1.64; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard h3 { margin: 10px 4px 2px; font-size: var(--fs-list-title); font-weight: 400; color: var(--heading); line-height: 1.2; }
.vcard p { margin: 0 4px; font-size: calc(var(--fs-list-text) * .62); color: var(--text); }

/* small cards (cross-links) */
.list-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; background: var(--accent); }
.list-row h3 { margin: 0; font-size: 18px; font-weight: 400; color: var(--heading); }
.list-row p { margin: 3px 0 0; font-size: 13px; }

/* ---------- home: team banner carousel ---------- */
.banners { display: flex; gap: var(--gap); overflow-x: auto; padding: 0 var(--gap) 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banners > .banner { position: relative; flex: 0 0 calc(100% - 2 * var(--gap)); max-width: 520px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; color: #fff; text-decoration: none; background: var(--accent); }
.banners > .banner img { width: 100%; height: 100%; object-fit: cover; }
.banners > .banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.5)); }
.banners > .banner span { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; text-align: center; font-size: var(--fs-widget); }

/* ---------- photo sections ---------- */
/* GoodBarber "instagram": one large square photo per row, name underneath */
.feed { max-width: 560px; margin: 0 auto; padding: var(--gap) var(--gap) 30px; }
.feed button { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; margin: 0 0 4px; }
.feed .ph { aspect-ratio: 1; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--line); }
.feed .ph img { width: 100%; height: 100%; object-fit: cover; }
.feed h3 { margin: 0; padding: 26px 8px 30px; font-weight: 400; font-size: var(--fs-widget); color: var(--heading); line-height: 1.2; }
.insta { display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr); }
.pin { columns: 2; column-gap: var(--gap); padding: var(--gap); }
.insta button, .pin button { border: 0; padding: 0; background: var(--line); cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.insta button { aspect-ratio: 1; }
.insta img { width: 100%; height: 100%; object-fit: cover; }
.pin button { margin: 0 0 var(--gap); border-radius: var(--radius); break-inside: avoid; }
.pin img { width: 100%; height: auto; }

/* ---------- article detail ---------- */
.article-hero { width: 100%; aspect-ratio: 1.64; object-fit: cover; background: var(--line); }
.detail-head { text-align: center; }
.detail-head .page-title { margin-bottom: 8px; }
.detail-head .sub { color: var(--accent); font-size: var(--fs-detail-sub); margin: 0 0 8px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0 18px; }
.prose { font-size: var(--fs-detail-text); color: var(--heading); line-height: 1.45; }
.prose a { color: var(--accent); }
.prose img { height: auto; border-radius: 10px; margin: 0 auto; }
.prose h2 { font-weight: 400; font-size: calc(var(--fs-detail-text) * 1.15); color: var(--heading); margin: 22px 0 6px; }
.prose h3 { font-size: var(--fs-detail-text); margin: 18px 0 4px; }
.prose p { margin: 0 0 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.prose video { width: 100%; border-radius: 10px; }
.prose > div:first-child > a > img { display: none; } /* GoodBarber repeats the hero image inside the body */

/* about: banner image then centred text */
.about-banner { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 30px; border: 0; background: var(--theme); color: #fff; font-size: 18px; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--theme); box-shadow: inset 0 0 0 1.5px var(--theme); }
.btn.dark { background: var(--dark); }
.btn.block { width: 100%; }
.stack { display: grid; gap: 10px; }
.field { width: 100%; min-height: 46px; padding: 0 16px; border-radius: 30px; border: 1px solid #CCCCCC; background: #fff; font: inherit; font-size: 16px; color: #333; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--dark); }
.panel { margin: var(--gap); padding: 22px 18px; border-radius: var(--radius); background: var(--surface); }
.panel h2 { margin: 0 0 12px; font-weight: 400; font-size: var(--fs-widget); color: var(--heading); }
.panel.news { background: var(--news-bg); color: var(--news-text); }
.panel.news h2 { color: var(--news-text); text-transform: uppercase; letter-spacing: .04em; font-size: 19px; }
.panel.news .check { color: var(--news-text); }
.panel.news .check a { color: var(--news-text); }
.panel.news .btn { background: var(--news-btn); }
.note { font-size: 14px; padding: 14px 16px; border-radius: 12px; background: #FFF8E6; color: #6A5413; margin: 0 0 16px; }

.social { display: flex; gap: 18px; justify-content: center; padding: 18px; margin: var(--gap) 0 0; background: var(--social-bg); }
.social a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--social-icon); }
.social svg { width: 26px; height: 26px; fill: currentColor; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 18px 40px; font-size: 13px; }
.legal-links a { color: var(--text); }

/* ---------- embedded web page (only when a section is set to open inside the app) ---------- */
.webview { position: fixed; inset: var(--top) 0 0 0; }
.webview iframe { width: 100%; height: 100%; border: 0; }
.leaving { display: grid; place-items: center; gap: 14px; text-align: center; min-height: 60vh; padding: 24px; }

/* ---------- loyalty ---------- */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 20px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--accent); display: grid; place-items: center; color: #fff; }
.stamp.on { border: 0; background: var(--theme); }
.progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.94); display: grid; place-items: center; color: #fff; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; }
.lightbox .lb-caption { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; font-size: 17px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 6px; }
.lightbox .lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.lightbox .lb-prev { position: absolute; left: 6px; }
.lightbox .lb-next { position: absolute; right: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: #222; color: #fff; padding: 12px 18px; border-radius: 30px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

@media (min-width: 900px) {
  .slides { max-width: 1200px; margin-left: auto; margin-right: auto; }
  .slides .arrow { display: grid; }
  .insta { grid-template-columns: repeat(5, 1fr); }
  .pin { columns: 4; }
  .ugrid { grid-template-columns: 1fr 1fr; }
}

/* ======================================================================
   Added for GoodBarber tab-bar apps and widgets (v1.3). Everything below
   only applies when content.json asks for it, so drawer apps are unchanged.
   ====================================================================== */
.topbar { background: var(--top-bg, var(--theme)); color: var(--top-icon, #fff); }
.topbar .brand img { max-height: var(--logo-h, 32px); }
.topbar .icon-btn:focus-visible { outline-color: currentColor; }

/* GoodBarber PNG icons, tinted with the text colour */
.gbicon { display: block; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* ---------- tab bar ---------- */
body.has-tabbar { --tabspace: 64px; }
body.has-tabbar.floating-tabs { --tabspace: 81px; }
body.has-tabbar main { padding-bottom: calc(var(--tabspace) + 12px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom);
  background: var(--tab-bg, #fff); border-top: 1px solid var(--tab-border, var(--line)); }
.floating-tabs .tabbar { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 0; max-width: 560px; margin: 0 auto;
  border: 1px solid var(--tab-border, #fff); border-radius: 999px; box-shadow: 0 3px 6px rgba(0,0,0,.2); }
.tabs-flat .tabbar { box-shadow: none; }
.tabbar ul { list-style: none; margin: 0; padding: 0; display: flex; height: 65px; }
.tabbar li { flex: 1; min-width: 0; }
.tabbar a, .tabbar button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: none; padding: 0 2px; cursor: pointer; text-decoration: none; color: var(--tab-icon, #96979B); font: inherit; }
.tabbar span { font-family: 'Noto Sans', 'Droid Sans', var(--font); font-size: var(--tab-fs, 12px); line-height: 1.17; color: var(--tab-text, #96979B);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 1px; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.tabbar .active { color: var(--tab-icon-on, var(--theme)); }
.tabbar .active span { color: var(--tab-text-on, var(--theme)); }

/* the "more" sheet */
.tabsheet { position: fixed; inset: 0; z-index: 34; overflow-y: auto; padding: calc(72px + env(safe-area-inset-top)) 16px calc(var(--tabspace) + 40px);
  background: color-mix(in srgb, var(--sheet-bg, #F7F7F7) 60%, transparent); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.tabsheet ul { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 6px; max-width: 560px; }
.tabsheet a { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 15px 20px; border-radius: 999px; background: var(--sheet-cell, #F7F7F7);
  color: var(--sheet-icon, var(--theme)); text-decoration: none; }
.tabsheet a span { font-family: var(--sheet-ff, var(--font)); font-size: var(--sheet-fs, 18px); color: var(--sheet-text, var(--theme)); line-height: 1.2; }
.tabsheet .sheet-close { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 10px; width: 44px; height: 44px; border: 0; background: none;
  display: grid; place-items: center; color: var(--sheet-close, var(--theme)); cursor: pointer; }
.tabsheet .sheet-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.has-tabbar .toast { bottom: calc(var(--tabspace) + 28px + env(safe-area-inset-bottom)); }

/* ---------- slideshow: titles, dimming, measured buttons ---------- */
.slides { height: calc(100svh - var(--top) - (2 * var(--gap)) - var(--tabspace, 0px)); }
.slide .cap { z-index: 1; }
.slides.dimmed .slide::after, .carousel .card::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,var(--dim, 0)); }
.slide .cap h3, .carousel .cap h3 { margin: 0; font-weight: 400; line-height: normal; font-family: var(--st-ff, var(--font)); font-size: var(--st-fs, var(--fs-slide-title)); color: var(--st-c, #fff); }
.slides.titled .slide .cap { gap: 0; }
.slides.titled .slide .cap p { text-shadow: none; font-family: var(--sx-ff, var(--font)); font-size: var(--sx-fs, var(--fs-slide-text)); color: var(--sx-c, #fff); font-style: var(--sx-fst, normal); line-height: normal; }
.slides.titled .slide .cap strong { margin-top: 19px; }
.slide .cap strong, .carousel .cap strong { min-width: var(--slide-btn-w, 146px); height: var(--slide-btn-h, 46px); border: 1px solid var(--slide-btn-border, transparent); }

/* ---------- GoodBarber small carousel ---------- */
.carousel { padding: 0; }
.carousel-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0; }
/* side margins (not padding) so the cards' % width is of the whole screen; the spacer keeps the last card centred */
.carousel .card:first-child { margin-left: calc((100% - var(--card-w, 80%)) / 2); }
.carousel-track::after { content: ''; flex: 0 0 calc((100% - var(--card-w, 80%)) / 2 - 10px); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .card { position: relative; flex: 0 0 var(--card-w, 80%); height: var(--card-h, 183px); overflow: hidden; scroll-snap-align: center; text-decoration: none; color: #fff; background: var(--accent); }
.carousel .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel .cap { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; text-align: center; }
.carousel .cap h3 { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel .cap p { margin: 4px 0 0; font-family: var(--sx-ff, var(--font)); font-size: var(--sx-fs, 16px); color: var(--sx-c, #fff); }
.carousel .cap strong { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px;
  background: var(--slide-btn-bg); color: var(--slide-btn-text); font-family: var(--button-font, var(--menu-font)); font-weight: 400; font-size: 15px; text-transform: uppercase; }

/* ---------- home text widget ---------- */
.textw { margin: 0; }
.textw h2 { margin: 0; font-weight: 400; line-height: normal; }
.textw p { margin: 16px 0 0; line-height: normal; }

/* ---------- About pages (GoodBarber classic / banner templates) and Form pages ---------- */
.about2 { max-width: 760px; margin: 0 auto; background: #fff; min-height: calc(100svh - var(--top)); }
.about2 .ab-title { margin: 0; padding: 15px 10px 0; font-weight: 400; line-height: normal; }
.about2 .prose { padding: 30px 10px 30px; line-height: normal; }
.about2 .prose p { margin: 0 0 10px; }
.about2 .prose ul { margin: 0 0 10px; padding-left: 30px; }
.about2 .prose li p { margin: 0 0 10px; }
.about2 .prose img { border-radius: 0; }
.about2.classic .prose > div:first-child > a > img { display: block; }
.about2.classic .prose > div:first-child { margin: 20px 0 24px; }
.gbform .prose { padding-top: 20px; }
.about2 .prose > br { display: none; } /* GoodBarber's clearing <br>s between blocks add no space there */
.about2 .ab-banner { height: 250px; overflow: hidden; }
.about2 .ab-banner img { width: 120%; max-width: none; height: 300px; margin-left: -10%; object-fit: cover; } /* GoodBarber draws it 1.2x, top-aligned */
.prose a[data-button] { display: inline-block; text-decoration: none; line-height: 1.15; font-size: inherit; }
.prose p:has(> a[data-button]) { margin: 20px 0; }

.gbform .fform { padding: 20px 10px 40px; }
.gbform .frow { margin: 0 0 27px; }
.gbform .ab-title { padding-top: 10px; }
.gbform .frow label { display: block; margin: 0 0 4px; font-size: 14px; color: #000; line-height: normal; }
.gbform .ffield { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid #96979B; border-radius: 4px; background: #E5E5E5; font: inherit; font-size: 16px; color: #000; }
.gbform textarea.ffield { padding: 16px; min-height: 120px; }
.gbform .fsend { display: block; width: calc(100% - 34px); height: 46px; margin: 48px auto 0; border: 0; border-radius: 999px; background: #666;
  color: #fff; font-family: var(--button-font, var(--menu-font)); font-size: 18px; text-transform: uppercase; cursor: pointer; }
.gbform .fsend:disabled { opacity: .6; }

/* une grid: with no margin GoodBarber still keeps a 2px line between tiles; title placement from the template */
.ugrid { gap: max(var(--gap), 2px); }
.ugrid[class*=" t-"] .utile span { font-family: var(--ht-ff, var(--font)); font-size: var(--ht-fs, var(--fs-hub)); color: var(--ht-c, #fff); line-height: normal; padding: 14px; }
.ugrid[class*=" t-bottom"] .utile span { padding: 0 14px 16px; }
.ugrid[class*=" t-bottom"] .utile span { top: auto; bottom: 0; }
.ugrid[class*="-center"] .utile span { text-align: center; }
.ugrid[class*=" t-bottom"] .utile::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.ugrid[class*=" t-"] .utile:not(.feature):not(.wide) span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; }

/* une grid with no margin (GoodBarber "flush"): wider feature tile and near-square tiles, as measured */
.ugrid.flush { padding: 0; }
.ugrid.flush .utile { border-radius: 0; aspect-ratio: 193 / 195; }
.ugrid.flush .utile.feature { aspect-ratio: 388 / 235; }
.ugrid.flush .utile.wide { aspect-ratio: 388 / 195; }
.topbar .back-btn svg { width: 22px; height: 22px; }
/* Pinterest galleries keep a 10px gutter even with no margin */
.flush .pin { column-gap: 10px; padding: 10px; }
.flush .pin button { margin-bottom: 10px; }
.pin.masoned { columns: auto; display: flex; align-items: flex-start; gap: var(--gap); }
.flush .pin.masoned { gap: 10px; }
.pin.masoned .pin-col { flex: 1; min-width: 0; }
/* GoodBarber sets the section's text font on each paragraph, so styles pasted on a parent (e.g. a list item) don't reach it */
.about2 .prose p, .about2 .prose li { font-family: var(--tx-ff, inherit); font-size: var(--tx-fs, inherit); color: var(--tx-c, inherit); }

/* ---------- little swipe menu (GoodBarber icon rail) ---------- */
.little-menu .drawer { width: var(--rail-w, 110px); background: var(--rail-bg, var(--menu)); }
.little-menu .drawer.open { box-shadow: none; }
.little-menu .drawer-head { display: none; }
.little-menu .drawer::before { content: ''; display: block; height: env(safe-area-inset-top); background: var(--rail-head, transparent); margin-top: calc(-1 * env(safe-area-inset-top)); }
.little-menu .drawer-list { padding: 0; }
.little-menu .drawer-list a, .little-menu .drawer-foot a.flink {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: var(--rail-item-h, 84px); padding: 6px 4px; text-align: center;
  font-family: var(--rail-ff, var(--menu-font)); font-weight: 400; font-size: var(--rail-fs, 14px); line-height: 18px; color: var(--rail-text, var(--menu-text));
}
.little-menu .drawer-list a .gbicon, .little-menu .drawer-foot a.flink .gbicon { width: 26px; height: 26px; background: var(--rail-icon, currentColor); }
.little-menu .drawer-list a svg { width: 26px; height: 26px; }
.little-menu .drawer-list a.active { background: var(--rail-on, rgba(255,255,255,.15)); color: var(--rail-text, var(--menu-text)); }
.little-menu .drawer-list a.active .gbicon { background: var(--rail-icon-on, var(--rail-icon, currentColor)); }
.little-menu .drawer-foot { padding: 0 0 env(safe-area-inset-bottom); border-top: 0; background: var(--rail-foot, transparent); font-size: var(--rail-fs, 14px); }

/* ---------- text widget button, banner slideshow, "BannerVisual" article carousel ---------- */
.textw .textw-btn { font-family: var(--button-font, var(--menu-font)); font-weight: 400; display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; padding: 0 20px; text-transform: uppercase; }
.slides-banner { margin: 0; border-radius: 0; min-height: 0; }
.slides.slides-banner .slide .cap h3 { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* GoodBarber cuts long titles short on the small slideshow */
.bvis { display: flex; gap: var(--inset, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: var(--inset, 20px); }
.bvis::-webkit-scrollbar { display: none; }
.bvis .vcard { flex: 0 0 calc((100% + 2 * var(--inset, 20px)) * var(--card-f, .72)); scroll-snap-align: center; margin: 0; }
.bvis .vcard .ph { aspect-ratio: var(--img-ratio, 1.37); height: auto; }
.bvis .vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.bvis .vcard h3 { font-family: var(--st-ff, var(--font)); font-size: var(--st-fs, 22px); color: var(--st-c, inherit); font-weight: 400; }
.bvis .vcard p { font-family: var(--sx-ff, var(--font)); font-size: var(--sx-fs, 13px); color: var(--sx-c, inherit); }
.bvis .vcard { display: flex; flex-direction: column; background: var(--card-bg, transparent); }
.bvis .vcard .ph { flex: none; border-radius: 0; }
.bvis .vcard h3 { margin: 0; padding: calc(var(--pad, 4px) + 8px) var(--pad, 4px) 0; line-height: 1.2; }
.bvis .vcard p { margin: 4px 0 0; padding: 0 var(--pad, 4px) var(--pad, 4px); }
.bvis.no-summary .vcard p { display: none; }
.bvis.no-summary .vcard h3 { box-sizing: border-box; min-height: var(--text-h, auto); }
/* hub tiles with titles in the middle (titleAlign center_*), as on Vanity Rooms */
.ugrid[class*=" t-center-"] .utile span { top: 50%; bottom: auto; transform: translateY(-50%); }
/* article lists with a box under each picture and no summary (GoodBarber showSummary off), as on Vanity Rooms */
.wrap.boxed .vcard { background: var(--card-bg); }
.wrap.boxed .vcard .ph { border-radius: 0; }
.wrap.boxed .vcard h3 { margin: 0; padding: 20px 10px; }
.wrap.boxed .vcard p { margin: -14px 0 0; padding: 0 10px 14px; }
.wrap.no-summary .vcard p { display: none; }
.slides.no-pager .dots { display: none; }

/* ---------- article pages: GoodBarber's Classic look (see-through header over the picture, its own colours) ---------- */
.detail.tinted { background: var(--detail-bg); min-height: calc(100vh - var(--top)); }
.detail .page-title { font-family: var(--dt-ff, var(--font)); font-size: var(--dt-fs, var(--fs-detail-title)); color: var(--dt-c, var(--heading)); font-weight: 400; }
.detail .prose { font-family: var(--dx-ff, var(--font)); font-size: var(--dx-fs, var(--fs-detail-text)); color: var(--dx-c, var(--heading)); line-height: normal; }
.detail .prose h2, .detail .prose h3 { font-weight: 400; color: inherit; line-height: 1.38; }
.detail .prose h3 { font-size: 1.3em; margin: 1.12em 0 .28em; }
.detail .prose h2 { font-size: 1.5em; margin: 1em 0 .3em; }
.detail .prose p { margin: 0 0 1em; }
.detail .sep { width: 80px; margin: 20px auto; border-top-color: #E7E7E7; }
body.immersive main { padding-top: 0; }
body.immersive .detail.tinted { min-height: 100vh; }
body.immersive .topbar { background: transparent; pointer-events: none; }
body.immersive .topbar .brand, body.immersive .topbar #action-btn { visibility: hidden; }
body.immersive .topbar #back-btn { pointer-events: auto; width: 32px; height: 32px; margin: 6px 0 0 8px; background: rgba(255,255,255,.92); color: var(--detail-icon, #6C665E); }
body.immersive .topbar #back-btn svg { width: 18px; height: 18px; }
.wrap.boxed .vcard { margin-bottom: 22px; }
.detail .article-hero { aspect-ratio: 1.5; }
.detail .page { padding-top: 30px; }
.detail .detail-head + .sep, .detail .sep { margin: 20px auto 36px; }
/* About pages: headings in the text drawn like GoodBarber (regular weight), blank paragraphs keep their line */
.about2 .prose h1 { margin: 0; font-weight: 400; font-size: 1.8em; line-height: normal; }
.about2 .ab-banner + .prose { padding-top: 10px; }
.about2 .prose p { min-height: 1.15em; }
.about2 .prose li { margin-bottom: 8px; }

/* ---------- contact: GoodBarber's "Button" template ---------- */
.contact-btns { min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; text-align: center; }
.contact-btns h1 { margin: 0; font-weight: 400; line-height: normal; }
.contact-btns > p { margin: 14px 0 0; line-height: normal; }
.contact-btns .cbtns { width: calc(100% + 40px); max-width: 600px; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-btns .cbtn { width: 78%; height: 47px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-family: var(--button-font, var(--menu-font)); font-size: 18px; text-transform: uppercase; background: var(--theme); color: #fff; }
.contact-btns .cbtn .gbicon { width: 26px; height: 26px; background: currentColor; }
.detail.inline-pic .prose > div:first-child > a > img { display: block; width: 100%; border-radius: 0; }
.detail.inline-pic .prose > div:first-child { margin: 0 0 28px; }
