/* Guides: the list on the store page (in the colours of the chosen look) and the article pages (seo.py). */

/* The store page: one list per language, the one of <html lang> is shown (i18n.js sets it). */
.guides-home{padding:72px 0 0}
:where(:root[data-style="iba"]) .guides-home{padding:64px 0 0}
.guides-lang{display:none}
html[lang="ru"] .guides-lang[lang="ru"],html[lang="en"] .guides-lang[lang="en"],html[lang|="zh"] .guides-lang[lang|="zh"]{display:block}
.guides-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
/* style.css numbers every li as a step; these are cards. */
.guides-list li{padding:0;font-size:inherit;color:inherit;counter-increment:none}
.guides-list li::before,.guides-list li::after{display:none}
.guides-list a{display:flex;flex-direction:column;gap:8px;height:100%;padding:22px;border:1px solid var(--border);border-radius:var(--radius-lg);
  background:linear-gradient(180deg,var(--card-top),var(--card-bottom));color:var(--text);text-decoration:none;transition:border-color .2s var(--ease)}
.guides-list a:hover,.guides-list a:focus-visible{border-color:var(--border-strong)}
.guides-list strong{font-size:16.5px;line-height:1.3}
.guides-list span{font-size:14px;color:var(--text-muted)}
.guides-all{display:inline-block;margin-top:16px;color:var(--accent);font-weight:700;text-decoration:none}
.guides-all:hover{text-decoration:underline}
@media(max-width:1020px){.guides-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.guides-list{grid-template-columns:1fr}}

/* Article pages: the IBA brand palette, light or dark like the device. */
.vpn-home{padding:48px 0 0}
.vpn-product-card{display:grid;grid-template-columns:96px 1fr;gap:24px;align-items:center;padding:28px;border:1px solid var(--border);border-radius:var(--radius-lg);background:linear-gradient(180deg,var(--card-top),var(--card-bottom))}
.vpn-product-card img{border-radius:22px}
.vpn-product-card h2{margin:0 0 8px;font-size:30px;line-height:1.15}
.vpn-product-card p{margin:0 0 16px;color:var(--text-muted);max-width:720px}
.vpn-product-card .vpn-platform{margin:0 0 6px;font-size:13px;letter-spacing:.04em}
.vpn-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px}
.vpn-actions a{font-weight:700;color:var(--accent);text-decoration:none}
.vpn-actions a:hover{text-decoration:underline}
.vpn-actions .vpn-download{display:inline-flex;min-height:48px;align-items:center;padding:10px 20px;border-radius:12px;background:#0055fd;color:#fff}
.g-product{display:grid;grid-template-columns:128px 1fr;gap:24px;align-items:center;margin:12px 0 24px}
.g-product img{border-radius:28px}
.g-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}
@media(max-width:560px){.vpn-product-card{grid-template-columns:1fr;padding:22px}.g-product{grid-template-columns:1fr;gap:16px}.g-product img{width:96px;height:96px}.g-feature-list{grid-template-columns:1fr}}
.g-page{
  --g-blue:#0055fd;--g-orange:#ffa500;--g-ink:#101421;--g-muted:#596174;--g-mist:#f0f3fa;--g-bg:#fff;--g-line:rgba(89,97,116,.22);
  --g-card:#fff;--g-button-ink:#fff;--g-link:#0047d6;
  margin:0;background:var(--g-bg);color:var(--g-ink);color-scheme:light;
  font:17px/1.65 Manrope,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(prefers-color-scheme:dark){
  .g-page{--g-ink:#eef1f8;--g-muted:#a7afc2;--g-mist:#151b2b;--g-bg:#0b0f1a;--g-line:rgba(167,175,194,.22);--g-card:#111727;--g-link:#7ea2ff;
    color-scheme:dark}
}
.g-page *{box-sizing:border-box}
.g-page a{color:var(--g-link)}
.g-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(16px,calc((100% - 1080px)/2));
  background:var(--g-bg);background:color-mix(in srgb,var(--g-bg) 92%,transparent);border-bottom:1px solid var(--g-line);backdrop-filter:blur(10px)}
