/* Tokens transcribed from photos.unityboulder.hu (src/index.css), which takes
   them from the Unity Boulder customer design system: DM Sans, the navy scale
   and the lime brand colour. No colour is written outside this block. */
:root {
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-600: #475569;
    --navy-400: #94a3b8;
    --navy-200: #e2e8f0;
    --navy-100: #f1f5f9;
    --navy-50: #f8fafc;

    --lime-500: #b7ff4a;
    --lime-400: #c5ff6e;
    --lime-dark: #4a6b1a;
    --lime-darker: #355212;

    --unity-blue: #2374ab;
    --unity-blue-hover: #1f5f8e;

    --surface: #ffffff;
    --surface-sunken: var(--navy-50);
    --ink: var(--navy-900);
    --ink-muted: var(--navy-600);
    --ink-faint: var(--navy-400);
    --line: var(--navy-200);
    --line-light: var(--navy-100);

    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--surface-sunken);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand__logo { height: 32px; width: auto; }
.brand__title { font-size: 1.125rem; font-weight: 500; color: var(--ink-muted); }

.main { flex: 1; padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; min-width: 0; }
.card h1 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.status { text-align: center; padding: 40px 20px; }
.muted { margin: 0; color: var(--ink-muted); }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 20px;
    border-radius: var(--radius-md); background: var(--unity-blue); color: var(--surface);
    font-weight: 500; text-decoration: none; transition: background-color 0.15s;
}
.button:hover { background: var(--unity-blue-hover); }
.button--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.button--secondary:hover { background: var(--line-light); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.button:focus-visible, .link:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 2px; }

.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 2px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.link:hover { text-decoration-color: var(--lime-dark); }
.url { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-faint); text-decoration: none; overflow-wrap: anywhere; }
.url:hover { color: var(--ink-muted); text-decoration: underline; }
.note { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-muted); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; background: var(--line-light); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--ink-muted); font-size: 0.875rem; align-self: center; }
.facts dd { margin: 0; min-width: 0; }

.table-wrap { overflow-x: auto; margin: 0 -20px; }
.table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.9375rem; }
.table td:first-child { width: 45%; }
.table th, .table td { text-align: left; padding: 10px 20px; border-top: 1px solid var(--line-light); vertical-align: top; }
.table th { border-top: 0; font-size: 0.8125rem; font-weight: 500; color: var(--ink-muted); }
.table td:last-child { color: var(--ink-muted); }
.section-title { margin: 16px 0 0; font-size: 1.25rem; font-weight: 700; }
.repo-group { border-top: 4px solid var(--lime-500); }
.repo-group__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700; }
.count { padding: 1px 8px; border-radius: 999px; background: var(--line-light); color: var(--ink-muted); font-size: 0.75rem; font-weight: 500; }
.table tr:first-child td { border-top: 0; }
.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; border-top: 4px solid var(--lime-500); transition: box-shadow 0.15s, border-color 0.15s; }
.link-card:hover { box-shadow: var(--shadow-lg); border-top-color: var(--lime-dark); }
.link-card:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 2px; }
.link-card__title { font-size: 1.0625rem; font-weight: 700; }
.link-card__url { font-size: 0.875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.hosted { margin: 0; text-align: center; font-size: 0.875rem; color: var(--ink-muted); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--lime-500); color: var(--lime-darker); font-size: 0.75rem; font-weight: 500; vertical-align: middle; }

.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 16px; text-align: center; font-size: 0.875rem; color: var(--ink-muted); }

@media (max-width: 640px) {
    .link-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .facts { grid-template-columns: 1fr; gap: 4px; }
    .facts dd { margin-bottom: 8px; }
    .table th, .table td { padding: 10px 16px; }
    .table-wrap { margin: 0 -20px; }
}
