:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #eef6f3;
    --ink: #16202a;
    --muted: #647184;
    --line: #dce5ea;
    --brand: #0f8b8d;
    --brand-dark: #0a5e63;
    --accent: #f4b942;
    --shadow: 0 14px 38px rgba(22, 32, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-header__inner,
.site-main,
.site-footer__inner,
.site-footer__bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0;
}

.brand__text {
    font-size: 18px;
}

.search,
.hero-search {
    display: flex;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.search input,
.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 13px 14px;
    color: var(--ink);
    outline: 0;
}

.search button,
.hero-search button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
}

.site-main {
    padding: 32px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.hero__content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1,
.detail-panel h1 {
    max-width: 800px;
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero p,
.detail-panel p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.ad {
    overflow: hidden;
    background: #f1f4f7;
    border: 1px dashed #cbd5dd;
    border-radius: 8px;
    min-height: 110px;
    margin: 24px 0;
    padding: 12px;
}

.ad.is-hidden {
    display: none !important;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.page-hero + .content-layout {
    margin-top: 28px;
}

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

.section-heading h2,
.sidebar-panel h2,
.related-section h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.section-heading span {
    color: var(--muted);
    font-weight: 700;
}

.page-shell {
    display: grid;
    gap: 24px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    margin-bottom: 36px;
    background:
        radial-gradient(circle at top left, rgba(15, 139, 141, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.page-hero__title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4.6vw, 50px);
    line-height: 1.05;
}

.page-hero__lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.page-card__body {
    padding: 28px;
}

.prose-copy {
    display: grid;
    gap: 20px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
}

.prose-copy p {
    margin: 0;
    color: var(--muted);
}

.prose-copy h2,
.prose-copy h3,
.prose-copy h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.2;
}

.prose-copy h2 {
    font-size: 24px;
}

.prose-copy h3,
.prose-copy h4 {
    font-size: 18px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, #fff, #f9fbfc);
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-stack {
    display: grid;
    gap: 14px;
}

.contact-block {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.contact-block__label {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-block p {
    margin: 0;
    color: var(--ink);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: 0 14px;
    color: var(--brand-dark);
    font-weight: 700;
}

.policy-list {
    display: grid;
    gap: 16px;
}

.policy-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f9fbfc);
}

.policy-item h3 {
    margin: 0 0 10px;
}

.policy-item p {
    margin: 0;
}

.browse-section {
    margin: 24px 0 32px;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(15, 139, 141, 0.10), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.browse-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.browse-section__head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
}

.browse-section__head p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.browse-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(220, 229, 234, 0.9);
    border-radius: 16px;
}

.browse-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.browse-card__eyebrow {
    margin: 0 0 4px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.browse-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.browse-card h3 a:hover {
    color: var(--brand-dark);
}

.browse-card__all {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.browse-card__all:hover {
    background: #d8efe6;
}

.browse-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.browse-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.browse-pills a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.browse-card__empty {
    margin: 0;
    color: var(--muted);
}

.png-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.png-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.png-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.png-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.png-card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background-image: linear-gradient(45deg, #edf1f4 25%, transparent 25%), linear-gradient(-45deg, #edf1f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf1f4 75%), linear-gradient(-45deg, transparent 75%, #edf1f4 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.png-card__image img {
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
}

.png-card__body {
    min-height: 92px;
    padding: 13px;
}

.png-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 43px;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
}

.png-card span {
    color: var(--muted);
    font-size: 13px;
}

.ad--infeed {
    grid-column: 1 / -1;
}

.sidebar-panel {
    position: sticky;
    top: 92px;
    background:
        radial-gradient(circle at top right, rgba(15, 139, 141, 0.10), transparent 36%),
        linear-gradient(180deg, #ffffff, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-panel__eyebrow {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sidebar-panel__lead {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 0 13px;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.link-list a:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 139, 141, .25);
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 12px;
    font-weight: 700;
}

.pagination-wrap span {
    background: var(--brand);
    color: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 28px;
    align-items: start;
}

.detail-hero {
    margin-bottom: 28px;
}

.detail-preview,
.detail-panel,
.related-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-preview {
    display: grid;
    min-height: 560px;
    place-items: center;
    padding: 32px;
    background-image: linear-gradient(45deg, #edf1f4 25%, transparent 25%), linear-gradient(-45deg, #edf1f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf1f4 75%), linear-gradient(-45deg, transparent 75%, #edf1f4 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.detail-preview img {
    max-height: 520px;
    object-fit: contain;
}

.detail-panel {
    padding: 28px;
}

.file-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.file-facts div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.file-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.file-facts dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    padding: 0 24px;
    font-weight: 800;
}

.download-button:hover {
    background: var(--brand-dark);
    color: #fff;
}

.license-note {
    font-size: 14px;
}

.related-section {
    margin-top: 28px;
    padding: 24px;
}

.site-footer {
    background: #16202a;
    color: #dbe4ea;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 0;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
}

.site-footer p {
    margin: 8px 0 0;
    color: #aebbc6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-menu-wrap {
    display: grid;
    gap: 12px;
}

.footer-links--legal {
    opacity: 0.92;
}

.footer-links a {
    color: #dbe4ea;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
    color: #aebbc6;
    font-size: 14px;
}

@media (max-width: 980px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .search {
        grid-column: 1 / -1;
        order: 3;
    }

    .hero,
    .content-layout,
    .page-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .browse-grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .png-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header__inner,
    .site-main,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(100% - 24px, 1180px);
    }

    .brand__text {
        font-size: 16px;
    }

    .hero__content,
    .page-hero,
    .page-card__body,
    .detail-panel,
    .related-section {
        padding: 22px;
    }

    .hero h1,
    .detail-panel h1 {
        font-size: 34px;
    }

    .hero__stats,
    .png-grid,
    .png-grid--compact,
    .file-facts {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        min-height: 48px;
    }

    .detail-preview {
        min-height: 340px;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-menu-wrap {
        gap: 10px;
    }

    .browse-section {
        padding: 18px;
    }

    .browse-section__head {
        flex-direction: column;
        align-items: start;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .hero__stats,
    .png-grid,
    .png-grid--compact,
    .file-facts {
        grid-template-columns: 1fr;
    }
}
