/* THE SITE'S LOOK (9-nov-2026): the palette of the pages an app serves
   (SynAppleConnectorKit's dashboard), so the server's pages and the app's read as one
   product. Every page the server owns links this file; the header with
   the menu is put in by Scripts/serve-web.py. */
/* THE TEXT KEEPS ITS SIZE WHEN THE PHONE TURNS (22-nov-2026): Safari on
   iOS inflates text in landscape unless told not to, and on an iPhone 17
   Pro the notice grew to four lines of large type and covered the
   viewer's Full screen button with the status bar. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #16181d;
  --muted: #5d636e;
  --line: #dfe3e8;
  --live: #1f8a4c;
  --accent: #1d4ed8;
  --lost: #a3242b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --panel: #1c1f25;
    --ink: #eceef2;
    --muted: #9aa1ac;
    --line: #2b303a;
    --live: #58c98a;
    --accent: #6b8cff;
    --lost: #e8737c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.5 system-ui, ui-sans-serif, sans-serif; }
main.site { max-width: 60rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
main.site h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: .2rem 0 .4rem; }
/* The landing's hero (11-nov-2026): the logo with a halo in the two eyes'
   colours of the HUD's palette (SynInstancePalette), left and right. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; gap: 1.6rem; margin: 1rem 0 .5rem; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -2rem; top: 50%; width: 15rem; height: 11rem;
  transform: translateY(-50%); filter: blur(38px); opacity: .45; pointer-events: none;
  background: radial-gradient(circle at 35% 50%, #ff453a 0, transparent 60%),
              radial-gradient(circle at 65% 50%, #30d158 0, transparent 60%); }
.hero-logo { flex: 0 0 auto; width: 132px; height: 132px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.hero h1 { font-size: 2.4rem; }
@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .hero-logo { width: 96px; height: 96px; }
}
main.site h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
main.site p.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; max-width: 42rem; }
a { color: var(--accent); }
code { font: .9em ui-monospace, monospace; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.card .title { font-weight: 650; font-size: 1.15rem; }
.card .what { color: var(--muted); font-size: .95rem; }
.card .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .95rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; margin: 1rem 0; }

button, a.button { font: 600 1.05rem system-ui, sans-serif; padding: .75rem 1.4rem; border-radius: 12px; border: 0;
  background: var(--accent); color: #fff; text-decoration: none; display: inline-block; margin: .5rem .5rem 0 0; cursor: pointer; }
button[disabled] { background: var(--line); color: var(--muted); cursor: default; }
input { font: 1.2rem system-ui, sans-serif; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); }

table { border-collapse: collapse; margin: .75rem 0; }
td { padding: .3rem 1rem .3rem 0; vertical-align: top; }
td:first-child { color: var(--muted); }
.yes { color: var(--live); font-weight: 600; }
.no { color: var(--lost); font-weight: 600; }
pre { white-space: pre-wrap; font: 13px ui-monospace, monospace; color: var(--muted); }

/* THE SITE'S NOTICE (10-nov-2026; red and always whole since 11-nov-2026,
   Tomas: "que el disclaimer se vea en rojo y siempre entero"). What the
   site is and is not, under every page but the Viewer (22-nov-2026,
   SynWebApp/app/index.html): it never shrinks, never clips,
   and wraps onto as many lines as a narrow window needs. */
#syn-notice strong, .syn-notice strong { font-weight: 700; }
/* The home's copy, above the cards: the same words and colour, as a
   block of the page rather than a bar of the app. */
main.site p.syn-notice {
  margin: 1.2rem 0 0; padding: .7rem 1rem; font-size: .92rem; line-height: 1.45;
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
}
#syn-notice {
  flex: 0 0 auto;
  margin: 0;
  padding: .4rem 1.25rem .5rem;
  font-size: .78rem;
  line-height: 1.35;
  text-align: center;
  color: #b91c1c;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  max-height: none;
}

/* A viewer's facts under Instrument: a name and its value per row. */
.viewer-facts { margin-top: 1rem; }
.viewer-facts h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.viewer-facts table { border-collapse: collapse; width: 100%; }
.viewer-facts th { text-align: left; font-weight: normal; opacity: 0.7; padding: 0.15rem 1rem 0.15rem 0; white-space: nowrap; vertical-align: top; }
.viewer-facts td { padding: 0.15rem 0; overflow-wrap: anywhere; }
