/*
 * SomGeek magazine UI
 * Custom homepage inspired by the approved black-and-gold visual concept.
 */

:root {
    --sg-bg: #050709;
    --sg-bg-soft: #090c10;
    --sg-panel: #0d1116;
    --sg-panel-raised: #12171d;
    --sg-panel-soft: #171d24;
    --sg-border: #252c34;
    --sg-border-soft: #1b2128;
    --sg-gold: #e2aa16;
    --sg-gold-bright: #ffc52b;
    --sg-gold-dark: #9d6f00;
    --sg-text: #f5f6f7;
    --sg-muted: #9ba3ad;
    --sg-muted-dark: #68717c;
    --sg-blue: #2d80ff;
    --sg-red: #ec3131;
    --sg-green: #2cb45e;
    --sg-radius: 3px;
    --sg-shell: 1440px;
    --sg-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body,
body.custom-background,
.sg-site-body {
    margin: 0;
    background:
        radial-gradient(circle at 16% 0%, rgba(28, 42, 55, 0.2), transparent 29rem),
        radial-gradient(circle at 88% 10%, rgba(226, 170, 22, 0.045), transparent 26rem),
        var(--sg-bg) !important;
    color: var(--sg-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.sg-nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--sg-gold-bright);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sg-shell {
    width: min(calc(100% - 48px), var(--sg-shell));
    margin-inline: auto;
}

.sg-main {
    min-height: 60vh;
}

/* Header */
.sg-header {
    position: relative;
    z-index: 50;
    background: rgba(3, 5, 7, 0.96);
    border-bottom: 1px solid var(--sg-border);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.sg-header__inner {
    min-height: 104px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.sg-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sg-brand__custom-logo,
.sg-brand__custom-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.sg-brand__custom-logo img {
    max-height: 72px;
    width: auto;
}

.sg-brand__mark,
.sg-community-brand__mark {
    width: 58px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 3px solid var(--sg-gold);
    border-radius: 50%;
    color: var(--sg-gold-bright);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.08em;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 0 5px rgba(226, 170, 22, 0.08);
}

.sg-brand__copy {
    display: grid;
    gap: 1px;
}

.sg-brand__name {
    display: inline-flex;
    align-items: baseline;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.sg-brand__name strong {
    color: #fff;
    font-weight: 900;
}

.sg-brand__name em {
    color: var(--sg-gold);
    font-style: normal;
    font-weight: 900;
}

.sg-brand__tagline {
    color: var(--sg-muted);
    font-size: 0.66rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.sg-nav {
    min-width: 0;
}

.sg-menu,
.sg-nav ul {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sg-menu > li,
.sg-nav ul > li {
    position: relative;
}

.sg-menu > li > a,
.sg-nav ul > li > a {
    position: relative;
    min-height: 104px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #f2f3f4;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sg-menu > li > a::after,
.sg-nav ul > li > a::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 20px;
    height: 4px;
    background: var(--sg-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.sg-menu > li > a:hover::after,
.sg-menu > .current-menu-item > a::after,
.sg-nav ul > li > a:hover::after,
.sg-nav ul > .current-menu-item > a::after {
    transform: scaleX(1);
}

.sg-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sg-icon-button,
.sg-nav-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--sg-text);
}

.sg-icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-left: 1px solid var(--sg-border);
    border-right: 1px solid var(--sg-border);
    font-size: 1.75rem;
    line-height: 1;
}

.sg-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-muted);
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.sg-login-link span {
    filter: sepia(1) saturate(3.5) hue-rotate(355deg);
}

.sg-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
}

.sg-nav-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
}

.sg-search-panel {
    padding: 18px 0;
    background: var(--sg-panel);
    border-top: 1px solid var(--sg-border);
}

.sg-search-panel form {
    display: flex;
    max-width: 760px;
    margin-left: auto;
}

.sg-search-panel label {
    flex: 1;
}

.sg-search-panel input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #07090c;
    border: 1px solid var(--sg-border);
    color: var(--sg-text);
}

.sg-search-panel input[type="submit"] {
    min-width: 132px;
    border: 0;
    background: var(--sg-gold);
    color: #0a0c0f;
    font-weight: 800;
    text-transform: uppercase;
}

/* Homepage */
.sg-home {
    padding: 14px 0 32px;
}

.sg-breaking {
    min-height: 58px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #0f141a, #0a0d11);
    border: 1px solid var(--sg-border);
    overflow: hidden;
}

.sg-breaking__label {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 24px;
    color: var(--sg-gold-bright);
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.03rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-right: 1px solid var(--sg-border);
    transform: skewX(-10deg);
}

.sg-breaking__label > * {
    transform: skewX(10deg);
}

.sg-breaking__label span {
    font-size: 1.8rem;
}

.sg-breaking__items {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.sg-breaking__items a,
.sg-breaking__items span {
    position: relative;
    flex: 0 0 auto;
    max-width: 27%;
    padding: 0 32px 0 24px;
    overflow: hidden;
    color: #d6d9dd;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-breaking__items a::after {
    content: "›";
    position: absolute;
    right: 10px;
    color: var(--sg-gold);
    font-size: 1.3rem;
}

.sg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(360px, 1fr);
    gap: 14px;
}

.sg-media-card,
.sg-story-card__media,
.sg-video-card__media,
.sg-mini-story__media,
.sg-popular-list__thumb {
    background-image:
        linear-gradient(180deg, rgba(3, 5, 7, 0.04) 18%, rgba(3, 5, 7, 0.94) 100%),
        var(--sg-card-image, radial-gradient(circle at 25% 20%, #243342, #0d1218 52%, #050709));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.sg-media-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #303741;
    background-color: var(--sg-panel);
    box-shadow: var(--sg-shadow);
    isolation: isolate;
}

.sg-media-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 35%, rgba(226, 170, 22, 0.08));
    opacity: 0;
    transition: opacity 220ms ease;
}

.sg-media-card:hover::before {
    opacity: 1;
}

.sg-media-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 4, 6, 0.02) 24%, rgba(2, 4, 6, 0.94) 100%);
}

