/* get.astrealab.ai (decision 0018): Astrea's products and each product's release page. Astrea's colours and type
   (Cambria; monospace for code), in a light and a dark theme: the visitor's system setting, or their choice (site.js).
   Static, with no external fonts or scripts.
   Additive only: every published PhysioSuite release page uses this file and the others under /assets/, and is never
   replaced (decision 0018). A change here may add, but never renames or removes a class, a variable or a file that a
   published page uses, and never changes what an existing one means. */

/* ---- the light theme (Astrea's Background, White and Black) */
:root {
  --police: #2e5e66;
  --lime: #4c8c95;
  --ochre: #c26a22;
  --blue: #3d7eb8;
  --green: #3d8a4c;
  --dandelion: #e9b44c;
  --page: #f7f7f3;
  --band: #ecefea;
  --card: #ffffff;
  --card-2: #f7f9f6;
  --edge: #d2d9d4;
  --text: #12282c;
  --muted: #4d6265;
  --link: #2f6ea6;
  --grid: rgba(46, 94, 102, 0.08);
  --glow: rgba(76, 140, 149, 0.22);
  --chip: #ffffff;
  --signed: #2e6e3b;
  --signed-edge: rgba(61, 138, 76, 0.55);
  --key: #7a4e0c;
  --key-edge: rgba(194, 106, 34, 0.55);
  --icon-bg: rgba(46, 94, 102, 0.09);
  --icon-fg: #2e5e66;
  --code-bg: #12282c;
  --code-text: #e2e6e1;
  --code-edge: #12282c;
  --serif: Cambria, "Cambria Math", Georgia, "Noto Serif", "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: light;
}

/* ---- the dark theme (made from Astrea's Black and Police): the system's setting unless the visitor chose light,
   or the visitor's own choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0c1d20; --band: #12282c; --card: #15303a; --card-2: #1a3940; --edge: #27494f;
    --text: #e2e6e1; --muted: #9db0b1; --link: #7fb6e3;
    --grid: rgba(226, 230, 225, 0.04); --glow: rgba(76, 140, 149, 0.35); --chip: rgba(8, 21, 26, 0.55);
    --signed: #a8dcb2; --signed-edge: rgba(61, 138, 76, 0.7); --key: #e9b44c; --key-edge: rgba(233, 180, 76, 0.6);
    --icon-bg: rgba(76, 140, 149, 0.18); --icon-fg: #9fd0d6;
    --code-bg: #08151a; --code-text: #d8e6e3; --code-edge: #27494f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0c1d20; --band: #12282c; --card: #15303a; --card-2: #1a3940; --edge: #27494f;
  --text: #e2e6e1; --muted: #9db0b1; --link: #7fb6e3;
  --grid: rgba(226, 230, 225, 0.04); --glow: rgba(76, 140, 149, 0.35); --chip: rgba(8, 21, 26, 0.55);
  --signed: #a8dcb2; --signed-edge: rgba(61, 138, 76, 0.7); --key: #e9b44c; --key-edge: rgba(233, 180, 76, 0.6);
  --icon-bg: rgba(76, 140, 149, 0.18); --icon-fg: #9fd0d6;
  --code-bg: #08151a; --code-text: #d8e6e3; --code-edge: #27494f;
  color-scheme: dark;
}

/* Astrea's mark comes in two files, one for each background: only the one that suits the theme shows. */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: inline-block; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: inline-block; }
/* The theme button shows the theme it switches to. */
.theme .to-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .to-dark { display: none; }
  :root:not([data-theme="light"]) .theme .to-light { display: block; }
}
:root[data-theme="dark"] .theme .to-dark { display: none; }
:root[data-theme="dark"] .theme .to-light { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--link); text-underline-offset: 2px; }
code, pre { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar: Astrea's mark and its name */
.topbar { background: var(--band); border-bottom: 1px solid var(--edge); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 22px; font-weight: bold; letter-spacing: 0.02em; }
.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar nav a:hover { color: var(--text); }
.theme {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 8px; border: 1px solid var(--edge); background: var(--card); color: var(--text); cursor: pointer;
}
.theme svg { width: 17px; height: 17px; }

/* ---- hero band: a faint grid and a glow of Lime */
.hero {
  background:
    radial-gradient(900px 320px at 85% -40%, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--band);
  border-bottom: 1px solid var(--edge);
}
.hero .wrap { padding-top: 22px; padding-bottom: 30px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs span { margin: 0 8px; }
.title { display: flex; gap: 24px; align-items: center; }
.tile {
  flex: none;
  width: 104px; height: 104px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--police), var(--lime));
  box-shadow: 0 10px 30px rgba(18, 40, 44, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 40px; font-weight: bold; letter-spacing: 0.02em;
}
.tile.small { width: 64px; height: 64px; border-radius: 14px; font-size: 25px; }
.tile img, .tile svg { width: 64%; height: auto; }
/* A product's own app icon fills its tile, as given: PhysioSuite's ink tile on the light theme, its white tile on the
   dark one (the .on-light and .on-dark images). */
.tile.app { background: none; border-radius: 22.5%; overflow: hidden; box-shadow: 0 10px 30px rgba(18, 40, 44, 0.25); }
.tile.app img { width: 100%; height: 100%; }
h1 { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: 0.01em; }
.by { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.by b { color: var(--text); font-weight: normal; }
.tagline { margin: 10px 0 0; font-size: 19px; font-style: italic; }
.four { display: flex; width: 120px; height: 4px; margin: 16px 0 0; }
.four span { flex: 1; }
.four span:nth-child(1) { background: var(--police); }
.four span:nth-child(2) { background: var(--ochre); }
.four span:nth-child(3) { background: var(--blue); }
.four span:nth-child(4) { background: var(--green); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--chip);
  font-size: 13px; color: var(--text);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge.version { background: var(--police); border-color: var(--lime); color: #fff; font-family: var(--mono); font-size: 12.5px; }
.badge.signed { border-color: var(--signed-edge); color: var(--signed); }
.badge.key { border-color: var(--key-edge); color: var(--key); }

/* ---- tabs: anchored sections */
.tabs { background: var(--page); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 5; }
.tabs .wrap { display: flex; gap: 6px; overflow-x: auto; }
.tabs a {
  padding: 14px 14px 12px;
  color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); border-bottom-color: var(--lime); }

/* ---- main and sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--edge); border-radius: 10px; padding: 26px 28px; }
.panel + .panel { margin-top: 22px; }
.panel h2 { margin: 0 0 14px; font-size: 24px; }
.panel h3 { margin: 20px 0 6px; font-size: 17px; font-style: italic; font-weight: normal; color: var(--muted); }
.panel p { margin: 0 0 12px; }
.lead { font-size: 18px; }
.note { color: var(--muted); font-size: 15px; }
p code, li code {
  background: var(--card-2); border: 1px solid var(--edge); border-radius: 4px; padding: 1px 5px; font-size: 0.85em;
  overflow-wrap: anywhere;
}
section { scroll-margin-top: 60px; }

.side { position: sticky; top: 66px; }
.side .panel { padding: 22px; }
.side h2 { font-size: 19px; }
.facts { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.facts dd code { font-size: 13px; }

/* ---- code blocks (dark in both themes), with a Copy button above the text */
.command { position: relative; margin: 12px 0; }
.command::before {
  content: "shell"; position: absolute; top: 12px; left: 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: #8fa3a4;
}
.command pre {
  margin: 0;
  padding: 42px 18px 14px;
  background: var(--code-bg);
  border: 1px solid var(--code-edge);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.7;
  font-size: 13.5px;
  color: var(--code-text);
}
.command pre .p { color: #6fb3bc; user-select: none; }
.side .command pre { white-space: pre-wrap; overflow-wrap: anywhere; }   /* the narrow card shows the whole command */
.copy {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--serif); font-size: 13.5px;
  color: #fff; background: var(--police);
  border: 1px solid var(--lime); border-radius: 6px;
  padding: 4px 12px; cursor: pointer;
}
.copy:hover { background: var(--lime); }

/* ---- requirement cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 6px 0 14px; }
.card { background: var(--card-2); border: 1px solid var(--edge); border-radius: 8px; padding: 16px 16px 14px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-style: normal; color: var(--text); font-weight: bold; font-size: 16px; }
.card p { margin: 0; font-size: 15px; }
.icon {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon-fg); border: 1px solid var(--edge);
}
.icon svg { width: 18px; height: 18px; }

/* ---- what happens next: a numbered track */
ol.track { list-style: none; counter-reset: step; margin: 6px 0 0; padding: 0; }
ol.track li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
ol.track li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--police); border: 1px solid var(--lime); color: #fff; font-size: 14px;
}
ol.track li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: var(--edge); }
ol.track li:last-child::after { display: none; }

