/* FlightSoft: a reference directory. One sans family, two weights, one accent, hairline rules, no motion. */
:root {
  color-scheme: light;
  /* color */
  --bg: #ffffff;
  --text: #202122;          /* body, headings, values */
  --muted: #54595d;         /* secondary text at any size; the only gray allowed on --wash */
  --faint: #72777d;         /* tertiary text, >=13px, on --bg only (4.8:1) */
  --accent: #3366cc;        /* links, the one primary button, focus */
  --accent-hover: #2a55a8;  /* darker on hover, never lighter */
  --rule: #a2a9b1;          /* text-input borders, table header bottom rule */
  --rule-light: #c8ccd1;    /* button/filter borders, screenshot frames, icon tiles, header bottom rule */
  --hair: #eaecf0;          /* row separators, h2 underline, fact-strip rules */
  --wash: #f8f9fa;          /* table header, screenshot band, footer, notices, row hover, code spans */
  --ok: #14866d;            /* the single 'Verified' tick per page; review-page checks */
  --caution: #ac6600;       /* notice left border; 'Unverified' text */
  --scrim: rgba(16,16,16,.94);
  --on-scrim: #ffffff;
  --on-scrim-line: rgba(255,255,255,.32);
  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-12: 12px;  /* legal notice, file names, copyright */
  --fs-13: 13px;  /* meta, labels, table header, breadcrumbs, sublabels */
  --fs-15: 15px;  /* body, table cells, UI controls, nav */
  --fs-17: 17px;  /* subtitles/summaries, fact values, wordmark */
  --fs-20: 20px;  /* section h2 */
  --fs-28: 28px;  /* page h1, app name */
  --lh: 1.6;         /* body */
  --lh-tight: 1.25;  /* headings, fact values, buttons */
  --fw: 400;
  --fw-strong: 600;
  /* spacing (only these values for margin/padding/gap) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  /* radii */
  --r-ctl: 4px;     /* inputs, buttons, filters, code spans, lightbox buttons */
  --r-media: 8px;   /* screenshots */
  --r-icon: 22%;    /* app icon tiles at every size */
  /* lines */
  --line: 1px solid var(--hair);
  --line-ctl: 1px solid var(--rule-light);
  --line-input: 1px solid var(--rule);
  /* layout */
  --w-page: 1080px;
  --w-prose: 720px;
  --gutter: 24px;    /* 16px under 600px */
  --header-h: 56px;
  --ctl-h: 32px;     /* search, filters, sort select, carousel arrows */
  --btn-h: 36px;     /* primary Download button */
  --icon-table: 32px; --icon-more: 48px; --icon-hero: 96px; /* --icon-hero 64px under 600px */
}
@media (max-width: 600px) { :root { --gutter: 16px; --icon-hero: 64px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { transition: none !important; animation: none !important; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; } /* safety net; layouts are built not to overflow */
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fw) var(--fs-15)/var(--lh) var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
section[id], h2[id] { scroll-margin-top: var(--s5); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--text); }
h1 { font: var(--fw-strong) var(--fs-28)/var(--lh-tight) var(--font); margin: 0 0 var(--s2); }
h1:focus { outline: none; }
h2 { font: var(--fw-strong) var(--fs-20)/var(--lh-tight) var(--font); margin: var(--s7) 0 var(--s4); padding-bottom: var(--s2); border-bottom: var(--line); }
h3 { font: var(--fw-strong) var(--fs-15)/var(--lh-tight) var(--font); margin: var(--s5) 0 var(--s2); }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: var(--s5); }
.meta { font-size: var(--fs-13); color: var(--muted); }
code { font: var(--fs-13) var(--mono); background: var(--wash); border: var(--line); border-radius: var(--r-ctl); padding: 0 var(--s1); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--bg); padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { top: var(--s2); }

