/* =========================================================
   ĐỘI ĐẶC NHIỆM NHÍ
   KIẾN THỨC - STYLE.CSS
   ========================================================= */

:root {
    --ink: #17324d;
    --muted: #64748b;

    --teal: #0f766e;
    --teal2: #14b8a6;

    --sky: #e0f2fe;

    --yellow: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    --green: #22c55e;

    --white: #ffffff;

    --shadow: 0 20px 50px rgba(15, 23, 42, .14);

    --radius: 28px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--ink);

    background:
        linear-gradient(
            135deg,
            #dff6ff 0%,
            #f8fdff 50%,
            #ecfdf5 100%
        );

    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

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

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

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


/* =========================================================
   SKY DECOR
   ========================================================= */

.sky-decor {
    position: fixed;
    z-index: -1;

    pointer-events: none;

    border-radius: 999px;

    filter: blur(2px);

    opacity: .65;
}

.decor-1 {
    width: 260px;
    height: 260px;

    top: -80px;
    left: -80px;

    background: rgba(125, 211, 252, .35);
}

.decor-2 {
    width: 320px;
    height: 320px;

    right: -100px;
    bottom: -120px;

    background: rgba(110, 231, 183, .28);
}


/* =========================================================
   APP
   ========================================================= */

.app {
    width: 100%;
    min-height: 100vh;

    padding: 20px;
}

.screen {
    width: 100%;
    max-width: 1100px;

    min-height: calc(100vh - 40px);

    margin: 0 auto;
}


/* =========================================================
   HERO / PANEL
   ========================================================= */

.hero,
.panel {
    background: rgba(255, 255, 255, .92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, .8);

    box-shadow: var(--shadow);

    border-radius: var(--radius);
}

.hero {
    padding: 30px;
    margin-bottom: 20px;
}

.panel {
    padding: 30px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 12px 20px;

    border-radius: 14px;

    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--teal2)
        );

    box-shadow:
        0 10px 24px rgba(15, 118, 110, .25);
}

.btn-primary:hover {
    box-shadow:
        0 14px 30px rgba(15, 118, 110, .32);
}

.btn-secondary {
    color: var(--teal);

    background: #ecfdf5;

    border: 2px solid #99f6e4;
}

.btn-secondary:hover {
    background: #d1fae5;
}

.btn-orange {
    color: white;

    background:
        linear-gradient(
            135deg,
            #f97316,
            #fb923c
        );
}

.btn-danger {
    color: white;
    background: var(--red);
}


/* =========================================================
   INTRO
   ========================================================= */

.eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: var(--teal);

    font-size: 13px;
    font-weight: 900;

    letter-spacing: .08em;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    margin-bottom: 14px;

    letter-spacing: -.03em;
}

h2 {
    font-size: clamp(25px, 4vw, 34px);

    line-height: 1.2;

    margin-bottom: 12px;
}

h3 {
    line-height: 1.25;
}

.lead {
    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   MISSION
   ========================================================= */

.mission {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 20px;

    align-items: center;
}

.mission-text {
    min-width: 0;
}

.mission-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 100px;
    min-height: 100px;

    padding: 20px;

    border-radius: 24px;

    background: #fef3c7;

    font-size: 42px;
}


/* =========================================================
   CHOICES
   ========================================================= */

.choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 24px;
}

.choice {
    position: relative;

    padding: 20px;

    border: 2px solid #e2e8f0;

    border-radius: 20px;

    background: white;

    text-align: left;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.choice:hover {
    transform: translateY(-3px);

    border-color: var(--teal2);

    box-shadow:
        0 12px 28px rgba(15, 118, 110, .12);
}

.choice-title {
    font-weight: 900;

    margin-bottom: 5px;
}

.choice-desc {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   FEEDBACK
   ========================================================= */

.feedback {
    margin-top: 20px;

    padding: 18px 20px;

    border-radius: 18px;

    font-weight: 700;
}

.feedback.good {
    color: #166534;

    background: #dcfce7;

    border: 1px solid #86efac;
}

.feedback.bad {
    color: #991b1b;

    background: #fee2e2;

    border: 1px solid #fca5a5;
}


/* =========================================================
   SITUATION
   ========================================================= */

.situation {
    padding: 24px;

    margin-top: 20px;

    border-radius: 22px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}

.situation-title {
    font-size: 20px;

    font-weight: 900;

    margin-bottom: 10px;
}

.situation-text {
    color: var(--muted);

    line-height: 1.7;
}


/* =========================================================
   RULE GRID
   ========================================================= */

.rule-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 20px;
}

.rule-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 16px;

    border-radius: 18px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}

