/**
 * SpinFakta Homepage — Full 3-Column Portal
 *
 * No header. Left nav (220px) + Center feed + Right sidebar (300px)
 *
 * @package SpinFakta
 * @since 3.2.0
 */

/* Reset — hide GP header/footer on homepage */
.home .site-header,
.home .site-footer,
.home .site-content > .ast-container,
.home #page > header,
.home #page > footer {
    display: none !important;
}

/* ==========================================================================
   Portal Shell
   ========================================================================== */

.sf-portal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    min-height: 100vh;
    background: #F5F5F5;
    color: #333;
    line-height: 1.6;

    /* Override GP CSS variables inside portal */
    --contrast: #1A1A1A;
    --contrast-2: #555;
    --contrast-3: #999;
    --base: #F0F0F0;
    --base-2: #F5F5F5;
    --base-3: #FFF;
    --accent: #F59E0B;
}

/* Override GP link styles inside portal */
.sf-portal a {
    color: inherit;
    text-decoration: none;
}
.sf-portal a:hover,
.sf-portal a:focus,
.sf-portal a:active {
    color: inherit;
}

/* ==========================================================================
   LEFT NAV (220px)
   ========================================================================== */

.sf-nav {
    background: #141414;
    color: #999;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    border-right: 1px solid #222;
}

.sf-nav::-webkit-scrollbar { width: 3px; }
.sf-nav::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.sf-nav__inner {
    padding: 1rem 0.75rem 2rem;
}

/* Logo */
.sf-nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.sf-nav__logo-icon {
    width: 32px;
    height: 32px;
    background: #F59E0B;
    color: #141414;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    letter-spacing: -0.02em;
}

.sf-nav__logo-text {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #F5F5F5;
    letter-spacing: -0.01em;
}

.sf-nav__logo-img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Nav group */
.sf-nav__group {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
}

.sf-nav__group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sf-nav__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0.5rem;
    margin-bottom: 0.375rem;
}

/* Nav link */
.sf-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #AAA;
    text-decoration: none;
    transition: all 100ms;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-nav__link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.sf-nav__link:hover {
    background: #1E1E1E;
    color: #EEE;
    text-decoration: none;
}

.sf-nav__link--active {
    background: #1E1E1E;
    color: #F59E0B;
}

.sf-nav__link--active svg {
    opacity: 1;
    color: #F59E0B;
}

/* Dot for provider/category items */
.sf-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sf-nav__count {
    margin-left: auto;
    font-size: 0.625rem;
    color: #555;
    font-weight: 400;
    flex-shrink: 0;
}

.sf-nav__viewall {
    display: block;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #F59E0B;
    text-decoration: none;
}

.sf-nav__viewall:hover {
    color: #FBBF24;
    text-decoration: none;
}

/* ==========================================================================
   CENTER MAIN
   ========================================================================== */

.sf-main {
    padding: 1.25rem 1.5rem 3rem;
    min-width: 0;
}

/* Section */
.sf-sec {
    margin-bottom: 1.75rem;
}

.sf-sec__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E0E0E0;
}

.sf-sec__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

.sf-sec__more {
    font-size: 0.75rem;
    font-weight: 500;
    color: #F59E0B;
    text-decoration: none;
}

.sf-sec__more:hover {
    color: #D97706;
    text-decoration: none;
}

/* ==========================================================================
   Featured — 1 hero + 2 sub
   ========================================================================== */

.sf-main__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.sf-hero {
    grid-column: 1 / -1;
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 200ms;
}

.sf-hero:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    text-decoration: none;
}