.sg-media-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.sg-hero-main {
    min-height: 500px;
}

.sg-hero-main .sg-media-card__content {
    max-width: 820px;
    padding: clamp(26px, 4vw, 48px);
}

.sg-hero-main h1 {
    max-width: 760px;
    margin: 14px 0 12px;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(2.5rem, 4.6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
}

.sg-hero-main p {
    max-width: 670px;
    margin: 0 0 14px;
    color: #d7dbe0;
    font-size: clamp(0.98rem, 1.3vw, 1.18rem);
}

.sg-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    background: var(--sg-gold);
    color: #090b0e;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1;
    text-transform: uppercase;
}

.sg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    color: #c6cbd1;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.sg-meta--small {
    color: var(--sg-muted-dark);
    font-size: 0.7rem;
}

.sg-hero-side {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sg-side-card {
    min-height: 157px;
}

.sg-side-card .sg-media-card__content {
    padding: 20px 22px;
}

.sg-side-card h2 {
    max-width: 70%;
    margin: 10px 0 0;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: clamp(1.3rem, 2vw, 2rem);
    line-height: 1.02;
    text-transform: uppercase;
}

.sg-platforms {
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 14px;
    background: linear-gradient(180deg, #10151b, #0b0f13);
    border: 1px solid var(--sg-border);
}

.sg-platforms a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    color: #e6e8eb;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-right: 1px solid var(--sg-border);
    transition: color 160ms ease, background 160ms ease;
}

.sg-platforms a:last-child {
    border-right: 0;
}

.sg-platforms a:hover {
    background: rgba(255, 255, 255, 0.035);
    color: var(--sg-gold-bright);
}

.sg-platforms a span {
    color: var(--sg-gold);
    font-size: 1.35rem;
}

.sg-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin-top: 24px;
}

.sg-content-main,
.sg-sidebar {
    min-width: 0;
}

.sg-section {
    margin-bottom: 30px;
}

.sg-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-section-heading h2,
.sg-sidebar-box > h2,
.sg-category-column > h2 {
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    color: #f7f7f7;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.38rem;
    line-height: 1;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.sg-section-heading h2::after,
.sg-sidebar-box > h2::after,
.sg-category-column > h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 54px;
    height: 3px;
    background: var(--sg-gold);
}

