/* ==========================================================================
   BSH Core: design tokens, Elementor helper classes, and component styles
   Ported from BSH-Modular-2.html
   ========================================================================== */

:root {
  --bsh-bg: #F3F5EF;
  --bsh-tile: #E1E8DB;
  --bsh-moss: #C7D7BC;
  --bsh-sage: #9DB892;
  --bsh-sage-d: #7E9C72;
  --bsh-ink: #15211A;
  --bsh-accent: #1F3A2B;
  --bsh-muted: #4A574C;
  --bsh-body: #34403A;
  --bsh-empty: #E9EEE4;
  --bsh-r: 24px;
  --bsh-font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bsh-mono-font: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Scope for shortcode output ---------- */
.bsh, .bsh * { box-sizing: border-box; }
.bsh { font-family: var(--bsh-font); color: var(--bsh-ink); font-size: 16px; line-height: 1.55; }
.bsh h3, .bsh p { margin: 0; }
.bsh button { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; text-transform: none; letter-spacing: normal; box-shadow: none; }
.bsh a { color: inherit; text-decoration: none; }
.bsh :focus-visible { outline: 2px solid var(--bsh-accent); outline-offset: 2px; }
.bsh .bsh-dark :focus-visible, .bsh-dark:focus-visible { outline-color: var(--bsh-bg); }
.bsh-mono { font-family: var(--bsh-mono-font); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bsh-muted); }
.bsh-dark { background: var(--bsh-accent); color: var(--bsh-bg); }
.bsh-dark .bsh-mono { color: var(--bsh-bg); opacity: .85; }
.bsh-bg-tile { background: var(--bsh-tile); color: var(--bsh-ink); }
.bsh-bg-moss { background: var(--bsh-moss); color: var(--bsh-ink); }
.bsh-bg-sage { background: var(--bsh-sage); color: var(--bsh-ink); }
.bsh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bsh-tint { mix-blend-mode: luminosity; opacity: .36; }
.bsh-above { position: relative; }

