/*
 * Dyeware Resource Center
 * Styles for the Resource Center middle section.
 *
 * This stylesheet is designed for the latest resource-center HTML section:
 *   .resource-nav-wrap
 *   .hero
 *   .main-layout
 *   .sidebar / .content
 *
 * It intentionally does not style the shared site header or site footer.
 * Load after css2.css:
 *   <link rel="stylesheet" href="/css/css2.css">
 *   <link rel="stylesheet" href="/css/resources.css">
 */

:root {
    --resource-navy: #050747;
    --resource-navy2: #10166b;
    --resource-blue: #1685ff;
    --resource-cyan: #00b9ff;
    --resource-ink: #18213f;
    --resource-muted: #68748d;
    --resource-line: #e1e7f0;
    --resource-pale: #edf4ff;
    --resource-soft: #f7f9fc;
}

/* Resource Center navigation bar */
.resource-nav-wrap {
    background: linear-gradient(100deg, var(--resource-navy) 0%, var(--resource-navy2) 100%);
    box-shadow: 0 4px 12px rgba(5, 7, 71, .13);
}

.resource-nav {
    max-width: 1450px;
    min-height: 50px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.resource-nav strong {
    flex: 0 0 auto;
    margin-right: 8px;
    color: #66c5ff;
    font-size: 10px;
    letter-spacing: 1.6px;
}

.resource-nav a {
    flex: 0 0 auto;
    padding: 16px 0;
    color: #e2e9ff;
    font-size: 13px;
}

.resource-nav a:hover {
    color: #fff;
}

.resource-nav a.active {
    border-bottom: 3px solid var(--resource-blue);
    color: #fff;
    font-weight: 700;
}

/* Resource Center introduction */
.hero {
    background: linear-gradient(110deg, #f7faff 0%, #edf4ff 72%, #e8f2ff 100%);
    border-bottom: 1px solid #e4ebf5;
}

.hero-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 34px 30px 32px;
}

.breadcrumb {
    margin-bottom: 13px;
    color: #7d89a0;
    font-size: 12px;
}

.eyebrow {
    color: var(--resource-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 8px 0 10px;
    color: var(--resource-navy);
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -.8px;
}

.hero p {
    max-width: 850px;
    margin: 0;
    color: #596680;
    font-size: 16px;
    line-height: 1.7;
}

/*
 * The search trigger opens the search panel in the shared site header.
 * Keep the generic .search-trigger class if css2.css already defines it;
 * these rules provide the Resource Center button appearance.
 */
.hero-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--resource-blue);
    color: #fff;
    font: 700 14px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.hero-search-trigger:hover {
    background: var(--resource-navy);
    color: #fff;
}

.hero-search-trigger .search-symbol {
    font-size: 19px;
    line-height: 1;
}

/* Main two-column Resource Center layout */
.main-layout {
    max-width: 1450px;
    margin: 32px auto 70px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

/* Left-side Browse Resources panel */
.sidebar {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--resource-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(10, 25, 75, .045);
}

.side-heading {
    padding: 17px 19px;
    background: var(--resource-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}

.side-heading::after {
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 11px;
    background: var(--resource-blue);
    content: "";
}

.side-section {
    padding: 15px 12px 12px;
}

.side-label {
    padding: 0 9px 8px;
    color: #8a94a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0;
    padding: 9px 10px;
    border-radius: 5px;
    color: #35415f;
    font-size: 13px;
}

.side-link:hover {
    background: #f2f6ff;
    color: var(--resource-blue);
}

.side-link.selected {
    padding-left: 7px;
    border-left: 3px solid var(--resource-blue);
    background: #eaf3ff;
    color: var(--resource-navy);
    font-weight: 700;
}

.side-link .count {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f1f4f8;
    color: #8a96aa;
    font-size: 10px;
}

.nested {
    padding: 2px 0 7px 14px;
}

.nested a {
    display: block;
    padding: 6px 9px;
    border-radius: 4px;
    color: #68748d;
    font-size: 12px;
}

.nested a:hover {
    background: #f7faff;
    color: var(--resource-blue);
}

.side-rule {
    height: 1px;
    margin: 3px 16px;
    background: #e8edf4;
}

.side-note {
    margin: 12px;
    padding: 15px;
    border: 1px solid #e0eaf8;
    border-radius: 6px;
    background: #f0f6ff;
}

.side-note b {
    color: var(--resource-navy);
    font-size: 13px;
}

.side-note p {
    margin: 5px 0 0;
    color: #65718a;
    font-size: 11px;
    line-height: 1.55;
}

/* Main content column */
.content {
    min-width: 0;
}

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

.content-heading h2 {
    margin: 0 0 5px;
    color: var(--resource-navy);
    font-size: 25px;
    line-height: 1.25;
}

.content-heading p {
    margin: 0;
    color: var(--resource-muted);
    font-size: 13px;
}

.sort {
    color: #7b879b;
    font-size: 12px;
    white-space: nowrap;
}

/* Featured collection */
.featured {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #dfe7f2;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(11, 30, 78, .045);
}

.featured-copy {
    padding: 25px 27px;
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    background: #e8f3ff;
    color: #0877df;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.featured h3 {
    margin: 12px 0 8px;
    color: var(--resource-navy);
    font-size: 21px;
    line-height: 1.3;
}

.featured p {
    margin: 0 0 15px;
    color: #65718a;
    font-size: 13px;
    line-height: 1.7;
}

.text-link {
    color: #0877df;
    font-size: 13px;
    font-weight: 800;
}

.featured-art {
    position: relative;
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #080b52, #123b81 70%, #1685ff);
}

.featured-art::before,
.featured-art::after {
    position: absolute;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    content: "";
}

.featured-art::after {
    width: 195px;
    height: 195px;
}

.stack {
    position: relative;
    z-index: 1;
    width: 58%;
    max-width: 190px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .33);
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
}

.stack i {
    position: relative;
    display: block;
    height: 25px;
    margin: 6px 0;
    border: 1px solid rgba(255, 255, 255, .33);
    border-radius: 4px;
}

.stack i::before {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #36c4ff;
    content: "";
}

.stack i::after {
    position: absolute;
    top: 10px;
    left: 24px;
    width: 48%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .5);
    content: "";
}

/* Resource area cards */
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 13px;
}

