/* Cave Ha 2026: frame, fog, scroll-driven storytelling. Pure CSS, no JS. */
/* Release marker: tools/staging/layout-check.mjs compares it with the theme version, so a stale cached copy of this file is caught */
:root{--caveha-version:"0.1.131"}
/* ТЕКСТ 70 (layout shift while the fonts load): until Source Sans 3 and Archivo arrive the browser draws the text with these
   faces, Arial (or its metric twins Liberation Sans and Arimo) scaled to the width of the web fonts, so the lines break at the
   same words and nothing below moves when the web fonts replace them. Widths measured on the cenote page text. */
@font-face{font-family:"Source Sans 3 Fallback";font-weight:100 500;src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");size-adjust:92.5%;ascent-override:110.7%;descent-override:43.2%;line-gap-override:0%}
@font-face{font-family:"Source Sans 3 Fallback";font-weight:600 900;src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");size-adjust:88.9%;ascent-override:115.2%;descent-override:45%;line-gap-override:0%}
@font-face{font-family:"Archivo Fallback";font-weight:100 900;src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");size-adjust:98.2%}
:root{--bg:#0b1216;--ink:#e8eef1;--muted:#9fb0b8;--surface:#141e24;--surface2:#1b2730;--line:#243239;--tint:#10262c;--inv-bg:#e8eef1;--inv-ink:#0b1216;--inv-muted:#3a4a52;--accent:#5fc4d2;--photo:#0e3444;--photo-ink:#bfe3ea;--line-soft:rgba(255,255,255,0.09);color-scheme:dark light}
@media (prefers-color-scheme: light){:root{--bg:#ffffff;--ink:#14232b;--muted:#4a5a63;--surface:#f3f5f6;--surface2:#e9eef0;--line:#e3e8ea;--tint:#e6f3f5;--inv-bg:#14232b;--inv-ink:#ffffff;--inv-muted:#d6e0e4;--accent:#0b6a79;--line-soft:rgba(0,0,0,0.08)}}
html,body{height:100%;margin:0;background:var(--bg);color:var(--ink)}
body:not(.block-editor-iframe__body){overflow:hidden}
a{color:var(--accent)}

/* Frame */
/* 100dvh: the visible height on phones (100vh in iOS Safari is taller than the screen and hid the bottom bar) */
.frame{display:flex;flex-direction:column;height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));height:calc(100dvh - var(--wp-admin--admin-bar--height, 0px));overflow:hidden}
.frame > .wp-block-template-part{flex:0 0 auto}
.site-header{background:var(--bg);border-bottom:1px solid var(--line);position:relative;z-index:5}
.site-header > .wp-block-group{align-items:center;max-width:1220px;margin:0 auto;padding:4px 5vw !important;gap:0 16px}
.site-header .wp-block-group{align-items:center}
.site-header p,.site-header .wp-block-site-title{margin:0}
.site-header .logo{display:block;flex:0 0 auto;line-height:0}
.site-header .logo img{display:block;width:56px;height:56px}
/* Menu (Alex, 2026-11-03): one line, or two tight lines within the logo height; only when two lines do not fit, nav.js
   switches on the Menu toggle (html.nav-collapse). Without JavaScript the toggle takes over below 700 px. */
.site-header .wp-block-navigation .wp-block-navigation__container{flex-wrap:wrap;gap:0 2px;row-gap:0;align-content:center}
.site-header .wp-block-navigation a{color:var(--ink);text-decoration:none;padding:2px 9px;border-radius:8px;font-size:15px;line-height:1.2;white-space:nowrap}
.site-header .wp-block-button__link{min-height:40px}
.site-header .wp-block-navigation a:hover{background:var(--surface2)}
.cta,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:10px;background:var(--ink);color:var(--bg);text-decoration:none;font-weight:600}
.cta:hover,.wp-block-button__link:hover{background:var(--accent);color:var(--bg)}
.scroller{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;position:relative}
.scroller > *{width:100%;box-sizing:border-box;margin:0}
.scroller > .wp-block-post-content{padding:0 5vw;max-width:1220px;margin:0 auto;box-sizing:border-box}
.wp-block-post-content > * + *{margin-top:24px}
/* Long web addresses written out in the text break inside, so the page never gets wider than a phone screen */
.wp-block-post-content p,.wp-block-post-content li,.wp-block-post-content td{overflow-wrap:break-word}
.wp-block-post-content > .alignfull{max-width:none;margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%);width:100vw}
.bar-wrap{background:var(--inv-bg);color:var(--inv-ink)}
.bar{max-width:1220px;margin:0 auto;padding:8px 5vw;display:flex;flex-wrap:nowrap;gap:6px 20px;align-items:center;justify-content:space-between;box-sizing:border-box}
.bar > .wp-block-group{min-width:0}
.bar .wp-block-button__link{white-space:nowrap}
.bar > *{margin:0 !important}
.bar .wp-block-buttons{display:flex;flex-wrap:nowrap}
.bar p{margin:0}
.bar .wp-block-button__link{background:var(--bg);color:var(--ink);min-height:40px}
.bar .price{font-family:Archivo,sans-serif;font-weight:800;font-size:20px;line-height:1;margin:0}
.bar .note{font-size:13px;color:var(--inv-muted);margin:0}
.footer-line{background:var(--surface);color:var(--muted);border-top:1px solid var(--line);font-size:13px;margin-top:auto !important}
/* Footer (Alex, 2026-11-03): one line from 1000 px (the company name only from 1320 px); below, the items wrap centred,
   none breaks inside; phones show WhatsApp without the number (it stands in the bottom bar) */
.footer-line .wp-block-group{padding:10px 5vw;gap:4px 20px;max-width:1220px;margin:0 auto;flex-wrap:wrap !important;justify-content:center;align-items:center;box-sizing:border-box}
.footer-line p{margin:0;white-space:nowrap}
@media (min-width:1000px){.footer-line .wp-block-group{flex-wrap:nowrap !important;justify-content:space-between}}
@media (max-width:1319px){.footer-line .f-name{display:none}}
@media (max-width:767px){.footer-line .f-num{display:none}.footer-line .wp-block-group{gap:6px 16px;padding:10px 16px}}
.footer-line .social{display:flex;align-items:center;gap:14px}
.footer-line .social a{display:inline-flex;color:var(--muted)}
.footer-line .social a:hover{color:var(--accent)}
/* Cookie settings: reopens the Complianz consent window (its script listens to button.cmplz-manage-consent); looks like the other footer links */
.footer-line .f-cookies button{background:none;border:0;padding:0;margin:0;font:inherit;color:var(--accent);text-decoration:underline;cursor:pointer}
/* The floating Manage consent tab of Complianz overlapped the bottom bar: the footer button above replaces it */
#cmplz-manage-consent{display:none !important}
.endspace{height:8vh;flex:0 0 auto}

/* Fog at the edges of the scroll area */
.pagefog{position:sticky;top:0;height:0 !important;overflow:visible;z-index:3;pointer-events:none;flex:0 0 auto}
.pagefog::before{content:"";position:absolute;left:0;right:0;top:0;height:14vh;background:linear-gradient(to bottom, var(--bg) 1vh, transparent 14vh)}
.pagefog-b{position:sticky;bottom:0;height:0 !important;overflow:visible;z-index:3;pointer-events:none;flex:0 0 auto}
.pagefog-b::before{content:"";position:absolute;left:0;right:0;bottom:0;height:22vh;background:linear-gradient(to top, var(--bg) 2vh, transparent 100%)}
/* ТЕКСТ 70 (PageSpeed, computer: layout shift 0.2 to 0.47): Chrome counted the sticky bottom fog as moved whenever the height
   of the page below changed (a picture, a map, the Instagram feed). The same fog is now drawn by the bottom bar, outside the
   scroll area, so it never moves; it stops at the scroll bar (--caveha-sbw, assets/js/nav.js). The spacer pagefog-b stays in
   the templates and switches the fog on. */
.frame:has(> .scroller .pagefog-b) .pagefog-b::before{content:none}
.frame:has(> .scroller .pagefog-b) > .wp-block-template-part:last-child{position:relative}
.frame:has(> .scroller .pagefog-b) > .wp-block-template-part:last-child::before{content:"";position:absolute;left:0;right:var(--caveha-sbw,0px);bottom:100%;height:22vh;background:linear-gradient(to top, var(--bg) 2vh, transparent 100%);pointer-events:none;z-index:3;opacity:var(--caveha-fog,1)}

/* Hero (core/cover) */
.hero{min-height:440px;view-timeline-name:--hero}
.hero.wp-block-cover{padding:0 0 36px;text-align:left;justify-content:flex-start;align-items:flex-end}
.hero .wp-block-cover__inner-container{max-width:1220px;width:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;min-height:400px;margin:0 auto;padding:0 5vw;box-sizing:border-box;text-align:left}
.hero .kicker{margin:16px 0 auto;font-size:15px;color:rgba(255,255,255,0.75)}
.hero .kicker a{color:rgba(255,255,255,0.9);text-decoration:none}
.hero .kicker .sep{opacity:0.6;margin:0 6px}
.hero .kicker a:hover{text-decoration:underline}
.hero h1,.hero h2{color:#fff;font-size:56px;line-height:1.02;letter-spacing:-0.02em;max-width:16ch;margin:0}
.hero p{color:rgba(255,255,255,0.86);font-size:20px;max-width:60ch;margin:0}
.hero .wp-block-cover__background{background:linear-gradient(to top, rgba(5,12,16,0.85), rgba(5,12,16,0.35) 55%, rgba(5,12,16,0.05)) !important;opacity:1 !important}

/* Home doors */
.door{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:center;border-radius:20px;padding:36px;background:var(--surface);overflow:hidden;view-timeline-name:--d;margin:0 0 20px}
.door.flip{direction:rtl}.door.flip > *{direction:ltr}
.door .wp-block-image{margin:0}
.door img{width:100%;height:280px;object-fit:cover;border-radius:16px;display:block}
.door .kicker{font-size:15px;color:var(--muted);margin:0}
.door h2{font-size:34px;margin:0}
.door .price{font-family:Archivo,sans-serif;font-weight:700;font-size:24px;margin:0}

/* Story: pinned photo pair and steps (product pages) */
.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:start;timeline-scope:--s2;view-timeline-name:--sec;margin:0 0 24px}
.story .pic{grid-area:1 / 1;position:sticky;top:24px;height:calc(100vh - 176px);min-height:400px;border-radius:24px;overflow:hidden;background:#000}
.story .steps{grid-area:1 / 2;display:flex;flex-direction:column}
.story .fog{grid-area:1 / 2;position:sticky;top:0;height:0 !important;overflow:visible;align-self:start;pointer-events:none;z-index:2}
.story.alt .pic{grid-area:1 / 2}.story.alt .steps{grid-area:1 / 1}.story.alt .fog{grid-area:1 / 1}
.story .fog::before{content:"";position:absolute;left:0;right:0;top:0;height:24vh;background:linear-gradient(to bottom, var(--bg) 2vh, transparent 24vh)}
.story .pic .wp-block-image{position:absolute;inset:0;margin:0}
.story .pic img{width:100%;height:100%;object-fit:cover;display:block}
.story .pic .b{opacity:0}
.story .mb{display:none}
.step{min-height:62vh;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:12vh 0}
.step.s1{view-timeline-name:--t1}
.step.s2{view-timeline-name:--s2,--t2}
.step .in{view-timeline-name:--tl}
.step .kicker{font-size:15px;color:var(--muted);margin:0}
.step h2{font-size:34px;margin:0}
.step p,.step li{font-size:19px}
.num{font-family:Archivo,sans-serif;font-weight:800;font-size:44px;line-height:1;letter-spacing:-0.02em}

/* Course table: thin rounded frame around the figure, soft inner lines, no cell borders */
.course-table{border:1px solid var(--line);border-radius:14px;overflow-x:auto;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch;margin:14px 0 10px}
.course-table th,.course-table td{min-width:64px}
.course-table th:first-child,.course-table td:first-child{min-width:220px}
.course-table th:last-child,.course-table td:last-child{min-width:140px}
.course-table table{border-collapse:collapse;width:100%;font-size:16px;border:0 !important}
.course-table th,.course-table td{text-align:left;padding:10px 14px;border:0 !important;border-top:1px solid var(--line-soft) !important}
.course-table thead th{border-top:0 !important;background:var(--surface)}
.course-table thead{border:0 !important}
.course-table tbody tr:first-child td{border-top:0 !important}

/* Motion, only where the browser supports scroll-driven animations and the user allows motion */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .hero .wp-block-cover__image-background{animation:heroZoom linear both;animation-timeline:--hero;animation-range:exit 0% exit 100%}
    @keyframes heroZoom{from{transform:scale(1)}to{transform:scale(1.18) translateY(6%)}}
    .door > *{animation:doorIn linear both;animation-timeline:--d;animation-range:entry 0% entry 70%}
    @keyframes doorIn{from{opacity:0;transform:translateY(48px) scale(0.98)}to{opacity:1;transform:none}}
    .story .pic .a img{animation:slowZoom linear both;animation-timeline:--sec;animation-range:entry 0% exit 100%}
    @keyframes slowZoom{from{transform:scale(1.14)}to{transform:scale(1)}}
    .story .pic .b{animation:xfade linear both;animation-timeline:--s2;animation-range:entry 0% entry 60%}
    @keyframes xfade{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:scale(1)}}
    .rise{view-timeline-name:--r}
    .rise > *{animation:rise linear both;animation-timeline:--r;animation-range:entry 0% entry 55%}
    @keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
  }
}


