/* =====================================================================
   3iCMS front-end base.

   Every value here reads a token from theme.css (generated on save).
   The fallbacks after each var() are what the site looks like before an
   owner has touched Theme options — so the page always renders correctly,
   even with an empty settings table.
   ===================================================================== */

*{box-sizing:border-box}
body.site{
  margin:0;
  background:var(--paper,#fff);
  color:var(--ink,#131a19);
  font-family:var(--font-body,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif);
  font-size:var(--text-size,16px);
  line-height:var(--line-height,1.65);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%}
a{color:var(--link,var(--accent,#0e7c86))}
a:hover{color:var(--accent-hover,var(--accent,#0e7c86))}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font-heading,var(--font-body,sans-serif));
  color:var(--heading,var(--ink,#131a19));
  font-weight:var(--heading-weight,700);
  letter-spacing:var(--heading-spacing,-.02em);
  line-height:var(--heading-lh,1.2);
  text-wrap:balance;
}
h1{font-size:var(--h1,46px)}
h2{font-size:var(--h2,34px)}
h3{font-size:var(--h3,26px)}
h4{font-size:var(--h4,21px)}
h5{font-size:var(--h5,18px)}
h6{font-size:var(--h6,16px)}

.container{max-width:var(--container,1180px);margin:0 auto;padding:0 22px;width:100%}
.muted{color:var(--ink-3,#6b7a78)}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent,#0e7c86);color:#fff;padding:10px 16px;z-index:200}
.skip-link:focus{left:0}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--accent,#0e7c86);outline-offset:2px}

/* ---------------------------------------------------------- top bar */
.topbar{background:var(--topbar-bg,#131a19);color:var(--topbar-fg,#fff);font-size:13.5px}
.topbar .container{padding-top:8px;padding-bottom:8px;text-align:center}

/* ----------------------------------------------------------- header */
.site-header{background:var(--header-bg,#fff);color:var(--header-fg,var(--ink,#131a19));
  border-bottom:1px solid var(--line,#d3dbd8);position:relative;z-index:30}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:24px;
  min-height:var(--header-h,76px);flex-wrap:wrap}
.head-sticky .site-header{position:sticky;top:0}
.head-shadow .site-header{transition:box-shadow .2s}
.head-shadow.is-scrolled .site-header{box-shadow:0 8px 26px -18px rgba(0,0,0,.45)}
.logo{font-weight:700;font-size:19px;letter-spacing:-.02em;color:inherit;text-decoration:none;display:flex;align-items:center}
.logo img{display:block;height:var(--logo-h,34px);width:auto}

/* --------------------------------------- the twenty header styles (P1)
   The body carries head-<style> plus its family (head-fam-row / -stack /
   -side) and behaviour flags; everything below keys off those. The mobile
   breakpoint rules live in the generated theme.css, where the breakpoint
   number is known. */

.head-brand{display:flex;align-items:center;gap:14px;min-width:0}
.head-slogan{font-size:13px;line-height:1.35;color:var(--ink-3,#6b7a78);max-width:230px}
.head-tools{display:flex;align-items:center;gap:14px}
.head-fw .site-header>.container{max-width:none;padding-left:26px;padding-right:26px}

/* Modern — the classic row given more air, with the button doing the talking. */
.head-modern .site-header .container{min-height:calc(var(--header-h,76px) + 10px)}
.head-modern .head-cta{padding-left:22px;padding-right:22px}

/* Plain — full width, hard border, menu items separated by rules. */
.head-plain .site-header{border-bottom-width:2px}
.head-plain .site-header>.container{max-width:none;padding-left:24px;padding-right:24px}
.head-plain .menu{gap:0}
.head-plain .menu>li>a{border-radius:0;padding:9px 20px}
.head-plain .menu>li+li{border-left:1px solid var(--line,#d3dbd8)}

/* The stacked family — brand row on top, menu row underneath. */
.head-fam-stack .head-top{display:flex;align-items:center;justify-content:space-between;gap:24px;
  min-height:var(--header-h,76px);flex-wrap:wrap}
.head-fam-stack .head-nav-row{display:flex;min-height:0;border-top:1px solid var(--line,#d3dbd8);
  padding-top:2px;padding-bottom:2px}
.head-stack-center .head-top{position:relative;justify-content:center}
.head-stack-center .head-tools{position:absolute;right:22px;top:50%;transform:translateY(-50%)}
.head-stack-center .head-nav-row{justify-content:center}
.head-stack-right .head-top{flex-direction:row-reverse}
.head-stack-right .head-nav-row{justify-content:flex-end}
.head-magazine .head-banner{margin-left:auto;min-width:0;max-width:60%}
.head-magazine .head-banner img{max-height:calc(var(--header-h,76px) - 16px);width:auto}

/* Split — the menu in two halves with the logo between them. */
.head-fam-row .nav-half{flex:1;min-width:0}
.head-fam-row .nav-left{justify-content:flex-end}
.head-fam-row .nav-left .menu{justify-content:flex-end}
.head-fam-row .nav-right{justify-content:flex-start}
.head-brand-center{flex:0 0 auto;padding:0 10px}

/* Split | Semitransparent — over the content on a translucent sheet. */
.head-semi.head-over:not(.is-scrolled) .site-header{
  background:color-mix(in srgb,var(--header-bg,#fff) 62%,transparent);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* Simple & Overlay — the menu stays behind the button at every width. The
   generated breakpoint rules leave these two alone; this shows the button. */
.head-burger .nav-toggle{display:flex}

/* Below slider — the hoisted first section sits above everything. */
.head-hoist{position:relative;z-index:20}

/* The creative family — a fixed vertical column. Collapses back to a top
   bar below the breakpoint (rules generated in theme.css). */
body.head-fam-side{padding-inline-start:var(--sideh-w,240px)}
body.head-fam-side.head-side-right{padding-inline-start:0;padding-inline-end:var(--sideh-w,240px)}
.head-fam-side .site-header{position:fixed;top:0;bottom:0;left:0;width:var(--sideh-w,240px);z-index:50;
  border-bottom:0;border-right:1px solid var(--line,#d3dbd8);overflow-y:auto}
.head-side-right .site-header{left:auto;right:0;border-right:0;border-left:1px solid var(--line,#d3dbd8)}
.head-side-inner{display:flex;flex-direction:column;gap:26px;padding:30px 22px;min-height:100%}
.head-fam-side .head-brand{flex-direction:column;align-items:flex-start;gap:8px}
.head-fam-side .head-slogan{max-width:none}
.head-fam-side .nav-vertical .menu{flex-direction:column;align-items:stretch;gap:2px}
.head-fam-side .nav-vertical .menu>li>a{display:flex;justify-content:space-between;align-items:center;padding:9px 10px}
.head-fam-side .nav-vertical .menu .has-children>a::after{transform:rotate(-90deg) translateX(-1px)}
.head-fam-side .nav-vertical .submenu{top:0;left:100%;transform:translateX(-4px)}
.head-fam-side .nav-vertical .menu li:hover>.submenu{transform:translateX(0)}
.head-side-right .nav-vertical .submenu{left:auto;right:100%;transform:translateX(4px)}
.head-side-right .nav-vertical .menu li:hover>.submenu{transform:translateX(0)}
.head-side-open .nav-vertical .submenu,.head-side-open .nav-vertical .menu li:hover>.submenu{position:static;
  opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;background:none;
  padding:0 0 4px 16px;min-width:0}
.head-side-open .nav-vertical .menu .has-children>a::after{transform:none}
.head-fam-side .head-side-foot{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:12px}

/* ------------------------------------------------------------- menu */
.nav{display:flex}
.menu{list-style:none;display:flex;gap:var(--menu-gap,4px);margin:0;padding:0;flex-wrap:wrap}
.menu li{position:relative}
.menu a{display:block;padding:9px 13px;border-radius:var(--radius,8px);color:var(--menu-color,inherit);
  text-decoration:none;font-size:var(--menu-size,15px);font-weight:var(--menu-weight,500);
  text-transform:var(--menu-case,none);transition:color .15s,background .15s}
.menu a:hover{background:color-mix(in srgb,var(--menu-hover,var(--accent,#0e7c86)) 10%,transparent);color:var(--menu-hover,var(--accent,#0e7c86))}
.menu .is-current>a,.menu .is-ancestor>a{color:var(--menu-hover,var(--accent,#0e7c86));font-weight:600}
.menu .has-children>a::after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:currentColor;transform:translateY(2px)}
.submenu{list-style:none;margin:0;padding:6px;position:absolute;top:100%;left:0;min-width:210px;
  background:var(--submenu-bg,#fff);border:1px solid var(--line,#d3dbd8);border-radius:var(--submenu-radius,8px);
  box-shadow:0 14px 34px -14px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateY(-4px);
  transition:opacity .15s,transform .15s,visibility .15s;z-index:40}
.menu li:hover>.submenu,.menu li.is-open>.submenu{opacity:1;visibility:visible;transform:translateY(0)}
.submenu a{white-space:nowrap;font-size:14.5px;text-transform:none}
.menu .is-mega>.submenu{display:flex;gap:10px;left:auto;right:0;min-width:min(720px,90vw)}
.menu .is-mega>.submenu>li{flex:1}
.menu .is-mega .submenu .submenu{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;padding:0;min-width:0}
.menu .is-mega>.submenu>li>a{font-weight:600;border-bottom:1px solid var(--line,#d3dbd8);border-radius:0;margin-bottom:4px}

.nav-toggle{display:none;flex-direction:row;align-items:center;gap:8px;background:none;border:1px solid var(--line,#d3dbd8);
  border-radius:var(--radius,8px);padding:9px 10px;cursor:pointer;color:inherit}
.nav-toggle-bars{display:flex;flex-direction:column;gap:4px}
.nav-toggle-bars span{display:block;width:18px;height:2px;background:currentColor;border-radius:2px}
.nav-toggle-label{font-size:12.5px;font-weight:600;letter-spacing:.06em}

/* The sticky logo: hidden until the header is stuck and scrolled, then it
   replaces the normal one. No JS beyond the .is-scrolled class that exists. */
.logo-stick{display:none}
.head-sticky.is-scrolled .logo.has-stick img:not(.logo-stick){display:none}
.head-sticky.is-scrolled .logo .logo-stick{display:block;height:var(--logo-h,34px);width:auto}
.mobile-nav{background:var(--header-bg,#fff);border-bottom:1px solid var(--line,#d3dbd8)}
.mobile-nav .menu{flex-direction:column;padding:10px 22px 16px;gap:0}
.mobile-nav .submenu{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;padding:0 0 0 14px;min-width:0}
body.nav-open{overflow:hidden}

/* ------------------------------------------------------- breadcrumbs */
.breadcrumbs{padding:16px 0 0;font-size:13.5px;color:var(--ink-3,#6b7a78)}
.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.breadcrumbs li+li::before{content:"/";margin-right:6px;color:var(--line,#d3dbd8)}
.breadcrumbs a{color:inherit;text-decoration:none}
.breadcrumbs a:hover{color:var(--accent,#0e7c86);text-decoration:underline}
.breadcrumbs [aria-current]{color:var(--ink,#131a19)}

/* ----------------------------------------------------------- content */
.site-main{min-height:52vh}
.page-body{padding:var(--section-pad,60px) 22px}
.page-body h1{margin:0 0 20px}
.empty-note{background:var(--surface-2,#f4f6f5);border:1px solid var(--line,#d3dbd8);
  border-radius:var(--radius,10px);padding:22px 24px;max-width:62ch}
.empty-note p{margin:0 0 8px}
.empty-note .small{font-size:14px;color:var(--ink-3,#6b7a78);margin:0}
.post-meta{color:var(--ink-3,#6b7a78);font-size:14px;margin:-8px 0 20px}

/* ----------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;gap:9px;border-radius:var(--btn-radius,7px);
  font-weight:var(--btn-weight,600);font-size:var(--btn-size,15px);text-transform:var(--btn-case,none);
  padding:var(--btn-py,13px) var(--btn-px,24px);text-decoration:none;border:2px solid transparent;
  line-height:1.2;cursor:pointer;box-shadow:var(--btn-shadow,none);transition:filter .15s,background .15s,color .15s}
.btn:hover{text-decoration:none;filter:brightness(1.07)}
.btn-solid,.btn:not(.btn-outline):not(.btn-ghost){background:var(--btn-bg,var(--accent,#0e7c86));color:var(--btn-fg,#fff)}
.btn-outline{background:transparent;border-color:var(--btn-bg,var(--accent,#0e7c86));color:var(--btn-bg,var(--accent,#0e7c86));box-shadow:none}
.btn-outline:hover{background:var(--btn-bg,var(--accent,#0e7c86));color:var(--btn-fg,#fff);filter:none}
.btn-ghost{background:transparent;color:var(--accent,#0e7c86);box-shadow:none}
/* Two classes, so a ghost button stays flush left even at .btn-lg, whose size
   rule sets the padding shorthand and would otherwise put it back. */
.btn.btn-ghost{padding-left:0;padding-right:0}

/* ------------------------------------------------------------ search */
.search-form{display:flex;gap:8px;margin:0 0 26px;max-width:520px}
.search-form input{flex:1;padding:10px 12px;border:1px solid var(--line,#d3dbd8);border-radius:var(--radius,8px);font:inherit;
  background:var(--paper,#fff);color:var(--ink,#131a19)}
.result-list{list-style:none;padding:0;margin:0}
.result-list li{padding:14px 0;border-bottom:1px solid var(--line,#d3dbd8)}
.result-list li:last-child{border:0}
.result-list a{font-size:18px;font-weight:600}
.result-list p{margin:4px 0 0;color:var(--ink-3,#6b7a78);font-size:14.5px}

/* ------------------------------------------------------------ footer */
.site-footer{background:var(--footer-bg,#f4f6f5);color:var(--footer-fg,#6b7a78);
  border-top:1px solid var(--line,#d3dbd8);padding:var(--footer-pad,28px) 0;margin-top:60px}
.site-footer p{margin:0}
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4{color:var(--footer-heading,var(--ink,#131a19))}
.site-footer a{color:var(--footer-link,var(--accent,#0e7c86))}
.footer-top{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:18px;
  margin-bottom:18px;border-bottom:1px solid var(--line,#d3dbd8)}
.footer-top:empty{display:none;border:0;margin:0;padding:0}
.footer-nav .menu a{padding:5px 10px;font-size:14.5px;color:inherit;text-transform:none}
.footer-nav .menu a:hover{color:var(--footer-link,var(--accent,#0e7c86));background:none}
.footer-contact{display:flex;gap:16px;flex-wrap:wrap;font-size:14.5px}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:14px}

.to-top{position:fixed;right:20px;bottom:20px;z-index:50;width:42px;height:42px;border-radius:50%;
  border:1px solid var(--line,#d3dbd8);background:var(--paper,#fff);color:var(--ink,#131a19);cursor:pointer;
  display:grid;place-items:center;box-shadow:0 10px 26px -14px rgba(0,0,0,.4)}
.to-top .icon{width:18px;height:18px;transform:rotate(180deg)}
.to-top:hover{background:var(--accent,#0e7c86);color:#fff;border-color:transparent}

/* ===================================================================
   Builder layout — fraction widths, not a 12-column grid.
   =================================================================== */
.sec{position:relative;padding-top:var(--section-pad,60px);padding-bottom:var(--section-pad,60px);--sec-pt:var(--section-pad,60px);--sec-pb:var(--section-pad,60px)}
.sec-inner{max-width:var(--container,1180px);margin:0 auto;padding:0 22px;width:100%}
.sec-full .sec-inner{max-width:none;padding:0}
.sec-fullcontent .sec-inner{max-width:none}
.cols{display:flex;flex-wrap:wrap;gap:var(--gap,30px);align-items:stretch}
.col{flex:1 1 100%;min-width:0}

.w-full{flex-basis:100%}
.w-1-2{flex-basis:calc(50% - (var(--gap,30px) / 2))}
.w-1-3{flex-basis:calc(33.3333% - (var(--gap,30px) * 2 / 3))}
.w-2-3{flex-basis:calc(66.6666% - (var(--gap,30px) / 3))}
.w-1-4{flex-basis:calc(25% - (var(--gap,30px) * 3 / 4))}
.w-3-4{flex-basis:calc(75% - (var(--gap,30px) / 4))}
.w-1-5{flex-basis:calc(20% - (var(--gap,30px) * 4 / 5))}
.w-2-5{flex-basis:calc(40% - (var(--gap,30px) * 3 / 5))}
.w-3-5{flex-basis:calc(60% - (var(--gap,30px) * 2 / 5))}
.w-4-5{flex-basis:calc(80% - (var(--gap,30px) / 5))}
.w-1-6{flex-basis:calc(16.6666% - (var(--gap,30px) * 5 / 6))}

/* Item widths inside a column (BeTheme's item size). Only a column that holds
   a narrower item becomes a wrapping row; the rest keep the stacked flow. */
.col-mixed{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:var(--el-gap,22px) var(--gap,30px)}
.col-mixed>.el{flex:1 1 100%;min-width:0}
.col-mixed>.el+.el{margin-top:0}
.col-mixed>.el-w-1-2{flex-basis:calc(50% - (var(--gap,30px) / 2))}
.col-mixed>.el-w-1-3{flex-basis:calc(33.3333% - (var(--gap,30px) * 2 / 3))}
.col-mixed>.el-w-2-3{flex-basis:calc(66.6666% - (var(--gap,30px) / 3))}
.col-mixed>.el-w-1-4{flex-basis:calc(25% - (var(--gap,30px) * 3 / 4))}
.col-mixed>.el-w-3-4{flex-basis:calc(75% - (var(--gap,30px) / 4))}
.col-mixed>.el-w-1-5{flex-basis:calc(20% - (var(--gap,30px) * 4 / 5))}
.col-mixed>.el-w-2-5{flex-basis:calc(40% - (var(--gap,30px) * 3 / 5))}
.col-mixed>.el-w-3-5{flex-basis:calc(60% - (var(--gap,30px) * 2 / 5))}
.col-mixed>.el-w-4-5{flex-basis:calc(80% - (var(--gap,30px) / 5))}
.col-mixed>.el-w-1-6{flex-basis:calc(16.6666% - (var(--gap,30px) * 5 / 6))}
.col-mixed>.el-w-5-6{flex-basis:calc(83.3333% - (var(--gap,30px) / 6))}
.col-mixed>[class*="el-w-"]{flex-grow:0}
@media(max-width:640px){.col-mixed>.el{flex-basis:100%!important}}

.sec-inverted h1,.sec-inverted h2,.sec-inverted h3,
.sec-inverted h4,.sec-inverted h5,.sec-inverted h6{color:inherit}
.sec-inverted a:not(.btn){color:inherit;text-decoration:underline}

.el+.el{margin-top:var(--el-gap,22px)}
.el-error{border:1px solid #a8481c;background:#f6e7de;color:#7a1f0c;padding:10px 14px;border-radius:6px;font-size:14px}
.icon{width:1em;height:1em;fill:currentColor;vertical-align:-.125em}

/* fade-in, opt-in via Theme options and always off for reduced motion */
.anim .el{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.anim .el.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .anim .el{opacity:1!important;transform:none!important;transition:none}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

.hide-desktop{display:none}
@media(max-width:1024px){
  .hide-desktop{display:block}
  .hide-tablet{display:none}
  .w-1-4,.w-1-5,.w-1-6,.w-2-5,.w-1-3{flex-basis:calc(50% - (var(--gap,30px) / 2))}
}
@media(max-width:640px){
  .hide-tablet{display:block}
  .hide-mobile{display:none}
  .col{flex-basis:100%!important}
  .sec{padding-top:var(--section-pad-m,44px);padding-bottom:var(--section-pad-m,44px)}
  .sec-inner,.container{padding-left:18px;padding-right:18px}
}

/* The `hidden` attribute must always win — see the note in admin.css.
   Without this, .to-top{display:grid} defeats [hidden] and the back-to-top
   button is stuck on screen from the moment the page loads. */
[hidden]{display:none!important}

/* --- P5: archives, pagination, single post --- */
.arc-head{padding:var(--section-pad,60px) 22px 0}
.arc-head h1{margin:0}
.arc-intro{margin:12px 0 0;color:var(--ink-3,#6b7a78);max-width:64ch;line-height:1.65}
.arc-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px}
.arc-filter{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border:1px solid var(--line,#d3dbd8);
  border-radius:99px;font-size:14px;font-weight:500;text-decoration:none;color:var(--ink,#131a19);background:var(--paper,#fff)}
.arc-filter:hover{border-color:var(--accent,#0e7c86);color:var(--accent,#0e7c86)}
.arc-filter.is-active{background:var(--accent,#0e7c86);border-color:var(--accent,#0e7c86);color:#fff}
.arc-filter span{font-size:11.5px;opacity:.7;font-variant-numeric:tabular-nums}

.pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:38px}
.pagination a{padding:9px 14px;border:1px solid var(--line,#d3dbd8);border-radius:var(--radius,8px);
  text-decoration:none;color:var(--ink,#131a19);font-size:14.5px;font-variant-numeric:tabular-nums}
.pagination a:hover{border-color:var(--accent,#0e7c86);color:var(--accent,#0e7c86)}
.pagination .is-current{background:var(--accent,#0e7c86);border-color:var(--accent,#0e7c86);color:#fff;font-weight:600}
.pg-gap{padding:0 4px;color:var(--ink-3,#6b7a78)}

.post-head{padding:var(--section-pad,60px) 22px 0;max-width:min(var(--container,1180px),820px)}
.post-head h1{margin:0}
.post-terms{margin:0 0 14px;display:flex;gap:8px;flex-wrap:wrap}
.post-terms a{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent,#0e7c86);text-decoration:none}
.post-lead{margin:16px 0 0;font-size:18.5px;line-height:1.6;color:var(--ink-3,#6b7a78)}
.post-featured{padding:28px 22px 0;max-width:min(var(--container,1180px),960px)}
.post-featured img{width:100%;height:auto;border-radius:var(--radius,10px)}
.post-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:26px 22px 0;font-size:14px}
.post-tags span{color:var(--ink-3,#6b7a78)}
.post-tags a{text-decoration:none;background:var(--surface-2,#f4f6f5);border:1px solid var(--line,#d3dbd8);
  padding:4px 11px;border-radius:99px;color:var(--ink,#131a19)}
.post-tags a:hover{border-color:var(--accent,#0e7c86);color:var(--accent,#0e7c86)}
.related{border-top:1px solid var(--line,#d3dbd8);margin-top:40px}
.related-title{margin:0 0 24px;font-size:var(--h3,26px)}

/* ------------------------------------------------------------ sidebars
   A layout wrapper only exists when the page actually has a sidebar, so a
   full-bleed builder page is never wrapped and never constrained. Inside it
   the container-width helpers are neutralised, because the column IS the
   container now — otherwise every section would be indented twice. */
.lay{max-width:var(--container,1180px);margin:0 auto;padding:0 22px;width:100%;
  display:grid;gap:var(--side-gap,44px);align-items:start}
.lay-left{grid-template-columns:var(--side-col,26%) minmax(0,1fr)}
.lay-right{grid-template-columns:minmax(0,1fr) var(--side-col,26%)}
.lay-both{grid-template-columns:var(--side-col,26%) minmax(0,1fr) var(--side-col,26%)}
.lay-main{min-width:0}

.lay-main .container,
.lay-main .sec-inner{max-width:none;padding-left:0;padding-right:0;width:100%}
.lay-main .post-head,
.lay-main .post-featured,
.lay-main .post-tags{max-width:none;padding-left:0;padding-right:0}
.lay-main .sec-full .sec-inner,
.lay-main .sec-fullcontent .sec-inner{max-width:none}
.lay-main>.sec:first-child,
.lay-main article>.sec:first-child{padding-top:0}
.lay-main .post-head{padding-top:0}

.lay-side{min-width:0;padding-top:var(--section-pad,60px);font-size:15px}
.lay-side .sec{padding-top:0;padding-bottom:30px}
.lay-side .sec:last-child{padding-bottom:0}
.lay-side .sec-inner{max-width:none;padding:0}
.lay-side h2{font-size:var(--h4,21px)}
.lay-side h3{font-size:var(--h5,18px)}
.lay-side .pl{grid-template-columns:1fr}
.lay-sticky .lay-side{position:sticky;top:24px}
.head-sticky .lay-sticky .lay-side{top:calc(var(--header-h,76px) + 18px)}

@media(max-width:980px){
  /* One column. The sidebar follows the article rather than preceding it,
     however it was placed on the desktop — a reader on a phone wants the
     thing they came for first. */
  .lay,.lay-left,.lay-right,.lay-both{grid-template-columns:minmax(0,1fr);gap:0}
  .lay-main{order:1}
  .lay-side{order:2;position:static;padding-top:34px;margin-top:34px;
    border:0;border-top:1px solid var(--line,#d3dbd8);margin-left:0;margin-right:0;padding-left:0;padding-right:0}
}

/* ---------------------------------------------------- entrance animations
   Hidden ONLY under html.js, which exists only once a script has run. With
   JavaScript blocked, broken or still loading, every one of these is simply
   visible — hiding first and revealing later is how a page ends up permanently
   blank for the one visitor whose script did not load. */
.js [data-anim]{opacity:0;will-change:opacity,transform;
  transition:opacity .6s cubic-bezier(.22,.61,.36,1),transform .6s cubic-bezier(.22,.61,.36,1)}
.js [data-anim="up"]{transform:translateY(28px)}
.js [data-anim="down"]{transform:translateY(-28px)}
.js [data-anim="left"]{transform:translateX(-32px)}
.js [data-anim="right"]{transform:translateX(32px)}
.js [data-anim="zoom"]{transform:scale(.94)}
.js [data-anim].anim-in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  /* Not "animate faster" — no motion at all, and nothing ever hidden waiting
     for an observer that will not fire. */
  .js [data-anim]{opacity:1!important;transform:none!important;transition:none!important}
}

/* ================================================================ the frame
   Action bar, subheader, header states, mega menus and the mobile panel.
   Batch 09. */

/* ---------------------------------------------------------- action bar */
.action-bar{background:var(--topbar-bg,#131a19);color:var(--topbar-fg,#fff);font-size:13.5px}
.action-bar .container{display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding-top:7px;padding-bottom:7px;min-height:36px}
.ab-side{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ab-right{justify-content:flex-end}
/* One side used alone should not sit in the middle of the bar. */
.ab-side:empty{display:none}
.ab-side:only-child{margin-right:auto}
.ab-text{margin:0}
.action-bar a{color:inherit;text-decoration:none;opacity:.9}
.action-bar a:hover{opacity:1;text-decoration:underline}
.ab-link{display:inline-flex;align-items:center;gap:6px}
.ab-link .icon{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;flex:0 0 auto}
.ab-social{display:inline-flex;gap:6px}
.ab-social-link{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border-radius:50%;background:rgba(255,255,255,.12)}
.ab-social-link:hover{background:rgba(255,255,255,.24);text-decoration:none}
.ab-social-link .icon{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none}
@media(max-width:700px){
  /* Two lines of chrome above a phone screen is most of the first thing
     anybody sees, so this is off unless the owner asks for it. */
  .ab-hide-mobile{display:none}
  .action-bar .container{flex-direction:column;gap:4px;text-align:center}
  .ab-right{justify-content:center}
}

/* ------------------------------------------------------- header states */
/* Over the content: no background until the page scrolls. The header keeps its
   height so nothing jumps when the background arrives. */
.head-over .site-header{position:absolute;left:0;right:0;top:auto;z-index:40;
  background:transparent;border-bottom-color:transparent;color:var(--header-over-fg,#fff)}
.head-over.head-sticky .site-header{position:fixed}
.head-over .site-header .menu>li>a{color:inherit}
.head-over .logo-over{display:none}
.head-over:not(.is-scrolled) .logo img:not(.logo-over){opacity:0}
.head-over:not(.is-scrolled) .logo .logo-over{display:block;position:absolute;inset:0;opacity:1}
.head-over .logo{position:relative}
.head-over.is-scrolled .site-header{background:var(--header-bg,#fff);color:var(--header-fg,var(--ink,#131a19));
  border-bottom-color:var(--line,#d3dbd8)}
/* Nothing sits above a transparent header, so the first section starts at the
   top of the window and the header floats over it. */
.head-over .site-main{padding-top:0}

.head-sticky .site-header{transition:height .2s,transform .25s ease,background .2s}
.head-stick-shrink.is-scrolled .site-header .container{min-height:calc(var(--header-h,76px) * .76)}
.head-stick-shrink.is-scrolled .logo img{max-height:calc(var(--logo-h,34px) * .84)}
/* Hide going down, come back going up: the whole viewport for reading, and the
   menu one flick away. */
.head-stick-hide .site-header{will-change:transform}
.head-stick-hide.is-nav-down .site-header{transform:translateY(-100%)}

/* ---------------------------------------------------------- subheader */
.subheader{background:var(--sub-bg,#f4f6f5);color:var(--sub-fg,inherit);
  border-bottom:1px solid var(--line,#d3dbd8);position:relative;isolation:isolate;
  background-size:cover;background-position:center}
.sub-has-image{color:#fff}
.sub-has-image::before{content:"";position:absolute;inset:0;background:#0b0f0e;
  opacity:var(--sub-overlay,.45);z-index:-1}
.subheader .container{display:flex;flex-direction:column;gap:10px}
.sub-h-sm .container{padding-top:22px;padding-bottom:22px}
.sub-h-md .container{padding-top:44px;padding-bottom:44px}
.sub-h-lg .container{padding-top:84px;padding-bottom:84px}
.sub-left   .container{align-items:flex-start;text-align:left}
.sub-center .container{align-items:center;text-align:center}
.sub-right  .container{align-items:flex-end;text-align:right}
.sub-title{margin:0;font-size:var(--h2,34px);line-height:1.15;text-wrap:balance}
.sub-lead{margin:0;font-size:17px;line-height:1.55;max-width:62ch;opacity:.85}
.subheader .breadcrumbs{margin:0;font-size:13.5px}
.sub-has-image .breadcrumbs a,.sub-inverted .breadcrumbs a{color:inherit}
.crumbs-loose{padding-top:18px}
@media(max-width:700px){
  .sub-h-lg .container{padding-top:48px;padding-bottom:48px}
  .sub-h-md .container{padding-top:30px;padding-bottom:30px}
}

/* ---------------------------------------------------------- mega menus
   These have rendered a class since the menus screen was built and nothing
   ever styled it, so a mega item behaved as an ordinary dropdown. */
.menu .is-mega{position:static}
.menu .is-mega>.submenu{left:0;right:0;width:100%;display:grid;gap:0 30px;
  padding:22px 26px;border-radius:0 0 var(--submenu-radius,8px) var(--submenu-radius,8px)}
.menu .is-mega>.submenu>li{break-inside:avoid}
/* A mega panel's first level is the column headings, not links to follow. */
.menu .is-mega>.submenu>li>a{font-weight:700;font-size:13px;letter-spacing:.08em;
  text-transform:uppercase;opacity:.65;pointer-events:none;padding-bottom:4px}
.menu .is-mega>.submenu>li>.submenu{position:static;opacity:1;visibility:visible;transform:none;
  box-shadow:none;border:0;padding:0;min-width:0;background:none;display:block}
.mega-cols-1{grid-template-columns:1fr}
.mega-cols-2{grid-template-columns:repeat(2,1fr)}
.mega-cols-3{grid-template-columns:repeat(3,1fr)}
.mega-cols-4{grid-template-columns:repeat(4,1fr)}
.mega-cols-5{grid-template-columns:repeat(5,1fr)}
.mega-cols-6{grid-template-columns:repeat(6,1fr)}
@media(max-width:1100px){
  .mega-cols-4,.mega-cols-5,.mega-cols-6{grid-template-columns:repeat(3,1fr)}
}

/* ------------------------------------------------------- mobile menu */
.mnav-inner{position:relative}
.mnav-close{display:none;position:absolute;top:10px;right:14px;z-index:2;
  background:none;border:0;font-size:30px;line-height:1;cursor:pointer;color:inherit;
  width:44px;height:44px}
.mobile-nav .menu>li>a{font-size:var(--menu-mobile-size,17px)}

/* Slides in from the right. */
.mnav-panel .mobile-nav{position:fixed;top:0;right:0;bottom:0;width:min(340px,84vw);z-index:60;
  overflow-y:auto;border-bottom:0;border-left:1px solid var(--line,#d3dbd8);
  box-shadow:-18px 0 44px -28px rgba(0,0,0,.5);transform:translateX(100%);
  transition:transform .28s cubic-bezier(.22,.61,.36,1)}
.mnav-panel .mobile-nav[hidden]{display:block;transform:translateX(100%);visibility:hidden}
.mnav-panel.nav-open .mobile-nav{transform:none;visibility:visible}
.mnav-panel .mnav-inner{padding-top:52px}
.mnav-panel .mnav-close{display:block}

/* Fills the screen. */
.mnav-full .mobile-nav{position:fixed;inset:0;z-index:60;overflow-y:auto;border:0;
  display:flex;align-items:center;justify-content:center;opacity:0;
  transition:opacity .22s}
.mnav-full .mobile-nav[hidden]{display:flex;visibility:hidden;opacity:0}
.mnav-full.nav-open .mobile-nav{visibility:visible;opacity:1}
.mnav-full .mnav-inner{width:100%;max-width:520px;padding:60px 24px}
.mnav-full .mnav-close{display:block;top:-40px}
.mnav-full .menu{align-items:center;text-align:center}
.mnav-full .menu>li>a{font-size:calc(var(--menu-mobile-size,17px) + 5px)}

/* A backdrop for the two overlay modes, so a tap outside closes it. */
.mnav-panel.nav-open::after,.mnav-full.nav-open::after{content:"";position:fixed;inset:0;z-index:55;
  background:rgba(11,15,14,.45)}
.mnav-full.nav-open::after{background:rgba(11,15,14,.9)}
body.nav-open{overflow:hidden}

@media(prefers-reduced-motion:reduce){
  .mnav-panel .mobile-nav,.mnav-full .mobile-nav,.head-sticky .site-header{transition:none}
}

/* -------------------------------------------------------- footer areas */
.footer-areas{display:grid;gap:30px;padding-bottom:26px}
.footer-cols-1{grid-template-columns:1fr}
.footer-cols-2{grid-template-columns:repeat(2,1fr)}
.footer-cols-3{grid-template-columns:repeat(3,1fr)}
.footer-cols-4{grid-template-columns:repeat(4,1fr)}
/* Widgets stack inside a column with a consistent rhythm, so an area holding a
   heading, a menu and an address does not depend on each element remembering
   its own bottom margin. */
.footer-area{display:flex;flex-direction:column;gap:18px}
.footer-area .widget>.el{margin:0}
.footer-area .sec{padding-top:0;padding-bottom:0}
.footer-area .sec-inner{max-width:none;padding:0}
.footer-area h2,.footer-area h3{font-size:var(--h5,18px);margin:0 0 10px}
@media(max-width:900px){
  .footer-cols-3,.footer-cols-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .footer-cols-2,.footer-cols-3,.footer-cols-4{grid-template-columns:1fr}
}

/* ============================================== theme options, batch 10 */

/* Boxed: the whole site floats in a card on a coloured page. */
.layout-boxed{background:var(--boxed-bg,#e7ecea)}
.layout-boxed .action-bar,
.layout-boxed .site-header,
.layout-boxed .site-main,
.layout-boxed .site-footer{max-width:var(--boxed-w,1360px);margin-left:auto;margin-right:auto;
  background-clip:padding-box}
.layout-boxed .site-main{background:var(--paper,#fff)}
.layout-boxed .site-header{box-shadow:0 1px 0 var(--line,#d3dbd8)}
/* A full-bleed section inside a boxed site must stop at the box, not at the
   window — otherwise it hangs off both sides of the card. */
.layout-boxed .sec-full,.layout-boxed .sl-full{width:auto;max-width:none;margin-left:0;margin-right:0}
@media(max-width:1400px){
  .layout-boxed{background:var(--paper,#fff)}
}

/* Form fields, everywhere on the site rather than only inside the contact
   element — search, comments and anything an element builds all read these. */
.site input[type=text],.site input[type=email],.site input[type=tel],.site input[type=url],
.site input[type=number],.site input[type=date],.site input[type=time],.site input[type=search],
.site input[type=password],.site textarea,.site select{
  background:var(--form-bg,var(--paper,#fff));color:var(--form-fg,var(--ink,#131a19));
  border:var(--form-bw,1px) solid var(--form-line,var(--line,#d3dbd8));
  border-radius:var(--form-radius,7px);font:inherit}
.site ::placeholder{color:var(--form-ph,var(--ink-3,#6b7a78));opacity:1}
.site input:focus,.site textarea:focus,.site select:focus{
  border-color:var(--form-focus,var(--accent,#0e7c86));
  outline:2px solid var(--form-focus,var(--accent,#0e7c86));outline-offset:1px}

/* The menu can carry its own family. */
.menu,.mobile-nav .menu{font-family:var(--font-menu,var(--font-body))}

/* A third button, for the one that matters more than the others. */
.btn{border:var(--btn-bw,0) solid var(--btn-bc,transparent)}
/* An outline button is its outline, so it keeps a border whatever the theme's
   border width is set to — this shorthand comes after the one above, and
   without it a theme with no button border renders the outline style as an
   invisible box with text in it. */
.btn-outline{border:2px solid var(--btn-bg,var(--accent,#0e7c86))}
.btn-outline:hover{border-color:var(--btn-bg,var(--accent,#0e7c86))}
.btn-alt{background:var(--btn-alt-bg,var(--ink,#131a19));color:var(--btn-alt-fg,#fff);border-color:transparent}
.btn-alt:hover{filter:brightness(1.14)}

/* Header call to action and search. */
.head-cta{margin-left:6px;flex:0 0 auto}
.head-search{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:50%;color:inherit;flex:0 0 auto}
.head-search:hover{background:rgba(0,0,0,.06);text-decoration:none}
.head-search .icon{width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none}
.head-searchbox{position:absolute;left:0;right:0;top:100%;z-index:30;
  background:var(--header-bg,#fff);border-bottom:1px solid var(--line,#d3dbd8);
  box-shadow:0 14px 30px -22px rgba(0,0,0,.5)}
.head-searchbox .container{display:flex;gap:10px;padding-top:14px;padding-bottom:14px}
.head-searchbox input{flex:1}
.site-header{position:relative}

/* ------------------------------------------------------------------ authors */
.post-by{margin-left:10px}
.post-by a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* The box under a post. Only drawn when there is a bio or a picture — a card
   holding one name, repeated from the byline six inches above, is furniture. */
.author-box{display:flex;gap:16px;align-items:flex-start;margin:34px auto 0;
  padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius,10px);
  background:var(--surface)}
.author-pic{width:64px;height:64px;flex:0 0 auto;border-radius:50%;object-fit:cover}
.author-text{min-width:0}
.author-name{margin:0 0 4px;font-weight:600}
.author-name a{color:inherit;text-decoration:none}
.author-name a:hover{text-decoration:underline}
.author-bio{margin:0;color:var(--ink-3);font-size:15px;line-height:1.55}

/* The same person at the top of their own archive. */
.arc-author{display:flex;gap:16px;align-items:center;margin:0 0 6px}
.arc-author .author-pic{width:72px;height:72px}
@media(max-width:560px){
  .author-box,.arc-author{flex-direction:column;gap:12px}
}

/* ------------------------------------ single post extras (P2) */
.post-share{display:flex;align-items:center;gap:10px;margin-top:26px}
.share-label{font-size:13.5px;font-weight:600;color:var(--ink-3,#6b7a78);margin-right:4px}
.share-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;
  border:1px solid var(--line,#d3dbd8);border-radius:50%;color:inherit;transition:color .15s,border-color .15s}
.share-link:hover{color:var(--accent,#0e7c86);border-color:currentColor}
.post-nav{display:flex;justify-content:space-between;gap:18px;margin-top:34px;
  padding-top:22px;border-top:1px solid var(--line,#d3dbd8)}
.post-nav a{text-decoration:none;color:inherit;max-width:46%}
.post-nav-next{margin-left:auto;text-align:right}
.post-nav-label{display:block;font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3,#6b7a78)}
.post-nav-title{font-weight:600}
.post-nav a:hover .post-nav-title{color:var(--accent,#0e7c86)}
.pg-status{padding:8px 6px;color:var(--ink-3,#6b7a78)}

/* --- strip: the shared scroll-snap carousel behind every "slider" loop
   (blog_slider, clients_slider, portfolio_slider, offer, offer_thumb).
   The track scrolls natively; the script only adds arrows, dots and thumbs,
   so without it the content is still a horizontal list that works. */
.strip{position:relative;--strip-gap:24px}
.strip-track{display:flex;gap:var(--strip-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.strip-track::-webkit-scrollbar{display:none}
.strip-item{scroll-snap-align:start;min-width:0}
.strip-prev,.strip-next{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid var(--line,#dfe5e3);background:var(--surface,#fff);color:var(--ink,#111);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.12);z-index:2;transition:opacity .2s,background .2s}
.strip-prev{left:-8px}.strip-next{right:-8px}
.strip-prev .icon,.strip-next .icon{width:18px;height:18px}
.strip-prev:hover,.strip-next:hover{background:var(--accent,#0e7c86);color:#fff;border-color:var(--accent,#0e7c86)}
.strip-prev[disabled],.strip-next[disabled]{opacity:.35;cursor:default;pointer-events:none}
.strip:not(.is-ready) .strip-prev,.strip:not(.is-ready) .strip-next,.strip-none .strip-prev,.strip-none .strip-next{display:none}
.strip-hover .strip-prev,.strip-hover .strip-next{opacity:0}
.strip-hover:hover .strip-prev,.strip-hover:hover .strip-next,.strip-hover:focus-within .strip-prev,.strip-hover:focus-within .strip-next{opacity:1}
.strip-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
.strip-dots:empty{display:none}
.strip-dot{width:9px;height:9px;border-radius:50%;border:0;padding:0;background:var(--line-2,#c7d0cd);cursor:pointer;transition:background .2s,transform .2s}
.strip-dot.is-active{background:var(--accent,#0e7c86);transform:scale(1.25)}

/* --- section styles (BeTheme's section "Style" list, as classes) */
.sec-nmh>.sec-inner>.cols{column-gap:0}
.sec-nmv .el+.el{margin-top:0}
.sec-nmv>.sec-inner>.cols{row-gap:0}
.sec-eq>.sec-inner>.cols>.col{display:flex;flex-direction:column}
.sec-eq>.sec-inner>.cols>.col>.el:last-child{flex:1 1 auto}
.sec-eq>.sec-inner>.cols>.col>.el:last-child>*{height:100%;box-sizing:border-box}
/* highlight: one half painted edge-to-edge behind its column */
.sec-hl{overflow:hidden}
.sec-hl>.sec-inner>.cols>.col{position:relative;z-index:0}
.sec-hl-left>.sec-inner>.cols>.col:first-child::before,
.sec-hl-right>.sec-inner>.cols>.col:last-child::before{content:"";position:absolute;z-index:-1;top:calc(-1 * var(--sec-pt));bottom:calc(-1 * var(--sec-pb));background:var(--hl-bg,var(--surface-2,#f4f6f5))}
.sec-hl-left>.sec-inner>.cols>.col:first-child::before{left:-50vw;right:calc(-1 * var(--gap,30px) / 2)}
.sec-hl-right>.sec-inner>.cols>.col:last-child::before{right:-50vw;left:calc(-1 * var(--gap,30px) / 2)}
.sec-hl-left>.sec-inner>.cols>.col:first-child,.sec-hl-right>.sec-inner>.cols>.col:last-child{padding-top:1px;padding-bottom:1px}
@media(max-width:760px){.sec-hl-left>.sec-inner>.cols>.col:first-child::before,.sec-hl-right>.sec-inner>.cols>.col:last-child::before{left:-50vw;right:-50vw;top:calc(-1 * var(--sec-pt));bottom:0}}
/* background video: sits under the content, hidden on phones (the poster/bg image shows) */
.sec-video{overflow:hidden;isolation:isolate}
.sec-bgvideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
@media(max-width:760px){.sec-bgvideo{display:none}}
@media(prefers-reduced-motion:reduce){.sec-bgvideo{display:none}}
/* decoration images along the edges */
.sec-decor-top,.sec-decor-bottom{position:absolute;left:0;width:100%;height:auto;pointer-events:none;z-index:1}
.sec-decor-top{top:0}.sec-decor-bottom{bottom:0}
/* the edge notch: this section's colour biting into its neighbour */
.sec-notch{z-index:1}
.sec-notch::after{content:"";position:absolute;left:50%;transform:translateX(-50%);background:var(--notch,var(--paper,#fff));z-index:2}
.sec-notch-triangle-up::after,.sec-notch-triangle-down::after,.sec-notch-triple-up::after,.sec-notch-triple-down::after{background:none;width:0;height:0;border-left:22px solid transparent;border-right:22px solid transparent}
.sec-notch-triangle-up::after{top:-18px;border-bottom:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triangle-down::after{bottom:-18px;border-top:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triple-up::after{top:-18px;border-bottom:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triple-down::after{bottom:-18px;border-top:18px solid var(--notch,var(--paper,#fff))}
/* the triple's two outer triangles: one on the section, one on its inner wrapper */
.sec-notch-triple-up::before,.sec-notch-triple-down::before,.sec-notch-triple-up>.sec-inner::before,.sec-notch-triple-down>.sec-inner::before{content:"";position:absolute;left:50%;width:0;height:0;border-left:22px solid transparent;border-right:22px solid transparent;z-index:2}
.sec-notch-triple-up::before{top:-18px;transform:translateX(calc(-50% - 44px));border-bottom:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triple-down::before{bottom:-18px;transform:translateX(calc(-50% - 44px));border-top:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triple-up>.sec-inner{position:relative}.sec-notch-triple-down>.sec-inner{position:relative}
.sec-notch-triple-up>.sec-inner::before{top:calc(-1 * var(--sec-pt) - 18px);transform:translateX(calc(-50% + 44px));border-bottom:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-triple-down>.sec-inner::before{bottom:calc(-1 * var(--sec-pb) - 18px);transform:translateX(calc(-50% + 44px));border-top:18px solid var(--notch,var(--paper,#fff))}
.sec-notch-circle-up::after{width:44px;height:22px;top:-22px;border-radius:22px 22px 0 0}
.sec-notch-circle-down::after{width:44px;height:22px;bottom:-22px;border-radius:0 0 22px 22px}
.sec-notch-square-up::after{width:30px;height:30px;top:-15px;transform:translateX(-50%) rotate(45deg);clip-path:polygon(0 0,100% 0,0 100%)}
.sec-notch-square-down::after{width:30px;height:30px;bottom:-15px;transform:translateX(-50%) rotate(45deg);clip-path:polygon(100% 0,100% 100%,0 100%)}
/* up / down arrows to the neighbouring sections */
.sec-nav{position:absolute;right:22px;bottom:18px;display:flex;flex-direction:column;gap:6px;z-index:3}
.sec-nav button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line,#dfe5e3);background:var(--surface,#fff);color:var(--ink,#111);display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.1)}
.sec-nav button:hover{background:var(--accent,#0e7c86);color:#fff;border-color:var(--accent,#0e7c86)}
.sec-nav button[disabled]{opacity:.3;cursor:default}
.sec-nav .icon{width:18px;height:18px}
/* one-page dot rail */
.onepage{position:fixed;right:18px;top:50%;transform:translateY(-50%);z-index:60}
.onepage ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.onepage a{display:flex;align-items:center;justify-content:flex-end;gap:10px;text-decoration:none;color:var(--ink,#111)}
.onepage-dot{width:11px;height:11px;border-radius:50%;background:var(--line-2,#c7d0cd);border:2px solid transparent;transition:background .2s,transform .2s;order:2}
.onepage-label{font-size:12.5px;background:var(--surface,#fff);padding:3px 9px;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.12);opacity:0;transform:translateX(6px);transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap}
.onepage a:hover .onepage-label,.onepage a:focus-visible .onepage-label{opacity:1;transform:none}
.onepage a.is-active .onepage-dot{background:var(--accent,#0e7c86);transform:scale(1.3)}
@media(max-width:760px){.onepage{display:none}}

/* --- lightbox */
.lbx{position:fixed;inset:0;z-index:1000;background:rgba(8,12,16,.92);display:flex;align-items:center;justify-content:center;padding:48px}
.lbx[hidden]{display:none}
.lbx-fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.lbx-img{max-width:min(1400px,100%);max-height:calc(100vh - 140px);width:auto;height:auto;border-radius:6px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lbx-cap{color:rgba(255,255,255,.85);font-size:14.5px;text-align:center}
.lbx button{position:absolute;background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:50%;width:46px;height:46px;font-size:30px;line-height:1;cursor:pointer;display:grid;place-items:center}
.lbx button:hover{background:rgba(255,255,255,.22)}
.lbx-close{top:18px;right:18px}
.lbx-prev{left:16px;top:50%;transform:translateY(-50%)}
.lbx-next{right:16px;top:50%;transform:translateY(-50%)}
body.lbx-open{overflow:hidden}
@media(max-width:640px){.lbx{padding:16px}.lbx-prev{left:6px}.lbx-next{right:6px}}

/* ------------------------------------------------------------------ popup
   One dialogue, positioned four ways, driven by the tokens theme.css writes.
   Hidden by the `hidden` attribute until site.js decides it is time, so a
   visitor with JavaScript off never sees a dialogue they cannot close. */
.cms-popup-wrap{position:fixed;inset:0;z-index:200;display:grid;pointer-events:none}
.cms-popup-wrap.is-open{pointer-events:auto}
.pop-veil{position:absolute;inset:0;background:var(--pop-veil,rgba(0,0,0,.55));opacity:0;
  transition:opacity .25s ease}
.cms-popup-wrap.is-open .pop-veil{opacity:1}

.cms-popup{position:relative;z-index:1;width:min(var(--pop-w,520px),calc(100vw - 32px));
  max-height:calc(100vh - 48px);overflow:auto;background:var(--pop-bg,#fff);color:var(--pop-fg,var(--ink));
  border-radius:var(--pop-radius,14px);box-shadow:0 30px 80px rgba(0,0,0,.28);padding:34px 32px;
  opacity:0;transition:opacity .28s ease,transform .28s ease}
.cms-popup-wrap.is-open .cms-popup{opacity:1;transform:none}

/* Where it sits. The wrap is a grid, so one property places the dialogue. */
.cms-popup-wrap:has(.pop-center){place-items:center}
.cms-popup-wrap:has(.pop-bottom-right){place-items:end;padding:20px}
.cms-popup-wrap:has(.pop-bottom-left){place-items:end start;padding:20px}
.cms-popup-wrap:has(.pop-bar){place-items:end stretch}
/* `:has()` is not everywhere yet; without it everything lands in the middle,
   which is the safe answer rather than a broken one. */
.pop-bar{width:100%;max-width:none;border-radius:0;padding:22px 28px;
  display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap}
.pop-bar .pop-body{display:flex;gap:18px;align-items:center;flex-wrap:wrap;justify-content:center}
.pop-bar .pop-title{margin:0;font-size:19px}
.pop-bar .pop-text{margin:0}
.pop-bar .pop-img{display:none}

/* How it arrives. Each animation is only a starting transform. */
.pop-anim-zoom{transform:scale(.94)}
.pop-anim-up{transform:translateY(24px)}
.pop-anim-fade{transform:none}

.pop-x{position:absolute;top:10px;right:10px;width:34px;height:34px;display:grid;place-items:center;
  border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;opacity:.6}
.pop-x:hover{opacity:1;background:rgba(0,0,0,.06)}
.pop-x .icon{width:18px;height:18px}
/* In the bar the close button is a flex item, and it is first in the DOM so
   that a screen reader and the keyboard reach it before the message. `order`
   puts it last on screen, where a close control belongs. */
.pop-bar .pop-x{position:static;flex:0 0 auto;order:9}

.pop-img{display:block;width:100%;height:auto;border-radius:calc(var(--pop-radius,14px) - 4px);
  margin-bottom:18px}
.pop-title{margin:0 0 10px;font-size:26px;line-height:1.25}
.pop-text{color:var(--ink-2);line-height:1.65}
.pop-btn{margin-top:18px}

@media(max-width:640px){
  .cms-popup{padding:26px 20px;max-height:calc(100vh - 24px)}
  .pop-title{font-size:22px}
  .pop-no-mobile{display:none}
  .cms-popup-wrap:has(.pop-no-mobile){display:none}
}
@media(prefers-reduced-motion:reduce){
  .pop-veil,.cms-popup{transition:none}
  .pop-anim-zoom,.pop-anim-up{transform:none}
}