.section-title h3 {
    margin: 0;
    color: var(--resource-navy);
    font-size: 18px;
}

.section-title span {
    color: #8a94a8;
    font-size: 11px;
}

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

.selection-card {
    display: block;
    min-height: 145px;
    padding: 18px 19px 17px;
    border: 1px solid #e0e7f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.selection-card:hover {
    transform: translateY(-2px);
    border-color: #9ccaff;
    box-shadow: 0 7px 18px rgba(12, 55, 125, .07);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-number {
    color: var(--resource-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.card-arrow {
    color: #1685ff;
    font-size: 18px;
}

.selection-card h4 {
    margin: 8px 0 5px;
    color: var(--resource-navy);
    font-size: 16px;
}

.selection-card p {
    margin: 0;
    color: #69748c;
    font-size: 12px;
    line-height: 1.6;
}

.card-foot {
    margin-top: 12px;
    color: #0877df;
    font-size: 11px;
    font-weight: 800;
}

/* Closing callout */
.callout {
    margin-top: 22px;
    padding: 17px 20px;
    border-left: 4px solid var(--resource-blue);
    border-radius: 0 7px 7px 0;
    background: #f0f6ff;
}

.callout strong {
    color: var(--resource-navy);
    font-size: 13px;
}

.callout p {
    margin: 5px 0 0;
    color: #64718a;
    font-size: 12px;
}

/* Tablet */
@media (max-width: 950px) {
    .resource-nav {
        gap: 21px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .hero-inner {
        padding: 28px 22px;
    }

    .main-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 22px;
        padding-right: 22px;
        padding-left: 22px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .resource-nav {
        gap: 19px;
        padding-right: 19px;
        padding-left: 19px;
    }

    .hero-inner {
        padding: 24px 19px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-search-trigger {
        margin-top: 17px;
    }

    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        padding-right: 19px;
        padding-left: 19px;
    }

    .sidebar,
    .content {
        width: 100%;
    }

    .side-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .side-label {
        grid-column: 1 / -1;
    }

    .nested,
    .side-rule,
    .side-note {
        display: none;
    }

    .content-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .sort {
        display: none;
    }

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

    .featured-art {
        min-height: 145px;
        order: -1;
    }

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

/* =========================================================
   RESOURCE ARTICLES
   Shared article theme. New resource articles should reuse
   these classes; add CSS below only for genuinely new components.
   ========================================================= */

.resource-article {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--resource-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
}

.resource-article *,
.resource-article *::before,
.resource-article *::after {
    box-sizing: border-box;
}

.resource-article-header {
    width: 100%;
    max-width: none;
    margin: 0 0 34px;
}

.resource-article-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--resource-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.resource-article-header h1 {
    margin: 0 0 16px;
    color: var(--resource-navy);
    font-family: inherit;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.resource-article-deck {
    margin: 0 0 20px;
    color: var(--resource-muted);
    font-size: 18px;
    line-height: 1.55;
}

.resource-article p,
.resource-article li,
.resource-article td,
.resource-article th {
    font-size: 16px;
    line-height: 1.7;
}

.resource-article p {
    margin: 0 0 16px;
}

.resource-article a {
    color: var(--resource-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resource-article a:hover {
    text-decoration-thickness: 2px;
}

.resource-article-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 0 28px;
    border-top: 1px solid var(--resource-line);
    scroll-margin-top: 110px;
}

.resource-article-section h2 {
    margin: 0 0 18px;
    color: var(--resource-navy);
    font-family: inherit;
    font-size: clamp(24px, 2.3vw, 30px);
    line-height: 1.25;
    letter-spacing: -.35px;
}

.resource-article-section h3 {
    margin: 25px 0 10px;
    color: var(--resource-navy);
    font-family: inherit;
    font-size: 19px;
    line-height: 1.35;
}

.resource-article-section ul,
.resource-article-section ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.resource-article-section li {
    margin: 0 0 7px;
    padding-left: 3px;
}

.resource-article-number {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--resource-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.resource-article-callout {
    margin: 25px 0 5px;
    padding: 20px 23px;
    border-left: 4px solid var(--resource-blue);
    border-radius: 0 9px 9px 0;
    background: var(--resource-pale);
}

.resource-article-callout h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.resource-article-callout p {
    margin: 0;
}

.resource-article-dyeware {
    margin: 32px 0 10px;
    padding: 27px;
    border: 1px solid var(--resource-line);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--resource-pale), #fff);
}

.resource-article-dyeware h3 {
    margin: 0 0 12px;
    color: var(--resource-navy);
    font-size: 23px;
    line-height: 1.3;
}

.resource-article-dyeware p {
    margin-bottom: 18px;
}

.resource-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.resource-article-actions a {
    font-weight: 700;
}

.resource-article-footer {
    width: 100%;
    max-width: none;
    margin: 36px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--resource-line);
}

.resource-article-footer h2 {
    margin: 0 0 12px;
    color: var(--resource-navy);
    font-size: 22px;
}

.resource-article-footer ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.resource-article-footer li {
    margin-bottom: 7px;
}

/* Shared responsive table treatment for resource articles. */
.resource-table-wrap {
    width: 100%;
    margin: 22px 0 25px;
    overflow-x: auto;
    border: 1px solid var(--resource-line);
    border-radius: 9px;
}

.resource-comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.resource-comparison-table th,
.resource-comparison-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--resource-line);
    vertical-align: top;
}

.resource-comparison-table thead th {
    background: var(--resource-pale);
    color: var(--resource-navy);
    font-weight: 800;
}

.resource-comparison-table tbody th {
    min-width: 155px;
    color: var(--resource-navy);
    font-weight: 700;
}

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

/* =========================================================
   RESOURCE ARTICLE COMPONENT: HORIZONTAL HISTORY TIMELINE
   Used by the website-hosting history article.
   ========================================================= */

.hosting-timeline {
    width: 100%;
    margin: 30px 0 38px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--resource-line);
    border-radius: 14px;
    background: var(--resource-soft);
}

.hosting-timeline-heading {
    max-width: 680px;
    margin-bottom: 26px;
}

.hosting-timeline-heading h2 {
    margin: 0 0 8px;
    color: var(--resource-navy);
    font-size: clamp(24px, 2.3vw, 30px);
    line-height: 1.2;
}

.hosting-timeline-heading p {
    margin: 0;
    color: var(--resource-muted);
}

.hosting-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 5px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--resource-blue) var(--resource-line);
}

.hosting-timeline-list {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 930px;
    gap: 0;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.hosting-timeline-list::before {
    position: absolute;
    top: 47px;
    right: 3%;
    left: 3%;
    height: 7px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--resource-blue), var(--resource-cyan));
    content: "";
}