.rule-number {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    color: white;

    background: var(--teal);

    font-weight: 900;
}

.rule-content {
    min-width: 0;
}

.rule-content strong {
    display: block;

    margin-bottom: 3px;
}

.rule-content span {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   FINAL BADGE
   ========================================================= */

.final-badge {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 110px;
    height: 110px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #fef3c7;

    font-size: 50px;

    box-shadow:
        0 14px 35px rgba(245, 158, 11, .18);
}


/* =========================================================
   CONFETTI
   ========================================================= */

.confetti {
    position: fixed;

    width: 10px;
    height: 16px;

    top: -30px;

    pointer-events: none;

    animation:
        confetti-fall 3.5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform:
            translateY(0)
            rotate(0deg);
        opacity: 1;
    }

    100% {
        transform:
            translateY(110vh)
            rotate(720deg);
        opacity: 0;
    }
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 24px;

    z-index: 100000;

    transform:
        translate(-50%, 20px);

    opacity: 0;
    visibility: hidden;

    padding: 13px 20px;

    max-width: calc(100vw - 30px);

    border-radius: 14px;

    color: white;

    background: #17324d;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, .25);

    font-weight: 700;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   PILLS
   ========================================================= */

.pill {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 900;
}

.pill-teal {
    color: #115e59;
    background: #ccfbf1;
}

.pill-yellow {
    color: #92400e;
    background: #fef3c7;
}

.pill-red {
    color: #991b1b;
    background: #fee2e2;
}

.pill-green {
    color: #166534;
    background: #dcfce7;
}


/* =========================================================
   KNOWLEDGE PAGE
   ========================================================= */

.knowledge-panel {
    max-height: none;
}

.knowledge-header {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.knowledge-header h1 {
    margin-bottom: 15px;
}

.knowledge-header .lead {
    max-width: 800px;

    margin: 0 auto;
}


/* =========================================================
   KNOWLEDGE GRID
   ========================================================= */

.knowledge-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin: 24px 0;
}


/* =========================================================
   KNOWLEDGE CARD
   ========================================================= */

.knowledge-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: white;

    border: 2px solid #e2e8f0;

    border-radius: 22px;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, .07);

    cursor: pointer;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.knowledge-card:hover {
    transform: translateY(-5px);

    border-color: var(--teal2);

    box-shadow:
        0 18px 35px rgba(15, 118, 110, .14);
}

.knowledge-card.highlight {
    background:
        linear-gradient(
            180deg,
            #f0fdfa 0%,
            #ffffff 100%
        );

    border-color: #99f6e4;
}


/* =========================================================
   CARD SHINE
   ========================================================= */

.knowledge-card::before {
    content: "";

    position: absolute;

    z-index: 5;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .45),
            transparent
        );

    transform: skewX(-20deg);
}

.knowledge-card:hover::before {
    animation: card-shine .8s ease;
}

@keyframes card-shine {
    from {
        left: -120%;
    }

    to {
        left: 140%;
    }
}


/* =========================================================
   CARD "XEM CHI TIẾT"
   ========================================================= */

.knowledge-card::after {
    content: "Xem chi tiết   →";

    display: block;

    margin:
        0 18px
        18px;

    padding: 12px 16px;

    border-radius: 12px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--teal2)
        );

    text-align: center;

    font-size: 14px;

    font-weight: 900;

    box-shadow:
        0 7px 18px rgba(15, 118, 110, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.knowledge-card:hover::after {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(15, 118, 110, .25);
}


/* =========================================================
   KNOWLEDGE IMAGE
   ========================================================= */

.knowledge-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f1f5f9;
}

