/* Name finished work so anyone finds it. Loaded after articles.css, for this article only.

   The colour rule does the arguing. Orange is a file opened to check and found wrong, and the words in a name that
   cause it: a leak, because each one costs a search. Indigo is what nobody has to open or ask any more. The approved
   file is outlined in ink: the thing being looked for, not a gain in itself. Everything else is grey. File and folder
   icons are drawn here in the page's neutrals, so they never carry either colour. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li, .a-body td { text-wrap: pretty; }
.nf-nw { white-space: nowrap; }
.a-facts dd { text-wrap: balance; }
.a-rail li a > span:nth-child(2) { text-wrap: pretty; }

/* ---------- Drawn icons ---------- */
.nf-ic { flex: none; position: relative; display: inline-block; }
.nf-ic.is-dir { width: 16px; height: 12px; margin-top: 3px; border-radius: 2px 3px 3px 3px; background: #B9BFDB; }
.nf-ic.is-dir::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #B9BFDB; }
.nf-ic.is-vid, .nf-ic.is-doc { width: 12px; height: 15px; margin-top: 1px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px #9AA1C4; background: var(--surface); }
.nf-ic.is-vid::after { content: ""; position: absolute; left: 4px; top: 4px; border-left: 5px solid #9AA1C4; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.nf-ic.is-doc::after { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 6px; background: linear-gradient(#9AA1C4, #9AA1C4) 0 0 / 100% 1.5px no-repeat, linear-gradient(#9AA1C4, #9AA1C4) 0 4px / 70% 1.5px no-repeat; }
.nf-glass { flex: none; position: relative; width: 11px; height: 11px; margin-right: 3px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-hint); }
.nf-glass::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 6px; height: 2px; border-radius: 1px; background: var(--ink-hint); transform: rotate(45deg); }

/* ---------- The set piece: one film, kept two ways ----------
   Two windows side by side. Before: a search that finds four wrong files, in orange, numbered in the order they get
   opened, then the question in chat, then the approved file under its code. After: a search that finds one dated
   folder and the right file. Armed by articles.js: the armed state is a complete picture on purpose, with only the
   indigo line of what came back not drawn yet. On arrival it draws in. Without JS, or with reduced motion, it is
   simply on. */
.nf-fig { margin: 36px 0 0; padding: clamp(14px, 2.2vw, 22px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 14px; min-width: 0; }
.nf-top { display: grid; gap: 3px; padding: 0 2px; }
.a-hero .nf-head { color: var(--ink-hint); }
.nf-need { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: pretty; }

.nf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.nf-win { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 14px; background: var(--paper); min-width: 0; }
.nf-wt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.nf-wt b { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.nf-search { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.nf-search .nf-q { min-width: 0; font: 500 0.875rem/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.nf-hits { margin-left: auto; padding-left: 6px; font-size: 0.75rem; font-weight: 700; line-height: 1.3; color: var(--ink-hint); white-space: nowrap; }

.nf-n { flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font: 600 0.6875rem/1 var(--mono); font-style: normal; }
.nf-fn { min-width: 0; font: 500 0.8125rem/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; }

.nf-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nf-files li, .nf-right { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.nf-files li { background: var(--lift-tint); }
.nf-files em, .nf-right em { grid-column: 2; font-size: 0.75rem; font-style: normal; font-weight: 700; line-height: 1.3; }
.nf-files em { color: var(--lift-ink); }
.nf-files .nf-n, .nf-chat .nf-n { background: var(--surface); color: var(--lift-ink); box-shadow: inset 0 0 0 1px var(--lift-ring); }

.nf-chat { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 9px 10px; border-radius: 12px 12px 12px 4px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--lift-ring); }
.nf-chat .nf-n { margin-top: 1px; }
.nf-ask { font-size: 0.875rem; font-weight: 700; line-height: 1.35; color: var(--lift-ink); }
.nf-reply { grid-column: 2; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }

.nf-right { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.nf-right em { color: var(--ink-2); }
.nf-right .nf-n, .nf-f.is-hit .nf-n { background: var(--ink); color: #fff; }

.nf-tally { margin-top: 4px; padding: 0 2px; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.nf-tally b { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.nf-tally.is-leak, .nf-tally.is-leak b { color: var(--lift-ink); }

.nf-tree { display: grid; gap: 7px; padding: 4px 2px 0; min-width: 0; }
.nf-crumb { font: 500 0.75rem/1.3 var(--mono); color: var(--ink-hint); }
.nf-dir { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.nf-dir span { min-width: 0; overflow-wrap: anywhere; }
.nf-dir.is-quiet { font-weight: 600; color: var(--ink-hint); }
.nf-f { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: 2px 8px; align-items: center; margin-left: 18px; padding: 7px 10px; border-radius: 10px; min-width: 0; }
.nf-f em { grid-column: 2; font-size: 0.75rem; font-style: normal; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.nf-f.is-hit { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.nf-f.is-note { padding-block: 2px; }
.nf-f.is-note .nf-ic { justify-self: center; }
.nf-f.is-note .nf-fn { color: var(--ink-2); }
.nf-f.is-note em { font-weight: 600; color: var(--ink-hint); }

.nf-back { margin-top: 2px; display: grid; place-items: center; padding: 10px 12px; border-radius: 10px; background: var(--primary-deep); clip-path: inset(0 0 0 0 round 10px); transition: clip-path 0.9s var(--ease) 0.25s; }
.nf-back span { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; text-align: center; color: #fff; transition: opacity 0.4s 0.9s; }
.is-armed:not(.is-cut) .nf-back { clip-path: inset(0 100% 0 0 round 10px); transition: none; }
.is-armed:not(.is-cut) .nf-back span { opacity: 0; transition: none; }

.a-hero .nf-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.nf-key li { display: flex; align-items: center; gap: 7px; }
.nf-key i { display: block; width: 14px; height: 10px; border-radius: 3px; }
.k-leak { background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift); }
.k-ok { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.k-back { background: var(--primary-deep); }

.nf-cap { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- The shape every finished piece gets ----------
   The fixed shape as a tree: each level steps in, its name in mono on the left, what it is for on the right. On
   phones the note goes under its name. The file the colleague was looking for is outlined in ink, as in the first
   picture. */
.a-sec .nf-shape { margin: 4px 0; padding: clamp(14px, 2.4vw, 22px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 12px; min-width: 0; }
.nf-shape-in { display: grid; gap: 0; min-width: 0; }
/* Only the name steps in, so what each level is for keeps one left edge. */
.nf-sl { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); min-width: 0; }
.nf-sl > .nf-sn { margin-left: calc(var(--d, 0) * 1.35rem); }
.nf-sl:first-child { border-top: 0; }
.nf-sl.is-d1 { --d: 1; }
.nf-sl.is-d2 { --d: 2; }
.nf-sl.is-d3 { --d: 3; }
/* The step in: a short elbow from the line above, in the icons' grey. */
.nf-sl[class*="is-d"]::before { content: ""; position: absolute; top: 0; height: 50%; left: calc((var(--d) - 1) * 1.35rem + 7px); width: calc(1.35rem - 11px); border-left: 1.5px solid #C9CEE3; border-bottom: 1.5px solid #C9CEE3; border-bottom-left-radius: 5px; }
.nf-sn { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font: 600 0.9375rem/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.nf-sl.is-file .nf-sn { justify-self: start; margin-block: -4px; padding: 4px 8px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--ink); }
.nf-sl em { font-size: 0.875rem; font-style: normal; font-weight: 600; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.nf-shape figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- Two folders, two jobs ----------
   The working folder on the left keeps its numbered drafts. One arrow, the copy. On the right, the finished folder
   with its plain name. The approved draft and its copy are both outlined in ink, so the eye links them. */
.nf-two { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--grid); display: grid; gap: 14px; min-width: 0; }
.nf-two-in { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr); align-items: stretch; min-width: 0; }
.nf-box { display: grid; align-content: start; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); min-width: 0; }
.nf-bt { display: grid; gap: 2px; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.nf-bt b { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.nf-list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 5px !important; }
.nf-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 8px; border-radius: 8px; font: 500 0.8125rem/1.35 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.nf-list.is-in { margin-left: 18px; }
.nf-list li.is-yes { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px var(--ink); }
.nf-list em { padding: 0.1em 0.55em; border-radius: 999px; background: var(--ink); font: 700 0.6875rem/1.45 var(--sans); font-style: normal; letter-spacing: 0.04em; color: #fff; }
.nf-stays { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--ink-hint); }
.nf-arrow { position: relative; align-self: center; display: grid; justify-items: center; margin: 0; padding: 16px 8px 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ink); }
.nf-arrow::before { content: ""; position: absolute; top: 0; left: 8px; right: 10px; height: 2px; background: var(--ink); }
.nf-arrow::after { content: ""; position: absolute; top: -4px; right: 9px; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.nf-two figcaption, .nf-anat figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- One old name, taken apart ----------
   The name on top, with each part in the colour of where it goes. Under it, one row per part: the part, then where
   it lands. The dropped words are the only orange: they are the ones that made the wrong file look right. */
.nf-anat { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--grid); display: grid; gap: 16px; min-width: 0; }
.nf-oldname { justify-self: start; max-width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font: 500 1rem/1.7 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
/* Every part has the same padding, so the words line up on one left edge in the rows below, with or without a fill. */
.p-keep, .p-drop, .p-note, .p-date { padding: 0.05em 0.3em; border-radius: 5px; }
.p-keep { font-weight: 700; background: linear-gradient(var(--ink), var(--ink)) 0.3em 100% / calc(100% - 0.6em) 2px no-repeat; }
.p-note, .p-date { background: var(--grid); color: var(--ink); }
.p-drop { background: var(--lift-tint); color: var(--lift-ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.p-ext { color: var(--ink-hint); }
.nf-anat-in { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); column-gap: 34px; row-gap: 10px; align-items: stretch; min-width: 0; }
.nf-part { position: relative; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 6px; font: 500 0.9375rem/1.4 var(--mono); color: var(--ink); min-width: 0; }
.nf-part::after { content: "→"; position: absolute; left: 100%; top: 50%; width: 34px; margin-top: -0.7em; font: 700 1.125rem/1.4 var(--sans); text-align: center; color: var(--ink-hint); }
.nf-to { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--surface); min-width: 0; }
.nf-to em { padding: 0.1em 0.6em; border-radius: 999px; background: var(--night); font: 700 0.6875rem/1.45 var(--sans); font-style: normal; letter-spacing: 0.04em; color: #fff; }
.nf-to b { font: 600 0.875rem/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.nf-to span { grid-column: 2; font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.nf-to.is-drop { background: none; outline: 2px dashed #B9BFDB; outline-offset: -2px; }
.nf-to.is-drop em { background: var(--lift-tint); color: var(--lift-ink); }
.nf-to.is-drop b { color: var(--ink-hint); font-family: var(--sans); font-weight: 700; }

/* ---------- The tools ----------
   No panel: the fields sit in the reading column, on white. The plan in step 5 is the one dark surface, because it
   is what all of this produces. */
.nf-tool { display: grid; gap: 14px; margin-top: 6px; min-width: 0; }
.a-body .nf-tool .fine { line-height: 1.5; color: var(--ink-hint); }
.nf-label, .nf-q > label, .nf-own > label, .nf-kinds legend { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.nf-q { display: grid; gap: 7px; min-width: 0; }
.nf-tool input[type="text"], .nf-tool textarea, .nf-tool select { min-width: 0; width: 100%; padding: 0.65em 0.8em; border: 1px solid #D5D9EA; border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--sans); text-overflow: ellipsis; transition: border-color 0.2s, box-shadow 0.2s; }
.nf-tool textarea { resize: vertical; min-height: 9.5rem; font: 500 0.9375rem/1.55 var(--mono); }
.nf-tool select { -webkit-appearance: none; appearance: none; padding-right: 2.2em; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23474E73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 0.85em center / 0.75em no-repeat; }
.nf-tool input[type="text"]::placeholder, .nf-tool textarea::placeholder { color: var(--ink-hint); font-weight: 400; }
.nf-tool input[type="text"]:focus, .nf-tool textarea:focus, .nf-tool select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }

.nf-kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.nf-kinds legend { width: 100%; padding: 0; margin-bottom: 8px; }
.nf-kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nf-kinds label { padding: 0.55em 1em; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.nf-kinds label:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.nf-kinds input:checked + label { background: var(--night); box-shadow: none; color: #fff; }
.nf-kinds input:checked + label::before { content: "✓ "; }
.nf-kinds input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 3px; }
.nf-own { display: grid; gap: 7px; min-width: 0; max-width: 26rem; }
.nf-own-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }

.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* One quiet pill for every control: the one filled button on the page is the mentoring one. */
.nf-btn { padding: 0.5em 0.95em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font: 700 0.875rem/1.2 var(--sans); cursor: pointer; transition: box-shadow 0.2s; }
.nf-btn.is-add::before { content: "+ "; color: var(--ink-hint); }
.nf-btn:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.nf-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.nf-count { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.nf-count.is-over { color: var(--lift-ink); }
.nf-nojs, .nf-wait { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* What a step writes, live. Before the reader acts it holds the example, labelled as one, so every step shows a
   real block, the way the steps with a command do. */
.nf-says { display: grid; gap: 6px; padding: 12px 16px 14px; border-radius: 12px; background: var(--night); min-width: 0; }
.nf-says-l { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }
.nf-says pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 0.875rem/1.6 var(--mono); color: var(--on-night); }

/* Until the reader pastes names, steps 2 and 3 show the first picture's name worked through, marked as an example. */
.nf-sample-l { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-hint); }
.nf-piece.is-sample input:disabled, .nf-piece.is-sample select:disabled { background-color: var(--paper); color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; cursor: default; }

/* ---------- Step 2: the check ---------- */
.nf-check { display: grid; gap: 10px; min-width: 0; }
.nf-check:empty { display: none; }
.nf-chk { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.nf-chk-n { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.nf-chk-n small { flex: none; font: 600 0.75rem/1.4 var(--mono); color: var(--ink-hint); }
.nf-chk-n span { min-width: 0; font: 500 0.9375rem/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
mark.nf-m { padding: 0 0.15em; border-radius: 4px; background: var(--lift-tint); color: var(--lift-ink); box-shadow: inset 0 -2px 0 var(--lift-ring); }
.nf-why { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 5px !important; }
.nf-why li { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.nf-why li b { font-weight: 700; color: var(--lift-ink); }
.nf-chk.is-clean .nf-why li { color: var(--ink); }
.nf-chk.is-clean .nf-why li::before { content: "✓ "; font-weight: 700; color: var(--ink); }
.nf-marks td:first-child { width: 34%; font-family: var(--mono); font-weight: 500; font-size: 0.875rem; }

/* ---------- Step 3: one card per piece ---------- */
.nf-rows { display: grid; gap: 12px; min-width: 0; }
.nf-piece { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.nf-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 0.8125rem; font-weight: 700; line-height: 1.4; color: var(--ink-hint); min-width: 0; }
.nf-from span { min-width: 0; font: 500 0.8125rem/1.4 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.nf-fields { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; min-width: 0; }
.nf-fields .nf-q > label { font-size: 0.8125rem; }
.nf-hints { display: grid; gap: 4px; min-width: 0; }
.nf-hints:empty { display: none; }
.nf-hint { font-size: 0.875rem; line-height: 1.45; color: var(--ink-hint); }
.nf-hint.is-warn { color: var(--lift-ink); font-weight: 600; }
.nf-res { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule); min-width: 0; }
.nf-res p { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font: 500 0.8125rem/1.4 var(--mono); color: var(--ink-2); }
.nf-res p span { min-width: 0; overflow-wrap: anywhere; }
.nf-res p.is-dir { font-weight: 700; color: var(--ink); }
.nf-res p.is-file { margin-left: 22px; }
.nf-res i.nf-k { flex: none; font: 700 0.6875rem/1.6 var(--sans); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-hint); }

/* ---------- Step 4: the two lines that go into every note ---------- */
.nf-notefields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; min-width: 0; }

/* ---------- Step 5: the plan and the notes ---------- */
.nf-out { display: grid; gap: 12px; min-width: 0; }
.nf-out .a-code.is-tall pre { max-height: none; }
.nf-size { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.nf-size.is-short { color: var(--lift-ink); }
.nf-out-t { margin-top: 8px; font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.nf-notes { display: grid; gap: 8px; min-width: 0; }
.nf-note-h { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.nf-note-h:first-child { margin-top: 0; }
.nf-note-h b { color: var(--ink); }

.a-proof { grid-template-columns: minmax(0, 1fr); }

/* ---------- Sources: one row per question, its links stacked ---------- */
.nf-sources { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 0 !important; font-size: 0.9375rem; line-height: 1.5; }
.nf-sources li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2px 18px; padding: 10px 0; border-top: 1px solid var(--rule); }
.nf-sources span { grid-row: span 3; font-weight: 700; color: var(--ink); }
.nf-sources a { grid-column: 2; overflow-wrap: anywhere; }

/* ---------- Phones ----------
   Side by side leaves no room for a file name here, so each picture gets its own phone layout. */
@media (max-width: 640px) {
  .nf-pair { grid-template-columns: minmax(0, 1fr); }
  .nf-win { padding: 12px; }

  .nf-sl { grid-template-columns: minmax(0, 1fr); }
  .nf-sl > .nf-sn { margin-left: calc(var(--d, 0) * 1rem); }
  .nf-sl[class*="is-d"]::before { left: calc((var(--d) - 1) * 1rem + 7px); width: calc(1rem - 9px); height: 1.2rem; }
  .nf-sl em { font-size: 0.8125rem; margin-left: calc(var(--d, 0) * 1rem + 24px); }
  .nf-sn { font-size: 0.875rem; }

  .nf-two-in { grid-template-columns: minmax(0, 1fr); }
  .nf-arrow { justify-items: start; padding: 14px 0 14px 26px; text-align: left; }
  .nf-arrow::before { top: 4px; bottom: 6px; left: 9px; right: auto; width: 2px; height: auto; }
  .nf-arrow::after { top: auto; bottom: 4px; left: 5px; right: auto; transform: rotate(135deg); }

  .nf-anat-in { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .nf-part { margin-top: 14px; }
  .nf-part:first-child { margin-top: 0; }
  .nf-part::after { content: "↓"; position: static; width: auto; margin: 0 0 0 4px; font-size: 1rem; }
  .nf-to { margin-top: 6px; }

  .nf-sources li { grid-template-columns: minmax(0, 1fr); }
  .nf-sources span { grid-row: auto; }
  .nf-sources a { grid-column: 1; }

  .nf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-fields .is-title { grid-column: 1 / -1; }
  .nf-notefields { grid-template-columns: minmax(0, 1fr); }
  .nf-marks td:first-child { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-back, .nf-back span, .nf-kinds label { transition: none; }
}
