/* The tire-forces tool (the website's own, on the course's wheel). A toolbar across the top (the wheel's mode; the
   view), under it the stage and, beside it, the side panel: the forces, the torques and the axes by name, then what
   the one under the pointer is. The page's frame takes the height of main and keeps the tallest it has seen, so main
   fills the frame (min-height: 100vh), the stage and the side panel share its height, and the text box keeps the
   height of its longest text at the frame's width (set by the script): no state leaves a blank band
   (docs/standards/tool-handover.md, section 3). */
* { box-sizing: border-box; }
/* a scrollbar must not change the width, for the stage's height follows it */
html { scrollbar-gutter: stable; }
html, body { margin: 0; background: #f4f5f1; color: #1f2a24;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.tf { display: grid; gap: 10px; padding: 8px; min-height: 100vh; }
@media (min-width: 800px) { .tf { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-rows: 1fr; } }

/* the colors of the arrows, as text: each a little darker than on the model, for contrast on white */
.tf__c-Fx { --c: #c2410c; } .tf__c-Rx { --c: #6d28d9; } .tf__c-Fl { --c: #1d4ed8; } .tf__c-Rz { --c: #047857; }
.tf__c-Ww { --c: #334155; } .tf__c-Ff { --c: #92400e; } .tf__c-Tw { --c: #be185d; } .tf__c-Mx { --c: #0e7490; }
.tf__c-My { --c: #7e22ce; } .tf__c-Mz { --c: #4338ca; } .tf__c-axes { --c: #1f2a24; } .tf__c-gamma { --c: #0f766e; }

/* the view: the mode and the view right above the stage; the stage takes the rest of the column's height */
.tf__view { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.tf__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* the views, inside the stage at its top right (the instructor, 2026-11-21); each view is framed below them */
.tf__views { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 4px; max-width: calc(100% - 16px); }
.tf__views .tf__btn { min-height: 32px; padding: 3px 9px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tf__pick { display: inline-grid; grid-template-columns: auto auto auto; border: 1px solid #0f766e; border-radius: 8px; overflow: hidden; background: #fff; }
.tf__seg { min-height: 38px; padding: 4px 12px; border: 0; background: #fff; color: #1f2a24; font: inherit; font-size: 15px;
  font-weight: 650; cursor: pointer; }
.tf__seg + .tf__seg { border-left: 1px solid #0f766e; }
.tf__seg:hover { background: #eef6f2; }
.tf__seg[aria-pressed="true"] { background: #0f766e; color: #fff; }
.tf__seg:focus-visible { outline: 3px solid #f59e0b; outline-offset: -3px; }
.tf__btn { min-height: 36px; padding: 4px 9px; border: 1px solid #b9c6bd; border-radius: 8px; background: #fff; color: #1f2a24;
  font: inherit; font-size: 14px; cursor: pointer; }
.tf__btn:hover { border-color: #0f766e; background: #eef6f2; }
.tf__btn[aria-pressed="true"] { border-color: #0f766e; background: #dcefe6; box-shadow: inset 0 -2px #0f766e; }
.tf__btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* the stage: about as tall as wide beside the panel; square when stacked. Its least height is bounded by the frame's
   width, so that it cannot grow with the frame's height, which follows it. */
.tf__stage { position: relative; min-width: 0; border-radius: 10px; overflow: hidden; background: #e9ece6; }
@media (min-width: 800px) { .tf__stage { min-height: min(calc((100vw - 26px) * 0.5), calc(100vh - 60px)); } }
@media (max-width: 799px) { .tf__stage { min-height: min(calc(100vw - 16px), 620px); } }
.tf__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.tf__canvas:active { cursor: grabbing; }
.tf__loading { position: absolute; inset: auto 0 46% 0; margin: 0; text-align: center; color: #5f7468; }
.tf__loading[hidden] { display: none; }

/* the names on the model: one per arrow, at its head */
.tf__tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tf__tag { position: absolute; left: 0; top: 0; min-width: 28px; height: 28px; padding: 0 7px; border: 2px solid var(--c);
  border-radius: 14px; background: rgba(255, 255, 255, .94); color: var(--c); font: inherit; font-size: 15px; font-weight: 750;
  line-height: 24px; white-space: nowrap; pointer-events: auto; cursor: help; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tf__tag sub { font-size: 11px; line-height: 0; }
.tf__tag--axis { border-color: transparent; background: rgba(255, 255, 255, .7); font-style: italic; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.tf__tag:hover, .tf__tag:focus-visible, .tf__tag.is-on { background: var(--c); color: #fff; outline: none; }
.tf__tag[hidden] { display: none; }

/* the wheel scrolls the page; over the stage it says, for a moment, how to zoom */
.tf__zoomhint { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%); margin: 0; padding: 8px 14px;
  border-radius: 18px; background: rgba(23, 33, 28, .8); color: #fff; font-size: 15px; font-weight: 650; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .25s; }
.tf__zoomhint.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tf__zoomhint { transition: none; } }

/* the side panel: the names by group, then the text of the one chosen, which takes the rest of the height */
.tf__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tf__index { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 5px 8px; padding: 7px 9px;
  border: 1px solid #d3dcd6; border-radius: 10px; background: #fff; }
.tf__gh { margin: 0; padding-top: 6px; font-size: 13.5px; font-weight: 750; color: #0f5f59; }
.tf__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tf__chip { display: inline-flex; align-items: baseline; gap: 4px; min-height: 30px; padding: 3px 7px; border: 1px solid #b9c6bd;
  border-radius: 8px; background: #fff; color: #34433c; font: inherit; font-size: 13px; line-height: 1.3; cursor: pointer; }
.tf__csym { color: var(--c); font-size: 16px; font-weight: 750; }
.tf__csym sub { font-size: 11.5px; }
.tf__chip.is-off { color: #7d8a82; }
.tf__chip.is-off .tf__csym { opacity: .6; }
.tf__chip:hover, .tf__chip.is-on { border-color: var(--c); background: #fbf7f2; box-shadow: inset 0 -3px var(--c); }
.tf__chip:focus-visible { outline: 3px solid #f59e0b; outline-offset: 1px; }
.tf__info { flex: 1 0 auto; margin: 0; padding: 9px 12px 8px; border-left: 3px solid #0f766e; border-radius: 0 8px 8px 0;
  background: #fff; color: #34433c; font-size: 14.5px; line-height: 1.45; }
.tf__info p { margin: 0 0 7px; }
.tf__info b { color: #1f2a24; }
.tf__ih { margin: 0 0 6px; color: #1f2a24; font-size: 16px; font-weight: 750; line-height: 1.3; }
.tf__isym { color: var(--c); font-size: 19px; margin-right: 2px; }
.tf__none { color: #6f7f75; font-size: 14px; font-weight: 500; }
.tf__eq { padding: 4px 8px; border-radius: 6px; background: #f1f5f0; color: #1f2a24; font-size: 15px; }
.tf__props { margin: 0 0 7px; padding-left: 18px; }
.tf__props li { margin: 0 0 2px; }
.tf__now { color: #1f2a24; }
.tf__hint { color: #5f7468; font-size: 13.5px; }
.tf__src { color: #5f7468; font-size: 12.5px; line-height: 1.35; }
.tf__lead { color: #1f2a24; }
/* the normal force's two pictures, stacked, side by side where the stacked panel is wide */
.tf__pics { display: grid; gap: 5px; margin: 0 0 7px; }
.tf__pics img { display: block; width: 100%; height: auto; border: 1px solid #d3dcd6; border-radius: 6px; background: #fbfcf8; }
@media (min-width: 600px) and (max-width: 799px) { .tf__pics { grid-template-columns: 1fr 1fr; } }

/* the poster: the stage alone, filling the window, without names */
.is-poster .tf { display: block; padding: 0; }
.is-poster .tf__top, .is-poster .tf__side, .is-poster .tf__tags, .is-poster .tf__loading, .is-poster .tf__views { display: none; }
.is-poster .tf__stage { position: fixed; inset: 0; border-radius: 0; }
