:root{--wine:#791d29;--wine-dark:#5e1620;--paper:#fbf9f5;--cream:#f1ebe1;--ink:#30252a;--muted:#746b69;--line:#e6ddd3;--gold:#b88b40;--radius:5px;--space:32px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.75;min-height:100vh;display:flex;flex-direction:column}main{flex:1}a{color:inherit;text-decoration:none}a:hover{color:var(--wine)}img{max-width:100%;display:block}h1,h2,h3,p,figure,dl,dd{margin:0}h1,h2,h3{font-weight:600;line-height:1.4;overflow-wrap:anywhere}h1{font-size:36px}h2{font-size:24px}h3{font-size:20px}p,dd,strong,a,span{overflow-wrap:anywhere}button,input{font:inherit}.wrap{width:min(1120px,calc(100% - 64px));margin-inline:auto}.skip{position:fixed;top:-80px;left:16px;z-index:10;padding:8px 16px;background:white}.skip:focus{top:12px}:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.site-header{background:var(--paper)}.header-inner{min-height:108px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:20px}.brand{display:flex;align-items:center;gap:16px;min-width:0;color:var(--wine)}.brand img{flex:0 0 58px;width:58px;height:58px;object-fit:contain}.brand strong{font-family:Georgia,"Times New Roman",serif;display:block;font-size:22px;font-weight:600;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-size:12px;letter-spacing:2px;margin-top:3px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 20px;border:1px solid transparent;border-radius:var(--radius);font-size:14px;font-weight:600;line-height:24px;cursor:pointer;text-align:center;transition:background .18s,color .18s,border-color .18s;flex-shrink:0}.button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.primary{background:var(--wine);color:white}.primary:hover{background:var(--wine-dark);color:white}.secondary{border-color:var(--wine);background:transparent;color:var(--wine)}.secondary:hover{background:var(--wine);color:white}.query-hero{position:relative;min-height:336px;display:flex;align-items:center;color:white;background:var(--wine)}.query-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 49%}.query-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(62,14,23,.91),rgba(85,20,31,.7) 52%,rgba(47,28,30,.38))}.hero-copy{position:relative;z-index:1;padding-block:50px 82px}.eyebrow{font-size:13px;letter-spacing:2px;font-weight:600;color:var(--wine);margin-bottom:12px}.hero-copy .eyebrow{color:#f1d29b}.hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:40px;letter-spacing:2px}.hero-copy>p:last-child{margin-top:16px;max-width:650px;color:#f3e9e6}.query-content{position:relative;padding-bottom:40px}.query-panel{position:relative;margin-top:-48px;z-index:2;background:white;padding:36px 40px;border-radius:var(--radius);box-shadow:0 14px 40px rgba(60,28,30,.07)}.query-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:24px}.field{min-width:0}.field label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}.field input{width:100%;height:44px;border:1px solid #cfc4b8;border-radius:var(--radius);padding:10px 14px;color:var(--ink);background:white;min-width:0}.field input::placeholder{color:#918681;font-size:14px}.query-submit{min-height:44px;padding-inline:28px}.form-note{font-size:13px;color:var(--muted);margin-top:20px}.service-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:48px 40px 36px}.service-overview section{display:grid;grid-template-columns:36px 1fr;column-gap:14px;align-content:start}.service-icon{grid-row:1/3;color:var(--gold);padding-top:3px}.service-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}.service-overview h2{font-size:18px}.service-overview p{font-size:14px;color:var(--muted);margin-top:6px}.support-copy{font-size:13px;color:var(--muted);text-align:center;margin-top:8px;line-height:1.9}.support-copy a{color:var(--wine)}.site-footer{background:var(--cream);color:var(--muted);font-size:12px}.footer-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:20px}.result-main{max-width:1000px;padding-block:48px 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:6px}.page-heading h1{font-family:Georgia,"Times New Roman",serif;font-size:32px}.record-card{background:white;border-radius:var(--radius);box-shadow:0 12px 40px rgba(60,28,30,.045);overflow:hidden}.record-identity{background:var(--cream);padding:32px 40px;display:flex;justify-content:space-between;gap:32px;align-items:center}.identity-copy{min-width:0;flex:1}.match-note{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-bottom:12px}.match-note>span{color:var(--wine);font-weight:700}.record-identity h2{font-size:26px;color:var(--wine)}.identity-number{margin-top:12px;display:flex;gap:12px;flex-wrap:wrap;font-size:14px;align-items:baseline}.identity-number>span{color:var(--muted)}.identity-number strong{font-weight:500;letter-spacing:.4px}.record-types{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.record-types>span{font-size:12px;padding:3px 12px;border-radius:3px;background:white;color:var(--wine)}.identity-photo{flex:0 0 96px;width:96px}.identity-photo img{width:96px;aspect-ratio:3/4;object-fit:cover;border-radius:3px}.record-sections{padding:8px 40px 32px}.record-section{padding-top:28px}.record-section h3{font-size:18px;margin-bottom:16px}.record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 40px}.record-field{min-width:0}.record-fields .record-field{background:var(--paper);padding:14px 18px;border-radius:3px}.record-fields dt{font-size:12px;color:var(--muted);margin-bottom:5px}.record-fields dd{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-width:0}.record-fields dd>span:first-child{max-width:100%}.record-fields .record-image{max-width:160px;max-height:220px;object-fit:contain}.status-pill{font-size:12px;line-height:1.5;border-radius:3px;padding:3px 8px;white-space:normal}.status-pill.active{color:#346743;background:#eaf2e9}.status-pill.expired{color:#922f38;background:#f8e9eb}.status-pill.pending{color:#85631f;background:#fbf0d8}.status-pill.unknown{color:#65605b;background:#eeece8}.result-main>.support-copy{margin-top:28px}.failure-main{max-width:850px;padding-block:64px}.failure-panel{padding:48px;background:white;border-radius:var(--radius);text-align:center}.failure-icon{display:inline-flex;color:var(--gold);margin-bottom:18px}.failure-icon svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.3}.failure-panel h1{font-size:28px;margin-bottom:12px}.failure-panel>p{color:var(--muted)}.submitted-query{margin:28px auto;max-width:560px;text-align:left;background:var(--paper);padding:24px;display:grid;gap:16px}.submitted-query dt{font-size:12px;color:var(--muted)}.submitted-query dd{margin-top:5px;overflow-wrap:anywhere}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}@media(min-width:721px){.record-fields .has-status{grid-column:1/-1}}@media(max-width:900px){.query-form{gap:18px;grid-template-columns:1fr 1fr}.query-submit{grid-column:1/-1;justify-self:start}.query-panel{padding:28px}.service-overview{padding-inline:12px;gap:18px}.brand strong{font-size:20px}}@media(max-width:600px){body{font-size:15px}.wrap{width:calc(100% - 36px)}.header-inner{min-height:90px;padding-block:16px;gap:12px;flex-wrap:wrap}.brand{gap:10px}.brand img{width:42px;height:42px;flex-basis:42px}.brand strong{font-size:18px;letter-spacing:0}.brand small{font-size:10px;letter-spacing:1px}.home-link{font-size:12px;padding-inline:12px;min-height:44px;margin-left:52px}.query-hero{min-height:280px}.hero-copy{padding-block:38px 70px}.hero-copy h1{font-size:32px}.hero-copy .eyebrow{font-size:12px;letter-spacing:1px}.hero-copy>p:last-child{font-size:14px;max-width:310px}.query-panel{padding:24px 20px;margin-top:-36px}.query-form{grid-template-columns:1fr;gap:20px}.query-submit{width:100%;justify-self:stretch}.form-note{font-size:12px;margin-top:16px}.service-overview{grid-template-columns:1fr;padding:32px 20px 24px;gap:24px}.service-overview h2{font-size:16px}.service-overview p{font-size:13px;margin-top:2px}.support-copy{text-align:left;font-size:12px}.footer-inner{align-items:flex-start;flex-direction:column;gap:4px;padding-block:20px}.result-main{padding-block:32px}.page-heading{align-items:flex-end;gap:12px;margin-bottom:20px}.page-heading h1{font-size:28px}.page-heading .button{padding-inline:14px}.record-identity{padding:24px 20px;gap:16px;align-items:flex-start}.record-identity h2{font-size:22px}.identity-photo{width:72px;flex-basis:72px}.identity-photo img{width:72px}.identity-number{font-size:13px;gap:4px 10px}.record-sections{padding:0 20px 24px}.record-section{padding-top:24px}.record-fields{grid-template-columns:1fr;gap:12px}.record-fields dd{font-size:15px}.record-fields .record-field{padding:12px 14px}.failure-main{padding-block:32px}.failure-panel{padding:32px 20px}.failure-panel h1{font-size:24px}.submitted-query{padding:18px;margin-block:24px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Vietnamese titles wrap at word boundaries, with a fallback for long record values. */
.brand>span{min-width:0}.brand strong{letter-spacing:0;font-size:21px;line-height:1.45}.brand small{letter-spacing:.5px}.hero-copy h1{letter-spacing:0}.hero-copy>p:last-child{max-width:720px}.service-overview>section{min-width:0}.button{max-width:100%;white-space:normal}.field input{font-size:16px}.record-fields dd>span{min-width:0}.footer-inner>a{flex-shrink:1}@media(max-width:600px){.brand strong{font-size:18px}.home-link{margin-left:52px}.hero-copy>p:last-child{max-width:100%}.page-heading{align-items:center}.page-heading h1{min-width:0;font-size:26px}.page-heading .button{padding-inline:12px}.record-identity h2{font-size:22px}.identity-photo{margin-top:0}.service-overview{gap:26px}}
