/* In-app user guide (Views/Help/*Guide.cshtml). Colours come from tokens.css, so the guide follows
   the dark and the light theme; only the hero keeps its navy in both. */

.guide-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 .75rem 0 0;
}

.guide {
    --g-surface: var(--menu);
    --g-bg: var(--dark);
    --g-border: var(--border);
    --g-text: var(--text);
    --g-muted: var(--text-idle);
    --g-accent: var(--yellow);
    --g-accent-text: var(--yellow-text);
    --g-accent-soft: color-mix(in srgb, var(--yellow) 14%, var(--menu));
    --g-pin: #d6342f;
    --g-ok: #2e9e5b;
    color: var(--g-text);
}

.guide-progress { position: sticky; top: 0; height: 3px; z-index: 5; }
.guide-progress > span { display: block; height: 100%; width: 0; background: var(--g-accent); transition: width .1s linear; }

/* hero */
.g-hero {
    position: relative; overflow: hidden; border-radius: 18px; margin: .6rem 0 1.3rem; padding: 2rem 2.2rem;
    color: #fff; background: radial-gradient(circle at 85% 20%, #2f5a8e 0, transparent 45%), linear-gradient(135deg, #12233a 0%, #1c2b3d 55%, #23406a 100%);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
}
.g-hero::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 28px 28px; }
.g-hero-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.g-hero-logos { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.1rem; }
.g-hero-logos img { height: 64px; width: auto; }
/* A round client logo (ClientLogoCircle): the logos get a column of their own between the text and the badge, the
   client's round one above the portal's; under 1200 px they go back above the text, side by side but still bigger. */
.g-hero-inner--circle { grid-template-columns: 1fr auto auto; grid-template-areas: "text brand badge"; }
.g-hero-inner--circle > div:first-child { grid-area: text; }
.g-hero-inner--circle > .g-hero-badge { grid-area: badge; }
.g-hero-brand { grid-area: brand; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.g-hero-brand-client { width: 170px; height: auto; }
.g-hero-brand-app { width: 240px; height: auto; }
.g-hero-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.g-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; margin: .35rem 0 .7rem; color: #fff; }
.g-hero h1 em { font-style: normal; color: var(--yellow); }
.g-hero p.lead { max-width: 48rem; opacity: .92; font-size: 1.05rem; margin-bottom: 1.1rem; }
.g-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.g-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.g-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border-radius: 10px; font-weight: 700; font-size: .92rem;
    text-decoration: none !important; border: 1px solid transparent; cursor: pointer; transition: transform .15s; }
.g-btn:hover { transform: translateY(-1px); }
.g-btn--accent { background: var(--yellow); color: var(--on-accent) !important; }
.g-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.g-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
/* sized for the longest word in it (РЕГИСТРАТОР) at full size; the four icons sit on the outer circle, centred on its axes */
.g-hero-badge { width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative;
    border: 1px dashed rgba(255, 255, 255, .4); }
.g-hero-badge::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.g-hero-badge span { position: relative; z-index: 1; width: 126px; height: 126px; border-radius: 50%; display: grid; place-items: center;
    background: var(--yellow); color: var(--on-accent); font-weight: 800; font-size: .78rem; letter-spacing: .06em; line-height: 1.2; }
/* each icon on the outer circle at its angle (--a, set inline); on the screen-button blue, opaque so the dashed line does not show through */
.g-hero-badge em { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--menu-hover) 45%, #1c2b3d); border: 1px solid color-mix(in srgb, var(--menu-hover) 70%, #fff);
    color: #fff; font-size: .95rem; font-style: normal; z-index: 2;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-105px) rotate(calc(-1 * var(--a))); }

/* layout */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.4rem; align-items: start; }
.g-toc { position: sticky; top: .8rem; background: var(--g-surface); border: 1px solid var(--g-border); border-radius: 14px; padding: .9rem .7rem;
    max-height: calc(98vh - 120px); overflow: auto; }
.g-toc h6 { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-muted); margin: 0 .5rem .6rem; }
.g-toc a { display: flex; gap: .5rem; align-items: baseline; padding: .34rem .5rem; border-radius: 8px; font-size: .86rem; color: var(--g-text);
    text-decoration: none; border-left: 3px solid transparent; }
