/* Population Island — Life Sims editorial hub */

.ls-wrap {
    max-width: 1000px;
    margin: 108px auto 56px;
    padding: 0 18px 40px;
    color: var(--pi-text);
}

.ls-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--pi-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ls-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 28px;
    margin-bottom: 28px;
    border: 1px solid var(--pi-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 42%),
        radial-gradient(circle at 90% 20%, rgba(167, 139, 250, 0.12), transparent 38%),
        linear-gradient(160deg, var(--pi-bg-card), var(--pi-bg-deep));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ls-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ls-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--pi-text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.ls-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--pi-text-dim);
    font-size: 0.82rem;
}

.ls-meta span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.ls-article {
    max-width: 760px;
    margin: 0 auto;
}

.ls-article h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ls-article h2 {
    margin: 2.1rem 0 0.85rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    scroll-margin-top: 110px;
}

.ls-article h3 {
    margin: 1.6rem 0 0.6rem;
    color: #fff;
    font-size: 1.14rem;
    font-weight: 700;
}

.ls-article p,
.ls-article li {
    color: #c8d2e4;
    font-size: 1.02rem;
    line-height: 1.82;
}

.ls-article p {
    margin: 0 0 1.05rem;
}

.ls-article ul,
.ls-article ol {
    margin: 0 0 1.2rem 1.2rem;
    padding: 0;
}

.ls-article li {
    margin-bottom: 0.45rem;
}

.ls-article a {
    color: var(--pi-accent);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.35);
    text-underline-offset: 3px;
}

.ls-article a:hover {
    color: #fff;
    text-decoration-color: var(--pi-accent);
}

.ls-lede {
    padding-left: 16px;
    border-left: 3px solid var(--pi-accent);
    color: #e2e8f0 !important;
    font-size: 1.14rem !important;
    line-height: 1.7 !important;
}

.ls-quickfacts {
    margin: 1.6rem 0 2rem;
    padding: 20px 22px;
    border: 1px solid var(--pi-border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.95), rgba(17, 24, 39, 0.95));
}

.ls-quickfacts h2 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pi-accent);
}

.ls-quickfacts dl {
    display: grid;
    grid-template-columns: minmax(110px, 0.4fr) 1fr;
    gap: 8px 18px;
    margin: 0;
}

.ls-quickfacts dt {
    color: var(--pi-text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ls-quickfacts dd {
    margin: 0;
    color: var(--pi-text);
    font-size: 0.94rem;
}

.ls-callout {
    margin: 1.6rem 0;
    padding: 16px 18px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-left: 4px solid var(--pi-accent);
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.07);
}

.ls-callout p:last-child {
    margin-bottom: 0;
}

.ls-callout--warning {
    border-color: rgba(251, 191, 36, 0.3);
    border-left-color: var(--pi-gold);
    background: rgba(251, 191, 36, 0.07);
}

.ls-callout--note {
    border-color: rgba(167, 139, 250, 0.3);
    border-left-color: #a78bfa;
    background: rgba(167, 139, 250, 0.07);
}

.ls-figure {
    margin: 1.8rem 0;
}

.ls-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
}

.ls-figure figcaption {
    margin-top: 8px;
    color: var(--pi-text-dim);
    font-size: 0.78rem;
    line-height: 1.5;
}

.ls-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 240px;
    padding: 26px;
    border: 2px dashed rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(167, 139, 250, 0.06)),
        var(--pi-bg-card);
    text-align: center;
}

.ls-image-placeholder strong {
    color: #fff;
    font-size: 1.05rem;
}

