:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    background: #f3f6fa;
    color: #172033;
    line-height: 1.55;
    --navy: #13273f;
    --navy-2: #0d2036;
    --blue: #1f73d2;
    --blue-soft: #edf6ff;
    --line: #dbe5ef;
    --muted: #65778d;
    --surface: #ffffff;
    --page: #f3f6fa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: #172033;
}

a {
    color: #1769c2;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 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;
}

.muted-text {
    color: var(--muted);
}

.site-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(7, 24, 43, 0.08);
}

.header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

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

.site-nav a {
    color: #e7eef7;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.brand:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer {
    margin-top: 56px;
    padding: 30px 0;
    background: var(--navy);
    color: #d4deea;
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
}

.footer-inner strong {
    color: #fff;
    font-size: 1rem;
}

.footer-inner p {
    margin: 5px 0 0;
    color: #b9c7d8;
}

.footer-inner a {
    color: #dce9f7;
    white-space: nowrap;
}

.home-hero {
    background: linear-gradient(180deg, #eaf5ff 0%, #f8fbfe 100%);
    border-bottom: 1px solid #e3edf6;
}

.home-hero__inner {
    padding: 44px 0 30px;
    text-align: center;
}

.home-hero h1,
.page-heading h1,
.product-hero-card h1,
.version-title-row h1 {
    margin: 0;
    color: #101d30;
    letter-spacing: -0.03em;
}

.home-hero h1 {
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.2;
}

.home-hero__copy {
    max-width: 780px;
    margin: 12px auto 0;
    color: #596d83;
    font-size: 0.96rem;
}

.eyebrow {
    margin: 0 0 5px;
    color: #627790;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-bar {
    display: flex;
    border: 1px solid #c8d8e8;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(25, 58, 94, 0.06);
    overflow: hidden;
}

.search-bar--hero {
    max-width: 720px;
    margin: 22px auto 0;
}

.search-bar--catalog {
    max-width: 700px;
    margin: 0 0 32px;
}

.search-bar input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: #24364c;
    background: #fff;
}

.search-bar input:focus {
    box-shadow: inset 0 0 0 2px #76afe9;
}

.search-bar button {
    border: 0;
    padding: 0 22px;
    background: #1976d2;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-bar button:hover,
.search-bar button:focus-visible {
    background: #1268bc;
}

.popular-block {
    max-width: 880px;
    margin: 24px auto 0;
    text-align: left;
}

.popular-block h2 {
    margin: 0 0 9px;
    font-size: 0.86rem;
}

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

.quick-product {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #d5e1ec;
    border-radius: 6px;
    background: #fff;
    color: #27384d;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(21, 49, 79, 0.03);
}

.quick-product:hover,
.quick-product:focus-visible,
.catalog-product-card:hover,
.catalog-product-card:focus-visible {
    border-color: #9fc4e8;
    box-shadow: 0 5px 16px rgba(31, 82, 132, 0.09);
    transform: translateY(-1px);
}

.product-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecf3fb;
    color: #173d68;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.product-mark--large {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    font-size: 0.9rem;
}

