/* Content pages ========================================================== */

/* 404 */
.error-page { max-width: 880px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) var(--hl-gutter); text-align: center; min-height: 60vh; }
.error-page__mark { width: clamp(120px, 18vw, 180px); height: auto; margin: 0 auto 28px; display: block; }
.error-page__mark polygon { fill: none; stroke: var(--hl-border-strong); stroke-width: 2; stroke-dasharray: 8 8; }
.error-page__mark text { font: 700 72px var(--hl-font); fill: var(--hl-primary); }
.error-page__title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.error-page__lead { margin: 0 auto 32px; max-width: 520px; }
.error-page__actions { justify-content: center; }

/* Generic page + prose */
.page-generic { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.page-generic__head { margin-bottom: 32px; }
.page-generic__head .h-page { margin-bottom: 16px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--hl-text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin-top: 1.8em; }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hl-primary); color: var(--hl-muted); }
.prose img { border-radius: var(--hl-radius-lg); }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--hl-muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--hl-border); padding: 10px 8px; text-align: left; }

/* Long document layout (methodology, validation) */
.doc-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(32px, 5vw, 56px); }
.doc-head .eyebrow { margin-bottom: 20px; }
.doc-head__title { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin-bottom: 22px; max-width: 860px; }
.doc-head__lead { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; color: var(--hl-muted); max-width: 680px; }
.doc { padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.doc__toc { flex: 1 1 220px; max-width: 260px; position: sticky; top: calc(var(--hl-header-h) + 24px); }
.admin-bar .doc__toc { top: calc(var(--hl-header-h) + 56px); }
.doc__toc-label { letter-spacing: .08em; margin: 0 0 12px 12px; }
.doc__main { flex: 999 1 560px; min-width: min(100%, 560px); display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.7; }
@media (max-width: 899.98px) { .doc__toc { position: static; max-width: 100%; } }
.dsec { background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-xl); padding: clamp(22px, 4vw, 44px); scroll-margin-top: calc(var(--hl-header-h) + 24px); }
.dsec > p { color: var(--hl-muted); }
.dsec > p + p, .dsec > p + .dash-list, .dsec > .dash-list + p, .dsec > blockquote + p { margin-top: 14px; }
.dsec > p b { color: var(--hl-text); font-weight: 600; }
.dsec__num { font-size: 13px; line-height: 1; font-weight: 600; color: var(--hl-primary); margin-bottom: 12px; }
.dsec__title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--hl-border-soft); border: 1px solid var(--hl-border-soft); border-radius: var(--hl-radius); overflow: hidden; margin: 20px 0 18px; }
.stat-grid > div { background: var(--hl-bg); padding: 16px 18px; }
.stat-grid dt { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-muted); margin-bottom: 8px; }
.stat-grid dd { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.formula { background: var(--hl-text); color: var(--hl-tint-blue); border-radius: var(--hl-radius-lg); padding: 20px 22px; font-size: 14px; line-height: 1.9; font-weight: 600; overflow-x: auto; margin: 20px 0 18px; }
.formula div { white-space: nowrap; }
.rule-table { border-top: 1px solid var(--hl-border-soft); margin: 16px 0 0; }
.rule-table > div { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hl-border-soft); }
.rule-table dt { font-weight: 600; }
.rule-table dd { margin: 0; color: var(--hl-muted); }
@media (max-width: 560px) { .rule-table > div { grid-template-columns: 1fr; gap: 4px; } }
.dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.dcard { border: 1px solid var(--hl-border-soft); border-radius: var(--hl-radius-lg); padding: 20px; background: var(--hl-bg); }
.dcard__title { font-weight: 600; margin-bottom: 6px; }
.dcard p { color: var(--hl-muted); font-size: 15px; line-height: 1.65; }
.dash-list { list-style: none; color: var(--hl-muted); }
.dash-list li { position: relative; padding-left: 22px; }
.dash-list li + li { margin-top: 8px; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--hl-border-strong); }
.legal-quote { margin: 18px 0; padding: 16px 18px; border-radius: var(--hl-radius); background: var(--hl-bg); border-left: 3px solid var(--hl-primary); font-size: 14px; line-height: 1.65; color: var(--hl-muted); }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.data-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hl-muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hl-border); }
.data-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hl-border-soft); vertical-align: top; }
.data-table td:first-child { font-weight: 600; white-space: nowrap; }
.ref-list { list-style: none; font-size: 14px; line-height: 1.65; color: var(--hl-muted); }
.ref-list li + li { margin-top: 8px; }

