/* /company page-local: the corporate record, the counterparty sketch, the roster, the substitution and the stamp rack.
   Tokens only; geometry in CSS/SVG, every word in HTML. */

/* the entity, and its record beside it */
.entity .ent-t{font:600 22px/1.3 var(--f-sans);color:var(--head)}
.entity .prose .ent-t + p{margin-top:12px}
.entity .prose p.fine{font-size:15.5px;line-height:1.6;color:var(--label)}
.entity .prose p.fine a{color:var(--head)}
.rec{margin-top:0;padding:24px 26px 20px}
.rec .dg-h{margin-bottom:6px}
.rec .defs{grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr);border-top:0}
.rec .defs dt{font-size:15.5px}
.rec .defs dd{font-size:16px;color:var(--head)}
.rec .defs dd a{color:var(--head);text-underline-offset:4px;font-variant-numeric:tabular-nums}
.rec .defs>div:last-child>*{border-bottom:0}
.rec-note{display:block;margin-top:4px;font-size:14.5px;color:var(--label)}

/* the counterparty sketch inside its ledger row */
.ledger .acct{margin-top:18px;padding:18px 18px 12px}
.ledger .acct .nd{padding:10px 14px}
.ledger .acct .nd-t{font-size:16.5px}
.nochain{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.nochain span{padding:7px 12px;border-radius:6px;border:1px dashed var(--nd-bd);font:500 15px/1.3 var(--f-sans);color:var(--label);text-decoration:line-through;text-decoration-color:var(--warn)}
.acct .bd-cross{padding:10px 0 4px}
.bd-cross svg{width:18px;height:18px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none}

/* the roster: the source's initials, set as a quiet monogram above each name */
.roster .mono{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:14px;border-radius:50%;border:1px solid var(--rule);font:500 17px/1 var(--f-head);letter-spacing:.04em;color:var(--head)}
.roster .p-role{margin-top:4px;font:600 15px/1.4 var(--f-sans);color:var(--label)}
.roster .p-role + p{margin-top:12px}

/* the substitution: the logo wall, struck out */
.subst .chain>.nd{flex:1 1 0}
.subst .wall{display:flex;flex-direction:column;gap:14px}
.frames{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.frames i{display:block;aspect-ratio:11/8;border-radius:6px;border:1px solid var(--nd-bd);background:color-mix(in srgb,var(--head) 3%,transparent)}
.frames svg{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);overflow:visible}
.frames path{fill:none;stroke:var(--warn);stroke-width:1.6;vector-effect:non-scaling-stroke;opacity:.85}
.subst .cx{min-width:150px}
.subst .cx b{max-width:9em}
.subst .keys li + li{padding-top:10px;border-top:1px solid var(--nd-bd)}
.subst .keys li{font-size:16px;color:var(--head)}

/* the stamp rack: three stamps available, the fourth held back */
.stamps{margin-top:0}
.stamp-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stamp-l li{display:flex;align-items:center;justify-content:center;min-height:56px;padding:8px 12px;border-radius:6px;border:1px solid var(--nd-bd);box-shadow:inset 0 0 0 4px var(--nd-bg),inset 0 0 0 5px var(--nd-bd);background:var(--nd-bg);font:600 16px/1.2 var(--f-sans);letter-spacing:.02em;color:var(--head)}
.stamp-l li.held{color:var(--warn);border-color:var(--warn);background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--warn) 16%,transparent) 0 1px,transparent 1px 7px),var(--nd-bg);box-shadow:none;text-decoration:line-through;text-decoration-thickness:1.5px}
.held-k{margin-top:10px;text-align:right}

/* the closing band keeps its source label; in the brief the head sits inside the panel, so the rail offset adds the panel padding */
@media (min-width:700px){ .brief .panel .sh-r{right:calc(100% + var(--gl) + var(--gr) + 57px)} }

@container (max-width: 560px){
  .subst .chain>.cx{min-width:0}
}
@media (max-width:699px){
  .rec{padding:18px 16px 14px}
  .rec .defs{grid-template-columns:1fr}
  .entity .ent-t{font-size:20px}
}

/* a ledger row whose text runs to two paragraphs */
.ledger li>div>p + p{margin-top:14px}
/* five sections: the page index holds them on one line on a wide screen */
@media (min-width:1200px){ .index ol{grid-template-columns:repeat(5,minmax(0,1fr))} }

/* the wall's caption: the drawing's own two label lines, then the refusal */
.subst .wall-n .nd-s{margin-top:0}
.subst .wall-n .dg-k{margin-top:8px}
