.tie-prose {overflow-wrap:anywhere}
.chemise-table {overflow:auto;margin-block:1.15rem;border:1px solid var(--line);border-radius:.6rem}
.chemise-table table {width:100%;border-collapse:collapse;line-height:1.45}
.chemise-table caption {text-align:left;background:var(--ed-olive);font-weight:700;padding:.65rem .75rem}
.chemise-table th,.chemise-table td {text-align:left;vertical-align:top;padding:.62rem .7rem;border-top:1px solid var(--line)}
.chemise-table tbody tr:nth-child(even) {background:var(--ed-panel)}
.chemise-tip,.tie-diagram-key {padding:.75rem .95rem;border-left:3px solid var(--accent);background:var(--ed-panel)}
.tie-diagram-key p {margin:0}
.tie-swatches {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.tie-swatches > div {background:var(--ed-panel);padding:.6rem;border:1px solid var(--line);border-radius:.5rem}
.tie-swatches i {display:block;height:1.35rem;margin-bottom:.3rem;border:1px solid var(--line);border-radius:.22rem;background:var(--tie-swatch)}
.tie-swatches small {display:block;line-height:1.37;color:var(--ed-muted);font-size:.875rem}
.tie-figure {margin:1rem 0;background:var(--ed-panel);border:1px solid var(--line);border-radius:.65rem;overflow:hidden}
.tie-figure img {display:block;width:100%;height:auto;max-height:23rem;object-fit:cover}
.tie-figure figcaption {padding:.55rem .75rem;font-size:.88rem;color:var(--ed-muted)}
.tie-prose .tie-lab {margin-top:3rem}
.tie-dossier .chemise-reading:has(.tie-lab) {grid-template-columns:minmax(10rem,15rem) minmax(0,54rem)}
.tie-knot-nav {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:.45rem;padding:.4rem 0 .85rem}
.tie-knot-nav a {border:1px solid var(--line);padding:.32rem .62rem;border-radius:1rem;text-decoration:none}
.tie-knot-nav a:hover {border-color:var(--accent);color:var(--accent)}
.tie-knot {border:1px solid var(--line);border-radius:.65rem;background:var(--ed-olive);margin:.65rem 0;scroll-margin-top:.6rem}
.tie-knot summary {padding:.8rem 1rem;color:var(--ink)}
.tie-knot summary strong {font-family:"Instrument Serif",Georgia,serif;font-size:1.6rem}
.tie-knot summary > span {display:block;padding-left:1rem;font-size:.9rem;font-weight:400;color:var(--ed-muted)}
.tie-knot-body {padding:0 .9rem .9rem}
.tie-knot-body > p {margin:.3rem 0 1rem}
.tie-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:0 0 1rem;padding:0;list-style:none}
.tie-steps li {padding:0;margin:0}
.tie-steps figure {margin:0;height:100%;overflow:hidden;border:1px solid var(--line);border-radius:.53rem;background:var(--cream)}
.tie-steps svg {display:block;width:100%;color:var(--accent);background:var(--ed-panel)}
.tie-steps svg text {fill:var(--ed-muted);font:600 12px "DM Sans",sans-serif}
.tie-collar {fill:var(--cream);stroke:var(--line);stroke-width:1.6}
.tie-neck {fill:var(--ed-olive);stroke:var(--line);stroke-width:1.5}
.tie-small-pan {fill:var(--ink);opacity:.60}
.tie-front-loop {fill:var(--cream);stroke:var(--line);stroke-width:1.5}
.tie-loop-active {stroke:var(--accent);stroke-width:2.6}
.tie-step-name {display:flex;align-items:flex-start;gap:.35rem;font-size:.84rem;line-height:1.35;font-weight:700}
.tie-step-name > span {display:grid;place-items:center;min-width:1.32rem;height:1.32rem;border-radius:50%;border:1px solid var(--line);color:var(--accent)}
.tie-start {fill:var(--accent)}
.tie-movement {fill:none;stroke:var(--accent);stroke-width:3.3;stroke-linecap:round;stroke-linejoin:round}
.tie-movement-dashed {stroke-dasharray:6 5}
.tie-steps figcaption {padding:.55rem .6rem .65rem}
.tie-steps p {margin:.45rem 0 0;font-size:.91rem;line-height:1.45}
@media (max-width:900px) {.tie-steps {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px) {.tie-dossier .chemise-reading:has(.tie-lab) {grid-template-columns:1fr}}
@media (max-width:480px) {.tie-swatches {grid-template-columns:repeat(2,minmax(0,1fr))}.tie-steps {grid-template-columns:1fr}}