/* Shared bands and headings */
.band--white { background: #fff; border-top: 1px solid var(--hl-border); border-bottom: 1px solid var(--hl-border); }
.band--tint { background: var(--hl-tint); }
.band__inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-bottom: 32px; }
.page-h2--narrow { max-width: 680px; }
.page-h3 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin-bottom: 20px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 8px 12px; border-radius: 999px; background: var(--hl-bg); font-size: 14px; }
.soft-box { padding: 20px 22px; border-radius: var(--hl-radius-lg); background: var(--hl-bg); border: 1px solid var(--hl-border-soft); }
.soft-box .card__label { margin-bottom: 10px; }
.soft-box p { font-size: 15px; line-height: 1.6; }

/* RIASEC overview */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.type-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-lg); padding: 24px; color: var(--hl-text); }
.type-card:hover { border-color: var(--hl-primary); text-decoration: none; color: var(--hl-text); }
.type-card__head { display: flex; align-items: center; gap: 14px; }
.type-card__letter { width: 48px; height: 48px; border-radius: var(--hl-radius); font-size: 30px; flex: none; }
.type-card__name { display: block; font-size: 22px; line-height: 1.2; font-weight: 700; }
.type-card__en { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--hl-muted); }
.type-card__desc { font-size: 15px; line-height: 1.6; color: var(--hl-muted); }
.type-card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--hl-primary); }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.concept { background: #fff; border-radius: var(--hl-radius-lg); padding: 26px; }
.concept .num { display: block; margin-bottom: 12px; }
.concept__title { font-size: 23px; line-height: 1.2; font-weight: 700; margin-bottom: 10px; }
.concept p { font-size: 15px; line-height: 1.65; color: var(--hl-muted); margin-bottom: 16px; }

/* RIASEC type page */
.type-page__crumbs .breadcrumbs ol { margin: 20px 0 0; }
.type-hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; }
.type-hero__letter { width: clamp(96px, 14vw, 160px); aspect-ratio: 1 / 1; border-radius: var(--hl-radius-xl); display: flex; align-items: center; justify-content: center; font-size: clamp(64px, 9vw, 104px); line-height: 1.2; font-weight: 700; color: #fff; background: var(--ink); flex: none; }
.type-hero__copy { flex: 1 1 420px; }
.type-hero__copy .card__label { margin-bottom: 14px; }
.type-hero__title { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin-bottom: 16px; }
.type-hero__desc { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; color: var(--hl-muted); max-width: 720px; }
.type-facts { padding-bottom: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.type-facts .card { padding: 26px; }
.type-facts .card__label { margin-bottom: 14px; }
.type-facts__text { font-size: 16px; line-height: 1.65; }
.type-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); }
.type-rel__side { display: flex; flex-direction: column; gap: 14px; }
.type-rel__side .page-h3 { margin-bottom: 6px; }
.type-rel__others { margin-top: 10px; }
.career-rows { list-style: none; border-top: 1px solid var(--hl-border); margin-bottom: 16px; }
.career-rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--hl-border); font-size: 16px; font-weight: 500; }
.other-types { display: flex; flex-wrap: wrap; gap: 8px; }
.other-type { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--hl-radius); border: 1px solid var(--hl-border); background: #fff; font-weight: 500; font-size: 14px; color: var(--hl-text); }
.other-type:hover { border-color: var(--hl-primary); text-decoration: none; color: var(--hl-text); }
.other-type .letter { width: 32px; height: 32px; border-radius: var(--hl-radius-sm); font-size: 18px; }
.type-page__note { margin-bottom: 24px; font-size: 15px; }
.cta-band .btn--white { min-height: 54px; padding: 0 28px; }