.g-toc a b { color: var(--g-accent-text); font-variant-numeric: tabular-nums; min-width: 1.5rem; }
/* the hovered and the current item on the screen-button background in the dark theme; the light theme keeps the soft accent */
.g-toc a:hover { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); color: var(--g-text); text-decoration: none; }
.g-toc > a.active { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); border-left-color: var(--g-accent); font-weight: 700; }
:root[data-theme="light"] .g-toc a:hover, :root[data-theme="light"] .g-toc > a.active { background: var(--g-accent-soft); }
.g-toc-sub { margin: .1rem 0 .3rem 1.2rem; display: none; }
.g-toc > a.active + .g-toc-sub { display: block; }
.g-toc-sub a { font-size: .78rem; padding: .2rem .45rem; color: var(--g-muted); }
.g-toc-sub a b { min-width: 2.1rem; font-weight: 600; }

/* chapters */
.g-chapter { background: var(--g-surface); border: 1px solid var(--g-border); border-radius: 18px; padding: 1.7rem 1.8rem 1.3rem; margin-bottom: 1.2rem;
    scroll-margin-top: .6rem; }
.g-chapter-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.g-num { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
    color: var(--on-accent); background: var(--yellow); transform: rotate(-4deg); }
.g-chapter h2 { font-size: 1.5rem; font-weight: 800; margin: 0; color: var(--g-text); }
.g-chapter h2 small { display: block; font-size: .75rem; font-weight: 600; color: var(--g-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .1rem; }
.g-chapter h3 { font-size: 1.12rem; font-weight: 700; margin: 1.6rem 0 .55rem; color: var(--g-accent-text); scroll-margin-top: .6rem; }
.g-chapter h3 .g-h-num { display: inline-block; min-width: 2.4rem; opacity: .75; font-variant-numeric: tabular-nums; }
.g-chapter p, .g-chapter li { line-height: 1.6; }
/* a helper line under an item, e.g. when a menu item shows up at all */
.g-hint { display: block; font-size: .85em; line-height: 1.4; color: var(--g-accent-text); }.g-chapter ul, .g-chapter ol { padding-left: 1.3rem; }
.g-ui { display: inline-block; padding: 0 .45rem; border-radius: 6px; border: 1px solid var(--g-border); background: var(--g-bg); font-weight: 700; font-size: .88em; white-space: nowrap; }
.g-chapter code { background: var(--g-accent-soft); color: var(--g-accent-text); padding: .06rem .35rem; border-radius: 5px; font-size: .88em; }
.g-badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; vertical-align: middle;
    background: var(--g-accent-soft); color: var(--g-accent-text); border: 1px solid var(--g-accent); }
/* ?options=1: the client option that decides each part */
.g-opt { display: inline-block; margin: 0 .4rem 0 0; padding: .05rem .45rem; border-radius: 6px; font: 600 .68rem/1.5 ui-monospace, Consolas, monospace;
    vertical-align: middle; color: #fff; background: #7a4fc4; border: 1px dashed #c9b3f0; white-space: nowrap; }
h3 .g-opt { margin: 0 0 0 .6rem; }
.g-steps > li > .g-opt + b { display: block; margin-top: .2rem; }

/* overview cards */
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin: 1rem 0; }
.g-card { border: 1px solid var(--g-border); border-radius: 14px; padding: .95rem; background: var(--g-bg); color: var(--g-text) !important; text-decoration: none !important;
    display: block; transition: transform .18s, border-color .18s; }
.g-card:hover { transform: translateY(-3px); border-color: var(--g-accent); }
.g-card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--menu-hover) 30%, transparent);
    color: var(--g-accent-text); border: 1px solid var(--g-accent); margin-bottom: .55rem; }
/* the dark theme has the card icons on the screen-button background; the light theme keeps the soft accent */
:root[data-theme="light"] .g-card .ico { background: var(--g-accent-soft); }
.g-card b { display: block; margin-bottom: .15rem; }
.g-card span.d { font-size: .85rem; color: var(--g-muted); line-height: 1.45; }