.knowledge-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.knowledge-card:hover .knowledge-image img {
    transform: scale(1.045);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.knowledge-image::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0) 55%,
            rgba(15, 23, 42, .08) 100%
        );
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.knowledge-card-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 20px 20px 0;
}

.knowledge-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 12px;

    border-radius: 15px;

    background: #ecfdf5;

    font-size: 27px;
}

.knowledge-card h3 {
    margin-bottom: 8px;

    color: var(--teal);

    font-size: 21px;
}

.knowledge-card p {
    color: var(--muted);

    line-height: 1.65;

    font-size: 15px;
}

.knowledge-card .rule-list {
    margin-top: 10px;

    padding-left: 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}

.knowledge-card .rule-list li {
    margin-bottom: 3px;
}


/* =========================================================
   KNOWLEDGE ACTIONS
   ========================================================= */

.knowledge-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 26px;
}

.btn-knowledge {
    min-width: 210px;
}

.knowledge-float {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 100;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 18px;

    border-radius: 999px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--teal2)
        );

    box-shadow:
        0 12px 30px rgba(15, 118, 110, .25);

    font-weight: 900;
}


/* =========================================================
   INTRO NOTE
   ========================================================= */

.knowledge-note {
    margin-top: 24px;

    padding: 16px 18px;

    border-radius: 17px;

    color: #475569;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    text-align: center;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   KNOWLEDGE DETAIL MODAL
   ========================================================= */

.knowledge-detail {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        max(10px, env(safe-area-inset-top))
        max(10px, env(safe-area-inset-right))
        max(10px, env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-left));

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.knowledge-detail[aria-hidden="false"] {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   DETAIL OVERLAY
   ========================================================= */

.detail-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(6, 35, 45, .72);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* =========================================================
   DETAIL SHEET
   ========================================================= */

.detail-sheet {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    width: 100%;

    max-width: 960px;

    max-height:
        calc(100vh - 40px);

    min-height: 0;

    overflow: hidden;

    background: white;

    border-radius: 28px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .3);

    transform:
        translateY(18px)
        scale(.985);

    transition:
        transform .25s ease;
}

.knowledge-detail[aria-hidden="false"] .detail-sheet {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   DETAIL CLOSE
   ========================================================= */

.detail-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    color: var(--ink);

    background: rgba(255, 255, 255, .95);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, .16);

    font-size: 22px;
    font-weight: 900;

    transition:
        transform .22s ease,
        background .22s ease,
        color .22s ease;
}

.detail-close:hover {
    transform: rotate(90deg);

    color: white;

    background: var(--teal);
}


/* =========================================================
   DETAIL SCROLL
   ========================================================= */

.detail-scroll {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(15, 118, 110, .35)
        transparent;
}

.detail-scroll::-webkit-scrollbar {
    width: 8px;
}

.detail-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.detail-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(15, 118, 110, .35);
}

.detail-scroll::-webkit-scrollbar-thumb:hover {
    background:
        rgba(15, 118, 110, .55);
}


/* =========================================================
   ARTICLE HERO
   ========================================================= */

.article-hero {
    width: 100%;

    padding: 12px;

    background:
        linear-gradient(
            135deg,
            #ecfeff,
            #f0fdfa
        );

    border-bottom: 1px solid #e2e8f0;
}

.article-hero img {
    width: 100%;
    max-height: 420px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 16px;

    background: #f8fafc;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.article-content {
    padding:
        32px
        38px
        38px;
}

.article-category {
    display: inline-flex;

    align-items: center;

    margin-bottom: 12px;

    padding: 7px 13px;

    border-radius: 999px;

    color: #115e59;

    background: #ccfbf1;

    font-size: 12px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .05em;
}

.article-content h1 {
    margin-bottom: 15px;

    color: var(--ink);

    font-size: clamp(28px, 4vw, 40px);

    line-height: 1.15;
}

.article-lead {
    margin-bottom: 25px;

    color: #475569;

    font-size: 17px;

    line-height: 1.75;

    font-weight: 600;
}


/* =========================================================
   ARTICLE BODY
   ========================================================= */

