/* Stefano Baudino: one graph of his own work on a pale cool wall. Graphite nodes, one oxblood thread colour,
   Antonio (condensed grotesque) for names, Spline Sans Mono for labels, Archivo for reading. */
:root {
  --wall: #E6E9EB; --wall-2: #F2F4F5; --wall-3: #D3D8DC; --region: #D5DADE;
  --ink: #1C1F23; --ink-2: #4E555D; --ink-3: #6A7179; --graphite: #2B2F34; --line: rgba(43, 47, 52, .16);
  --ox: #6B1626; --ox-2: #8A1F33; --ox-soft: rgba(107, 22, 38, .1);
  --disp: 'Antonio', 'Arial Narrow', sans-serif; --mono: 'Spline Sans Mono', ui-monospace, monospace; --sans: 'Archivo', system-ui, sans-serif;
  --e: cubic-bezier(.16, 1, .3, 1); --e2: cubic-bezier(.25, 1, .5, 1);
  --sheet: 470px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--wall); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: var(--ox); color: var(--wall-2); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--ox); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 2px; }
[hidden] { display: none !important; }
.lbl { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.app { position: fixed; inset: 0; overflow: hidden; }

/* ---------- caption (top left) ---------- */
.cap { position: absolute; z-index: 6; top: 26px; left: 32px; width: 340px; pointer-events: none; }
.cap > * { pointer-events: auto; }
.brand { margin: 0 0 14px; line-height: 0; }
.brand img { height: 50px; width: auto; display: block; }
.who { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 32ch; }
.how { margin: 0 0 12px; font: 400 11px/1.5 var(--mono); color: var(--ink-2); max-width: 36ch; }
.whois { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ox); padding: 6px 0; border-bottom: 1.5px solid var(--ox); transition: color .3s var(--e), border-color .3s var(--e); }
.whois:hover { color: var(--ox-2); border-color: var(--ox-2); }

/* ---------- tools (top right) ---------- */
.tools { position: absolute; z-index: 7; top: 24px; right: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: right .5s var(--e); }
.find { position: relative; width: 300px; }
.find .lbl { margin-bottom: 4px; }
.find input { width: 100%; border: 0; border-bottom: 1.5px solid var(--graphite); background: transparent; padding: 6px 0 7px; font: 400 14px/1.3 var(--mono); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: var(--ink-3); }
.find input:focus { outline: 0; border-color: var(--ox); }
.hits { position: absolute; z-index: 9; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 4px 0; list-style: none; background: var(--wall-2); border: 1px solid var(--graphite); max-height: 300px; overflow: auto; }
.hits button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; font: 400 13px/1.3 var(--sans); }
.hits button:hover, .hits button:focus-visible { background: var(--ox-soft); outline: 0; }
.hits .none { padding: 8px 12px; font: 400 12px/1.3 var(--mono); color: var(--ink-2); }
.legend { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.legend .lbl { margin-right: 10px; }
.legend button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; font: 500 12px/1 var(--mono); color: var(--ink); border: 1px solid transparent; border-radius: 2px; transition: background .3s var(--e), color .3s var(--e), border-color .3s var(--e); }
.legend button svg { width: 14px; height: 14px; fill: var(--graphite); }
.legend button svg .o { fill: none; stroke: var(--graphite); stroke-width: 2; }
.legend button i { font-style: normal; color: var(--ink-2); font-size: 10.5px; }
.legend button:hover { border-color: var(--line); }
.legend button[aria-pressed="true"] { background: var(--graphite); color: var(--wall-2); }
.legend button[aria-pressed="true"] svg { fill: var(--wall-2); } .legend button[aria-pressed="true"] svg .o { stroke: var(--wall-2); }
.legend button[aria-pressed="true"] i { color: var(--wall-3); }
.lang { display: flex; border: 1px solid var(--graphite); border-radius: 2px; }
.lang button { padding: 6px 10px; font: 600 11px/1 var(--mono); letter-spacing: .08em; }
.lang button[aria-pressed="true"] { background: var(--graphite); color: var(--wall-2); }
.tools .lang { position: absolute; top: 0; right: 312px; }

/* ---------- the wall and the graph ---------- */
.graph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none;
  background-color: var(--wall); background-image: radial-gradient(circle, rgba(43, 47, 52, .11) 1px, transparent 1.3px); background-size: 26px 26px; cursor: grab; }