/* Career / major library */
.library__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; }
.library__head .eyebrow { margin-bottom: 18px; }
.library__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; max-width: 820px; }
.library__lead { margin-bottom: 32px; max-width: 640px; }
.filter-box { background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-lg); padding: clamp(16px, 2.5vw, 24px); display: flex; flex-direction: column; gap: 16px; }
.filter-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-box__search { flex: 999 1 280px; }
.filter-box__tabs { flex: 1 1 220px; }
.segmented__count { font-size: 13px; opacity: .7; }
.filter-box__letters { gap: 8px; }
.filter-box__label { margin: 0 6px 0 0; }
.letter-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--hl-radius); border: 1.5px solid var(--hl-border); background: #fff; font-weight: 500; font-size: 14px; color: var(--hl-text); }
.letter-toggle__chip { width: 32px; height: 32px; border-radius: var(--hl-radius-sm); display: flex; align-items: center; justify-content: center; background: var(--hl-tint); color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1; }
.letter-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--hl-bg); }
.letter-toggle[aria-pressed="true"] .letter-toggle__chip { background: var(--ink); color: #fff; }
.mine-btn { min-height: 44px; padding: 0 14px; border-radius: var(--hl-radius); border: 1px dashed var(--hl-on-navy-accent); background: var(--hl-tint-select); font-weight: 600; font-size: 14px; color: var(--hl-primary); }
.clear-btn { min-height: 44px; padding: 0 10px; border: 0; background: none; font-weight: 600; font-size: 14px; color: var(--hl-muted); }
.library__results { padding-bottom: clamp(56px, 8vw, 96px); }
.library__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--hl-muted); }
.lib-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.lib-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-lg); padding: 20px 22px; }
.lib-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lib-card__name { font-size: 20px; line-height: 1.25; font-weight: 700; }
.lib-card__code { display: flex; gap: 3px; flex: none; }
.lib-card__code .letter { width: 24px; height: 28px; border-radius: 6px; font-size: 15px; }
.lib-card__desc { font-size: 15px; line-height: 1.6; color: var(--hl-muted); }
.lib-card__careers { font-size: 14px; line-height: 1.55; color: var(--hl-muted); }
.lib-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.lib-card__field { padding: 5px 9px; border-radius: var(--hl-radius-sm); background: var(--hl-bg); color: var(--hl-muted); }
.lib-card__match { font-weight: 600; color: var(--hl-primary); white-space: nowrap; }
.lib-more { display: flex; justify-content: center; margin-top: 24px; }
.lib-card:focus { outline: none; }
.lib-card:focus-visible { outline: 3px solid var(--hl-primary); outline-offset: 2px; }
.lib-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--hl-border-strong); border-radius: var(--hl-radius-lg); color: var(--hl-muted); }
.library__note { margin-top: 28px; font-size: 14px; }

