.beam-table {
  --bench-ink: #192839;
  --bench-paper: #fbf9f3;
  --bench-rule: #c9c9c4;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  color: var(--bench-ink);
  background: var(--bench-paper);
  padding: clamp(1rem, 2.8vw, 2rem);
  border: 1px solid var(--bench-rule);
  border-radius: 1.35rem;
  text-align: start;
}
.beam-table *, .beam-table *::before, .beam-table *::after { box-sizing: border-box; }
.beam-table [hidden] { display: none !important; }
.beam-table .beam-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.beam-table .beam-series {
  font: inherit; font-size: .85rem; font-weight: 650; line-height: 1.3; color: #48586b;
  margin: 0 0 .5rem; letter-spacing: .025em;
}
.beam-table .beam-intro h2 {
  font: inherit; color: var(--bench-ink); font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  font-weight: 650; line-height: 1.09; letter-spacing: -.035em; margin: 0 0 .55rem;
  text-wrap: balance;
}
.beam-table:lang(ar) .beam-intro h2 { line-height: 1.35; letter-spacing: normal; }
.beam-table .beam-intro > p:last-child {
  font: inherit; color: #39495a; font-size: 1rem; line-height: 1.45; margin: 0 0 .95rem;
}
.beam-table .beam-instrument {
  --plate-base: #192b40;
  --plate-secondary: #c1cfe0;
  background: var(--plate-base); color: #faf8ef;
  padding: .8rem clamp(.6rem, 2vw, 1.15rem) .75rem; border-radius: .8rem;
}
.beam-table .beam-plot-head {
  display: flex; align-items: start; justify-content: space-between; gap: .9rem;
  font: inherit; font-size: .8rem; line-height: 1.3; color: var(--plate-secondary); margin-block-end: .6rem;
}
.beam-table .beam-plot-head > :first-child { font-weight: 650; color: #fbefd3; }
.beam-table .beam-plot-head > :last-child { text-align: end; }
.beam-table .beam-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.beam-table .beam-pane { min-width: 0; }
.beam-table .beam-plot {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: clamp(4.75rem, 10vw, 7.75rem);
  border: 1px solid #516273; border-radius: .4rem;
  background-color: #24394c;
  background-image: linear-gradient(to right, #415365 1px, transparent 1px),
                    linear-gradient(to bottom, #415365 1px, transparent 1px);
  background-size: .85rem .85rem; background-position: center center;
}
.beam-table .beam-mouth {
  position: relative; z-index: 1; width: clamp(3.1rem, 8vw, 6rem);
  max-width: calc(100% - 12px); aspect-ratio: 4 / 1; background: #0a1524;
  box-shadow: 0 0 0 1px #f0dab1, 0 0 0 4px #172a3c, 0 0 0 5px #6c7b86;
}
.beam-table [data-shape=vertical] .beam-mouth {
  width: clamp(.775rem, 2vw, 1.5rem); aspect-ratio: 1 / 4;
}
.beam-table .beam-clear { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background: #f5d58f; }
.beam-table .beam-readout {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .3rem;
  align-items: baseline; margin-block-start: .45rem;
  font: inherit; font-size: .88rem; line-height: 1.3; color: #e0e6ef;
}
.beam-table .beam-readout strong {
  font-size: 1.08rem; line-height: 1.3; font-weight: 690; font-variant-numeric: tabular-nums; color: #fff3d9;
}
.beam-table .beam-controls {
  display: block; min-width: 0; padding: 0; border: 0; margin: .95rem 0 0;
}
.beam-table .beam-controls legend, .beam-table .beam-fallback > p {
  padding: 0; font: inherit; font-size: .9rem; font-weight: 650; margin: 0 0 .4rem;
}
.beam-table .beam-buttons { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .4rem; }
.beam-table .beam-buttons button, .beam-table .beam-fallback summary {
  font: inherit; text-transform: none; letter-spacing: normal; font-size: .95rem; font-weight: 600;
  background: #fffdf9; color: #263957; box-shadow: none; border: 1px solid #8090a3;
  border-radius: .55rem; min-height: 2.75rem; margin: 0; padding: .45rem .25rem; line-height: 1.22;
  text-align: center; cursor: pointer; touch-action: manipulation;
}
.beam-table .beam-buttons button:hover, .beam-table .beam-fallback summary:hover { background: #e8ecf1; }
.beam-table .beam-buttons button[aria-pressed=true], .beam-table .beam-fallback details[open] summary {
  border-color: #263957; background: #263957; color: #fff;
}
.beam-table :is(button, summary):focus-visible { outline: 3px solid #9c6332; outline-offset: 2px; }
.beam-table .beam-fallback { margin-block-start: .9rem; }
.beam-table .beam-fallback details { margin-block: .2rem; }
.beam-table .beam-fallback summary { display: list-item; text-align: start; padding-inline: .75rem; }
.beam-table .beam-verdict {
  display: flex; align-items: start; justify-content: space-between;
  gap: .6rem; padding-block-start: .75rem;
}
.beam-table .beam-fallback details p, .beam-table .beam-verdict p {
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--bench-ink); margin: 0;
}
.beam-table .beam-verdict button {
  font: inherit; font-size: .85rem; font-weight: 600; color: #324663; cursor: pointer; text-decoration: underline;
  text-underline-offset: .15rem; text-transform: none; background: transparent; border: 0; border-radius: .25rem; padding: .15rem;
}
.beam-table .beam-assumptions {
  font: inherit; font-size: .82rem; line-height: 1.45; color: #4e5b69; margin: .7rem 0 0;
}
@media (max-width: 360px) {
  .beam-table { padding: .8rem; }
  .beam-table .beam-plot-head, .beam-table .beam-readout { font-size: .78rem; }
  .beam-table .beam-buttons button { font-size: .87rem; }
}
