/*
 * UI V2 rules that the converted design stylesheet (design.css, generated) does not carry: packaged font, the
 * script-free menus, and the blocks the launch fills from corpus data (card rows, full card list, legacy article).
 */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/lexend-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/lexend-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/lexend-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.v2, body.v2-legacy { margin: 0; }
.v2-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; border-radius: 12px; background: #2B1838; color: #FFF8F1; font: 600 14px/1.2 'Lexend', system-ui, sans-serif; }
.v2-skip:focus { left: 16px; }
main:focus { outline: none; }

/*
 * Visually hidden labels (position: absolute) inside table cells must stay inside the table's scrolling wrapper;
 * otherwise they widen the page on phones (the prototype has the same defect at 390 px).
 */
.v2 table { position: relative; }

/* Controls the static page cannot run keep their look; links without a destination are not clickable. */
[data-v2-inert] { cursor: default; }
img[data-v2-missing-src] { visibility: hidden; }

/*
 * A design <button> that needs script is rendered as inert text; it keeps the browser's button defaults at zero
 * specificity so the design classes still decide its look.
 */
:where([data-v2-inert="control"]) { display: inline-block; box-sizing: border-box; text-align: center; font-size: 13.3333px; font-weight: 400; line-height: normal; letter-spacing: normal; padding: 1px 6px; border: 2px outset buttonborder; background-color: buttonface; color: inherit; }
/* A button centres its content vertically inside a set height; a span does not, so those controls get it back. */
.v2-ctl-center { display: inline-flex; align-items: center; justify-content: center; }

/* The design's image slot fills its box; the packaged photo keeps its proportions inside it. */
img[data-v2-slot] { object-fit: contain; object-position: center bottom; }

/* Home trust figures: one row of three at every width. */
.v2 .v2-trust-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) {
  .v2 .v2-trust-stats { gap: 16px 14px; }
  .v2 .v2-trust-stats > div > span:first-child { font-size: 30px; }
  .v2 .v2-trust-stats > div > span:last-child { font-size: 13px; }
}

/*
 * Home "3 steps": three captured states; the anchors are fixed so that following a step link does not scroll.
 * Without a target the first state shows.
 */
