/* Sledotarsachi 4.3.0: Mountain Expedition visual language
   Presentation only. Keeps all existing IDs, forms, actions and permission rules. */
:root{--mt-pine:#122f2a;--mt-pine2:#214a3d;--mt-gold:#f3c785;--mt-forest:#27654e;--mt-paper:#f6f2e9;--mt-line:#dfd8c8;--mt-shadow:0 12px 34px rgba(26,45,36,.085)}
html{scroll-behavior:smooth}
body.mt-theme{background-color:var(--mt-paper);background-image:linear-gradient(90deg,rgba(246,242,233,.95),rgba(246,242,233,.87)),url("assets/contours.svg");background-size:auto,420px 350px;color:var(--mt-pine);--ink:#193a32;--cream:var(--mt-paper);--line:var(--mt-line);--soft:#60766a;--forest:#23684e;--light:#ecefe4}
body.mt-theme *,body.mt-theme *::before,body.mt-theme *::after{box-sizing:border-box}
body.mt-theme a,body.mt-theme button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
body.mt-theme a:focus-visible,body.mt-theme button:focus-visible,body.mt-theme input:focus-visible,body.mt-theme textarea:focus-visible,body.mt-theme select:focus-visible{outline:3px solid #dcaa56;outline-offset:3px}
body.mt-theme :is(.ot-header,.st-head,.app-header,.h-top,header:not(.ot-header):not(.st-head):not(.app-header):not(.h-top)){background:#13362f;color:#fff;border-color:#315447}
body.mt-theme :is(.ot-header,.st-head,.app-header,.h-top) a{color:#fff}
body.mt-theme header .brand,body.mt-theme header .logo,body.mt-theme header .st-brand{color:#fff;text-decoration:none}
body.mt-theme header .nav{color:#e4e9e0}
body.mt-theme header .nav.active{color:#f6d4a2;border-color:#f6d4a2}
body.mt-theme header :is(.ot-brand,.st-brand,.brand,.logo){letter-spacing:-.04em}
body.mt-theme header :is(.ot-brand,.st-brand,.brand,.logo)::first-letter{color:#efc68a}
body.mt-theme :is(.ot-panel,.st-box,.panel,.h-panel,.card,.st-action,.ot-card,.portal-card,.sv-card,.chat-card){border-color:#e1d9c9;box-shadow:var(--mt-shadow)}
body.mt-theme :is(.ot-panel,.st-box,.panel,.h-panel,.card,.st-action,.ot-card){background:#fffdfa}
body.mt-theme :is(.ot-panel,.st-box,.panel,.h-panel,.card,.st-action,.ot-card):hover{border-color:#cac09f}
body.mt-theme :is(.ot-panel,.st-box,.panel,.h-panel,.card,.st-action,.ot-card){border-radius:19px}
body.mt-theme :is(.ot-btn-main,.st-leader-grid a:hover,.btn.dark){background:#1d5b48;color:#fff;border-color:#1d5b48}
body.mt-theme :is(.ot-btn,.st-chip,.st-more a,.st-leader-grid a){border-radius:11px}
body.mt-theme :is(.ot-btn,.st-chip,.st-leader-grid a){min-height:43px}
body.mt-theme :is(.ot-btn:hover,.st-chip:hover,.btn:hover,.st-leader-grid a:hover){transform:translateY(-2px);box-shadow:0 10px 21px rgba(15,54,38,.16)}
body.mt-theme :is(input,select,textarea){accent-color:#2d7a55}
body.mt-theme :is(.st-club-select,.ot-fields input,.ot-fields textarea,.ot-fields select,.ot-picker select){background:#fffefa;border-color:#c9d3c3}
body.mt-theme :is(.st-action,.ot-card,.h-card,.home-shortcuts a){position:relative;overflow:hidden}
body.mt-theme :is(.st-action,.ot-card,.h-card)::after{content:"";position:absolute;right:-36px;bottom:-53px;width:145px;height:120px;background:url("assets/contours.svg") center/215px auto;opacity:.27;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000)}
body.mt-theme .st-action>*{position:relative;z-index:1}
body.mt-theme :is(.ot-eyebrow,.st-eyebrow,.eyebrow){letter-spacing:.16em;font-weight:850}
body.mt-theme :is(.st-subhead h2,.ot-heading h2,.section-head h2){letter-spacing:-.055em}
/* The scenic panorama is an original local illustration. Pages may optionally load a public-domain Wikimedia photograph on top of it.
   The illustration remains fully functional when third-party images are unavailable. */
body.mt-theme .st-hero,body.mt-theme .ot-hero,body.mt-theme .h-hero,body.mt-theme .hero{
  background-color:#244b43;
  background-image:linear-gradient(95deg,rgba(13,39,34,.93) 0%,rgba(17,49,41,.85) 34%,rgba(18,51,42,.47) 73%,rgba(12,41,34,.42)),url("assets/mountain-panorama.svg");
  background-size:cover;background-position:center 55%;color:#fff;
  border:1px solid rgba(255,255,255,.17);box-shadow:0 22px 60px rgba(17,43,34,.2);position:relative;isolation:isolate
}
body.mt-theme :is(.st-hero,.ot-hero,.h-hero,.hero)::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(0deg,rgba(12,37,31,.35),transparent 45%);z-index:-1;pointer-events:none}
body.mt-theme .st-hero{border-radius:0 0 27px 27px;padding:clamp(38px,6vw,72px) clamp(24px,4vw,58px);min-height:315px;display:flex;flex-direction:column;justify-content:center}
body.mt-theme .st-hero h1{font-size:clamp(37px,6.7vw,65px);line-height:1.04;max-width:680px;text-shadow:0 3px 17px #092f2877}
body.mt-theme .st-hero em{color:#f3d3a2}
body.mt-theme .st-hero .st-eyebrow{color:#f4d8a7}
body.mt-theme .st-hero>p:last-child{color:#f5f2e8;max-width:530px;font-size:clamp(14px,1.65vw,17px);line-height:1.65}
body.mt-theme .st-box{background:#fffdf9;border-top:4px solid #e6bd80}
body.mt-theme .st-grid{gap:15px}
body.mt-theme .st-action{min-height:180px;padding:23px;border-radius:18px;background-color:#fffdfa}
body.mt-theme .st-action.st-primary{background:linear-gradient(145deg,#ecf1df,#fffdf7);border:1px solid #bdd2bc}
body.mt-theme .st-action .st-emoji{font-size:36px}
body.mt-theme .st-action strong{font-size:19px}
body.mt-theme .st-action:hover{transform:translateY(-4px);box-shadow:0 17px 32px rgba(19,57,45,.15);border-color:#a3bba7}
body.mt-theme .st-next{color:#98733d}
body.mt-theme .st-leader-grid a{background:#e8eee3}
/* Homepage: large panoramic expedition cover, map becomes a translucent field-note panel. */
body.mt-theme.home-clean .hero{min-height:490px;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:0;border-radius:27px}
body.mt-theme.home-clean .hero-copy{padding:clamp(32px,5vw,70px);align-self:center}
body.mt-theme.home-clean .hero h1{font-size:clamp(40px,5.2vw,71px);line-height:1.02;letter-spacing:-.065em;text-shadow:0 3px 18px #071e19aa}
body.mt-theme.home-clean .hero h1 span{color:#f9d297}
body.mt-theme.home-clean .hero p{font-size:clamp(15px,1.35vw,18px);line-height:1.75;color:#f4f6ed;max-width:500px}
body.mt-theme.home-clean .hero .eyebrow{color:#f0c681}
body.mt-theme.home-clean .hero .map{margin:38px 40px 38px 5px;min-height:360px;border:1px solid #ffffff57;border-radius:19px;background:rgba(16,50,43,.51);box-shadow:inset 0 0 25px #101b1755,0 13px 40px #0005;backdrop-filter:blur(5px)}
body.mt-theme.home-clean .hero .map-label{background:#f3ebd7;color:#163c30;box-shadow:0 3px 16px #0c291c66}
body.mt-theme.home-clean .hero :is(.btn,#explore){background:#f2c88d;color:#183d31;border-color:#f2c88d}
body.mt-theme.home-clean .hero .classroom-link{color:#fff2d6}
body.mt-theme.home-clean main{max-width:1370px}
body.mt-theme.home-clean .home-shortcuts a{background:#fffefa;border:1px solid #dfd9c9;border-radius:17px;box-shadow:var(--mt-shadow);text-decoration:none}
body.mt-theme.home-clean .home-shortcuts a:hover{transform:translateY(-3px);border-color:#acbda9}
body.mt-theme.home-clean .home-trails{background:linear-gradient(90deg,#f0ebdb,#e9eee1);border:1px solid #d9d7c2;border-radius:20px}
body.mt-theme.home-clean .daily-card{background:linear-gradient(110deg,#1d4a40,#31614d);color:#fff;border-radius:20px}
body.mt-theme.home-clean .daily-card p{color:#e7f0e4}
/* All official hike, calendar, surveys and club discussion hero panels */
body.mt-theme .ot-hero{min-height:285px;padding:clamp(29px,4vw,54px);border-radius:24px;align-items:center}
body.mt-theme .ot-hero h1{font-size:clamp(34px,4.2vw,58px);max-width:690px;color:#fff;text-shadow:0 3px 13px #0b251f88}
body.mt-theme .ot-hero h1 em{color:#f3cf94}
body.mt-theme .ot-hero .ot-eyebrow{color:#f3cf94}
body.mt-theme .ot-hero p:not(.ot-eyebrow){color:#edf2e8}
body.mt-theme .ot-hero .ot-art,body.mt-theme .cl-hero-art{background:rgba(14,53,43,.48);border:1px solid #ffffff69;border-radius:18px;backdrop-filter:blur(4px);box-shadow:inset 0 0 23px #082b2450}
body.mt-theme .ot-card{background:linear-gradient(145deg,#fffdfa,#f3f2e9);border-left:5px solid #85a891}
body.mt-theme .ot-card h3{color:#204b3a}
body.mt-theme .ot-panel{border-radius:22px}
body.mt-theme :is(.ot-form,.ot-weather-picker,.ot-route-preview,.h-route-section){background:#f4f5ec;border-color:#d5dfd1}
body.mt-theme .ot-btn-main{background:#215e47;color:white}
/* Hike proposals pages keep their dedicated forms */
body.mt-theme .h-hero h1{color:#fff;text-shadow:0 2px 14px #102b2480}
body.mt-theme .h-hero p,body.mt-theme .h-hero .h-eyebrow{color:#f2e5ce}
/* Chat: warm expedition log, not a flashy overlay on messages */
body.mt-theme .app-header{background:#173d33;color:#fff}
body.mt-theme .conversation{background-color:#f5f1e7}
body.mt-theme .chat-message,body.mt-theme .message-bubble{border-radius:18px}
/* Every page that has a separate hero gets a subtle wilderness frame. */
body.mt-theme :is(.atlas-hero,.eco-hero,.cm-hero,.mv-hero,.field-hero,.campaign-hero,.network-hero){background-image:linear-gradient(95deg,rgba(19,52,43,.9),rgba(19,56,45,.38)),url("assets/mountain-panorama.svg");background-position:center;background-size:cover;color:#fff}
body.mt-theme .mt-credits{font-size:11px;text-align:center;line-height:1.5;color:#64776a;margin:18px auto 35px;max-width:1100px;padding:4px 18px}
body.mt-theme .mt-credits a{color:inherit;text-underline-offset:2px}
/* Larger pointer targets and responsive panels */
@media (max-width:900px){body.mt-theme.home-clean .hero{grid-template-columns:1fr}body.mt-theme.home-clean .hero-copy{padding:42px 32px 14px}body.mt-theme.home-clean .hero .map{margin:18px 32px 32px;min-height:200px;max-height:275px}body.mt-theme.home-clean .hero .map svg{opacity:.7}}
@media (max-width:700px){
 body.mt-theme .ot-hero{grid-template-columns:1fr;min-height:245px;padding:28px 22px}
 body.mt-theme .ot-hero .ot-art{min-height:75px;max-height:95px;flex-direction:row;gap:10px}
 body.mt-theme .ot-hero .ot-art>span:first-child{font-size:44px}
 body.mt-theme.home-clean .hero{min-height:unset;border-radius:20px}
 body.mt-theme.home-clean .hero-copy{padding:38px 23px 13px}
 body.mt-theme.home-clean .hero h1{font-size:clamp(37px,10vw,56px)}
 body.mt-theme.home-clean .hero .map{margin:14px 18px 19px;min-height:160px;max-height:180px}
 body.mt-theme.home-clean .hero .map-label{left:12px;bottom:12px;padding:9px;font-size:10px}
 body.mt-theme.home-clean main{padding-left:13px;padding-right:13px}
 body.mt-theme .st-hero{padding:42px 23px;min-height:300px}
 body.mt-theme .st-hero h1{font-size:clamp(36px,9vw,53px)}
 body.mt-theme .st-action{min-height:158px;padding:16px}
 body.mt-theme .st-action strong{font-size:16px}
 body.mt-theme #st-mobile-nav{background:#14372f;box-shadow:0 -5px 25px #163a2a23}
 body.mt-theme #st-mobile-nav a{color:#f5f2e8}
 body.mt-theme #st-mobile-nav a[aria-current="page"]{color:#f4cf97}
 body.mt-theme .ot-panel{padding:17px}
}
@media (prefers-reduced-motion:reduce){body.mt-theme a,body.mt-theme button{transition:none!important}body.mt-theme :is(.st-action,.ot-btn,.btn,.st-chip):hover{transform:none!important}}

/* Optional panorama photo (public domain) + guaranteed offline local illustration */
@supports (background-image:url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Panorama_Ray_hut_%26_Botev_peak.jpg/1280px-Panorama_Ray_hut_%26_Botev_peak.jpg")) {
  body.mt-theme.home-clean .hero{background-image:linear-gradient(95deg,rgba(12,37,32,.95) 0%,rgba(12,41,34,.83) 34%,rgba(12,41,34,.46) 75%,rgba(12,41,34,.56)),url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Panorama_Ray_hut_%26_Botev_peak.jpg/1280px-Panorama_Ray_hut_%26_Botev_peak.jpg"),url("assets/mountain-panorama.svg");background-size:cover,cover,cover;background-position:center,center 53%,center}
}

/* 4.3 visual polish: expose the mountains, keep the navigation compact on phones. */
@media (min-width:901px){
 body.mt-theme.home-clean .hero{grid-template-columns:1fr;min-height:540px;align-items:center}
 body.mt-theme.home-clean .hero-copy{max-width:820px;padding:66px 58px;align-self:center}
 body.mt-theme.home-clean .hero .map{position:absolute;right:26px;bottom:26px;margin:0;width:280px;min-height:200px;height:210px;border-radius:15px;background:rgba(16,50,43,.28);backdrop-filter:blur(3px)}
 body.mt-theme.home-clean .hero .map svg{opacity:.62}
 body.mt-theme.home-clean .hero .map-label{left:10px;bottom:10px;padding:8px 10px}
}
@media (max-width:900px){
 body.mt-theme.home-clean .hero{display:block}
 body.mt-theme.home-clean .hero .map{display:none}
 body.mt-theme.home-clean .hero-copy{max-width:680px}
}
@media (max-width:700px){
 body.mt-theme.home-clean header .bar{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:11px 15px;min-height:62px}
 body.mt-theme.home-clean header .bar>.nav,
 body.mt-theme.home-clean header .bar>#sessionNav{display:none!important}
 body.mt-theme.home-clean header .bar>.logo{margin:0 auto 0 0;white-space:nowrap;font-size:19px;letter-spacing:-.05em}
 body.mt-theme.home-clean header .bar>.logo .mark{width:32px;height:32px;font-size:22px}
 body.mt-theme.home-clean header .bar>.logo small{font-size:9px!important}
 body.mt-theme.home-clean header .home-menu{margin-left:auto;position:relative}
 body.mt-theme.home-clean header .home-menu>summary{background:#265347;border:1px solid #476d59;color:#fff;border-radius:12px;padding:8px 12px;cursor:pointer}
 body.mt-theme.home-clean header .home-menu nav{right:0;left:auto;max-width:calc(100vw - 25px)}
 body.mt-theme.home-clean .hero{background-image:linear-gradient(0deg,#0e3229 0%,rgba(13,42,35,.94) 53%,rgba(12,44,35,.34) 97%),url("assets/mountain-panorama.svg");background-size:cover;background-position:center 54%}
 body.mt-theme.home-clean .hero-copy{padding:184px 23px 30px}
 body.mt-theme.home-clean .hero::after{content:"";position:absolute;inset:0 0 auto;height:215px;background:url("assets/mountain-panorama.svg") center 60%/cover;opacity:.85;mask-image:linear-gradient(#000 0%,#000 50%,transparent 100%);pointer-events:none;z-index:0}
 body.mt-theme.home-clean .hero-copy{position:relative;z-index:1}
 body.mt-theme.home-clean .hero h1{font-size:clamp(35px,9.3vw,53px)}
 body.mt-theme.home-clean .hero p{font-size:15px;line-height:1.65}
 body.mt-theme.home-clean .hero-actions{gap:10px}
}

/* Scenic art on the homepage hero: reliably visible without network. */
body.mt-theme.home-clean .hero .mt-cover-art{position:absolute;top:0;right:0;bottom:0;width:63%;z-index:0;pointer-events:none;overflow:hidden;opacity:.86;mask-image:linear-gradient(90deg,transparent 0%,#000 27%)}
body.mt-theme.home-clean .hero .mt-cover-art img{height:100%;width:100%;display:block;object-fit:cover;object-position:center 56%}
body.mt-theme.home-clean .hero .hero-copy{position:relative;z-index:2}
body.mt-theme.home-clean .hero .map{z-index:2}
@media(max-width:900px){body.mt-theme.home-clean .hero .mt-cover-art{display:none}}