.graph.panning, .graph.dragging { cursor: grabbing; }
.region { font-family: var(--disp); font-weight: 700; fill: var(--region); text-transform: uppercase; letter-spacing: -.01em; pointer-events: none; }
.edge { fill: none; stroke: var(--ox); stroke-opacity: .34; stroke-width: 1.15; transition: stroke-opacity .35s var(--e), stroke-width .35s var(--e); }
.edge.on, .edge.hov { stroke-opacity: 1; stroke-width: 2; }
.ehit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; }
.focus .edge:not(.on) { stroke-opacity: .09; }
.filtered .edge.out { stroke-opacity: .05; }
.node { cursor: pointer; transition: opacity .35s var(--e); outline: none; }
.node .fill { fill: var(--graphite); transition: fill .3s var(--e); }
.node .ring { fill: var(--wall); stroke: var(--graphite); stroke-width: 2.2; transition: stroke .3s var(--e); }
.node .ring-in { fill: none; stroke: var(--wall); stroke-width: 1.6; }
.node .band { fill: var(--wall); opacity: .5; }
.node .hit { fill: transparent; }
.nl, .elab text, .knot text { font-family: var(--mono); }
.node .nl { fill: var(--ink); text-anchor: middle; letter-spacing: 0; text-transform: none; font-weight: 400; paint-order: stroke; stroke: var(--wall); stroke-width: calc(4px * var(--ls, 1)); stroke-linejoin: round; display: inline; }
.node .nl.big { font-family: var(--disp); font-weight: 600; letter-spacing: .05em; }
.node:hover .fill, .node.hov .fill, .node:focus-visible .fill { fill: var(--ox); }
.node:hover .ring, .node.hov .ring, .node:focus-visible .ring { stroke: var(--ox); }
.focus .node:not(.on) { opacity: .26; }
.node.sel .fill { fill: var(--ox); } .node.sel .ring { stroke: var(--ox); stroke-width: 3; }
.node.sel .nl, .node.hit .nl { fill: var(--ox); font-weight: 600; }
.node.hit .fill { fill: var(--ox); } .node.hit .ring { stroke: var(--ox); }
.filtered .node.out { opacity: .14; }
.far .s-issue .nl, .far .s-plan .nl { display: none; }
.far .s-issue.on .nl, .far .s-issue.hit .nl, .far .s-issue.linked .nl, .far .s-plan.on .nl, .far .s-plan.hit .nl, .far .s-plan.linked .nl { display: inline; }
.knot { display: none; }
.node.linked .knot { display: inline; }
.knot rect { fill: var(--ox); }
.knot text { fill: var(--wall-2); font-size: 11px; font-weight: 600; text-anchor: middle; }
.node.linked .fill { fill: var(--ox); } .node.linked .ring { stroke: var(--ox); }
.thr-under { fill: none; stroke: var(--wall); stroke-width: 8; stroke-linecap: round; }
.thr { fill: none; stroke: var(--ox); stroke-width: 3.4; stroke-linecap: round; }
.thr.new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--e2) forwards; }
.coll .node { cursor: copy; }
.elab rect { fill: var(--wall-2); stroke: var(--ox); stroke-width: 1; }
.elab text { fill: var(--ox); font-size: 10.5px; font-weight: 500; text-anchor: middle; }
.elab { pointer-events: none; }
.intro .edge { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--e2) var(--d) forwards; }
.intro .node { opacity: 0; animation: rise .7s var(--e) var(--d) forwards; }
.intro .region { opacity: 0; animation: rise 1.2s var(--e) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; } }