.hosting-timeline-item {
    flex: 1 0 155px;
    min-width: 0;
}

.hosting-timeline-item a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 27px 40px auto auto;
    gap: 0;
    height: 100%;
    padding: 0 12px;
    color: inherit;
    text-decoration: none;
}

.hosting-timeline-year {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--resource-blue);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.hosting-timeline-dot {
    z-index: 1;
    grid-column: 1;
    grid-row: 2;
    width: 21px;
    height: 21px;
    margin: 10px 0 0 2px;
    border: 5px solid var(--resource-blue);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px var(--resource-soft);
}

.hosting-timeline-title {
    grid-column: 1;
    grid-row: 3;
    margin-top: 7px;
    color: var(--resource-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.hosting-timeline-summary {
    grid-column: 1;
    grid-row: 4;
    margin-top: 7px;
    color: var(--resource-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hosting-timeline-hint {
    display: none;
    margin: 8px 0 0;
    color: var(--resource-muted);
    font-size: 13px;
}

.hosting-timeline-item a:hover .hosting-timeline-title,
.hosting-timeline-item a:focus-visible .hosting-timeline-title {
    color: var(--resource-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hosting-timeline-item a:hover .hosting-timeline-dot,
.hosting-timeline-item a:focus-visible .hosting-timeline-dot {
    background: var(--resource-blue);
}

.hosting-timeline-item a:focus-visible {
    outline: 2px solid var(--resource-blue);
    outline-offset: 5px;
    border-radius: 4px;
}

/* Resource article layout: sidebar + article column. */
@media (min-width: 681px) {
    .main-layout > .content {
        min-width: 0;
        width: 100%;
    }

    .main-layout > .content > .resource-article {
        width: 100%;
    }
}

/* Tablet and mobile article adjustments. */
@media (max-width: 980px) {
    .hosting-timeline-hint {
        display: block;
    }
}

@media (max-width: 760px) {
    .hosting-timeline {
        padding: 22px 18px;
    }

    .resource-article-dyeware {
        padding: 22px 19px;
    }
}

@media (max-width: 680px) {
    .resource-article-header h1 {
        font-size: clamp(27px, 7vw, 34px);
    }

    .resource-article-deck {
        font-size: 17px;
    }

    .resource-article-section {
        padding: 28px 0 24px;
        scroll-margin-top: 90px;
    }

    .hosting-timeline {
        padding: 20px 16px;
    }

    .resource-article-dyeware {
        padding: 20px 17px;
    }
}

@media (max-width: 520px) {
    .resource-article {
        line-height: 1.65;
    }

    .resource-article-actions {
        flex-direction: column;
        gap: 9px;
    }

    .resource-comparison-table th,
    .resource-comparison-table td {
        padding: 11px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* Optional CSS for the 4 KB vs 16 GB comparison. Add to shared resources.css if desired. */
.memory-compare { display:grid; gap:18px; margin:18px 0 12px; }
.memory-compare-row { display:grid; gap:7px; }
.memory-compare-label { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.memory-compare-label span { color:var(--resource-muted); font-weight:700; white-space:nowrap; }
.memory-compare-track { height:18px; overflow:hidden; border-radius:20px; background:#e8edf5; }
.memory-compare-fill { display:block; height:100%; border-radius:20px; }
.memory-compare-small { width:4px; min-width:4px; background:#d69b42; }
.memory-compare-large { width:100%; background:linear-gradient(90deg,var(--resource-blue),var(--resource-cyan)); }
.memory-compare-note { margin-top:12px !important; color:var(--resource-muted); font-size:13px !important; }



.technology-groups {
    margin: 2px 0 8px 10px;
    border-left: 1px solid #d9e0e8;
    padding-left: 8px;
}

.technology-group {
    margin: 0;
    border-bottom: 1px solid rgba(120, 130, 145, .18);
}

.technology-group summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 8px;
    font-size: .92rem;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 8px;
}

.technology-group summary::-webkit-details-marker {
    display: none;
}

/* Chevron indicator */

.technology-group summary:after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    margin-right: 3px;

    border-right: 2px solid #718096;
    border-bottom: 2px solid #718096;

    transform: rotate(-45deg);
    transition: transform .18s ease;
    flex-shrink: 0;
}

.technology-group[open] summary:after {
    transform: rotate(45deg);
}

.technology-group summary:hover {
    color: #2875b9;
}

.technology-group summary:focus-visible {
    outline: 2px solid #2875b9;
    outline-offset: 2px;
    border-radius: 3px;
}

.technology-group .group-count {
    margin-left: auto;
    font-size: .75rem;
    color: #718096;
    font-weight: 500;
}

/* Article links */

.technology-group .nested {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 8px 12px;
}

.technology-group .nested a {
    display: block;
    padding: 5px 7px;
    font-size: .86rem;
    line-height: 1.35;
}

/* Highlight the current article */

.technology-group .nested a.current-page {
    color: #2875b9;
    font-weight: 600;
    background: rgba(40, 117, 185, .08);
    border-radius: 4px;
}


.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.resource-groups {
    margin: 2px 0 8px 10px;
    padding-left: 8px;
    border-left: 1px solid #d9e0e8;
}

.resource-group {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(120, 130, 145, .18);
}

/* Expandable heading */

.resource-group summary {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;

    padding: 9px 8px;

    cursor: pointer;
    list-style: none;

    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
}

.resource-group summary::-webkit-details-marker {
    display: none;
}

.resource-group summary::marker {
    content: "";
}

/* Chevron */

.resource-group summary::after {
    content: "";
    display: block;

    width: 7px;
    height: 7px;

    margin-left: auto;
    margin-right: 4px;

    border-right: 2px solid #718096;
    border-bottom: 2px solid #718096;

    transform: rotate(-45deg);
    transition: transform .18s ease;

    flex-shrink: 0;
}

.resource-group[open] summary::after {
    transform: rotate(45deg);
}

.resource-group summary:hover {
    color: #2875b9;
}

.resource-group summary:focus-visible {
    outline: 2px solid #2875b9;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Article count */

.resource-group .group-count {
    margin-left: auto;
    flex-shrink: 0;

    font-size: .75rem;
    font-weight: 500;
    color: #718096;
}

/* Article links */

.resource-group .nested {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 0 0 8px 12px;
}

.resource-group .nested a {
    display: block;
    padding: 5px 7px;

    font-size: .86rem;
    line-height: 1.4;
}

/* Current article */

.resource-group .nested a.current-page {
    color: #2875b9;
    font-weight: 600;
    background: rgba(40, 117, 185, .08);
    border-radius: 4px;
}

/* Main Resource Center categories */
.sidebar > .side-section .side-link:not(:first-of-type) {
    font-weight: 600;
}

/* Category links with expandable article groups */
.sidebar .side-link[href="/resources/websites-hosting"],
.sidebar .side-link[href="/resources/technology"],
.sidebar .side-link[href="/resources/security"] {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-top: 8px;
    background: #f0f4fa;
    border-radius: 6px;
    color: #101b38;
    font-weight: 700;
    text-decoration: none;
}

/* Hover treatment */
.sidebar .side-link[href="/resources/websites-hosting"]:hover,
.sidebar .side-link[href="/resources/technology"]:hover,
.sidebar .side-link[href="/resources/security"]:hover {
    background: #e5efff;
}

/* Slightly smaller article group headings */
.resource-group summary {
    font-size: .90rem;
    font-weight: 600;
}