.sg-more-link,
.sg-category-column__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 20px;
    color: #c9cdd2;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    border: 1px solid #3a424c;
    background: #0c1014;
}

.sg-more-link:hover,
.sg-category-column__more:hover {
    border-color: var(--sg-gold);
    color: var(--sg-gold-bright);
}

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

.sg-story-card,
.sg-video-card,
.sg-category-column,
.sg-sidebar-box {
    background: linear-gradient(180deg, #0f1419, #0a0e12);
    border: 1px solid var(--sg-border);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.sg-story-card {
    min-width: 0;
    transition: transform 180ms ease, border-color 180ms ease;
}

.sg-story-card:hover {
    transform: translateY(-3px);
    border-color: #414b56;
}

.sg-story-card__media {
    position: relative;
    display: block;
    min-height: 190px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-story-card__media .sg-kicker {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.sg-story-card__body {
    padding: 14px;
}

.sg-story-card h3,
.sg-video-card h3,
.sg-mini-story h3,
.sg-popular-list h3 {
    margin: 0;
    color: #eef0f2;
    font-size: 0.98rem;
    line-height: 1.35;
}

.sg-story-card h3 {
    min-height: 2.7em;
    margin-bottom: 14px;
}

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

.sg-video-card {
    min-width: 0;
}

.sg-video-card__media {
    position: relative;
    display: block;
    min-height: 170px;
}

.sg-video-card h3 {
    padding: 12px;
}

.sg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.18);
}

.sg-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
}

.sg-category-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.sg-category-column {
    min-width: 0;
    padding: 14px;
}

.sg-category-column > h2 {
    margin-bottom: 14px;
    text-align: center;
}

.sg-category-column > h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.sg-mini-story {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--sg-border-soft);
}

.sg-mini-story--featured {
    grid-template-columns: 1fr;
    padding-top: 0;
}

.sg-mini-story__media {
    display: block;
    min-height: 52px;
    border: 1px solid var(--sg-border);
}

.sg-mini-story--featured .sg-mini-story__media {
    min-height: 145px;
}

.sg-mini-story h3 {
    font-size: 0.78rem;
    line-height: 1.25;
}

.sg-mini-story--featured h3 {
    padding: 0 2px;
    font-size: 0.88rem;
}

.sg-category-column__more {
    width: 100%;
    margin-top: 12px;
    border-color: transparent;
    background: transparent;
}

/* Sidebar */
.sg-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}

.sg-sidebar-box {
    padding: 16px;
}

.sg-sidebar-box > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.18rem;
}

.sg-sidebar-box > h2 span {
    color: var(--sg-gold);
}

.sg-ranking {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sg-ranking li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px 0;
    color: #d4d8dd;
    border-bottom: 1px solid var(--sg-border-soft);
    font-size: 0.88rem;
}

.sg-ranking li:last-child {
    border-bottom: 0;
}

.sg-ranking li > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--sg-gold-bright);
    font-family: "Arial Narrow", Impact, sans-serif;
    font-weight: 900;
    border: 1px solid var(--sg-gold-dark);
}

.sg-popular-list {
    display: grid;
    gap: 8px;
}

.sg-popular-list article {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.sg-popular-list__thumb {
    display: block;
    min-height: 62px;
    border: 1px solid var(--sg-border);
}

.sg-popular-list h3 {
    font-size: 0.78rem;
    line-height: 1.2;
}

.sg-popular-list time {
    color: var(--sg-muted-dark);
    font-size: 0.66rem;
}

.sg-release-box ul {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
}

.sg-release-box li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    color: #d4d8dd;
    border-bottom: 1px solid var(--sg-border-soft);
    font-size: 0.83rem;
}

.sg-release-box time {
    flex: 0 0 auto;
    padding: 3px 8px;
    color: var(--sg-gold-bright);
    border: 1px solid var(--sg-gold-dark);
    font-size: 0.68rem;
}

.sg-release-box .sg-more-link {
    width: 100%;
}

