:root {
    color-scheme: light;
    --ink: #18232d;
    --muted: #667481;
    --line: #dfe5e9;
    --surface: #ffffff;
    --soft: #f4f7f8;
    --accent: #e85d27;
    --accent-dark: #bd4214;
    --navy: #122331;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 80% 0, rgba(232, 93, 39, 0.12), transparent 30rem),
        var(--soft);
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}

.brand img {
    display: block;
    width: min(270px, 52vw);
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.updates-link {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.updates-link:hover {
    color: var(--accent-dark);
}

.hero {
    padding: 26px 0 20px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.file-browser {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(18, 35, 49, 0.07);
}

.browser-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.browser-toolbar h2 {
    margin: 0 0 3px;
    font-size: 1.05rem;
}

.browser-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.search {
    position: relative;
    display: block;
    width: min(320px, 100%);
}

.search svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}

.search input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--soft);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
}

.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 39, 0.13);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 9px 14px;
    color: var(--muted);
    background: #fafbfb;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

th:first-child,
td:first-child {
    padding-left: 18px;
}

th:last-child,
td:last-child {
    padding-right: 18px;
}

td {
    padding: 7px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

tbody tr {
    transition: background-color 120ms ease;
}

tbody tr:hover {
    background: #fff9f6;
}

.file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    white-space: normal;
}

.file-link strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.file-link small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.file-icon {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--soft);
}

.folder-icon::before {
    content: "";
    position: absolute;
    inset: 10px 6px 6px;
    border-radius: 3px;
    background: var(--accent);
}

.folder-icon::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 10px;
    height: 6px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
}

.parent-row .folder-icon::before,
.parent-row .folder-icon::after {
    background: #52758d;
}

.document-icon::before {
    content: "";
    position: absolute;
    inset: 6px 8px;
    border: 2px solid #6d7c88;
    border-radius: 3px;
    background: var(--surface);
}

.document-icon::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 7px;
    height: 2px;
    background: #9ba6ae;
    box-shadow: 0 5px #9ba6ae;
}

.empty-state {
    margin: 0;
    padding: 32px 20px;
    color: var(--muted);
    text-align: center;
}

[hidden] {
    display: none !important;
}

.download-note {
    margin: 12px 2px 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.markdown-panel {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(18, 35, 49, 0.05);
}

.markdown-panel + .markdown-panel {
    margin-top: 16px;
}

.markdown-heading {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}

.markdown-heading .eyebrow {
    margin-bottom: 6px;
}

.markdown-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.markdown-content {
    padding: 8px 20px 18px;
    color: #34434f;
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin: 1.15em 0 0.45em;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.markdown-content h1 {
    font-size: 1.55rem;
}

.markdown-content h2 {
    padding-bottom: 0.35em;
    border-bottom: 1px solid var(--line);
    font-size: 1.3rem;
}

.markdown-content h3 {
    font-size: 1.08rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol {
    margin: 0.6em 0;
}

.markdown-content a {
    color: var(--accent-dark);
}

.markdown-content code {
    padding: 0.15em 0.35em;
    border-radius: 4px;
    background: var(--soft);
    font-size: 0.88em;
}

.markdown-content pre {
    padding: 16px;
    overflow-x: auto;
    border-radius: 8px;
    background: var(--navy);
    color: #f5f7f8;
}

.markdown-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.markdown-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.markdown-content blockquote {
    margin: 1em 0;
    padding: 1px 0 1px 18px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

.markdown-error {
    color: #a52f18;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 24px;
    color: var(--muted);
    font-size: 0.78rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .site-header,
    main,
    footer {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        min-height: 60px;
    }

    .updates-link {
        font-size: 0;
    }

    .updates-link span {
        font-size: 1.25rem;
    }

    .hero {
        padding: 22px 0 18px;
    }

    .browser-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .markdown-heading,
    .markdown-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .search {
        width: 100%;
    }

    th:nth-child(2),
    td:nth-child(2),
    th:nth-child(4),
    td:nth-child(4) {
        display: none;
    }

    th:first-child,
    td:first-child {
        padding-left: 18px;
    }

    th:last-child,
    td:last-child {
        padding-right: 18px;
    }

    footer {
        flex-direction: column;
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
