:root {
    --bg: #07111f;
    --bg-soft: #0f1d31;
    --panel: rgba(15, 29, 49, 0.82);
    --panel-strong: #10233c;
    --line: rgba(181, 211, 255, 0.12);
    --text: #ebf3ff;
    --muted: #a8b8d5;
    --accent: #7fe0c4;
    --accent-2: #ffd66b;
    --danger: #ff8f8f;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 26px;
    --shell: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── App Bar ──────────────────────────────────────────── */
.sgm-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    background: rgba(7, 17, 31, 0.78);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    animation: sgmSlideDown 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: background 300ms ease, box-shadow 300ms ease, padding 300ms ease;
}

.sgm-appbar.is-scrolled {
    background: rgba(7, 17, 31, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.sgm-appbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 14px 16px;
    transition: padding 300ms ease;
}

.sgm-appbar.is-scrolled .sgm-appbar-inner {
    padding: 10px 16px;
}

/* Logo */
.sgm-appbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    transition: transform 200ms ease;
}

.sgm-appbar-logo:hover {
    transform: scale(1.04);
}

.sgm-logo-icon {
    display: flex;
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 400ms ease;
}

.sgm-appbar-logo:hover .sgm-logo-icon {
    transform: rotate(-8deg) scale(1.1);
}

.sgm-logo-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tabs */
.sgm-appbar-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sgm-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.sgm-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.sgm-tab.is-active {
    color: #062016;
    background: linear-gradient(135deg, var(--accent), #97f4db);
    box-shadow: 0 4px 18px rgba(127, 224, 196, 0.3);
    font-weight: 700;
}

.sgm-tab-icon {
    font-size: 1.05rem;
    line-height: 1;
}

/* Burger */
.sgm-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: background 200ms ease;
}

.sgm-burger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sgm-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 300ms ease, opacity 200ms ease;
    transform-origin: center;
}

.sgm-burger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sgm-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.sgm-burger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Drawer mobile */
.sgm-drawer {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--line);
    animation: sgmFadeIn 300ms ease;
}

.sgm-drawer.is-open {
    display: flex;
}

.sgm-drawer-link {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 500;
    font-size: 1rem;
    transition: all 200ms ease;
}

.sgm-drawer-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.sgm-drawer-link.is-active {
    color: var(--accent);
    background: rgba(127, 224, 196, 0.08);
    border-left: 3px solid var(--accent);
}

@keyframes sgmSlideDown {
    to {
        transform: translateY(0);
    }
}

@keyframes sgmFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Footer ──────────────────────────────────────────── */
.sgm-footer {
    margin-top: 40px;
    padding: 48px 0 0;
    background: rgba(7, 17, 31, 0.6);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.sgm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.sgm-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sgm-footer-brand .sgm-logo-icon {
    width: 36px;
    height: 36px;
    margin-top: 2px;
}

.sgm-footer-brand strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 4px;
}

.sgm-footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.sgm-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sgm-footer-nav-title {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.sgm-footer-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 200ms ease, padding-left 200ms ease;
}

.sgm-footer-nav a:hover {
    color: var(--text);
    padding-left: 6px;
}

.sgm-footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    text-align: center;
}

.sgm-footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Body offset for fixed appbar */
.sgm-site {
    padding-top: 72px;
}

@media (max-width: 768px) {
    .sgm-appbar-tabs {
        display: none;
    }

    .sgm-burger {
        display: flex;
    }

    .sgm-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sgm-site {
        padding-top: 64px;
    }
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(127, 224, 196, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 214, 107, 0.14), transparent 22%),
        linear-gradient(180deg, #09111d 0%, #08172a 45%, #06101c 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.sgm-shell {
    width: var(--shell);
    margin: 0 auto;
}

.sgm-section {
    padding: 44px 0;
}

.sgm-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.sgm-eyebrow,
.sgm-kicker {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.sgm-kicker {
    color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.04;
}

p,
li,
legend,
label,
span {
    line-height: 1.6;
}

ul {
    margin: 0;
    padding-left: 18px;
}

.sgm-hero {
    padding: 42px 0 24px;
}

.sgm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 22px;
    align-items: stretch;
}

.sgm-hero-copy,
.sgm-hero-card {
    padding: 34px;
    border-radius: calc(var(--radius) + 4px);
    position: relative;
    overflow: hidden;
}

.sgm-hero-copy::after,
.sgm-hero-card::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 224, 196, 0.26), transparent 68%);
    filter: blur(2px);
    animation: sgmFloat 8s ease-in-out infinite;
}

.sgm-hero-copy::after {
    right: -110px;
    bottom: -120px;
}

.sgm-hero-card::after {
    left: -120px;
    top: -120px;
    animation-delay: 1.8s;
}

