@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Kalam:wght@400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400..700;1,8..60,400..700&display=swap");

/* Junktrunk — components. Every value comes from tokens.css; textures and fasteners are inline SVG. */

/* ---------- Type helpers ---------- */
.jt-label { font-family: var(--font-display); font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: 0.12em; font-stretch: 75%; text-transform: uppercase; color: var(--ink-muted); }
.jt-mono { font-family: var(--font-mono); }
.jt-recno { font-family: var(--font-mono); font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.04em; }
.jt-title { font-family: var(--font-display); font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--ink); text-wrap: balance; }
.jt-lead { font-family: var(--font-serif); font-size: 18px; line-height: 1.45; margin: 0 0 var(--space-4); }
.jt-body, .jt-sheet p { font-family: var(--font-serif); font-size: 15px; line-height: 1.6; }
.jt-sheet p { margin: 0 0 var(--space-4); }

/* ---------- Sheet (one fixed-format page) ---------- */
.jt-sheet {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column;
  width: var(--page-width); height: var(--page-height);
  padding: var(--space-7) var(--page-margin) var(--space-7) var(--page-margin);
  background-color: var(--paper); background-image: url("paper-grain.svg"); background-size: 256px;
  color: var(--ink); font-family: var(--font-serif); overflow: hidden;
}
.jt-sheet::before { content: ""; position: absolute; inset: 0; box-shadow: var(--shadow-edge); pointer-events: none; z-index: 3; }
.jt-sheet--fresh::before { box-shadow: none; }
.jt-sheet--landscape { width: var(--page-height); height: var(--page-width); }

/* running head / body / footer */
.jt-sheet__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-2); border-bottom: var(--stroke-heavy) solid var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.jt-sheet__head b { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.jt-sheet__body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; padding-top: var(--space-5); }
.jt-sheet__foot { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-2); border-top: var(--stroke-hair) solid var(--hairline); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.jt-sheet__cont { font-style: italic; }

/* punched for a 3-ring binder: real holes (masked), optional reinforcement rings */
.jt-sheet--punched { padding-left: var(--page-margin-binding);
  --jt-r: calc(var(--hole-size) / 2);
  -webkit-mask-image: radial-gradient(circle var(--jt-r) at var(--hole-inset) calc(50% - var(--hole-pitch)), transparent 96%, #000 100%), radial-gradient(circle var(--jt-r) at var(--hole-inset) 50%, transparent 96%, #000 100%), radial-gradient(circle var(--jt-r) at var(--hole-inset) calc(50% + var(--hole-pitch)), transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--jt-r) at var(--hole-inset) calc(50% - var(--hole-pitch)), transparent 96%, #000 100%), radial-gradient(circle var(--jt-r) at var(--hole-inset) 50%, transparent 96%, #000 100%), radial-gradient(circle var(--jt-r) at var(--hole-inset) calc(50% + var(--hole-pitch)), transparent 96%, #000 100%);
  mask-composite: intersect;
}
.jt-sheet--reinforced::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  --jt-ring: calc(var(--hole-size) * 0.95);
  background:
    radial-gradient(circle var(--jt-ring) at var(--hole-inset) calc(50% - var(--hole-pitch)), var(--print) 92%, var(--paper-aged) 96%, transparent 100%),
    radial-gradient(circle var(--jt-ring) at var(--hole-inset) 50%, var(--print) 92%, var(--paper-aged) 96%, transparent 100%),
    radial-gradient(circle var(--jt-ring) at var(--hole-inset) calc(50% + var(--hole-pitch)), var(--print) 92%, var(--paper-aged) 96%, transparent 100%);
  opacity: 0.92;
}

/* paper stocks — one per document type */
.jt-sheet--manila { background-color: var(--manila); }
.jt-sheet--ledger { background-image: url("paper-grain.svg"), repeating-linear-gradient(to bottom, transparent 0 calc(var(--space-9) * 1.5), var(--ledger-band) calc(var(--space-9) * 1.5) calc(var(--space-9) * 3)); background-size: 256px, auto; }
.jt-sheet--graph {
  background-image: url("paper-grain.svg"),
    linear-gradient(to bottom, var(--graph-line) 1px, transparent 1px),
    linear-gradient(to right, var(--graph-line) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--graph-line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--graph-line) 45%, transparent) 1px, transparent 1px);
  background-size: 256px, var(--space-9) var(--space-9), var(--space-9) var(--space-9), var(--space-5) var(--space-5), var(--space-5) var(--space-5);
}
.jt-sheet--blueprint { background-color: var(--blueprint); color: var(--on-blueprint);
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--blueprint-line) 18%, transparent) 1px, transparent 1px), linear-gradient(to right, color-mix(in srgb, var(--blueprint-line) 18%, transparent) 1px, transparent 1px);
  background-size: var(--space-5) var(--space-5); }
