/* Layout for the audited, manuscript-led construction tutorial. */
.construction-howto h1,.construction-howto h2{overflow-wrap:normal;word-break:normal;text-wrap:wrap}
.construction-howto h1 .subtitle{font-size:.62em;line-height:1.75}
.construction-howto .paper-head>p:not(.eyebrow){font-size:1.08rem;line-height:1.9}
.construction-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1.4rem;line-height:1.7}
.construction-howto math[display=inline]{font-size:1.03em;white-space:nowrap}
.construction-howto math[display=block]{font-size:1.18em;margin:.3rem auto}
.construction-howto .equation-scroll{background:#fff;border:1px solid #d1ddd6;border-radius:.3rem;padding:1rem;margin:1.3rem 0}
.construction-howto .equation-scroll:focus-visible,.construction-table:focus-visible{outline:3px solid #c38738;outline-offset:3px}
.construction-howto li{margin:.6rem 0}
.construction-table{overflow-x:auto;max-width:100%;margin:1.4rem 0 1.8rem;border:1px solid #cbd6d0;border-radius:.3rem;background:white}
.construction-table table{width:100%;border-collapse:collapse;line-height:1.7;font-size:.93rem;text-align:left}
.construction-table th,.construction-table td{padding:.85rem .8rem;border-bottom:1px solid #d6deda;vertical-align:top}
.construction-table th{background:#edf3ef;font-weight:700}
.construction-table tbody tr:last-child td{border-bottom:0}
.construction-table th[scope=row]{background:transparent;font-weight:400}
#components .construction-table table{min-width:36rem}
#components .construction-table th:nth-child(1){width:31%}
#components .construction-table th:nth-child(2){width:16%}
#local-records .construction-table table{min-width:40rem}
#local-records .construction-table th:first-child{width:15%}
#local-records .construction-table th:nth-child(2){width:30%}
#comparison-conditions .construction-table table{min-width:35rem}
#comparison-conditions .construction-table th:first-child{width:31%}
#time-representation .construction-table table,#object-trajectory .construction-table table{min-width:34rem}
@media(max-width:600px){.construction-toc{grid-template-columns:1fr}.construction-howto h2{font-size:1.24rem}.construction-howto h1 .subtitle{font-size:.61em}.construction-howto .paper-head>p:not(.eyebrow){font-size:1rem}.construction-howto math[display=block]{font-size:1em}.construction-howto .equation-scroll{padding:.8rem .65rem}.construction-table th,.construction-table td{padding:.7rem .65rem}.construction-howto .related-explanation h2{font-size:1.2rem}}
@media print{.construction-table{overflow:visible}.construction-table table{min-width:0!important}.construction-howto .equation-scroll{overflow:visible;border:0}.construction-toc{display:none}}

/* Visual types are also identified by shape, labels and full text captions. */
.construction-diagram{margin:1.8rem 0 2.1rem;padding:1rem;border:1px solid #ccd6df;border-radius:.7rem;background:#fff}
.construction-diagram .diagram-scroll{max-width:100%;overflow-x:auto;padding:.3rem}
.construction-diagram .diagram-scroll:focus-visible{outline:3px solid #c38738;outline-offset:3px}
.construction-diagram img{display:block;width:100%;height:auto;min-width:38rem}
.construction-diagram figcaption{margin:.9rem 0 0;font-size:.95rem;line-height:1.9}
.construction-diagram figcaption p:last-child{margin-bottom:0}
.construction-diagram .diagram-key{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1rem;margin:0 0 1rem;font-family:system-ui,sans-serif;font-size:.9rem}
.diagram-key li{display:flex;align-items:center;gap:.65rem;margin:0!important}
.diagram-key .key-symbol{display:inline-flex;align-items:center;justify-content:center;flex:0 0 3.5rem;min-height:2.8rem;border:2px solid;font-family:Georgia,serif;font-size:1.25rem;font-weight:700}
.diagram-key .position-red{border-color:#a92c36;color:#a92c36;background:#fff1f2;border-radius:.3rem}
.diagram-key .position-blue{border-color:#1769aa;color:#1769aa;background:#edf6ff;border-radius:.3rem}
.diagram-key .position-green{border-color:#247447;color:#247447;background:#eef8ef;border-radius:.3rem}
.diagram-key .record-key{border-radius:.2rem;color:#79520e;background:#fff4d7}
.diagram-key .class-key{border-radius:.9rem;color:#70459c;background:#f3edfc}
.diagram-key .coordinate-key{border-radius:.2rem;color:#4a5568;background:#f0f2f4}
.diagram-key .value-key{border-radius:0;border-style:double;border-width:4px;color:#a13d0b;background:#fff0e3}
.construction-diagram .diagram-open{display:inline-block;margin-top:.8rem;font-size:.86rem}
@media(max-width:600px){.construction-diagram{padding:.65rem}.construction-diagram .diagram-key{grid-template-columns:1fr}.construction-diagram figcaption{font-size:.93rem}}
@media print{.construction-diagram{break-inside:avoid}.construction-diagram .diagram-scroll{overflow:visible}.construction-diagram img{min-width:0}.construction-diagram .diagram-open{display:none}}

/* Preserve source-position colors through classes, coordinates and values. */
.construction-howto .source-label-R{color:#b13434}
.construction-howto .source-label-B{color:#145b93}
.construction-howto .source-label-G{color:#25723f}

/* Name badges follow the diagrams without coloring entire sentences. */
.construction-howto .prose-label{font-weight:600;padding:.025em .13em;border-radius:.18em;border-bottom:1px solid currentColor;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.construction-howto .prose-label-R{color:#b13434;background:#fff0ee}
.construction-howto .prose-label-B{color:#145b93;background:#e8f3ff}
.construction-howto .prose-label-G{color:#25723f;background:#ecf7ec}
.construction-howto .prose-label-class{color:#70459c;background:#f3edfc}
.construction-howto .prose-label-coordinate{color:#4a5568;background:#f0f2f4}
.construction-howto .prose-label-value{color:#a13d0b;background:#fff0e3}