.sf-hero__bg {
    height: 240px;
    background: linear-gradient(135deg, var(--accent,#1E40AF)22, var(--accent,#1E40AF)55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.sf-hero__badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.5625rem;
    font-weight: 700;
    color: #FFF;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.sf-hero__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #FFF;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.sf-hero__desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.625rem;
    line-height: 1.5;
    max-width: 480px;
}

.sf-hero__tags {
    display: flex;
    gap: 0.5rem;
}

.sf-hero__tags span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #F59E0B;
    background: rgba(0,0,0,0.45);
    padding: 2px 8px;
    border-radius: 3px;
}

/* Sub cards */
.sf-sub {
    display: flex;
    gap: 0.625rem;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.75rem;
    text-decoration: none;
    transition: all 150ms;
}

.sf-sub:hover {
    border-color: #CCC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
}

.sf-sub__vis {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent,#64748B)18, var(--accent,#64748B)40);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-sub__img { width: 100%; height: 100%; object-fit: cover; }
.sf-sub__ph { opacity: 0.35; }

.sf-sub__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.sf-sub__prov {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sf-sub__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-sub__meta {
    font-size: 0.6875rem;
    color: #999;
}

/* ==========================================================================
   Game Grid
   ========================================================================== */

.sf-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.sf-gc {
    display: block;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 150ms;
}

.sf-gc:hover {
    border-color: #CCC;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.sf-gc__vis {
    position: relative;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sf-gc__img { width: 100%; height: 100%; object-fit: cover; }
.sf-gc__ph { opacity: 0.3; }

.sf-gc__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.5rem;
    font-weight: 700;
    color: #FFF;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.sf-gc__info {
    padding: 0.5rem 0.625rem;
}

.sf-gc__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-gc__tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Tags */
.sf-t {
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}

.sf-t--blue { color: #1E40AF; background: #EFF6FF; }
.sf-t--high { color: #B91C1C; background: #FEF2F2; } /* BUG-16: was #DC2626=4.41:1 → #B91C1C=5.3:1 */
.sf-t--med  { color: #92400E; background: #FFFBEB; } /* BUG-14: was #D97706=3.07:1 → #92400E=6.37:1 */
.sf-t--low  { color: #065F46; background: #ECFDF5; } /* BUG-15: was #059669=3.58:1 → #065F46=7.0:1 */

/* ==========================================================================
   News Feed (Industry News)
   ========================================================================== */

.sf-news-feed {
    display: flex;
    flex-direction: column;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
}

.sf-news {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    transition: background 100ms;
}

.sf-news:last-child {
    border-bottom: none;
}

.sf-news:hover {
    background: #FAFAFA;
    text-decoration: none;
}

.sf-news__time {
    font-size: 0.625rem;
    font-weight: 500;
    color: #BBB;
    white-space: nowrap;
    min-width: 48px;
    padding-top: 2px;
}

.sf-news__body {
    flex: 1;
    min-width: 0;
}

.sf-news__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 2px;
    line-height: 1.35;
}

.sf-news__excerpt {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Article Feed
   ========================================================================== */

.sf-article-feed {
    display: flex;
    flex-direction: column;
}

.sf-ai {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #EEE;
}

.sf-ai:first-child { padding-top: 0; }
.sf-ai:last-child { border-bottom: none; }

.sf-ai__thumb {
    width: 84px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #EEE;
}

.sf-ai__img { width: 100%; height: 100%; object-fit: cover; }
.sf-ai__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #CCC; }

.sf-ai__body { flex: 1; min-width: 0; }

.sf-ai__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.1875rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-ai__title a { color: inherit; text-decoration: none; }
.sf-ai__title a:hover { color: #F59E0B; }

.sf-ai__desc {
    font-size: 0.8125rem;
    color: #777;
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-ai__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #999;
}

.sf-ai__cat {
    font-weight: 600;
    color: #F59E0B;
}

/* ==========================================================================
   Guide Grid
   ========================================================================== */

.sf-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.sf-gd {
    display: block;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.875rem;
    text-decoration: none;
    transition: all 150ms;
}

.sf-gd:hover {
    border-color: #CCC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
}

.sf-gd__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.sf-gd__desc {
    font-size: 0.8125rem;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   RIGHT SIDEBAR (300px)
   ========================================================================== */

.sf-aside {
    border-left: 1px solid #E0E0E0;
    background: #FAFAFA;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #DDD transparent;
}

.sf-aside::-webkit-scrollbar { width: 3px; }
.sf-aside::-webkit-scrollbar-thumb { background: #DDD; border-radius: 2px; }

.sf-aside__inner {
    padding: 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Widget base */
.sf-w {
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.875rem;
}

.sf-w__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 0.625rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #F59E0B;
}

/* Provider list */
.sf-w__prov {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-w__prov a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    text-decoration: none;
    color: #444;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 100ms;
}

.sf-w__prov a:hover { color: #1A1A1A; text-decoration: none; }

.sf-w__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sf-w__num {
    margin-left: auto;
    font-size: 0.625rem;
    color: #BBB;
}

/* Releases */
.sf-w__releases {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-w__releases li {
    border-bottom: 1px solid #F0F0F0;
}

.sf-w__releases li:last-child {
    border-bottom: none;
}

.sf-w__releases a {
    display: block;
    padding: 0.375rem 0;
    text-decoration: none;
}

.sf-w__releases a:hover { opacity: 0.8; text-decoration: none; }

.sf-w__releases strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}

.sf-w__releases span {
    font-size: 0.6875rem;
    color: #999;
}

/* Categories */
.sf-w__cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-w__cats li {
    border-bottom: 1px solid #F0F0F0;
}

.sf-w__cats li:last-child { border-bottom: none; }

.sf-w__cats a {
    display: flex;
    justify-content: space-between;
    padding: 0.3125rem 0;
    text-decoration: none;
    color: #444;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 100ms;
}

.sf-w__cats a:hover { color: #F59E0B; text-decoration: none; }
.sf-w__cats span { font-size: 0.625rem; color: #BBB; }

/* Telegram CTA */
.sf-w--tg {
    background: #141414;
    border-color: #222;
    padding: 1rem;
}

.sf-w__tg-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.sf-w__tg-head svg {
    color: #38BDF8;
    flex-shrink: 0;
}

.sf-w__tg-head strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #F5F5F5;
    line-height: 1.2;
}

.sf-w__tg-head span {
    display: block;
    font-size: 0.6875rem;
    color: #777;
    line-height: 1.3;
}

.sf-w__tg-btn {
    display: block;
    text-align: center;
    background: #F59E0B;
    color: #141414;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 150ms;
}

.sf-w__tg-btn:hover {
    background: #FBBF24;
    color: #141414;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sf-footer {
    background: #141414;
    color: #999;
}

.sf-footer__main {
    /* width/padding-x controlled by .sf-container (no double gutter) */
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.sf-footer__tagline {
    font-weight: 600;
    color: #F59E0B;
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.sf-footer__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.sf-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: #E8E8E8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.sf-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-footer__links li { margin-bottom: 0.4375rem; }

.sf-footer__links a {
    color: #888; /* BUG-11: was #666=3.21:1 → #888=4.8:1 */
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 120ms;
}

.sf-footer__links a:hover { color: #F59E0B; text-decoration: none; }

.sf-footer__community-note {
    font-size: 0.75rem;
    color: #888; /* BUG-09: was #555=2.47:1 → #888=4.8:1 */
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.sf-footer__bottom {
    border-top: 1px solid #222;
    padding: 1rem 0;
}

.sf-footer__bottom-inner {
    /* width/padding-x controlled by .sf-container (no double gutter) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888; /* BUG-09: was #555=2.47:1 → #888=4.8:1 */
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sf-footer__disclaimer {
    font-size: 0.6875rem;
    color: #777; /* BUG-10: was #444=1.89:1 → #777=4.8:1 */
}

/* GP override */
.sf-portal ~ .site-footer,
.sf-portal ~ footer.site-info {
    display: none !important;
}

/* ==========================================================================
   Ranking Widget (.sf-w__ranking)
   ========================================================================== */

.sf-w__ranking {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.sf-w__rank-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4375rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.sf-w__rank-item:last-child {
    border-bottom: none;
}

.sf-w__rank-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 4px;
    flex-shrink: 0;
}

.sf-w__rank-num--top {
    background: #F59E0B;
    color: #141414;
}

.sf-w__rank-num--rest {
    background: #F0F0F0;
    color: #777;
}

.sf-w__rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sf-w__rank-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-w__rank-title:hover {
    color: #F59E0B;
    text-decoration: none;
}

.sf-w__rank-sub {
    font-size: 0.6875rem;
    color: #999;
    line-height: 1.3;
}

.sf-w__empty {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
    padding: 0.5rem 0;
}

/* ==========================================================================
   Star Ratings (.sf-stars)
   ========================================================================== */

.sf-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sf-stars__star {
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #AAAAAA; /* BUG-04: was #DDD=1.36:1 → #AAA=2.7:1 (decorative) */
    transition: color 100ms;
}

.sf-stars__star--filled {
    color: #F59E0B;
}

.sf-stars__star:hover,
.sf-stars__star:hover ~ .sf-stars__star--filled {
    color: #F59E0B;
}

.sf-stars--readonly .sf-stars__star {
    cursor: default;
}

.sf-stars__count {
    font-size: 0.6875rem;
    color: #999;
    margin-left: 0.375rem;
    font-weight: 500;
}

.sf-stars__avg {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #F59E0B;
    margin-left: 0.25rem;
}

/* ==========================================================================
   Masthead (H1 band — front page)
   ========================================================================== */

.sf-masthead {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
}

.sf-masthead__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFF;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.sf-masthead__sub {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.62);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Generated Covers (.sf-cover) — gradient + initials when no featured image
   ========================================================================== */

.sf-cover {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(140deg, var(--sfc, #1E40AF) -25%, #0F172A 135%);
}

.sf-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.15), transparent 48%);
}

.sf-cover::after {
    content: '';
    position: absolute;
    width: 120%;
    padding-top: 120%;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50%;
    top: -80%;
    right: -45%;
}

.sf-cover__init {
    position: relative;
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Initials scale per context */
.sf-hero__bg .sf-cover__init { font-size: 3.25rem; }
.sf-gc__vis .sf-cover__init { font-size: 1.625rem; }
.sf-sub__vis .sf-cover__init { font-size: 1.25rem; }
.sf-ai__thumb .sf-cover__init,
.sf-related__thumb .sf-cover__init { font-size: 1.0625rem; }
.sf-archive-card__thumb .sf-cover__init { font-size: 2rem; }

/* Article updated-date trust marker */
.sf-article__updated { color: #059669; font-weight: 600; }

/* ==========================================================================
   Nav bar + mobile hamburger (CSS-only toggle)
   ========================================================================== */

.sf-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem 0;
}

.sf-nav__bar .sf-nav__logo {
    margin-bottom: 0;
    padding: 0.375rem 0.5rem;
}

.sf-nav__burger {
    display: none;
    cursor: pointer;
    color: #DDD;
    padding: 0.375rem;
    border-radius: 6px;
}

.sf-nav__burger:hover { background: #1E1E1E; }

.sf-nav__toggle { display: none; }

.sf-nav__inner { padding-top: 0.75rem; }

/* ==========================================================================
   Responsive — 1100px
   ========================================================================== */

@media (max-width: 1100px) {
    .sf-portal {
        grid-template-columns: 180px 1fr 260px;
    }
}

/* ==========================================================================
   Responsive — 900px (hide right sidebar)
   ========================================================================== */

@media (max-width: 900px) {
    .sf-portal {
        grid-template-columns: 180px 1fr;
    }

    .sf-aside {
        display: none;
    }

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

    .sf-hero__bg {
        height: 200px;
    }
}

/* ==========================================================================
   Responsive — 640px (mobile)
   ========================================================================== */

@media (max-width: 640px) {
    .sf-portal {
        grid-template-columns: 1fr;
    }

    /* Left nav becomes a sticky top bar with hamburger menu */
    .sf-nav {
        position: sticky;
        top: 0;
        z-index: 100;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #222;
        overflow: visible;
    }

    .sf-nav__bar {
        padding: 0.5rem 0.875rem;
    }

    .sf-nav__burger {
        display: flex;
        align-items: center;
    }

    /* Menu collapsed by default, opens via checkbox toggle */
    .sf-nav__inner {
        display: none;
        padding: 0.75rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .sf-nav__toggle:checked ~ .sf-nav__inner {
        display: block;
    }

    .sf-nav__group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .sf-nav__label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .sf-nav__link {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
        border: 1px solid #333;
        border-radius: 100px;
    }

    .sf-nav__link svg {
        display: none;
    }

    .sf-nav__count { display: none; }
    .sf-nav__viewall { display: none; }

    /* Main */
    .sf-main {
        padding: 0.875rem;
    }

    .sf-main__featured {
        grid-template-columns: 1fr;
    }

    .sf-hero__bg {
        height: 180px;
    }

    .sf-hero__title {
        font-size: 1.125rem;
    }

    .sf-hero__desc {
        display: none;
    }

    .sf-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .sf-gc__vis {
        height: 85px;
    }

    .sf-guide-grid {
        grid-template-columns: 1fr;
    }

    .sf-ai__thumb {
        width: 68px;
        height: 52px;
    }

    .sf-footer__main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .sf-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
