/* Early-2000s look: fixed-width page, Verdana, a banner, a side column of boxes. */
:root {
  --face: #d4d0c8; /* button face, as in the program */
  --hi: #ffffff;
  --lo: #808080;
  --navy: #003366;
  --gold: #cc9900;
}
body { margin: 0; padding: 16px 8px; background: var(--face); font: 12px/1.5 Verdana, Tahoma, Arial, sans-serif; color: #000; }
a { color: #0033cc; }
a:visited { color: #663399; }
a:hover { color: #cc0000; }
a:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.page { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--lo); box-shadow: 2px 2px 0 rgb(0 0 0 / 0.25); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: #fff; padding: 14px 16px; border-bottom: 3px solid var(--gold); }
.banner .name { font: bold 26px Georgia, "Times New Roman", serif; }
.banner .tag { font-size: 12px; color: #ffcc66; }
.stress-art { display: block; width: 320px; max-width: 100%; height: auto; flex: none; border: 1px solid #48708e; box-shadow: 4px 4px 0 #00264d; image-rendering: pixelated; }
.menu { background: #e8e4dc; border-bottom: 1px solid var(--lo); padding: 5px 16px; font-weight: bold; font-size: 11px; }
.cols { display: flex; }
.side { width: 180px; flex: none; padding: 12px; background: #f4f2ee; border-right: 1px solid #c0c0c0; }
.box { border: 1px solid var(--lo); background: #fff; margin-bottom: 12px; padding: 0 8px 8px; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.box-title { margin: 0 -8px 6px; padding: 2px 8px; background: #336699; color: #fff; font-weight: bold; }
.main { flex: 1; padding: 4px 16px 16px; min-width: 0; }
.main h2 { font-size: 14px; color: var(--navy); border-bottom: 1px solid var(--gold); margin: 14px 0 8px; padding-bottom: 2px; }
.main ul { padding-left: 20px; }
/* a code name never breaks at its hyphens */
.code { white-space: nowrap; }
.small { font-size: 10px; color: #555; }
.foot { border-top: 1px solid var(--lo); background: #e8e4dc; padding: 5px 16px; font-size: 10px; text-align: center; }

/* The program, shown as its own window: title bar, two drawings, a button, a status bar. */
.window { margin: 14px 0; padding: 3px; background: var(--face); border: 1px solid; border-color: var(--face) #404040 #404040 var(--face); box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--lo), 2px 2px 0 rgb(0 0 0 / 0.3); font: 11px/1.4 Tahoma, Verdana, sans-serif; }
.title-bar { display: flex; align-items: center; gap: 5px; padding: 2px 2px 2px 4px; color: #fff; font-weight: bold; background: linear-gradient(to right, #0a246a, #a6caf0); }
.title-bar img { background: var(--face); }
.caption-buttons { display: flex; gap: 2px; margin-left: auto; }
.caption-buttons i { width: 16px; height: 14px; background: var(--face) center / 8px 8px no-repeat; border: 1px solid; border-color: var(--hi) #404040 #404040 var(--hi); box-shadow: inset -1px -1px 0 var(--lo); }
.caption-buttons .min { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 6h5v2H1z'/%3E%3C/svg%3E"); }
.caption-buttons .max { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v8H0zM1 2v5h6V2z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.caption-buttons .close { margin-left: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 1l6 6M7 1L1 7' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.window-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 6px 4px; }
/* both drawings as tall as the taller one, side by side */
.window figure { margin: 0; display: flex; flex-direction: column; }
.window figcaption { margin-bottom: 3px; }
.window svg { flex: 1; display: block; width: 100%; height: auto;background: #fff; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); box-shadow: inset 1px 1px 0 #404040; font-family: Tahoma, Verdana, sans-serif; }
.window .concrete { fill: #d6d3cd; stroke: #8a857c; stroke-width: 1.2; }
.window .stirrup { fill: none; stroke: #57534e; stroke-width: 3.2; }
.window .bar circle { fill: #fff; stroke: #9a3412; stroke-width: 1.2; }
.window .leader polyline, .window .dim path { fill: none; stroke: #000; stroke-width: 0.8; }
.window .label { font-size: 15px; }
.window .stirrup-label { fill: #57534e; }
.window .plot { fill: #fff; stroke: #a0a0a0; }
.window .grid { fill: none; stroke: #e2dfd8; }
.window .zero { fill: none; stroke: #2e2e2e; }
.window .tick, .window .axis { font-size: 13px; fill: #2e2e2e; }
.window .neg, .window .pos { fill: none; stroke-width: 2; stroke-linejoin: round; }
.window .neg { stroke: #b45309; }
.window .pos { stroke: #1d4ed8; stroke-dasharray: 5 4; }
.window .yield { fill: #be123c; stroke: #fff; stroke-width: 1.5; }
.window .max { fill: #000; stroke: #fff; stroke-width: 1.5; }
.window .key { font-size: 14px; font-weight: bold; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.window-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 4px 6px 8px; }
/* the default button of a dialog: raised, with a black frame */
.button, .button:visited { display: inline-block; padding: 4px 14px; color: #000; font-weight: bold; text-decoration: none; background: var(--face); border: 1px solid; border-color: var(--hi) #404040 #404040 var(--hi); box-shadow: inset -1px -1px 0 var(--lo); outline: 1px solid #000; }
.button:hover { color: #000; background: #dcd9d2; }
.button:active { border-color: #404040 var(--hi) var(--hi) #404040; box-shadow: inset 1px 1px 0 var(--lo); }
.button:focus-visible { outline: 1px solid #000; box-shadow: inset -1px -1px 0 var(--lo), inset 0 0 0 3px var(--face), inset 0 0 0 4px #000; }
.status-bar { display: flex; flex-wrap: wrap; gap: 2px; }
.status-bar span { padding: 1px 6px; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); white-space: nowrap; }
.status-bar span:first-child { flex: 1; }

/* The demonstration: a tab control as in a Windows 2000 dialog, made of radio buttons (no script); the GIF of a closed tab is not loaded. */
.demo > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-row { display: flex; flex-wrap: wrap; gap: 0 1px; padding: 6px 6px 0; }
.tab-row label { position: relative; top: 1px; padding: 2px 8px 3px; margin-top: 2px; cursor: pointer; background: var(--face); border: 1px solid; border-bottom: 0; border-color: var(--hi) #404040 var(--face) var(--hi); border-radius: 3px 3px 0 0; box-shadow: inset -1px 0 0 var(--lo); white-space: nowrap; }
.tab-panels { margin: 0 6px 6px; padding: 8px; border: 1px solid; border-color: var(--hi) #404040 #404040 var(--hi); box-shadow: inset -1px -1px 0 var(--lo); }
.demo .tab-panel { display: none; margin: 0; }
.tab-panel img { display: block; width: 100%; height: auto; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.tab-panel figcaption { margin-top: 5px; }
#demo0:checked ~ .tab-panels > :nth-child(1), #demo1:checked ~ .tab-panels > :nth-child(2), #demo2:checked ~ .tab-panels > :nth-child(3), #demo3:checked ~ .tab-panels > :nth-child(4),
#demo4:checked ~ .tab-panels > :nth-child(5), #demo5:checked ~ .tab-panels > :nth-child(6), #demo6:checked ~ .tab-panels > :nth-child(7), #demo7:checked ~ .tab-panels > :nth-child(8) { display: block; }
/* the open tab stands taller and joins the page under it */
#demo0:checked ~ .tab-row > :nth-child(1), #demo1:checked ~ .tab-row > :nth-child(2), #demo2:checked ~ .tab-row > :nth-child(3), #demo3:checked ~ .tab-row > :nth-child(4),
#demo4:checked ~ .tab-row > :nth-child(5), #demo5:checked ~ .tab-row > :nth-child(6), #demo6:checked ~ .tab-row > :nth-child(7), #demo7:checked ~ .tab-row > :nth-child(8) { z-index: 1; margin-top: 0; padding-bottom: 5px; font-weight: bold; }
#demo0:focus-visible ~ .tab-row > :nth-child(1), #demo1:focus-visible ~ .tab-row > :nth-child(2), #demo2:focus-visible ~ .tab-row > :nth-child(3), #demo3:focus-visible ~ .tab-row > :nth-child(4),
#demo4:focus-visible ~ .tab-row > :nth-child(5), #demo5:focus-visible ~ .tab-row > :nth-child(6), #demo6:focus-visible ~ .tab-row > :nth-child(7), #demo7:focus-visible ~ .tab-row > :nth-child(8) { outline: 1px dotted #000; outline-offset: -4px; }

@media (max-width: 640px) {
  .banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stress-art { align-self: center; }
  .cols { flex-direction: column; }
  /* the side column only repeats the bar above and the Contact section below */
  .side { display: none; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .status-bar span { flex: 1 1 auto; }
  .button { padding: 9px 16px; font-size: 13px; }
  .menu { padding: 9px 16px; font-size: 12px; }
}