/* ---------- zoom ---------- */
.zoom { position: absolute; z-index: 6; left: 32px; bottom: 74px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.zoom button { min-width: 36px; height: 36px; padding: 0 10px; background: var(--wall-2); border: 1px solid var(--graphite); border-radius: 2px; font: 500 18px/1 var(--mono); color: var(--ink); transition: background .3s var(--e), color .3s var(--e); }
.zoom button.fit { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.zoom button:hover { background: var(--graphite); color: var(--wall-2); }

/* ---------- the thread tray (signature) ---------- */
.tray { position: absolute; z-index: 8; left: 50%; bottom: 58px; transform: translateX(-50%); width: min(820px, calc(100vw - 260px)); display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px 16px 14px 18px; background: var(--wall-2); border: 1px solid var(--graphite); border-radius: 2px; transition: left .5s var(--e), width .5s var(--e), border-color .3s var(--e); }
.tray::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ox); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--e); }
.tray.has::before, .tray.coll::before { transform: none; }
.tray-h .lbl { color: var(--ox); font-weight: 600; margin-bottom: 4px; }
.tray.has { grid-template-columns: minmax(0, 1fr) auto; } .tray.has .tray-h { display: none; } .tray.has.warn .tray-h { display: block; }
.tray.has .tray-hint { display: none; } .tray.has.warn .tray-h .lbl { display: none; } .tray.has.warn .tray-hint { display: block; position: absolute; left: 18px; right: 18px; bottom: calc(100% + 8px); padding: 8px 12px; background: var(--ox); color: var(--wall-2); font-size: 12.5px; }
.tray-hint { margin: 0; font: 400 12.5px/1.4 var(--sans); color: var(--ink-2); }
.tray.warn .tray-hint { color: var(--ox); font-weight: 500; }
.knots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; min-width: 0; }
.kn { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px 6px 0; }
.kn + .kn::before { content: ''; position: absolute; left: -14px; top: 50%; width: 10px; border-top: 1px dashed var(--ink-3); }
.kn b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font: 600 11px/1 var(--mono); border: 1px dashed var(--ink-3); color: var(--ink-2); }
.kn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1.25 var(--sans); }
.kn:not(.empty) { cursor: pointer; }
.kn:not(.empty) b { background: var(--ox); border: 1px solid var(--ox); color: var(--wall-2); }
.kn:not(.empty) + .kn::before { border-top: 2px solid var(--ox); }
.kn .x { flex: none; font: 400 16px/1 var(--mono); color: var(--ink-2); padding: 2px 4px; }
.kn .x:hover { color: var(--ox); }
.knots { gap: 0 18px; }
.tray-b { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 11px 15px; font: 600 11.5px/1.1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; text-align: center;
  background: var(--ox); color: var(--wall-2); border: 1px solid var(--ox); border-radius: 2px; transition: background .3s var(--e), color .3s var(--e), border-color .3s var(--e); }
.btn:hover { background: var(--ox-2); border-color: var(--ox-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--graphite); }
.btn.ghost:hover, .btn.ghost[aria-pressed="true"] { background: var(--graphite); color: var(--wall-2); border-color: var(--graphite); }
.tray .btn.ghost[aria-pressed="true"] { background: var(--ox); border-color: var(--ox); }
.txt { font: 500 11.5px/1 var(--mono); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.txt:hover { color: var(--ox); }

/* ---------- base line ---------- */
.base { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 11px 32px 12px; border-top: 1px solid var(--line); background: rgba(230, 233, 235, .92); font: 400 11.5px/1.45 var(--sans); color: var(--ink-2); }
.base p { margin: 0; }
.comply { max-width: 110ch; }
.legal { white-space: nowrap; font-family: var(--mono); font-size: 11px; }
.legal a { color: var(--ink); }

/* ---------- side sheet ---------- */
.sheet { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: var(--sheet); overflow-y: auto; overscroll-behavior: contain; background: var(--wall-2); border-left: 1px solid var(--graphite); padding: 66px 40px 48px; animation: slide .55s var(--e); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.sheet .close { position: absolute; top: 20px; right: 24px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--graphite); }
.sheet .close:hover { color: var(--ox); border-color: var(--ox); }
body.sheet-open .tools { right: calc(var(--sheet) + 28px); }
body.sheet-open .tray { left: calc((100vw - var(--sheet)) / 2); width: min(780px, calc(100vw - var(--sheet) - 140px)); }
body.sheet-open .base { right: var(--sheet); }
.kick { margin: 0 0 12px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.ttl { margin: 0 0 22px; font: 600 64px/.93 var(--disp); letter-spacing: -.005em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.ttl.long { font-size: 46px; line-height: .96; }
.ttl.issue-t { font-size: 42px; line-height: 1; text-transform: none; }
.ttl small { display: block; font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--ox); margin-bottom: 10px; }
.q { margin: 0 0 22px; padding: 2px 0 2px 16px; border-left: 3px solid var(--ox); font: 400 17px/1.45 var(--sans); color: var(--ink); }
.lead { margin: 0 0 20px; font-size: 16.5px; line-height: 1.5; max-width: 40ch; }
.facts { margin: 0 0 22px; border-top: 1px solid var(--graphite); }
.facts .row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.tbc { display: inline-block; font: 600 9.5px/1.2 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ox); border: 1px solid var(--ox); padding: 2px 5px 1px; vertical-align: 2px; white-space: nowrap; }
.note { margin: 0 0 20px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); }
.src { margin: 0 0 18px; font: 400 11.5px/1.5 var(--mono); color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.plans { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.plans caption { text-align: left; font: 500 10.5px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 8px; }
.plans th, .plans td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 1px solid var(--line); }
.plans td { text-align: right; font: 600 22px/1 var(--disp); letter-spacing: .01em; color: var(--ink); }
.pl { font: 500 14px/1.3 var(--sans); text-align: left; text-decoration: underline; text-decoration-color: var(--wall-3); text-underline-offset: 4px; }
.pl:hover { color: var(--ox); text-decoration-color: var(--ox); }
.author { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 22px 0 6px; margin: 0 0 22px; border-top: 1px solid var(--graphite); }
.author img { width: 104px; height: 104px; object-fit: cover; display: block; border: 1px solid var(--graphite); filter: grayscale(1) contrast(1.05); }
.author .kick { margin-bottom: 8px; color: var(--ox); }
.aq { margin: 0 0 8px; font: 500 15px/1.45 var(--sans); }
.tr { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.bio { margin: 10px 0 12px; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.bio li { padding: 6px 0 6px 16px; border-top: 1px solid var(--line); position: relative; }
.bio li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--graphite); }
.soc { margin: 0; font: 500 12px/1.5 var(--mono); }
.nb { border-top: 1px solid var(--graphite); padding-top: 16px; }
.nb ul { list-style: none; margin: 0; padding: 0; }
.nb button { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); transition: background .3s var(--e); }
.nb button:hover { background: var(--ox-soft); }
.nb .gl { grid-row: 1 / 3; margin-top: 4px; }
.nb b { font: 500 14px/1.3 var(--sans); }
.nb em { font: 400 11px/1.4 var(--mono); font-style: normal; color: var(--ox); }

