/* /install/ — readable “manual” typography inside BTGuard .content-main only */

.install-docs-box {
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #1a2e1a;
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.install-docs__account-mismatch {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 2px solid #ea580c;
    border-radius: 10px;
    background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 45%, #fed7aa 100%);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    color: #7c2d12;
}

.install-docs__account-mismatch-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.05rem;
    border-radius: 8px;
    background: rgba(234, 88, 12, 0.18);
    color: #c2410c;
    font-size: 1.15rem;
    line-height: 1;
}

.install-docs__account-mismatch-body {
    min-width: 0;
    flex: 1;
}

.install-docs__account-mismatch-p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
}

.install-docs__account-mismatch-a {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.install-docs__account-mismatch-a:hover {
    color: #92400e;
}

.install-docs__breadcrumb {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 107, 0, 0.18);
}

.install-docs__crumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.88rem;
    color: #3d5c3d;
}

.install-docs__crumb:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #7a9a7a;
    font-weight: 400;
}

.install-docs__crumb a {
    color: #006b00;
    text-decoration: none;
    font-weight: 600;
}

.install-docs__crumb a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.install-docs__intro {
    font-size: 1.02rem;
    color: #3d523d;
    margin-bottom: 2rem;
    max-width: 40rem;
}

/* /install/vpn/ — spacing + manual section title rhythm */
.install-docs__vpn-hub {
    padding: 0.85rem 0.5rem 1.75rem;
}

@media (min-width: 720px) {
    .install-docs__vpn-hub {
        padding: 1rem 0.75rem 2rem;
    }
}

.install-docs__vpn-hub .install-docs__app-block > .install-docs__page-title {
    margin: 0 0 0.75rem;
}

.install-docs__vpn-hub .install-docs__app-desc {
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

/* Padding (not margin) so spacing cannot collapse with global * reset / siblings */
.install-docs__vpn-hub .install-docs__app-block {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.install-docs__vpn-hub .install-docs__app-columns {
    margin-bottom: 0;
}

.install-docs__vpn-hub .install-docs__vpn-manual {
    padding-top: 1.25rem;
    margin-top: 0;
}

.install-docs__vpn-hub h2.install-docs__page-title.install-docs__page-title--section {
    margin-top: 0;
    margin-bottom: 0.65rem;
    padding-top: 0;
}

.install-docs__vpn-hub .install-docs__intro {
    margin-top: 0.2rem;
    margin-bottom: 1.65rem;
}

.install-docs__vpn-hub .install-docs__columns {
    gap: 1.25rem;
}

/* Manual VPN section: 5 protocol columns (WireGuard / OpenVPN / IKEv2 / Stealth / PPTP).
 * Override the default 3-column grid so the row stays a single row on
 * desktop and falls back to 2 columns on tablets, then 1 column on phones
 * (the global @media at 860px also fires and pins to 1 col). */
.install-docs__vpn-hub .install-docs__vpn-manual .install-docs__columns {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .install-docs__vpn-hub .install-docs__vpn-manual .install-docs__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

.install-docs__vpn-hub .install-docs__cards {
    gap: 0.8rem;
}

.install-docs__vpn-hub .install-docs__column-head {
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
}

.install-docs__vpn-hub .install-docs__card {
    padding: 1.05rem 1.15rem;
}

.install-docs__vpn-hub .install-docs__back {
    margin-top: 1.65rem;
}

.install-docs__app-block {
    margin-bottom: 1rem;
}

.install-docs__app-block > .install-docs__page-title {
    margin: 0 0 0.85rem;
}

.install-docs__app-desc {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #3d523d;
    margin: 0 0 1.5rem;
    max-width: 42rem;
}

.install-docs__columns > .install-docs__empty--span-cols {
    grid-column: 1 / -1;
}

.install-docs__empty--app.install-docs__empty--span-cols {
    margin: 0;
    padding: 1.25rem 0.75rem;
}

.install-docs__page-title {
    font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3.5vw, 1.95rem);
    font-weight: 600;
    line-height: 1.28;
    color: #0a4a0a;
    margin: 0 0 0.5rem;
    text-shadow: none;
}

.install-docs__section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5a7a5a;
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0, 107, 0, 0.15);
}

.install-docs__section-title:first-of-type {
    margin-top: 0.5rem;
}

.install-docs__cards {
    display: grid;
    gap: 0.75rem;
}