.jt-sheet--blueprint .jt-sheet__head { border-color: var(--on-blueprint); }
.jt-sheet--blueprint .jt-sheet__foot { color: var(--blueprint-line); border-color: var(--blueprint-line); }
/* oversized drawing folded to fit: two creases */
.jt-sheet--folded { background-image: url("paper-grain.svg"),
  linear-gradient(to right, transparent calc(50% - 2px), var(--paper-aged) calc(50% - 1px), var(--print) 50%, transparent calc(50% + 2px)),
  linear-gradient(to bottom, transparent calc(50% - 2px), var(--paper-aged) calc(50% - 1px), var(--print) 50%, transparent calc(50% + 2px)); background-size: 256px, auto, auto; }

/* ---------- Document viewer (Google-Docs style continuous scroll) ---------- */
.jt-viewer { background: var(--desk); color: var(--on-desk); padding: 0 var(--space-4) var(--space-6); overflow: auto; box-sizing: border-box; }
.jt-viewer__page { margin: 0 auto var(--page-gap); box-shadow: var(--shadow-sheet); position: relative; }
.jt-viewer__page > .jt-sheet { transform-origin: 0 0; }
.jt-viewer__bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; gap: var(--space-2); margin: 0 calc(var(--space-4) * -1) var(--space-5); padding: var(--space-2); background: var(--desk); border-bottom: var(--stroke-hair) solid color-mix(in srgb, var(--on-desk-muted) 40%, transparent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-desk-muted); }
.jt-viewer__bar button { font: inherit; color: var(--on-desk); background: transparent; border: var(--stroke-hair) solid var(--on-desk-muted); border-radius: var(--radius-none); padding: 2px var(--space-2); cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.jt-viewer__bar button[aria-pressed="true"] { background: var(--on-desk); color: var(--desk); }
.jt-viewer__bar button:focus-visible { outline: 2px solid var(--on-desk); outline-offset: 2px; }
/* phone reading mode: the sheet reflows, keeps its stock and marks */
.jt-viewer--reading .jt-viewer__page { width: auto !important; height: auto !important; box-shadow: none; }
.jt-viewer--reading .jt-sheet { width: auto; height: auto; transform: none !important; padding: var(--space-5); -webkit-mask-image: none; mask-image: none; }
.jt-viewer--reading .jt-sheet::after { display: none; }
.jt-viewer--reading .jt-sheet__body { overflow: visible; }

@media print {
  .jt-viewer { background: none; padding: 0; }
  .jt-viewer__bar { display: none; }
  .jt-viewer__page { box-shadow: none; margin: 0; width: auto !important; height: auto !important; break-after: page; }
  .jt-viewer__page > .jt-sheet { transform: none !important; }
}

/* ---------- Masthead ---------- */
.jt-masthead { color: var(--ink); }
.jt-masthead__dept { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: var(--space-2); border-bottom: var(--stroke-rule) solid currentColor; }
.jt-masthead__name { font-family: var(--font-display); font-size: 64px; line-height: 0.92; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; margin: var(--space-3) 0 var(--space-1); }
.jt-masthead__tag { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.45; padding-bottom: var(--space-3); border-bottom: var(--stroke-hair) solid currentColor; }
.jt-masthead__meta { display: flex; gap: var(--space-6); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--space-2) 0; border-bottom: var(--stroke-hair) solid currentColor; }