.g-brand{display:flex;align-items:center;gap:10px;color:var(--g-ink)!important;font-weight:800;text-decoration:none}
.g-brand img{border-radius:8px}
.g-langs{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.g-langs a{padding:4px 10px;border-radius:999px;color:var(--g-muted);font-size:14px;text-decoration:none}
.g-langs a[aria-current="page"]{background:var(--g-mist);color:var(--g-ink);font-weight:700}
.g-main{max-width:760px;margin:0 auto;padding:20px 16px 56px}
.g-crumbs{font-size:14px;color:var(--g-muted);margin:4px 0 18px}
.g-crumbs a{color:var(--g-muted)}
.g-article h1{font-size:clamp(28px,6vw,42px);line-height:1.15;letter-spacing:-.6px;margin:0 0 10px}
.g-article h2{font-size:clamp(21px,4.4vw,25px);line-height:1.3;margin:36px 0 10px}
.g-article p,.g-article li{margin:0 0 12px}
.g-article ul,.g-article ol{padding-left:22px;margin:0 0 12px}
.g-article li::marker{color:var(--g-blue);font-weight:700}
.g-meta{font-size:14px;color:var(--g-muted)}
.g-lead{font-size:19px;color:var(--g-ink)}
.g-note{padding:14px 16px;border-left:4px solid var(--g-orange);border-radius:8px;background:var(--g-mist)}
.g-button,.g-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;font-weight:700;
  text-decoration:none}
.g-button{background:var(--g-blue);color:var(--g-button-ink)!important}
.g-button:hover{filter:brightness(.9)}
.g-secondary{border:1px solid var(--g-line);color:var(--g-ink)!important}
.g-cta-inline{margin:20px 0 8px}
.g-cta{display:grid;grid-template-columns:64px 1fr;gap:16px 18px;align-items:center;margin:40px 0 0;padding:22px;border:1px solid var(--g-line);
  border-radius:20px;background:var(--g-mist)}
.g-cta img{border-radius:14px}
.g-cta strong{font-size:19px}
.g-cta p{margin:4px 0 0;color:var(--g-muted);font-size:15.5px}
.g-cta-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}
.g-more{margin-top:40px}
.g-more h2{font-size:21px;margin:0 0 10px}
.g-more ul{padding-left:20px}
.g-more li{margin:0 0 8px}
.g-article .g-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:24px 0 0;padding:0}
.g-article .g-cards li{margin:0}
.g-cards a{display:flex;flex-direction:column;gap:6px;height:100%;padding:20px;border:1px solid var(--g-line);border-radius:18px;background:var(--g-card);
  color:var(--g-ink);text-decoration:none}
.g-cards a:hover,.g-cards a:focus-visible{border-color:var(--g-blue)}
.g-cards span{font-size:15px;color:var(--g-muted)}
.g-foot{max-width:760px;margin:0 auto;padding:24px 16px 40px;border-top:1px solid var(--g-line);font-size:14px;color:var(--g-muted)}
.g-foot p{margin:0 0 6px}
.g-foot a{color:var(--g-muted)}
@media(max-width:560px){
  .g-page{font-size:16.5px}
  .g-lead{font-size:18px}
  .g-article .g-cards{grid-template-columns:1fr}
  .g-cta{grid-template-columns:48px 1fr;padding:18px}
  .g-cta img{width:48px;height:48px}
  .g-cta-actions a{flex:1 1 100%}
}

/* Instructions to the programs: pictures (served from /guide-img/), keys, inline code and the program's own card. */
.g-article .g-figure{margin:22px 0 26px;padding:0}
.g-article .g-figure img{display:block;max-width:100%;height:auto;border:1px solid var(--g-line);border-radius:12px;background:var(--g-card)}
.g-article .g-figure figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:var(--g-muted)}
/* Phone screenshots are tall: narrow and centred. */
.g-article .g-figure-phone{max-width:300px;margin-left:auto;margin-right:auto}
.g-article .g-screens{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin:22px 0 26px}
.g-article .g-screens .g-figure{margin:0;flex:1 1 200px;max-width:260px}
.g-article .g-figure-small img{width:auto}
.g-article kbd{display:inline-block;padding:1px 7px;border:1px solid var(--g-line);border-bottom-width:2px;border-radius:6px;background:var(--g-card);
  font:inherit;font-size:.9em;font-weight:700;white-space:nowrap}
.g-article code{padding:1px 6px;border-radius:6px;background:var(--g-mist);font:.92em Consolas,"SFMono-Regular",monospace;overflow-wrap:anywhere}
.g-cta-tile{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:16px;background:var(--g-blue);color:#fff;
  font-size:22px;font-weight:800;letter-spacing:-.5px}
