/*
 * Quovadis web — dark green theme shared with the Recruitment RCP client.
 *
 * The palette is taken one-to-one from the RCP stylesheet
 * (rcp/TutumProUi-Recruitment/.../styl.css) so that the website and the
 * desktop client read as one product. Dark, but not black: pure black on a
 * large surface gives maximum contrast against text and tires the eye on
 * longer reading, and the privacy policy is a page meant to be read.
 */

:root {
    /* Window background and its slightly lighter variant (RCP: -fx-background, .pasek-konta). */
    --bg: #142620;
    --bg-bar: #16281f;
    /* Card surface — lighter than the window, as RCP tables are. */
    --surface: #182e25;
    --surface-alt: #1c332a;

    --border: #26473a;
    --border-strong: #3a6b53;
    --divider: #244134;

    --accent: #2f7d54;
    --accent-hover: #24523a;
    --focus: #4caf7d;
    --link: #6fd39b;

    --text: #dcebe2;
    --text-strong: #eaf5ee;
    --text-muted: #9dc4ae;
    --text-faint: #7fa892;

    --tag-bg: #24513a;
    --tag-text: #d5ecdd;

    --radius: 8px;
    --font: "SF Pro Text", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ bar */

/* Top bar — same role as the account bar in RCP: its own background so it does not look glued on. */
.bar {
    background: var(--bg-bar);
    border-bottom: 1px solid var(--divider);
}

.bar-inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-strong);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.brand img {
    width: 28px;
    height: 28px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.nav a:hover {
    background: var(--accent-hover);
    color: var(--text-strong);
}

/* Active page: same treatment as the selected tab in RCP. */
.nav a[aria-current="page"] {
    background: #23503a;
    color: var(--text-strong);
    font-weight: 700;
}

/* ---------------------------------------------------------------- content */

main {
    flex: 1;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

h1, h2, h3 {
    color: var(--text-strong);
    line-height: 1.25;
}

h1 {
    font-size: 1.9rem;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.3rem;
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--divider);
}

h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

p, ul, ol {
    margin: 0 0 1rem;
}

li + li {
    margin-top: 0.35rem;
}

a {
    color: var(--link);
}

a:focus-visible, .button:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.05em 0.35em;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.meta {
    color: var(--text-faint);
    font-size: 0.9rem;
}

/* Card — mirrors the event card on the RCP timeline. */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
}

.card h3 {
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cards .card {
    margin: 0;
}

/* Tag — same pill as topic/role tags in RCP. */
.tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 10px;
    padding: 0.05rem 0.6rem;
    font-size: 0.85rem;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.45rem 1rem;
}

.button:hover {
    background: var(--accent-hover);
}

/* Table — lighter than the window and with visible grid lines, as in RCP. */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-alt);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #2f5a45;
}

th {
    background: #143024;
    color: #b9dbc8;
    border-right: 1px solid var(--border-strong);
}

tr:nth-child(even) td {
    background: #182c24;
}

/* ----------------------------------------------------------------- footer */

footer {
    background: var(--bg-bar);
    border-top: 1px solid var(--divider);
    color: var(--text-faint);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

footer a {
    color: var(--text-muted);
}
