/* JSolve B.V. - static site styles
   Palette taken from the company logo:
   navy #003765, sky #71C2F2, leaf #408A3F */

:root {
    --navy: #003765;
    --navy-dark: #002845;
    --sky: #71c2f2;
    --sky-soft: #e4f2fc;
    --leaf: #408a3f;
    --leaf-soft: #eaf4ea;

    --ink: #14202b;
    --muted: #566878;
    --link: #0a5f96;
    --bg: #ffffff;
    --bg-alt: #f4f8fb;
    --border: #dce7f0;

    --maxw: 1080px;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0, 55, 101, .06), 0 8px 24px rgba(0, 55, 101, .06);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 .5em;
    font-weight: 650;
}

h1 { font-size: 2.35rem; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; margin-top: 2.2em; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--link); text-decoration-color: rgba(10, 95, 150, .35); text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: currentColor; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

.lead { font-size: 1.16rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- header ---------- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -.01em;
    margin-right: auto;
}

.brand img { height: 34px; width: auto; display: block; }
.brand span { color: var(--navy); }
.brand .bv { color: var(--muted); font-weight: 600; font-size: .8em; }

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: .97rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--navy); border-bottom-color: var(--sky); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--sky); }

/* ---------- hero ---------- */

.hero {
    background: linear-gradient(180deg, var(--sky-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    padding: 56px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: center;
}

.hero-grid img { width: 100%; height: auto; display: block; }
.hero p:last-child { margin-bottom: 0; }

.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
}

.page-head h1 { margin-bottom: .35em; }
.page-head p { margin-bottom: 0; max-width: 62ch; }

main { padding: 40px 0 64px; }
main > .wrap > h2:first-child { margin-top: 0; }

.prose { max-width: 72ch; }

/* ---------- buttons ---------- */

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .97rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    transition: background .15s ease, color .15s ease;
}

.btn:hover { background: var(--navy-dark); color: #fff; }

.btn.secondary { background: #fff; color: var(--navy); }
.btn.secondary:hover { background: var(--sky-soft); color: var(--navy); }

/* ---------- cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 18px;
    margin: 1.5em 0 0;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--sky); box-shadow: var(--shadow); }

.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card p + p { margin-top: .8em; }

.card .meta {
    margin-top: 14px;
    font-size: .85rem;
    color: var(--link);
    font-weight: 600;
    word-break: break-word;
}

.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--sky-soft);
    color: var(--navy);
    margin-bottom: 10px;
    align-self: flex-start;
}

.tag.oss { background: var(--leaf-soft); color: var(--leaf); }
.tag.free { background: #f1f0ea; color: #6b5f3c; }

/* ---------- panels ---------- */

.panel {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 1.5em 0;
}

.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

.note {
    border-left: 3px solid var(--sky);
    background: var(--sky-soft);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5em 0;
}

.note > :last-child { margin-bottom: 0; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.5em 0; }

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: .97rem;
}

th, td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    border-bottom: 0;
}

tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ---------- definition list ---------- */

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 24px;
    margin: 0;
    font-size: .95rem;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; }

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

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 40px 0 32px;
    font-size: .93rem;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.site-footer h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    margin-bottom: .8em;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.colophon {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: .88rem;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.35rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-grid img { max-width: 180px; }
    .site-header .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
    .site-nav { gap: 16px; }
    .details { grid-template-columns: 1fr; gap: 0 0; }
    .details dt { margin-top: .6em; }
}
