/* KasperCalc fatigue pages (FatigueLifeCalculator.html, RainflowCounting.html).
   Layout comes from css/linkage.css (lk-* classes); this file holds only what is new. */
.fl-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fl-hdbk-card { font-size: 12px; line-height: 1.55; color: var(--lk-ink); background: #f2f6f7; border-left: 3px solid var(--lk-blue); padding: 8px 10px; margin-top: 8px; overflow-wrap: anywhere; }
.fl-hdbk-card a { color: var(--lk-blue); }
select.fl-wide { width: 100%; max-width: 100%; }
.fl-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 960px) { .fl-charts { grid-template-columns: 1fr; } }
.fl-charts > div { min-width: 0; }
textarea.fl-hist { width: 100%; min-height: 150px; resize: vertical; font: 12.5px var(--lk-mono); border: 1px solid var(--lk-line); border-radius: 3px; padding: 6px 8px; }
table.fl-matrix td, table.fl-matrix th { text-align: center !important; padding: 3px 5px; }
table.fl-matrix td.z { color: #bbb; }
.fl-static { font-size: 13px; }
.fl-tall { max-height: 420px; overflow: auto; }
.lk-in select[id$="TempU"] { flex: 0 0 auto; min-width: 4.2em; }
.fl-step { margin-top: 8px; }
a.lk-btn { text-decoration: none; display: inline-block; }
.fl-step .lk-btn:disabled { opacity: .45; cursor: default; }
.fl-presets .lk-btn, .fl-step .lk-btn { font-weight: 500; }
#rfStepText { min-height: 3em; font-size: 13px; }
.lk-toolbar input[type=file] { max-width: 100%; font-size: 12px; }
.lk-main table.lk-res th { text-transform: none; letter-spacing: .02em; font-size: 11.5px; }

/* Equations: the standard block from kc-calc.css, also inside worked solutions. */
.lk-work-b .ref-eq-block { max-width: 100%; }
.lk-work-b p.fl-list { font: 400 12.5px/1.6 var(--lk-mono); overflow-wrap: anywhere; }
.lk-row label .sym sub, .lk-chip sub, .lk-seg sub { font-size: .78em; line-height: 0; }
.lk-seg button { white-space: nowrap; }
.lk-seg button sub { color: inherit; }

/* Page controls are medium (500), as on the linkage pages. Reference cards, equation blocks,
   tables and the citation card keep the shared site styles (css/kc-calc.css). */
.lk-seg button, .lk-btn, .lk-chip { font-weight: 500; }
/* Worked-solution text matches .ref-body p in css/kc-calc.css. */
.lk-work-b p { font-size: 13px; line-height: 1.65; color: #333; font-weight: 400; }
table.lk-res tr.fl-pick td { background: #e2ecef; }
#gdChart { touch-action: pan-y; }

/* Fatigue material data page (FatigueMaterialData.html) */
.fm-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-bottom: 10px; font: 500 13px var(--lk-ui); color: var(--lk-ink); }
.fm-filters label { display: flex; flex-direction: column; gap: 4px; }
.fm-filters input { font: 13px var(--lk-mono); border: 1px solid var(--lk-line); border-radius: 3px; padding: 5px 7px; width: 9em; }
.fm-filters input[type=search] { width: 14em; max-width: 100%; }
.fm-filters .sym { font-style: italic; }
.fm-tall { max-height: 640px; overflow: auto; }
table.fm-table { font-size: 12.5px; width: max-content; min-width: 100%; }
table.fm-table td.fm-mat { font-family: var(--lk-ui); min-width: 13em; }
table.fm-table.fm-other td.fm-fit { white-space: normal; min-width: 22em; }
table.fm-table thead th { position: sticky; top: 0; background: #fff; z-index: 1; text-align: left; vertical-align: bottom; white-space: nowrap; }
table.fm-table td { text-align: left; vertical-align: top; padding: 5px 8px; }
table.fm-table td.fm-fit { font: 12px/1.5 var(--lk-mono); white-space: nowrap; }
table.fm-table td.fm-mat a { color: var(--lk-blue); }
table.fm-table .fm-sub { display: block; font-size: 11.5px; color: var(--lk-ink-soft); }
table.fm-table tr.fm-group th { text-align: left; font-size: 12px; letter-spacing: .04em; color: var(--lk-ink); background: #eef3f4; padding: 6px 8px; }
table.fm-table td[data-c^="s"] { text-align: right; font-variant-numeric: tabular-nums; }
table.fm-table .fm-stat { white-space: normal; min-width: 7em; max-width: 10em; }
table.fm-table td[data-c="tested"] { white-space: normal; min-width: 7em; max-width: 11em; }
table.fm-table td.fm-mat { white-space: normal; max-width: 17em; }
a.lk-btn.fm-go { padding: 3px 8px; font-size: 12px; }
table.fm-other td:nth-child(2) { min-width: 16em; }

/* Strain-life page (StrainLifeCalculator.html) */
table.fm-table td.en-mat { font-family: var(--lk-ui); white-space: normal; min-width: 14em; max-width: 22em; }
table.fm-table td.en-mat a { color: var(--lk-blue); }
#slTable td[data-c] { text-align: right; font-variant-numeric: tabular-nums; }
#slSrc, #slMode { flex-wrap: wrap; }
