/* ------------------------------------------------------------------
   SISYPHUS // 15 — custom map for White Knuckle
   Plain light layout in the spirit of archlinux.org: white background,
   blue links, system sans-serif, no decoration.
   ------------------------------------------------------------------ */

html { background: #fff; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: "DejaVu Sans", Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- 2-column layout + CLI sidebar ---------------- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

#cli-sidebar {
  position: sticky;
  top: 20px;
  background: #f8f9fa;
  border: 1px solid #d8dce0;
  border-top: 3px solid #1793d1;
  padding: 14px 16px 16px;
}

.cli-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.cli-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  color: #222;
}

.cli-note {
  font-size: 12px;
  color: #666;
  margin: 0 0 12px;
  line-height: 1.45;
}

.cli-step {
  margin-bottom: 12px;
}

.cli-step:last-of-type {
  margin-bottom: 10px;
}

.cli-step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.cli-step-sub {
  font-size: 11px;
  font-weight: normal;
  color: #666;
  margin: 0 0 4px;
}

#cli-sidebar pre {
  margin: 0;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid #d5d5d5;
  font-size: 11.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.cli-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e2e2e2;
  font-size: 12px;
}

a { color: #07b; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #07b; }

img { max-width: 100%; }

/* ---------------- top bar ---------------- */

#archnavbar {
  background: #333;
  border-bottom: 3px solid #1793d1;
}
#archnavbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  min-height: 46px;
}
#logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}
#archnavbarlist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
#archnavbarlist a { color: #bbb; font-size: 13px; }
#archnavbarlist a:hover { color: #fff; text-decoration: none; }

/* ---------------- content ---------------- */

#content { padding-top: 24px; padding-bottom: 40px; }

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: bold;
  color: #222;
}

h2 {
  margin: 34px 0 12px;
  padding-bottom: 4px;
  font-size: 19px;
  font-weight: bold;
  color: #07b;
  border-bottom: 1px solid #ddd;
}

h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: bold;
}

p { margin: 0 0 12px; }

.intro { max-width: 70ch; color: #333; }

ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 5px; }

code {
  font-family: "DejaVu Sans Mono", Consolas, monospace;
  font-size: 13px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  padding: 0 4px;
}
pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  font-family: "DejaVu Sans Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-x: auto;
}

/* ---------------- download ---------------- */

.dl { margin: 12px 0 16px; }
.dl-link { font-size: 17px; font-weight: bold; }
.dl-meta { color: #666; font-size: 13px; }

table.release {
  border-collapse: collapse;
  margin: 0 0 14px;
  width: 100%;
  max-width: 780px;
}
table.release th,
table.release td {
  text-align: left;
  vertical-align: top;
  padding: 5px 10px 5px 0;
  border-bottom: 1px solid #eee;
}
table.release th {
  width: 150px;
  font-weight: normal;
  color: #666;
  white-space: nowrap;
}
table.release code { word-break: break-all; }

a.copy { font-size: 12px; color: #07b; margin-left: 6px; white-space: nowrap; }

/* ---------------- screenshots ---------------- */

ul.shots {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
ul.shots li { margin: 0; }
ul.shots a { display: block; color: #666; font-size: 12px; }
ul.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #f6f6f6;
}
ul.shots span { display: block; padding-top: 4px; }

/* slot with no screenshot file yet */
ul.shots li.missing a { pointer-events: none; color: #999; }
ul.shots li.missing img { display: none; }
ul.shots li.missing a::before {
  content: "no screenshot yet";
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed #ccc;
  background: #fafafa;
  color: #999;
}

/* ---------------- install steps ---------------- */

ol.steps li { margin-bottom: 14px; }
code.path { font-size: 13px; }
.install-video {
  display: block;
  width: 100%;
  max-width: 780px;
  margin: 12px 0 14px;
  border: 1px solid #ccc;
  background: #111;
}

/* ---------------- footer ---------------- */

#footer {
  padding: 14px 20px 30px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 12px;
}
#footer p { margin: 0; }

/* ---------------- small screens ---------------- */

@media (max-width: 960px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #cli-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  ul.shots { grid-template-columns: repeat(2, 1fr); }
  #archnavbarlist { gap: 12px; }
  h1 { font-size: 25px; }
}

@media (max-width: 440px) {
  ul.shots { grid-template-columns: 1fr; }
  table.release th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  table.release td { display: block; padding-left: 0; }
}

/* rows / sections the author has not filled in yet */
.unset { display: none; }

/* ---------------- optional block (collapsed) ---------------- */

details#optional {
  margin: 34px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ddd;
}
details#optional summary {
  color: #666;
  font-size: 13px;
  cursor: pointer;
}
details#optional summary:hover { color: #07b; }
details#optional table.release { margin: 12px 0 2px; }
