/*
Theme Name: Bien Oeuvre
Theme URI: https://bienoeuvre.com
Author: Bien Corporation
Author URI: https://biencorp.com
Description: A calm, modern, editor-first WordPress block theme for the Bien Oeuvre ecosystem. Independent of Elementor and academic plugins.
Version: 0.9.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bien-oeuvre
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, editor-style, one-column, accessibility-ready
*/

:root {
  --bo-primary: #536CF0;
  --bo-primary-text: #465BD7;
  --bo-red: #E64C50;
  --bo-gray: #414752;
  --bo-soft: #F1F3F6;
  --bo-line: #E5E8EF;
  --bo-white: #FFFFFF;
  --bo-radius: 18px;
  --bo-heading-font: "Poppins", sans-serif;
  --bo-body-font: "Jost", sans-serif;
  --bo-header-bg: #FFFFFF;
  --bo-header-text: #414752;
  --bo-footer-bg: #FFFFFF;
  --bo-footer-text: #414752;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
body, input, select, textarea, button { font-family: var(--bo-body-font, "Jost", sans-serif); }
h1, h2, h3, h4, h5, h6, .wp-block-site-title { font-family: var(--bo-heading-font, "Poppins", sans-serif); letter-spacing: -0.032em; }
a { text-underline-offset: .2em; }
a:not(.wp-element-button):hover { color: var(--bo-primary-text); }
:where(button, a, input, textarea, select, summary, .wp-block-navigation-item__content):focus-visible {
  outline: 3px solid var(--bo-primary-text); outline-offset: 4px;
}
::selection { background: #DDE3FF; color: #252C45; }
.wp-site-blocks { overflow: clip; }
.bo-site-header { border-bottom: 1px solid var(--bo-line); background: var(--bo-header-bg, #fff); position: relative; z-index: 20; }
.bo-header-inner { min-height: 90px; padding-top: 1.0rem; padding-bottom: 1.0rem; gap: 1.5rem; }
.bo-site-header .wp-block-site-title { font-weight: 600; font-size: 1.18rem; letter-spacing: -.04em; }
.bo-site-header .wp-block-site-title a { text-decoration: none; color: var(--bo-gray); }
.bo-site-header .wp-block-navigation { font-size: .93rem; font-weight: 500; }
.bo-site-footer { background:var(--bo-footer-bg, #FFFFFF); border-top: 1px solid var(--bo-line); margin-top: 5rem; }
.bo-site-footer .wp-block-site-title { font-weight: 600; }
.bo-kicker { letter-spacing: .15em; text-transform: uppercase; font-weight: 700; font-size: .77rem; }
.bo-muted { color: #657080; }
.bo-hero { padding-top: clamp(5rem, 8vw, 9rem); padding-bottom: clamp(5rem, 8vw, 9rem); }
.bo-hero h1 { line-height: 1.12; max-width: 760px; }
.bo-hero p { max-width: 610px; line-height: 1.68; }
.bo-hero-panel { overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 440px; background: linear-gradient(135deg, var(--bo-primary) 0%, color-mix(in srgb, var(--bo-primary) 82%, white) 48%, color-mix(in srgb, var(--bo-primary) 54%, white) 100%); position: relative; }
.bo-hero-panel::before, .bo-hero-panel::after { content:""; display:block; position:absolute; border:1px solid rgba(255,255,255,.43); border-radius: 50%; pointer-events:none; }
.bo-hero-panel::before { width: 580px; height:580px; right:-280px; top:-165px; }
.bo-hero-panel::after { width: 370px; height:370px; left:-185px; bottom:-110px; }
.bo-hero-panel .bo-hero-monogram { font-size: clamp(8rem, 17vw, 16rem); font-family: var(--bo-heading-font, "Poppins", sans-serif); line-height:1; color:rgba(255,255,255,.95); font-weight:600; letter-spacing:-.12em; position:relative; z-index:1; }
.bo-section { padding-top: clamp(3.5rem, 6vw, 6.5rem); padding-bottom: clamp(3.5rem, 6vw, 6.5rem); }
.bo-section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.bo-card { border:1px solid var(--bo-line); border-radius: var(--bo-radius); padding:clamp(1.3rem,2.5vw,2.3rem); background:#fff; box-shadow: 0 7px 30px rgba(30,42,71,.025); height:100%; box-sizing:border-box; }
.bo-card h3 { margin-top: .65rem; }
.bo-card p { line-height:1.7; }
.bo-feature-index { color:var(--bo-primary-text); font-size:.82rem; font-weight:700; letter-spacing:.1em; }
.bo-soft-section { background:var(--bo-soft); border-radius:28px; }
.bo-cta { border-radius:26px; background:var(--bo-primary); }
.bo-cta .wp-block-button__link { background: #fff !important; color:#313B6B !important; }
.bo-cta .wp-block-button__link:hover { background: #F1F3F6 !important; }
.wp-element-button, .wp-block-button__link { border-radius: 11px; font-family:"Jost",sans-serif; font-weight: 600; padding: .86em 1.45em; text-decoration:none; transition:background-color .18s ease, transform .18s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { border-width:1.5px; }
.wp-block-query .wp-block-post-template > li { box-sizing:border-box; }
.bo-post-card { background:#fff; border:1px solid var(--bo-line); border-radius:var(--bo-radius); overflow:hidden; padding:1.5rem; }
.bo-post-card .wp-block-post-title { font-size: 1.35rem; }
.bo-post-card .wp-block-post-title a { color:var(--bo-gray); text-decoration:none; }
.bo-post-card .wp-block-post-title a:hover { color:var(--bo-primary-text); }
.bo-article-wrap { max-width: 760px; margin-left:auto; margin-right:auto; }
.bo-article-wrap :where(p,li) { line-height: 1.85; }
.bo-template-lede { padding-top: clamp(3rem,6vw,5rem); padding-bottom: 2rem; }
.bo-template-lede h1 { margin-bottom:.5rem; }
.wp-block-query-pagination { margin-top: 3rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: #fff; color:var(--bo-gray); padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap:1.25rem; }
@media (max-width: 780px) {
  .bo-header-inner { min-height: 66px; }
  .bo-hero { padding-top:3.5rem; padding-bottom:3.5rem; }
  .bo-hero-panel { min-height: 270px; }
  .bo-section { padding-top:3.5rem; padding-bottom:3.5rem; }
  .bo-site-footer { margin-top:3rem; }
  .bo-hero h1 { font-size: clamp(2.2rem, 7vw, 3.3rem) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* v0.1.1: Default WordPress pages are full-canvas with no automatic page heading.
   Blocks/patterns decide their own comfortable inner widths. Posts retain titles. */
.bo-page-canvas { width: 100%; max-width: none; min-width: 0; }
.bo-page-canvas > .wp-block-post-content { width: 100%; max-width: none; min-width: 0; }
.bo-page-canvas > .wp-block-post-content > .alignfull { max-width: none; }
/* A standard unaligned text block should remain readable, even on a full canvas.
   Authors can opt into full/wide alignment on supported blocks. */
.bo-page-canvas > .wp-block-post-content > :is(p,h1,h2,h3,h4,h5,h6,ul,ol,blockquote,figure.wp-block-image):not(.alignfull):not(.alignwide) {
  max-width: min(100% - 2rem, 760px);
  margin-inline: auto;
}
.bo-page-canvas > .wp-block-post-content > .alignwide,
.bo-page-canvas > .wp-block-post-content > .wp-block-columns.alignwide {
  max-width: min(100% - 2rem, 1220px);
  margin-inline: auto;
}
.bo-page-contained { padding-block: clamp(1rem,3vw,2rem); }

/* Bien Oeuvre 0.2: header and footer, independent of Elementor and the academic engine. */
.bo-chrome-header, .bo-chrome-footer { box-sizing:border-box; width:100%; }
.bo-chrome-header *,.bo-chrome-footer * {box-sizing:border-box;}
.bo-chrome-container {width:100%;max-width:var(--bo-header-max-width,1220px);padding-inline:var(--bo-header-gutter,24px);margin-inline:auto;}
.bo-chrome-header-inner {display:flex;justify-content:space-between;align-items:center;gap:clamp(1rem,2vw,2.5rem);padding-block:.8rem;}
.bo-chrome-brand {display:flex;align-items:center;gap:.75rem;min-width:0;flex-shrink:0;}
.bo-chrome-brand .custom-logo-link{display:inline-flex;align-items:center;flex-shrink:0;}
.bo-chrome-brand .custom-logo {width:auto!important;height:auto;max-width:260px;object-fit:contain;}
.bo-chrome-brand-copy{display:flex;flex-direction:column;line-height:1.2;gap:.3rem;}
.bo-chrome-site-title,.bo-footer-name{font-family:var(--bo-heading-font,"Poppins",sans-serif);font-weight:600;letter-spacing:-.035em;text-decoration:none;color:var(--bo-header-text,#414752);}
.bo-chrome-site-title {font-size:clamp(1rem,1.4vw,1.25rem);}
.bo-chrome-tagline{font-size:.72rem;line-height:1.4;color:var(--bo-header-text,#414752);opacity:.76;}
.bo-chrome-desktop-nav{flex:1;min-width:0;}
.bo-chrome-menu,.bo-footer-links{list-style:none;margin:0;padding:0;}
.bo-chrome-menu{display:flex;align-items:center;justify-content:flex-end;gap:var(--bo-header-menu-gap,26px);font-size:.93rem;}
.bo-chrome-menu li{position:relative;margin:0;list-style:none;}
.bo-chrome-menu a{text-decoration:none;color:var(--bo-header-text,#414752);display:inline-block;padding:.55rem 0;white-space:nowrap;}
.bo-chrome-menu a:hover,.bo-chrome-menu a:focus-visible,.bo-chrome-menu .current-menu-item>a{color:var(--bo-header-nav-hover,#465BD7);}
.bo-chrome-menu .sub-menu{list-style:none;display:none;position:absolute;top:100%;left:0;min-width:210px;background:var(--bo-header-bg,#fff);border:1px solid var(--bo-line);border-radius:12px;box-shadow:0 14px 35px rgba(23,25,30,.09);padding:.5rem;z-index:40;}
.bo-chrome-menu li:hover>.sub-menu,.bo-chrome-menu li:focus-within>.sub-menu{display:block;}
.bo-chrome-menu .sub-menu a{display:block;padding:.55rem .7rem;white-space:normal;}
.bo-chrome-menu .sub-menu .sub-menu{top:0;left:100%;}
.bo-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex-shrink:0;}
.bo-header-btn{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:.5rem var(--bo-header-btn-padding,18px);border-radius:var(--bo-header-btn-radius,11px);font-size:.85rem;line-height:1.35;font-weight:600;text-decoration:none!important;border:1px solid transparent;white-space:nowrap;}
.bo-btn-primary.bo-btn-filled{background:var(--bo-header-btn-bg,#465BD7);color:var(--bo-header-btn-text,#fff)!important;}
.bo-btn-primary.bo-btn-outline{background:transparent;border-color:var(--bo-header-btn-bg,#465BD7);color:var(--bo-header-btn-bg,#465BD7)!important;}
.bo-btn-primary.bo-btn-soft{background:var(--bo-soft,#F1F3F6);color:var(--bo-header-btn-bg,#465BD7)!important;}
.bo-btn-secondary{background:transparent;border-color:var(--bo-line,#E5E8EF);color:var(--bo-header-text,#414752)!important;}
.bo-header-btn:hover{filter:brightness(.94);transform:translateY(-1px);}
.bo-chrome-topbar{background:var(--bo-topbar-bg,#F1F3F6);color:var(--bo-topbar-text,#414752);font-size:.8rem;}
.bo-chrome-topbar .bo-chrome-container{min-height:34px;display:flex;align-items:center;}
.bo-chrome-topbar a{color:inherit;text-decoration:none;}
.bo-header-centered .bo-chrome-header-inner{flex-direction:column;justify-content:center;gap:.55rem;padding-block:1rem;}
.bo-header-centered .bo-chrome-desktop-nav{flex:auto;}
.bo-header-centered .bo-chrome-menu{justify-content:center;}
.bo-header-stacked .bo-chrome-header-inner{display:grid;grid-template-columns:1fr auto;}
.bo-header-stacked .bo-chrome-desktop-nav{grid-column:1/-1;grid-row:2;}
.bo-header-stacked .bo-chrome-menu{justify-content:flex-start;}
.bo-header-split .bo-chrome-menu{justify-content:center;}
.bo-chrome-mobile{display:none;position:relative;flex-shrink:0;}
.bo-chrome-mobile summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:600;color:var(--bo-header-text,#414752);padding:.6rem;border-radius:8px;}
.bo-chrome-mobile summary::-webkit-details-marker{display:none;}
.bo-chrome-menu-symbol{font-size:1.3rem;line-height:1;}
.bo-chrome-mobile-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(330px,calc(100vw - 32px));padding:1rem;background:var(--bo-header-bg,#fff);border:1px solid var(--bo-line);border-radius:15px;box-shadow:0 16px 40px rgba(23,25,30,.12);z-index:60;}
.bo-chrome-menu-mobile{display:block!important;}
.bo-chrome-menu-mobile>li{margin:0;border-bottom:1px solid var(--bo-line);}
.bo-chrome-menu-mobile>li:last-child{border-bottom:0;}
.bo-chrome-menu-mobile a{display:block;padding:.7rem .25rem;white-space:normal;}
.bo-chrome-menu-mobile .sub-menu{display:block;position:static;box-shadow:none;border:0;padding:0 0 .4rem .8rem;background:transparent;}
.bo-actions-mobile{justify-content:stretch;flex-wrap:wrap;margin-top:1rem;}
.bo-actions-mobile .bo-header-btn{flex:1;}
.bo-chrome-footer{background:var(--bo-footer-bg,#fff);color:var(--bo-footer-text,#414752);padding:clamp(3rem,5vw,5rem) 0 1.5rem;border-top:1px solid var(--bo-line);}
.bo-footer-main{display:grid;grid-template-columns:2fr 1fr 1fr;gap:clamp(1.5rem,4vw,4rem);padding-bottom:2.5rem;}
.bo-footer-two .bo-footer-main{grid-template-columns:2fr 1fr;}
.bo-footer-four .bo-footer-main{grid-template-columns:2fr 1fr 1fr 1fr;}
.bo-footer-simple .bo-footer-main{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;}
.bo-footer-main h2{font-size:.89rem;font-weight:600;margin:0 0 1rem;color:var(--bo-footer-text,#414752);}
.bo-footer-name{color:var(--bo-footer-text,#414752);font-size:1.15rem;}
.bo-footer-brand p{max-width:350px;font-size:.89rem;line-height:1.7;color:var(--bo-footer-text,#414752);opacity:.8;margin-top:1rem;}
.bo-footer-links li{margin:.35rem 0;}
.bo-footer-links a,.bo-chrome-social a{text-decoration:none;color:var(--bo-footer-text,#414752);font-size:.88rem;line-height:1.7;}
.bo-footer-links a:hover,.bo-chrome-social a:hover{color:var(--bo-primary-text,#465BD7);}
.bo-chrome-social{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1rem;}
.bo-footer-bottom{border-top:1px solid var(--bo-line);padding-top:1.3rem;font-size:.76rem;color:var(--bo-footer-text,#414752);opacity:.85;}
@media (max-width:1024px){.bo-footer-main,.bo-footer-four .bo-footer-main{grid-template-columns:1.5fr 1fr;}}
@media (max-width:600px){.bo-footer-main,.bo-footer-two .bo-footer-main,.bo-footer-four .bo-footer-main{grid-template-columns:1fr;}.bo-chrome-brand .custom-logo{max-width:165px;}.bo-chrome-site-title{font-size:1rem;}.bo-footer-simple .bo-footer-main{display:block;}}
@media (prefers-reduced-motion:reduce){.bo-header-btn{transition:none!important;transform:none!important;}}

/* Bien Oeuvre minimal homepage */
.bo-front-main { margin-block: 0 !important; }
.bo-front-door { min-height: min(780px, calc(100svh - 168px)); display: flex; align-items: center; padding: clamp(36px, 6vw, 92px) clamp(20px, 4.8vw, 80px); background: #fff; }
.bo-front-door-inner { display:grid; grid-template-columns: 1.12fr 0.88fr; align-items:center; gap: clamp(32px, 5vw, 100px); width: min(1320px,100%); margin-inline:auto; }
.bo-front-eyebrow { font: 600 12px/1.5 var(--bo-heading-font); letter-spacing:.18em; color:var(--bo-primary-text); margin:0 0 28px; text-transform:uppercase; }
.bo-front-copy h1 { font: 600 clamp(42px, 4.7vw, 78px)/1.14 var(--bo-heading-font); letter-spacing:-.052em; color:var(--bo-gray); margin:0 0 clamp(34px,4vw,56px); }
.bo-front-art { margin:0; border-radius:clamp(18px,2vw,30px); overflow:hidden; align-self:stretch; min-height:clamp(450px, 64vh, 710px); background:#6476ee; }
.bo-front-art img { width:100%; height:100%; object-fit:cover; display:block; }
.bo-intent-form { border:1px solid #dce1eb; border-radius:18px; display:flex; align-items:center; gap:12px; box-shadow:0 12px 40px rgba(31,42,89,.055); background:#fff; padding:12px 13px 12px 20px; width:min(580px,100%); }
.bo-intent-symbol { color:var(--bo-primary); font-size:24px; line-height:1; }
.bo-intent-form input { flex:1; width:100%; min-width:0; border:0; background:transparent; color:var(--bo-gray); font:500 clamp(15px,1.2vw,19px)/1.4 var(--bo-body-font); box-shadow:none; outline:0; padding:8px 0; }
.bo-intent-form input::placeholder { color:#71798a; opacity:1; }
.bo-intent-form button { flex:0 0 45px; width:45px; height:45px; display:grid; place-items:center; color:white; background:var(--bo-primary); border:0; border-radius:12px; cursor:pointer; }
.bo-intent-form button:hover { background:var(--bo-primary-text); }
@media(max-width:780px) { .bo-front-door {padding:38px 22px 50px; min-height:0;} .bo-front-door-inner {grid-template-columns:1fr; gap:36px;} .bo-front-copy h1 {font-size:clamp(38px,9vw,58px);} .bo-front-art {min-height:350px; max-height:550px;} }

/* Floating Google identity surface on the guest homepage */


/* Bien Oeuvre v0.4 — separate guest entry / member home, independent navigation */
.bo-front-door{min-height:0; padding:clamp(22px,3.2vw,45px) clamp(20px,4.8vw,80px);align-items:flex-start;}
.bo-front-door-inner{align-items:center;}
.bo-front-art{min-height:clamp(410px,62vh,640px);}
.bo-front-copy h1{margin-bottom:clamp(24px,2.8vw,39px);}
.bo-front-eyebrow{margin-bottom:18px;}
.bo-site-header.bo-header-guest .bo-chrome-container{max-width:1400px;}
.bo-header-guest .bo-chrome-desktop-nav{display:none;}
.bo-chrome-site-title{display:block;}
.bo-chrome-menu .bo-nav-dropdown details{position:relative;}
.bo-nav-dropdown summary{list-style:none;cursor:pointer;color:var(--bo-header-text,#414752);padding:.55rem 0;font-weight:500;white-space:nowrap;}
.bo-nav-dropdown summary::-webkit-details-marker{display:none;}
.bo-nav-dropdown summary span{margin-left:8px;color:#687184;}
.bo-nav-dropdown details[open]>.sub-menu{display:block;}
.bo-nav-dropdown .sub-menu{min-width:232px;left:auto;right:0;top:100%;}
.bo-nav-dropdown .sub-menu a{padding:10px 13px;display:block;}
.bo-header-signin{font-size:.92rem;color:#414752;text-decoration:none;font-weight:600;padding:12px 4px;}
.bo-header-signin:hover{color:var(--bo-primary-text);}
.bo-chrome-header .bo-header-actions{gap:22px;align-items:center;}
.bo-chrome-menu li.bo-nav-dropdown{position:relative;}
.bo-chrome-menu .bo-nav-dropdown summary:focus-visible{outline:2px solid var(--bo-primary-text);outline-offset:3px;}
.bo-profile-intro{padding:clamp(44px,6.5vw,90px) clamp(20px,4vw,55px) clamp(35px,5vw,70px);}
.bo-profile-intro-inner{max-width:1220px;margin:auto;}
.bo-profile-intro h1{font-size:clamp(36px,4.1vw,62px);line-height:1.16;max-width:920px;margin:0 0 34px;color:var(--bo-gray);letter-spacing:-.045em;}
.bo-profile-search{width:min(780px,100%);}
.bo-profile-courses{max-width:1220px;margin:50px auto;padding:0 24px 30px;}
.bo-profile-courses-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:26px;}
.bo-profile-courses-head h2{font-size:clamp(27px,3vw,42px);margin:0;}
.bo-discovery-link{font-size:.94rem;color:var(--bo-primary-text);font-weight:600;text-decoration:none;}
.bo-profile-course-grid,.bo-discovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.bo-profile-course-card{padding:24px;border:1px solid var(--bo-line);border-radius:18px;background:#fff;}
.bo-profile-course-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:12px;}
.bo-profile-course-card h3,.bo-profile-course-card h2{font-size:1.22rem;margin:8px 0 20px;line-height:1.4;}
.bo-profile-course-card h3 a,.bo-profile-course-card h2 a{color:var(--bo-gray);text-decoration:none;}
.bo-course-tag{font-size:.77rem;color:var(--bo-primary-text);font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin:12px 0 0;}
.bo-search-main{padding:0 22px;}
.bo-discovery-results{max-width:1220px;margin:clamp(45px,6vw,90px) auto;}
.bo-discovery-results h1{font-size:clamp(36px,4vw,58px);margin:0 0 30px;overflow-wrap:anywhere;}
.bo-discovery-results .bo-intent-form{margin-bottom:35px;}
.bo-search-pagination{margin-top:32px;display:flex;gap:12px;}
@media(max-width:900px){.bo-profile-course-grid,.bo-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.bo-profile-course-grid,.bo-discovery-grid{grid-template-columns:1fr;}.bo-profile-courses-head{align-items:start;flex-direction:column;}.bo-front-door{padding-top:20px;}.bo-front-art{min-height:320px;}.bo-chrome-menu-mobile .bo-nav-dropdown .sub-menu{position:static;display:block;box-shadow:none;border:0;padding-left:14px;}.bo-header-signin{padding:12px 0;}}
/* Public mobile header keeps both entry actions visible without opening a menu. */
@media(max-width:900px) {
  .bo-header-guest .bo-chrome-header-inner > .bo-header-actions:not(.bo-actions-mobile){display:flex!important;}
  .bo-header-guest .bo-chrome-mobile{display:none!important;}
}
@media(max-width:480px) {
  .bo-header-guest .bo-chrome-container{padding-inline:14px;}
  .bo-header-guest .bo-chrome-brand .custom-logo{max-width:110px;}
  .bo-header-guest .bo-header-actions{gap:10px;}
  .bo-header-guest .bo-header-signin{font-size:.83rem;white-space:nowrap;}
  .bo-header-guest .bo-header-btn{font-size:.82rem;padding-inline:10px;white-space:nowrap;}
}

/* 0.5.0 visual polish: compact public entry hero, intentional hierarchy. */
@media(min-width:781px){
 .bo-front-door{padding-top:clamp(10px,1.4vw,20px)!important;padding-bottom:clamp(18px,2.4vw,34px)!important;}
 .bo-front-door-inner{align-items:start;}
 .bo-front-copy{align-self:center;}
 .bo-front-art{min-height:clamp(510px,70vh,760px);}
}
.bo-site-header.bo-header-guest .bo-chrome-container{max-width:1400px;}
.bo-header-guest .bo-header-btn.bo-btn-filled,.bo-header-signed-in .bo-header-btn.bo-btn-filled{background:var(--bo-header-btn-bg,#536CF0)!important;color:var(--bo-header-btn-text,#fff)!important;}
/* Align the member landing introduction and thematic section headings centrally. */
.bo-profile-intro{padding-top:clamp(20px,3vw,42px);padding-bottom:clamp(28px,4vw,56px);}
.bo-profile-intro-inner{text-align:center;display:flex;align-items:center;flex-direction:column;}
.bo-profile-intro h1{max-width:1120px;margin-inline:auto;text-wrap:balance;}
.bo-profile-search{margin-inline:auto;text-align:left;}
.bo-section-head{text-align:center;max-width:100%!important;}
.bo-section-head>h2,.bo-section-head>.wp-block-heading{max-width:none!important;margin-inline:auto!important;text-wrap:balance;}
@media(min-width:1250px){.bo-section-head>h2,.bo-section-head>.wp-block-heading{font-size:clamp(29px,2.45vw,37px)!important;letter-spacing:-.035em;white-space:nowrap;}}
.bo-card{height:100%;display:flex;flex-direction:column;align-items:flex-start;}
.bo-card h3{min-height:2.75em;}
.bo-profile-course-card>a:first-child{display:block;overflow:hidden;border-radius:12px;}
.bo-profile-course-card>a:first-child img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;}
.bo-profile-course-card .bo-course-image-placeholder{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#F1F3F6;color:#536CF0;font:600 19px/1.4 var(--bo-heading-font);}
@media(max-width:780px){.bo-front-door{padding-top:18px!important;}.bo-profile-intro h1{max-width:100%;}.bo-card h3{min-height:0;}}
/* Match the upper-right Google prompt placement in the approved reference. */


/* v0.6.0: guest front door now matches the high-set login image, not the private Profile rhythm. */
@media (min-width: 781px) {
  .bo-front-door { padding-block: 0 16px !important; }
  .bo-front-door-inner { align-items: center; }
  .bo-front-art { min-height: 0 !important; height: min(70vh, 705px); align-self: start; }
  .bo-front-copy { align-self: center; }
}
/* Profile is intentionally more spacious than the guest acquisition experience. */
.bo-profile-intro { padding-top: clamp(74px, 9vw, 142px) !important; padding-bottom: clamp(52px, 6vw, 88px) !important; }
/* Only the section introduction is centered. Inside the three feature cards text returns left. */
.bo-card, .bo-card * { text-align: left; }
.bo-card { align-items:flex-start; }
/* Stable result-image slots; course imagery is read from the featured-image field. */
.bo-discovery-grid .bo-profile-course-card > a.bo-result-cover { display:block; margin-bottom:16px; overflow:hidden; border-radius:12px; }
.bo-discovery-grid .bo-result-cover img { width:100%; aspect-ratio:16/10; height:auto; object-fit:cover; display:block; }
.bo-discovery-grid .bo-course-image-placeholder { aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; background:#F1F3F6; color:#536CF0; border-radius:12px; font-weight:600; }
/* Popup belongs in the page's upper-right region, above the hero image. */

/* Native details are controlled by click/keyboard, not conflicting hover-open CSS. */
.bo-chrome-menu .bo-nav-dropdown:not(.menu-item-has-children):hover > .sub-menu { display:none; }
@media (max-width:780px) { .bo-profile-intro { padding-top:clamp(40px,7vw,64px)!important; padding-bottom:42px!important; } .bo-front-art{height:auto;} }

/* v0.7.0 — use the approved registration composition as the public-home shell.
   The auth image's 3:4 dimensions, max-width, and top offset are canonical.
   Only the left column's content differs between the public door and auth. */
@media (min-width: 901px) {
  .bo-front-door {
    display: block;
    min-height: 0 !important;
    padding: 0 clamp(20px,4.8vw,80px) 0 !important;
  }
  .bo-front-door-inner {
    width: min(1320px, 100%);
    margin: 28px auto 58px;
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(430px, 520px);
    gap: clamp(64px, 6.5vw, 98px);
    align-items: start;
  }
  .bo-front-copy { align-self: center; min-width:0; }
  .bo-front-art {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 3 / 4;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    align-self: start;
  }
  .bo-front-art img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 781px) and (max-width: 900px) {
  .bo-front-door-inner { align-items:center; gap:28px; }
  .bo-front-art { height:auto!important; aspect-ratio:3/4; min-height:0!important; }
}
/* The floating prompt uses the same measurements as Bien Member's auth prompt. */

/* Gutenberg constrained-layout margin rules had been centering the feature eyebrows.
   Scope this fix to the three cards, without affecting their section introduction. */
.bo-card.is-layout-constrained > p.bo-feature-index,
.bo-card > p.bo-feature-index {
  display:block !important;
  align-self:stretch !important;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  text-align:left !important;
}

/* 0.7.1: canonical Google surface parity with Bien Member's auth prompt.
   Only the popup is styled here. The approved guest hero geometry is unchanged.
   Match Member's fixed top/right, size, padding, font, border and vertical rhythm.
*/


/* 0.7.2 — surgical guest-home correction, based on the approved Member screen.
   At desktop width the guest image had 28px of top margin; auth uses about 4px.
   Keep the header, right image shape, and popup viewport anchor untouched. */
@media (min-width:901px) {
  .bo-front-door-inner { margin-top:4px; }
}
/* Gutenberg's layout spacing can introduce margins between the homepage's
   popup children. The Member popup is a tightly stacked title and button.
   Isolate that layout so the homepage prompt has Member's vertical rhythm. */



/* 0.7.4 — same 370px outer prompt width as the Member auth pages;
   visually align the guest photograph with the approved auth photograph. */
@media (min-width: 901px) {
  .bo-front-door .bo-front-art { position: relative; top: -20px; }
}

/* v0.9.0 — Bien Oeuvre public design-token contract.
   Canonical values inherit live WordPress Customizer --bo-* settings.
   Plugins should use these variables rather than copy hexadecimal values.
   Individual school-brand contexts may override the public tokens on their root. */
:root {
  --bien-primary: var(--bo-primary, #536CF0);
  --bien-primary-text: var(--bo-primary-text, #465BD7);
  --bien-primary-contrast: #FFFFFF;
  --bien-red: var(--bo-red, #E64C50);
  --bien-yellow: var(--bo-yellow, #F5BF3C);
  --bien-green: var(--bo-green, #32A77A);
  --bien-text: var(--bo-gray, #414752);
  --bien-text-strong: #17191E;
  --bien-surface: var(--bo-soft, #F1F3F6);
  --bien-background: var(--bo-white, #FFFFFF);
  --bien-border: var(--bo-line, #E5E8EF);
  --bien-font-heading: var(--bo-heading-font, "Poppins", sans-serif);
  --bien-font-body: var(--bo-body-font, "Jost", sans-serif);
  --bien-radius: var(--bo-radius, 18px);
  /* Semantic equivalents preferred in plugin UI. */
  --bien-action-bg: var(--bien-primary);
  --bien-action-text: var(--bien-primary-contrast);
  --bien-link: var(--bien-primary-text);
  --bien-success: var(--bien-green);
  --bien-warning: var(--bien-yellow);
  --bien-danger: var(--bien-red);
}
/* Align the logged-in logo and portfolio button with Academy's wider content.
   Guest header keeps its already-approved spacing and width. */
.bo-site-header.bo-header-signed-in .bo-chrome-container {
  max-width: var(--bo-member-header-max-width, 1320px);
}

/* v0.9.1: Logo scale controls its visual size, independently of header geometry.
   The link retains its original layout dimensions; adjacent navigation and the
   header's min-height do not grow as the logo is scaled. */
.bo-chrome-header .bo-chrome-brand .custom-logo-link { transform-origin: left center; }

/* v0.9.4: Native member dropdown state must be authoritative. WordPress's
 * generic :hover/:focus-within submenu rules must not resurrect closed panels.
 * Works identically on page, Classic PHP and Academy template headers. */
.bo-chrome-menu .bo-nav-dropdown > details:not([open]) > .sub-menu {
  display: none !important;
}
.bo-chrome-menu .bo-nav-dropdown > details[open] > .sub-menu {
  display: block;
}
.bo-chrome-menu .bo-nav-dropdown > details > summary {
  border-radius: 6px;
}
.bo-chrome-menu .bo-nav-dropdown > details > summary:focus-visible {
  outline: 2px solid var(--bo-primary-text, #465BD7);
  outline-offset: 3px;
}

/* v0.9.5: use the native named-details accordion as a JS-independent safety net.
   Always keep closed panels invisible regardless of generic WordPress hover CSS. */
.bo-member-default-menu > li.bo-nav-dropdown > details:not([open]) > ul.sub-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.bo-member-default-menu > li.bo-nav-dropdown > details[open] > ul.sub-menu {
  visibility: visible;
  pointer-events: auto;
}

/* v0.9.6: explicit JS-controlled accessible member dropdowns.
 * Closed panels cannot be reopened by :hover, :focus-within, WP submenu rules,
 * Safari's native details handling, or mobile display:block declarations. */
.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--bo-header-text, #414752);
  padding: .55rem 0;
  font: inherit;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px;
}
.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger span {
  margin-left: 8px;
  color: #687184;
}
.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger:hover,
.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger[aria-expanded="true"] {
  color: var(--bo-header-nav-hover, #465BD7);
}
.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger:focus-visible {
  outline: 2px solid var(--bo-primary-text, #465BD7);
  outline-offset: 3px;
}
.bo-member-default-menu > li.bo-nav-dropdown > ul.bo-nav-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.bo-member-default-menu > li.bo-nav-dropdown > ul.bo-nav-panel:not([hidden]) {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}
/* Keep dropdown button readable in the existing mobile disclosure without
 * redesigning the mobile navigation in this targeted patch. */
.bo-chrome-menu-mobile.bo-member-default-menu > li.bo-nav-dropdown > button.bo-nav-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: .7rem .25rem;
}