/* v0.1.2 fixes */
.hero h1,.hero h2,.hero p,.hero .kicker{margin-left:0 !important;margin-right:0 !important}
.hero .kicker{margin-top:calc(14vh + 6px) !important;margin-bottom:auto !important}
.site-header .wp-block-site-title a,.site-header .wp-block-button__link{white-space:nowrap}
.site-header .wp-block-buttons{flex-wrap:nowrap}
.site-header .wp-block-site-title{flex:0 0 auto}
.site-header .wp-block-navigation{flex:1 1 auto;min-width:0;overflow:hidden}
/* Own menu toggle (checkbox): nav.js decides (html.nav-collapse); without JavaScript below 700px */
.navcb{display:none}
.navtoggle{display:none;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-family:"Source Sans 3",system-ui,sans-serif;font-weight:600;font-size:15px;cursor:pointer;user-select:none;white-space:nowrap}
.navtoggle .t-close{display:none}
.navcb:checked ~ .navtoggle .t-open{display:none}
.navcb:checked ~ .navtoggle .t-close{display:inline}
.site-header .wp-block-group{position:static}
@media (max-width:700px){
  .navtoggle{display:inline-flex;margin-left:16px !important}
  .site-header .wp-block-buttons{margin-left:auto !important}
  .site-header .wp-block-navigation{display:none !important}
  .navcb:checked ~ .wp-block-navigation{display:block !important;position:absolute;top:100%;left:0;right:0;z-index:9;background:var(--bg);color:var(--ink);padding:8px 5vw 14px;border-bottom:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,0.35)}
  .navcb:checked ~ .wp-block-navigation ul{display:flex !important;flex-direction:column !important;gap:2px;width:100%;margin:0;padding:0;list-style:none}
  .navcb:checked ~ .wp-block-navigation li{display:block !important;width:100%;margin:0}
  .navcb:checked ~ .wp-block-navigation li a{display:block !important;font-family:"Source Sans 3",system-ui,sans-serif;font-size:18px;font-weight:600;padding:12px 10px;color:var(--ink) !important;text-decoration:none;border-radius:8px}
  .navcb:checked ~ .wp-block-navigation li a:hover{background:var(--surface2)}
}
html.nav-collapse .navtoggle{display:inline-flex;margin-left:16px !important}
html.nav-collapse .site-header .wp-block-buttons{margin-left:auto !important}
html.nav-collapse .site-header .wp-block-navigation{display:none !important}
html.nav-collapse .navcb:checked ~ .wp-block-navigation{display:block !important;position:absolute;top:100%;left:0;right:0;z-index:9;background:var(--bg);color:var(--ink);padding:8px 5vw 14px;border-bottom:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,0.35)}
html.nav-collapse .navcb:checked ~ .wp-block-navigation ul{display:flex !important;flex-direction:column !important;gap:2px;width:100%;margin:0;padding:0;list-style:none}
html.nav-collapse .navcb:checked ~ .wp-block-navigation li{display:block !important;width:100%;margin:0}
html.nav-collapse .navcb:checked ~ .wp-block-navigation li a{display:block !important;font-family:"Source Sans 3",system-ui,sans-serif;font-size:18px;font-weight:600;padding:12px 10px;color:var(--ink) !important;text-decoration:none;border-radius:8px}
html.nav-collapse .navcb:checked ~ .wp-block-navigation li a:hover{background:var(--surface2)}
/* Open menu: never longer than the screen (it scrolls); on low screens, such as a phone held sideways, two columns (Alex, 2026-11-03) */
.navcb:checked ~ .wp-block-navigation{max-height:calc(100dvh - 66px - var(--wp-admin--admin-bar--height, 0px));overflow-y:auto !important;overscroll-behavior:contain}
@media (max-height:520px){
  .navcb:checked ~ .wp-block-navigation ul,html.nav-collapse .navcb:checked ~ .wp-block-navigation ul{display:grid !important;grid-template-columns:1fr 1fr;column-gap:16px}
  .navcb:checked ~ .wp-block-navigation li a,html.nav-collapse .navcb:checked ~ .wp-block-navigation li a{padding:8px 10px !important;font-size:16px !important}
}
/* tables and spacing */
.wp-block-post-content h2{margin:0 0 12px}
.section > * + *{margin-top:14px}
.box > * + *{margin-top:10px}
.pricebox > * + *{margin-top:10px}