/* ---------- Journey (focus grid) ---------- */
.bsh-focus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.bsh-st { grid-column: span 2; border-radius: 18px; background: var(--bsh-bg); overflow: hidden; min-height: 470px; transition: background .3s ease, color .3s ease; }
.bsh-st.on { grid-column: span 4; background: var(--bsh-accent); color: var(--bsh-bg); }
.bsh-st-btn { width: 100%; height: 100%; min-height: 72px; border: 0; margin: 0; padding: 18px; background: transparent; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-radius: 0; }
.bsh-st-btn:hover, .bsh-st-btn:focus { background: transparent; color: inherit; }
.bsh-st.on .bsh-st-btn { display: none; }
.bsh-n { font-family: var(--bsh-mono-font); font-size: 12px; }
.bsh-t { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.bsh-p { display: block; font-size: 13px; opacity: .75; margin-top: 4px; }
.bsh-open { display: none; height: 100%; padding: 14px; flex-direction: column; gap: 16px; }
.bsh-st.on .bsh-open { display: flex; animation: bsh-fade .35s ease; }
.bsh-open-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.bsh-txt { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: space-between; }
.bsh .bsh-open h3 { font-family: var(--bsh-font); font-size: 30px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin: 6px 0 10px; color: inherit; }
.bsh-body p { margin: 0 0 .6em; opacity: .92; }
.bsh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bsh-tags span { border: 1px solid rgba(243, 245, 239, .45); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
@keyframes bsh-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Time grid ---------- */
.bsh-rib { display: grid; grid-template-columns: 190px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; background: var(--bsh-bg); border-radius: 16px; padding: 16px; }
.bsh-rh { font-family: var(--bsh-mono-font); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--bsh-muted); text-align: center; }
.bsh-rl { border: 0; background: transparent; padding: 0; margin: 0; text-align: left; cursor: pointer; min-height: 36px; display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.bsh-rl:hover, .bsh-rl:focus { background: transparent; color: inherit; }
.bsh-rl .a { font-size: 15px; }
.bsh-rl .b { font-family: var(--bsh-mono-font); font-size: 11px; color: var(--bsh-muted); }
.bsh-rl.on .a { font-weight: 600; color: var(--bsh-accent); }
.bsh-cell { height: 36px; border-radius: 10px; background: var(--bsh-empty); transition: background .3s ease; }
.bsh-cell[data-k="m"] { background: var(--bsh-sage-d); }
.bsh-cell[data-k="f"] { background: var(--bsh-moss); }
.bsh-cell.is-on[data-k="m"] { background: var(--bsh-accent); }
.bsh-cell.is-on[data-k="f"] { background: var(--bsh-sage); }
.bsh-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--bsh-body); margin-top: 16px; }
.bsh-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bsh-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Levels ---------- */
.bsh-stairs { display: grid; grid-template-columns: repeat(var(--bsh-levels, 3), minmax(0, 1fr)); gap: 12px; align-items: end; }
.bsh-step { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.bsh-step-t { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; line-height: 1.15; }
.bsh-step-d { font-size: 15px; color: var(--bsh-body); }
.bsh-step.bsh-dark .bsh-step-d { color: var(--bsh-bg); opacity: .85; }

/* ---------- Course weeks ---------- */
.bsh-vessels { display: grid; grid-template-columns: repeat(var(--bsh-weeks, 5), minmax(0, 1fr)); gap: 8px; }
.bsh-vessel { position: relative; height: 240px; border-radius: 16px; background: var(--bsh-bg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.bsh-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 12px 12px 16px 16px; }
.bsh-lab { position: relative; padding: 12px; }
.bsh-lab.top { font-family: var(--bsh-mono-font); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--bsh-muted); }
.bsh-lab.bot { font-size: 13px; font-weight: 500; }
.bsh-vessel.is-last .bsh-lab { color: var(--bsh-bg); }

/* ---------- Offerings ---------- */
.bsh-offerings { display: flex; flex-direction: column; gap: 20px; }
.bsh-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px; }
.bsh-q { background: var(--bsh-tile); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bsh-qt { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.bsh-q.bsh-res { background: var(--bsh-accent); color: var(--bsh-bg); justify-content: space-between; }
.bsh-q.bsh-res .bsh-mono { color: var(--bsh-bg); opacity: .85; }
.bsh-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.bsh-opt { border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 14px; cursor: pointer; background: var(--bsh-bg); color: var(--bsh-ink); transition: background .2s ease; }
.bsh-opt:hover, .bsh-opt:focus { background: var(--bsh-moss); color: var(--bsh-ink); }
.bsh-opt[aria-pressed="true"], .bsh-opt[aria-pressed="true"]:hover, .bsh-opt[aria-pressed="true"]:focus { background: var(--bsh-accent); color: var(--bsh-bg); }
.bsh-map { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bsh-ax { padding: 0 4px; }
.bsh-ax.side { align-self: center; }
.bsh-cellwrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bsh-off { flex: 1; min-height: 260px; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; outline: 2px solid transparent; outline-offset: 3px; transition: opacity .3s ease; }
.bsh-off.dim { opacity: .3; }
.bsh-off.fit { outline-color: var(--bsh-accent); }
.bsh-c { font-family: var(--bsh-mono-font); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: 8px; }
.bsh-ot { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.bsh-od { font-size: 14px; opacity: .85; }
.bsh-bot { display: flex; flex-direction: column; gap: 6px; }
.bsh-off a { color: inherit; font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.bsh-comp { display: flex; align-items: center; gap: 6px; }
.bsh-comp .sq { width: 34px; height: 34px; border-radius: 8px; background: var(--bsh-moss); }
.bsh-comp .plus { font-size: 18px; padding: 0 4px; }
.bsh-comp .wk { width: 16px; height: 34px; border-radius: 6px; background: var(--bsh-sage); }

/* ==========================================================================
   ELEMENTOR HELPER CLASSES
   Add these in Elementor: Advanced > CSS Classes (without the dot).
   ========================================================================== */

/* Bento grid: put on a Container (Flexbox). Set "Content Width" to Full Width. */
.e-con.bsh-bento, .bsh-bento { --display: grid; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-rows: minmax(150px, auto); }
.e-con.bsh-bento > .e-con-inner { display: contents; }

/* Tiles and blocks: put on child Containers. Do not set padding/background in Elementor for these. */
.e-con.bsh-tile, .bsh-tile { background: var(--bsh-tile); border-radius: var(--bsh-r); padding: 24px; position: relative; overflow: hidden; width: auto; max-width: none; min-width: 0; }
.e-con.bsh-block, .bsh-block { background: var(--bsh-tile); border-radius: var(--bsh-r); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px; width: auto; max-width: none; }
.e-con.bsh-pad, .bsh-pad { padding: clamp(20px, 2.4vw, 32px); }
.e-con.bsh-s3 { grid-column: span 3; } .e-con.bsh-s4 { grid-column: span 4; } .e-con.bsh-s5 { grid-column: span 5; }
.e-con.bsh-s7 { grid-column: span 7; } .e-con.bsh-s8 { grid-column: span 8; }
.e-con.bsh-r2 { grid-row: span 2; } .e-con.bsh-r3 { grid-row: span 3; }
.e-con.bsh-moss { background: var(--bsh-moss); }
.e-con.bsh-dark { background: var(--bsh-accent); color: var(--bsh-bg); }
.e-con.bsh-dark :is(.elementor-heading-title, p, .elementor-widget-text-editor, .elementor-widget-text-editor p) { color: var(--bsh-bg); }
.e-con.bsh-hero-h { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 3vw, 40px); }
.e-con.bsh-portrait { background-color: var(--bsh-moss); background-size: cover; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.e-con.bsh-namecard { background: var(--bsh-bg); border-radius: 16px; padding: 18px 20px; position: relative; }
.e-con.bsh-stat { background: var(--bsh-moss); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.e-con.bsh-sec { margin-top: 36px; }

/* Text helpers: put on widgets (Heading, Text Editor, Button) */
.bsh-mono, .bsh-mono .elementor-heading-title, .bsh-mono p { font-family: var(--bsh-mono-font) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--bsh-muted); }
.bsh-dark .bsh-mono, .e-con.bsh-dark .bsh-mono, .e-con.bsh-dark .bsh-mono .elementor-heading-title { color: var(--bsh-bg); opacity: .85; }
.bsh-h1 .elementor-heading-title, .bsh-h1 .elementor-widget-container > p, .bsh-h1 .elementor-widget-container { font-family: var(--bsh-font); font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.bsh-h2 .elementor-heading-title, .bsh-h2 .elementor-widget-container > p, .bsh-h2 .elementor-widget-container { font-family: var(--bsh-font); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.bsh-big .elementor-heading-title, .bsh-big .elementor-widget-container > p, .bsh-big .elementor-widget-container { font-family: var(--bsh-font); font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.bsh-num .elementor-heading-title, .bsh-num .elementor-widget-container > p, .bsh-num .elementor-widget-container { font-family: var(--bsh-font); font-size: clamp(64px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.bsh-num-s .elementor-heading-title, .bsh-num-s .elementor-widget-container > p, .bsh-num-s .elementor-widget-container { font-family: var(--bsh-font); font-size: 56px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.bsh-lead, .bsh-lead p { color: var(--bsh-body); max-width: 56ch; }

/* Buttons: put on Button widgets */
.bsh-pill .elementor-button, .bsh-cta .elementor-button, .bsh-light .elementor-button { border-radius: 999px; min-height: 44px; font-family: var(--bsh-font); font-size: 14px; font-weight: 500; padding: 10px 20px; box-shadow: none; }
.bsh-pill .elementor-button { background: var(--bsh-tile); color: var(--bsh-ink); padding: 10px 16px; font-weight: 400; }
.bsh-cta .elementor-button { background: var(--bsh-accent); color: var(--bsh-bg); }
.bsh-light .elementor-button { background: var(--bsh-bg); color: var(--bsh-ink); }
.bsh-pill .elementor-button:hover { background: var(--bsh-moss); color: var(--bsh-ink); }
.bsh-cta .elementor-button:hover { background: #2F5D46; color: var(--bsh-bg); }
.bsh-light .elementor-button:hover { background: var(--bsh-moss); color: var(--bsh-ink); }

/* Progress bars inside the "5 stages" stat tile: put .bsh-bars on an HTML widget */
.bsh-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bsh-bars span { height: 14px; border-radius: 4px; background: var(--bsh-accent); }

/* Verify ledger: put .bsh-ledger on an HTML widget */
.bsh-ledger { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; font-family: var(--bsh-font); }
.bsh-ledger div { background: var(--bsh-bg); border-radius: 16px; padding: 16px; }
.bsh-ledger dt { font-family: var(--bsh-mono-font); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--bsh-muted); }
.bsh-ledger dd { margin: 4px 0 0; color: var(--bsh-ink); }

/* Section header row: container with heading + text side by side */
.e-con.bsh-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 48px; }

/* Header pills (Nav Menu widget with class bsh-pills) */
.bsh-pills .elementor-nav-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.bsh-pills .elementor-nav-menu a.elementor-item { background: var(--bsh-tile); border-radius: 999px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; font-family: var(--bsh-font); font-size: 14px; color: var(--bsh-ink); white-space: nowrap; }
.bsh-pills .elementor-nav-menu a.elementor-item:hover { background: var(--bsh-moss); color: var(--bsh-ink); }

html { scroll-behavior: smooth; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .e-con.bsh-s3, .e-con.bsh-s4, .e-con.bsh-s5, .e-con.bsh-s7, .e-con.bsh-s8 { grid-column: 1 / -1; }
  .e-con.bsh-r2, .e-con.bsh-r3 { grid-row: auto; }
  .e-con.bsh-portrait { min-height: 360px; }
  .bsh-pills .elementor-nav-menu { flex-wrap: nowrap; overflow-x: auto; }

  .bsh-focus { grid-template-columns: minmax(0, 1fr); }
  .bsh-st, .bsh-st.on { grid-column: auto; min-height: 0; }
  .bsh-st-btn { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 14px 18px; }
  .bsh-p { display: none; }
  .bsh-open-img { height: 200px; }

  .bsh-rib { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px; }
  .bsh-rh0 { display: none; }
  .bsh-rh { font-size: 9px; letter-spacing: 0; }
  .bsh-rl { grid-column: 1 / -1; margin-top: 8px; min-height: 0; }
  .bsh-cell { height: 28px; border-radius: 8px; }

  .bsh-stairs { grid-template-columns: minmax(0, 1fr); }
  .bsh-step { height: auto !important; min-height: 180px; }

  .bsh-vessels { gap: 6px; }
  .bsh-vessel { height: 180px; }
  .bsh-lab { padding: 8px; }
  .bsh-lab.top { font-size: 9px; letter-spacing: 0; }
  .bsh-lab.bot { font-size: 11px; }

  .bsh-finder, .bsh-map { grid-template-columns: minmax(0, 1fr); }
  .bsh-map .bsh-ax { display: none; }
  .bsh-off { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bsh-st.on .bsh-open { animation: none; }
  .bsh-st, .bsh-cell, .bsh-opt, .bsh-off { transition: none; }
}
