[hidden] {
    display: none !important;
}

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

.nav-links a[aria-current="page"] {
    background: var(--surface-blue);
    color: var(--brand-dark);
}

.nav-banner a[aria-current="page"],
.footer-links a[aria-current="page"] {
    color: #72d0e4;
}

#welcome,
#resources-library,
#multimedia,
#networking,
#tcpudp,
#line1,
#line2 {
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.resources-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 9vw, 116px) 0 clamp(72px, 8vw, 104px);
    background:
        radial-gradient(circle at 5% 10%, rgba(71, 189, 216, 0.2), transparent 27%),
        radial-gradient(circle at 94% 88%, rgba(8, 127, 174, 0.13), transparent 27%),
        linear-gradient(135deg, #f8fbfd 0%, #ffffff 55%, #edf7fa 100%);
}

.resources-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(8, 127, 174, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 127, 174, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.resources-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
    align-items: center;
    gap: clamp(54px, 8vw, 102px);
}

.resources-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(3rem, 5.15vw, 4.9rem);
    font-weight: 760;
    letter-spacing: -0.06em;
    line-height: 1;
}

.resources-hero-lead {
    max-width: 670px;
    margin: 28px 0 0;
    color: var(--slate-600);
    font-size: clamp(1.06rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.reference-visual {
    position: relative;
    min-height: 520px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(71, 189, 216, 0.22), transparent 36%),
        linear-gradient(145deg, var(--ink-950), #102e48);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.reference-visual::before {
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 390px;
    height: 390px;
    border: 70px solid rgba(71, 189, 216, 0.07);
    border-radius: 50%;
    content: "";
}

.reference-toolbar,
.reference-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #adc3d1;
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reference-toolbar {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.reference-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce9ef;
}

.reference-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55dda8;
    box-shadow: 0 0 0 4px rgba(85, 221, 168, 0.14);
}

.reference-query {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 54px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 28px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    color: #b7cad5;
    font-size: 0.8rem;
}

.reference-search-icon,
.search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.reference-search-icon::after,
.search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    border-top: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.reference-query kbd {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #dbe8ee;
    font: inherit;
    font-size: 0.72rem;
}

.reference-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
}

.reference-stack a {
    display: grid;
    min-height: 83px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.reference-stack a:hover {
    border-color: rgba(130, 216, 233, 0.35);
    background: rgba(255, 255, 255, 0.075);
    transform: translateX(3px);
}

.reference-index {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(114, 208, 228, 0.25);
    border-radius: 9px;
    background: rgba(8, 127, 174, 0.18);
    color: #82d8e9;
    font-size: 0.68rem;
    font-weight: 820;
}

.reference-stack strong,
.reference-stack small {
    display: block;
}

.reference-stack strong {
    font-size: 0.9rem;
}

.reference-stack small {
    margin-top: 2px;
    color: #9fb5c4;
    font-size: 0.7rem;
}

.reference-arrow {
    color: #72d0e4;
}

.reference-footer {
    margin-top: 18px;
    padding: 16px 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #c5d6df;
    letter-spacing: 0.04em;
    text-transform: none;
}

.reference-pulse {
    width: 34px;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #47bdd8 0 24%, rgba(71, 189, 216, 0.18) 24% 48%, #47bdd8 48% 72%, rgba(71, 189, 216, 0.18) 72%);
}

.resources-intro {
    background: #ffffff;
}

.resource-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-overview-card {
    position: relative;
    display: flex;
    min-height: 325px;
    flex-direction: column;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface-soft);
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.resource-overview-card::after {
    position: absolute;
    right: -52px;
    bottom: -70px;
    width: 175px;
    height: 175px;
    border: 28px solid rgba(8, 127, 174, 0.05);
    border-radius: 50%;
    content: "";
}

.resource-overview-card:hover {
    border-color: #aac9d7;
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.overview-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-blue);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.overview-count {
    position: absolute;
    top: 30px;
    right: 28px;
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-overview-card h3 {
    position: relative;
    z-index: 1;
    margin: 32px 0 8px;
    color: var(--ink-900);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.24;
}

.resource-overview-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--slate-600);
    font-size: 0.96rem;
    line-height: 1.65;
}

.overview-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding-top: 24px;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 820;
}

.resource-overview-card[aria-current="location"] {
    --ink-950: #071626;
    --ink-900: #0b1f33;
    --ink-800: #12304c;
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, var(--ink-950), var(--ink-800));
}

.resource-overview-card[aria-current="location"]::after {
    border-color: rgba(71, 189, 216, 0.07);
}

.resource-overview-card[aria-current="location"] .overview-number {
    border: 1px solid rgba(130, 216, 233, 0.25);
    background: rgba(8, 127, 174, 0.2);
    color: #82d8e9;
}

.resource-overview-card[aria-current="location"] .overview-count,
.resource-overview-card[aria-current="location"] .overview-link {
    color: #82d8e9;
}

.resource-overview-card[aria-current="location"] h3 {
    color: #ffffff;
}

.resource-overview-card[aria-current="location"] p {
    color: #aec1ce;
}