/* ---- releases and files */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--muted); font-weight: normal; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
td.sum code { font-size: 12px; overflow-wrap: anywhere; }
.notes ul { margin: 6px 0 12px; padding-left: 20px; }
.notes li { margin: 0 0 6px; }
.fingerprint { font-family: var(--mono); font-size: 15px; letter-spacing: 0.05em; color: var(--key); margin: 4px 0 14px; overflow-wrap: anywhere; }

/* ---- Astrea's page: product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; padding-top: 28px; padding-bottom: 40px; }
.product { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--edge); border-radius: 10px; padding: 22px; }
.product:hover { border-color: var(--lime); }
.product .head { display: flex; gap: 16px; align-items: center; }
.product h2 { margin: 0; font-size: 22px; }
.product .by { margin-top: 2px; }
.product p { margin: 0; }
.product .badges { margin: 0; }
.product .view { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--edge); }
.button {
  display: inline-block; padding: 7px 16px; border-radius: 6px;
  background: var(--police); border: 1px solid var(--lime); color: #fff; text-decoration: none; font-size: 15px;
}
.button:hover { background: var(--lime); }

/* ---- footer */
footer { border-top: 1px solid var(--edge); background: var(--band); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }
footer .brand img { width: 26px; height: 26px; }
footer .brand span { font-size: 17px; }

/* ---- narrow screens: one column, the install card first */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }   /* sides only: sections keep their own top and bottom space */
  .title { gap: 16px; align-items: flex-start; }
  .tile { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
  h1 { font-size: 30px; }
  .tagline { font-size: 17px; }
  .panel { padding: 20px 18px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .topbar nav { gap: 14px; }
  th.size, td.size { display: none; }
}
