/* The frame of the public site. The colours are those of the portal; the header carries the ARICOMA brand in both themes. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f8; --panel: #ffffff; --line: #e3e5ec; --ink: #111330; --ink-2: #3a3e5c; --muted: #5e6380; --accent: #4248d1; --accent-soft: #ecedfb; --green: #0b6e53; --green-bg: #e4f4ec;
  --header-bg: #161941; --header-ink: #c9cbea; --logo: #dac796;
  --radius: 9px; --radius-xs: 4px;
  --site-width: 1240px; --site-gutter: clamp(16px, 3vw, 32px);
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1022; --panel: #161930; --line: #282c48; --ink: #ecedf7; --ink-2: #c5c8e2; --muted: #9a9ec0; --accent: #9da2ff; --accent-soft: #252a5e; --green: #63d6a8; --green-bg: #0f2e28; --header-bg: #090a18; }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header { background: var(--header-bg); padding: 16px var(--site-gutter); }
.site-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; max-width: var(--site-width); margin: 0 auto; color: var(--header-ink); font-size: 14px; text-decoration: none; }
.site-logo { width: 118px; height: auto; color: var(--logo); }

.site-main { flex: 1; width: 100%; max-width: calc(var(--site-width) + 2 * var(--site-gutter)); margin: 0 auto; padding: 28px var(--site-gutter) 48px; }
.site-footer { padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

.site-title { margin: 0 0 4px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.site-lead { margin: 0 0 18px; color: var(--muted); }
.site-empty { color: var(--muted); }
.site-back { display: inline-block; margin-bottom: 16px; font-size: 14px; text-decoration: none; }

.site-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.site-filter select, .site-filter button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: inherit; }
.site-filter-select { position: relative; flex: 0 1 320px; min-width: 0; }
.site-filter-select::after { content: ""; position: absolute; top: 50%; right: 15px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.site-filter-select select { width: 100%; appearance: none; padding-right: 42px; }
.site-filter button { cursor: pointer; }

/* The list as a timeline. A dot sits on the first line of its row and the line runs on to the next dot, however tall the rows are. */
.site-releases { margin: 0; padding: 0; list-style: none; }
.site-releases li { position: relative; padding-left: 30px; }
.site-releases li + li { margin-top: 10px; }
.site-releases li::before { content: ""; position: absolute; z-index: 1; top: 20px; left: 1px; width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; background: var(--bg); }
.site-releases li:not(:last-child)::after { content: ""; position: absolute; top: 27px; bottom: -37px; left: 8px; width: 2px; background: var(--line); }
.site-releases li.site-release-latest::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.site-releases a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.site-releases a:hover { border-color: var(--accent); }
.site-releases .rn-version { font-weight: 600; }
.site-releases .rn-counts { justify-content: flex-end; }
.site-release-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-badge { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.rn-release { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* A wide page: the cards of a section side by side. Only here, the preview in the portal stays a narrow column. */
@media (min-width: 1000px) {
  .rn-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .rn-section > h2, .rn-section > .rn-card:only-of-type { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-releases a { grid-template-columns: minmax(0, 1fr); }
  .site-releases .rn-counts { justify-content: flex-start; }
  .rn-release { padding: 18px 16px; }
}