.resource-library {
    padding: clamp(82px, 10vw, 128px) 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(244, 248, 251, 0.95), rgba(255, 255, 255, 0.99) 32%),
        #ffffff;
}

.library-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 42px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
}

.resource-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-900);
    font-size: 0.86rem;
    font-weight: 800;
}

.search-control {
    display: grid;
    width: min(100%, 680px);
    min-height: 56px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    border: 1px solid #cbd9e2;
    border-radius: 11px;
    background: #ffffff;
    color: var(--slate-400);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-control:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 127, 174, 0.11);
}

.search-control input {
    min-width: 0;
    height: 54px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-900);
    font: inherit;
    font-size: 1rem;
}

.search-control input::placeholder {
    color: var(--slate-400);
}

.search-control button {
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
}

.search-status {
    max-width: 310px;
    margin: 0 0 4px;
    color: var(--slate-600);
    font-size: 0.88rem;
    text-align: right;
}

.resource-library-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: clamp(38px, 5.5vw, 72px);
}

.resource-directory-toggle {
    display: none;
}

.resource-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
}

.resource-sidebar-heading {
    padding: 2px 2px 18px;
    border-bottom: 1px solid var(--line);
}

.resource-sidebar-heading p {
    margin: 0;
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.resource-sidebar-heading h2 {
    margin: 4px 0 0;
    color: var(--ink-900);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.resource-category {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink-900);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 790;
    text-align: left;
}

.resource-category:hover {
    color: var(--brand-dark);
}

.resource-category:focus-visible,
.resource-directory-toggle:focus-visible,
.return-to-top:focus-visible {
    outline: 3px solid rgba(8, 127, 174, 0.3);
    outline-offset: 3px;
}

.resource-category-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 180ms ease;
}

.resource-category[aria-expanded="true"] .resource-category-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.resource-subcategory {
    display: grid;
    max-height: 0;
    gap: 2px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 240ms ease, opacity 180ms ease, padding 240ms ease;
}

.resource-subcategory.open {
    max-height: 240px;
    padding: 12px 0 14px;
    opacity: 1;
}

.resource-subcategory a {
    position: relative;
    display: block;
    min-height: 42px;
    padding: 9px 9px 9px 17px;
    border-radius: 8px;
    color: var(--slate-600);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.resource-subcategory a::before {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c7d5df;
    content: "";
    transform: translateY(-50%);
}

.resource-subcategory a:hover {
    background: var(--surface-soft);
    color: var(--ink-900);
}

.resource-subcategory a.active,
.resource-subcategory a[aria-current="location"] {
    background: var(--surface-blue);
    color: var(--brand-dark);
}

.resource-subcategory a.active::before,
.resource-subcategory a[aria-current="location"]::before {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 127, 174, 0.12);
}

.resource-sidebar-assist {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: var(--ink-950);
}

.resource-sidebar-assist > span {
    color: #9fb5c4;
    font-size: 0.76rem;
}

.resource-sidebar-assist a {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 780;
    text-decoration: none;
}

.resource-sidebar-assist a:hover {
    color: #82d8e9;
}

.resource-content {
    min-width: 0;
}

.reference-section + .legacy-anchor + .reference-section {
    margin-top: clamp(88px, 10vw, 128px);
    padding-top: clamp(76px, 8vw, 104px);
    border-top: 1px solid var(--line);
}

.legacy-anchor {
    display: block;
}

.reference-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.reference-section-heading h2 {
    max-width: 700px;
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(2.05rem, 3.6vw, 3.2rem);
    font-weight: 740;
    letter-spacing: -0.05em;
    line-height: 1.08;
}

.section-entry-count {
    flex: 0 0 auto;
    margin-bottom: 5px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 0.69rem;
    font-weight: 820;
}

.reference-intro {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--slate-600);
    font-size: 1.04rem;
    line-height: 1.75;
}

.resource-note {
    display: grid;
    grid-template-columns: minmax(125px, auto) 1fr;
    gap: 22px;
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 3px solid var(--brand);
    border-radius: 0 11px 11px 0;
    background: var(--surface-blue);
}

.resource-note strong {
    color: var(--ink-900);
    font-size: 0.86rem;
}

.resource-note p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.9rem;
    line-height: 1.65;
}

.resource-note a {
    color: var(--brand-dark);
    font-weight: 760;
}

.resource-note-security {
    border-left-color: var(--accent);
    background: #fff5f4;
}

.reference-table-wrap {
    max-height: 640px;
    margin-top: 26px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(11, 31, 51, 0.035);
}

.ports-table-wrap {
    max-height: 720px;
}

.reference-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--slate-700);
    font-size: 0.9rem;
}

.reference-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--ink-950);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.reference-table tbody th,
.reference-table tbody td {
    padding: 17px 19px;
    border-bottom: 1px solid #e6edf2;
    background: #ffffff;
    text-align: left;
    vertical-align: top;
}

.reference-table tbody th {
    width: 31%;
    color: var(--ink-900);
    font-size: 0.9rem;
    font-weight: 770;
}

.reference-table tbody td {
    line-height: 1.68;
}

.reference-table tbody tr:nth-child(even) th,
.reference-table tbody tr:nth-child(even) td {
    background: #f8fbfd;
}