.v2-how-anchor { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
#v2-how-2:not(:target) ~ [data-v2-how="2"],
#v2-how-3:not(:target) ~ [data-v2-how="3"],
#v2-how-2:target ~ [data-v2-how="1"],
#v2-how-3:target ~ [data-v2-how="1"] { display: none !important; }
.v2-how-step { position: relative; }
.v2-how-go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.v2-how-go:focus-visible { outline: 2px solid rgb(245, 130, 31); outline-offset: 2px; }
.v2-how-go > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home hero on phones: the orange panel runs edge to edge (no side gutter, square corners). */
@media (max-width: 639px) {
  .v2 section[aria-labelledby="hero-h"] { padding-left: 0; padding-right: 0; }
  .v2 section[aria-labelledby="hero-h"] > div { border-radius: 0; }
}

/* Illustrated tile icons (home start-by-need, card hub categories): the image replaces the white glyph box. */
.v2 .v2-ill-box { width: 56px; height: 56px; border-radius: 0; background: transparent; }
.v2-ill { display: block; width: 56px; height: 56px; object-fit: contain; }

/* Home picks switch (Thẻ tín dụng / Vay tiêu dùng): centred on its own line on phones. */
@media (max-width: 639px) {
  .v2 .v2-pick-switch { margin-inline: auto; }
}

/* Hub articles block on phones: heading, list, then the "all articles" link centred below the list. */
@media (max-width: 639px) {
  .v2 .v2-articles > :first-child { display: contents; }
  .v2 .v2-articles > :first-child > a { order: 1; align-self: center; }
}

/* Best-cards ranking cards in the home card layout: art column sized like the home card art (design values). */
.v2-best-art { align-self: flex-start; }
.v2-best-art-img { background-color: rgb(255, 231, 211); background-size: auto 78%; }
@media (max-width: 639px) {
  .v2-best-art { flex: 1 1 100%; }
}
@media (min-width: 640px) {
  .v2-best-art { flex: 0 0 180px; }
}

/*
 * Best-cards "on this page" list: sticky only while it is a side column (from 887px the flex row fits list + gap +
 * content). Stacked above the content it has no background, so a sticky copy would sit over the text being scrolled.
 */
@media (max-width: 886px) {
  .v2 nav[aria-label="Trên trang này"] { position: static; max-height: none; overflow: visible; }
}

/* Card disclosure pills on phones: one full-width line each, no border, label left and chevron right. */
@media (max-width: 639px) {
  .v2 .v2-card-actions > * { flex: 1 1 100%; justify-content: space-between; border: 0; }
}

/* Mobile menu: the open link targets the captured open-menu panel (`:target`), the close link returns to #top. */
.v2-nav-panel { display: none; }
.v2-nav-close { display: none !important; }
.v2 header:has(#v2-nav-panel:target) .v2-nav-panel { display: block; }
.v2 header:has(#v2-nav-panel:target) .v2-nav-open { display: none !important; }
.v2 header:has(#v2-nav-panel:target) .v2-nav-close { display: flex !important; }
@media (min-width: 1100px) {
  .v2-nav-panel, .v2-nav-open, .v2-nav-close,
  .v2 header:has(#v2-nav-panel:target) .v2-nav-panel, .v2 header:has(#v2-nav-panel:target) .v2-nav-close { display: none !important; }
}

/* Mega menu ("Thẻ tín dụng"): opens on hover or keyboard focus of its trigger; each tab shows its captured state. */
.v2-megas, .v2-mega { display: none; }
[data-v2-dim] { pointer-events: none; }
[data-v2-mega-trigger]::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
@media (min-width: 1100px) {
  .v2 header:has([data-v2-mega-trigger]:hover) .v2-megas,
  .v2 header:has([data-v2-mega-trigger]:focus-visible) .v2-megas,
  .v2-megas:hover,
  .v2-megas:focus-within { display: block; }
  .v2-mega-0 { display: block; }
  .v2-megas:has(.v2-mega-0:hover) .v2-mega { display: none; } .v2-megas:has(.v2-mega-0:hover) .v2-mega-0 { display: block; }
  .v2-megas:has(.v2-mega-1:hover) .v2-mega { display: none; } .v2-megas:has(.v2-mega-1:hover) .v2-mega-1 { display: block; }
  .v2-megas:has(.v2-mega-2:hover) .v2-mega { display: none; } .v2-megas:has(.v2-mega-2:hover) .v2-mega-2 { display: block; }
  .v2-megas:has(.v2-mega-3:hover) .v2-mega { display: none; } .v2-megas:has(.v2-mega-3:hover) .v2-mega-3 { display: block; }
  .v2-megas:has([data-v2-tab="0"]:focus) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="0"]:focus) .v2-mega-0 { display: block; }
  .v2-megas:has([data-v2-tab="1"]:focus) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="1"]:focus) .v2-mega-1 { display: block; }
  .v2-megas:has([data-v2-tab="2"]:focus) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="2"]:focus) .v2-mega-2 { display: block; }
  .v2-megas:has([data-v2-tab="3"]:focus) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="3"]:focus) .v2-mega-3 { display: block; }
  .v2-megas:has([data-v2-tab="0"]:hover) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="0"]:hover) .v2-mega-0 { display: block; }
  .v2-megas:has([data-v2-tab="1"]:hover) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="1"]:hover) .v2-mega-1 { display: block; }
  .v2-megas:has([data-v2-tab="2"]:hover) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="2"]:hover) .v2-mega-2 { display: block; }
  .v2-megas:has([data-v2-tab="3"]:hover) .v2-mega { display: none; } .v2-megas:has([data-v2-tab="3"]:hover) .v2-mega-3 { display: block; }
}

