.array-page [hidden] { display: none !important; }
.array-page-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.array-page-nav a { color: var(--navy); font-weight: 650; text-underline-offset: 3px; }
.array-page-nav a:hover { text-decoration: underline; }
.array-page .friis-intro > p { max-width: 78ch; line-height: 1.55; }
.array-workspace { margin: 0; align-items: stretch; }
.array-wide { grid-column: 1 / -1; }
.array-workspace p, .array-method p { line-height: 1.6; }
.array-workspace .array-help { font-size: 14px; color: #516176; }
.array-inputs > .array-help { margin: -8px 0 18px; }
.array-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.array-field { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; min-width: 0; }
.array-field label { color: var(--navy); font-size: 15px; font-weight: 650; line-height: 1.4; }
.array-field label small { font-size: inherit; color: #53657a; font-weight: 500; }
.array-field input, .array-field select {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px;
  border: 1px solid #aab7c7; border-radius: 6px; background: white;
  font: inherit; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums;
}
.array-field input[aria-invalid=true] { border-color: #a13b36; }
.array-field + .array-fields, .array-field + [data-switch] { margin-top: 12px; }
.array-count { display:flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 8px 12px; margin: 12px 0 18px; background: #f1f5f8; border-radius: 6px; font-size: 15px; }
.array-count output { font: 800 18px Manrope, sans-serif; color: var(--navy); }
.array-details { margin: 18px 0 0; border-top: 1px solid var(--line); }
.array-details + .array-details { margin-top: 0; }
.array-details summary { cursor: pointer; padding: 12px 0; font-weight: 750; line-height: 1.4; }
.array-details summary::marker { color: #987025; }
.array-details[open] { padding-bottom: 14px; }
.array-details p:last-child { margin-bottom: 0; }
.array-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.array-actions button { background: white; color: var(--navy); border: 1px solid #acb8c5; }
.array-actions button:first-child { background: var(--gold); border-color: var(--gold); }
.array-actions button:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.array-primary { padding: 12px 16px 16px; margin-bottom: 6px; border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; background: #f1f5f8; }
.array-primary span { display: block; font-weight: 650; color: #455a70; }
.array-primary strong { font: 800 clamp(29px,3.8cqi,48px)/1.22 Manrope,sans-serif; letter-spacing: -.045em; }
.array-rows { margin: 0; }
.array-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 15px;
  padding: 9px 0; border-bottom: 1px solid var(--line); }
.array-rows dt { line-height: 1.4; }
.array-rows dd { margin: 0; text-align: right; }
.array-rows strong, .array-table-wrap td { font-variant-numeric: tabular-nums; }
.array-rows strong { white-space: nowrap; }
.array-figure { margin: 22px 0 2px; }
.array-figure figcaption { font-weight: 750; margin-bottom: 14px; }
.array-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 9px 0; font-size: 14px; }
.array-bar-track { grid-column: 1 / -1; height: 5px; background: #edf1f5; border-radius: 3px; overflow: hidden; }
.array-bar-track span { display: block; height: 100%; background: #345574; }
.array-bar-row:first-child .array-bar-track span { background: #a57b29; }
.array-table-wrap { max-width: 100%; overflow-x: auto; }
.array-table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.array-table-wrap caption { text-align: left; padding-bottom: 10px; color: #52647a; }
.array-table-wrap th, .array-table-wrap td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.array-table-wrap th:first-child { text-align: left; }
.array-table-wrap th[scope=row] { font-weight: 600; }
.array-table-wrap thead { background: #f1f5f8; }
.array-table-wrap td { white-space: nowrap; }
.array-table-wrap + .array-rows { margin-top: 16px; }
.array-noise-layout, .array-equations { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px 28px; }
.array-noise-layout > div > p:first-child { margin-top: 0; }
.array-noise-layout .array-field { max-width: 290px; }
.array-noise-chart { margin: 0; align-self: center; min-width: 0; }
#noise-plot { display: block; width: 100%; height: auto; }
#noise-plot text { font: 13px 'DM Sans',sans-serif; fill: #46566a; }
#noise-plot polyline { stroke-width: 2.4; }
.plot-grid { stroke: #dce3ea; }
.plot-marker { stroke: #7b8896; stroke-dasharray: 2 4; }
.plot-dot { fill: #122c47; stroke: white; stroke-width: 1.4; }
.curve-common { stroke: #9b711d; stroke-dasharray: 6 4; }
.curve-local { stroke: #53818e; stroke-dasharray: 2 3; }
.curve-total { stroke: #122c47; }
.array-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 0; font-size: 14px; }
.array-legend span::before { content: ''; display: inline-block; width: 16px; vertical-align: middle; margin-right: 5px; }
.array-legend .common::before { border-top: 2px dashed #9b711d; }
.array-legend .local::before { border-top: 2px dotted #53818e; }
.array-legend .total::before { border-top: 2px solid #122c47; }
.array-method { margin: 0 clamp(18px, 4%, 64px) 30px; }
.array-method h3 { margin: 0; font-size: 18px; }
.array-method .array-eq { font: 20px/1.6 Georgia,serif; color: var(--navy); margin: 8px 0; }
.array-equations { grid-template-columns: repeat(2,minmax(0,1fr)); padding-block: 18px; border-block: 1px solid var(--line); }
.array-equations p { margin: 6px 0 0; }
.array-source { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.array-source p { margin: 6px 0; }
.array-source a { font-weight: 750; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.array-noscript, .array-error, .array-warning { padding: 12px; border-radius: 6px; }
.array-error { color: #852c24; background: #fff5f1; }
.array-warning, .array-noscript { background: #fff7e5; color: #614511; }
@container (max-width: 770px) {
  .array-noise-layout, .array-equations { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 480px) {
  .array-field label { font-size: 14px; }
  .array-rows > div { flex-wrap: wrap; }
  .array-rows dd { margin-left: auto; }
  .array-table-wrap th, .array-table-wrap td { padding: 7px 5px; }
}
