/* Approved shared mobile UX, 21–22 November 2026. */
.g-page > .g-header {
  position: sticky;
  top: 0;
  z-index: 70;
  transform: translateY(0);
  transition: transform 180ms ease;
}
.g-page > .g-header[data-scroll-state="hidden"] {
  transform: translateY(-100%);
  pointer-events: none;
}
html { scroll-padding-top: calc(var(--guide-header-offset, 78px) + 12px); }
.guide-mobile-approved .story-g__breadcrumbs a{position:relative;z-index:2;touch-action:manipulation;}
.guide-mobile-approved .story-g__breadcrumbs a::before{content:"";position:absolute;inset:-14px -4px;}
.g-page :is(main, section, [id]) { scroll-margin-top: 12px; }
.g-page .g-menu nav a[href^="/guide/kislovodsk"] { --menu-hover: var(--g-city-kislovodsk, #f3c84b); }
.g-page .g-menu nav a[href^="/guide/essentuki"] { --menu-hover: var(--g-city-essentuki, #a8cee3); }
.g-page .g-menu nav a[href^="/guide/pyatigorsk"] { --menu-hover: var(--g-city-pyatigorsk, #dda1bf); }
.g-page .g-menu nav a[href^="/guide/zheleznovodsk"] { --menu-hover: var(--g-city-zheleznovodsk, #7dae99); }
.g-page:not(.g-readable) .g-menu nav a:is(:hover,:focus-visible) { color:var(--menu-hover); }
.g-page .g-menu nav a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
@media(min-width:1024px) {
  .guide-mobile-approved .article-pair--media-left > .article-pair-copy { grid-column:2; grid-row:1; }
  .guide-mobile-approved .article-pair--media-left > .article-pair-media { grid-column:1; grid-row:1; }
}
/* Mobile v7: accepted dots and small photo pair; shared corner pins and original oval. */
@media(max-width:1023px) {
  .guide-mobile-approved { --article-content-gutter:16px; }
  .guide-mobile-approved .story-g__hero > .story-g__edge { height:16px; }
  .guide-mobile-approved .article-beige-band > .story-g__edge { height:22px; }
  .guide-mobile-approved .article-final-note {
    background-image:url('./mobile-note-outline.svg');
    padding-block:104px;
  }
  .guide-mobile-approved .article-pair,
  .guide-mobile-approved .article-split { row-gap:28px; }
  .guide-mobile-approved .article-photo,
  .guide-mobile-approved :is(#revival .photo-vitraz,#today .photo-salon) { width:100%; }
  .guide-mobile-approved .story-g__gallery {
    --article-gallery-width:100vw;
    width:100vw;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:0;
    touch-action:pan-y pinch-zoom;
  }
  .guide-mobile-approved .story-g__slides,
  .guide-mobile-approved .story-g__slide:not([hidden]) { display:contents; }
  .guide-mobile-approved .story-g__slide > img {
    grid-column:1; grid-row:1;
    display:block; width:100%; height:auto; max-width:100%; max-height:none;
    aspect-ratio:auto; object-fit:contain; border-radius:0;
  }
  .guide-mobile-approved #park-gallery .story-g__slide figcaption {
    grid-column:1; grid-row:3;
    width:100%; box-sizing:border-box;
    margin:0; padding:0 20px; min-block-size:0;
    font-size:14px; line-height:1.45;
  }
  .guide-mobile-approved .story-g__gallery :is(.story-g__gallery-prev,.story-g__gallery-next) { display:none; }
  .guide-mobile-approved .story-g__gallery-dots {
    position:static; grid-column:1; grid-row:2;
    display:grid; grid-template-columns:repeat(var(--dot-count),minmax(0,28px));
    justify-content:center; align-items:center; column-gap:0;
    width:calc(100% - 24px); height:44px; margin:8px auto 4px;
  }
  .guide-mobile-approved .story-g__gallery-dots button {
    position:relative; width:100%; height:44px; padding:0; border:0;
    background:transparent; border-radius:0;
  }
  .guide-mobile-approved .story-g__gallery-dots button::before {
    content:""; position:absolute; width:4px; height:4px; border-radius:50%;
    left:50%; top:50%; transform:translate(-50%,-50%); box-sizing:border-box;
    background:#d1cddb;
    transition:width 180ms ease,height 180ms ease,background-color 180ms ease,border-radius 180ms ease;
  }
  .guide-mobile-approved .story-g__gallery-dots button[data-middle-distance]::before { width:7px; height:7px; background:#c2bbd1; }
  .guide-mobile-approved .story-g__gallery-dots button[data-near-current]::before { width:10px; height:10px; background:#b8b1cc; }
  .guide-mobile-approved .story-g__gallery-dots button[aria-pressed=true]::before { background:var(--g-blue); }
  .guide-mobile-approved .story-g__gallery-dots button:focus-visible { outline:2px solid var(--g-blue); outline-offset:0; border-radius:8px; }
  .guide-mobile-approved .article-papers .story-g__paper { background:none; isolation:isolate; }
  .guide-mobile-approved .article-papers .story-g__paper::before {
    content:""; position:absolute; inset:0; z-index:-1;
    border:16px solid transparent;
    border-image:url('/guide-assets/20261031-kislovodsk-v1/assets/mud-original/1755797186233.webp') 80 fill / 16px / 0 stretch;
    pointer-events:none;
  }
  .guide-mobile-approved .article-paper-connector { height:56px; }
  .guide-mobile-approved .article-paper-connector img { display:none; }
  .guide-mobile-approved #ending .narzan-today-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:calc(100% - 32px); gap:32px 24px; }
  .guide-mobile-approved #ending .narzan-today-copy { grid-column:1/-1; grid-row:auto; }
  .guide-mobile-approved #ending .narzan-side-photo { width:clamp(110px,34vw,144px); max-width:100%; margin:0!important; grid-row:2; align-self:start; }
  .guide-mobile-approved #ending .narzan-side-photo--left { grid-column:1; justify-self:end; transform:rotate(-6deg); }
  .guide-mobile-approved #ending .narzan-side-photo--right { grid-column:2; justify-self:start; display:block; margin-top:28px!important; transform:rotate(6deg); }
  .guide-mobile-approved #ending .narzan-side-photo > img:first-child { aspect-ratio:1; height:auto; object-fit:cover; }
  .guide-mobile-approved #ending .narzan-side-photo--left .story-g__pin { left:var(--article-pin-side); }
  .guide-mobile-approved #ending .narzan-side-photo--right .story-g__pin { left:auto; right:var(--article-pin-side); }
  .g-readable .guide-mobile-approved .article-papers .story-g__paper::before { display:none; }
  .g-readable .guide-mobile-approved .article-final-note { background:none; }
  .g-readable .guide-mobile-approved .story-g__gallery-dots button::before { background:#777; }
  .g-readable .guide-mobile-approved .story-g__gallery-dots button[aria-pressed=true]::before { background:#000; border-color:#000; }
}
@media(prefers-reduced-motion:reduce) {
  .g-page > .g-header { transition:none; }
  .guide-mobile-approved .story-g__gallery-dots button::before { transition:none; }
}

@media(max-width:1023px){
 .guide-mobile-approved{--article-content-gutter:16px;}
 .guide-mobile-approved :is(.article-pair,.article-split){display:flex!important;flex-direction:column!important;align-items:stretch;}
 .guide-mobile-approved :is(.article-pair-copy,.article-split-copy,.article-split-body){order:0;}
 .guide-mobile-approved :is(.article-pair-media,.article-photo){order:1;max-width:100%;}
 .guide-mobile-approved .article-photo{width:100%!important;}
 .guide-mobile-approved .article-pair-media:not([data-photo-grid-root]){width:100%!important;max-width:100%!important;}
 .guide-mobile-approved .narzan-today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;row-gap:16px;column-gap:24px;width:calc(100% - 32px);}
 .guide-mobile-approved .narzan-today-copy{grid-column:1/-1;grid-row:1;}
 .guide-mobile-approved .narzan-side-photo{width:clamp(110px,34vw,144px)!important;max-width:100%;margin:0!important;grid-row:2;align-self:start;}
 .guide-mobile-approved .narzan-side-photo--left{grid-column:1;justify-self:end;transform:rotate(-6deg);}
 .guide-mobile-approved .narzan-side-photo--right{grid-column:2;justify-self:start;display:block!important;margin-top:28px!important;transform:rotate(6deg);}
 .guide-mobile-approved .narzan-side-photo>img:first-child{width:100%;aspect-ratio:1;height:auto;object-fit:cover;}
 .guide-mobile-approved .narzan-side-photo--left .story-g__pin{left:var(--article-pin-side);}
 .guide-mobile-approved .narzan-side-photo--right .story-g__pin{left:auto;right:var(--article-pin-side);transform:scaleX(-1);}
 .guide-mobile-approved .article-paper-connector img,.guide-mobile-approved .narzan-connector-line{display:none!important;}
 .guide-mobile-approved #institution-thanks{padding-top:16px;}
 .guide-mobile-approved #institution-thanks .narzan-thanks{grid-template-columns:minmax(0,1fr);gap:18px;align-items:center;justify-content:center;}
 .guide-mobile-approved #institution-thanks .institution-thanks-logo{justify-self:center;align-items:center;justify-content:center;}
 .guide-mobile-approved #institution-thanks .institution-thanks-logo img{object-fit:contain;max-width:100%;}
 .guide-mobile-approved #institution-thanks .narzan-thanks p{justify-self:center;text-align:center;max-width:none;}
 .guide-mobile-approved .narzan-closing .narzan-thanks{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;align-items:center;justify-content:center;}
 .guide-mobile-approved .narzan-closing .narzan-thanks>:is(a,p){justify-self:center!important;text-align:center!important;max-width:100%;}
 .guide-mobile-approved .narzan-closing .park-thanks-logo{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:auto!important;max-width:100%!important;}
 .guide-mobile-approved .narzan-closing .park-thanks-logo img{flex:none!important;object-fit:contain!important;}
 .guide-mobile-approved .narzan-closing .park-thanks-logo img:first-child{width:39px!important;height:40px!important;}
 .guide-mobile-approved .narzan-closing .park-thanks-logo img:nth-child(2){width:130px!important;height:31px!important;}
 /* This article's desktop beige extension must end before its mobile finale. */
 #magistrates-house.guide-mobile-approved .article-beige-band{--beshtau-band-drop:0px;}
 #magistrates-house.guide-mobile-approved .article-ending{position:relative;margin-top:32px;}
}

/* Local mobile proposal for Margarita. The shared approved v2 remains unchanged. */
@media(max-width:1023px){
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-layout{--guide-portrait-size:clamp(160px,52vw,200px);display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;width:calc(100% - var(--article-content-gutter)*2);max-width:1120px;margin-inline:auto;text-align:left;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-photo{grid-column:1;grid-row:1;width:var(--guide-portrait-size);height:var(--guide-portrait-size);min-height:0;margin:0;align-self:start;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-intro{grid-column:1;grid-row:2;min-width:0;align-self:start;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-name{margin:0 0 8px;font:700 20px/1.3 var(--article-body-font,"PT Sans",Arial,sans-serif);color:var(--article-accent,#3d328a);}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-role{margin:0;font-size:18px;line-height:1.35;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-column--quote{grid-column:1;grid-row:3;width:auto;min-width:0;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-column--quote p{font-size:20px;line-height:1.4;margin:0;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-column--quote em{font-style:italic;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-links{grid-column:1;grid-row:4;gap:8px;}
 .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-links>p{font-size:18px;line-height:1.4;margin:0;}
 .g-readable .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-layout{grid-template-columns:1fr;}
 .g-readable .guide-mobile-approved .guide-author[data-guide-mobile-layout] .guide-author-mobile-intro{grid-column:1;grid-row:2;}
 .g-readable .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-column--quote{grid-row:3;}
 .g-readable .guide-mobile-approved .guide-author[data-guide-mobile-layout] .dacha-author-links{grid-row:4;}
}

@media(max-width:1023px){
 .guide-mobile-approved .guide-author[data-guide-mobile-layout]>.dacha-author-grid{display:none;}
 .guide-mobile-approved .story-g__gallery :is(.story-g__gallery-count,[data-gallery-counter]){display:none;}
}

.guide-mobile-approved .story-g__hero figcaption{display:none!important;}
.guide-mobile-approved :is(.article-prose,.article-pair-copy,.article-split-copy,.article-ending-body) strong{color:var(--article-accent)!important;}

@media(max-width:1023px){
 .guide-mobile-approved .narzan-circled-note{background-image:url('./mobile-note-outline.svg');background-size:100% 100%;padding-block:104px;}
}

.guide-mobile-approved p strong{color:var(--article-accent)!important;}
.guide-mobile-approved figcaption strong{color:inherit!important;}
.guide-mobile-approved .narzan-circled-note{color:var(--article-accent);}
.guide-mobile-approved :is(.article-final-note,.narzan-circled-note) p{color:var(--article-accent)!important;}
.g-readable .guide-mobile-approved :is(.article-final-note,.narzan-circled-note) p{color:inherit!important;}

/* Apply flow order to the actual flex children, including grid wrappers. */
@media(max-width:1023px){
 /* Article-specific desktop selectors must not retain the former side rails. */
 .guide-mobile-approved .story-g__slides,.guide-mobile-approved .story-g__slide:not([hidden]){display:contents!important;}
 .guide-mobile-approved .story-g__slide[hidden]{display:none!important;}
 .guide-mobile-approved .story-g__slide>img{grid-column:1!important;grid-row:1!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;}
 .guide-mobile-approved .story-g__slide>:is(a,picture,div):has(img){grid-column:1!important;grid-row:1!important;width:100%!important;max-width:100%!important;margin-inline:0!important;}
 .guide-mobile-approved .mountain-air__gallery-frame{height:auto!important;}
 .guide-mobile-approved .mountain-air__gallery-frame .mountain-air__photo-crop{width:100%!important;}
 .guide-mobile-approved .story-g__slide figcaption{grid-column:1!important;grid-row:3!important;width:100%!important;box-sizing:border-box;margin:0!important;padding-inline:20px!important;}
 .guide-mobile-approved .story-g__gallery-dots{grid-column:1!important;grid-row:2!important;}
 .guide-mobile-approved .story-g__gallery :is(.story-g__gallery-prev,.story-g__gallery-next){display:none!important;}
 .guide-mobile-approved :is(.article-pair,.article-split)>:is(.article-pair-copy,.article-split-copy,.article-split-body,.article-prose){order:0!important;}
 .guide-mobile-approved :is(.article-pair,.article-split)>:is(.article-pair-media,.article-photo,[data-photo-grid-shell]){order:1!important;}
 .guide-mobile-approved [data-mobile-closing-grid]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;row-gap:16px!important;column-gap:24px!important;width:calc(100% - 32px)!important;margin-inline:auto!important;}
 .guide-mobile-approved [data-mobile-closing-copy]{grid-column:1/-1!important;grid-row:1!important;width:100%!important;min-width:0!important;}
 .guide-mobile-approved [data-mobile-closing-grid]>:is(.article-final-note,.narzan-circled-note){grid-column:1/-1!important;grid-row:1!important;}
 .guide-mobile-approved [data-mobile-closing-grid]:has(>:is(.article-final-note,.narzan-circled-note))>[data-mobile-closing-copy]{grid-row:2!important;}
 .guide-mobile-approved [data-mobile-closing-grid]:has(>:is(.article-final-note,.narzan-circled-note))>[data-mobile-closing-photo]{grid-row:3!important;}
 .guide-mobile-approved [data-mobile-closing-photo]{position:relative!important;overflow:visible!important;grid-row:2!important;align-self:start!important;width:clamp(110px,34vw,144px)!important;max-width:100%!important;margin:0!important;}
 .guide-mobile-approved [data-mobile-closing-photo=left]{grid-column:1!important;justify-self:end!important;transform:rotate(-6deg)!important;}
 .guide-mobile-approved [data-mobile-closing-photo=right]{grid-column:2!important;justify-self:start!important;margin-top:28px!important;transform:rotate(6deg)!important;}
 .guide-mobile-approved [data-mobile-closing-image]{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:cover!important;}
 .guide-mobile-approved [data-mobile-closing-photo] :is(a,div,picture):has(>[data-mobile-closing-image]){display:block!important;width:100%!important;height:auto!important;aspect-ratio:1!important;}
 .guide-mobile-approved [data-mobile-closing-photo=left] .story-g__pin{left:var(--article-pin-side)!important;right:auto!important;}
 .guide-mobile-approved [data-mobile-closing-photo=right] .story-g__pin{left:auto!important;right:var(--article-pin-side)!important;transform:scaleX(-1)!important;}
 .guide-mobile-approved [data-mobile-long-oval]{padding-block:var(--mobile-oval-padding)!important;}
 .guide-mobile-approved [data-mobile-wide-oval]{width:100vw!important;max-width:none!important;margin-left:calc((100% - 100vw)/2)!important;padding-inline:24px!important;}
 .guide-mobile-approved [data-mobile-compact-oval] p{font-size:var(--article-body-size)!important;line-height:var(--article-note-leading)!important;}
}
