@font-face {
    font-family: Roboto;
    src: url(../_fonts/roboto-v29-latin-ext_latin-regular.woff);
}

@font-face {
    font-family: Roboto-Medium;
    src: url(../_fonts/Roboto-Medium.woff);
}

html,
body {
    background: url(../_img/bg.jpg) no-repeat center center fixed;
    background-size: cover;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f3f4f6;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: Roboto-Medium, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.45rem;
}

h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.page-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    overflow-x: clip;
}

.page-card {
    width: 100%;
    min-width: 0;
    max-width: 1120px;
    background: rgba(255, 255, 255, 0.96);
    padding: 36px 36px 28px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

.page-header,
.content-section {
    width: 100%;
}

.logo-row {
    text-align: right;
}

.header-logo {
    width: 72px !important;
    min-width: 72px;
    max-width: 72px;
    height: auto !important;
    display: inline-block;
}

.kicker {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.intro,
.section-intro,
.intro-note {
    display: block;
    width: 100%;
    max-width: none;
}

.intro-note,
.resource-text p,
.site-footer p {
    color: #4b5563;
}

.content-section {
    margin-bottom: 40px;
}

.section-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.section-heading h2 i,
.resource-text h3 i {
    color: #0d6efd;
}

.section-intro {
    margin-bottom: 18px;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.resource-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.resource-text {
    flex: 1 1 auto;
    min-width: 0;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.btn {
    min-width: 72px;
    border-radius: 8px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.site-footer {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    font-size: 0.92rem;
}

.site-footer code {
    white-space: normal;
}

@media print {
    html,
    body {
        background: white !important;
        font-size: 13pt !important;
    }

    .page-shell {
        padding: 0;
    }

    .page-card {
        box-shadow: none;
        background: white;
        padding: 0;
        max-width: none;
    }

    .resource-actions,
    #githublink {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        padding: 20px 10px;
    }

    .page-card {
        padding: 22px 18px;
    }

    .resource-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-actions {
        justify-content: flex-start;
        width: 100%;
    }
}