/* numbered steps */
.g-steps { list-style: none; padding: 0 !important; margin: 1rem 0; counter-reset: gstep; position: relative; }
.g-steps::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--g-border) 0 6px, transparent 6px 12px); }
.g-steps > li { counter-increment: gstep; position: relative; padding: 0 0 1rem 3rem; }
.g-steps > li::before { content: counter(gstep); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid;
    place-items: center; font-weight: 800; background: var(--g-surface); color: var(--g-accent-text); border: 2px solid var(--g-accent); z-index: 1; }
.g-steps > li > b:first-child { display: block; margin-bottom: .1rem; }
/* a paragraph led by an icon in the circle of the numbered steps */
.g-ico-step { position: relative; min-height: 36px; padding-left: 3rem; }
.g-ico-step > .g-ico { position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid;
    place-items: center; background: var(--g-surface); color: var(--g-accent-text); border: 2px solid var(--g-accent); }
.g-ico-step > b { display: block; margin-bottom: .1rem; }
/* a list of screen buttons, each item led by the button's own icon */
.g-chapter .g-btn-list { list-style: none; padding-left: 0; }
/* the box is centred on the item, and a one-line text is padded to the box's height, so both share one middle */
.g-btn-list > li { position: relative; box-sizing: border-box; min-height: 2.6rem; line-height: 1.55; margin-bottom: .6rem;
    padding: calc((2.6rem - 1.55em) / 2) 0 calc((2.6rem - 1.55em) / 2) 3.4rem; }
.g-btn-list > li > .g-uibtn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.g-uibtn { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: .55rem;
    background: color-mix(in srgb, var(--menu-hover) 30%, transparent); border: 1px solid color-mix(in srgb, var(--menu-hover) 55%, transparent);
    color: var(--g-text); }
/* the light theme's hover blue is too pale on white: there the box takes the background of the chapter 1 card icons */
:root[data-theme="light"] .g-uibtn, :root[data-theme="light"] .g-call.info, :root[data-theme="light"] .g-call.btnbg { background: var(--g-accent-soft); }
/* a screen button's icon inside a sentence (g-ui g-ui-ico): the inline label on the background of the boxes above */
.g-ui.g-ui-ico { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); border-color: color-mix(in srgb, var(--menu-hover) 55%, transparent); color: var(--g-text); }
:root[data-theme="light"] .g-ui.g-ui-ico { background: var(--g-accent-soft); }
/* the icon sits in a square, like the screen buttons themselves; one that carries its button's name too (g-ui-wide) stays a label */
.g-ui.g-ui-ico { display: inline-grid; place-items: center; box-sizing: border-box; width: 2em; height: 2em; padding: 0; vertical-align: middle; }
.g-ui.g-ui-ico.g-ui-wide { display: inline-block; width: auto; height: auto; padding: 0 .45rem; vertical-align: baseline; }
.g-uibtn > .ico { --icon-size: 2.1rem; }
.g-uibtn > .fa { font-size: 1.15rem; }

