/* Presentation only: shared across the website, Academy, reader and Planner. */
@font-face{font-family:'M2XM Editorial';src:url('/fonts/cormorant-garamond.woff') format('woff');font-style:normal;font-weight:300 700;font-display:swap}
:root{--m2xm-paper:#faf6ee;--m2xm-gold:#b68a48;--m2xm-heading:'M2XM Editorial','Iowan Old Style','Palatino Linotype',Georgia,serif}
body,body.mobile-app{background:var(--m2xm-paper)!important;isolation:isolate}
/* Full-viewport background: cover keeps proportions (no stretch/repeat) and always fills every edge.
   100lvh covers the largest mobile viewport, so no gap appears when the browser bar hides. Focal point = the globe. */
body::before{content:"";position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:-1;pointer-events:none;background-image:url('/assets/global-orbit-background.png');background-repeat:no-repeat;background-size:cover;background-position:66% 55%;opacity:.5}
h1,h2,.app-content h1,.app-content h2,.app-hero h1,.home-heading h1,.page-heading h1,.content-box h2,.global-section-title,.reader-heading{font-family:var(--m2xm-heading)!important;font-weight:600;letter-spacing:-.025em;line-height:1.12;text-wrap:balance}
h1,.academy-start-hero h2,.app-hero h1{font-weight:600}
/* Keep text surfaces opaque: decoration belongs outside reading and input areas. */
.card,.hero,.app-card,.app-card.accent,.app-hero,.content-box,.simple-course,.reader-page,.reader-notes,.lesson-resources,.locked,dialog{background:#fffaf3!important}
.academy-start-hero{background:#f4ebdc!important}
.global-section-grid a,.global-section-grid button,.app-stats>div,.price-summary>div{background:#fffaf3}
.reader-page,.reader-notes,.lesson-resources{isolation:isolate}
input,select,textarea{background-color:#fff!important}
.global-header,.app-header,body>header{background-color:#faf6ee!important}
/* Heading-like numbers and short editorial titles; body text and controls stay unchanged. */
.app-course-title,.app-price,.price-summary .price{font-family:var(--m2xm-heading)!important;font-weight:600}
/* Phone portrait: the square image is cropped left/right, keep the globe in view. Tablet: centred on the globe.
   Desktop/landscape: cropped top/bottom, keep globe and golden waves. Lower opacity on phones keeps text readable. */
@media(max-width:600px){body::before{background-position:68% 50%;opacity:.36}h1,h2,.app-content h1,.app-content h2{letter-spacing:-.015em}}
@media(min-width:601px) and (max-width:1099px){body::before{background-position:64% 55%;opacity:.45}}
@media(min-width:1100px){body::before{background-position:60% 62%;opacity:.55}}
@media(orientation:landscape) and (max-height:600px){body::before{background-position:62% 60%}}
@media print{body::before{display:none}body,body.mobile-app{background:#fff!important}}

/* Logo: original transparent artwork (PNG alpha), losslessly trimmed; no crop of the welcome poster, no blend modes.
   max2me-logo-full-transparent.png 1239x597 (знак + GLOBAL NETWORK COMMUNITY + By Moni Daneshka), max2me-mark-transparent.png 1230x330 (знак). */
img.brand-reference-logo{object-fit:contain!important;object-position:center!important;height:auto!important;max-height:none!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.academy-start-hero img.brand-reference-logo{width:260px!important;aspect-ratio:1230/330!important;flex-shrink:0}
.app-hero-art,.home-logo-frame{aspect-ratio:1239/597!important;overflow:visible;background:transparent!important;border:0!important;box-shadow:none!important}
.app-hero-art img.brand-reference-logo,.home-logo-frame img.brand-reference-logo{position:static!important;top:auto!important;left:auto!important;width:100%!important;height:100%!important;margin:0!important}
.home-logo-frame{max-width:440px}
.global-header>.global-home .global-brand-image{display:block;width:126px;height:auto;aspect-ratio:1230/330;object-fit:contain;background:transparent}
@media(max-width:600px){.global-header>.global-home .global-brand-image{width:116px}.academy-start-hero img.brand-reference-logo{width:240px!important}}

/* Max2Me – Етап 2 (НОВО). Текст „Max2Me“ под оригиналния златен знак; изображенията не са променени.
   --max2me-wordmark е дизайнерско решение: по-тъмен тон на съществуващото злато (#b68a48) за контраст на малък текст. */
:root{--max2me-wordmark:#7a5426}
.max2me-wordmark{display:block;text-align:center;font-family:var(--m2xm-heading);font-weight:600;font-size:clamp(18px,2.4vw,26px);letter-spacing:.16em;color:var(--max2me-wordmark);line-height:1.1;margin:.15em auto .6em}
.max2me-logo-block{display:flex;flex-direction:column;align-items:center;min-width:0}
.max2me-logo-block>.app-hero-art{width:100%}
@media(max-width:1000px){.app-hero .max2me-logo-block{display:none}}
.global-home:has(.max2me-wordmark){display:inline-flex!important;flex-direction:column;align-items:center;gap:0;line-height:1}
.max2me-wordmark--header{font-size:11px;letter-spacing:.2em;margin:2px 0 0}
.max2me-dl-list{list-style:none;padding:0;margin:.5em 0 1.2em}
.max2me-dl-list li{padding:.5em 0;border-bottom:1px solid #eadfcd;overflow-wrap:anywhere}
.max2me-dl-list small{color:#6b5a48}
.max2me-dl-group h3{margin:1em 0 .2em}
.calc-formula{opacity:.85}

/* Show/hide password button (public/workspace/account.js). 44px touch target; the browser's own reveal icon is hidden to avoid two eyes. */
.pw-field{position:relative;display:block;margin-bottom:8px}
.pw-field>input,.account-card .pw-field>input{width:100%;box-sizing:border-box;margin-bottom:0;padding-right:52px!important}
.pw-field>input::-ms-reveal,.pw-field>input::-ms-clear{display:none}
.pw-toggle{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;height:min(44px,100%);min-width:0;margin:0;padding:0;border:0;border-radius:8px;background:transparent!important;color:#6b5a48;cursor:pointer;box-shadow:none}
.pw-toggle:hover{color:#352344}
.pw-toggle:focus-visible{outline:2px solid #b68a48;outline-offset:-2px}
.pw-toggle[aria-pressed="true"]{color:#352344}

/* 27.10.2026: бъдещи канали на общността (community-channels.js) – видими само с настроен адрес. */
.community-channels:not([hidden]){display:contents}