.article-body {
    color: #334155;

    font-size: 16px;

    line-height: 1.8;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h2 {
    margin-top: 28px;
    margin-bottom: 12px;

    color: var(--teal);

    font-size: 24px;
}

.article-body h3 {
    margin-top: 22px;
    margin-bottom: 10px;

    color: var(--ink);

    font-size: 19px;
}

.article-body ul,
.article-body ol {
    margin:
        12px 0
        20px
        22px;
}

.article-body li {
    margin-bottom: 7px;
}

.article-body strong {
    color: var(--ink);
}


/* =========================================================
   REMEMBER BOX
   ========================================================= */

.remember-box {
    margin: 25px 0;

    padding: 20px 22px;

    border-left:
        5px solid var(--teal);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #f0fdfa
        );

    color: #134e4a;
}

.remember-box strong {
    display: block;

    margin-bottom: 6px;

    color: var(--teal);

    font-size: 17px;
}

.remember-box p {
    margin: 0;

    line-height: 1.7;
}


/* =========================================================
   DETAIL GALLERY
   ========================================================= */

.article-gallery {
    margin-top: 30px;
}

.article-gallery h3 {
    margin-bottom: 14px;

    color: var(--teal);

    font-size: 22px;
}

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.gallery-grid img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 15px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.015);

    box-shadow:
        0 12px 28px rgba(15, 23, 42, .12);
}


/* =========================================================
   ARTICLE BOTTOM BUTTONS
   ========================================================= */

.article-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

    padding-top: 24px;

    border-top:
        1px solid #e2e8f0;
}