/* callouts */
.g-call { display: flex; gap: .8rem; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; border: 1px solid; }
.g-call .ci { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.g-call .cb { flex: 1; font-size: .93rem; line-height: 1.55; }
.g-call .cb b.t { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: .1rem; }
.g-call.tip { background: color-mix(in srgb, var(--g-ok) 12%, var(--g-surface)); border-color: color-mix(in srgb, var(--g-ok) 45%, transparent); }
.g-call.tip .ci { background: var(--g-ok); }
.g-call.warn { background: color-mix(in srgb, #d99a1c 14%, var(--g-surface)); border-color: color-mix(in srgb, #d99a1c 55%, transparent); }
.g-call.warn .ci { background: #c78608; }
/* A warning sign: a triangle with "!", not a circle (user, 2026-11-25). The "!" sits low, in the wide part. */
.g-call.warn .ci { width: 30px; height: 27px; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 8px; font-size: .85rem; line-height: 1; }
.g-call.danger { background: color-mix(in srgb, #c0392b 12%, var(--g-surface)); border-color: color-mix(in srgb, #c0392b 50%, transparent); }
.g-call.danger .ci { background: #c0392b; }
/* the info note has the background of the screen-button boxes (.g-uibtn), the light theme one included */
/* A light border, the blue its background is mixed from (user, 2026-11-25). */
.g-call.info { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); border-color: var(--menu-hover); }
/* any note kind on that same background, keeping its own icon and border: Call("warn btnbg", ...) */
.g-call.btnbg { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); }
.g-call.info .ci { background: #3f6aa0; }

/* screenshots in a browser window, with numbered pins and a legend */
.g-shot { margin: 1.1rem 0 1.4rem; }
.g-shot.narrow { max-width: 620px; }
.g-shot.tiny { max-width: 420px; }
.g-shot.phone { max-width: 260px; }
.g-win { border-radius: 12px; overflow: hidden; border: 1px solid var(--g-border); box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .75); background: var(--g-surface); }
.g-win-bar { display: flex; align-items: center; gap: .45rem; padding: .45rem .8rem; background: var(--g-bg); border-bottom: 1px solid var(--g-border); }
.g-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0675f; display: block; }
.g-win-bar i:nth-child(2) { background: #e6b347; } .g-win-bar i:nth-child(3) { background: #62b86a; }
.g-win-url { margin-left: .6rem; flex: 1; font-size: .74rem; color: var(--g-muted); background: var(--g-surface); border-radius: 999px; padding: .1rem .8rem;
    border: 1px solid var(--g-border); font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-win.mail .g-win-bar { background: #e9edf2; } .g-win.mail .g-win-url { background: #fff; color: #4a5563; border-color: #ccd5e0; }
.g-win-body { position: relative; line-height: 0; cursor: zoom-in; background: #0d1a2a; }
.g-win.mail .g-win-body { background: #fff; }
.g-win-body img { width: 100%; height: auto; display: block; }
.g-pin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font: 800 .78rem/1 system-ui, sans-serif; color: #fff; background: var(--g-pin); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); z-index: 2; cursor: help; }
.g-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(214, 52, 47, .55); animation: g-pulse 2.2s ease-out infinite; }
@keyframes g-pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .g-pin::after { animation: none; } }
.g-legend { list-style: none; padding: 0 !important; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .45rem .9rem; }
.g-legend li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; line-height: 1.4; }
.g-legend li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--g-pin); color: #fff; font-size: .72rem; margin-top: .05rem; }
.g-cap { font-size: .8rem; color: var(--g-muted); margin: .55rem 0 0; font-style: italic; }
/* the sample QR label of chapter "QR кодове", laid out like the printed one (QR code and expiry on the left, the texts,
   the address and the code on the right, both starting at the top of the code). The white is 75% transparent and framed
   like the drawings, so the text takes the theme's colour; the QR code itself stays black on white to be scannable. */
.g-label-fig { container-type: inline-size; margin: 1.2rem 0; }
/* background as the notes on the screen-button background (.g-call.btnbg), the light theme included */
.g-label { display: grid; grid-template-columns: auto auto; column-gap: .9em; align-items: stretch; width: fit-content; max-width: 100%;
    margin: 0; padding: 1.1em 1.4em; box-sizing: border-box; background: color-mix(in srgb, var(--menu-hover) 30%, transparent);
    color: var(--g-text); border: 1.5px solid #38567A; border-radius: 14px; font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(9px, 1.7cqw, 15px); line-height: 1.25; }
:root[data-theme="light"] .g-label { background: var(--g-accent-soft); border-color: #A8C1E0; }
/* the left column is as high as the texts: the code on top, the expiry at the bottom, level with the address line */
/* 5.3em of code + the two expiry lines (1.8em) stay below the texts' 7.3em, so the expiry keeps its place */
.g-label-left { display: flex; flex-direction: column; justify-content: space-between; gap: .15em; }
.g-label-qr { width: 5.3em; aspect-ratio: 1; padding: .3em; box-sizing: border-box; background: #fff; border-radius: 4px; }
.g-label-qr canvas, .g-label-qr img { display: block; width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.g-label-valid { font-size: .75em; line-height: 1.2; white-space: nowrap; }
.g-label-right { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.g-label-right span { font-size: 1.05em; }
.g-label-right b { font-size: 1.2em; }
.g-label-right .g-label-title { font-size: 1.3em; line-height: 1; letter-spacing: .02em; }
.g-label-right hr { width: 100%; margin: .3em 0; border: 0; border-top: 1.5px solid currentColor; opacity: .7; }

/* a drawing (not a screen): no window frame, just the picture, which opens full size on a click */
.g-fig { margin: 1.2rem 0; }
.g-fig-body { max-width: 912px; margin: 0 auto; cursor: zoom-in; }
.g-fig-body img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.g-fig .g-cap { text-align: center; }
/* a drawing made in two colourings: the page shows the one of its theme */
.g-light-only { display: none !important; }
:root[data-theme="light"] .g-light-only { display: block !important; }
:root[data-theme="light"] .g-dark-only { display: none !important; }
.g-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.g-pair .g-shot { margin: .4rem 0; }

/* tabs with screens */
.g-tabs { margin: 1rem 0; }
.g-tabbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.g-tabbar button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--g-border); background: var(--g-bg); color: var(--g-text);
    border-radius: 999px; padding: .3rem .95rem .3rem .6rem; font-size: .85rem; font-weight: 600; cursor: pointer; }
.g-tabbar button > .ico { --icon-size: 1.6rem; flex: none; }
.g-tabbar button.on { background: var(--yellow); color: var(--on-accent); border-color: var(--yellow); }
.g-tabpanel { display: none; } .g-tabpanel.on { display: block; }

/* tables */
.g-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--g-border); border-radius: 12px; overflow: hidden; font-size: .88rem; margin: .8rem 0; }
.g-table th { background: var(--g-bg); color: var(--g-muted); padding: .55rem .7rem; text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.g-table td { padding: .5rem .7rem; border-top: 1px solid var(--g-border); vertical-align: top; }
/* the header of every table on the screen-button background, the light theme included */
.g-table th { background: color-mix(in srgb, var(--menu-hover) 30%, transparent); }
:root[data-theme="light"] .g-table th { background: var(--g-accent-soft); }
.g-table.btnhead .g-ui-ico { margin-right: .35rem; }

/* FAQ */
.g-faq details { border: 1px solid var(--g-border); border-radius: 12px; margin-bottom: .5rem; background: var(--g-bg); overflow: hidden; }
.g-faq summary { cursor: pointer; padding: .7rem 1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--g-accent-text); transition: transform .2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details > div { padding: 0 1rem .9rem; line-height: 1.6; }

.g-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.g-lightbox::backdrop { background: rgba(5, 10, 18, .82); backdrop-filter: blur(3px); }
.g-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); display: block; }

.g-foot { text-align: center; color: var(--g-muted); font-size: .85rem; padding: .6rem 0 2rem; }

@media (max-width: 1199px) { .g-layout { grid-template-columns: 1fr; } .g-toc { display: none; } }
/* In the phone layout the page itself scrolls under the sticky .mobile-app-bar, so a jump to a chapter or a
   point leaves room for the bar instead of hiding the heading under it. */
.layout-container-mobile .guide [id] { scroll-margin-top: 4.5rem; }
@media (max-width: 767px) { .g-hero { padding: 1.5rem 1.2rem; } .g-hero-inner { grid-template-columns: 1fr; } .g-hero-badge { display: none; } .g-chapter { padding: 1.2rem 1rem; } }
@media (max-width: 1199px) {
    .g-hero-inner--circle { grid-template-columns: 1fr auto; grid-template-areas: "brand badge" "text badge"; row-gap: 0; }
    .g-hero-brand { flex-direction: row; justify-self: start; gap: 1.4rem; margin-bottom: 1.1rem; }
    .g-hero-brand-client { width: 110px; }
    .g-hero-brand-app { width: 200px; }
}
@media (max-width: 767px) {
    .g-hero-inner--circle { grid-template-columns: 1fr; grid-template-areas: "brand" "text"; }
    .g-hero-brand-client { width: 88px; }
    .g-hero-brand-app { width: 160px; }
}

@media print {
    #main-navigation-top, #grid-right, .g-toc, .g-hero-actions, .guide-progress { display: none !important; }
    .main-right { height: auto !important; width: 100% !important; }
    .guide-scroll { overflow: visible !important; }
    .g-layout { grid-template-columns: 1fr; }
    .g-chapter { break-inside: auto; box-shadow: none; }
    .g-shot { break-inside: avoid; }
    .g-pin::after { display: none; }
}