/* Card rows filled from card records: the design paints the card art as a background; here it is an image. */
.v2-row-media { background-image: none !important; overflow: hidden; }
.v2-row-img { display: block; width: 100%; height: 78%; object-fit: contain; }
.v2-row-ph { font-weight: 600; font-size: 15px; color: #6B5A73; }
.v2-row-title { color: inherit; }
/* Category cards: legacy records carry no Fingo score; the ring stays empty and the stars line says so. */
.v2-unscored { background: rgb(241, 228, 215); }
.v2-unscored-t { font-size: 12.5px; line-height: 1.3; color: rgb(107, 90, 115); }
.v2-empty { margin: 0; padding: 24px; border-radius: 18px; background: #FFF8F1; color: #4A3A55; }

/* Card page key/value rows with their data state, in the design's row look. */
.v2 .crv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #F1E4D7; font-size: 15px; line-height: 1.5; }
.v2 .crv-row-k { flex: 0 1 auto; max-width: 48%; color: #6B5A73; }
.v2 .crv-row-v { min-width: 0; font-weight: 600; text-align: right; color: #2B1838; overflow-wrap: anywhere; }
.v2 .crv-row-v.is-empty { flex: 0 0 auto; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #F4F0F6; color: #6B5A73; font-size: 13px; font-weight: 600; white-space: nowrap; }
.v2 .pd-line { display: block; }
.v2 .pd-note, .v2 .pd-src { display: block; margin-top: 4px; font-weight: 400; font-size: 12.5px; color: #6B5A73; }
.v2 .v2-tag-ok { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #E7F5EC; color: #1F7A47; font-size: 12px; font-weight: 600; vertical-align: 1px; }
.v2 .v2-notices { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) 0; }
.v2 .v2-sources { margin: 0; padding: 14px clamp(18px, 2.4vw, 28px) 4px; list-style: none; font-size: 13px; line-height: 1.55; color: #4A3A55; }
.v2 .v2-sources li { margin: 4px 0; }
.v2 .v2-source-url { overflow-wrap: anywhere; color: #6B5A73; }
.v2 .v2-tag-ok { white-space: nowrap; }
/* Verified rows carry long lines, notes and sources: on phones the label sits above the value. */
@media (max-width: 639px) {
  .v2 .crv-row[data-fin-state="VERIFIED_CURRENT"] { flex-direction: column; gap: 4px; }
  .v2 .crv-row[data-fin-state="VERIFIED_CURRENT"] .crv-row-k { max-width: none; }
  .v2 .crv-row[data-fin-state="VERIFIED_CURRENT"] .crv-row-v { text-align: left; }
}

/* Stat tiles: long record values are clamped to two lines (the full value is in the page's tables). */
.v2 .v2-tile-v { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Category breadcrumb: wraps between items, never inside a short item. */
.v2 .v2-crumbs { flex-wrap: wrap; row-gap: 4px; }
.v2 .v2-crumbs > * { white-space: nowrap; }
.v2 .v2-crumbs > :last-child { white-space: normal; }

/* Full card list of the hub: column-major issuer groups, as the design lays them out. */
.v2-all-cards { display: block !important; column-count: 4; column-gap: 16px; }
.v2-all-cards > div { break-inside: avoid; margin-bottom: 16px; width: 100%; }
@media (max-width: 1099px) { .v2-all-cards { column-count: 3; } }
@media (max-width: 819px) { .v2-all-cards { column-count: 2; } }
@media (max-width: 559px) { .v2-all-cards { column-count: 1; } }

/* Legacy article of a card page. */
.v2-legacy-body { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
.v2-prose { color: #4A3A55; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.v2-prose > :first-child { margin-top: 0; }
.v2-prose p { margin: 0 0 14px; }
.v2-prose h2 { margin: 28px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; color: #2B1838; letter-spacing: -.01em; }
.v2-prose h3 { margin: 22px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 600; color: #2B1838; }
.v2-prose h4 { margin: 18px 0 8px; font-size: 16px; font-weight: 600; color: #2B1838; }
.v2-prose ul, .v2-prose ol { margin: 0 0 14px; padding-left: 22px; }
.v2-prose li { margin: 4px 0; }
.v2-prose a { color: #B4520E; text-decoration: underline; text-underline-offset: 2px; }
.v2-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.v2-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.v2-prose th, .v2-prose td { padding: 10px 12px; border-bottom: 1px solid #F1E4D7; text-align: left; vertical-align: top; }
.v2-prose th { background: #FFF8F1; color: #2B1838; font-weight: 600; }
.v2-prose blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid #F5821F; background: #FFF8F1; border-radius: 0 12px 12px 0; }

/* Pages that keep their previous body: the old stylesheet must not restyle the V2 header and footer. */
.v2-legacy .v2-chrome { font-family: 'Lexend', system-ui, sans-serif; color: #2B1838; background: transparent; }
.v2-legacy .v2-chrome h2, .v2-legacy .v2-chrome h3, .v2-legacy .v2-chrome p { letter-spacing: normal; }

/* Appended to v2/v2.css by the export with the UI V2 continuation (option moreV2), so every V2 page carries it: the
   token revision of the header and footer files in the knowledge design export (FingoHeader v2, FingoFooter v3). */
.v2 .v7db2a1b,.v2 .v3f51644{border-color:#E6D6C6}
.v2 .v29ddbe7,.v2 .v8d15964{border-radius:12px}
.v2 .v335bc83{border-top-color:#F1E4D7}
.v2 .vb73eede{border-bottom-color:#F1E4D7}
.v2 .vf0ed608{border-radius:24px 24px 0 0}
:where(.v2 a:focus-visible),:where(.v2 .ff3 a:focus-visible),:where(.v2 .ff3 summary:focus-visible),:where(.v2 .ff3 button:focus-visible){border-radius:8px}