/* Narrow screens */
@media (max-width:1050px){
  .bar{padding:6px 14px;flex-wrap:nowrap}
  .bar .price{font-size:15px}
  .bar .wp-block-button__link{min-height:36px;padding:0 12px;font-size:14px;white-space:nowrap}
}
@media (max-width:900px){
  .story{grid-template-columns:minmax(0,1fr)}
  .story .pic,.story.alt .pic,.story .steps,.story.alt .steps,.story .fog,.story.alt .fog{grid-area:auto}
  .story .pic{position:relative;top:auto;height:260px;min-height:0;order:0}
  .story .steps{order:1}
  .story .fog{display:none}
  .story .pic .b{display:none}
  .story .pic .a img{animation:none !important;transform:none !important}
  .story .mb{display:block;margin:2vh 0}
  .story .mb img{width:100%;height:260px;object-fit:cover;border-radius:16px}
  .step{min-height:0;padding:6vh 0}
  .door{grid-template-columns:minmax(0,1fr)}
  .door.flip{direction:ltr}
}
@media (max-width:860px){
  .hero h1,.hero h2{font-size:34px}
  .hero p{font-size:16px}
  .hero .wp-block-cover__inner-container{min-height:50vh}
  h1{font-size:32px}h2{font-size:24px}
}

