/* The header and footer of the new home page, for the pages that still run on style.css: the
   blog, the guides, the legal pages, support and 404 (owner 13.11: going to the blog moved
   the buttons). Every rule here is the home page's own, from v3.css, under body.doc so it wins
   over style.css; build.py swaps in the home page's header and footer markup. */
body.doc { padding-top: 74px; }
body.doc .glass { background: rgba(28, 20, 48, .55); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: none; }
body.doc .nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 90; padding: 0; transition: none; }
body.doc .nav-in { width: min(1200px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 14px; border-radius: 999px; }
body.doc .brand { display: flex; flex: none; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.02em; color: #fff; }
body.doc .brand img { border-radius: 9px; }
body.doc .nav-links { display: flex; gap: 4px; margin: 0 0 0 14px; }
body.doc .nav-links a { text-decoration: none; color: rgba(236, 232, 255, .72); font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: none; }
body.doc .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
body.doc .nav-right { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; }
body.doc .lang { position: relative; }
body.doc .lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: rgba(236, 232, 255, .72); font-size: 14px; padding: 8px 10px; border-radius: 999px; }
body.doc .lang summary::-webkit-details-marker { display: none; }
body.doc .lang summary svg { width: 17px; height: 17px; fill: currentColor; }
body.doc .lang-menu { position: absolute; right: 0; top: calc(100% + 10px); display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px; padding: 8px; border-radius: 18px; background: rgba(20, 14, 36, .92); }
body.doc .lang-menu a { text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: rgba(236, 232, 255, .72); }
body.doc .lang-menu a:hover, body.doc .lang-menu a[aria-current] { background: rgba(255, 255, 255, .08); color: #fff; }
body.doc .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.doc .nav .btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; border-radius: 999px; padding: 9px 16px; font-size: 15px; line-height: 1.5; background: #fff; color: #0b0716; box-shadow: none; transition: transform .2s; }

body.doc .foot { border-top: 1px solid rgba(255, 255, 255, .09); padding: 60px 0 40px; background: rgba(0, 0, 0, .25); font-size: 17px; line-height: 1.5; }
body.doc .foot .wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
body.doc .foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
body.doc .foot-brand img { border-radius: 12px; margin-bottom: 14px; }
body.doc .foot-brand p { color: rgba(236, 232, 255, .72); font-size: 15px; max-width: 22em; line-height: 1.5; }
body.doc .foot-h { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .55); margin: 0 0 12px; }
body.doc .foot-col { display: flex; flex-direction: column; gap: 9px; }
body.doc .foot-col a { text-decoration: none; color: rgba(236, 232, 255, .72); font-size: 15px; }
body.doc .foot-col a:hover { color: #fff; }
body.doc .foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); display: grid; gap: 12px; font-size: 13px; color: rgba(236, 232, 255, .5); }
body.doc .foot-bottom p { margin: 0; }
body.doc .foot-bottom a { color: rgba(236, 232, 255, .5); text-decoration: none; }
body.doc .foot-bottom a:hover { color: #fff; }
body.doc .langs { line-height: 1.9; word-spacing: 6px; }
body.doc .sep { margin: 0 6px; }
body.doc .foot-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
body.doc .ph-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; text-decoration: none; }
body.doc .ph-badge svg { width: 34px; height: 34px; }
body.doc .ph-badge small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: rgba(236, 232, 255, .5); }
body.doc .ph-badge b { font-size: 16px; color: #fff; }
@media (max-width: 900px) {
  body.doc .nav-links { display: none; } body.doc .lang-name { display: none; }
  body.doc .foot-in { grid-template-columns: 1fr 1fr; } body.doc .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body.doc .nav-in { padding: 6px 6px 6px 12px; gap: 8px; }
  body.doc .lang summary { padding: 8px 6px; }
  body.doc .foot .wrap { width: calc(100% - 32px); }
}
body.doc .nav, body.doc .foot { letter-spacing: normal; text-rendering: auto; font-feature-settings: normal; }
body.doc .brand { letter-spacing: -.02em; }
body.doc .nav, body.doc .foot { font-size: 17px; line-height: 1.5; }
body.doc .nav .btn { letter-spacing: normal; }

/* The same night sky as the home page (owner 13.11: the blog and the guides had their own
   gradient). A fixed layer of three blurred orbs over a flat #07050e, so a page looks the same
   at every scroll depth as the home page does. The root carries the colour, the body none,
   because a body background would paint over a negative z-index layer. */
html:has(body.doc) { background: #07050e; }
body.doc { background: transparent none; }
body.doc .field { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: none; }
body.doc .field .orb { display: block; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
body.doc .orb-1 { width: 70vw; height: 70vw; left: -20vw; top: -30vw; background: radial-gradient(#4b1fa8, transparent 65%); }
body.doc .orb-2 { width: 60vw; height: 60vw; right: -25vw; top: 10vh; background: radial-gradient(#2a2fb8, transparent 65%); opacity: .4; }
body.doc .orb-3 { width: 50vw; height: 50vw; left: 20vw; bottom: -30vw; background: radial-gradient(#8a1f6e, transparent 65%); opacity: .3; }

/* Phones: the same menu as the home page (see v3.css), and even line breaks in the articles. */
body.doc .nav-in { position: relative; }
body.doc .menu { display: none; }
body.doc .menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: rgba(236, 232, 255, .85); -webkit-tap-highlight-color: transparent; }
body.doc .menu summary::-webkit-details-marker { display: none; }
body.doc .menu summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.doc .menu .i-close { display: none; }
body.doc .menu[open] .i-open { display: none; }
body.doc .menu[open] .i-close { display: block; }
body.doc .menu[open] summary { background: rgba(255, 255, 255, .1); color: #fff; }
body.doc .menu-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; padding: 6px; border-radius: 24px; background: #150f26; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
body.doc .menu-panel a { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; font-size: 18px; font-weight: 600; color: #fff; text-decoration: none; border-radius: 16px; }
body.doc .menu-panel a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid rgba(255, 255, 255, .4); border-right: 2px solid rgba(255, 255, 255, .4); transform: rotate(45deg); }
body.doc .menu-panel a + a { border-top: 1px solid rgba(255, 255, 255, .07); }
body.doc .menu-panel a:active { background: rgba(255, 255, 255, .08); }
@media (max-width: 900px) {
body.doc .menu { display: block; }
body.doc .nav-in { gap: 6px; padding: 7px 7px 7px 12px; }
body.doc .nav-right { gap: 2px; }
body.doc .nav .btn-small { margin-inline-end: 2px; }
}
@media (max-width: 360px) {
body.doc .brand span { display: none; }
}
body.doc h1, body.doc h2, body.doc h3 { text-wrap: balance; }
body.doc p, body.doc li { text-wrap: pretty; }
body.doc .langs a { white-space: nowrap; }
@media (max-width: 700px) {
  body.doc .crumbs:has(a + span + a) [aria-current], body.doc .crumbs:has(a + span + a) span:has(+ [aria-current]) { display: none; }
  body.doc .foot { padding-top: 40px; }
  body.doc .post-txt p, body.doc .guide-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  body.doc .post-img, body.doc .post-card-big .post-img, body.doc .guide-card img { aspect-ratio: 16 / 10; height: auto; }
}
body.doc[dir=rtl] .menu-panel a::after, [dir=rtl] body.doc .menu-panel a::after { transform: rotate(-135deg); }