.product-mark--php { background: #e9e7ff; color: #504d91; }
.product-mark--python { background: #e7f2ff; color: #235b8c; }
.product-mark--nodejs { background: #e7f7e9; color: #2e7b38; }
.product-mark--ubuntu { background: #fff0e8; color: #b44b1c; }
.product-mark--almalinux { background: #fff3dc; color: #986716; }
.product-mark--rocky-linux { background: #e4f8f1; color: #18735a; }
.product-mark--django { background: #e7f6ee; color: #165c3b; }
.product-mark--nginx { background: #e4f7ea; color: #087638; }
.product-mark--apache-http-server { background: #fff0ed; color: #a54a39; }
.product-mark--postgresql { background: #e9f1fb; color: #315f8d; }
.product-mark--mysql { background: #eef6fb; color: #2c6f88; }

.page-section {
    padding: 42px 0;
}

.page-section--compact {
    padding-top: 28px;
    padding-bottom: 28px;
}

.page-section--white {
    background: #fff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.portal-card,
.detail-card,
.related-card,
.info-panel,
.product-hero-card,
.recommend-panel,
.about-panel {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(23, 58, 95, 0.04);
}

.portal-card {
    padding: 18px;
}

.portal-card__heading,
.section-heading,
.category-title-row,
.version-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portal-card__heading {
    margin-bottom: 10px;
}

.portal-card__heading h2,
.section-heading h2,
.category-title-row h2,
.related-card h2,
.info-panel h2,
.detail-card h2 {
    margin: 0;
}

.portal-card__heading h2 {
    font-size: 1rem;
}

.portal-card__heading a {
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.deadline-list {
    border-top: 1px solid #e7eef5;
}

.deadline-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 11px 2px;
    border-bottom: 1px solid #e7eef5;
    color: #24364b;
    text-decoration: none;
}

.deadline-row:last-child {
    border-bottom: 0;
}

.deadline-row span:first-child {
    display: flex;
    gap: 7px;
    align-items: baseline;
    flex-wrap: wrap;
}

.deadline-row strong {
    font-size: 0.86rem;
}

.deadline-row small,
.news-placeholder-row small {
    color: #7b8a9b;
    font-size: 0.74rem;
}

.deadline-days {
    color: #d24d3f;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.coming-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef3f8;
    color: #6a7b8e;
    font-size: 0.7rem;
    font-weight: 800;
}

.coming-panel {
    padding: 16px;
    border: 1px solid #dce8f4;
    border-radius: 6px;
    background: #f4f9fe;
}

.coming-panel strong {
    font-size: 0.87rem;
}

.coming-panel p {
    margin: 5px 0 0;
    color: #66798e;
    font-size: 0.8rem;
}

.news-placeholder-list {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
}

.news-placeholder-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8eef4;
}

.news-placeholder-row:last-child {
    border-bottom: 0;
}

.news-placeholder-row > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-placeholder-row strong {
    font-size: 0.86rem;
}

.news-placeholder-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eaf4fd;
    color: #2676bf;
    font-weight: 900;
}

.about-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 32px;
    padding: 22px 24px;
}

.about-panel h2 {
    margin: 0;
    font-size: 1.25rem;
}

.about-panel p:last-child {
    margin: 0;
    color: #66798d;
    font-size: 0.88rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    color: #8291a2;
    font-size: 0.76rem;
}

.breadcrumb a {
    color: #3376b7;
    text-decoration: none;
}

.breadcrumb > *:not(:last-child)::after {
    content: "›";
    margin-left: 7px;
    color: #a5b1be;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading--compact h1 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.page-heading > p:not(.eyebrow) {
    margin: 7px 0 0;
    color: #65788d;
    font-size: 0.9rem;
}

.category-section--portal + .category-section--portal {
    margin-top: 30px;
}

.category-title-row {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.category-title-row h2 {
    font-size: 1rem;
}

.category-icon {
    color: #2380d4;
    font-size: 0.78rem;
}

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

.catalog-product-card {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce5ee;
    border-radius: 7px;
    background: #fff;
    color: #26394f;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.catalog-product-card__name {
    font-size: 0.86rem;
    font-weight: 750;
}

.catalog-product-card__arrow {
    color: #57738f;
    font-size: 1.25rem;
}

.product-hero-card {
    padding: 20px 22px;
}

.product-hero-card__main {
    display: flex;
    gap: 18px;
    align-items: center;
}

.product-hero-card h1 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.product-hero-card p:not(.eyebrow) {
    margin: 6px 0 0;
    color: #61758a;
    font-size: 0.88rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-row--buttons {
    margin-top: 16px;
}

.link-row--buttons a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #cfe0ef;
    border-radius: 5px;
    background: #fff;
    color: #2670b6;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.link-row--buttons a:hover,
.link-row--buttons a:focus-visible {
    background: #f2f8fd;
}

.recommend-panel {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 3px solid #4ca6e8;
    background: linear-gradient(90deg, #f0f8ff 0%, #e8f5ff 100%);
}

.recommend-panel__label {
    color: #3579ad;
    font-size: 0.72rem;
    font-weight: 800;
}

.recommend-panel__body {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.recommend-panel__body strong {
    font-size: 1.1rem;
}

.recommend-panel p {
    margin: 5px 0 0;
    color: #61778c;
    font-size: 0.78rem;
}

.content-section {
    margin-top: 28px;
}

.section-heading--portal {
    align-items: flex-end;
    margin-bottom: 12px;
}

.section-heading--portal h2 {
    font-size: 1.15rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #dce5ee;
    border-radius: 7px;
    background: #fff;
}

.support-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.support-table th,
.support-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e4ebf2;
    text-align: left;
    vertical-align: middle;
}

.support-table th {
    background: #f3f6f9;
    color: #41566e;
    font-size: 0.74rem;
    font-weight: 800;
}

.support-table td {
    font-size: 0.8rem;
}

.support-table tr:last-child td {
    border-bottom: 0;
}

.version-link {
    color: #1b69b4;
    font-weight: 800;
    text-decoration: none;
}

.version-link:hover,
.version-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 850;
    white-space: nowrap;
}

.status-badge--large {
    padding: 5px 10px;
    font-size: 0.76rem;
}

.status-active {
    background: #daf3df;
    color: #18713a;
}

.status-security {
    background: #fff0c9;
    color: #9b6100;
}

.status-extended {
    background: #e7e9ff;
    color: #5058aa;
}

.status-eol {
    background: #fce1dc;
    color: #a34234;
}

.status-unknown {
    background: #edf1f5;
    color: #66788c;
}

.version-title-row {
    align-items: flex-end;
    margin-bottom: 18px;
}

.version-title-row h1 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.version-title-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.version-title-row__meta small {
    color: #718398;
    font-size: 0.72rem;
}

.version-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.detail-card {
    padding: 18px;
}

.detail-card h2,
.related-card h2 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.summary-table {
    margin: 0;
    border: 1px solid #e0e7ee;
    border-radius: 5px;
    overflow: hidden;
}

.summary-table > div {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-bottom: 1px solid #e4ebf2;
}

.summary-table > div:last-child {
    border-bottom: 0;
}

.summary-table dt,
.summary-table dd {
    margin: 0;
    padding: 9px 11px;
    font-size: 0.78rem;
}

.summary-table dt {
    background: #f3f6f9;
    color: #455a70;
    font-weight: 750;
}

.summary-table dd {
    color: #22364d;
    font-weight: 650;
}

.related-card {
    padding: 18px;
}

.related-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #e7edf3;
    color: #1e69ad;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.related-card > a:last-child {
    border-bottom: 0;
}

.info-panel {
    display: flex;
    gap: 13px;
    margin-top: 16px;
    padding: 15px 17px;
    border-left: 3px solid #57aee8;
    background: #eef8ff;
}

.info-panel__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2d89d2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.info-panel h2 {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.info-panel p {
    margin: 0;
    color: #60768b;
    font-size: 0.78rem;
}

.vulnerability-section {
    margin-top: 20px;
}

.coming-panel--table {
    background: #fff;
}

.empty-state,
.empty-inline {
    color: #6e8094;
    font-size: 0.82rem;
}

.empty-state {
    padding: 24px;
    border: 1px dashed #c9d6e2;
    border-radius: 7px;
    background: #fafcfe;
}

.empty-inline {
    padding: 14px 2px;
}

@media (max-width: 900px) {
    .catalog-card-grid,
    .quick-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .version-layout {
        grid-template-columns: 1fr;
    }

    .related-card {
        order: 2;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 56px;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-nav {
        width: 100%;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .site-nav a {
        flex: 0 0 auto;
        font-size: 0.78rem;
    }

    .home-hero__inner {
        padding: 32px 0 24px;
    }

    .home-hero__copy {
        font-size: 0.88rem;
    }

    .search-bar button {
        padding: 0 15px;
    }

    .dashboard-grid,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .about-panel {
        gap: 12px;
    }

    .page-section {
        padding: 30px 0;
    }

    .product-hero-card__main {
        align-items: flex-start;
    }

    .product-mark--large {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .version-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .version-title-row__meta {
        align-items: flex-start;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .support-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .support-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .support-table tbody,
    .support-table tr,
    .support-table td {
        display: block;
        width: 100%;
    }

    .support-table tr {
        overflow: hidden;
        border: 1px solid #dbe5ee;
        border-radius: 7px;
        background: #fff;
    }

    .support-table td {
        display: grid;
        grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 13px;
        border-bottom: 1px solid #e7edf3;
    }

    .support-table td::before {
        content: attr(data-label);
        color: #65788e;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .support-table td:last-child {
        border-bottom: 0;
    }

    .support-table__empty td {
        display: block;
    }

    .support-table__empty td::before {
        content: none;
    }

    .summary-table > div {
        grid-template-columns: 145px 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .quick-product-grid,
    .catalog-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-product,
    .catalog-product-card {
        min-height: 64px;
    }

    .deadline-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .product-hero-card__main {
        flex-direction: column;
    }

    .summary-table > div {
        grid-template-columns: 1fr;
    }

    .summary-table dt {
        border-bottom: 1px solid #e5ebf1;
    }

    .support-table td {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
