/* Software Guide — extends news-feed nav shell */

.sg-body {
    background: var(--li-bg);
}

.sg-shell {
    max-width: var(--li-shell-width);
    margin: 0 auto;
    padding: 20px 16px 48px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .sg-shell {
        grid-template-columns: 1fr;
    }
}

/* Left product rail */
.sg-rail {
    position: sticky;
    top: 68px;
}

.sg-rail__card {
    background: var(--li-card);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    overflow: hidden;
}

.sg-rail__head {
    padding: 16px;
    border-bottom: 1px solid var(--li-border);
}

.sg-rail__head h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--li-text);
}

.sg-rail__head p {
    margin: 0;
    font-size: 12px;
    color: var(--li-muted);
}

.sg-product-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.sg-product-list li {
    margin-bottom: 4px;
}

.sg-product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--li-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.15s;
}

.sg-product-link:hover {
    background: rgba(10, 102, 194, 0.08);
    text-decoration: none;
    color: var(--li-text);
}

.sg-product-link.is-active {
    background: rgba(10, 102, 194, 0.12);
    color: var(--li-blue);
}

.sg-product-link i {
    font-size: 18px;
    flex-shrink: 0;
}

.sg-product-link span {
    flex: 1;
    min-width: 0;
}

.sg-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    flex-shrink: 0;
}

.sg-badge--live {
    background: #dcfce7;
    color: #166534;
}

/* Main content */
.sg-main {
    min-width: 0;
}

.sg-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #f97316 100%);
    border-radius: 12px;
    padding: 28px 28px 24px;
    color: #fff;
    margin-bottom: 20px;
}

.sg-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sg-hero p {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: 0.92;
    max-width: 640px;
    line-height: 1.55;
}

.sg-hero__note {
    font-size: 13px !important;
    opacity: 0.88 !important;
    margin-bottom: 14px !important;
    max-width: 680px !important;
}

.sg-hero__note i {
    margin-right: 4px;
}

.sg-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sg-hero__cta:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
}

/* Journey strip */
.sg-journey {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 720px) {
    .sg-journey {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sg-journey__step {
    background: var(--li-card);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    padding: 14px 12px;
    text-align: center;
    position: relative;
}

.sg-journey__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--li-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sg-journey__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--li-text);
    margin-bottom: 2px;
}

.sg-journey__sub {
    font-size: 11px;
    color: var(--li-muted);
}

/* Search bar */
.sg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.sg-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.sg-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--li-muted);
    pointer-events: none;
}

.sg-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    font-size: 14px;
    background: var(--li-card);
    color: var(--li-text);
}

.sg-search input:focus {
    outline: none;
    border-color: var(--li-blue);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.15);
}

.sg-module-count {
    font-size: 13px;
    color: var(--li-muted);
}

/* Module accordion */
.sg-modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sg-module {
    background: var(--li-card);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    overflow: hidden;
}

.sg-module.is-hidden {
    display: none;
}

.sg-module__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.sg-module__head:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sg-module__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(10, 102, 194, 0.1);
    color: var(--li-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sg-module__meta {
    flex: 1;
    min-width: 0;
}

.sg-module__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--li-text);
}

.sg-module__summary {
    margin: 0;
    font-size: 12px;
    color: var(--li-muted);
    line-height: 1.4;
}

.sg-module__chev {
    color: var(--li-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sg-module.is-open .sg-module__chev {
    transform: rotate(180deg);
}

.sg-module__body {
    display: none;
    padding: 16px 16px 16px 16px;
    border-top: 1px solid var(--li-border);
}

.sg-module.is-open .sg-module__body {
    display: block;
}

/* Prerequisites */
.sg-prereq {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.sg-prereq__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
}

.sg-prereq__list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.55;
}

.sg-prereq__list li {
    margin-bottom: 4px;
}

/* Field glossary */
.sg-glossary {
    background: #f8fafc;
    border: 1px solid var(--li-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.sg-glossary__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--li-text);
}

.sg-glossary__list {
    margin: 0;
}

.sg-glossary__list dt {
    font-size: 13px;
    font-weight: 700;
    color: var(--li-blue);
    margin-top: 10px;
}

.sg-glossary__list dt:first-child {
    margin-top: 0;
}

.sg-glossary__list dd {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--li-muted);
    line-height: 1.5;
    padding-left: 0;
}

/* Menu path breadcrumb */
.sg-menu-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 8px;
    font-size: 12px;
}

.sg-menu-path__label {
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sg-menu-path__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.sg-menu-path__item {
    background: #0f172a;
    color: #f8fafc;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.sg-menu-path__sep {
    color: var(--li-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 0 2px;
}

/* Action checklist */
.sg-actions {
    margin-top: 8px;
}

.sg-actions__label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sg-actions__list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--li-text);
    line-height: 1.55;
}

.sg-actions__list li {
    margin-bottom: 4px;
}

/* Timeline steps */
.sg-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.sg-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.sg-timeline li {
    position: relative;
    padding-left: 44px;
    padding-bottom: 18px;
}

.sg-timeline li:last-child {
    padding-bottom: 0;
}

.sg-timeline__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--li-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sg-timeline__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--li-text);
}

.sg-timeline__detail {
    margin: 0;
    font-size: 13px;
    color: var(--li-muted);
    line-height: 1.55;
}

/* Coming soon state */
.sg-empty {
    background: var(--li-card);
    border: 1px dashed var(--li-border);
    border-radius: var(--li-radius);
    padding: 48px 24px;
    text-align: center;
}

.sg-empty i {
    font-size: 40px;
    color: var(--li-muted);
    margin-bottom: 12px;
    display: block;
}

.sg-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--li-text);
}

.sg-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--li-muted);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.sg-no-results {
    display: none;
    text-align: center;
    padding: 32px;
    color: var(--li-muted);
    font-size: 14px;
}

.sg-no-results.is-visible {
    display: block;
}
