/* downloads.css — page specific styles for /downloads */

/* Header text width + spacing */
.page-hero{
  padding: 0 0 14px;
}
.page-hero h1{
  margin: 14px 0 8px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: none; /* volle Breite wie Module */
}
@media (max-width: 980px){
  .page-hero{ padding: 0 0 10px; }
  .page-hero h1{ font-size: 34px; }
}

/* macOS Arch hint should stay in one line if possible */
.mac-arch-hint{
  margin-top: 4px;
  white-space: nowrap;
}
@media (max-width: 520px){
  .mac-arch-hint{ white-space: normal; }
}

/* Small button (used in file rows) */
.btn-sm{
  padding: 8px 12px;
  font-size: 13px;
}

/* Downloads grid */
.downloads-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items:start;
}

@media (max-width: 980px){
  .downloads-grid{ grid-template-columns: 1fr; }
}

/* Card header */
.download-top{
  display:grid;
  gap: 6px;
  margin-bottom: 10px;
}
.download-top h3{
  margin:0;
  font-size: 18px;
}

/* Status box */
.muted{ color: var(--muted); }

.status{
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(241,244,251,0.70);
  color: var(--muted);
  font-weight: 750;
  margin-top: 10px;
}
.status.error{
  border-color: rgba(176, 0, 32, 0.22);
  background: rgba(176, 0, 32, 0.06);
  color: #b00020;
}

/* File list */
.file-list{
  margin-top: 10px;
  display:grid;
  gap: 10px;
}

.file-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}

.file-left{ min-width: 0; }
.file-right{ display:flex; align-items:flex-start; }

.file-name{
  display:inline-block;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 4px;
  word-break: break-word;
}

.file-meta,
.file-hash{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.95);
  opacity: 0.9;
}
.file-hash{
  margin-top: 6px;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

/* Inline code helper (for SHA commands) */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.70);
}

@media (max-width: 520px){
  .file-row{ flex-direction: column; align-items:flex-start; }
  .file-right{ width: 100%; }
  .file-right .btn{ width: 100%; }
}


/* Download explanation + sub sections */
.download-explain{
  display:grid;
  gap:16px;
  margin-bottom:20px;
}
.download-explain-head h2{
  margin:0;
  font-size:24px;
  letter-spacing:-0.02em;
}
.download-explain-head p{
  margin:8px 0 0;
}
.download-explain-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.download-explain-grid > div{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,0.08);
  background:rgba(255,255,255,0.72);
}
.download-explain-grid h3{
  margin:0 0 6px;
  font-size:16px;
}
.download-explain-grid p{
  margin:0;
}
.download-subsection{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(15,23,42,0.08);
}
.download-subsection:first-of-type{
  margin-top:4px;
  padding-top:0;
  border-top:0;
}
.download-subhead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.download-subhead h4{
  margin:0;
  font-size:15px;
}
.download-subhead p{
  margin:0;
  font-size:13px;
}
@media (max-width: 700px){
  .download-explain-grid{ grid-template-columns:1fr; }
  .download-subhead{ flex-direction:column; align-items:flex-start; }
}


/* Apple-leaning hierarchy update (2026-03-12) */
.downloads-grid{
  gap: 24px;
}
.download-top{
  gap: 8px;
  margin-bottom: 14px;
}
.download-top h3{
  font-size: 26px;
  letter-spacing: -0.03em;
}
.download-top p{
  font-size: 14px;
  color: var(--muted);
}

.download-subsection{
  margin-top: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,248,252,0.86));
}
.download-subsection:first-of-type{
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.download-subhead{
  align-items: center;
  margin-bottom: 10px;
}
.download-subhead h4{
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.download-subhead p{
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,0.72);
  background: rgba(241,244,251,0.92);
  border: 1px solid rgba(15,23,42,0.08);
}
.status{
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 12px;
}
.file-list{
  margin-top: 0;
}
.file-row{
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 22px rgba(2,6,23,0.05);
}
.file-name{
  margin-bottom: 3px;
}
.file-meta{
  font-size: 11px;
}
.file-hash{
  font-size: 11px;
}
@media (max-width: 520px){
  .download-top h3{ font-size: 23px; }
  .download-subsection{ padding: 12px 12px 10px; }
}