.article-actions .btn {
    flex: 1 1 200px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 651px) and (max-width: 1024px) {

    .app {
        padding: 18px;
    }

    .screen {
        min-height:
            calc(100vh - 36px);
    }

    .hero,
    .panel {
        padding: 26px;
    }

    .detail-sheet {
        max-width: 720px;

        max-height:
            calc(100vh - 36px);
    }

    .article-hero img {
        max-height: 320px;
    }

    .article-content {
        padding:
            26px
            28px
            30px;
    }

    .article-content h1 {
        font-size: 32px;
    }

    .article-lead {
        font-size: 16px;
    }

    .knowledge-grid {
        gap: 18px;
    }

    .knowledge-card-content {
        padding:
            18px
            18px
            0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    body {
        line-height: 1.5;
    }

    .app {
        padding: 10px;
    }

    .screen {
        min-height:
            calc(100vh - 20px);
    }

    .hero,
    .panel {
        border-radius: 22px;

        padding: 20px;
    }

    .hero {
        margin-bottom: 12px;
    }

    h1 {
        font-size: 29px;
    }

    h2 {
        font-size: 24px;
    }

    .lead {
        font-size: 15px;
    }


    /* -----------------------------
       MISSION
       ----------------------------- */

    .mission {
        grid-template-columns: 1fr;
    }

    .mission-badge {
        width: 80px;
        height: 80px;

        min-width: 80px;
        min-height: 80px;

        padding: 14px;

        font-size: 34px;
    }


    /* -----------------------------
       CHOICES
       ----------------------------- */

    .choice-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    /* -----------------------------
       RULE
       ----------------------------- */

    .rule-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* -----------------------------
       KNOWLEDGE
       ----------------------------- */

    .knowledge-grid {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-top: 20px;
    }

    .knowledge-image {
        aspect-ratio: 16 / 9;
    }

    .knowledge-card-content {
        padding:
            17px
            17px
            0;
    }

    .knowledge-card h3 {
        font-size: 20px;
    }

    .knowledge-card p {
        font-size: 14.5px;
    }

    .knowledge-card::after {
        margin:
            0
            15px
            15px;
    }

    .knowledge-actions {
        flex-direction: column;

        align-items: stretch;

        margin-top: 20px;
    }

    .knowledge-actions .btn {
        width: 100%;

        min-width: 0;
    }

    .knowledge-float {
        right: 12px;
        bottom: 12px;

        min-height: 46px;

        padding:
            11px
            15px;

        font-size: 14px;
    }


    /* -----------------------------
       MODAL
       ----------------------------- */

    .knowledge-detail {
        padding: 10px;
    }

    .detail-sheet {
        max-height:
            calc(100vh - 20px);

        border-radius: 22px;
    }

    .detail-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 20px;
    }


    /* -----------------------------
       ARTICLE HERO
       ----------------------------- */

    .article-hero {
        padding: 8px;
    }

    .article-hero img {
        max-height: 220px;

        border-radius: 12px;
    }


    /* -----------------------------
       ARTICLE CONTENT
       ----------------------------- */

    .article-content {
        padding:
            20px
            18px
            24px;
    }

    .article-category {
        margin-bottom: 10px;

        font-size: 11px;
    }

    .article-content h1 {
        margin-bottom: 12px;

        font-size: 22px;
    }

    .article-lead {
        margin-bottom: 20px;

        font-size: 15.5px;

        line-height: 1.65;
    }

    .article-body {
        font-size: 15px;

        line-height: 1.72;
    }

    .article-body h2 {
        font-size: 21px;
    }

    .article-body h3 {
        font-size: 18px;
    }


    /* -----------------------------
       GALLERY
       ----------------------------- */

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .gallery-grid img {
        aspect-ratio: 16 / 10;
    }


    /* -----------------------------
       ACTIONS
       ----------------------------- */

    .article-actions {
        flex-direction: column;
    }

    .article-actions .btn {
        width: 100%;

        flex: none;
    }


    /* -----------------------------
       REMEMBER
       ----------------------------- */

    .remember-box {
        padding:
            16px
            17px;

        margin: 20px 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .app {
        padding: 7px;
    }

    .hero,
    .panel {
        padding: 16px;

        border-radius: 19px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 22px;
    }

    .knowledge-card-content {
        padding:
            15px
            15px
            0;
    }

    .knowledge-icon {
        width: 43px;
        height: 43px;

        margin-bottom: 10px;

        font-size: 24px;
    }

    .knowledge-card h3 {
        font-size: 18px;
    }

    .knowledge-card p {
        font-size: 14px;
    }

    .knowledge-card::after {
        margin:
            0
            13px
            13px;

        padding:
            11px
            13px;

        font-size: 13px;
    }


    /* Modal */

    .knowledge-detail {
        padding: 7px;
    }

    .detail-sheet {
        max-height:
            calc(100vh - 14px);

        border-radius: 19px;
    }

    .detail-close {
        width: 38px;
        height: 38px;

        top: 8px;
        right: 8px;
    }

    .article-hero {
        padding: 6px;
    }

    .article-hero img {
        max-height: 190px;

        border-radius: 10px;
    }

    .article-content {
        padding:
            16px
            14px
            20px;
    }

    .article-content h1 {
        font-size: 20px;
    }

    .article-lead {
        font-size: 14.5px;
    }

    .article-body {
        font-size: 14px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

    .knowledge-detail {
        padding: 10px;
    }

    .detail-sheet {
        max-height:
            calc(100vh - 20px);
    }

    .article-hero img {
        max-height: 170px;
    }

    .article-content {
        padding:
            18px
            24px
            24px;
    }

    .article-content h1 {
        font-size: 25px;
    }

    .article-lead {
        margin-bottom: 15px;

        font-size: 14px;
    }

    .article-body {
        font-size: 14px;
    }

    .article-actions {
        flex-direction: row;
    }

    .article-actions .btn {
        flex: 1;
    }
}


/* =========================================================
   TOUCH DEVICE
   ========================================================= */

@media (hover: none) {

    .knowledge-card:hover {
        transform: none;

        border-color: #e2e8f0;

        box-shadow:
            0 10px 25px rgba(15, 23, 42, .07);
    }

    .knowledge-card:hover .knowledge-image img {
        transform: none;
    }

    .knowledge-card:hover::before {
        animation: none;
    }

    .knowledge-card:hover::after {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}


/* =========================================================
   GLOBAL <= 760
   ========================================================= */

@media (max-width: 760px) {

    .app {
        width: 100%;
    }

    .panel,
    .hero {
        width: 100%;
    }

    .knowledge-float {
        max-width:
            calc(100vw - 24px);
    }
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(20, 184, 166, .45);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}