/* ---------- Record header + form fields ---------- */
.jt-record__kicker { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); }
.jt-record__title { margin-bottom: var(--space-4); }
.jt-fields { display: grid; grid-template-columns: repeat(var(--jt-cols, 4), minmax(0, 1fr)); border-top: var(--stroke-heavy) solid var(--ink); border-left: var(--stroke-hair) solid var(--ink); counter-reset: jt-field; }
.jt-field { position: relative; padding: var(--space-2) var(--space-3) var(--space-3); border-right: var(--stroke-hair) solid var(--ink); border-bottom: var(--stroke-hair) solid var(--ink); min-width: 0; }
.jt-field--wide { grid-column: span 2; }
.jt-field--full { grid-column: 1 / -1; }
.jt-field__label { display: block; margin-bottom: var(--space-1); font-family: var(--font-display); font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: 0.12em; font-stretch: 75%; text-transform: uppercase; color: var(--ink-muted); }
.jt-fields--numbered .jt-field__label::before { counter-increment: jt-field; content: counter(jt-field) ". "; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.jt-field__value { font-family: var(--font-mono); font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.jt-field__value--empty::after { content: ""; display: block; height: 1.4em; border-bottom: var(--stroke-hair) dotted var(--hairline); }
.jt-checks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-family: var(--font-mono); font-size: 13px; }
.jt-check { display: inline-flex; align-items: center; gap: var(--space-2); }
.jt-check__box { width: 12px; height: 12px; border: var(--stroke-rule) solid var(--ink); display: inline-grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; line-height: 1; }
.jt-check--on .jt-check__box::after { content: "X"; transform: translate(0.5px, -0.5px); }

/* ---------- Sections + observation lists ---------- */
.jt-section { margin-top: var(--space-6); }
.jt-section__h { display: flex; gap: var(--space-2); align-items: baseline; margin: 0 0 var(--space-3); padding-bottom: var(--space-1); border-bottom: var(--stroke-rule) solid var(--ink); font-family: var(--font-display); font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.jt-section__h .jt-section__no { font-family: var(--font-mono); letter-spacing: 0; }
.jt-obs { list-style: none; margin: 0; padding: 0; counter-reset: jt-obs; font-family: var(--font-mono); font-size: 14px; line-height: 1.4; }
.jt-obs li { counter-increment: jt-obs; display: grid; grid-template-columns: 7ch 1fr; gap: var(--space-2); padding: var(--space-1) 0; border-bottom: var(--stroke-hair) dotted var(--hairline); }
.jt-obs li::before { content: "[ " counter(jt-obs, decimal-leading-zero) " ]"; font-weight: 700; }

/* ---------- Stamp ---------- */
.jt-stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--space-1) var(--space-3); color: var(--stamp);
  border: var(--stroke-heavy) solid currentColor; border-radius: var(--radius-stamp);
  outline: var(--stroke-hair) solid currentColor; outline-offset: -6px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 22px; line-height: 1.05; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(var(--jt-tilt, var(--tilt-stamp))); opacity: var(--opacity-stamp); mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -5 0 0 0 3.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -5 0 0 0 3.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"); -webkit-mask-size: 220px; mask-size: 220px;
  user-select: text;
}
.jt-stamp--violet { color: var(--stamp-violet); }
.jt-stamp--blueprint { color: var(--blueprint); }
.jt-stamp--small { font-size: 15px; border-width: var(--stroke-rule); outline: none; padding: 2px var(--space-2); opacity: 1; -webkit-mask-size: 440px; mask-size: 440px; }
.jt-stamp__sub { font-family: var(--font-mono); font-weight: 700; font-stretch: 100%; font-size: 12px; letter-spacing: 0.06em; }
.jt-stamp--date { padding: var(--space-2) var(--space-4); }
.jt-stamp--date .jt-stamp__sub { font-size: 16px; padding: 2px var(--space-2); border-top: var(--stroke-rule) solid currentColor; border-bottom: var(--stroke-rule) solid currentColor; }
.jt-stamp--abs { position: absolute; z-index: 4; }

