/* marleykrief.fr — index, listings, glossary, player, about, 404.
   Extends site.css; same paper/ink/Debian-red palette and Unix-native devices. */
.site a { text-decoration: none; color: inherit; }
.site a:hover { color: var(--ink); }
.site a[aria-current="page"] { color: var(--ink); }
.site a[aria-current="page"]::before { content: "> "; color: var(--red); }
.site .brand { margin-right: auto; }

.page { max-width: 1120px; margin: 0 auto; padding: 34px 56px 70px; }
.page.narrow { max-width: 860px; }
.page > .manline { margin-bottom: 8px; }
.page h1 { margin-top: 18px; }
.page .dek { max-width: 760px; margin-bottom: 8px; }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; font: 500 13px/1 var(--f-mono); }
.chips button { font: inherit; color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chips button i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.25); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips button:focus-visible, .pkg a:focus-visible, .menu button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- stats line ---------- */
.stats { font: 500 13px/1.5 var(--f-mono); color: var(--ink-3); margin-top: 10px; }
.stats b { color: var(--red); font-weight: 600; }

/* ---------- dpkg -l listing ---------- */
.dpkg { font: 400 13.6px/1.55 "JetBrains Mono", var(--f-mono); font-variant-ligatures: none; margin-top: 18px; }
.dpkg .legend { white-space: pre; color: var(--ink-3); }
.dpkg .head, .pkg { display: grid; grid-template-columns: 3.2ch 26ch 5ch 6ch minmax(0, 1fr) 19ch; gap: 0 1.4ch; align-items: baseline; }
.dpkg .head { color: var(--ink-3); border-bottom: 1px solid var(--rule); padding: 2px 0 4px; }
.dpkg .sect { font: 600 12.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin: 26px 0 6px; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.dpkg .sect i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.dpkg .sect span { color: var(--ink-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.pkg { padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.pkg .st { font-weight: 700; }
.pkg .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg .tt { font-family: var(--f-body); font-size: 16.5px; line-height: 1.35; }
.pkg .tt small { display: block; font-size: 14.5px; color: var(--ink-2); font-style: italic; }
.pkg .act { text-align: right; font-size: 12.5px; white-space: nowrap; }
.pkg.ii .st { color: var(--c-eth); }
.pkg.ii .name a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--red-soft); }
.pkg.iU .st { color: var(--c-ip); }
.pkg.un { color: var(--ink-3); }
.pkg.un .tt { color: var(--ink-3); }
.pkg.un .tt small { color: var(--ink-3); }
.pkg .act a { color: var(--ink-2); }
.pkg.ii .act a { color: var(--red); font-weight: 600; text-decoration: none; }
.lvl { letter-spacing: .1em; color: var(--red); } .lvl s { text-decoration: none; color: var(--rule); }

/* ---------- debconf menu (labs) ---------- */
.dc { background: #0000aa; padding: 38px 34px 40px; border-radius: 10px; font: 400 14.5px/1.45 "JetBrains Mono", var(--f-mono); font-variant-ligatures: none; margin: 24px 0 10px; position: relative; }
.dc::before { content: "Configuration de labos-du-veilleur"; position: absolute; top: 11px; left: 16px; color: #fff; font-size: 13px; }
.dc .box { background: #c0c0c0; color: #000; box-shadow: 10px 10px 0 #000; padding: 0 0 18px; margin: 0 auto; border: 2px solid #fff; border-right-color: #555; border-bottom-color: #555; }
.dc .ttl { text-align: center; margin-top: -11px; } .dc .ttl span { background: #c0c0c0; color: #aa0000; padding: 0 8px; }
.dc .q { padding: 12px 26px 10px; }
.menu { margin: 0 26px; border: 1px solid #555; border-right-color: #fff; border-bottom-color: #fff; max-height: 420px; overflow: auto; }
.menu button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 2ch 26ch 4ch 9ch minmax(0, 1fr); gap: 0 1.3ch; width: 100%; padding: 1px 12px; cursor: pointer; white-space: nowrap; }
.menu button span:last-child, .menu button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.menu button.un { color: #555; }
.menu button.sel { background: #0000aa; color: #fff; }
.menu .g { padding: 6px 12px 1px; color: #aa0000; }
.dc .detail { margin: 14px 26px 0; padding: 10px 14px; background: #d6d6d6; border: 1px solid #555; border-right-color: #fff; border-bottom-color: #fff; min-height: 118px; white-space: pre-wrap; }
.dc .detail b { color: #aa0000; font-weight: 400; }
.dc .btns { display: flex; justify-content: center; gap: 60px; margin-top: 16px; }
.dc .btns a, .dc .btns span { color: #000; text-decoration: none; padding: 0 2px; }
.dc .btns .sel { background: #aa0000; color: #fff; }
.dc .btns .off { color: #777; }
.keys { font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); }

/* ---------- tree (parcours) ---------- */
.trees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 34px; }
.trees figure { margin: 18px 0 8px; }
.trees figure pre { font-size: 13px; padding: 16px 18px; }
.trees a { color: var(--red); text-decoration: none; font-weight: 700; }
.tree-ok { color: var(--c-eth); } .tree-wip { color: var(--c-ip); }

/* ---------- index ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.hero h1 { font-size: 52px; }
.motd { font: 400 13px/1.5 "JetBrains Mono", var(--f-mono); font-variant-ligatures: none; white-space: pre; background: var(--term); color: var(--term-fg); border-radius: 10px; padding: 16px 18px; overflow: hidden; }
.motd .p { color: var(--phos); font-weight: 700; } .motd .d { color: #8b8a88; } .motd .r { color: #ff6b8b; } .motd .y { color: #f6d32d; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.card { border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; background: #fbf9f4; display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--red); }
.card .meta { font: 500 12px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.card .meta i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.card .ct { font: 600 19px/1.2 var(--f-mono); letter-spacing: -.02em; }
.card p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.card .go { font: 500 13px/1 var(--f-mono); color: var(--red); }
.card.wip { background: transparent; border-style: dashed; }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.paths a { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; text-decoration: none; display: grid; gap: 6px; font: 400 13px/1.35 var(--f-mono); color: var(--ink-2); }
.paths a:hover { border-color: var(--red); }
.paths b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.bar { font: 400 12.5px/1 "JetBrains Mono", var(--f-mono); color: var(--ink-3); white-space: pre; }
.bar b { color: var(--red); font-weight: 400; }

/* ---------- glossary ---------- */
.whatis-q { display: flex; align-items: center; gap: 10px; font: 500 15px/1 var(--f-mono); background: var(--term); color: var(--term-fg); padding: 12px 16px; border-radius: 10px; margin: 22px 0 12px; }
.whatis-q span { color: var(--phos); white-space: pre; }
.whatis-q input { flex: 1; font: inherit; background: transparent; border: 0; color: #fff; outline: none; caret-color: var(--phos); }
.az { display: flex; flex-wrap: wrap; gap: 4px; font: 500 13px/1 var(--f-mono); margin-bottom: 18px; }
.az a { padding: 6px 7px; border-radius: 5px; text-decoration: none; color: var(--ink); }
.az a:hover { background: var(--paper-2); }
.az span { padding: 6px 7px; color: var(--rule); }
.letter { font: 600 28px/1 var(--f-mono); color: var(--red); margin: 30px 0 4px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.term { padding: 16px 0 14px; border-bottom: 1px dashed var(--rule); scroll-margin-top: 20px; }
.term .mh { display: flex; justify-content: space-between; font: 500 12.5px/1 var(--f-mono); color: var(--ink-3); margin-bottom: 8px; }
.term dt { font: 600 17px/1.3 var(--f-mono); }
.term dt i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.term dd { margin: 6px 0 0; }
.term dd p { margin: 0 0 6px; font-size: 17px; }
.term .see { font: 400 13px/1.5 var(--f-mono); color: var(--ink-2); }
.term .see a { color: var(--red); text-decoration: none; }
.term .dom { display: inline-flex; gap: 6px; align-items: center; }
.term .dom i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.nores { font: 400 14px/1.5 var(--f-mono); color: var(--ink-3); padding: 20px 0; }

/* ---------- player ---------- */
.deck { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 26px; }
.plat { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.08); padding: 18px 20px 20px; font: 400 14px/1.4 var(--f-ui); color: #2e2e2e; }
.plat .hb { display: flex; justify-content: center; font-weight: 600; font-size: 14px; color: #555; margin-bottom: 12px; }
.disc { width: 240px; height: 240px; margin: 4px auto 16px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, #c8003c 0 18%, #111 18.5% 19%, transparent 19.5%), repeating-radial-gradient(circle, #151515 0 2px, #1d1d1d 2px 3px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.08) 25%, transparent 30% 70%, rgba(255,255,255,.06) 75%, transparent 80%); }
.disc .hole { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #f6f3ec; }
.plat .now { text-align: center; } .plat .now b { display: block; font-size: 17px; }
.plat .now span { color: #777; font-size: 13px; }
.plat .scrub { height: 4px; border-radius: 2px; background: #ddd; margin: 16px 0 6px; }
.plat .times { display: flex; justify-content: space-between; font: 400 12px/1 var(--f-ui); color: #888; font-variant-numeric: tabular-nums; }
.plat .ctl { display: flex; justify-content: center; gap: 28px; align-items: center; margin-top: 14px; }
.plat .ctl button { border: 0; background: transparent; color: #444; font-size: 15px; cursor: not-allowed; width: 34px; height: 34px; }
.plat .ctl .pp { width: 46px; height: 46px; border-radius: 50%; background: #e66100; color: #fff; opacity: .45; }
.plat .miss { margin-top: 14px; font: 500 12.5px/1.45 var(--f-mono); color: var(--red); text-align: center; }
.ls { white-space: pre; overflow-x: auto; font: 400 12.8px/1.6 "JetBrains Mono", var(--f-mono); font-variant-ligatures: none; background: var(--term); color: var(--term-fg); border-radius: 10px; padding: 16px 18px; }
.ls .l { white-space: pre; cursor: pointer; border-radius: 3px; display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; padding: 0 4px; }
.ls .l:hover, .ls .l.sel { background: rgba(255,255,255,.08); }
.ls .l.sel .n { color: #f6d32d; }
.ls .p { color: var(--phos); font-weight: 700; } .ls .d { color: #8b8a88; } .ls .n { color: #62a0ea; } .ls .z { color: #ff6b8b; }

/* ---------- about / 404 ---------- */
.princ { display: grid; gap: 14px; margin: 10px 0 0; }
.princ div { display: grid; grid-template-columns: 4ch minmax(0, 1fr); gap: 14px; }
.princ b { font: 600 15px/1.6 var(--f-mono); color: var(--red); }
.princ p { margin: 0; }
.term404 { font: 400 15px/1.6 "JetBrains Mono", var(--f-mono); font-variant-ligatures: none; white-space: pre-wrap; background: var(--term); color: var(--term-fg); border-radius: 12px; padding: 22px 24px; margin-top: 24px; }
.term404 .p { color: var(--phos); font-weight: 700; } .term404 .e { color: #ff6b8b; font-weight: 700; } .term404 .d { color: #8b8a88; }
.term404 a { color: #62a0ea; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 18px 56px 30px; font: 400 12.5px/1.7 var(--f-mono); color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--ink-2); }
.rssnote { font: 400 12.5px/1.5 var(--f-mono); color: var(--ink-3); border-left: 2px solid var(--rule); padding-left: 10px; margin-top: 14px; }

@media (max-width: 900px) {
  .site { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .page { padding: 24px 16px 60px; }
  .hero, .deck, .trees { grid-template-columns: 1fr; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpkg .head { display: none; }
  .pkg { grid-template-columns: 3.2ch minmax(0, 1fr); }
  .pkg .name, .pkg .v, .pkg .lv, .pkg .act { grid-column: 2; text-align: left; }
  .foot { padding: 16px; }
}
.motd .b { color: #62a0ea; }

/* ---------- small screens: grids must be allowed to shrink below their content width ---------- */
@media (max-width: 900px) {
  .hero, .deck, .trees { grid-template-columns: minmax(0, 1fr); }
  .deck pre, .trees pre, .hero pre { overflow-x: auto; }
}
@media (max-width: 700px) {
  .dpkg .head { display: none; }
  .pkg { grid-template-columns: 3.2ch minmax(0, 1fr) auto; row-gap: 4px; }
  .pkg > :nth-child(3) { display: none; }
  .pkg .tt, .pkg .act { grid-column: 2 / -1; }
  .pkg .act { text-align: left; }
  .menu { overflow-x: auto; }
  .paths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) { .dpkg .legend { white-space: pre-wrap; } }

/* ---------- touch pass: tap targets of 40px+, no iOS input zoom, compact debconf menu ---------- */
@media (max-width: 700px) {
  .site { row-gap: 0; }
  .site a:not(.brand) { padding: 12px 0; }
  .crumbs a { display: inline-block; padding: 8px 0; }
  .site-foot { line-height: 2.4; }
  .manline { font-size: 12px; }
  input, select, textarea, .whatis-q input { font-size: 16px; }
  .chips button { padding: 10px 14px; }
  .dc .q { padding: 12px 14px 10px; }
  .menu { margin: 0 12px; max-height: 60vh; }
  .menu button { grid-template-columns: 2ch minmax(0, 1fr) auto; padding: 9px 10px; white-space: normal; }
  .menu button > :nth-child(2), .menu button > :nth-child(3) { display: none; }
  .menu button > :nth-child(4) { order: 3; font-size: 12px; opacity: .8; }
  .ls .l { padding: 7px 4px; }
  .pkg .name a, .pkg .act a { display: inline-block; padding: 6px 0; }
  .btns a, .btn, .cta a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 700px) {
  /* one-line navigation that scrolls sideways instead of wrapping over three lines */
  .site .links { display: flex; gap: 18px; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .site .links::-webkit-scrollbar { display: none; }
  .site .links a { flex: none; }
  .crumbs ol { align-items: center; }
  .crumbs li { padding: 8px 0; } .crumbs a { padding: 0; }
}

.site .links { display: contents; }
@media (max-width: 700px) { .site .links { display: flex; } }