/* Support */
.support__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; }
.support__head .eyebrow { margin-bottom: 18px; }
.support__title { font-size: clamp(34px, 5vw, 54px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin-bottom: 28px; }
.support__search { max-width: 640px; min-height: 54px; border-radius: var(--hl-radius-lg); background: #fff; margin-bottom: 18px; }
.support__head .chip { font-weight: 500; }
.support__faqs { padding-top: 16px; padding-bottom: clamp(48px, 7vw, 80px); }
.accordion--support .accordion__summary { font-weight: 500; font-size: clamp(16px, 1.7vw, 18px); padding: 20px 0; gap: 20px; }
.accordion--support .accordion__summary > span { display: flex; flex-direction: column; gap: 6px; }
.accordion__cat { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-muted); }
.accordion--support .accordion__summary::after { border-color: var(--hl-border-strong); }
.accordion--support .accordion__item[open] > .accordion__summary::after { background: var(--hl-tint-blue); }
.accordion--support .accordion__body { padding-right: clamp(0px, 6vw, 60px); }
.support__empty { padding: 40px 0; text-align: center; color: var(--hl-muted); }
.support__contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(28px, 5vw, 56px); }
.support__lead { font-size: 16px; line-height: 1.65; color: var(--hl-muted); margin-bottom: 24px; }
.contact-rows { margin: 0 0 16px; border-top: 1px solid var(--hl-border-soft); }
.contact-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--hl-border-soft); font-size: 15px; }
.contact-rows dt { color: var(--hl-muted); }
.contact-rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.support-form-card { background: var(--hl-bg); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-xl); padding: clamp(20px, 3vw, 28px); }
.support-form { display: flex; flex-direction: column; gap: 14px; }
.input--white { background: #fff; }
.select { padding: 0 12px; appearance: auto; }
.field__optional { font-weight: 400; color: var(--hl-muted); }
.support-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-sent { text-align: center; padding: 24px 0; }
.support-sent:focus { outline: none; }
.support-sent .status-icon { margin: 0 auto 16px; }
.support-sent h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.support-sent p { color: var(--hl-muted); }

/* Policy */
.policy { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.policy__tabs { margin-bottom: clamp(28px, 4vw, 44px); }
.policy__tabs .chip { font-weight: 500; }
.policy .eyebrow { margin-bottom: 16px; }
.policy__title { font-size: clamp(34px, 5vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; }
.policy__lead { margin-bottom: 28px; max-width: 720px; }
.policy__body { max-width: 760px; counter-reset: policy; font-size: 16px; }
.policy__body .policy-summary { list-style: none; padding: 18px 20px; border-radius: var(--hl-radius-lg); background: var(--hl-tint-blue); margin-bottom: clamp(28px, 4vw, 44px); }
.policy__body .policy-summary::before { content: "Tóm tắt"; display: block; font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-primary); margin-bottom: 10px; }
.policy__body .policy-summary li { display: grid; grid-template-columns: 20px 1fr; font-size: 15px; line-height: 1.55; }
.policy__body .policy-summary li + li { margin-top: 6px; }
.policy__body .policy-summary li::before { content: "✓"; color: var(--hl-primary); font-weight: 700; }
.policy__body h2 { counter-increment: policy; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; margin-top: 0; padding-top: 24px; border-top: 1px solid var(--hl-border); display: flex; gap: 14px; align-items: baseline; }
.policy__body h2::before { content: counter(policy, decimal-leading-zero); font-size: 13px; line-height: 1; font-weight: 600; color: var(--hl-primary); }
.policy__body h2 + * { margin-top: 10px; }
.policy__body p, .policy__body li { color: var(--hl-muted); line-height: 1.75; }
.policy__body > * + h2 { margin-top: 24px; }
.policy__foot { max-width: 760px; margin-top: 28px; }

/* About */
.source-box { padding: 20px 22px; border-radius: var(--hl-radius-lg); border: 1px solid var(--hl-border); font-size: 14px; line-height: 1.65; color: var(--hl-muted); }
.source-box .card__label { margin-bottom: 10px; }

/* Validation */
.validation__status { margin: -4px 0 18px; }
.validation__facts { max-width: 880px; margin-top: 28px; }
.validation__facts dd { font-size: 20px; }
.validation { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(56px, 8vw, 96px); }
.tag-plan { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--hl-warn-bg); color: var(--hl-warn); font-size: 12px; font-weight: 600; vertical-align: middle; }
.validation__foot { font-size: 14px; }