/* Community and footer */
.sg-community-strip {
    padding: 18px 0;
    background: linear-gradient(90deg, #0b0f13, #080b0e);
    border-top: 1px solid var(--sg-gold-dark);
    border-bottom: 1px solid var(--sg-gold-dark);
}

.sg-community-strip__inner {
    display: grid;
    grid-template-columns: minmax(310px, 1.1fr) auto minmax(0, 1.75fr);
    align-items: center;
    gap: 24px;
}

.sg-community-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sg-community-brand strong {
    display: block;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 1.28rem;
    text-transform: uppercase;
}

.sg-community-brand p {
    margin: 2px 0 0;
    color: var(--sg-muted);
    font-size: 0.82rem;
}

.sg-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-button--gold {
    background: var(--sg-gold);
    color: #080a0d;
}

.sg-community-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-community-links a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    padding: 0 16px;
    border-left: 1px solid var(--sg-border);
}

.sg-community-links a > span {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--sg-gold);
    font-size: 1.6rem;
}

.sg-community-links strong {
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sg-community-links small {
    color: var(--sg-muted);
    font-size: 0.68rem;
    line-height: 1.2;
}

.sg-footer {
    padding: 34px 0 28px;
    background:
        linear-gradient(90deg, rgba(18, 29, 39, 0.2), transparent 35%),
        #05080b;
    border-bottom: 1px solid #0f151b;
}

.sg-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(120px, 0.65fr));
    gap: 40px;
}

.sg-footer__brand p {
    max-width: 330px;
    margin: 20px 0;
    color: var(--sg-muted);
    font-size: 0.85rem;
}

.sg-footer__brand small {
    color: var(--sg-muted-dark);
    font-size: 0.68rem;
}

.sg-brand--footer .sg-brand__name {
    font-size: 2.2rem;
}

.sg-footer h2 {
    margin: 8px 0 14px;
    color: #d9dde1;
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sg-footer-menu {
    display: grid;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sg-footer-menu a {
    color: var(--sg-muted);
    font-size: 0.78rem;
}

.sg-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sg-social-links a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--sg-gold);
    font-weight: 900;
}

/* Parent-theme interior pages */
.site-content,
.container-wrapper,
.af-container-row,
.content-area,
.widget-area,
.site-main,
.entry-content-wrap {
    color: var(--sg-text);
}

body:not(.home) .site-content,
body:not(.home) .container-wrapper {
    width: min(calc(100% - 48px), var(--sg-shell));
    margin-inline: auto;
}

body:not(.home) .site-main article,
body:not(.home) .widget,
body:not(.home) .entry-content-wrap {
    background: var(--sg-panel) !important;
    border-color: var(--sg-border) !important;
    color: var(--sg-text);
}

body:not(.home) .entry-title,
body:not(.home) .entry-title a,
body:not(.home) .widget-title,
body:not(.home) h1,
body:not(.home) h2,
body:not(.home) h3 {
    color: var(--sg-text) !important;
}

body:not(.home) .entry-meta,
body:not(.home) .entry-content,
body:not(.home) .widget,
body:not(.home) .widget li {
    color: var(--sg-muted) !important;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: #080b0e;
    border: 1px solid var(--sg-border);
    color: var(--sg-text);
}

input[type="submit"],
button:not(.sg-icon-button):not(.sg-nav-toggle) {
    border: 0;
    background: var(--sg-gold);
    color: #080a0d;
    font-weight: 800;
}

:focus-visible {
    outline: 3px solid var(--sg-gold-bright);
    outline-offset: 3px;
}

::selection {
    background: var(--sg-gold);
    color: #080a0d;
}

