/* 404: a terminal window with a boot log, the facts about the visit, a menu and a prompt. Theme colours only, round, no gradients. */
.nf { display: grid; justify-items: center; padding-top: var(--s-4); }
.nf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--s-4); align-items: start; width: min(100%, 72rem); }
.nf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nf-term { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-1); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875rem; box-shadow: var(--shadow-float); }
.nf-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.nf-dots { display: flex; gap: 6px; }
.nf-dots i { width: 0.7rem; height: 0.7rem; border: 1px solid var(--line-strong); border-radius: 50%; }
.nf-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-skip { padding: 0.1rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.75rem; cursor: pointer; }
.nf-skip:hover { color: var(--white); border-color: var(--white); }
.nf-skip[hidden] { display: none; }
.nf-body { height: clamp(14rem, calc(100svh - 18rem), 38rem); padding: var(--s-4); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; line-height: 1.55; }
.nf-body::-webkit-scrollbar { display: none; }

.nf-line { margin: 0 0 2px; color: var(--white-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.nf-line.is-dim { color: var(--muted); }
.nf-line.is-art { margin: var(--s-3) 0; color: var(--white); font-family: inherit; font-size: clamp(0.5rem, 2.2vw, 1rem); line-height: 1.15; overflow-x: auto; white-space: pre; }
.nf-line.is-err { color: var(--white); font-weight: 700; }
.nf-ps { color: var(--white); font-weight: 700; }
.nf-tag { display: inline-block; padding: 0 0.15rem; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 0.8125rem; }
.is-warn .nf-tag { border-color: var(--white-2); color: var(--white-2); }
.is-fail .nf-tag { border-color: var(--white); background: var(--white); color: var(--black); font-weight: 700; }

.nf-after { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.nf-after[hidden] { display: none; }
.nf-facts { width: 100%; border-collapse: collapse; }
.nf-facts th, .nf-facts td { padding: 2px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.nf-facts th { width: 9rem; padding-right: var(--s-3); color: var(--muted); font-weight: 400; }
.nf-facts td { color: var(--white-2); }
.nf-prompt { display: flex; align-items: center; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px dashed var(--line-strong); }
.nf-prompt label { flex: none; color: var(--white); font-weight: 700; }
.nf-prompt input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--white); font: inherit; caret-color: var(--white); }
.nf-prompt input:focus { outline: none; }

@media (max-width: 40rem) {
  .nf-facts th { width: 6.5rem; }
}

/* Options: their own panel beside the terminal */
.nf-options { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-1); }
.nf-options h2 { margin: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.nf-menu { display: grid; gap: var(--s-1); }
.nf-item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--white-2); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nf-item:hover, .nf-item:focus-visible { background: var(--white); color: var(--black); outline: none; }
.nf-key { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.8125rem; font-weight: 700; }
.nf-item:hover .nf-key, .nf-item:focus-visible .nf-key { border-color: currentColor; }
.nf-text { display: grid; min-width: 0; line-height: 1.3; }
.nf-label { font-weight: 600; }
.nf-note { overflow: hidden; color: var(--muted); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.nf-item:hover .nf-note, .nf-item:focus-visible .nf-note { color: inherit; opacity: 0.7; }
.nf-hint { margin: 0; color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 56rem) {
  .nf-layout { grid-template-columns: minmax(0, 1fr); }
  .nf-body { height: clamp(14rem, calc(100svh - 24rem), 26rem); }
}
