.jsg-hub,
.jsg-related,
.jsg-context,
.jsg-archive-hero,
.jsg-archive-sections {
    --jsg-green: #1f6c45;
    --jsg-green-dark: #165233;
    --jsg-ink: #0b1d1f;
    --jsg-muted: #52605f;
    --jsg-line: #d9e4df;
    --jsg-soft: #f5f8f6;
    --jsg-warm: #fff8ed;
    --jsg-warm-line: #ead8bf;
    color: var(--jsg-ink);
}

.jsg-hub {
    margin: 3rem 0 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--jsg-line);
}

.jsg-hub--featured {
    margin-top: 0;
    padding: 1.25rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--jsg-soft) 100%);
}

.jsg-hub__intro {
    max-width: 760px;
}

.jsg-hub__eyebrow,
.jsg-related__head p,
.jsg-context__main p {
    margin: 0 0 .35rem;
    color: var(--jsg-green);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 0;
}

.jsg-hub h2,
.jsg-related h2 {
    margin: 0 0 .65rem;
    color: var(--jsg-ink);
}

.jsg-hub__intro p {
    margin-bottom: 1.2rem;
    color: var(--jsg-muted);
}

.jsg-hub__quick {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 1.35rem;
}

.jsg-hub__quick a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .72rem;
    border: 1px solid var(--jsg-line);
    border-radius: 999px;
    background: #fff;
    color: var(--jsg-green-dark);
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
}

.jsg-start {
    display: grid;
    gap: .9rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--jsg-warm-line);
    border-radius: 8px;
    background: var(--jsg-warm);
}

.jsg-start__label {
    margin: 0 0 .3rem;
    color: #8a5a1f;
    font-size: .82rem;
    font-weight: 700;
}

.jsg-start h3 {
    margin: 0;
    font-size: 1.08rem;
}

.jsg-start ol {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding-left: 1.15rem;
}

.jsg-start a {
    color: var(--jsg-green-dark);
    font-weight: 650;
}

.jsg-hub__sections {
    display: grid;
    gap: 1rem;
}

.jsg-section {
    padding: 1rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: #fff;
}

.jsg-section__head h3 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.jsg-section__head p {
    margin: 0 0 .85rem;
    color: var(--jsg-muted);
    font-size: .95rem;
}

.jsg-section__links {
    display: grid;
    gap: .45rem;
}

.jsg-section__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .72rem .8rem;
    border-radius: 6px;
    background: var(--jsg-soft);
    color: var(--jsg-ink);
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.jsg-section__links a:hover,
.jsg-section__links a:focus,
.jsg-related a:hover,
.jsg-related a:focus {
    color: var(--jsg-green-dark);
    text-decoration: underline;
}

.jsg-section__links a.is-primary {
    background: #eef7f1;
    color: var(--jsg-green-dark);
}

.jsg-section__links em {
    flex: 0 0 auto;
    font-size: .78rem;
    font-style: normal;
    color: var(--jsg-green);
}

.jsg-hub__notice {
    margin: 1rem 0 0;
    padding: .85rem 1rem;
    border-left: 4px solid var(--jsg-green);
    background: var(--jsg-soft);
    color: var(--jsg-muted);
    font-size: .94rem;
}

.jsg-related {
    margin: 2.5rem 0 1rem;
    padding: 1.1rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: #fff;
}

.jsg-related__head h2 {
    font-size: 1.12rem;
}

.jsg-related__summary {
    margin: -.25rem 0 .75rem;
    color: var(--jsg-muted);
    font-size: .92rem;
}

.jsg-related ul {
    display: grid;
    gap: .4rem;
    margin: .75rem 0 1rem;
    padding-left: 1.1rem;
}

.jsg-related a {
    color: var(--jsg-green-dark);
    font-weight: 650;
}

.jsg-related__all {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .52rem .8rem;
    border-radius: 6px;
    background: var(--jsg-green);
    color: #fff !important;
    text-decoration: none;
}

.jsg-related__all:hover,
.jsg-related__all:focus {
    background: var(--jsg-green-dark);
    color: #fff !important;
    text-decoration: none !important;
}

.jsg-context {
    display: grid;
    gap: .85rem;
    margin: 0 0 1.25rem;
    padding: .95rem 1rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: var(--jsg-soft);
}

.jsg-context__main strong {
    display: block;
    margin-bottom: .25rem;
    font-size: 1.02rem;
}

.jsg-context__main span {
    display: block;
    color: var(--jsg-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.jsg-context__links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.jsg-context__links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .38rem .62rem;
    border: 1px solid var(--jsg-line);
    border-radius: 999px;
    background: #fff;
    color: var(--jsg-green-dark);
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
}

.jsg-archive-hero {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f3 100%);
}

.jsg-archive-hero h1 {
    margin: 0 0 .65rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
}

.jsg-archive-hero__body > p:not(.jsg-hub__eyebrow) {
    max-width: 760px;
    margin: 0 0 1rem;
    color: var(--jsg-muted);
}

.jsg-archive-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.jsg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .55rem .9rem;
    border: 1px solid var(--jsg-line);
    border-radius: 6px;
    background: #fff;
    color: var(--jsg-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.jsg-button--primary {
    border-color: var(--jsg-green);
    background: var(--jsg-green);
    color: #fff !important;
}

.jsg-archive-hero__panel {
    padding: 1rem;
    border: 1px solid var(--jsg-warm-line);
    border-radius: 8px;
    background: var(--jsg-warm);
}

.jsg-archive-hero__panel p {
    margin: 0 0 .55rem;
    color: #8a5a1f;
    font-size: .86rem;
    font-weight: 700;
}

.jsg-archive-hero__panel ol {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding-left: 1.1rem;
}

.jsg-archive-hero__panel a {
    color: var(--jsg-green-dark);
    font-weight: 650;
}

.jsg-archive-sections {
    display: grid;
    gap: .75rem;
    margin: 0 0 1.5rem;
}

.jsg-archive-sections a {
    display: block;
    padding: .95rem;
    border: 1px solid var(--jsg-line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.jsg-archive-sections strong,
.jsg-archive-sections span {
    display: block;
}

.jsg-archive-sections strong {
    margin-bottom: .25rem;
    color: var(--jsg-ink);
}

.jsg-archive-sections span {
    color: var(--jsg-muted);
    font-size: .9rem;
    line-height: 1.5;
}

@media (min-width: 760px) {
    .jsg-hub__sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jsg-section:first-child {
        grid-column: 1 / -1;
    }

    .jsg-start,
    .jsg-context,
    .jsg-archive-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
        align-items: start;
    }

    .jsg-archive-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 544px) {
    .jsg-hub {
        margin-top: 2rem;
    }

    .jsg-section {
        padding: .9rem;
    }

    .jsg-section__links a {
        align-items: flex-start;
        flex-direction: column;
    }
}