/* ---------- Figure: photographic print + attachments ---------- */
.jt-figure { position: relative; display: inline-block; margin: var(--space-4) 0; }
.jt-figure__print { position: relative; display: block; padding: var(--space-2); background: var(--print); box-shadow: var(--shadow-photo); transform: rotate(var(--jt-tilt, var(--tilt-photo))); }
.jt-figure__print img, .jt-figure__print svg { display: block; width: 100%; height: auto; filter: sepia(0.25) contrast(1.05); }
.jt-figure__cap { margin-top: var(--space-3); font-family: var(--font-serif); font-style: italic; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
.jt-figure__cap b { font-family: var(--font-mono); font-style: normal; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); margin-right: var(--space-1); }
/* paperclip: half its length above the print's top edge */
.jt-clip { position: absolute; z-index: 5; top: -30px; left: var(--space-6); width: 28px; height: 88px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='88' viewBox='0 0 28 88'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 22 V68 A4.5 4.5 0 0 0 18.5 68 V12 A6.5 6.5 0 0 0 5.5 12 V75 A8.5 8.5 0 0 0 22.5 75 V28' stroke='%235e615b' stroke-width='3.2'/%3E%3Cpath d='M9.5 22 V68 A4.5 4.5 0 0 0 18.5 68 V12 A6.5 6.5 0 0 0 5.5 12 V75 A8.5 8.5 0 0 0 22.5 75 V28' stroke='%239c9f99' stroke-width='2.2'/%3E%3Cpath d='M9 24 V66 M5 16 V73 M18 14 V66 M22 32 V74' stroke='%23e6e7e2' stroke-width='0.7' opacity='0.8'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(-3deg); filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.3)); pointer-events: none; }
.jt-clip--right { left: auto; right: var(--space-6); transform: rotate(4deg); }
/* masking tape across a corner */
.jt-tape { position: absolute; z-index: 5; width: 96px; height: 28px; background: var(--tape); clip-path: polygon(3% 0, 100% 4%, 97% 30%, 100% 62%, 96% 100%, 0 96%, 3% 64%, 0 34%); pointer-events: none; }
.jt-tape--tl { top: -10px; left: -30px; transform: rotate(-35deg); }
.jt-tape--tr { top: -10px; right: -30px; transform: rotate(35deg); }
.jt-tape--bl { bottom: -10px; left: -30px; transform: rotate(35deg); }
.jt-tape--br { bottom: -10px; right: -30px; transform: rotate(-35deg); }
.jt-tape--top { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
/* staple through the top-left corner of a multipage document */
.jt-staple { position: absolute; z-index: 6; top: 26px; left: 22px; width: 44px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M3 10 V4 H41 V10' fill='none' stroke='%235e615b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 10 V4 H41 V10' fill='none' stroke='%239c9f99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 3.6 H39' stroke='%23e6e7e2' stroke-width='0.6' opacity='0.9'/%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(var(--tilt-staple)); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)); pointer-events: none; }

/* ---------- Handwritten annotation ---------- */
.jt-note { font-family: var(--font-hand); font-size: 20px; line-height: 1.15; color: var(--grease-pencil); transform: rotate(var(--jt-tilt, var(--tilt-note))); display: inline-block; }
.jt-note--pencil { color: var(--ink-muted); }
.jt-note--abs { position: absolute; z-index: 4; max-width: 200px; }
.jt-mark { position: absolute; z-index: 4; border: 3px solid var(--grease-pencil); border-radius: 48% 52% 45% 55% / 55% 46% 54% 45%; transform: rotate(-6deg); opacity: 0.9; pointer-events: none; }
.jt-strike { text-decoration: line-through; text-decoration-color: var(--grease-pencil); text-decoration-thickness: 2px; }

/* ---------- Ledger table ---------- */
.jt-ledger { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.jt-ledger th { text-align: left; padding: var(--space-1) var(--space-2); border-top: var(--stroke-heavy) solid var(--ink); border-bottom: var(--stroke-rule) solid var(--ink); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; font-stretch: 75%; text-transform: uppercase; color: var(--ink-muted); vertical-align: bottom; }
.jt-ledger td { padding: var(--space-1) var(--space-2); border-bottom: var(--stroke-hair) solid var(--hairline); vertical-align: top; }
.jt-ledger tbody tr:nth-child(6n+4), .jt-ledger tbody tr:nth-child(6n+5), .jt-ledger tbody tr:nth-child(6n+6) { background: var(--ledger-band); }
.jt-ledger .jt-num { text-align: right; }
.jt-ledger tfoot td { border-top: var(--stroke-rule) solid var(--ink); border-bottom: var(--stroke-heavy) double var(--ink); font-weight: 700; }

/* ---------- Index card (archive listings) ---------- */
.jt-card { position: relative; box-sizing: border-box; width: 480px; max-width: 100%; aspect-ratio: 5 / 3; padding: var(--space-3) var(--space-5) var(--space-4); color: var(--ink); text-decoration: none; display: block;
  background-color: var(--print); background-image: url("paper-grain.svg"), linear-gradient(to bottom, transparent 47px, var(--stamp) 47px, var(--stamp) 48px, transparent 48px), repeating-linear-gradient(to bottom, transparent 0 23px, var(--graph-line) 23px 24px);
  background-size: 256px, auto, auto; background-position: 0 0, 0 0, 0 48px; background-repeat: repeat, no-repeat, repeat; box-shadow: var(--shadow-photo); }
.jt-card__top { display: flex; justify-content: space-between; align-items: baseline; height: 32px; }
.jt-card__title { margin: var(--space-3) 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 24px; }
.jt-card__lines { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 24px; }
.jt-card__lines dt { display: inline; font-weight: 700; } .jt-card__lines dd { display: inline; margin: 0 var(--space-3) 0 0; }
.jt-card .jt-stamp { position: absolute; right: var(--space-5); bottom: var(--space-4); }
a.jt-card:hover .jt-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.jt-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Left-hand index (site navigation) ---------- */
.jt-index { box-sizing: border-box; width: 264px; background: var(--desk); color: var(--on-desk); padding: var(--space-5) 0; font-family: var(--font-mono); font-size: 13px; }
.jt-index__brand { padding: 0 var(--space-5) var(--space-4); }
.jt-index__brand b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.jt-index__brand span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-desk-muted); }
.jt-index__search { margin: 0 var(--space-5) var(--space-4); display: block; }
.jt-index__search input { box-sizing: border-box; width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius-none); padding: var(--space-2); }
.jt-index__search input:focus-visible { outline: 2px solid var(--on-desk); outline-offset: 2px; }
.jt-index__h { padding: var(--space-3) var(--space-5) var(--space-1); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; font-stretch: 75%; text-transform: uppercase; color: var(--on-desk-muted); }
.jt-index ol { list-style: none; margin: 0; padding: 0; }
.jt-index a { display: grid; grid-template-columns: 4ch 1fr auto; gap: var(--space-2); padding: var(--space-1) var(--space-5); color: inherit; text-decoration: none; }
.jt-index a .jt-index__call { color: var(--on-desk-muted); }
.jt-index a .jt-index__count { color: var(--on-desk-muted); font-size: 11px; }
.jt-index a:hover { text-decoration: underline; }
.jt-index a:focus-visible { outline: 2px solid var(--on-desk); outline-offset: -2px; }
.jt-index a[aria-current="page"] { background: var(--manila); color: var(--ink); margin-right: calc(var(--space-3) * -1); border-radius: 0 var(--radius-label) var(--radius-label) 0; box-shadow: inset 4px 0 0 var(--manila-deep); }
.jt-index a[aria-current="page"] .jt-index__call, .jt-index a[aria-current="page"] .jt-index__count { color: var(--ink-muted); }

/* ---------- Typed label ---------- */
.jt-typed-label { display: inline-block; padding: 2px var(--space-2); background: var(--print); border: var(--stroke-hair) solid var(--hairline); border-radius: var(--radius-label); box-shadow: var(--shadow-photo); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }

/* ---------- Case-file folder ---------- */
.jt-folder { position: relative; box-sizing: border-box; padding: var(--space-6) var(--space-5) var(--space-5); background-color: var(--manila); background-image: url("paper-grain.svg"); background-size: 256px; color: var(--ink); box-shadow: var(--shadow-photo); margin-top: 28px; }
.jt-folder__tab { position: absolute; top: -28px; left: var(--jt-tab, 0); height: 28px; padding: 0 var(--space-4); display: flex; align-items: center; background: inherit; background-color: var(--manila); border-radius: var(--radius-label) var(--radius-label) 0 0; }
.jt-folder__contents { list-style: none; margin: var(--space-4) 0 0; padding: 0; font-family: var(--font-mono); font-size: 13px; border-top: var(--stroke-heavy) solid var(--ink); }
.jt-folder__contents li { display: grid; grid-template-columns: 9ch 1fr auto; gap: var(--space-3); padding: var(--space-1) 0; border-bottom: var(--stroke-hair) solid var(--manila-deep); }
.jt-folder__contents a { color: var(--ink); }
.jt-folder__contents a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* links inside documents */
.jt-sheet a { color: var(--blueprint); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.jt-sheet a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