/* /install/ hub: VPN + Proxy + Browser cards side-by-side at a "normal"
 * card width (matches the column-card sizing on /install/vpn/ and
 * /install/proxy/) instead of stretching them to the full content width. */
.install-docs__cards--hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (max-width: 860px) {
    .install-docs__cards--hub {
        grid-template-columns: 1fr;
    }
}

.install-docs__card {
    display: block;
    position: relative;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 107, 0, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 80, 0, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.install-docs__card--recommended {
    border-width: 2px;
    border-color: rgba(21, 128, 61, 0.65);
    background: linear-gradient(155deg, rgba(255, 255, 255, 1) 0%, rgba(220, 252, 231, 0.92) 42%, rgba(187, 247, 208, 0.35) 100%);
    box-shadow:
        0 0 0 1px rgba(21, 128, 61, 0.12),
        0 4px 20px rgba(21, 128, 61, 0.18);
    padding-top: 1.85rem;
}

.install-docs__card--recommended:hover {
    border-color: rgba(21, 128, 61, 0.85);
    box-shadow:
        0 0 0 1px rgba(21, 128, 61, 0.2),
        0 6px 24px rgba(21, 128, 61, 0.22);
}

.install-docs__card-tab {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.32rem 0.65rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-radius: 0 7px 0 10px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
    pointer-events: none;
}

.install-docs__article-frame {
    position: relative;
}

.install-docs__article-frame--recommended {
    padding-top: 0.35rem;
    margin-top: -0.15rem;
}

.install-docs__card-tab--article {
    pointer-events: none;
    z-index: 2;
}

.install-docs__card:hover {
    border-color: rgba(0, 107, 0, 0.45);
    box-shadow: 0 4px 14px rgba(0, 100, 0, 0.1);
}

.install-docs__card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #0a5c0a;
    margin: 0;
}

.install-docs__card-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #006b00;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 60, 0, 0.25);
}

/* Logged-in hub: emphasize the card that matches the member’s service */
.install-docs__cards--member-is-vpn .install-docs__card--vpn,
.install-docs__cards--member-is-proxy .install-docs__card--proxy,
.install-docs__cards--member-is-proxy .install-docs__card--browser {
    border-width: 2px;
    border-color: rgba(0, 107, 0, 0.55);
    background: linear-gradient(160deg, rgba(255, 255, 255, 1) 0%, rgba(236, 253, 236, 0.98) 55%, rgba(220, 248, 220, 0.95) 100%);
    box-shadow: 0 4px 18px rgba(0, 100, 0, 0.14), 0 0 0 1px rgba(0, 107, 0, 0.08);
    transform: scale(1.01);
}

.install-docs__cards--member-is-vpn .install-docs__card--vpn .install-docs__card-title,
.install-docs__cards--member-is-proxy .install-docs__card--proxy .install-docs__card-title,
.install-docs__cards--member-is-proxy .install-docs__card--browser .install-docs__card-title {
    color: #064006;
    font-size: 1.12rem;
}

