:root {
    --inkema-yellow: #fbba00;
    --inkema-yellow-dark: #c69300;
    --ink: #171717;
    --muted: #686868;
    --line: #dedede;
    --surface: #ffffff;
    --surface-soft: #f6f6f4;
    --focus: #1f65d6;
    --danger: #b42318;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
    --font: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--surface-soft);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(243, 160, 0, 0.09), transparent 220px),
        var(--surface-soft);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100%, 780px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 72px;
    padding: max(18px, env(safe-area-inset-top)) 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.brand{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.brand img{
    display:block;
    height:26px;
    width:auto;
}

.model-badge {
    max-width: 52%;
    padding: 7px 11px;
    overflow: hidden;
    color: #4b3500;
    background: #fff2ce;
    border: 1px solid #f4d27a;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content {
    flex: 1;
    padding: 34px 20px 48px;
}

.hero {
    margin-bottom: 30px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 650px;
    margin-bottom: 14px;
    font-size: clamp(34px, 9vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h1 span {
    color: var(--inkema-yellow);
}

.intro,
.empty-state > p:last-child {
    max-width: 590px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.traceability {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.traceability div {
    min-width: 0;
    padding: 12px 14px;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
}

.traceability dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.traceability dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
}

.language-switcher {
    display: flex;
    gap: 6px;
    margin: 0 -20px 28px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.language-switcher::-webkit-scrollbar {
    display: none;
}

.language-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.language-button.is-active {
    color: #ffffff;
    background: var(--inkema-yellow);
    border-color: var(--inkema-yellow);
}

.language-button:focus-visible,
.document-card:focus-visible {
    outline: 3px solid rgba(31, 101, 214, 0.35);
    outline-offset: 3px;
}

.document-panel[hidden] {
    display: none;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13px;
}

.document-list {
    display: grid;
    gap: 10px;
}

.document-card {
    min-height: 82px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.document-card:hover {
    transform: translateY(-1px);
    border-color: #c5c5c5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.document-card:active {
    transform: scale(0.99);
}

.document-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--inkema-yellow-dark);
    background: #fff4d8;
    border-radius: 14px;
}

.document-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.document-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.document-copy strong {
    font-size: 16px;
    line-height: 1.2;
}

.document-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.document-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.document-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.empty-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--inkema-yellow);
    border-radius: 18px;
    font-size: 18px;
    font-weight: 800;
}

.empty-state code {
    padding: 2px 6px;
    color: var(--ink);
    background: #ececea;
    border-radius: 5px;
}

.site-footer {
    min-height: 78px;
    padding: 18px 20px max(18px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #ffffff;
    background: var(--inkema-yellow);
}

.footer-logo{
    display:block;
    height:26px;
    width:auto;
}

.footer-caption {
    font-weight: 600;
}

.site-footer small {
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================
   Changelog
   ========================================== */

.changelog {
    margin-top: 40px;
}

.changelog-entry {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.changelog-entry:first-child {
    border-top: 0;
    padding-top: 0;
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 12px;

    font-size: 13px;
}

.changelog-meta strong {
    padding: 6px 10px;

    background: #fff2ce;
    border: 1px solid #f4d27a;
    border-radius: 999px;

    font-weight: 700;
}

.changelog-meta time {
    color: var(--muted);
}

.changelog-entry h2 {
    margin-bottom: 16px;

    font-size: 24px;
    letter-spacing: -0.02em;
}

.changelog-entry ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-entry li {
    margin-bottom: 8px;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (min-width: 680px) {
    body {
        padding: 28px;
    }

    .site-shell {
        min-height: calc(100vh - 56px);
        border: 1px solid #d5d5d5;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .site-header,
    .main-content,
    .site-footer {
        padding-left: 34px;
        padding-right: 34px;
    }

    .main-content {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .language-switcher {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 460px) {
    .traceability {
        grid-template-columns: 1fr;
    }

    .document-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .site-footer {
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
