/* SKY APPS P2 — Catalog, detail, support, responsive · 2026-11-20
   Scoped presentation layer. Existing hero proportions and download logic remain unchanged. */
:root {
  --p2-ink:#1e3546; --p2-muted:#64798a; --p2-border:#dce5eb;
  --p2-surface:#fff; --p2-blue:#2b60bb; --p2-blue-hover:#214e9a;
}
html {scroll-padding-top:104px}
.site-shell .topbar {
  position:sticky;top:0;z-index:110;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(115%) blur(12px);
  border-bottom:1px solid #e5eaee;
}
.site-shell .nav-inner { min-height:76px }
.site-shell .nav-links {gap:clamp(12px,1.6vw,26px)}
.site-shell .nav-links a {font-size:13px;font-weight:600;min-height:38px;display:inline-flex;align-items:center;letter-spacing:0}
.site-shell .nav-links a:hover,.site-shell .nav-links a:focus-visible {color:#2256a3}
.site-shell .nav-links .sky-p2-nav-help {color:#506a80}
.site-shell .hero-v3 .hero-description {line-height:1.75;max-width:57ch}
.site-shell .hero-v3 .hero-primary {min-height:46px}
.site-shell .apps-section {padding-bottom:8px}
.site-shell .section-head {gap:18px}
.site-shell .app-count {
  white-space:nowrap;
  color:#57718a;
  font-weight:650;
}
.site-shell .toolbar {
  gap:15px;align-items:center;
  margin-bottom:19px;
}
.site-shell .search-wrapper {max-width:min(100%,400px)}
.site-shell .search-wrapper:focus-within {border-color:#7fa7da;box-shadow:0 0 0 3px rgba(62,119,191,.09)}
.site-shell .filters {min-width:0;max-width:100%;background:#eff3f8;border:1px solid #e6ebf1;padding:4px;border-radius:11px}
.site-shell .filters .filter {font-size:12px;min-height:34px;padding:7px 10px;border-radius:8px}
.site-shell .filters .filter.active {background:#fff;color:#245fb5;box-shadow:0 2px 6px rgba(23,56,89,.08);font-weight:700}
.site-shell .app-grid {gap:20px;align-items:stretch}
.site-shell .app-card.card-v2 {
  padding:21px 21px 18px;min-height:305px;
  border-radius:15px;
  border:1px solid var(--p2-border);
  box-shadow:0 4px 18px rgba(29,59,88,.045);
  background:var(--p2-surface);
}
.site-shell .app-card.card-v2:focus-within {border-color:#a7c4e6}
.site-shell .app-card.card-v2 .card-top {min-height:54px;gap:12px}
.site-shell .app-card.card-v2 .app-logo {width:50px;height:50px;flex-shrink:0;border-radius:12px}
.site-shell .app-card.card-v2 .card-badges {gap:6px;flex-wrap:wrap;justify-content:flex-end}
.site-shell .app-card.card-v2 .card-title {
  margin:16px 0 7px;font-size:17px;
  line-height:1.35;letter-spacing:-.02em;
  color:#203b53;font-weight:750;
}
.site-shell .app-card.card-v2 .card-desc {
  color:#5f7484;font-size:13px;line-height:1.6;
  min-height:40px;max-height:63px;
}
.site-shell .app-card.card-v2 .card-desc.description-expanded{max-height:none}
.site-shell .app-card.card-v2 .card-description-more{
  min-height:28px;font-size:12px;font-weight:660;color:#305f98;
  text-align:left;align-self:flex-start;
}
.site-shell .app-card.card-v2 .sky-p2-detail-link {
  display:inline-flex;align-items:center;gap:6px;
  width:max-content;max-width:100%;
  margin-top:7px;margin-bottom:5px;
  padding:6px 0;min-height:33px;
  border:0;background:transparent;
  font:650 12px/1.4 var(--sky-font-ui,"Segoe UI",sans-serif);
  color:#2b5d94;cursor:pointer;
  text-align:left;
}
.site-shell .app-card.card-v2 .sky-p2-detail-link:hover {color:#183f6d;text-decoration:underline;text-underline-offset:3px}
.site-shell .app-card.card-v2 .sky-p2-detail-link svg {width:14px;height:14px;flex:none}
.site-shell .app-card.card-v2 .card-meta {
  margin-top:auto;padding-top:13px;gap:6px;
}
.site-shell .app-card.card-v2 .card-actions {
  margin-top:15px;
  padding-top:15px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:9px;
}
.site-shell .app-card.card-v2 .card-actions .guide-button,
.site-shell .app-card.card-v2 .card-actions .download-button {
  min-height:41px;line-height:1.3;
  font-size:12px;font-weight:680;border-radius:9px;
  text-align:center;padding:9px 8px;
  white-space:normal;overflow-wrap:anywhere;
}
.site-shell .app-card.card-v2 .card-actions .guide-button {
  color:#315779;background:#f8fafc;border:1px solid #d6e3ee;
}
.site-shell .app-card.card-v2 .card-actions .primary-download {
  color:#fff;background:#2b60bb;border:1px solid #2b60bb;
}
.site-shell .app-card.card-v2 .card-actions .primary-download:hover:not(:disabled){
  background:#204f9b;border-color:#204f9b;
}
.site-shell .app-card.card-v2 .card-actions .download-button.disabled{
  font-size:12px;color:#805b30;background:#fdf8f0;border-color:#e6d6bc;
}
.site-shell .app-card.card-v2 .platform-block-note{
  font-size:11px;line-height:1.55;border-radius:8px;padding:9px 10px;
}
.site-shell .app-card.card-v2 .extra-download {margin-top:10px;border-top:1px solid #edf0f3}
.site-shell .app-card.card-v2 .extra-download-toggle {min-height:39px;display:flex;align-items:center}
.site-shell .empty-state {border:1px dashed #cbdbe9;border-radius:14px;padding:48px 24px}
.sky-p2-how {margin-top:68px;margin-bottom:72px}
.sky-p2-how-header {margin-bottom:25px}
.sky-p2-kicker {margin:0 0 10px;text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:760;color:#6584aa}
.sky-p2-how h2 {margin:0;color:#1e3546;font-size:clamp(25px,2.1vw,30px);font-weight:750;letter-spacing:-.035em}
.sky-p2-how-intro {color:#6b8090;font-size:14px;line-height:1.6;margin:10px 0 0}
.sky-p2-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.sky-p2-step {
  background:#fff;border:1px solid #e0e8ed;border-radius:14px;
  padding:23px 22px 24px;
  box-shadow:0 4px 17px rgba(25,52,76,.032);
}
.sky-p2-step-no {
  display:inline-grid;place-items:center;
  width:37px;height:37px;border-radius:10px;
  color:#356197;background:#edf3f9;
  font-weight:800;font-size:13px;margin-bottom:16px;
}
.sky-p2-step h3 {font-size:16px;letter-spacing:-.02em;line-height:1.35;color:#213d54;margin:0 0 9px}
.sky-p2-step p {margin:0;color:#6a7e8d;font-size:13px;line-height:1.65}
.site-shell .footer.sky-footer {
  margin-top:auto;padding:0;
  background:#fff;border-top:1px solid #e3e9ee;color:#556c7c;
}
.sky-p2-footer {display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:38px;padding-top:38px;padding-bottom:32px}
.sky-p2-footer-brand {display:flex;align-items:center;gap:10px;color:#203c53;font-size:17px;font-weight:800}
.sky-p2-footer-brand img {width:34px;height:34px}
.sky-p2-footer-desc {max-width:42ch;font-size:13px;line-height:1.7;color:#6a7e8e;margin:12px 0 0}
.sky-p2-footer h3 {font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:#435e75;margin:3px 0 15px;font-weight:780}
.sky-p2-footer ul {list-style:none;padding:0;margin:0;display:grid;gap:12px}
.sky-p2-footer li a {font-size:13px;line-height:1.4;color:#64788a;text-decoration:none}
.sky-p2-footer li a:hover {color:#245bb2;text-decoration:underline;text-underline-offset:3px}
.sky-p2-footer-bottom {border-top:1px solid #e9eef2;padding:17px 0 22px}
.sky-p2-footer-bottom .container {display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:11px;color:#718495}
.sky-p2-footer-bottom small{font-size:11px;color:#718495}
#sky-p2-detail {
  position:fixed;max-height:min(90dvh,860px);
  width:min(600px,calc(100vw - 28px));
  max-width:none;border:1px solid #d9e3eb;border-radius:17px;
  padding:0;background:#fff;color:#1d374a;
  box-shadow:0 24px 90px rgba(14,38,59,.25);
  font-family:var(--sky-font-ui,"Segoe UI",sans-serif);
  overflow:auto;
}
#sky-p2-detail::backdrop {background:rgba(17,36,53,.58);backdrop-filter:blur(3px)}
.sky-p2-detail-head {display:flex;gap:16px;justify-content:space-between;align-items:flex-start;padding:24px 26px 19px;border-bottom:1px solid #e8eef2}
.sky-p2-detail-icon {width:62px;height:62px;flex:none;border-radius:13px;background:#f3f6fa;display:grid;place-items:center;overflow:hidden;color:#2e5f97;font-weight:800;font-size:24px}
.sky-p2-detail-icon img {width:100%;height:100%;object-fit:contain}
.sky-p2-detail-ident {flex:1;min-width:0}
.sky-p2-detail-ident p {font-size:11px;letter-spacing:.11em;color:#6682a0;font-weight:760;margin:3px 0 8px}
.sky-p2-detail-ident h2 {font-size:24px;line-height:1.22;letter-spacing:-.035em;color:#1d374b;margin:0 0 9px;overflow-wrap:anywhere}
.sky-p2-detail-sub {font-size:13px;color:#738694;margin:0}
.sky-p2-detail-close {width:36px;height:36px;flex:none;display:grid;place-items:center;background:#fff;color:#4e687b;border:1px solid #d9e3ea;border-radius:9px;font-size:24px;cursor:pointer;line-height:1}
.sky-p2-detail-body {padding:23px 26px 26px}
.sky-p2-detail-body h3 {font-size:13px;text-transform:uppercase;letter-spacing:.065em;margin:0 0 13px;font-weight:770;color:#39546b}
.sky-p2-detail-description {font-size:14px;line-height:1.75;color:#506b7f;white-space:pre-line;overflow-wrap:anywhere;max-height:min(35vh,270px);overflow-y:auto}
.sky-p2-detail-meta {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 25px}
.sky-p2-detail-meta>div {padding:14px 12px;border:1px solid #e2eaf0;border-radius:10px;background:#f9fbfd;min-width:0}
.sky-p2-detail-meta span{display:block;font-size:11px;color:#718698;margin-bottom:6px}
.sky-p2-detail-meta strong{font-size:13px;color:#233f57;overflow-wrap:anywhere;line-height:1.4}
.sky-p2-detail-tip {margin:0 0 20px;color:#647a8b;font-size:12px;line-height:1.65}
.sky-p2-detail-actions{display:flex;gap:10px;border-top:1px solid #e7edf2;padding-top:20px}
.sky-p2-detail-actions button {min-height:43px;border-radius:9px;border:1px solid #cfdeeb;background:#f8fafc;color:#315678;font-weight:710;font-size:13px;padding:11px 15px;cursor:pointer}
.sky-p2-detail-actions button.sky-p2-primary {background:#2b60bb;color:white;border-color:#2b60bb;flex:1}
.sky-p2-detail-actions button.sky-p2-primary:hover:not(:disabled) {background:#214e9a}
.sky-p2-detail-actions button:disabled {cursor:not-allowed;opacity:.65}
@media(max-width:1060px){
 .site-shell .toolbar{align-items:stretch;flex-wrap:wrap}
 .site-shell .search-wrapper{max-width:100%;width:100%}
 .site-shell .filters{overflow-x:auto;scrollbar-width:thin}
 .site-shell .filters .filter {flex-shrink:0}
}
@media(max-width:850px){
 .site-shell .app-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .sky-p2-steps{grid-template-columns:1fr;gap:12px}
 .sky-p2-step {padding:19px 20px}
 .sky-p2-step-no {margin-bottom:9px}
 .sky-p2-footer{grid-template-columns:1.2fr 1fr;gap:28px}
 .sky-p2-footer-brand-block{grid-column:1 / -1}
}
@media(max-width:640px){
 html{scroll-padding-top:74px}
 .site-shell .topbar {backdrop-filter:none}
 .site-shell .nav-inner{min-height:62px}
 .site-shell .app-grid {grid-template-columns:1fr;gap:14px}
 .site-shell .app-card.card-v2 {padding:19px;min-height:0}
 .site-shell .app-card.card-v2 .card-desc{max-height:66px}
 .site-shell .section-head{align-items:flex-start}
 .site-shell .app-count {font-size:11px}
 .site-shell .toolbar{gap:12px}
 .site-shell .filters{width:100%}
 .sky-p2-how{margin-top:52px;margin-bottom:52px}
 .sky-p2-footer{grid-template-columns:1fr 1fr;gap:25px;padding-top:31px;padding-bottom:25px}
 .sky-p2-footer-brand-block{grid-column:1 / -1}
 .sky-p2-footer-bottom .container{display:block}
 .sky-p2-footer-bottom small{display:block;margin-top:6px}
 .sky-p2-detail-head {padding:19px 18px 17px;gap:11px}
 .sky-p2-detail-icon {width:49px;height:49px}
 .sky-p2-detail-ident h2{font-size:20px}
 .sky-p2-detail-body{padding:19px 18px 23px}
 .sky-p2-detail-meta {grid-template-columns:1fr 1fr}
 .sky-p2-detail-actions {flex-wrap:wrap}
 .sky-p2-detail-actions button{flex:1;min-width:130px}
}
@media(max-width:380px){
 .sky-p2-footer {grid-template-columns:1fr}
 .sky-p2-footer-brand-block{grid-column:auto}
 .sky-p2-detail-meta{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .site-shell .app-card, .site-shell .guide-dialog,#sky-p2-detail{animation:none!important}
}

