/* Content-sized detail cards shared by embedded and standalone software pages. */
.embedded-detail-body { gap:12px; padding:14px; }
.embedded-detail-body > .embedded-facts {
  display:flex; flex-wrap:wrap; gap:8px 24px;
  margin:0; padding:2px 0 10px; border-bottom:1px solid var(--rule);
}
.embedded-fact { display:flex; align-items:baseline; gap:8px; max-width:100%; padding:0; border:0; border-radius:0; background:none; }
.embedded-fact span { flex:none; margin:0; font-size:12px; }
.embedded-fact b { font-size:13px; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
.embedded-section { padding:12px; }
.embedded-section h3 { margin:0 0 8px; font-size:16px; line-height:1.4; }
.embedded-section p { font-size:13px; line-height:1.65; }
.embedded-section p + p { margin-top:6px; }
.embedded-feature-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:8px; margin-top:8px; align-items:stretch; }
.embedded-feature { min-width:0; min-height:0; padding:10px 12px; border-radius:6px; }
.embedded-feature strong { margin:0 0 4px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.embedded-feature span { display:block; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.embedded-feature:only-child { display:grid; grid-template-columns:minmax(110px,150px) minmax(0,1fr); gap:12px; padding:0; border:0; border-radius:0; background:none; }
.embedded-feature:only-child strong { margin:0; }
.embedded-source-guide .embedded-feature-grid { display:flex; flex-wrap:wrap; gap:6px 24px; }
.embedded-source-guide .embedded-feature { display:flex; align-items:baseline; gap:8px; padding:0; border:0; background:none; }
.embedded-source-guide .embedded-feature strong { flex:none; margin:0; color:var(--muted); font-size:12px; font-weight:400; }
.embedded-source-guide .embedded-feature span { font-size:12px; }

/* Remove the second padding layer around the download header, tabs and options. */
.embedded-detail-body .embedded-download-panel { padding:0; }
.embedded-download-head { gap:10px; padding:10px 12px; }
.embedded-download-head h3 { font-size:16px; line-height:1.4; }
.embedded-download-head p { margin-top:3px; font-size:12px; line-height:1.6; }
.embedded-download-head > .badge { flex:none; font-size:11px; font-weight:500; }
.embedded-download-tabs { gap:6px; padding:8px 12px 0; }
.embedded-download-tab { min-width:100px; min-height:36px; padding:6px 12px; font-size:13px; border-radius:6px 6px 0 0; }
.embedded-download-group { padding:10px 12px 12px; }
.embedded-download-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:8px; }
.embedded-download-card { grid-template-columns:minmax(0,1fr) auto; gap:10px; min-height:0; padding:10px 12px; border-radius:6px; }
.embedded-download-card > div { min-width:0; }
.embedded-download-card strong { display:inline; font-size:14px; line-height:1.5; }
.embedded-download-card em { display:inline; margin:0 0 0 6px; font-size:12px; }
.embedded-download-tags { gap:4px; margin-top:5px; }
.embedded-download-badge { margin:0; padding:3px 6px; font-size:11px; }
.embedded-source-domain { max-width:min(100%,240px); padding:3px 6px; }
.embedded-download-card p { margin:4px 0 0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.embedded-download-card a { display:inline-flex; justify-content:center; align-items:center; min-height:36px; min-width:78px; width:auto; padding:6px 10px; border-radius:6px; font-size:12px; }

/* Standalone detail uses the same density without changing its content hierarchy. */
.hero-detail .download-head { padding:10px 12px; }
.hero-detail .download-head h2 { margin:0 0 3px; font-size:16px; line-height:1.4; }
.hero-detail .download-head p { font-size:12px; line-height:1.6; }
.hero-detail .download-tabs { gap:6px; padding:8px 12px 0; }
.hero-detail .download-tab { min-height:36px; padding:6px 10px; flex-direction:row; gap:6px; border-radius:6px 6px 0 0; font-size:13px; }
.hero-detail .download-groups { padding:0 12px 12px; }
.hero-detail .download-list { gap:8px; padding-top:10px; }
.hero-detail .download-card { min-height:0; padding:10px 12px; gap:10px; border-radius:6px; box-shadow:none; }
.download-card-main { gap:5px; }
.download-card-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; }
.download-card strong { font-size:14px; }
.download-card em { margin:0; font-size:12px; }
.download-card-tags { gap:4px; }
.download-card-badge { padding:3px 6px; font-size:11px; }
.download-source-domain { max-width:100%; padding:3px 6px; }
.download-card p { font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.hero-detail .download-card a { display:inline-flex; justify-content:center; align-items:center; min-height:36px; min-width:82px; padding:6px 10px; border-radius:6px; font-size:12px; }
.version-choice-help { padding:0 12px 8px; font-size:12px; }
.download-footnote { padding:10px 12px; }
.feature-section { margin-top:14px; }
.section-title { margin:18px 0 8px; }
.section-title h2 { font-size:18px; }
.intro-layout { gap:10px; }
.intro-copy-card, .feature-aside-card { padding:14px; }
.intro-copy-card h3, .feature-aside-card h3 { font-size:16px; }
.intro-copy-card p { font-size:14px; line-height:1.65; }
.intro-copy-card p:last-child { margin-bottom:0; }
.feature-aside-list { gap:8px; }
.feature-aside-item { padding:0 0 8px; border:0; border-bottom:1px solid var(--rule); border-radius:0; background:none; }
.feature-aside-item:last-child { padding-bottom:0; border-bottom:0; }
.feature-aside-item strong { font-size:13px; margin-bottom:3px; }
.feature-aside-item p { line-height:1.6; }
.decision-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:8px; align-items:stretch; }
.decision-card { min-width:0; min-height:0; padding:12px; box-shadow:none; }
.decision-card strong { margin-bottom:4px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.decision-card p { font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.decision-card:only-child { display:grid; grid-template-columns:minmax(110px,160px) minmax(0,1fr); gap:12px; }
.decision-card:only-child strong { margin:0; }

@media(max-width:820px), (pointer:coarse) {
  .embedded-download-tab, .hero-detail .download-tab,
  .embedded-download-card a, .hero-detail .download-card a { min-height:44px; }
}
@media(max-width:600px) {
  .embedded-detail-body { padding:10px; gap:10px; }
  .embedded-detail-body > .embedded-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 14px; }
  .embedded-fact { gap:6px; align-items:start; }
  .embedded-section { padding:10px; }
  .embedded-feature-grid, .decision-grid { grid-template-columns:minmax(0,1fr); }
  .embedded-feature:only-child, .decision-card:only-child { grid-template-columns:minmax(0,1fr); gap:3px; }
  .embedded-feature { padding:9px 10px; }
  .embedded-feature:only-child { padding:0; }
  .embedded-download-head { display:flex; align-items:start; flex-wrap:wrap; gap:5px; }
  .embedded-download-tabs { display:flex; flex-wrap:wrap; }
  .embedded-download-tab { flex:1; min-width:0; min-height:44px; }
  .embedded-download-card { grid-template-columns:minmax(0,1fr); gap:8px; }
  .embedded-download-card a, .hero-detail .download-card a { width:100%; min-height:44px; font-size:13px; }
  .hero-detail .download-tab { min-height:44px; }
  .hero-detail .download-card { grid-template-columns:minmax(0,1fr); gap:8px; }
  .version-choice-help summary { min-height:44px; }
}
