.fdsim {
  --sim-ink: #081213;
  --sim-paper: #eeeae1;
  --sim-mint: #a3f1dc;
  --sim-line: #30423f;
  --sim-orange: #ff7945;
  background: #0a1415;
  color: var(--sim-paper);
  padding: clamp(4rem, 8vw, 8rem) 0;
  scroll-margin-top: 3rem;
  font-family: var(--body, Arial, sans-serif);
}
.fdsim * { box-sizing: border-box; }
.fdsim [hidden] { display: none !important; }
.fdsim .fdsim-wrap { width: min(85rem, calc(100% - clamp(2.5rem, 9.5vw, 11.5rem))); margin: 0 auto; }
.fdsim .fdsim-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.6rem, 3.4vw, 3.25rem); }
.fdsim .fdsim-intro h2 {
  font-family: var(--display, Arial, sans-serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -.065em;
  line-height: .97;
  margin: 0;
  color: var(--sim-paper);
}
.fdsim .fdsim-intro h2 span { color: var(--sim-orange); }
.fdsim .fdsim-intro p { margin: 0; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.55; max-width: 24rem; color: #bec8bf; }
.fdsim .fdsim-console { border: 1px solid var(--sim-line); border-radius: .6rem; background: #0e1b1b; overflow: hidden; }
.fdsim .fdsim-bar { padding: .78rem clamp(.9rem, 2.2vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: #121f1f; border-bottom: 1px solid var(--sim-line); }
.fdsim .fdsim-views { display: flex; gap: .25rem; }
.fdsim button {
  border: 0; background: none; cursor: pointer; color: inherit; font: inherit; font-size: .94rem;
  margin: 0; border-radius: .27rem; appearance: none; min-width: 0; line-height: 1.2;
}
.fdsim button:focus-visible, .fdsim [role="button"]:focus-visible { outline: 2px solid var(--sim-orange); outline-offset: 3px; }
.fdsim .fdsim-views button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem .84rem; color: #a3b1aa; }
.fdsim .fdsim-views button svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.fdsim .fdsim-views button[aria-pressed="true"] { color: #c1f6e6; background: #273b36; }
.fdsim .fdsim-views button:hover, .fdsim .fdsim-range-options button:hover, .fdsim .fdsim-toggle:hover { color: white; background-color: #2b3b36; }
.fdsim .fdsim-source, .fdsim .fdsim-controls, .fdsim .fdsim-label, .fdsim .fdsim-details dd, .fdsim .fdsim-list, .fdsim .fdsim-count {
  font-family: var(--mono, "Courier New", monospace);
}
.fdsim .fdsim-source { font-size: .76rem; color: #bcc8bf; letter-spacing: .06em; text-align: right; }
.fdsim .fdsim-source span { color: #6c847b; padding: 0 .32em; }
.fdsim .fdsim-interior { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(16rem, .9fr); }
.fdsim .fdsim-screen { min-width: 0; display: flex; flex-direction: column; background: #0b1717; }
.fdsim .fdsim-map, .fdsim .fdsim-list { height: clamp(20rem, 33vw, 29rem); min-width: 0; flex: 1 0 auto; }
.fdsim .fdsim-map {
  display: grid; place-items: center; touch-action: pan-y;
  background-color: #0b1717;
  background-image: radial-gradient(ellipse at center, #152c243d, transparent 69%), radial-gradient(#45675c4f .7px, transparent .8px);
  background-size: auto, 1rem 1rem;
}
.fdsim .fdsim-scope { display: block; height: 100%; width: 100%; }
.fdsim .fdsim-graticule { fill: none; stroke: #427263; stroke-width: .75; }
.fdsim .fdsim-oblique { stroke-dasharray: 2 5; opacity: .66; }
.fdsim .fdsim-directions, .fdsim .fdsim-target-label { font: 10px var(--mono, "Courier New", monospace); fill: #a1bdac; }
.fdsim .fdsim-home { fill: #b7dec3; }
.fdsim .fdsim-home circle:first-child { fill: none; stroke: #669481; stroke-width: .9; }
.fdsim .fdsim-sweep { animation: fdsim-rotate 9s linear infinite; pointer-events: none; }
@keyframes fdsim-rotate { to { transform: rotate(360deg); } }
.fdsim .fdsim-target { outline: none; cursor: pointer; color: #a2dcc4; }
.fdsim .fdsim-target .fdsim-target-aura { fill: transparent; stroke: none; }
.fdsim .fdsim-target .fdsim-target-bracket { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; }
.fdsim .fdsim-target[aria-pressed="true"] { color: var(--sim-orange); }
.fdsim .fdsim-target[aria-pressed="true"] .fdsim-target-aura { fill: #ff794510; }
.fdsim .fdsim-target:is([aria-pressed="true"], :hover, :focus-visible) .fdsim-target-bracket { opacity: .95; }
.fdsim .fdsim-target-label { opacity: 0; pointer-events: none; paint-order: stroke; stroke: #0b1717; stroke-width: 3px; fill: currentColor; font-weight: 600; }
.fdsim .fdsim-target:is([aria-pressed="true"], :hover, :focus-visible) .fdsim-target-label { opacity: 1; }
.fdsim .fdsim-controls { border-top: 1px solid var(--sim-line); padding: .82rem clamp(.8rem, 2.1vw, 1.65rem); display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.fdsim .fdsim-range, .fdsim .fdsim-toggle { color: #b8c7bc; font-size: .81rem; }
.fdsim .fdsim-range, .fdsim .fdsim-range-options, .fdsim .fdsim-toggle { display: flex; align-items: center; }
.fdsim .fdsim-range { gap: .5rem; }
.fdsim .fdsim-range-options { gap: .18rem; }
.fdsim .fdsim-range-options button { min-width: 2rem; min-height: 2rem; font-family: inherit; font-size: .87rem; }
.fdsim .fdsim-range-options button[aria-pressed="true"] { color: #0b1816; background: #a6d5bc; }
.fdsim .fdsim-toggle { gap: .5rem; padding: .42rem; font-family: inherit; }
.fdsim .fdsim-switch { position: relative; width: 1.7rem; height: 1rem; border-radius: 1rem; background: #394742; border: 1px solid #799084; }
.fdsim .fdsim-switch::after { content: ""; position: absolute; top: 2px; left: 2px; border-radius: 100%; width: calc(1rem - 6px); height: calc(1rem - 6px); background: #a6b9aa; }
.fdsim .fdsim-toggle[aria-pressed="true"] .fdsim-switch { background: #83b39b; border-color: #83b39b; }
.fdsim .fdsim-toggle[aria-pressed="true"] .fdsim-switch::after { left: auto; right: 2px; background: #102b22; }
.fdsim .fdsim-readout { display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--sim-line); padding: clamp(1.5rem, 3vw, 3rem); margin: 0; }
.fdsim .fdsim-label { color: #b0c3b6; font-size: .77rem; letter-spacing: .04em; margin: 0; }
.fdsim .fdsim-readout h3 { font: 600 clamp(2.1rem, 3.65vw, 3.8rem)/1.0 var(--display, Arial, sans-serif); letter-spacing: -.06em; color: var(--sim-paper); margin: .64rem 0 .4rem; }
.fdsim .fdsim-ident { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fdsim .fdsim-profile { display: block; flex: none; width: clamp(4.5rem, 6.5vw, 6.5rem); height: auto; }
.fdsim .fdsim-operator, .fdsim .fdsim-type { font-size: .94rem; margin: 0; line-height: 1.45; }
.fdsim .fdsim-operator { color: #d6e2d8; }
.fdsim .fdsim-type { color: #a9bcb0; }
.fdsim .fdsim-route { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-block: 1px solid var(--sim-line); padding: .8rem 0; margin-top: 1.2rem; }
.fdsim .fdsim-route-info { text-align: right; }
.fdsim .fdsim-cities { display: block; color: #acbdb2; font-size: .84rem; line-height: 1.35; margin-top: .24rem; }
.fdsim .fdsim-airports { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1.2 var(--mono, monospace); letter-spacing: .04em; color: #d7e6da; }
.fdsim .fdsim-route-link { position: relative; width: 1.7rem; height: 1px; background: #8eac99; }
.fdsim .fdsim-route-link::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border: solid #8eac99; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.fdsim .fdsim-pair { display: flex; flex-wrap: wrap; gap: clamp(.9rem, 2.5vw, 2.75rem); padding: 1.05rem 0; }
.fdsim .fdsim-number { font: 500 clamp(1.35rem, 2.2vw, 2rem)/1.3 var(--display, Arial, sans-serif); margin: .25rem 0 0; letter-spacing: -.04em; white-space: nowrap; }
.fdsim .fdsim-number small { font: .8rem var(--mono, "Courier New", monospace); color: #b4c3b6; }
.fdsim .fdsim-details { font-size: .9rem; margin: 0; }
.fdsim .fdsim-details div { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .68rem 0; border-top: 1px solid var(--sim-line); }
.fdsim .fdsim-details dt { color: #abbeb3; }
.fdsim .fdsim-details dd { margin: 0; white-space: nowrap; }
.fdsim .fdsim-count { color: #9ac8b0; font-size: .8rem; margin: 1.35rem 0 0; line-height: 1.4; }
.fdsim .fdsim-list { padding: 1.25rem clamp(.9rem, 2.5vw, 2.25rem); overflow-y: auto; }
.fdsim .fdsim-list table { width: 100%; border-collapse: collapse; color: #c8d5cc; text-align: left; font-size: .87rem; }
.fdsim .fdsim-list th { font-size: .77rem; font-weight: 500; color: #9cb6a5; padding: .55rem .42rem; }
.fdsim .fdsim-list td { border-top: 1px solid var(--sim-line); padding: .35rem .42rem; }
.fdsim .fdsim-list th:last-child, .fdsim .fdsim-list td:last-child { text-align: right; }
.fdsim .fdsim-list button { font: inherit; color: #b0ddc2; padding: .45rem 0; text-decoration: underline; text-underline-offset: .22rem; }
.fdsim .fdsim-row-type { display: block; color: #a2b5aa; margin: -.18rem 0 .3rem; font: .78rem/1.3 var(--body, Arial, sans-serif); }
.fdsim .fdsim-list tr:has(button[aria-pressed="true"]) td { background: #1b2b25; }
.fdsim .fdsim-list button[aria-pressed="true"] { color: var(--sim-orange); }
.fdsim .fdsim-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 770px) {
  .fdsim .fdsim-interior { grid-template-columns: minmax(0,1.4fr) minmax(13.6rem,.9fr); }
  .fdsim .fdsim-readout { padding: 1.45rem 1rem; }
  .fdsim .fdsim-pair { gap: .85rem; }
  .fdsim .fdsim-intro { align-items: start; flex-direction: column; gap: 1rem; }
  .fdsim .fdsim-bar { gap: .5rem; }
}
@media (max-width: 620px) {
  .fdsim .fdsim-wrap { width: calc(100% - 2rem); }
  .fdsim .fdsim-intro p { max-width: 32rem; }
  .fdsim .fdsim-interior { display: flex; flex-direction: column; }
  .fdsim .fdsim-bar { flex-wrap: wrap; gap: .65rem 1rem; padding: .75rem; }
  .fdsim .fdsim-source { font-size: .75rem; margin-left: .25rem; }
  .fdsim .fdsim-views button { padding: .58rem .66rem; font-size: .89rem; }
  .fdsim .fdsim-map, .fdsim .fdsim-list { height: clamp(16rem, 76vw, 22rem); }
  .fdsim .fdsim-readout { border-left: 0; border-top: 1px solid var(--sim-line); padding: 1.4rem; }
  .fdsim .fdsim-pair { justify-content: flex-start; gap: 3rem; padding: 1rem 0; }
  .fdsim .fdsim-count { margin-top: .8rem; }
}
@media (max-width: 345px) {
  .fdsim .fdsim-controls { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fdsim .fdsim-sweep:not(.fdsim-user-motion) { animation: none; }
}
