:root{--ink:#172b38;--navy:#102d3b;--navy-2:#1e4252;--green:#174d43;--gold:#b69452;--paper:#faf9f5;--white:#fff;--muted:#61717b;--line:#d9dfdc;--red:#9e3936;--red-light:#f8ebea;--green-light:#eaf4ee;--amber:#755515;--amber-light:#fff7e5}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 "Segoe UI",Arial,sans-serif}a{color:inherit}.wrap{width:min(1080px,calc(100% - 42px));margin:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.16}h1{font-size:clamp(42px,5vw,66px);letter-spacing:-.025em;margin-bottom:18px}h2{font-size:clamp(25px,3vw,32px)}h3{font-size:19px}.eyebrow{color:var(--green);font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin:0 0 12px}
.demo-banner{display:flex;justify-content:center;gap:12px;align-items:center;flex-wrap:wrap;background:#82362f;color:white;text-align:center;padding:9px 18px;font-size:11px;letter-spacing:.015em}.demo-banner strong{letter-spacing:.11em}.demo-banner span{opacity:.95}
.site-header{background:var(--navy);color:#fff}.header-inner{display:flex;align-items:center;gap:18px;min-height:108px}.brand-mark{display:grid;place-items:center;flex:none;width:66px;height:66px;border:1px solid rgba(221,197,145,.75);border-radius:50%;box-shadow:inset 0 0 0 5px var(--navy),inset 0 0 0 6px rgba(221,197,145,.4);color:#e0c58a;font:36px Georgia,serif}.brand-text{display:flex;flex-direction:column;line-height:1.2}.brand-overline{color:#d8c596;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.18em;margin-bottom:7px}.brand-text strong{font:24px/1.15 Georgia,serif}.brand-subtitle{color:#bfd0d2;font-size:12px;letter-spacing:.09em;text-transform:uppercase;margin-top:7px}.header-tag{margin-left:auto;border:1px solid #8ba5a8;color:#d5e2e1;padding:7px 11px;font-size:10px;font-weight:800;letter-spacing:.12em;white-space:nowrap}.accent-rule{height:4px;background:linear-gradient(90deg,#2b8065 0 40%,#c6a462 40% 67%,#9f3d36 67%)}
.intro{padding:66px 0 35px;max-width:800px}.intro .lead{color:var(--muted);font-size:18px;max-width:730px;margin-bottom:0}.lookup-panel,.result{background:#fff;border:1px solid var(--line);box-shadow:0 12px 36px rgba(16,45,59,.05)}.lookup-panel{padding:33px 36px 34px;border-top:3px solid var(--gold)}.panel-heading,.result-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.panel-heading h2{margin:0 0 25px}.panel-index{color:#89979b;font:13px Georgia,serif;white-space:nowrap}.check-form label{display:block;font-size:13px;font-weight:700;margin-bottom:9px}.form-row{display:flex;gap:10px}.form-row input{min-width:0;flex:1;padding:15px 16px;background:#fff;border:1px solid #aebdbd;border-radius:2px;color:var(--ink);font:inherit}.form-row input::placeholder{color:#93a0a3}.form-row button,.button-link{display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid var(--green);border-radius:2px;background:var(--green);color:white;padding:14px 20px;text-decoration:none;font:700 13px "Segoe UI",Arial,sans-serif;cursor:pointer;white-space:nowrap}.form-row button:hover,.button-link:hover{background:#0d3a31}.field-help{color:var(--muted);font-size:12px;margin:10px 0 0}:focus-visible{outline:3px solid #ceaa60;outline-offset:3px}
.result{margin-top:20px;padding:30px 35px;border-left:4px solid var(--gold)}.result[hidden],.details[hidden],.file-section[hidden]{display:none}.result-heading h2{margin-bottom:0}.status-chip{padding:6px 11px;font-size:11px;letter-spacing:.04em;text-transform:uppercase;font-weight:800;white-space:nowrap}.status-chip.issued{color:#165f48;background:var(--green-light)}.status-chip.withdrawn{color:var(--red);background:var(--red-light)}.status-chip.unknown{color:var(--amber);background:var(--amber-light)}.result-message{max-width:760px;color:var(--muted);margin:18px 0 24px}.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 25px;margin:0 0 25px}.details div{border-top:1px solid var(--line);padding-top:12px}.details dt{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.details dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}.file-section{border-top:1px solid var(--line);padding-top:24px;display:grid;grid-template-columns:1fr auto;gap:7px 22px;align-items:center}.file-section h3{margin-bottom:5px}.file-section p{color:var(--muted);font-size:13px;max-width:650px;margin:0}.upload-label{border:1px solid var(--green);padding:11px 14px;color:var(--green);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.upload-label:hover{background:var(--green-light)}#pdf-file{position:absolute;width:1px;height:1px;opacity:0}.file-result{grid-column:1/-1;background:#f2f5f3;padding:10px 13px;margin:8px 0 0!important}.file-result.match{background:var(--green-light);color:#165f48!important}.file-result.mismatch{background:var(--red-light);color:var(--red)!important}
.examples{padding:70px 0 55px}.section-heading h2{margin-bottom:22px}.example-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.example-card{position:relative;display:flex;flex-direction:column;min-height:160px;padding:19px 21px;background:#fff;border:1px solid var(--line);text-decoration:none;transition:border-color .15s,transform .15s}.example-card:hover{border-color:var(--gold);transform:translateY(-2px)}.example-number{color:var(--gold);font:18px Georgia,serif;margin-bottom:21px}.example-card strong{font-size:14px}.example-card small{color:var(--muted);font-size:12px;margin-top:3px}.example-arrow{position:absolute;right:19px;top:17px;color:var(--green)}
.sample-section{display:flex;align-items:center;justify-content:space-between;gap:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:44px 0}.sample-section>div{max-width:690px}.sample-section h2{margin-bottom:13px}.sample-section p:not(.eyebrow){color:var(--muted);font-size:14px}.sample-section img{flex:none;background:#fff;padding:9px;border:1px solid var(--line);image-rendering:pixelated}.notice{margin:47px 0 63px;padding:23px 27px;border-left:3px solid var(--gold);background:#f0f1ec}.notice h2{font-size:20px;margin-bottom:8px}.notice p{font-size:13px;color:var(--muted);margin-bottom:0}.site-footer{background:var(--navy);color:#bdcdce}.footer-inner{display:flex;justify-content:space-between;gap:20px;padding:23px 0;font-size:11px}
@media(max-width:720px){.header-inner{min-height:94px}.brand-mark{width:53px;height:53px;font-size:29px}.brand-text strong{font-size:19px}.header-tag{display:none}.intro{padding:48px 0 29px}.intro .lead{font-size:16px}.lookup-panel{padding:25px}.example-grid{grid-template-columns:1fr}.example-card{min-height:115px}.example-number{margin-bottom:12px}.file-section{grid-template-columns:1fr}.upload-label{justify-self:start}.sample-section{align-items:start}.sample-section img{width:120px;height:120px}.footer-inner{flex-direction:column;gap:4px}}
@media(max-width:500px){.wrap{width:min(100% - 28px,1080px)}.brand-text strong{font-size:16px}.brand-overline{font-size:8px}.brand-subtitle{font-size:10px}.form-row{flex-direction:column}.form-row button{width:100%}.details{grid-template-columns:1fr}.result-heading{flex-direction:column}.sample-section{flex-direction:column}.sample-section img{align-self:flex-start}.demo-banner{font-size:10px}}
.brand-mark{width:78px;height:78px;padding:4px;border-radius:2px;box-shadow:none;background:#fff}.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:720px){.brand-mark{width:60px;height:60px;padding:3px}}

/* Eritrean flag palette, with quieter surfaces for document details. */
:root{--ink:#173341;--navy:#123846;--navy-2:#1c5568;--green:#087a55;--gold:#e1b54b;--paper:#f4f8f6;--muted:#526b74;--line:#d5e2df;--red:#bc2835;--red-light:#fff0f0;--green-light:#e5f5ed;--amber:#77550e;--amber-light:#fff8e7}
body{background:var(--paper)}
.demo-banner{background:#a91e2d;min-height:38px}
.site-header{background:#fff;color:var(--ink);box-shadow:0 4px 18px rgba(7,63,62,.07)}
.header-inner{min-height:116px}
.brand-mark{width:86px;height:86px;border:0;background:transparent;padding:0}
.brand-mark img{width:86px;height:86px}
.brand-overline{color:#087a55}
.brand-text strong{color:#153d4b;font-size:25px}
.brand-subtitle{color:#3c7781}
.header-tag{color:#0c6f58;border:1px solid #9dcdbb;border-radius:999px;background:#edf8f2;padding:9px 13px}
.header-tag-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#0f9462;margin-right:5px}
.accent-rule{height:6px;background:linear-gradient(90deg,#168153 0 31%,#c42b38 31% 68%,#167db2 68% 100%)}
.intro{position:relative;overflow:hidden;max-width:none;margin:28px 0 0;padding:53px 56px 95px;border-radius:16px;background:linear-gradient(115deg,#0c7050 0%,#0c715b 54%,#0b77a7 100%);color:#fff;isolation:isolate}
.intro::before{content:"";position:absolute;z-index:-1;right:-70px;top:-70px;width:36%;height:130%;background:#c72d3b;clip-path:polygon(30% 0,100% 0,100% 100%,0 100%);opacity:.92}
.intro::after{content:"";position:absolute;z-index:-1;right:19%;bottom:-170px;width:420px;height:420px;border:30px solid rgba(231,189,79,.17);border-radius:50%}
.intro-content{position:relative;z-index:1;max-width:705px}
.intro .eyebrow{color:#ffe3a0}
.intro h1{color:#fff;max-width:none;margin-bottom:16px;text-shadow:0 2px 12px rgba(1,48,45,.13)}
.intro .lead{color:#e6f7f5;max-width:610px;margin:0}
.hero-symbol{position:absolute;right:46px;bottom:32px;display:grid;place-items:center;width:102px;height:102px;border:1px solid rgba(255,255,255,.48);border-radius:50%;color:rgba(255,255,255,.72);font:39px Georgia,serif;letter-spacing:-.05em}
.lookup-panel{position:relative;z-index:2;margin:-49px 31px 0;border:1px solid #d7e6e0;border-top:5px solid var(--gold);border-radius:12px;padding:32px 37px;box-shadow:0 17px 38px rgba(14,61,59,.14)}
.panel-heading h2{margin-bottom:24px}
.panel-index{font:800 10px "Segoe UI",Arial,sans-serif;letter-spacing:.13em;color:#2d8063;padding:7px 9px;background:#eaf5ee;border-radius:4px}
.form-row input{border-radius:5px;border-color:#a6c6bb}
.form-row button,.button-link{border-radius:5px;background:#087a55;border-color:#087a55}
.form-row button:hover,.button-link:hover{background:#046342}
.result{margin:19px 31px 0;border-radius:10px;border-left:5px solid var(--gold)}
.examples{padding:62px 0 50px}
.example-grid{gap:16px}
.example-card{border-radius:10px;box-shadow:0 7px 20px rgba(15,65,59,.04);border-top:4px solid var(--green)}
.example-card:nth-child(2){border-top-color:var(--red)}
.example-card:nth-child(3){border-top-color:#177ca8}
.example-number{color:#0d7a58}
.example-card:nth-child(2) .example-number{color:var(--red)}
.example-card:nth-child(3) .example-number{color:#177ca8}
.sample-section{background:linear-gradient(110deg,#0a6d95,#0e526a);border:0;border-radius:14px;padding:38px 42px;color:#fff}
.sample-section .eyebrow{color:#ffe5a2}
.sample-section h2{color:#fff}
.sample-section p:not(.eyebrow){color:#e5f3f4}
.sample-section img{border-radius:8px}
.sample-section .button-link{background:#fff;border-color:#fff;color:#0b5261}
.sample-section .button-link:hover{background:#e7f6f3}
.notice{margin:34px 0 56px;border-left:4px solid var(--red);border-radius:0 9px 9px 0;background:#fff}
@media(max-width:720px){.header-inner{min-height:99px}.brand-mark,.brand-mark img{width:65px;height:65px}.brand-text strong{font-size:20px}.intro{padding:40px 28px 82px;margin-top:18px}.intro::before{width:45%;right:-100px}.hero-symbol{width:68px;height:68px;font-size:27px;right:20px;bottom:12px}.lookup-panel{margin:-38px 14px 0;padding:24px}.result{margin:17px 14px 0}.sample-section{padding:30px 26px}}
@media(max-width:500px){.brand-mark,.brand-mark img{width:53px;height:53px}.header-inner{gap:10px}.brand-text strong{font-size:16px}.brand-overline{font-size:8px}.intro{padding:34px 24px 72px}.intro::before{width:48%;right:-120px;opacity:.78}.intro h1{font-size:40px}.intro .lead{font-size:15px}.lookup-panel{margin:-29px 7px 0;padding:21px}.result{margin:16px 7px 0;padding:23px}.panel-heading{gap:10px}.panel-index{display:none}.sample-section{padding:25px 22px}.example-card{min-height:112px}}

/* Gold is the fourth flag color; the flag itself has a gentle cloth motion. */
:root{--gold:#ffc72c}
.accent-rule{height:7px;background:linear-gradient(90deg,#43b02a 0 27%,#e4002b 27% 54%,#418fde 54% 78%,#ffc72c 78% 100%)}
.intro{box-shadow:0 18px 38px rgba(7,68,65,.11)}
.intro::after{border-color:rgba(255,199,44,.34)}
.intro-content{max-width:min(650px,calc(100% - 270px))}
.intro .eyebrow{color:#ffe37a}
.lookup-panel{border-top-color:#ffc72c}
.form-row button{background:#ffc72c;border-color:#ffc72c;color:#183b3c}
.form-row button:hover{background:#edb910;border-color:#edb910;color:#173132}
.example-card:first-child{border-top-color:#ffc72c}
.example-card:first-child .example-number{color:#aa7400}
.sample-section .button-link{background:#ffc72c;border-color:#ffc72c;color:#123b42}
.sample-section .button-link:hover{background:#edb910;border-color:#edb910}
.header-tag{background:#fff8de;border-color:#efd780;color:#6d590f}
.header-tag-dot{background:#d7a900}
.flag-scene{position:absolute;z-index:1;top:83px;right:36px;width:270px;height:161px;pointer-events:none}
.flag-pole{position:absolute;left:0;top:0;width:6px;height:157px;border-radius:4px;background:linear-gradient(90deg,#9a6b14,#ffe59c 42%,#b78320);box-shadow:2px 2px 8px rgba(0,0,0,.26)}
.flag-pole::before{content:"";position:absolute;left:-4px;top:-9px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff3b9,#e7b328 60%,#a06b11)}
.flag-cloth{position:absolute;left:6px;top:8px;display:block;width:240px;height:120px;overflow:hidden;transform-origin:left center;clip-path:polygon(0 0,98% 0,100% 8%,98% 20%,100% 34%,98% 48%,100% 62%,98% 77%,100% 90%,97% 100%,0 100%);box-shadow:8px 8px 13px rgba(0,0,0,.16);animation:flag-wave 4.2s ease-in-out infinite}
.flag-cloth img{display:block;width:100%;height:100%;object-fit:cover}
.flag-cloth::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 3%,rgba(255,255,255,.20) 21%,rgba(2,29,40,.17) 43%,rgba(255,255,255,.21) 67%,rgba(1,38,51,.10) 86%,transparent 100%);mix-blend-mode:soft-light;animation:flag-shimmer 4.2s ease-in-out infinite}
@keyframes flag-wave{0%,100%{transform:perspective(520px) rotateY(-14deg) skewY(1.2deg) scaleX(.97)}25%{transform:perspective(520px) rotateY(5deg) skewY(-1deg) scaleX(1.01)}50%{transform:perspective(520px) rotateY(-8deg) skewY(1.6deg) scaleX(.98)}75%{transform:perspective(520px) rotateY(8deg) skewY(-1.4deg) scaleX(1.02)}}
@keyframes flag-shimmer{0%,100%{opacity:.55;transform:translateX(-7%)}50%{opacity:.9;transform:translateX(6%)}}
@media(max-width:900px){.intro-content{max-width:100%}.flag-scene{position:relative;top:auto;right:auto;margin:29px 0 -38px auto}.intro{padding-bottom:62px}}
@media(max-width:500px){.flag-scene{width:211px;height:116px;margin:24px 0 -22px auto}.flag-pole{height:111px}.flag-cloth{width:190px;height:95px}.intro{padding-bottom:52px}}
@media(prefers-reduced-motion:reduce){.flag-cloth,.flag-cloth::after{animation:none}.flag-cloth{transform:none}}

/* The complete national flag forms the hero; moving light and folds suggest fabric. */
.intro{display:flex;align-items:center;justify-content:flex-end;min-height:450px;margin-top:27px;padding:42px 48px 96px;background:#bd1636}
.intro::before,.intro::after{content:none}
.hero-flag{position:absolute;inset:0;z-index:-1;overflow:hidden;background:#d21739}
.hero-flag img{display:block;width:100%;height:100%;object-fit:fill;filter:saturate(1.08);animation:hero-fabric 5.5s ease-in-out infinite}
.hero-flag::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(1,32,38,.12),transparent 35%,rgba(6,26,41,.10) 76%,rgba(0,0,0,.19));pointer-events:none}
.hero-flag::after{content:"";position:absolute;inset:-12% -35%;z-index:2;background:repeating-linear-gradient(98deg,transparent 0 12%,rgba(255,255,255,.20) 17%,rgba(0,0,0,.25) 23%,rgba(255,255,255,.08) 29%,transparent 36%);background-size:145% 100%;mix-blend-mode:soft-light;animation:hero-folds 5.5s ease-in-out infinite;pointer-events:none}
.intro-content{position:relative;z-index:3;width:min(500px,51%);max-width:none;margin:0 0 12px;padding:28px 31px 31px;border-left:5px solid #ffc72c;border-radius:9px;background:rgba(9,43,48,.84);box-shadow:0 15px 35px rgba(0,0,0,.24);backdrop-filter:blur(3px)}
.intro h1{font-size:clamp(36px,4.2vw,55px);line-height:1.05}
.intro .lead{font-size:16px;line-height:1.55}
.intro .eyebrow{margin-bottom:10px}
@keyframes hero-fabric{0%,100%{transform:perspective(1200px) rotateY(-1.5deg) skewY(.15deg) scale(1.012)}50%{transform:perspective(1200px) rotateY(1.5deg) skewY(-.15deg) scale(1.018)}}
@keyframes hero-folds{0%,100%{transform:translateX(-7%) skewX(-2deg);opacity:.64}50%{transform:translateX(7%) skewX(2deg);opacity:.85}}
@media(max-width:900px){.intro{min-height:430px;display:flex;justify-content:center;padding:35px 26px 85px}.intro-content{width:min(580px,100%);margin:0}.hero-flag img{object-fit:cover;object-position:40% center}}
@media(max-width:500px){.intro{min-height:415px;margin-top:18px;padding:28px 18px 74px}.intro-content{padding:22px 20px 24px;border-left-width:4px;background:rgba(8,39,45,.86)}.intro h1{font-size:36px}.intro .lead{font-size:14px}.hero-flag img{object-position:34% center}}
@media(prefers-reduced-motion:reduce){.hero-flag img,.hero-flag::after{animation:none}}
.hero-flag::after{background:linear-gradient(96deg,transparent 0%,rgba(0,0,0,.3) 16%,rgba(255,255,255,.24) 25%,rgba(0,0,0,.23) 40%,rgba(255,255,255,.24) 57%,rgba(0,0,0,.28) 74%,transparent 100%);mix-blend-mode:overlay;opacity:.68}
.hero-flag img,.hero-flag::after{animation:none}
.hero-flag::after{opacity:.2}
.hero-flag-canvas{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;opacity:0;transition:opacity .3s ease}
.hero-flag.wave-ready .hero-flag-canvas{opacity:1}
.status-chip.snapshot{color:#145d42;background:#e5f5ed}.snapshot-note{border-left:3px solid #bc2835;background:#fbf3f1;color:#7b3b3b;padding:13px 15px;font-size:12px;margin:0 0 24px}.snapshot-note[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.hero-flag-canvas{display:none}}