/* group glyphs in lists */
.gl { display: inline-block; flex: none; width: 12px; height: 12px; background: var(--graphite); }
.gl-newsletter { border-radius: 50%; }
.gl-numeri { width: 8px; height: 8px; margin: 2px; border-radius: 50%; }
.gl-libri { width: 8px; height: 13px; margin: 0 2px; }
.gl-formati { width: 9px; height: 9px; margin: 1.5px; transform: rotate(45deg); }
.gl-testate { border-radius: 50%; background: transparent; border: 2px solid var(--graphite); box-shadow: inset 0 0 0 2px var(--wall-2), inset 0 0 0 4px var(--graphite); }

/* ---------- request form ---------- */
.ask .ttl { font-size: 54px; }
.ask-path ol { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--graphite); counter-reset: k; }
.ask-path li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.ask-path li b { width: 22px; height: 22px; display: grid; place-items: center; background: var(--ox); color: var(--wall-2); font: 600 11px/1 var(--mono); }
.ask-path li + li::before { content: ''; position: absolute; left: 10px; top: -11px; height: 21px; border-left: 2px solid var(--ox); }
.ask-path li span { font: 500 15px/1.4 var(--sans); }
.askform { display: grid; gap: 16px; }
.fld label { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.fld input, .fld textarea { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--graphite); border-radius: 0; padding: 7px 0 8px; font: 400 16px/1.4 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.fld textarea { border: 1.5px solid var(--graphite); padding: 9px 10px; resize: vertical; min-height: 96px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-3); }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--ox); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.lead-note { color: var(--ink-2); }
.sent { margin: 0; font: 500 12.5px/1.45 var(--mono); color: var(--ox); }
.sent:empty { display: none; }
.preview { margin: 0; padding: 12px 14px; background: var(--wall); border-left: 3px solid var(--ox); font: 400 11.5px/1.55 var(--mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }

/* ---------- index ---------- */
.index { position: absolute; z-index: 30; inset: 0; overflow-y: auto; background: var(--wall); padding: 120px 48px 90px; animation: slide .5s var(--e); }
.index-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; max-width: 1280px; margin: 0 auto 34px; align-items: end; }
.index-h h2 { margin: 0; font: 700 96px/.9 var(--disp); text-transform: uppercase; letter-spacing: -.01em; }
.index-h p { margin: 12px 0 0; grid-column: 1; font-size: 15px; color: var(--ink-2); }
.index-h .close { grid-column: 2; grid-row: 1; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid var(--graphite); }
.index-c { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1.5fr 1fr 1fr 1fr; gap: 28px; }
.index-c section { min-width: 0; border-top: 2px solid var(--graphite); padding-top: 12px; }
.index-c h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 22px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.index-c h3 .gl { --wall-2: var(--wall); }
.index-c ul { list-style: none; margin: 0; padding: 0; }
.index-c button { display: block; width: 100%; text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 14.5px/1.35 var(--sans); }
.index-c button em { display: block; font: 400 11px/1.4 var(--mono); font-style: normal; color: var(--ink-2); }
.index-c button:hover { color: var(--ox); }
body.list-open .tray, body.list-open .zoom, body.list-open .find, body.list-open .legend { display: none; }
body.list-open .base { z-index: 31; } body.list-open .tools { z-index: 31; }