.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--w-prose); }
.lead { font-size: var(--fs-17); color: var(--muted); max-width: var(--w-prose); margin: 0 0 var(--s5); }
.center-box {
  display: flex; align-items: center; gap: var(--s4); border: var(--line-ctl); border-radius: var(--r-media);
  padding: var(--s3) var(--s4); margin: 0 0 var(--s5); --icon-size: 40px;
}
.center-box p { margin: 0; flex: 1; color: var(--muted); }
.center-box p strong { color: var(--text); font-weight: var(--fw-strong); }
.cb-act { display: flex; align-items: center; gap: var(--s4); white-space: nowrap; font-size: var(--fs-13); }
.cb-act .btn-primary { font-size: var(--fs-15); }

/* buttons */
.btn-primary, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  border-radius: var(--r-ctl); padding: 0 var(--s4); white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn-primary {
  height: var(--btn-h); border: 0; background: var(--accent); color: var(--bg);
  font: var(--fw-strong) var(--fs-15)/1 var(--font);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); text-decoration: none; }
.btn {
  height: var(--ctl-h); background: var(--bg); border: var(--line-ctl); color: var(--text);
  font: var(--fw) var(--fs-15)/1 var(--font);
}
.btn:hover { background: var(--wash); color: var(--text); text-decoration: none; }
.btn:disabled { opacity: .4; cursor: default; background: var(--bg); }
select.btn { appearance: auto; padding: 0 var(--s2); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.linkbtn:hover { color: var(--accent-hover); text-decoration: underline; }

/* icon tile, every size. Padding is computed from the tile size: a % padding resolves against the
   containing block's width (a 240px table cell), which collapsed the glyph to nothing. */
.icon {
  --icon-size: var(--icon-table);
  display: block; flex: none; border-radius: var(--r-icon); /* the tile is drawn in the SVG itself */
  width: var(--icon-size); height: var(--icon-size);
}
.icon.more { --icon-size: var(--icon-more); }
.icon.hero { --icon-size: var(--icon-hero); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule-light); }
.header-row { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-size: var(--fs-17); font-weight: var(--fw-strong); white-space: nowrap; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.site-nav { display: flex; align-self: stretch; }
.site-nav a {
  display: flex; align-items: center; padding: 0 var(--s3); color: var(--text); font-size: var(--fs-15);
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: var(--fw-strong); border-bottom-color: var(--text); }
.site-search { margin-left: auto; flex: 0 1 260px; min-width: 0; }
.site-search input {
  display: block; width: 100%; height: var(--ctl-h); padding: 0 var(--s2); border: var(--line-input);
  border-radius: var(--r-ctl); background: var(--bg); color: var(--text); font-size: var(--fs-15);
}
.site-search input::placeholder { color: var(--faint); }

main { display: block; padding: var(--s6) 0 var(--s8); min-height: 60vh; }
main:focus { outline: none; }
main.app-main { padding-top: var(--s5); }

/* ---------------------------------------------------------------- catalog */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.filters .btn { padding: 0 var(--s3); font-size: var(--fs-13); }
.filters .btn .n { color: var(--faint); }
.filters .btn[aria-pressed="true"] { background: var(--wash); border-color: var(--text); font-weight: var(--fw-strong); }
.filters .btn[aria-pressed="true"] .n { color: var(--muted); }
.mobile-controls { display: none; }

.table-wrap { overflow-x: auto; }
table.cat { width: 100%; border-collapse: collapse; border-top: var(--line); }
table.cat th {
  background: var(--wash); font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--muted);
  text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
table.cat th.r, table.cat td.r { text-align: right; }
table.cat td { padding: var(--s3); border-bottom: var(--line); vertical-align: middle; }
table.cat tbody tr.row { cursor: pointer; }
table.cat tbody tr.row:hover td { background: var(--wash); }
button.sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
button.sort:hover { color: var(--text); }
button.sort .dir { font-size: var(--fs-12); color: var(--faint); margin-left: var(--s1); }
th[aria-sort="none"] button.sort .dir { visibility: hidden; }
.c-sw { width: 240px; }
.sw { display: flex; align-items: center; gap: var(--s3); }
.sw-name { font-weight: var(--fw-strong); line-height: var(--lh-tight); }
.sw-kind { display: block; font-size: var(--fs-13); color: var(--muted); line-height: var(--lh-tight); white-space: nowrap; }
.none { color: var(--faint); }
.unverified, a.unverified, a.unverified:hover { color: var(--caution); font-size: var(--fs-13); }
.sw .unverified { display: block; line-height: var(--lh-tight); }
.c-desc { min-width: 220px; line-height: 1.3; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-plat { white-space: nowrap; font-size: var(--fs-13); color: var(--muted); }
.c-rel { white-space: nowrap; line-height: var(--lh-tight); }
.c-rel .meta { display: block; }
.c-lic { white-space: nowrap; min-width: 110px; }
.c-get { white-space: nowrap; text-align: right; width: 1%; }
.c-get .btn { height: 28px; padding: 0 var(--s3); font-size: var(--fs-13); }
.get-other { font-size: var(--fs-13); }
.you { display: block; font-size: var(--fs-12); font-weight: var(--fw); color: var(--ok); }
.c-stars { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
td.empty { text-align: center; color: var(--muted); padding: var(--s6) var(--s3); }

ul.app-list { display: none; list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.app-list a { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: var(--line); color: var(--text); }
.app-list a:hover { text-decoration: none; background: var(--wash); }
.app-list .icon { --icon-size: 40px; }
.al-top { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; }
.al-name { font-weight: var(--fw-strong); }
.al-ver, .al-sum { font-size: var(--fs-13); color: var(--muted); }
.al-ver { white-space: nowrap; }
.al-sum { line-height: 1.45; }
.al-foot { font-size: var(--fs-13); color: var(--faint); }
.app-list .empty { padding: var(--s5) 0; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- review / about */
dl.checks { margin: 0 0 var(--s3); }
dl.checks dt { font-weight: var(--fw-strong); padding-top: var(--s4); border-top: var(--line); }
dl.checks dt:first-child { border-top: 0; padding-top: 0; }
dl.checks dt::before { content: "✓"; color: var(--ok); margin-right: var(--s2); }
dl.checks dd { margin: 0 0 var(--s4); color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--wash); border-top: var(--line); padding: var(--s7) 0 var(--s6); margin-top: 0; } /* main's bottom padding (--s8) already sets the 64px gap */
.footer-row { display: flex; justify-content: space-between; gap: var(--s5); align-items: flex-start; }
.footer-name { font-weight: var(--fw-strong); }
.footer-line { font-size: var(--fs-13); color: var(--muted); margin: 0; max-width: var(--w-prose); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--fs-13); }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--rule-light); } /* full-width rule */
.footer-legal { margin: 0; font-size: var(--fs-12); color: var(--muted); max-width: 900px; line-height: var(--lh); }
.footer-legal:empty { display: none; }
.footer-copy { font-size: var(--fs-12); color: var(--muted); margin: var(--s3) 0 0; }

/* ---------------------------------------------------------------- breakpoints (900 / 600 only) */
@media (max-width: 900px) {
  .header-row { gap: var(--s4); }
  .site-nav a { padding: 0 var(--s2); }
  .site-search { flex-basis: 200px; }
  .hide-md { display: none; }
  .c-sw { width: auto; }
  .c-desc { min-width: 0; }
}
@media (max-width: 600px) {
  .header-row { flex-wrap: wrap; height: auto; gap: 0 var(--s2); }
  .brand { height: 48px; font-size: var(--fs-15); }
  .site-nav { height: 48px; margin-left: auto; }
  .site-nav a { font-size: var(--fs-13); padding: 0 var(--s2); }
  .site-search { flex: 1 0 100%; margin: 0; padding-bottom: var(--s3); }
  .site-nav a[aria-current="page"] { margin-bottom: 0; }

  .filters { display: none; }
  .mobile-controls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: 0 0 var(--s4); }
  .mobile-controls label { display: block; font-size: var(--fs-13); color: var(--muted); margin-bottom: var(--s1); }
  .mobile-controls select { width: 100%; font-size: var(--fs-15); }
  .table-wrap { display: none; } /* the catalog table only; the downloads tables stay */
  ul.app-list { display: block; }

  .footer-row { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .center-box { flex-wrap: wrap; }
  .center-box p { flex-basis: calc(100% - 56px); }
  .cb-act { width: 100%; flex-wrap: wrap; }
  .cb-act .btn-primary { width: 100%; }
}