.ls-image-placeholder span:not(.ls-image-placeholder__label) {
    max-width: 520px;
    color: var(--pi-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.ls-image-placeholder__label {
    color: var(--pi-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ls-cta {
    max-width: 820px;
    margin: 2.6rem auto 0;
    padding: 30px 28px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 45%),
        linear-gradient(150deg, var(--pi-bg-card), var(--pi-bg-deep));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.ls-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
}

.ls-cta p {
    max-width: 640px;
    margin: 0 auto 16px;
    color: var(--pi-text-muted);
    line-height: 1.7;
}

.ls-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ls-disclosure {
    margin: 0 !important;
    color: var(--pi-text-dim) !important;
    font-size: 0.76rem !important;
    line-height: 1.5 !important;
}

.ls-related {
    max-width: 900px;
    margin: 2.6rem auto 0;
}

.ls-related h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.ls-related__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    background: var(--pi-bg-card);
    color: var(--pi-text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ls-related__card:hover {
    transform: translateY(-3px);
    border-color: var(--pi-accent);
    background: var(--pi-bg-hover);
    color: #fff;
    text-decoration: none;
}

.ls-related__card strong {
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.35;
}

.ls-related__card span:last-child {
    color: var(--pi-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ls-related .ls-kicker {
    margin-bottom: 0;
    font-size: 0.62rem;
}

.ls-top10 {
    display: grid;
    gap: 16px;
    margin: 1.4rem 0 2rem;
}

.ls-top10__item {
    position: relative;
    padding: 22px 22px 20px 74px;
    border: 1px solid var(--pi-border);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--pi-bg-card), rgba(17, 24, 39, 0.9));
}

.ls-top10__number {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--pi-accent);
    font-weight: 800;
}

.ls-top10__item h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.1rem;
}

.ls-top10__item p {
    margin: 0 0 8px;
    color: var(--pi-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ls-badge {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 8px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: var(--pi-accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ls-badge--ours {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: var(--pi-gold);
}

.ls-top10__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.84rem;
}

.ls-top10__links a {
    color: var(--pi-accent);
    text-decoration: none;
}

.ls-top10__links a:hover {
    text-decoration: underline;
}

.ls-table-wrap {
    margin: 1.4rem 0 2rem;
    overflow-x: auto;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
}

.ls-table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ls-table th,
.ls-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pi-border);
    text-align: left;
    vertical-align: top;
}

.ls-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--pi-text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ls-table td {
    color: #c8d2e4;
}

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

.ls-toc {
    margin: 1.6rem 0 2rem;
    padding: 18px 20px;
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.ls-toc h2 {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pi-accent);
}

.ls-toc ol {
    margin: 0 0 0 1.1rem;
}

.ls-toc li {
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.ls-faq {
    margin: 1.8rem 0;
}

.ls-faq details {
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--pi-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ls-faq summary {
    cursor: pointer;
    color: #fff;
    font-weight: 700;
}

.ls-faq p {
    margin: 10px 0 0;
}

.ls-sources {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--pi-border);
}

.ls-sources h2 {
    margin-top: 0;
    font-size: 1rem;
}

.ls-sources ul {
    margin-left: 1.1rem;
}

.ls-sources li {
    color: var(--pi-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.ls-footer {
    max-width: 1000px;
    margin: 48px auto 0;
    padding: 22px 18px 0;
    border-top: 1px solid var(--pi-border);
    color: var(--pi-text-dim);
    font-size: 0.78rem;
    text-align: center;
}

.ls-footer a {
    color: var(--pi-text-muted);
    text-decoration: none;
}

.ls-footer a:hover {
    color: var(--pi-accent);
}

.ls-footer span {
    margin: 0 6px;
}

.ls-footer__disclosure {
    max-width: 720px;
    margin: 10px auto 0;
    font-size: 0.72rem;
    line-height: 1.55;
    opacity: 0.8;
}

@media (max-width: 820px) {
    .ls-wrap {
        margin-top: 92px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .ls-hero {
        padding: 30px 20px;
    }

    .ls-related__grid {
        grid-template-columns: 1fr;
    }

    .ls-quickfacts dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .ls-quickfacts dd {
        margin-bottom: 8px;
    }

    .ls-top10__item {
        padding-left: 22px;
        padding-top: 60px;
    }

    .ls-top10__number {
        top: 14px;
        left: 18px;
    }
}