/* Page sections */
.section{margin:36px 0}
.box{border:1px solid var(--line);border-radius:16px;padding:22px}
.box.filled{background:var(--surface);border:0}
.box h3{margin:0 0 8px;font-size:22px}
.box p{margin:0 0 8px}
.grid-2,.grid-3,.grid-4{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-2 > .wp-block-group,.grid-3 > .wp-block-group,.grid-4 > .wp-block-group{min-width:0}
.lead{font-size:18px;color:var(--muted);max-width:72ch}
.pricebox{background:var(--surface);border-radius:20px;padding:28px}
.pricebox .big{font-family:Archivo,sans-serif;font-weight:700;font-size:28px;margin:0 0 8px}
.person{display:flex;flex-wrap:wrap;gap:32px;align-items:center;padding:24px 0}
.person img{width:200px;height:200px;border-radius:100px;object-fit:cover;object-position:50% 30%}
.latest{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.latest img{width:100%;height:160px;object-fit:cover;border-radius:14px}
.muted{color:var(--muted)}
@media (max-width:1000px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3,.latest{grid-template-columns:minmax(0,1fr)}}
@media (max-width:860px){.grid-2,.grid-4{grid-template-columns:minmax(0,1fr)}}

/* Prose pages (cenotes, articles) */
.prose{max-width:none}
.prose p{font-size:19px;line-height:1.6;max-width:none}
.prose h2{font-size:32px;margin:8px 0 12px}
.prose .wp-block-image{margin:8px 0 16px}
.prose .wp-block-image img{width:100%;height:auto;border-radius:14px;display:block}
.prose .figure-right{float:right;width:min(40%,480px);margin:6px 0 18px 32px}
.prose .figure-left{float:left;width:min(40%,480px);margin:6px 32px 18px 0}
.prose .figure-right img{border-radius:14px}
.prose figcaption{font-size:13px;color:var(--muted);margin-top:6px}
.prose::after{content:"";display:block;clear:both}
.cenote-facts .box p{margin:0}
.cenote-facts .box .kicker{margin-bottom:6px}
@media (max-width:860px){.prose .figure-right,.prose .figure-left{float:none;width:100%;margin:8px 0 16px}}

/* Bars: a button bound to an empty field is not shown */
.bar .wp-block-button:has(> a:empty){display:none}
.bar .wp-block-buttons{gap:10px}
.bar .note:empty{display:none}

/* Bottom bars: same look on every template */
.bar .wp-block-post-title,.bar .price{font-family:Archivo,sans-serif !important;font-weight:800 !important;font-size:20px !important;line-height:1 !important;letter-spacing:0;margin:0 !important;color:var(--inv-ink)}
.bar .wp-block-post-title a{color:inherit;text-decoration:none}
.bar .note{font-family:"Source Sans 3",system-ui,sans-serif;font-size:13px !important;color:var(--inv-muted);margin:0 !important}
.bar .wp-block-buttons{align-items:center}
.bar .wp-block-button__link,.bar .is-style-outline .wp-block-button__link{min-height:40px !important;height:40px;padding:0 16px !important;box-sizing:border-box;border:1px solid var(--bg) !important;border-radius:10px !important;font-size:15px;line-height:1;display:inline-flex;align-items:center}
.bar .is-style-outline .wp-block-button__link{background:transparent !important;color:var(--inv-ink) !important;border-color:var(--inv-ink) !important}
@media (max-width:1050px){.bar .wp-block-post-title,.bar .price{font-size:15px !important}.bar .wp-block-button__link,.bar .is-style-outline .wp-block-button__link{min-height:36px !important;height:36px;padding:0 12px !important;font-size:14px}}

/* Bottom bars: long text never breaks the layout. On wide screens the left column keeps at least 35% of the bar; on narrow screens (below 1050 px) it may shrink to nothing and the buttons keep their full text. The title and the note stay on one line with an ellipsis; a button is cut with an ellipsis only when it does not fit the bar. */
.bar > .wp-block-group{flex:1 1 35%;min-width:35%;overflow:hidden}
.bar .wp-block-post-title,.bar .price,.bar .note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Second line of the bottom bar (Alex, 2026-11-03): shown down to 560 px; on narrower bars it wraps to two lines at most */
@media (max-width:1050px){.bar .note{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px !important;line-height:1.25}}
@media (max-width:560px){.bar .note{display:none !important}}
.bar .wp-block-buttons{flex:0 1 auto;min-width:0}
.bar .wp-block-button{flex:0 1 auto;min-width:0}
.bar .wp-block-button__link,.bar .is-style-outline .wp-block-button__link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;line-height:38px !important}
@media (max-width:1050px){.bar > .wp-block-group{flex:1 1 0;min-width:0}.bar .wp-block-button__link,.bar .is-style-outline .wp-block-button__link{line-height:34px !important}}
/* Breadcrumbs (decision 109): the Yoast block output, moved into the hero by inc/breadcrumbs.php; .hero .kicker gives the look */
.kicker.crumbs .sep{margin:0 2px}
.kicker.crumbs .breadcrumb_last{color:inherit}
.scroller > .kicker.crumbs{max-width:1220px;margin:16px auto 0;padding:0 5vw;box-sizing:border-box;font-size:15px;color:var(--muted)}
.scroller > .kicker.crumbs a{color:inherit}
/* Videos and maps on click (decision 100, inc/speed.php, assets/js/embeds.js) */
.embed-lite{position:relative;width:100%;background:var(--surface-2,#1b2730);border-radius:14px;overflow:hidden;color:#fff}
.wp-has-aspect-ratio .embed-lite{position:absolute;inset:0;aspect-ratio:auto !important}
.embed-lite iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.embed-lite__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.embed-lite__btn{position:absolute;inset:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;border:0;background:linear-gradient(to top,rgba(5,12,16,0.75),rgba(5,12,16,0.15));color:#fff;font:600 16px/1.3 "Source Sans 3",system-ui,sans-serif;cursor:pointer;text-align:center}
.embed-lite__play{width:68px;height:48px;border-radius:12px;background:rgba(0,0,0,0.75);position:relative}
.embed-lite__play::after{content:"";position:absolute;left:28px;top:14px;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff}
.embed-lite__btn:hover .embed-lite__play,.embed-lite__btn:focus-visible .embed-lite__play{background:#c00}
.embed-lite__pin{width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--accent,#5fc4d2)}
.embed-lite__title{max-width:90%;text-shadow:0 1px 3px rgba(0,0,0,0.6)}
.map-lite:not([style]){aspect-ratio:16/9}
.embed-lite__label{display:inline-flex;align-items:center;gap:12px}
.map-lite .embed-lite__label{padding:14px 26px;border-radius:999px;background:rgba(5,12,16,0.9);box-shadow:0 4px 18px rgba(0,0,0,0.35);font:700 18px/1.2 "Source Sans 3",system-ui,sans-serif}
.map-lite .embed-lite__title{max-width:none;text-shadow:none}
.map-lite .embed-lite__btn:hover .embed-lite__label,.map-lite .embed-lite__btn:focus-visible .embed-lite__label{box-shadow:0 0 0 2px var(--accent,#5fc4d2),0 4px 18px rgba(0,0,0,0.35)}
.map-lite.map-lite--picture{aspect-ratio:1090/600}
.map-lite--picture .embed-lite__btn{background:rgba(5,12,16,0.12)}
.map-lite--picture .embed-lite__img{object-position:58% 50%}
@media (max-width:700px){.map-lite.map-lite--picture{aspect-ratio:4/5}.map-lite--picture .embed-lite__img{object-position:50% 50%}.map-lite .embed-lite__label{font-size:17px;padding:12px 20px}}
.embed-lite__consent{position:absolute;left:0;right:0;bottom:0;padding:12px 16px;background:rgba(5,12,16,0.92);display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:15px}
.embed-lite__consent p{margin:0;flex:1 1 220px}
.embed-lite__accept{min-height:40px;padding:0 16px;border:0;border-radius:10px;background:var(--ink,#e8eef1);color:var(--bg,#0b1216);font-weight:600;cursor:pointer}

/* Doors of the section pages: photo, title, text, price, Details and WhatsApp buttons, two in a row (ТЕКСТ 53) */
.doors-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 20px}
.doors-1{display:grid;grid-template-columns:minmax(0,1fr);margin:0 0 20px}
.door-card{display:flex;flex-direction:column;min-width:0;border-radius:20px;background:var(--surface);overflow:hidden}
.door-card .wp-block-image{margin:0}
.door-card img{display:block;width:100%;height:240px;object-fit:cover}
.door-card .is-map img{object-fit:contain;background:var(--line)}
.doors-1 .door-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.doors-1 .door-card img{height:100%;min-height:240px}
.door-card__body{display:flex;flex-direction:column;gap:10px;padding:22px 24px 24px;flex:1}
.door-card__body > *{margin:0 !important}
.door-card h3{font-size:24px}
.door-card h3 a{color:inherit;text-decoration:none}
.door-card .price{font-family:Archivo,sans-serif;font-weight:700;font-size:20px;margin-top:auto !important}
.door-card .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px}
.door-card .is-style-outline .wp-block-button__link{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.door-card .is-style-outline .wp-block-button__link:hover{background:var(--accent);border-color:var(--accent);color:var(--bg)}
@media (max-width:760px){.doors-2,.doors-1 .door-card{grid-template-columns:minmax(0,1fr)}.door-card img,.doors-1 .door-card img{height:200px;min-height:0}}
/* ТЕКСТ 57 (theme 0.1.55 to 0.1.58) */
/* Section headings stand out from the door headings (Alex): about a third larger */
.wp-block-post-content > .section > h2,.wp-block-post-content > .wp-block-group > h2.wp-block-heading{font-size:36px;line-height:1.1}
/* Boxes and doors side by side: no flow margin on the second one, equal height */
.grid-2 > *,.grid-3 > *,.grid-4 > *,.doors-2 > *,.doors-1 > *{margin-block:0 !important}
.grid-2,.grid-3,.grid-4,.doors-2{align-items:stretch}
/* Small doors with a full picture (ТЕКСТ 59, Alex): the picture fades into the background of the door and flows into the text.
   Toward the bottom in two columns and on a phone, toward the right in a wide door where the text stands to the right.
   The big doors of the home page and the sea charts in their frame keep the full picture. */
.door-card > .wp-block-image:not(.is-map) img{-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
.doors-1 .door-card > .wp-block-image:not(.is-map) img{-webkit-mask-image:linear-gradient(to right,#000 60%,transparent);mask-image:linear-gradient(to right,#000 60%,transparent)}
/* Doors without a price line: the buttons go to the bottom of the card */
.door-card__body > .wp-block-buttons{margin-top:auto !important}
/* Two-column blocks of pages (About: map, reviews and contacts with the Instagram feed; profiles with a photo) */
.split-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
.split-2 > *{margin-block:0 !important;min-width:0}
.split-2 .wp-block-image img{width:100%;height:auto;border-radius:16px;display:block}
.split-2 .wp-block-buttons{margin:16px 0}
.slide img{width:100%;height:auto;display:block}
/* Rental tables: the parts of a set stand one step in, so the set and its parts read together */
.rent-table td:first-child em{display:inline-block;padding-left:1.6em;font-style:normal;color:var(--muted)}
@media (max-width:760px){
  .wp-block-post-content > .section > h2,.wp-block-post-content > .wp-block-group > h2.wp-block-heading{font-size:28px}
  .doors-1 .door-card > .wp-block-image:not(.is-map) img{-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
  .split-2{grid-template-columns:minmax(0,1fr)}
}

/* ТЕКСТ 60 (theme 0.1.60 and 0.1.61) */
/* Course and instructor pages: the biography on the left, the photo on the right at the height of the text (Alex) */
body:not(.home) .person{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:40px;align-items:stretch;padding:24px 0}
body:not(.home) .person > figure{order:2;margin:0;position:relative;min-height:320px}
body:not(.home) .person > figure img{position:absolute;inset:0;width:100%;height:100%;border-radius:20px;object-fit:cover;object-position:50% 30%}
body:not(.home) .person > .wp-block-group{min-width:0}
body:not(.home) .person p{margin:0 0 12px}
/* The square photo of the graduates in a door: the faces stay in the frame */
.door-card img[src*="5856"]{object-position:50% 22%}
/* Two columns where the right one holds only a photo (the personal page): text wider, photo smaller, at the top */
.split-2:has(> .split-2__col:last-child > .wp-block-image:only-child){grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.split-2 > .split-2__col:last-child > .wp-block-image:only-child img{max-height:560px;object-fit:cover;object-position:50% 20%}
.split-2__col > h3:first-child{margin-top:0}
.split-2__col > h3{margin-top:32px}
/* Posts (articles and cenotes): the hero takes the featured image and the title from the template */
.hero-post h1{max-width:22ch}
/* Articles: one reading column, pictures of one width, notes as boxes, picture beside text narrower than the text */
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content > *,.post-template-single-invite .wp-block-post-content > *,.post-template-single-invite .cenote-invite > *{max-width:1077px;margin-left:auto !important;margin-right:auto !important}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content p,:is(.post-template-default,.post-template-single-invite) .wp-block-post-content li{font-size:19px;line-height:1.6}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content h2{font-size:30px;margin-top:36px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-image{margin:12px auto 20px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-image img{width:100%;height:auto;border-radius:14px;display:block}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-media-text{grid-template-columns:38% minmax(0,1fr) !important;gap:28px;align-items:center}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-media-text .wp-block-media-text__content{padding:0}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-media-text img{border-radius:14px;width:100%;height:auto;object-fit:contain}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-preformatted{white-space:normal;font-family:inherit;font-size:17px;line-height:1.55;background:var(--surface);border-left:3px solid var(--accent);border-radius:12px;padding:16px 20px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-separator{border:0;border-top:1px solid var(--line);margin:32px auto}
@media (max-width:760px){
  body:not(.home) .person{grid-template-columns:minmax(0,1fr);gap:20px}
  body:not(.home) .person > figure{order:0;min-height:0}
  body:not(.home) .person > figure img{position:static;height:340px}
  .split-2:has(> .split-2__col:last-child > .wp-block-image:only-child){grid-template-columns:minmax(0,1fr)}
  :is(.post-template-default,.post-template-single-invite) .wp-block-post-content .wp-block-media-text{grid-template-columns:minmax(0,1fr) !important}
}
/* Legend of the cenote map with the two markers (ТЕКСТ 60) */
.map-legend{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 28px;font-size:15px;color:var(--muted)}
.map-legend li{display:flex;align-items:center;gap:10px}
.map-legend img{width:25px;height:auto;flex:none}
/* ТЕКСТ 61: captions under the pictures of posts and pages read like the lines under the tables (Alex) */
.wp-block-post-content figcaption.wp-element-caption:not(.wp-block-gallery figcaption){font-size:18px;line-height:1.5;color:var(--muted);margin-top:8px;text-align:left}
/* ТЕКСТ 62 (Alex): the bio photo of the course pages fades out on every side, like the narrow doors */
body:not(.home) .person > figure img{border-radius:0;-webkit-mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);mask-composite:intersect}
/* ТЕКСТ 62: the bio block of the home page laid out as on the course pages, text on the left, the round photo smaller on the right */
.home .person{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:40px;align-items:center}
.home .person > figure{order:2;margin:0}
.home .person img{width:180px;height:180px}
@media (max-width:760px){.home .person{grid-template-columns:minmax(0,1fr);gap:20px}.home .person > figure{order:0}}
/* ТЕКСТ 62: titles and photos of the doors are links to the door's page */
.door h2 a{color:inherit;text-decoration:none}
.door h2 a:hover,.door-card h3 a:hover{color:var(--accent)}
.door .wp-block-image a,.door-card .wp-block-image a{display:block;height:100%}
.door .wp-block-image a:hover img,.door-card .wp-block-image a:hover img,.person figure a:hover img{filter:brightness(1.08)}
/* ТЕКСТ 62: the point of the new photos that stays in the frame of the doors */
.door img[src*="instructors"]{object-position:50% 15%}
.door-card img[src*="ccr-ocean-gearing"]{object-position:50% 28%}
/* ТЕКСТ 62: on a wide door the text sets the height, a tall photo no longer stretches the door (Bull Sharks) */
.doors-1 .door-card > .wp-block-image{position:relative;min-height:280px}
.doors-1 .door-card > .wp-block-image img{position:absolute;inset:0;height:100%;min-height:0}
@media (max-width:760px){.doors-1 .door-card > .wp-block-image{min-height:0}.doors-1 .door-card > .wp-block-image img{position:static;height:200px}}
/* ТЕКСТ 65 (Alex): the block at the end of every page of the cenote section looks like the area pages: two doors, the courses, the rules of CREER */
.cenote-invite{margin:0 auto}
.cenote-invite .section > h2{font-size:36px;line-height:1.1;margin-bottom:12px}
@media (max-width:760px){.cenote-invite .section > h2{font-size:28px}}
/* ТЕКСТ 65: the footer stays at the bottom of short pages (Legal, 404) */
.scroller > .wp-block-template-part:last-child{margin-top:auto}
/* ТЕКСТ 65 (Alex): wide doors one under another swap photo and text, as on the home page */
.doors-1 .door-card.flip > .wp-block-image{order:2}
.doors-1 .door-card.flip > .wp-block-image:not(.is-map) img{-webkit-mask-image:linear-gradient(to left,#000 60%,transparent);mask-image:linear-gradient(to left,#000 60%,transparent)}
@media (max-width:760px){.doors-1 .door-card.flip > .wp-block-image{order:0}.doors-1 .door-card.flip > .wp-block-image:not(.is-map) img{-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}}
/* ТЕКСТ 65: DAN Europe partner logo and QR code on About */
.dan-row{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin-top:14px}
.dan-row img{display:block;height:auto;border-radius:8px}
.dan-row .dan-logo{width:200px}.dan-row .dan-qr{width:120px;background:#fff;padding:6px}
/* ТЕКСТ 65: the page 404 */
.notfound{min-height:52vh;display:flex;flex-direction:column;justify-content:center;padding:6vh 0}
.notfound .kicker{font-family:Archivo,sans-serif;font-size:96px;font-weight:800;line-height:1;color:var(--accent);margin:0}
.notfound h1{font-size:44px;line-height:1.1;margin:12px 0 0}
.notfound p{font-size:20px;line-height:1.6;max-width:680px}
.notfound .wp-block-buttons{gap:12px;margin-top:20px}
@media (max-width:760px){.notfound .kicker{font-size:64px}.notfound h1{font-size:32px}}
.legal-cookies button{font:inherit;cursor:pointer}
/* ТЕКСТ 66 (Alex): the faces stay in the frame of the door photos */
.door-card img[src*="intro-to-tech-drysuit"]{object-position:50% 17%}
.door-card img[src*="rec-courses-boat-ok"]{object-position:55% 22%}
.door-card img[src*="gbm-cenote-shaka"]{object-position:50% 42%}
.door-card img[src*="ow-instructor-carry"]{object-position:40% 15%}
.door img[src*="groups.webp"]{object-position:50% 40%}
/* ТЕКСТ 67 (Alex): the cenote block below a post is as wide as the text of the post and as on the area pages */
.scroller > .wp-block-template-part > .cenote-invite{padding:0 5vw !important;max-width:1220px;margin:0 auto;box-sizing:border-box}
.scroller > .wp-block-template-part > .cenote-invite > *{max-width:none}
.post-template-single-invite .scroller > .wp-block-template-part > .cenote-invite > *{max-width:1077px;margin-left:auto !important;margin-right:auto !important}
/* ТЕКСТ 67: doors inside an article keep the door picture, not the article picture */
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .door-card .wp-block-image{margin:0}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .door-card .wp-block-image img{height:240px;object-fit:cover;border-radius:0}
@media (max-width:760px){:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .door-card .wp-block-image img{height:200px}}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .door-card h3{font-size:24px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content .door-card p{font-size:17px}
/* ТЕКСТ 68, threshold ТЕКСТ 71 (Alex: on a 1280 px screen the poster was gone): below 1240 px the poster of the season schedule
   does not fit right of the H1 and the intro, so the header shows only its blurred side, enlarged, and the whole poster stands
   under the intro (the image block hero-poster of the page); from 1240 px that block is hidden */
@media (max-width:1239px){.hero img[src*="schedule-2026-27"][src*="hero"]{object-position:0% 50% !important;transform:scale(2.2) !important;transform-origin:0 50%;animation:none !important}}
.hero .wp-block-image.hero-poster{margin:22px 0 0;max-width:760px}
.hero .wp-block-image.hero-poster img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
@media (min-width:1240px){.hero .wp-block-image.hero-poster{display:none}}
/* ТЕКСТ 70: the still picture of a Google My Maps map (inc/speed.php); on a phone the box is 4:5 like the picture */
.map-lite--mymap .embed-lite__img{object-position:50% 50%}
@media (max-width:700px){.map-lite.map-lite--mymap{aspect-ratio:4/5 !important}}
/* ТЕКСТ 70: the Instagram feed, an even grid: 4 in a row, 2 on a phone, square pictures that keep their place before they load */
#sb_instagram #sbi_images{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px !important;height:auto !important}
#sb_instagram #sbi_images .sbi_item{width:auto !important;padding:0 !important;position:static !important;transform:none !important}
#sb_instagram .sbi_photo_wrap,#sb_instagram .sbi_photo{aspect-ratio:1/1;height:auto !important}
#sb_instagram .sbi_photo img{width:100%;height:100%;object-fit:cover}
@media (max-width:760px){#sb_instagram #sbi_images{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ТЕКСТ 87 (Alex, 19.11.2026): YouTube videos of a cenote article as square tiles of the Instagram feed (the group yt-feed above the feed; assets/js/embeds.js moves the tiles into the feed grid); a click opens the player in a window */
.yt-feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 12px}
.yt-feed[hidden]{display:none}
.yt-feed>*{margin:0 !important}
.yt-feed .wp-block-embed,#sbi_images .yt-tile{margin:0 !important;min-width:0}
.yt-feed .wp-block-embed__wrapper,#sbi_images .yt-tile .wp-block-embed__wrapper{position:relative;aspect-ratio:1/1}
.wp-embed-responsive .yt-feed .wp-block-embed__wrapper::before,.wp-embed-responsive #sbi_images .yt-tile .wp-block-embed__wrapper::before{display:none}
.yt-feed .embed-lite,#sbi_images .yt-tile .embed-lite{position:absolute;inset:0;aspect-ratio:auto !important;border-radius:0}
.yt-feed .embed-lite__btn,#sbi_images .yt-tile .embed-lite__btn{background:rgba(5,12,16,0.12);padding:8px}
.yt-feed .embed-lite__title,#sbi_images .yt-tile .embed-lite__title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.yt-feed .embed-lite__play,#sbi_images .yt-tile .embed-lite__play{width:56px;height:40px;background:rgba(0,0,0,0.7)}
.yt-feed .embed-lite__play::after,#sbi_images .yt-tile .embed-lite__play::after{left:22px;top:11px;border-width:9px 0 9px 15px}
@media (max-width:760px){.yt-feed{grid-template-columns:repeat(2,minmax(0,1fr))}}
.yt-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:56px 16px;background:rgba(5,12,16,0.88)}
.yt-modal__box{width:min(1076px,100%,calc((100vh - 112px) * 16 / 9))}
.yt-modal__box .embed-lite{aspect-ratio:16/9}
.yt-modal__close{position:absolute;top:8px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,0.12);color:#fff;font:400 30px/44px system-ui,sans-serif;cursor:pointer}
.yt-modal__close:hover,.yt-modal__close:focus-visible{background:rgba(255,255,255,0.25)}

/* ТЕКСТ 73: the WhatsApp window on the computer (theme part whatsapp-window, inc/whatsapp.php, assets/js/whatsapp.js) */
dialog.wa-window{padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);width:min(400px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,0.5)}
dialog.wa-window::backdrop{background:rgba(4,9,12,0.74)}
.wa-window-in{position:relative;padding:28px 28px 24px}
.wa-window-close{position:absolute;top:8px;right:10px;margin:0}
.wa-window-close button{background:none;border:0;color:var(--muted);font-size:30px;line-height:1;cursor:pointer;padding:4px 8px}
.wa-window-close button:hover,.wa-window-close button:focus-visible{color:var(--ink)}
dialog.wa-window .wa-window-head{gap:16px;align-items:center;margin:0 0 20px;padding-right:24px}
.wa-window-logo img{width:64px;height:64px;display:block}
dialog.wa-window .wa-window-title{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:21px;line-height:1.2;margin:0}
dialog.wa-window .wa-window-number{color:var(--muted);font-size:16px;margin:4px 0 0}
dialog.wa-window .wa-window-qr{width:220px;margin:0 auto;padding:10px;box-sizing:border-box;background:#fff;border-radius:10px}
dialog.wa-window .wa-window-qr img{display:block;width:100%;height:auto}
dialog.wa-window .wa-window-hint{text-align:center;font-size:16px;line-height:1.4;margin:14px 0 20px}
dialog.wa-window .wa-window-buttons{gap:10px;margin:0}
dialog.wa-window .wa-window-buttons .wp-block-button{width:100%;margin:0}
dialog.wa-window .wa-window-buttons .wp-block-button__link{display:block;width:100%;box-sizing:border-box;text-align:center;border-radius:999px;padding:12px;font-size:17px;font-weight:700;line-height:1.2}
dialog.wa-window .wa-web .wp-block-button__link{background:#25d366;color:#0b1216;border:1px solid #25d366}
dialog.wa-window .wa-web .wp-block-button__link:hover{background:#1fb457;border-color:#1fb457}
dialog.wa-window .wa-app .wp-block-button__link{background:transparent;color:var(--accent);border:1px solid var(--accent)}
dialog.wa-window .wa-app .wp-block-button__link:hover{background:var(--accent);color:var(--bg)}

/* ТЕКСТ 80, RU-2: the language of the page in the footer switcher EN / RU is not a link look */
.lang-switch a[aria-current]{text-decoration:none;opacity:.6;pointer-events:none}
/* ТЕКСТ 80, RU-2 (Alex): a narrow line "this page is in Russian" with the small buttons RU and EN; shown by inc/lang.php */
.lang-banner{position:fixed;left:50%;top:84px;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);box-sizing:border-box;padding:4px 6px 4px 12px;border-radius:999px;background:rgba(10,16,22,.92);color:#fff;border:1px solid rgba(255,255,255,.22);font-size:13px;line-height:1.2;white-space:nowrap}
.lang-banner[hidden]{display:none}
.lang-banner a{padding:3px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.55);color:#fff;text-decoration:none;font-weight:600}
.lang-banner a[data-go]{background:#fff;color:#0a1016;border-color:#fff}
/* ТЕКСТ 88 start (Alex, 2026-11-22): long articles. Footnote marks [N] that jump to the list of sources, the list itself, the
   signature of the author, loop diagrams drawn as inline SVG in the colours of the theme (light and dark by the system
   setting), and the visible places kept for illustrations that are not chosen yet. New classes only, nothing above changes. */
.wp-block-post-content sup.fn{font-size:.7em;line-height:0;white-space:nowrap}
.wp-block-post-content sup.fn a{text-decoration:none;padding:8px 1px;margin:-8px 0}
.wp-block-post-content sup.fn a:hover,.wp-block-post-content sup.fn a:focus-visible{text-decoration:underline}
.wp-block-post-content .sources p{font-size:16px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;margin:0 0 10px;scroll-margin-top:20px}
.wp-block-post-content .sources p:target{color:var(--ink);background:var(--tint);box-shadow:0 0 0 8px var(--tint);border-radius:4px}
.wp-block-post-content p.article-author{font-weight:600;margin-top:28px}
.loop-diagram{--ld-o2:#6fd08c;--ld-dil:#f0b35a;margin-top:20px;margin-bottom:26px;padding:14px 14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-sizing:border-box}
@media (prefers-color-scheme: light){.loop-diagram{--ld-o2:#1a7f3c;--ld-dil:#b25e00}}
.loop-diagram svg{display:block;width:100%;max-width:460px;height:auto;margin:0 auto;font-family:inherit}
.loop-diagram .ld-pair{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:700px){.loop-diagram .ld-pair{grid-template-columns:1fr 1fr}}
.loop-diagram .ld-pipe{fill:none;stroke:var(--muted);stroke-width:3}
.loop-diagram .ld-box{fill:var(--bg);stroke:var(--muted);stroke-width:1.5}
.loop-diagram .ld-arrow{fill:var(--ink)}
.loop-diagram text{fill:var(--ink);font-size:12px}
.loop-diagram text.ld-s{fill:var(--muted);font-size:11px}
.loop-diagram text.ld-b{font-weight:600}
.loop-diagram .ld-o2{fill:var(--ld-o2);stroke:var(--surface);stroke-width:2}
.loop-diagram .ld-dil{fill:var(--ld-dil);stroke:var(--surface);stroke-width:2}
.loop-diagram .ld-sen{fill:var(--accent)}
.loop-diagram .ld-feed{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-dasharray:4 3}
.loop-diagram figcaption{font-size:16px;line-height:1.45;color:var(--muted);margin-top:10px;text-align:left}
.ill-placeholder{margin-top:20px;margin-bottom:26px;padding:22px 18px;border:2px dashed var(--accent);border-radius:14px;background:var(--tint);box-sizing:border-box;text-align:center}
.ill-placeholder .ill-tag{display:block;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:600;margin:0 0 6px}
.ill-placeholder figcaption{font-size:17px;line-height:1.45;color:var(--ink);margin:0}
/* ТЕКСТ 88 end */
/* ТЕКСТ 88b start (Alex, 2026-11-22): articles with a list of sources (the new long articles) read in the width of the
   course pages (1077 px, like the sections there), not in the 820 px column of the older articles. Photos and loop
   diagrams take half of the column and stand by turns on the right and on the left, the text runs around them; on a
   phone they take the whole width. The block "Your instructor" at the end looks as on the course pages. */
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > *{max-width:1077px}
@media (min-width:761px){
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > :is(.wp-block-image,.loop-diagram):is(.alignleft,.alignright){width:520px;max-width:calc(50% - 14px);box-sizing:border-box;margin-top:6px !important;margin-bottom:18px !important}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > :is(.wp-block-image,.loop-diagram).alignright{float:right;margin-left:28px !important;margin-right:max(0px,calc((100% - 1077px) / 2)) !important}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > :is(.wp-block-image,.loop-diagram).alignleft{float:left;margin-right:28px !important;margin-left:max(0px,calc((100% - 1077px) / 2)) !important}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > :is(.wp-block-image,.loop-diagram):is(.alignleft,.alignright) img{width:100%;height:auto}
.loop-diagram:is(.alignleft,.alignright) .ld-pair{grid-template-columns:1fr 1fr}
.loop-diagram:is(.alignleft,.alignright){padding:10px 10px 8px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > :is(h2,.sources,.person){clear:both}
}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .person{margin-top:48px}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .person > figure{margin:0 !important;width:auto;max-width:none}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .person > figure img{width:100%;height:100%;border-radius:0}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .person p{font-size:18px;line-height:1.5}
@media (max-width:760px){:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .person > figure img{height:340px}}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .ld-row{display:grid;grid-template-columns:1fr;gap:20px;clear:both}
@media (min-width:761px){:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .ld-row{grid-template-columns:1fr 1fr}}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .ld-row > .loop-diagram{margin:0}
/* ТЕКСТ 88c (Alex, 2026-11-23): two historical pictures side by side in a row (a group ld-row), and the small caption
   with the author and the licence under a picture */
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .ld-row > .wp-block-image{margin:0 !important;width:auto;max-width:none}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) > .ld-row > .wp-block-image img{width:100%;height:auto}
:is(.post-template-default,.post-template-single-invite) .wp-block-post-content:has(> .sources) .wp-block-image figcaption.wp-element-caption{font-size:14px;line-height:1.4;margin-top:6px}
/* ТЕКСТ 88b end */
/* ТЕКСТ 88k (Alex, 2026-11-24): all posts (the older articles too) read in the 1077 px column of the cenote pages and the new article, not 820 px (rules above) */
/* ТЕКСТ 88d (Alex, 2026-11-23): the text of a post (articles and cenotes) no longer starts right at the lower edge of the header photo: a gap of about one line */
.hero-post + .wp-block-post-content{padding-top:32px}
@media (max-width:760px){.hero-post + .wp-block-post-content{padding-top:24px}}
/* ТЕКСТ 88e (Alex, 2026-11-23): an epigraph above the first paragraph of a long article: a quote with a line on the left, narrower than the text, the source under it */
.wp-block-post-content .wp-block-quote.article-epigraph{max-width:640px !important;margin:8px auto 36px !important;padding:4px 0 4px 22px;border-left:3px solid var(--accent);clear:both}
.wp-block-post-content .wp-block-quote.article-epigraph p{font-size:21px !important;line-height:1.5 !important;font-style:italic;margin:0 0 10px}
.wp-block-post-content .wp-block-quote.article-epigraph cite{display:block;font-size:15px;font-style:normal;color:var(--muted)}
.wp-block-post-content .wp-block-quote.article-epigraph cite a{color:inherit}
/* ТЕКСТ 92 (Alex, 2026-11-26): the personal page /alexander-vronsky/ (EN and RU) in the manner of a personal page he liked:
   the name in very large capitals across the width of the site (never wider, Alex), a row of three columns under it (who,
   contacts, the lead sentence of the biography in capitals), a cave photo band, then rows "label on the left, text on the
   right" with thin lines, the courses as cards. Only core blocks with these classes, all editable in the block editor. */
.person-hero.wp-block-cover{min-height:0;padding:0 0 8px;background:var(--bg)}
.person-hero .wp-block-cover__background{background:var(--bg) !important;opacity:1 !important}
.person-hero .wp-block-cover__inner-container{min-height:0;gap:0;justify-content:flex-start;container-type:inline-size}
.person-hero .kicker{margin-top:28px !important;margin-bottom:18px !important;color:var(--muted)}
.person-hero .kicker a{color:var(--muted)}
.person-hero h1.person-name{max-width:none;margin:0;color:var(--ink);font-size:clamp(18px,2.1cqi,26px);font-weight:600;line-height:1.25;letter-spacing:0;text-transform:none}
.person-hero h1.person-name strong{display:block;font-family:Archivo,"Archivo Fallback",system-ui,sans-serif;font-weight:800;text-transform:uppercase;font-size:8.6cqi;line-height:.92;letter-spacing:-0.02em;margin:0 0 .35em -0.04em;white-space:nowrap}
.person-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);gap:12px 32px;margin-top:28px !important;padding-top:16px;border-top:1px solid var(--line)}
.person-head > *{margin:0 !important;min-width:0}
.person-head p{margin:0 0 4px;font-size:16px;line-height:1.45;color:var(--ink)}
.person-head .person-tag{color:var(--muted)}
.person-head__links a{color:var(--ink);text-decoration:none}
.person-head__links a::before{content:"\2192\00a0";color:var(--accent)}
.person-head__links a:hover{color:var(--accent)}
.person-hero p.person-lead{font-family:Archivo,"Archivo Fallback",system-ui,sans-serif;font-weight:800;text-transform:uppercase;font-size:clamp(18px,1.9cqi,24px);line-height:1.22;letter-spacing:.01em;color:var(--ink);max-width:none}
.wp-block-post-content > .person-band{margin-top:8px}
.person-band img{display:block;width:100%;height:clamp(200px,30vw,420px);object-fit:cover;object-position:50% 55%;border-radius:0}
.person-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:16px 32px;padding-top:18px;border-top:1px solid var(--line);margin:56px 0 !important}
.person-row--3{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr)}
.person-row > *{margin:0 !important;min-width:0}
.wp-block-post-content > .person-row > h2.person-row__label{font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.wp-block-post-content > .person-row > h2.person-row__label::before{content:"\21B3\00a0";color:var(--accent)}
.person-row__body p,.person-row__body li{font-size:19px;line-height:1.6}
.person-row__body > p{margin:0 0 14px}
.person-photo{margin:0}
.person-photo img{width:100%;height:auto;border-radius:14px;display:block}
.person-lines > .person-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:8px 24px;padding:14px 0;border-bottom:1px solid var(--line);margin:0 !important}
.person-lines > .person-line:first-child{padding-top:0}
.person-line > *{margin:0 !important}
.person-line > .person-line__tag{font-family:Archivo,"Archivo Fallback",system-ui,sans-serif;font-weight:800;font-size:17px;line-height:1.5;color:var(--ink)}
.person-list{list-style:none;padding:0;margin:0}
.person-list li{padding:12px 0;border-bottom:1px solid var(--line)}
.person-list li:first-child{padding-top:0}
.person-courses{margin-top:56px !important;padding-top:18px;border-top:1px solid var(--line)}
.person-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px !important}
.person-card{position:relative;margin:0 !important;padding:20px 22px 22px;background:var(--surface);border:1px solid var(--line);border-radius:14px;transition:border-color .2s}
.person-card:hover{border-color:var(--accent)}
.person-card h3{margin:0 0 10px;font-size:20px;line-height:1.25}
.person-card h3 a{color:var(--ink);text-decoration:none}
.person-card h3 a::after{content:"";position:absolute;inset:0;border-radius:14px}
.person-card h3 a::before{content:"\2192";float:right;margin-left:12px;color:var(--accent)}
.person-card p{margin:0;font-size:16px;line-height:1.5;color:var(--muted)}
.person-card p a{position:relative;z-index:1}
.person-contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px 32px}
.person-contact > *{margin:0 !important;min-width:0}
.person-contact h3{margin:0 0 6px;font-size:15px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
@media (max-width:1000px){
  .person-row--3{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  .person-row--3 > .person-photo{grid-column:2;max-width:360px}
  .person-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .person-head{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .person-head > .person-lead{grid-column:1 / -1;order:-1;margin-bottom:8px !important}
  .person-row,.person-row--3,.person-contact,.person-lines > .person-line{grid-template-columns:minmax(0,1fr)}
  .person-row--3 > .person-photo{grid-column:auto}
  .person-row{margin:40px 0 !important}
  .person-row__body p,.person-row__body li{font-size:17px}
  .person-cards{grid-template-columns:minmax(0,1fr)}
}
/* ТЕКСТ 92 end */
