/* /software — clear buttons on the card + tabbed details below it
   (Screenshots · Installation · Features · Updates & Help) */

/* buttons that replace the small "Learn more" links */
.desk-links { gap: 12px !important; margin-top: 22px !important; }
.dk-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px;
    font-size: 15px; font-weight: 800; color: #fff !important;
    background: rgba(0,0,0,0.28); border: 1.5px solid rgba(255,255,255,0.45);
    transition: background .2s, transform .2s;
}
.dk-btn:hover { background: rgba(0,0,0,0.45); transform: translateY(-2px); text-decoration: none !important; }
.dk-btn-main { background: #fff; color: #8A1F2B !important; border-color: #fff; }
.dk-btn-main:hover { background: #FFE9D6; }

/* details panel */
.dk {
    margin-top: 18px; padding: clamp(18px, 3vw, 34px);
    border-radius: 28px; scroll-margin-top: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
    border: 1px solid rgba(255,255,255,0.1);
    color: #EEF1FA;
}
.dk-tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    padding: 6px; border-radius: 22px; background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .dk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dk-tab {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; padding: 10px 12px; border-radius: 16px; border: 0;
    background: transparent; color: rgba(238,241,250,0.75);
    font: 800 16.5px/1.2 'Plus Jakarta Sans', 'Hanken Grotesk', sans-serif;
    transition: background .2s, color .2s;
}
.dk-tab svg { width: 24px; height: 24px; flex-shrink: 0; }
.dk-tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dk-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #1E6BFF, #0047D6); color: #fff;
    box-shadow: 0 12px 26px -12px rgba(30,107,255,0.9);
}
.dk-tab:focus-visible, .dk-os-btn:focus-visible, .dk-zoom:focus-visible { outline: 3px solid #7FB2FF; outline-offset: 3px; }

.dk-panel { padding: clamp(20px, 3vw, 30px) clamp(2px, 1vw, 10px) 6px; }
.dk-panel[hidden], .dk-os-panel[hidden] { display: none; }
.dk-h { font: 800 clamp(24px, 2.8vw, 30px)/1.15 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; color: #fff; }
.dk-lead { font-size: 16px; color: rgba(220,230,255,0.7); margin-top: 6px; }
.dk-panel b { color: #fff; }

/* screenshots */
.dk-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; margin-top: 20px; }
.dk-shot figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(230,236,255,0.82); }
.dk-zoom {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: 14px; overflow: hidden; background: #15161d;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 20px 40px -20px rgba(0,0,0,0.8);
    transition: transform .25s;
}
.dk-zoom:hover { transform: translateY(-4px); }
.dk-zoom img { display: block; width: 100%; height: auto; }

/* installation */
.dk-os { display: inline-flex; gap: 8px; margin-top: 16px; padding: 6px; border-radius: 999px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); }
.dk-os-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 999px; border: 0;
    background: transparent; color: rgba(238,241,250,0.8); font-size: 16px; font-weight: 800;
}
.dk-os-btn svg { width: 20px; height: 20px; fill: currentColor; }
.dk-os-btn[aria-pressed="true"] { background: #fff; color: #111; }
.dk-os-btn[aria-pressed="true"][data-os="win"] svg { fill: #0078D4; }
.dk-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dk-dl .dl-btn { min-width: 230px; }
.dk-note {
    margin-top: 18px; padding: 14px 18px; border-radius: 14px;
    background: rgba(255,196,57,0.09); border: 1px solid rgba(255,196,57,0.3);
    font-size: 15.5px; line-height: 1.6; color: #FFF1CF;
}
.dk-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.dk-step {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 18px;
    padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
}
.dk-step-noimg { grid-template-columns: auto minmax(0, 1fr); }
.dk-num {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #F0CC78, #D9A943); color: #1A1206; font-weight: 900; font-size: 19px;
}
.dk-step h4 { font: 800 18px/1.25 'Plus Jakarta Sans', sans-serif; color: #fff; }
.dk-step p { margin-top: 4px; font-size: 16px; line-height: 1.6; color: rgba(230,236,255,0.82); }
@media (max-width: 720px) {
    .dk-step { grid-template-columns: auto minmax(0, 1fr); }
    .dk-step-img { grid-column: 1 / -1; }
}
.dk-extra { margin-top: 18px; font-size: 15.5px; line-height: 1.6; color: rgba(230,236,255,0.8); }
.dk-extra a { color: #FFD98A; font-weight: 800; }

/* features */
.dk-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-top: 20px; }
.dk-feat { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); }
.dk-tick { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(52,211,153,0.16); color: #34d399; font-weight: 900; }
.dk-feat h4 { font: 800 17px/1.3 'Plus Jakarta Sans', sans-serif; color: #fff; }
.dk-feat p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: rgba(230,236,255,0.78); }

/* help */
.dk-help { display: grid; gap: 10px; margin-top: 18px; }
.dk-help details { border-radius: 16px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); }
.dk-help summary { cursor: pointer; list-style: none; padding: 16px 20px; font-size: 16.5px; font-weight: 800; color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.dk-help summary::-webkit-details-marker { display: none; }
.dk-help summary::after { content: '+'; color: #7FB2FF; font-size: 22px; line-height: 1; transition: transform .25s; }
.dk-help details[open] summary::after { transform: rotate(45deg); }
.dk-help p { padding: 0 20px 18px; font-size: 16px; line-height: 1.65; color: rgba(230,236,255,0.82); }

/* full-screen viewer */
.dk-viewer {
    position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
    background: rgba(2,6,16,0.94); padding: 60px 16px 20px; animation: dkv-in .2s ease;
}
@keyframes dkv-in { from { opacity: 0; } }
.dk-viewer figure { max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.dk-viewer img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.dk-viewer figcaption { margin-top: 14px; color: #E8EDF8; font-size: 15px; text-align: center; }
.dkv-close, .dkv-nav {
    position: absolute; border: 0; color: #fff; background: rgba(255,255,255,0.12);
    width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer;
}
.dkv-close { top: 14px; right: 14px; }
.dkv-nav { top: 50%; transform: translateY(-50%); font-size: 36px; }
.dkv-prev { left: 14px; } .dkv-next { right: 14px; }
.dkv-close:hover, .dkv-nav:hover { background: rgba(255,255,255,0.25); }

/* light mode */
html:not(.dark) .dk { background: #fff; border-color: rgba(16,23,46,0.1); color: #10172E; box-shadow: 0 20px 50px -30px rgba(16,23,46,0.35); }
html:not(.dark) .dk-tabs { background: #F1F3F8; border-color: rgba(16,23,46,0.08); }
html:not(.dark) .dk-tab { color: #3A4256; }
html:not(.dark) .dk-h, html:not(.dark) .dk-step h4, html:not(.dark) .dk-feat h4, html:not(.dark) .dk-help summary, html:not(.dark) .dk-panel b { color: #10172E; }
html:not(.dark) .dk-lead, html:not(.dark) .dk-shot figcaption, html:not(.dark) .dk-step p, html:not(.dark) .dk-feat p, html:not(.dark) .dk-help p, html:not(.dark) .dk-extra { color: #4A5168; }
html:not(.dark) .dk-step, html:not(.dark) .dk-feat, html:not(.dark) .dk-help details { background: #F7F8FB; border-color: rgba(16,23,46,0.08); }
html:not(.dark) .dk-os { background: #F1F3F8; }
html:not(.dark) .dk-os-btn { color: #3A4256; }
html:not(.dark) .dk-os-btn[aria-pressed="true"] { background: #10172E; color: #fff; }
html:not(.dark) .dk-note { color: #5A4200; background: #FFF7E0; }
html:not(.dark) .dk-extra a { color: #1C3FB0; }

/* the card sits above its details panel, so it must not stretch to the full item height */
.desk-item > .desk-card { height: auto; }

/* even thumbnail grid — the full image still opens in the viewer */
.dk-shots .dk-zoom img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }


/* /software: one app per row, with quick-jump chips when there are several */
.desk-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 34px !important; }
.desk-item { scroll-margin-top: 100px; }
.sw-jump { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }
.sw-jump:empty { display: none; }
.sw-chip {
    display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: #F4F1E8;
    transition: transform .2s, border-color .2s, background .2s;
}
.sw-chip:hover { transform: translateY(-3px); border-color: rgba(127,178,255,0.6); background: rgba(30,107,255,0.1); }
.sw-chip img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.sw-chip-text { display: flex; flex-direction: column; line-height: 1.25; }
.sw-chip-text strong { font-size: 16px; font-weight: 800; }
.sw-chip-text small { font-size: 12.5px; opacity: .65; font-weight: 600; }
.sw-chip-plats { display: flex; gap: 6px; flex-wrap: wrap; }
html:not(.dark) .sw-chip { background: #fff; color: #10172E; border-color: rgba(16,23,46,0.12); }

/* platform badges used on the jump chips (same look as the homepage tiles) */
.tile-plat { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: #fff; color: #111; font-size: 11.5px; font-weight: 800; }
.tile-plat svg { width: 14px; height: 14px; fill: #111; flex-shrink: 0; }
.tile-plat-android svg { fill: #3DDC84; }
.tile-plat-windows svg { fill: #0078D4; }
html:not(.dark) .sw-chip .tile-plat { background: #F1F3F8; }

/* Tibetan inside English sentences */
.tib-inline { font-family: 'Noto Serif Tibetan', serif; font-size: 1.25em; line-height: 1.4; font-weight: 600; }


/* ===== /software switch tiles + light-mode contrast ===== */
html:not(.dark) .ps-tile { background: #fff; color: #0B1230; border: 2px solid rgba(11,18,48,0.28); box-shadow: 0 14px 34px -20px rgba(11,18,48,0.45); }
html:not(.dark) .ps-tile:hover { border-color: #0A45D6; background: #F5F8FF; }
html:not(.dark) .ps-tile .ps-title { color: #0B1230; }
html:not(.dark) .ps-tile .ps-sub { color: #3A4562; opacity: 1; }
html:not(.dark) .ps-tile .ps-icon { background: #E6EDFF; border-color: rgba(10,69,214,0.3); color: #0A45D6; }
html:not(.dark) .ps-tile .ps-arrow { background: #E6EDFF; color: #0A45D6; }
html:not(.dark) .ps-tile.active { background: linear-gradient(135deg, #1F6BFF, #0A45D6 70%, #0A2E9E); border-color: #0A2E9E; box-shadow: 0 24px 50px -18px rgba(10,69,214,0.75); }
html:not(.dark) .ps-tile.active .ps-title, html:not(.dark) .ps-tile.active .ps-sub { color: #fff; }
html:not(.dark) .ps-tile.active .ps-icon { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.45); color: #fff; }
html:not(.dark) .ps-tile.active .ps-arrow { background: rgba(255,255,255,0.22); color: #fff; }
html:not(.dark) .showcase h2, html:not(.dark) .showcase .group-title { color: #0B1230; }
html:not(.dark) .showcase-lede { color: #38425E; }
html:not(.dark) .eyebrow { color: #0A2E9E; }

/* jump chips + platform badges */
html:not(.dark) .sw-chip { background: #fff; border: 1.5px solid rgba(11,18,48,0.25); color: #0B1230; box-shadow: 0 10px 26px -18px rgba(11,18,48,0.5); }
html:not(.dark) .sw-chip:hover { border-color: #0A45D6; background: #F5F8FF; }
html:not(.dark) .sw-chip-text small { opacity: 1; color: #3A4562; }
html:not(.dark) .sw-chip .tile-plat, html:not(.dark) .tile-plat { background: #EEF2FB; color: #0B1230; border: 1.5px solid rgba(11,18,48,0.3); }
html:not(.dark) .tile-plat svg { fill: #0B1230; }
html:not(.dark) .tile-plat-android svg { fill: #14833F; }
html:not(.dark) .tile-plat-windows svg { fill: #0067C0; }

/* details panel in light mode */
html:not(.dark) .dk { background: #fff; border: 1.5px solid rgba(11,18,48,0.2); color: #0B1230; }
html:not(.dark) .dk-tabs { background: #EEF2FB; border: 1.5px solid rgba(11,18,48,0.2); }
html:not(.dark) .dk-tab { color: #1E2747; }
html:not(.dark) .dk-tab:hover { background: #fff; color: #0B1230; }
html:not(.dark) .dk-tab[aria-selected="true"] { background: linear-gradient(135deg, #1F6BFF, #0A45D6); color: #fff; }
html:not(.dark) .dk-h, html:not(.dark) .dk-step h4, html:not(.dark) .dk-feat h4, html:not(.dark) .dk-help summary { color: #0B1230; }
html:not(.dark) .dk-lead, html:not(.dark) .dk-shot figcaption, html:not(.dark) .dk-step p, html:not(.dark) .dk-feat p, html:not(.dark) .dk-help p, html:not(.dark) .dk-extra { color: #2D3652; }
html:not(.dark) .dk-step, html:not(.dark) .dk-feat, html:not(.dark) .dk-help details { background: #F5F7FC; border: 1.5px solid rgba(11,18,48,0.18); }
html:not(.dark) .dk-zoom { box-shadow: 0 0 0 1.5px rgba(11,18,48,0.25), 0 16px 34px -18px rgba(11,18,48,0.6); }
html:not(.dark) .dk-os { background: #EEF2FB; border: 1.5px solid rgba(11,18,48,0.2); }
html:not(.dark) .dk-os-btn { color: #1E2747; }
html:not(.dark) .dk-os-btn[aria-pressed="true"] { background: #0B1230; color: #fff; }
html:not(.dark) .dk-os-btn[aria-pressed="true"] svg { fill: #fff; }
html:not(.dark) .dk-note { background: #FFF4D6; border-color: #C98A00; color: #4A3500; }
html:not(.dark) .dk-extra a { color: #0A45D6; text-decoration: underline; }
html:not(.dark) .dk-tick { background: #DDF6E8; color: #14833F; }
html:not(.dark) .dk .dl-btn { background: #0B1230; color: #fff; border-color: #0B1230; }
html:not(.dark) .dk .dl-btn small, html:not(.dark) .dk .dl-btn em { color: rgba(255,255,255,0.8); }
html:not(.dark) .dk .dl-btn svg { fill: #fff; }
html:not(.dark) .dk .dl-btn.win svg { fill: #4DB2FF; }
html:not(.dark) .dk .dl-btn .arrow { color: #FFD98A; }
html:not(.dark) .software-support { background: #FFF8E1; border: 1.5px solid #C98A00; }
html:not(.dark) .software-support h3 { color: #0B1230; }
html:not(.dark) .software-support p { color: #3A4562; }
html:not(.dark) .future-banner .title { color: #0B1230; }
html:not(.dark) .future-banner .sub { color: #38425E; }


/* Tibetan names on the /software switch + heading label */
.ps-tib { display: block; font-family: 'Noto Serif Tibetan', serif; font-size: clamp(20px, 2vw, 24px); line-height: 1.6; font-weight: 700; color: #F0CC78; margin-top: 2px; }
.ps-tile.active .ps-tib { color: #FFE9A8; }
.eyebrow-tib { font-family: 'Noto Serif Tibetan', serif; font-size: 1.5em; letter-spacing: 0; text-transform: none; font-weight: 700; vertical-align: -0.1em; }
html:not(.dark) .ps-tib { color: #8A5A00; }
html:not(.dark) .ps-tile.active .ps-tib { color: #FFE9A8; }