/* ---------- legal pages (privacy, terms, cookie, impressum) ---------- */
.docbody { overflow: auto; height: auto; background: var(--wall); }
.docbody .dochead { padding: 22px 32px; border-bottom: 1px solid var(--graphite); background: var(--wall); display: flex; align-items: center; justify-content: space-between; }
.docbody .dochead img { height: 42px; width: auto; display: block; }
.docbody .dochead span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.doc { max-width: 820px; margin: 0 auto; padding: 40px 32px 80px; background: var(--wall-2); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 80vh; }
.doc h1 { font: 600 60px/.95 var(--disp); text-transform: uppercase; margin: 24px 0 18px; }
.doc h2 { font: 600 26px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .02em; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--graphite); }
.doc h3 { font: 600 15px/1.3 var(--sans); margin: 22px 0 6px; }
.doc p, .doc li { font-size: 15px; line-height: 1.6; max-width: 70ch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 12px 0 18px; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--graphite); }
.doc code { font: 400 12.5px/1.4 var(--mono); }
.doc .ck-page button { border-radius: 2px; }

/* ---------- phone and narrow ---------- */
@media (max-width: 1180px) {
  .find { width: 240px; } .tools .lang { right: 252px; }
  .tray { width: calc(100vw - 150px); left: calc(50% + 40px); }
  body.sheet-open .tray { width: calc(100vw - var(--sheet) - 120px); left: calc((100vw - var(--sheet)) / 2 + 40px); grid-template-columns: minmax(0, 1fr) auto; }
  body.sheet-open .tray .tray-h { display: none; }
  body.sheet-open .tools .legend { display: none; }
}
@media (max-width: 900px) and (min-width: 760px) { :root { --sheet: 400px; } .tray { grid-template-columns: minmax(0, 1fr) auto; } .tray .tray-h { display: none; } }
@media (max-width: 759px) {
  .cap { top: 12px; left: 16px; right: 16px; width: auto; }
  .brand { margin-bottom: 8px; } .brand img { height: 34px; }
  .who { font-size: 12.5px; line-height: 1.38; margin-bottom: 0; max-width: none; } .how { display: none; }
  .whois { position: absolute; right: 92px; top: 6px; font-size: 10px; padding: 3px 0; border-bottom-width: 1px; }
  .tools { top: 118px; left: 16px; right: 16px; align-items: stretch; gap: 6px; }
  .find { width: 100%; } .find .lbl { display: none; } .find input { font-size: 15px; }
  .tools .lang { top: -106px; right: 0; } .lang button { padding: 6px 8px; }
  .legend { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .legend::-webkit-scrollbar { display: none; }
  .legend .lbl { display: none; } .legend button { flex: none; padding: 7px 9px; }
  .zoom { left: auto; right: 8px; bottom: 168px; flex-direction: row; gap: 3px; }
  .zoom button { min-width: 32px; height: 30px; padding: 0 7px; font-size: 16px; } .zoom button.fit { font-size: 9.5px; }
  .tray { left: 8px; right: 8px; bottom: 70px; width: auto; transform: none; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 10px 10px 14px; }
  .tray-h { grid-column: 1 / -1; } .tray-h .lbl { display: inline; margin-right: 6px; } .tray-hint { display: none; } .tray.coll .tray-hint, .tray.warn .tray-hint { display: inline; font-size: 12px; }
  .knots { gap: 0 12px; } .kn { padding: 2px 0; gap: 5px; } .kn span { font-size: 11.5px; } .kn + .kn::before { left: -10px; width: 7px; } .kn .x { display: none; }
  .tray-b { gap: 4px; } .tray-b .btn { padding: 10px 10px; font-size: 10.5px; } .tray-b .txt { display: none; }
  .tray.has { grid-template-columns: minmax(0, 1fr); } .tray.has .tray-b { justify-content: flex-end; } .tray.has .tray-b .txt { display: inline-block; margin-right: auto; }
  .base { padding: 8px 14px 10px; flex-direction: column; gap: 3px; font-size: 10.5px; line-height: 1.4; }
  .legal { white-space: normal; }
  .sheet { top: auto; left: 0; width: auto; height: 80dvh; border-left: 0; border-top: 1px solid var(--graphite); padding: 54px 20px 40px; box-shadow: 0 -24px 40px -24px rgba(28, 31, 35, .35); animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .sheet .close { top: 14px; right: 18px; }
  body.sheet-open .tools { right: 16px; } body.sheet-open .base { right: 0; }
  .app::before { content: ''; position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 200px; background: linear-gradient(var(--wall) 88%, rgba(230, 233, 235, 0)); pointer-events: none; }
  body.sheet-open .app::before { height: 104px; } body.sheet-open .tools .find, body.sheet-open .tools .legend { display: none; }
  body.sheet-open .tray { display: none; }
  .ttl { font-size: 48px; } .ttl.long { font-size: 36px; } .ttl.issue-t { font-size: 32px; } .ask .ttl { font-size: 42px; }
  .facts .row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .author { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } .author img { width: 76px; height: 76px; }
  .index { padding: 96px 16px 80px; }
  .index-h { grid-template-columns: 1fr; } .index-h h2 { font-size: 56px; } .index-h .close { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 14px; }
  .index-c { grid-template-columns: 1fr; gap: 22px; }
  .docbody .dochead { padding: 16px; } .doc { padding: 28px 16px 60px; } .doc h1 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html.static *, html.static *::before, html.static *::after { transition: none !important; animation: none !important; }
html.static .intro .edge { stroke-dasharray: none; stroke-dashoffset: 0; } html.static .intro .node, html.static .intro .region { opacity: 1; }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: stefano-baudino */
.ck { left: auto; right: 44px; bottom: 156px; width: 352px; max-width: none; background: var(--wall-2); color: var(--ink); border: 1px solid var(--ox); border-radius: 0; padding: 14px 16px 14px; font-family: var(--sans); box-shadow: none; }
.ck::before { content: ''; position: absolute; left: -58px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 4px var(--wall), 0 0 0 5px rgba(43, 47, 52, .25); }
.ck::after { content: ''; position: absolute; left: -44px; top: 27px; width: 43px; border-top: 2px solid var(--ox); }
.ck .ck-k { display: inline-block; margin-bottom: 8px; padding: 2px 6px 1px; font: 600 10px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--wall-2); background: var(--ox); }
.ck .ck-t b { display: block; margin-bottom: 6px; font: 600 22px/1.02 var(--disp); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.ck .ck-p { font: 400 12.5px/1.45 var(--sans); color: var(--ink-2); }
.ck .b { margin-top: 12px; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.ck button { padding: 9px 12px; border-radius: 2px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .3s var(--e), color .3s var(--e); }
.ck .ok { background: var(--ox); border: 1px solid var(--ox); color: var(--wall-2); } .ck .ok:hover { background: var(--ox-2); }
.ck .no { background: transparent; border: 1px solid var(--graphite); color: var(--ink); } .ck .no:hover { background: var(--graphite); color: var(--wall-2); }
.ck .more { margin-left: 4px; font: 500 11px/1.2 var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } .ck .more:hover { color: var(--ox); }
body.sheet-open .ck { right: calc(var(--sheet) + 44px); }
@media (max-width: 759px) { .ck { --ck-bottom: 12px; } .ck::before { left: 22px; top: -36px; } .ck::after { left: 28px; top: -24px; width: 0; height: 23px; border-top: 0; border-left: 2px solid var(--ox); } body.sheet-open .ck { right: 10px; } }
/* seller block: opened from "Titolare", drawn as the side sheet's twin — square, pale wall, graphite rule, mono heads */
footer.seller.panel { background: var(--wall-2); color: var(--ink); border: 1px solid var(--graphite); border-radius: 0; box-shadow: 0 30px 60px -30px rgba(28, 31, 35, .45); font-family: var(--sans); padding: 26px 28px 22px; bottom: 64px; }
footer.seller.panel::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--ox); }
footer.seller b { font: 600 10px/1.4 var(--mono); letter-spacing: .13em; opacity: 1; color: var(--ox); }
footer.seller strong { font: 600 19px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
footer.seller a { color: var(--ink); text-underline-offset: 3px; }
footer.seller .x { color: var(--ink); font-family: var(--mono); }
@media (max-width: 700px) { footer.seller.panel { left: 8px; right: 8px; bottom: 8px; padding: 22px 18px 18px; } }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
