@font-face { font-family: Mont; src: url(/fonts/Montserrat-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Mont; src: url(/fonts/Montserrat-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Mont; src: url(/fonts/Montserrat-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Mont; src: url(/fonts/Montserrat-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --blue: #0061A3; --navy: #004A7D; --yellow: #FFD403; --ink: #1D1D1B;
  --muted: #56616b; --line: #dfe5eb; --soft: #f3f6f9; --amber: #7a4f00; --amber-bg: #fff4d1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Mont, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 500; color: var(--ink); background: #fff; line-height: 1.4; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.top { padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 4px solid var(--yellow); background: #fff; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; }
.top .brand img { height: 22px; display: block; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 32px; outline: none; }
h1 { font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--navy); margin: 4px 0 6px; }
.lead { color: var(--muted); margin: 0 0 14px; font-size: 16px; }

.search { position: sticky; top: 64px; z-index: 2; display: flex; align-items: center; background: #fff; border: 2px solid var(--blue); border-radius: 14px; padding: 0 6px 0 14px; box-shadow: 0 6px 16px rgba(0, 40, 80, .06); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 14px 0; background: transparent; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(0, 97, 163, .18); }
.clear { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); }

#results { margin-top: 12px; }
.result { display: flex; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 64px; }
.result:active { background: var(--soft); }
.result .t { font-weight: 600; font-size: 16px; line-height: 1.25; }
.result .m { font-size: 13.5px; color: var(--muted); }
.result .chev { margin-left: auto; color: var(--blue); font-size: 22px; flex: none; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--soft); flex: none; overflow: hidden; display: grid; place-items: center; color: #9aa9b6; font-weight: 700; font-size: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit { background: #eaf4fb; border-radius: 12px; padding: 4px 10px; margin-bottom: 6px; border-bottom: 0; }
.more { color: var(--muted); font-size: 14px; padding: 12px 4px; }
.none { padding: 16px 4px; }
.none p { margin: 0 0 8px; }

.tips { margin-top: 18px; color: var(--muted); font-size: 15px; }
.tips p { margin: 0 0 8px; }
.eg { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 4px 12px; margin: 2px 2px; font-size: 14px; }

.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 15px; padding: 6px 0; margin-bottom: 8px; }
.hero { width: 100%; max-height: 300px; border-radius: 16px; background: var(--soft); object-fit: contain; display: block; margin-bottom: 14px; }
.code { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: #eaf4fb; border-radius: 999px; padding: 3px 10px; margin-bottom: 16px; }
h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 8px 0 10px; }
.guide { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: inherit; background: #fff; min-height: 76px; }
.guide:active { background: var(--soft); }
.guide .pdf { width: 42px; height: 52px; border-radius: 6px; background: #d93b30; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.guide .t { font-weight: 700; font-size: 16px; line-height: 1.2; }
.guide .m { font-size: 13.5px; color: var(--muted); }
.guide .go { margin-left: auto; color: #fff; background: var(--blue); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; flex: none; }
.guide.soon { opacity: .7; }
.guide.soon .go { background: var(--soft); color: var(--muted); }
.note { background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin: 4px 0 14px; }
.callbox { background: var(--soft); border-radius: 14px; padding: 16px; margin: 6px 0 14px; }
.callbox p { margin: 0 0 10px; }
.btn { display: block; text-align: center; text-decoration: none; background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; width: 100%; }
.btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 18px 16px max(18px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 4px; }
.foot a { font-weight: 700; text-decoration: none; }
.foot .small { font-size: 12.5px; }