.sgm-hero-copy {
    background:
        radial-gradient(circle at 15% 25%, rgba(127, 224, 196, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(14, 31, 54, 0.98), rgba(8, 19, 34, 0.9));
    border: 1px solid var(--line);
}

.sgm-hero-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 214, 107, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(17, 34, 56, 0.98), rgba(11, 21, 37, 0.94));
    border: 1px solid var(--line);
}

.sgm-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.sgm-lead {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.sgm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.sgm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #97f4db);
    color: #062016;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 14px 26px rgba(127, 224, 196, 0.26);
}

.sgm-button:hover {
    transform: translateY(-2px);
}

.sgm-button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.sgm-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    list-style: none;
    padding: 0;
}

.sgm-metric-row li,
.sgm-source-card,
.sgm-module-card,
.sgm-pitfall-card,
.sgm-plan-card {
    transform: translateY(0);
}

.sgm-metric-row li {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.sgm-metric-row strong {
    display: block;
    font-size: 1.4rem;
    color: var(--accent-2);
}

.sgm-metric-row span {
    color: var(--muted);
    font-size: 0.94rem;
}

.sgm-hero-card h2,
.sgm-section-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.sgm-hero-card ul {
    margin-top: 18px;
    color: var(--muted);
}

.sgm-topnav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    backdrop-filter: blur(18px);
    background: rgba(6, 14, 24, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sgm-topnav .sgm-shell {
    display: flex;
    gap: 18px;
    overflow-x: auto;
}

.sgm-topnav a {
    white-space: nowrap;
    color: var(--muted);
    position: relative;
    transition: color 200ms ease;
}

.sgm-topnav a:hover {
    color: var(--text);
}

.sgm-topnav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.sgm-topnav a:hover::after {
    transform: scaleX(1);
}

.sgm-section-head {
    max-width: 70ch;
    margin-bottom: 22px;
}

.sgm-section-head p:last-child {
    color: var(--muted);
    margin-top: 12px;
}

.sgm-source-grid,
.sgm-module-grid,
.sgm-pitfall-grid,
.sgm-plan-grid,
.sgm-flashcard-grid,
.sgm-booster-grid,
.sgm-sprint-grid {
    display: grid;
    gap: 18px;
}

.sgm-source-grid,
.sgm-pitfall-grid,
.sgm-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sgm-booster-grid,
.sgm-sprint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sgm-flashcard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sgm-source-card,
.sgm-module-card,
.sgm-pitfall-card,
.sgm-plan-card,
.sgm-booster-card,
.sgm-sprint-card,
.sgm-correction-card,
.sgm-footer-note,
.sgm-map,
.sgm-quiz,
.sgm-quiz-meta,
.sgm-oral-panel,
.sgm-generic-page .sgm-panel {
    padding: 24px;
}

.sgm-quiz-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.sgm-quiz-meta p {
    color: var(--muted);
}

.sgm-timer-box {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.sgm-timer-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--muted);
}

.sgm-timer-value {
    margin: 6px 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--accent-2);
}

.sgm-timer-box.is-live {
    border-color: rgba(255, 214, 107, 0.45);
    box-shadow: 0 14px 26px rgba(255, 214, 107, 0.14);
}

.sgm-timer-box.is-live .sgm-timer-value {
    animation: sgmPulse 1.1s ease-in-out infinite;
}

.sgm-correction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sgm-correction-prompt {
    margin: 10px 0 0;
    color: var(--muted);
}

.sgm-correction-card details,
.sgm-oral-panel details {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.sgm-correction-card summary,
.sgm-oral-panel summary {
    cursor: pointer;
    font-weight: 700;
}

.sgm-correction-card ul {
    margin-top: 12px;
    color: var(--muted);
}

.sgm-grading {
    margin-top: 12px;
    font-weight: 700;
    color: var(--accent-2);
}

.sgm-oral-panel {
    display: grid;
    gap: 10px;
}

.sgm-oral-panel p {
    margin: 12px 0 0;
    color: var(--muted);
}

.sgm-source-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sgm-badge,
.sgm-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.sgm-badge {
    background: rgba(127, 224, 196, 0.16);
    color: var(--accent);
}

.sgm-tag {
    background: rgba(255, 214, 107, 0.14);
    color: var(--accent-2);
}

.sgm-source-card p,
.sgm-module-card p,
.sgm-pitfall-card p,
.sgm-plan-card li,
.sgm-sprint-card p,
.sgm-map p,
.sgm-footer-note p {
    color: var(--muted);
}

.sgm-booster-card ul {
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.sgm-compare-table {
    overflow-x: auto;
}

.sgm-compare-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.sgm-compare-table th,
.sgm-compare-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.sgm-compare-table th {
    color: var(--accent-2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sgm-compare-table td {
    color: var(--muted);
}

.sgm-thesis {
    margin-top: 14px;
    font-size: 1rem;
}

.sgm-subsection {
    margin-top: 16px;
}

.sgm-subsection h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--accent-2);
}

.sgm-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sgm-map article {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.sgm-map h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sgm-flashcard {
    position: relative;
    min-height: 220px;
    border: none;
    padding: 0;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    perspective: 1200px;
}

.sgm-flashcard-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 30, 50, 0.96), rgba(9, 17, 31, 0.96));
    box-shadow: var(--shadow);
    backface-visibility: hidden;
    transition: transform 500ms ease;
    text-align: center;
}