/* Responsive */
@media (max-width: 1280px) {
    .sg-header__inner {
        grid-template-columns: 235px minmax(0, 1fr) auto;
        gap: 16px;
    }

    .sg-menu > li > a,
    .sg-nav ul > li > a {
        padding-inline: 12px;
        font-size: 0.95rem;
    }

    .sg-content-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .sg-card-grid,
    .sg-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-category-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-community-strip__inner {
        grid-template-columns: 1fr auto;
    }

    .sg-community-links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .sg-shell,
    body:not(.home) .site-content,
    body:not(.home) .container-wrapper {
        width: min(calc(100% - 28px), var(--sg-shell));
    }

    .sg-header__inner {
        min-height: 82px;
        grid-template-columns: 1fr auto auto;
    }

    .sg-brand__name {
        font-size: 2.2rem;
    }

    .sg-brand__mark {
        width: 48px;
    }

    .sg-nav-toggle {
        display: block;
    }

    .sg-nav {
        position: fixed;
        top: 82px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        overflow-y: auto;
        padding: 20px;
        background: rgba(5, 7, 9, 0.985);
    }

    .admin-bar .sg-nav {
        top: 114px;
    }

    .sg-nav.is-open {
        display: block;
    }

    .sg-menu,
    .sg-nav ul {
        display: grid;
        justify-content: stretch;
    }

    .sg-menu > li > a,
    .sg-nav ul > li > a {
        min-height: 56px;
        padding: 0 14px;
        border-bottom: 1px solid var(--sg-border);
    }

    .sg-menu > li > a::after,
    .sg-nav ul > li > a::after {
        right: auto;
        left: 0;
        width: 4px;
        height: 100%;
        transform: scaleY(0);
    }

    .sg-menu > li > a:hover::after,
    .sg-nav ul > li > a:hover::after {
        transform: scaleY(1);
    }

    .sg-login-link {
        display: none;
    }

    .sg-breaking {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .sg-breaking__items a {
        max-width: 48%;
    }

    .sg-breaking__items a:nth-child(n + 3) {
        display: none;
    }

    .sg-hero {
        grid-template-columns: 1fr;
    }

    .sg-hero-main {
        min-height: 480px;
    }

    .sg-hero-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .sg-side-card h2 {
        max-width: 100%;
        font-size: 1.2rem;
    }

    .sg-platforms {
        grid-template-columns: repeat(4, 1fr);
    }

    .sg-platforms a:nth-child(n + 5) {
        border-top: 1px solid var(--sg-border);
    }

    .sg-content-layout {
        grid-template-columns: 1fr;
    }

    .sg-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sg-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .sg-shell,
    body:not(.home) .site-content,
    body:not(.home) .container-wrapper {
        width: min(calc(100% - 18px), var(--sg-shell));
    }

    .sg-header__inner {
        min-height: 72px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .sg-brand {
        gap: 8px;
    }

    .sg-brand__mark {
        width: 40px;
        border-width: 2px;
        font-size: 0.75rem;
    }

    .sg-brand__name {
        font-size: 1.7rem;
    }

    .sg-brand__tagline {
        display: none;
    }

    .sg-nav {
        top: 72px;
    }

    .admin-bar .sg-nav {
        top: 118px;
    }

    .sg-icon-button {
        width: 38px;
        height: 38px;
    }

    .sg-breaking {
        grid-template-columns: 1fr;
    }

    .sg-breaking__label {
        min-height: 42px;
        transform: none;
        border-right: 0;
        border-bottom: 1px solid var(--sg-border);
    }

    .sg-breaking__label > * {
        transform: none;
    }

    .sg-breaking__items {
        min-height: 44px;
    }

    .sg-breaking__items a {
        max-width: 100%;
    }

    .sg-breaking__items a:nth-child(n + 2) {
        display: none;
    }

    .sg-hero-main {
        min-height: 440px;
    }

    .sg-hero-main h1 {
        font-size: clamp(2.25rem, 13vw, 4rem);
    }

    .sg-hero-main .sg-media-card__content {
        padding: 24px 18px;
    }

    .sg-hero-side {
        grid-template-columns: 1fr;
    }

    .sg-side-card {
        min-height: 185px;
    }

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

    .sg-platforms a {
        min-height: 54px;
        border-top: 1px solid var(--sg-border);
    }

    .sg-card-grid,
    .sg-video-grid,
    .sg-category-columns,
    .sg-sidebar,
    .sg-community-links,
    .sg-footer__grid {
        grid-template-columns: 1fr;
    }

    .sg-story-card__media,
    .sg-video-card__media {
        min-height: 220px;
    }

    .sg-community-strip__inner {
        grid-template-columns: 1fr;
    }

    .sg-community-links a {
        padding: 12px 0;
        border-top: 1px solid var(--sg-border);
        border-left: 0;
    }

    .sg-footer__brand {
        grid-column: auto;
    }
}