.reference-table tbody tr:last-child th,
.reference-table tbody tr:last-child td {
    border-bottom: 0;
}

.reference-table tbody tr:hover th,
.reference-table tbody tr:hover td {
    background: var(--surface-blue);
}

.ports-table tbody th {
    width: 150px;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}

.resource-empty {
    margin: 24px 0 0;
    padding: 24px;
    border: 1px dashed #bdcdd7;
    border-radius: 12px;
    background: #ffffff;
    color: var(--slate-600);
    font-size: 0.88rem;
    text-align: center;
}

.reference-section.has-no-results .reference-table-wrap {
    display: none;
}

.return-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 500;
    display: inline-flex;
    min-width: 58px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    background: var(--ink-950);
    box-shadow: 0 12px 32px rgba(7, 22, 38, 0.25);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 780;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.return-to-top:hover {
    background: var(--brand-dark);
}

.return-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.resources-directory-open .return-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
}

.resources-cta {
    padding-top: clamp(82px, 10vw, 128px);
}

@media (max-width: 1020px) {
    #welcome,
    #resources-library,
    #multimedia,
    #networking,
    #tcpudp,
    #line1,
    #line2 {
        scroll-margin-top: calc(var(--header-height) + 82px);
    }

    .resources-hero-grid {
        grid-template-columns: 1fr;
    }

    .resources-hero-copy {
        max-width: 790px;
    }

    .reference-visual {
        width: min(100%, 760px);
    }

    .resource-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-overview-card:last-child {
        min-height: 260px;
        grid-column: 1 / -1;
    }

    .resource-library-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .resource-rail {
        position: sticky;
        top: calc(var(--header-height) + 10px);
        z-index: 90;
    }

    .resource-directory-toggle {
        display: flex;
        width: 100%;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 12px 17px;
        border: 1px solid var(--line);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-sm);
        color: var(--ink-900);
        cursor: pointer;
        font: inherit;
        font-size: 0.88rem;
        font-weight: 780;
        backdrop-filter: blur(12px);
    }

    .resource-toggle-icon {
        position: relative;
        width: 18px;
        height: 14px;
        border-top: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
    }

    .resource-toggle-icon::after {
        position: absolute;
        top: 4px;
        left: 0;
        width: 18px;
        border-top: 2px solid currentColor;
        content: "";
    }

    .resource-directory-toggle[aria-expanded="true"] .resource-toggle-icon {
        border-color: transparent;
        transform: rotate(45deg);
    }

    .resource-directory-toggle[aria-expanded="true"] .resource-toggle-icon::before,
    .resource-directory-toggle[aria-expanded="true"] .resource-toggle-icon::after {
        position: absolute;
        top: 5px;
        left: 0;
        width: 18px;
        border-top: 2px solid currentColor;
        content: "";
    }

    .resource-directory-toggle[aria-expanded="true"] .resource-toggle-icon::before {
        transform: rotate(90deg);
    }

    .resource-sidebar {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        max-height: 0;
        padding: 0 20px;
        overflow: hidden;
        border-color: transparent;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        visibility: hidden;
        transition:
            max-height 240ms ease,
            padding 240ms ease,
            opacity 180ms ease,
            transform 180ms ease,
            visibility 0s linear 240ms;
    }

    .resource-sidebar.open {
        max-height: calc(100vh - var(--header-height) - 92px);
        padding: 20px;
        overflow-y: auto;
        border-color: var(--line);
        background: #ffffff;
        box-shadow: var(--shadow-sm);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
    }
}

@media (max-width: 720px) {
    .resources-hero {
        padding-top: 64px;
    }

    .resources-hero-grid {
        gap: 46px;
    }

    .resources-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
        letter-spacing: -0.055em;
    }

    .reference-visual {
        min-height: 500px;
        padding: 22px;
        border-radius: 20px;
    }

    .resource-overview-grid,
    .library-tools {
        grid-template-columns: 1fr;
    }

    .resource-overview-card {
        min-height: 280px;
        grid-column: auto;
    }

    .library-tools {
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .search-status {
        max-width: none;
        text-align: left;
    }

    .reference-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .section-entry-count {
        margin: 0;
    }

    .resource-note {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .reference-table-wrap {
        max-height: 590px;
    }

    .glossary-table {
        min-width: 710px;
    }

    .ports-table {
        min-width: 430px;
    }

    .return-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .reference-visual {
        min-height: 505px;
        padding: 18px;
    }

    .reference-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .reference-query {
        margin-top: 22px;
    }

    .reference-stack a {
        min-height: 80px;
        padding: 12px;
    }

    .reference-index {
        width: 31px;
        height: 31px;
    }

    .reference-footer {
        align-items: flex-start;
    }

    .resource-overview-card {
        padding: 24px;
    }

    .overview-count {
        top: 26px;
        right: 24px;
    }

    .search-control {
        gap: 10px;
        padding-inline: 12px;
    }

    .search-control input {
        font-size: 1rem;
    }

    .reference-table thead th,
    .reference-table tbody th,
    .reference-table tbody td {
        padding: 13px 14px;
    }
}