.sgm-flashcard-front {
    color: var(--text);
}

.sgm-flashcard-back {
    transform: rotateY(180deg);
    color: var(--accent);
}

.sgm-flashcard.is-flipped .sgm-flashcard-front {
    transform: rotateY(180deg);
}

.sgm-flashcard.is-flipped .sgm-flashcard-back {
    transform: rotateY(360deg);
}

.sgm-question {
    margin: 0;
    padding: 0 0 24px;
    border: none;
    border-bottom: 1px solid var(--line);
}

.sgm-question + .sgm-question {
    margin-top: 24px;
}

.sgm-question legend {
    width: 100%;
    margin-bottom: 14px;
    font-weight: 700;
}

.sgm-question label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--muted);
}

.sgm-question input {
    margin-top: 5px;
}

.sgm-question.is-correct legend {
    color: var(--accent);
}

.sgm-question.is-wrong legend {
    color: var(--danger);
}

.sgm-question.is-blank legend {
    color: var(--muted);
    opacity: 0.6;
}

.sgm-q-chapter {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(127, 224, 196, 0.12);
    color: var(--accent);
    margin-right: 8px;
    vertical-align: middle;
}

.sgm-pitfall-trap {
    color: var(--danger);
    margin-bottom: 6px;
}

.sgm-pitfall-fix {
    color: var(--accent);
}

.sgm-explanation {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.sgm-quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.sgm-quiz-score {
    margin: 0;
    font-weight: 700;
    color: var(--accent-2);
}

.sgm-breakdown {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 12px;
}

.sgm-breakdown h3 {
    margin: 0;
    font-size: 1rem;
}

.sgm-breakdown-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) 3fr minmax(140px, 1fr);
    gap: 10px;
    align-items: center;
}

.sgm-breakdown-label {
    color: var(--text);
    font-weight: 600;
}

.sgm-breakdown-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.sgm-breakdown-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.sgm-breakdown-good {
    background: linear-gradient(90deg, #41cfab, #7fe0c4);
}

.sgm-breakdown-ok {
    background: linear-gradient(90deg, #ffd66b, #ffe18c);
}

.sgm-breakdown-weak {
    background: linear-gradient(90deg, #ff8f8f, #ffb0b0);
}

.sgm-breakdown-score {
    text-align: right;
    color: var(--muted);
    font-size: 0.92rem;
}

.sgm-breakdown-score small {
    color: var(--danger);
}

.sgm-plan-card ul,
.sgm-hero-card ul,
.sgm-module-card ul {
    display: grid;
    gap: 8px;
}

.sgm-footer-note {
    text-align: center;
}

.sgm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.sgm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sgmFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -16px, 0) scale(1.04);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sgmPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.98);
        opacity: 0.78;
    }
}

.sgm-generic-page {
    padding: 60px 0;
}

.sgm-page-content > *:first-child {
    margin-top: 0;
}

@media (max-width: 1120px) {
    .sgm-map,
    .sgm-source-grid,
    .sgm-pitfall-grid,
    .sgm-plan-grid,
    .sgm-flashcard-grid,
    .sgm-booster-grid,
    .sgm-sprint-grid,
    .sgm-correction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .sgm-hero-grid,
    .sgm-module-grid,
    .sgm-map,
    .sgm-quiz-meta,
    .sgm-correction-grid {
        grid-template-columns: 1fr;
    }

    .sgm-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sgm-section {
        padding: 32px 0;
    }

    .sgm-source-grid,
    .sgm-pitfall-grid,
    .sgm-plan-grid,
    .sgm-flashcard-grid,
    .sgm-booster-grid,
    .sgm-sprint-grid,
    .sgm-correction-grid,
    .sgm-metric-row {
        grid-template-columns: 1fr;
    }

    .sgm-hero-copy,
    .sgm-hero-card,
    .sgm-source-card,
    .sgm-module-card,
    .sgm-pitfall-card,
    .sgm-plan-card,
    .sgm-booster-card,
    .sgm-sprint-card,
    .sgm-footer-note,
    .sgm-map,
    .sgm-quiz,
    .sgm-quiz-meta,
    .sgm-oral-panel,
    .sgm-generic-page .sgm-panel {
        padding: 20px;
    }

    .sgm-breakdown-row {
        grid-template-columns: 1fr;
    }

    .sgm-breakdown-score {
        text-align: left;
    }
}