.install-docs__cards--member-is-vpn .install-docs__card--proxy,
.install-docs__cards--member-is-proxy .install-docs__card--vpn {
    opacity: 0.5;
    filter: grayscale(0.2);
    box-shadow: none;
    border-color: rgba(0, 107, 0, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.install-docs__cards--member-is-vpn .install-docs__card--proxy .install-docs__card-title,
.install-docs__cards--member-is-proxy .install-docs__card--vpn .install-docs__card-title {
    color: #5a7a5a;
}

.install-docs__cards--member-is-vpn .install-docs__card--proxy:hover,
.install-docs__cards--member-is-proxy .install-docs__card--vpn:hover {
    opacity: 0.78;
    filter: grayscale(0.08);
    border-color: rgba(0, 107, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .install-docs__cards--member-is-vpn .install-docs__card--vpn,
    .install-docs__cards--member-is-proxy .install-docs__card--proxy,
    .install-docs__cards--member-is-proxy .install-docs__card--browser {
        transform: none;
    }
}

.install-docs__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.install-docs__columns--two {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
    .install-docs__columns {
        grid-template-columns: 1fr;
    }

    .install-docs__columns--two {
        grid-template-columns: 1fr;
    }
}

.install-docs__column {
    min-width: 0;
}

.install-docs__column-head--with-badge {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
}

/* Same badge as the column-head variant, but sized + spaced to ride along
 * the BTGuard VPN App h1 instead of an h2. The page title font is large
 * (clamp(1.5rem, 3.5vw, 1.95rem)) so the badge gets a small font-size bump
 * for legibility next to the heading. */
.install-docs__page-title--with-badge {
    display: flex;
    /* Top-align so the badge rides along the cap-line of "BTGUARD VPN APP"
     * instead of dropping to the baseline. flex-start aligns the top of the
     * badge box with the top of the heading's line box; a small margin-top
     * compensates for the heading's line-height half-leading so the badge
     * lines up with the visual top of the capital letters. */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}

.install-docs__page-title--with-badge .install-docs__column-head-badge {
    margin-top: 0.18rem;
}

.install-docs__column-head-badge {
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a7a4a;
    background: rgba(0, 107, 0, 0.06);
    border: 1px solid rgba(0, 107, 0, 0.18);
    padding: 0.1rem 0.38rem 0.12rem;
    border-radius: 4px;
    line-height: 1.2;
    vertical-align: baseline;
}

.install-docs__column-head {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a5c0a;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 107, 0, 0.25);
    font-family: "Orbitron", monospace;
    letter-spacing: 0.04em;
}

.install-docs__article-meta {
    font-size: 0.88rem;
    color: #4a664a;
    margin-bottom: 1.5rem;
}

/* Conditional blocks (data-if) stay hidden until the runtime has evaluated
   them. Without JS the html.install-js class is never set, so everything
   renders. */
.install-js .install-docs__prose[data-if-pending] [data-if] {
    display: none;
}

/* Article body */
.install-docs__prose {
    --install-gap-block: 1.1rem;
    --install-hr-gap: 2rem;
    --install-gap-caption: 1.15rem;
    --install-section-gap: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 107, 0, 0.18);
    border-radius: 10px;
    padding: 1.5rem 1.35rem 1.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.install-docs__prose h2 {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.28rem;
    margin: 1.65rem 0 0.7rem;
    color: #0a4a0a;
}

.install-docs__prose h2:first-child {
    margin-top: 0;
}

.install-docs__prose h3 {
    font-size: 1.08rem;
    margin: 1.25rem 0 0.5rem;
    color: #14532d;
}

.install-docs__prose h4 {
    font-size: 0.98rem;
    margin: 1rem 0 0.4rem;
    color: #166534;
}

.install-docs__prose p {
    margin: 0 0 1rem;
}

.install-docs__prose ul,
.install-docs__prose ol {
    margin: 0 0 var(--install-gap-block);
    padding-left: 1.35rem;
}

.install-docs__prose li {
    margin-bottom: 0.35rem;
}

.install-docs__prose blockquote {
    margin: 1rem 0;
    padding: 0.65rem 1rem;
    border-left: 4px solid rgba(0, 107, 0, 0.35);
    background: rgba(0, 107, 0, 0.06);
    color: #3d523d;
}

.install-docs__prose code {
    font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
    font-size: 0.9em;
    background: rgba(0, 107, 0, 0.08);
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
}

.install-docs__prose pre {
    font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    background: #0f1f12;
    color: #e8f5e9;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 1rem;
    border: 1px solid rgba(0, 107, 0, 0.35);
}

.install-docs__prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Copy-to-clipboard button, injected by JS on /install/view/ into pre and
   command blockquotes (blockquote containing code). */
.install-docs__copy-wrap {
    position: relative;
}

blockquote.install-docs__copy-wrap,
pre.install-docs__copy-wrap {
    padding-right: 3rem;
}

.install-docs__copy-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border: 1px solid rgba(0, 107, 0, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #0a4a0a;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.install-docs__copy-btn:hover,
.install-docs__copy-btn:focus-visible {
    opacity: 1;
    background: #ffffff;
}

pre.install-docs__copy-wrap .install-docs__copy-btn {
    border-color: rgba(232, 245, 233, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #e8f5e9;
}

pre.install-docs__copy-wrap .install-docs__copy-btn:hover,
pre.install-docs__copy-wrap .install-docs__copy-btn:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.install-docs__copy-btn.is-copied {
    opacity: 1;
    border-color: #15803d;
    color: #15803d;
}

pre.install-docs__copy-wrap .install-docs__copy-btn.is-copied {
    border-color: #86efac;
    color: #86efac;
}

/*
 * Step dividers: faint rule with even whitespace above/below (margin, not padding).
 * Flow: ul → hr → img → ul …
 */
.install-docs__prose hr {
    border: none;
    border-top: 1px solid rgba(0, 107, 0, 0.14);
    height: 0;
    margin: var(--install-hr-gap) 0;
    padding: 0;
    clear: both;
}

.install-docs__prose hr + img {
    margin-top: 0;
}

.install-docs__prose hr + :is(h2, h3, h4) {
    margin-top: 0;
}

.install-docs__prose img + :is(ul, ol) {
    margin-top: var(--install-gap-caption);
}

.install-docs__prose :is(ul, ol) + img {
    margin-top: var(--install-section-gap);
}

/* Conditional blocks: compact inside the group, normal step gaps outside. */
.install-docs__prose .install-if-group {
    margin: 0.75rem 0 0.85rem;
}

.install-docs__prose ul + .install-if-group,
.install-docs__prose ol + .install-if-group {
    margin-top: 0.65rem;
}

.install-docs__prose .install-if-group > :first-child {
    margin-top: 0;
}

.install-docs__prose .install-if-group > :last-child {
    margin-bottom: 0;
}

.install-docs__prose .install-if-group > hr {
    display: none;
}

.install-docs__prose .install-if-group > img {
    margin: 0.55rem 0 0.65rem;
}

.install-docs__prose .install-if-group > ul,
.install-docs__prose .install-if-group > ol {
    margin: 0.45rem 0 0;
}

.install-docs__prose .install-if-group > p:empty,
.install-docs__prose .install-if-group > p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
}

.install-docs__prose hr[data-if] {
    border: none;
    border-top: 1px solid rgba(0, 107, 0, 0.14);
    height: 0;
    margin: var(--install-hr-gap) 0;
    padding: 0;
}

.install-docs__prose img[data-if] {
    margin: 0.65rem 0 0.85rem;
}

.install-docs__prose p[data-if]:empty,
.install-docs__prose p[data-if]:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
}

.install-docs__prose ul[data-if],
.install-docs__prose ol[data-if] {
    margin: 0.65rem 0 0.85rem;
}

.install-docs__prose li[data-if] {
    margin-bottom: 0.35rem;
}

.install-docs__prose li[data-if]:last-child {
    margin-bottom: 0;
}

.install-docs__prose a {
    color: #047857;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.install-docs__prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.85rem 0 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 107, 0, 0.2);
}

/* App store badges: keep Google Play + Amazon side by side */
.install-docs__prose a:has(> img[alt="Get it on Google Play"]),
.install-docs__prose a:has(> img[alt="Available at Amazon Appstore"]) {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.65rem;
}
.install-docs__prose a:has(> img[alt="Get it on Google Play"]) + a:has(> img[alt="Available at Amazon Appstore"]) {
    margin-right: 0;
}
.install-docs__prose a > img[alt="Get it on Google Play"],
.install-docs__prose a > img[alt="Available at Amazon Appstore"] {
    display: inline-block;
    margin: 1rem 0 0.75rem;
    max-width: none;
    width: auto;
    height: 59px;
    border: none;
    border-radius: 0;
}

.install-docs__empty {
    color: #4a664a;
    font-size: 0.95rem;
    padding: 1rem 0;
}

.install-docs__back {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #006b00;
    text-decoration: none;
}

.install-docs__back:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* /install/browser/ + /install/vpn/ app cards: brand/platform icon before the title */
.install-docs__card--browser-guide .install-docs__card-title,
.install-docs__card--app-platform .install-docs__card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.install-docs__card-icon {
    font-size: 1.35rem;
    color: #006b00;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

/* /install/browser/: per-column store link + footnote */
.install-docs__store-link {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
}
.install-docs__store-link a {
    color: #2f6b2f;
    text-decoration: none;
    font-weight: 600;
}
.install-docs__store-link a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.install-docs__store-link i {
    font-size: 0.72rem;
    margin-right: 0.15rem;
}
.install-docs__note {
    margin: 1.5rem 0 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2f4f2f;
    background: rgba(0, 107, 0, 0.05);
    border: 1px solid rgba(0, 107, 0, 0.16);
    border-radius: 8px;
}
.install-docs__note i {
    color: #006b00;
    margin-right: 0.35rem;
}
.install-docs__note a {
    color: #006b00;
    font-weight: 600;
}
