/* Strategy guides: the list at /strategy-guides and the article at /strategy-guides/{slug}.
   Shares the muted-gold palette of the other archive sub-pages (archives.css, lore.css). */

/* ── SHARED ───────────────────────────────────────────────────── */
.sg-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    text-align: left;
    font-family: 'HwyGothic', sans-serif;
}

.sg-eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.38em;
    color: #c9a96e;
    opacity: 0.75;
    text-transform: uppercase;
}

.sg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #c9a96e;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.sg-back:hover {
    background: rgba(201, 169, 110, 0.16);
    border-color: rgba(201, 169, 110, 0.6);
}

.sg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #8a8070;
    text-transform: uppercase;
}

.sg-meta i {
    color: #c9a96e;
    opacity: 0.7;
    margin-right: 5px;
}

/* ── LIST ─────────────────────────────────────────────────────── */
.sg-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px 24px 40px;
    /* Soft dark halo so the copy reads over the bright nebula background. */
    background: radial-gradient(ellipse at center, rgba(14, 14, 14, 0.8) 0%, rgba(14, 14, 14, 0.5) 45%, transparent 75%);
}

.sg-hero .sg-eyebrow,
.sg-hero .sg-hero-sub {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.8);
}

.sg-hero-title {
    font-family: 'HwyGothic', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: 0.18em;
    color: #eddfc0;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(201, 169, 110, 0.35);
}

.sg-hero-sub {
    font-size: 0.9rem;
    color: #c0b8a8;
    line-height: 1.7;
    letter-spacing: 0.04em;
    margin: 0;
    max-width: 560px;
}

.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.sg-card {
    display: flex;
    flex-direction: column;
    background: rgba(14, 14, 14, 0.82);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sg-card:hover {
    border-color: rgba(201, 169, 110, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 169, 110, 0.12);
}

.sg-card-cover {
    aspect-ratio: 16 / 9;
    background: rgba(201, 169, 110, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sg-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-card-cover i {
    font-size: 2.4rem;
    color: #c9a96e;
    opacity: 0.35;
}

.sg-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
    flex: 1;
}

.sg-card-title {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: #eddfc0;
    margin: 0;
    line-height: 1.35;
}

.sg-card-summary {
    font-size: 0.88rem;
    color: #b0a898;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.sg-card-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #c9a96e;
    text-transform: uppercase;
    margin-top: 4px;
}

.sg-empty {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

/* ── ARTICLE ──────────────────────────────────────────────────── */
/* A dark panel: the site background is a bright nebula and long prose is unreadable straight on it. */
.sg-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 44px 32px;
    background: rgba(14, 14, 14, 0.86);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sg-article-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0 28px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.14);
    margin-bottom: 28px;
}

.sg-article-title {
    font-family: 'HwyGothic', sans-serif;
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    letter-spacing: 0.1em;
    color: #eddfc0;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(201, 169, 110, 0.3);
}

.sg-article-summary {
    font-size: 1rem;
    color: #b0a898;
    line-height: 1.7;
    margin: 0;
}

.sg-article-cover {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: block;
    margin-bottom: 28px;
}

.sg-lang-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #c0b8a8;
    line-height: 1.5;
}

.sg-lang-note i {
    color: #c9a96e;
    margin-top: 2px;
}

/* Rendered Markdown. Only the element set CommonMark + tables can produce. */
.sg-body {
    font-size: 1rem;
    color: #c8c0b0;
    line-height: 1.85;
    letter-spacing: 0.02em;
    word-wrap: break-word;
}

.sg-body > :first-child {
    margin-top: 0;
}

.sg-body h1,
.sg-body h2,
.sg-body h3,
.sg-body h4,
.sg-body h5,
.sg-body h6 {
    font-family: 'HwyGothic', sans-serif;
    color: #eddfc0;
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin: 2em 0 0.7em;
}

.sg-body h1 { font-size: 1.6rem; }
.sg-body h2 { font-size: 1.35rem; padding-bottom: 8px; border-bottom: 1px solid rgba(201, 169, 110, 0.14); }
.sg-body h3 { font-size: 1.15rem; color: #c9a96e; }
.sg-body h4,
.sg-body h5,
.sg-body h6 { font-size: 1rem; color: #c9a96e; }

.sg-body p {
    margin: 0 0 1.2em;
}

.sg-body a {
    color: #ffbf00;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 191, 0, 0.4);
}

.sg-body a:hover {
    text-decoration-color: #ffbf00;
}

.sg-body strong {
    color: #eddfc0;
}

.sg-body ul,
.sg-body ol {
    margin: 0 0 1.2em;
    padding-left: 1.6em;
}

.sg-body li {
    margin-bottom: 0.4em;
}

.sg-body li > p {
    margin-bottom: 0.4em;
}

.sg-body blockquote {
    margin: 1.4em 0;
    padding: 12px 20px;
    border-left: 2px solid rgba(201, 169, 110, 0.5);
    background: rgba(201, 169, 110, 0.05);
    color: #d8c8a8;
    font-style: italic;
}

.sg-body blockquote p:last-child {
    margin-bottom: 0;
}

.sg-body code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 1px 6px;
    color: #eddfc0;
}

.sg-body pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.14);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 0 0 1.4em;
}

.sg-body pre code {
    background: none;
    padding: 0;
}

.sg-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 110, 0.18);
    display: block;
    margin: 1.4em auto;
}

.sg-body hr {
    border: 0;
    height: 1px;
    width: 60px;
    margin: 2.2em auto;
    background: linear-gradient(to right, transparent, #c9a96e, transparent);
}

.sg-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    font-size: 0.92rem;
    display: block;
    overflow-x: auto;
}

.sg-body th,
.sg-body td {
    padding: 8px 12px;
    border: 1px solid rgba(201, 169, 110, 0.18);
    text-align: left;
    vertical-align: top;
}

.sg-body th {
    background: rgba(201, 169, 110, 0.08);
    color: #eddfc0;
    letter-spacing: 0.06em;
    font-weight: normal;
}

.sg-article-foot {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── MOBILE ───────────────────────────────────────────────────── */
@media only screen and ((max-width: 767px) or (hover: none)) {
    .sg-page {
        padding: 24px 16px 48px;
    }

    .sg-hero {
        padding: 8px 0 28px;
    }

    .sg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sg-card:hover {
        transform: none;
    }

    .sg-article {
        padding: 22px 18px 20px;
        border-radius: 10px;
    }

    .sg-body {
        font-size: 0.95rem;
    }
}
