/* K Translation — brand palette sampled from Fils's logo (dark brown + muted gold on cream). Mobile first. */
:root {
  --br: #4a3b31; --gold: #a8844f; --ink: #2f2620; --mute: #6f6156; --line: #e6ddd0; --soft: #f6f1ea; --gs: #f4ead8; --cream: #fbf8f3;
  --green: #06c755; --warn: #fff3cd; --ok: #2f6b3a; --bad: #a33a2a;
  --font: 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: 'Kanit', var(--font);
  --radius: 14px; --max: 980px;
}
:root[lang="zh"] { --font: 'Noto Sans SC', 'Sarabun', system-ui, sans-serif; --head: 'Noto Sans SC', sans-serif; }
:root[lang="ja"] { --font: 'Noto Sans JP', 'Sarabun', system-ui, sans-serif; --head: 'Noto Sans JP', sans-serif; }
:root[lang="my"] { --font: 'Noto Sans Myanmar', 'Sarabun', system-ui, sans-serif; --head: 'Noto Sans Myanmar', sans-serif; }
:root[lang="lo"] { --font: 'Noto Sans Lao', 'Sarabun', system-ui, sans-serif; --head: 'Noto Sans Lao', sans-serif; }
:root[lang="km"] { --font: 'Noto Sans Khmer', 'Sarabun', system-ui, sans-serif; --head: 'Noto Sans Khmer', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; }
:root[lang="my"] body, :root[lang="km"] body { line-height: 1.85; }
a { color: var(--br); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; color: var(--br); line-height: 1.3; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); } h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.mute { color: var(--mute); } .small { font-size: .875rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 50; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--soft); border-bottom: 2px solid var(--gold); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 1; min-width: 0; }
.brand img { height: 38px; width: auto; }
.brand b { font-family: 'Kanit', var(--head); font-weight: 500; font-size: 1.05rem; color: var(--br); display: block; line-height: 1.1; white-space: nowrap; }
.brand small { font-size: .75rem; color: var(--mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .brand small { display: none; } }
/* small phones (≤400px, long language names like မြန်မာ · ខ្មែរ): ☰ + logo + language + chat must fit — the name goes, the logo stays */
.brand > span { min-width: 0; overflow: hidden; } .brand b { overflow: hidden; text-overflow: ellipsis; } /* a long name shrinks with … instead of running under the buttons */
@media (max-width: 360px) { .brand > span { display: none; } .top .wrap { gap: 6px; } .top .pill { padding: 5px 10px; } }
.navlinks { display: none; gap: 18px; font-size: .95rem; } .navlinks a { text-decoration: none; } .navlinks a[aria-current] { font-weight: 700; border-bottom: 2px solid var(--gold); }
@media (min-width: 820px) { .navlinks { display: flex; } }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .875rem; border: 1.5px solid var(--br); background: #fff; color: var(--br); cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; }
.pill.green { background: var(--green); border-color: var(--green); color: #fff; }
.top .pill { min-height: 44px; } /* header buttons are thumb targets: ☰ · language · chat ≥ 44px (1 Nov 69) */
.langmenu { position: relative; } .langmenu summary { list-style: none; } .langmenu summary::-webkit-details-marker { display: none; }
.langmenu ul { position: absolute; right: 0; top: 50px; width: 220px; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(47,38,32,.18); overflow: hidden; }
.langmenu li a { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Myanmar', 'Noto Sans Lao', 'Noto Sans Khmer', var(--font); }
.langmenu li:first-child a { border-top: 0; } .langmenu li a[aria-current] { background: var(--soft); font-weight: 700; color: var(--br); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 13px 16px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.br { background: var(--br); color: #fff; } .btn.out { border: 1.5px solid var(--br); color: var(--br); background: #fff; } .btn.full { width: 100%; }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }

/* sections */
.hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 28px 0 22px; }
.chip { display: inline-block; background: var(--gs); color: #7a5512; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .95rem; } .trust li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
section.block { padding: 22px 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; } @media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.card b { color: var(--br); display: block; margin-bottom: 2px; } .card p { margin: 0; color: var(--mute); font-size: .95rem; }
.rows { border-top: 1px solid var(--line); } .rows .r { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows .r b { color: var(--br); white-space: nowrap; text-align: right; } .rows .r small { display: block; color: var(--mute); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.kitsteps { margin: 8px 0 10px; padding-left: 1.3em; font-size: .95rem; } .kitsteps li { margin: 4px 0; } .kit .btn { margin-top: 10px; }
.steps li { text-align: center; font-size: .95rem; } .steps li::before { counter-increment: s; content: counter(s); display: flex; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--br); color: #fff; align-items: center; justify-content: center; font-weight: 700; }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; } details.faq summary { font-weight: 600; cursor: pointer; } details.faq p { margin: 8px 0 0; color: var(--mute); }
.note { background: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
footer { background: var(--br); color: #efe6da; padding: 22px 0 28px; margin-top: 24px; font-size: .9rem; } footer a { color: #f3e7cf; }
footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; }

/* tables (prices) */
table.t { width: 100%; border-collapse: collapse; margin: 6px 0 14px; } table.t td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.p { text-align: right; white-space: nowrap; font-weight: 700; color: var(--br); padding-left: 12px; min-width: 6.5em; } table.t td.p small { display: block; font-weight: 400; color: var(--mute); white-space: normal; } /* long unit names (Khmer, Burmese) wrap instead of widening the table past a 320px screen */
table.t td small.d { display: block; color: var(--mute); }

/* estimator */
.f { margin: 14px 0; } .f > label, .f > .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
select, input[type=number] { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.docrow { display: grid; grid-template-columns: 1fr 92px 40px; gap: 6px; align-items: center; margin-bottom: 8px; }
.docrow .unit { grid-column: 2; font-size: .8rem; color: var(--mute); text-align: center; margin-top: -4px; }
.docrow button { height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--bad); font-size: 1.1rem; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--gold); font-weight: 700; padding: 4px 0; cursor: pointer; font: inherit; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.seg label { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 6px; text-align: center; font-size: .9rem; cursor: pointer; line-height: 1.35; }
.seg input { position: absolute; opacity: 0; pointer-events: none; } .seg input:checked + span { font-weight: 700; color: var(--br); }
.seg label:has(input:checked) { border-color: var(--br); background: var(--soft); } .seg label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.hint { font-size: .85rem; color: var(--mute); margin-top: 6px; }
.res { border: 1.5px solid var(--gold); border-radius: var(--radius); background: #fffcf6; padding: 14px 16px; margin: 18px 0; }
.res .ln { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.seg small { display: block; font-size: .75rem; color: var(--mute); font-weight: 400; margin-top: 2px; }
.eta { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; } .eta ul { margin: 4px 0; padding-left: 1.2em; } .eta .etot { font-weight: 700; color: var(--br); } .eta small { display: block; color: var(--mute); margin-top: 4px; }
.res .tot { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 700; color: var(--br); font-size: 1.2rem; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.app { color: #fff; border-radius: 12px; padding: 13px 8px; text-align: center; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.app.line { background: #06c755; } .app.whatsapp { background: #25d366; } .app.wechat { background: #07c160; } .app.telegram { background: #2aabee; } .app.messenger { background: #0866ff; }
.app small { display: block; font-weight: 400; font-size: .75rem; opacity: .9; }
.app.off, .app:disabled { opacity: .38; cursor: not-allowed; }
.code { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px dashed var(--gold); border-radius: 12px; padding: 10px 12px; }
.code b { font-family: ui-monospace, monospace; color: var(--br); }
.sheet { position: fixed; inset: 0; background: rgba(30,22,16,.45); display: none; align-items: flex-end; justify-content: center; z-index: 40; }
.sheet.open { display: flex; } .sheet .panel { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--br); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .9rem; display: none; z-index: 60; }
.banner { background: #e9f2fb; color: #1d3b57; font-size: .9rem; } .banner .wrap { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }

/* pay */
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; } .tabs3 button { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 4px; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; line-height: 1.35; color: var(--ink); }
.tabs3 button[aria-selected=true] { border-color: var(--br); background: var(--soft); color: var(--br); font-weight: 700; } .tabs3 small { display: block; color: var(--mute); font-weight: 400; font-size: .75rem; }
.opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; } .opt.best { border-color: #9fe870; background: #fbfff7; }
.opt .oh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; } .tag { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #9fe870; color: #163300; white-space: nowrap; } .tag.g { background: var(--gs); color: #7a5512; }
.amt { border: 1.5px dashed var(--gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; } .amt .ln { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; } .amt .ln.tot { border-top: 1.5px solid var(--br); margin-top: 4px; padding-top: 6px; font-weight: 700; color: var(--br); }
ol.how { padding-left: 20px; } ol.how li { margin: 6px 0; }
.legal section { margin: 0 0 14px; } .legal h2 { font-size: 1.1rem; }

/* prices: search every price row (prices.js) · the box stays hidden without JS, the full list shows */
[hidden] { display: none !important; }
.psearch { position: sticky; top: 0; z-index: 5; background: #fff; padding: 8px 0 10px; margin: 6px 0 4px; }
.psearch label { display: block; font-weight: 700; margin-bottom: 4px; }
.psearch input { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.psearch input:focus { outline: none; border-color: var(--br); }
.searching .qhide { display: none; }
h3.g { font-size: 1rem; margin: 16px 0 2px; color: var(--br); }
.xp { display: inline-block; font-size: .72rem; font-weight: 700; color: #8a5a00; background: #fff4d6; border: 1px solid #f0d58f; border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
/* the small "queue updated <day>" label (Fils 23 ต.ค. 69: "แปะป้ายเล็กๆ อัปเดท") · the Ministry queue rules box */
.upd { display: inline-block; font-size: .72rem; font-weight: 700; color: #2f6b3a; background: #eaf5ea; border: 1px solid #cfe5cf; border-radius: 999px; padding: 0 8px; white-space: nowrap; vertical-align: 2px; }
.qrules ul, .prep ul { margin: 6px 0 8px; padding-left: 1.2em; } .qrules li, .prep li { margin: 2px 0; } .qrules a { font-weight: 600; } .prep { margin: 10px 0; }

/* sample translation picture (review item ②, 23 ต.ค. 69) — a small page next to what it shows */
.sample { display: grid; gap: 14px; } .sample img { display: block; width: 100%; max-width: 300px; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #fff; }
.sample ul { margin: 0 0 8px; padding-left: 1.2em; } .sample li { margin: 4px 0; }
@media (min-width: 640px) { .sample { grid-template-columns: 240px 1fr; align-items: start; } }

/* /marriage/ (review item ③, 23 ต.ค. 69): plain sections with room between them */
.mpage > section:not(.ctaband) { padding: 20px 0 2px; } .mpage .card ul, .mpage section > ul, .mpage .note ul { margin: 6px 0 0; padding-left: 1.2em; } .mpage li { margin: 3px 0; }

/* section menu on long pages (price page) — like the back office (Fils 23 ต.ค. 69): ☰ drawer on phones · fixed column on wide screens */
.toc { position: fixed; z-index: 40; top: 0; bottom: 0; right: 0; width: min(300px, 84vw); overflow-y: auto; background: #fff; border-left: 1px solid var(--line); padding: 18px 14px 90px; transform: translateX(104%); transition: transform .2s ease; box-shadow: -4px 0 18px rgba(0, 0, 0, .14); }   /* 283a: ☰ sits at the right of the header, the menu slides in from the right */
.toc b { display: block; font-size: .8rem; color: var(--mute); margin: 0 0 8px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.toc ol ol a { font-size: .85rem; padding: 4px 8px; color: var(--mute); }
.toc a:hover { background: var(--soft); }
.toc a.on { background: var(--gs); color: var(--br); font-weight: 700; }
.tocm:checked ~ main .toc, .tocm:checked ~ .toc { transform: none; }
/* the checkbox behind ☰: off screen but not display:none (the label stays usable · Enter/Space in ui.js) */
.tocm { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* ☰ at the right of the header on every page (Fils 23 ต.ค. 69 + DESIGN review: phones had no site navigation · 12 Nov 26 item 283a: brand · 🌐 · ☰ only) */
.menubtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; border-radius: 10px; font-size: 1.45rem; line-height: 1; color: var(--br); cursor: pointer; user-select: none; flex: none; }
.menubtn:hover, .menubtn:focus-visible { background: var(--gs); outline: none; }
.toc .site, .toc .page { margin-bottom: 14px; }
.toc a.hl { background: var(--br); color: #fff; font-weight: 700; margin: 2px 0; }
.toc a.hl:hover { background: var(--ink); }
.toc a[aria-current] { font-weight: 700; }
.toc .legal { font-size: .8rem; color: var(--mute); margin: 18px 8px 0; line-height: 1.8; }
.toc .legal a { display: inline; padding: 0; color: var(--mute); text-decoration: underline; font-size: .8rem; }
/* price page: sub-items only under the section that is open (JS-only, so the no-JS menu shows everything) */
.acc .toc .page > ol > li:not(.open) > ol { display: none; }
/* closing call to action */
.ctaband { background: var(--soft); border-radius: 14px; margin: 26px 0 10px; padding: 18px 16px; text-align: center; }
.ctaband p { margin: 0 0 12px; font-weight: 700; color: var(--br); }
.ctaband .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
main > .ctaband { margin: 26px auto 10px; max-width: min(640px, calc(100% - 32px)); }
.tocshade { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .35); }
.tocm:checked ~ .tocshade { display: block; }
.tocmain [id] { scroll-margin-top: 170px; }
@media (min-width: 1000px) {
  .tocgrid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; max-width: calc(var(--max) + 260px); }
  .toc { position: sticky; top: 76px; right: auto; z-index: 1; transform: none; width: auto; border-left: 0; max-height: calc(100vh - 92px); padding: 20px 6px 20px 0; background: transparent; box-shadow: none; }
  .menubtn, .toc.solo, .tocshade, .tocm:checked ~ .tocshade { display: none; }
  .tocgrid .toc .site, .tocgrid .toc .legal { display: none; } /* the header nav + footer cover these on wide screens */
  .tocmain [id] { scroll-margin-top: 185px; }
}

/* one section open at a time on the price page (Fils 23 ต.ค. 69: "เวลาเลือกให้แสดงเฉพาะที่เลือก") — JS adds .acc · searching unfolds all */
body.acc:not(.searching) section.shut > :not(h2) { display: none; }
.acc section.fold > h2 { cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.acc section.fold > h2::after { content: '▾'; margin-left: auto; color: var(--mute); font-size: .75em; }
.acc:not(.searching) section.fold.shut > h2 { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acc:not(.searching) section.fold.shut > h2::after { content: '▸'; }

/* the home sections already sit in the menu column: no second gutter */
.tocmain .wrap { max-width: none; padding: 0; }

/* /visa/ + /visa/<cc>/ (task 33, 23 ต.ค. 69): one card per visa — what the official page says, its wording, the source + page date */
.vcard { margin: 12px 0; } .vcard h4 { margin: 12px 0 4px; font-size: .95rem; color: var(--br); } .vcard > p { color: var(--ink); font-size: .97rem; }
.vhead { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; justify-content: space-between; } .vhead b { margin: 0; }
.vtag { font-size: .78rem; line-height: 1.35; border-radius: 999px; padding: 3px 10px; background: #e7f3ea; color: var(--ok); }
.vtag.notStated { background: var(--warn); color: #7a4a06; }
.vmfa { margin: 10px 0 0 !important; font-size: .92rem; } .vmfa b { display: inline; color: var(--ok); } .vmfa.notStated b { color: var(--mute); } .vmfa.some b { color: #7a4a06; }
.vcard blockquote { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 8px; font-size: .92rem; color: var(--ink); }
.vsrc { margin: 10px 0 0 !important; overflow-wrap: anywhere; } .vsrc b { display: block; color: var(--br); margin: 0 0 2px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (min-width: 640px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcountry { text-decoration: none; display: block; color: inherit; } .vcountry b { margin-bottom: 4px; } .vcountry:hover { border-color: var(--gold); }
.vhelp { margin: 18px 0; } .vhelp .cta { margin-top: 10px; } .vlinks { line-height: 2; } .vlinks a { white-space: nowrap; }

/* home, design A "price first" (Fils "003 a" 1 Nov 69): a quick estimate in the hero, the sample with numbered pins right under it */
.heroq { display: grid; gap: 18px; } .heroq .hx p { margin: 0; } .heroq .hy .trust { margin-top: 0; }
@media (min-width: 900px) { .heroq { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "hx card" "hy card"; grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; } .heroq .hx { grid-area: hx; } .heroq .qcard { grid-area: card; } .heroq .hy { grid-area: hy; } }
.qcard { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(47,38,32,.10); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; } .qhead h2 { margin: 0; } .qhead span { font-size: .8rem; color: var(--mute); }
.qf { display: grid; gap: 4px; margin: 0; min-width: 0; } .qf > span, .qf legend { font-weight: 600; font-size: .9rem; }
fieldset.qf { border: 0; padding: 0; } fieldset.qf legend { padding: 0; margin-bottom: 6px; }
.qdoc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.qqty { display: flex; align-items: center; gap: 6px; } .qqty input { width: 64px; } .qqty span { font-size: .85rem; color: var(--mute); font-weight: 400; }
.qpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qcard .seg.two { grid-template-columns: 1fr 1fr; } .qcard .seg label { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.qres { margin: 0; } .qres .tot > span:last-child { font-size: 1.5rem; } .qres .tot small { font-size: .85rem; }
.qcard .note { margin: 0; }
.qmore { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; text-align: center; }
.qcard p.small { margin: 0; text-align: center; }
.proof { display: grid; gap: 16px; }
.proof .pic { position: relative; display: block; max-width: 360px; }
.proof img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); background: #fff; }
.proof .pin, .pins li::before { width: 28px; height: 28px; border-radius: 50%; background: #c9a46a; color: var(--ink); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.proof .pin { position: absolute; margin: -14px 0 0 -14px; border: 2px solid var(--br); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pins { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: p; display: grid; gap: 10px; }
.pins li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; } .pins li::before { content: counter(p); }
@media (min-width: 640px) { .proof { grid-template-columns: 300px 1fr; align-items: start; } }
.h2row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; } .h2row a { font-weight: 700; font-size: .9rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: .85rem; color: var(--mute); line-height: 1.35; min-height: 2.7em; } .tile b { font-family: var(--head); font-weight: 500; font-size: 1.7rem; color: var(--br); line-height: 1.2; } .tile small { color: var(--mute); font-size: .8rem; }
.cparts { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: c; border-top: 1px solid var(--line); }
.cparts li { counter-increment: c; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cparts li::before { content: counter(c); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--br); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cparts .ch { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .cparts .ch b { color: var(--br); } .cparts .camt { white-space: nowrap; font-size: 1.1rem; } .cparts .camt small { font-weight: 400; font-size: .75rem; color: var(--mute); }
.cparts p { margin: 2px 0 0; font-size: .92rem; color: var(--mute); }

/* 12 Nov 26 · item 283a: a phone header = brand · 🌐 · ☰ (the chat button lives in the menu there) · item 282: the language bar's buttons are thumb targets */
.toc .chatlink { display: block; width: 100%; text-align: left; padding: 10px 8px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.toc .chatlink:hover { background: var(--soft); }
@media (max-width: 819px) { .top .chatpill { display: none; } }
.banner .pill { min-height: 44px; display: inline-flex; align-items: center; }
.banner[data-bar="en"] .wrap { justify-content: space-between; } .banner[data-bar="en"] .wrap > span { flex: 1 1 auto; }
.banner button.pill[aria-label] { min-width: 44px; justify-content: center; }
