/* Missions (/nhiem-vu/): listing cards and mission pages, on top of landing.css and blog.css. */

/* Listing sections */
.nv-section { padding-block: 56px; }
.nv-section-muted { border-block: 1px solid var(--border); background: var(--surface-muted); }
.nv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.nv-section h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.6px; }
.nv-section-head p { color: var(--text-muted); font-size: 14px; }
.nv-section .callout { margin-top: 24px; }
.nv-section .callout a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nv-narrow { max-width: 780px; }

/* Mission cards */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; list-style: none; padding: 0; }
.mission-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); transition: border-color .18s, box-shadow .18s; }
.mission-card:hover { border-color: var(--brand-border); box-shadow: var(--shadow-card); }
.mission-card:focus-within { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
.mission-card h3 a:focus-visible { outline: none; }
.mission-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mission-icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--brand-border); border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); }
.mission-icon .icon { width: 24px; height: 24px; }
.mission-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; padding: 0; }
.mission-tags li { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); color: var(--text-body); font-size: 12px; font-weight: 700; line-height: 1.5; }
.mission-card h3 { margin-top: 18px; font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.mission-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.mission-card > p { margin-top: 8px; color: var(--text-body); font-size: 15px; line-height: 1.7; }
.mission-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.mission-note .icon { width: 16px; height: 16px; margin-top: 2px; color: #b91c1c; }
.mission-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.mission-more .icon { width: 18px; height: 18px; transition: transform .18s; }
.mission-card:hover .mission-more .icon { transform: translateX(3px); }

/* Rewards by membership tier (card list and page table share the tier label) */
.tier { display: inline-flex; align-items: center; gap: 10px; color: var(--text-main); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tier img { width: 26px; height: 26px; object-fit: contain; }
.tier-list { margin-top: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; }
.tier-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; }
.tier-list > div + div { border-top: 1px solid var(--border); }
.tier-list dd { color: var(--text-main); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tier-list .is-top { background: var(--brand-soft); }
.tier-list .is-top dd { color: var(--brand-dark); }

/* How missions work: blog step cards laid out in a row */
.nv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-steps > li { color: var(--text-body); font-size: 15px; line-height: 1.7; }

/* Mission page header with the reward panel */
.nv-hero { padding: 24px 0 56px; border-bottom: 1px solid var(--border); }
.nv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; gap: 56px; margin-top: 8px; }
.nv-hero h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.22; letter-spacing: -1.3px; }
.nv-hero .post-lead { margin-top: 18px; }
.nv-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.nv-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-card); color: var(--text-main); font-size: 14px; font-weight: 600; }
.nv-facts .icon { width: 17px; height: 17px; color: var(--brand-dark); }
.nv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.nv-actions .text-link { color: var(--brand-dark); }

.reward-panel { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-card); }
.reward-panel h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.reward-panel h2 + p { margin-top: 4px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.reward-panel h2 + p strong { color: var(--text-main); font-weight: 700; }
.reward-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.reward-table th, .reward-table td { padding: 13px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.reward-table thead th { padding-block: 6px 10px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.reward-table :is(th, td):first-child { padding-left: 0; }
.reward-table :is(th, td):last-child { padding-right: 0; text-align: right; }
.reward-table tbody th { font-weight: 600; }
.reward-table td { color: var(--text-body); font-size: 15px; }
.reward-table tbody td:last-child { color: var(--text-main); font-size: 22px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.reward-table tbody tr:first-child td:last-child { color: var(--brand-dark); }
.reward-table tbody tr:last-child > * { border-bottom: 0; }
.reward-panel .callout { margin-top: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.65; }
.reward-panel .callout strong { color: #991b1b; }

@media (max-width: 960px) {
    .nv-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .reward-panel { max-width: 560px; }
    .nv-steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .nv-section { padding-block: 44px; }
    .nv-section h2 { font-size: 25px; }
    .nv-section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nv-hero { padding-bottom: 44px; }
    .nv-hero h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -.9px; }
    .nv-actions .btn { width: 100%; }
    .reward-panel { padding: 20px; border-radius: var(--radius-md); }
    .reward-table tbody td:last-child { font-size: 19px; }
    .mission-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mission-card, .mission-more .icon { transition: none; } }
