/* =====================================================================
   Public job portal — boards 03 (search), 05 (job detail), 08 (landing), 09 (job alerts)
   + companies, company page, 404 and legal pages in the same visual language.
   Uses the tokens of style.css.
   ===================================================================== */

/* ---------- shared ---------- */
.logo-tile--md { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.logo-tile--jd { width: 64px; height: 64px; border-radius: 14px; font-size: 21px; }
.empty-state { background: #fff; border: 1px dashed var(--input); border-radius: 14px; padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state__t { font-size: 18px; font-weight: 600; }
.empty-state__s { font-size: 15px; color: var(--muted); max-width: 520px; }
.empty-state__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.eyebrow-s { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.verified { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent-dark); }
.prose { font-size: 16px; line-height: 1.7; color: var(--body); display: flex; flex-direction: column; gap: 12px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.prose[hidden] { display: none; }
.save-form { margin: 0; display: inline-flex; }
.save-btn { cursor: pointer; }
.save-btn[aria-pressed="true"] { border-color: #BFD3D5; background: var(--tint); color: var(--accent-dark); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- search band + bar (board 03) ---------- */
.sband { background: var(--ink); }
.sband__in { padding-top: 22px; padding-bottom: 22px; }
.sbar { background: #fff; border-radius: 14px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sbar__icon { margin-left: 12px; flex: 0 0 auto; }
.sbar input[type="search"] { flex: 1 1 320px; min-width: 0; border: 0; outline: none; font-size: 17px; color: var(--ink); padding: 12px 6px; background: transparent; }
.sbar input[type="search"]::-webkit-search-cancel-button { display: none; }
.sbar__clear { width: 40px; height: 40px; border-radius: 999px; background: var(--chip); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; flex: 0 0 auto; }
.sbar__clear:hover { color: var(--ink); background: var(--sand); }
.sbar__btn { border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; padding: 0 28px; min-height: 50px; cursor: pointer; }
.sbar__btn:hover { background: var(--accent-dark); }

/* ---------- results layout ---------- */
.sres { padding-top: 28px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
/* board sizes are content-box (260/300 + 2×22 padding + 2×1 border) */
.filters { flex: 1 1 306px; max-width: 346px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.filters__form { display: flex; flex-direction: column; gap: 22px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filters__h { font-size: 18px; font-weight: 600; }
.filters__h span { font-weight: 400; color: var(--hint); font-size: 14px; }
.filters__clear { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.fset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fset__legend { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .4px; margin-bottom: 8px; padding: 0; text-transform: uppercase; }
.fopt { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 34px; }
.fopt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.fopt__l { flex: 1 1 auto; }
.fopt__n { font-size: 13px; color: var(--hint); }
.fsel { font-size: 15px; color: var(--ink); border: 1px solid var(--input); border-radius: 9px; padding: 10px 12px; background: #fff; width: 100%; cursor: pointer; }
.fsel--sort { width: auto; padding: 9px 12px; }
.filters-toggle { display: none; }
.sres__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sres__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.sres__h1 { font-family: var(--head); font-size: 30px; line-height: 1.25; }
.sres__sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.sres__sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.sres__sort label { font-size: 14px; color: var(--muted); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #BFD3D5; background: var(--tint); color: var(--accent-dark); font-size: 14px; font-weight: 500; padding: 0 12px; min-height: 36px; border-radius: 999px; text-decoration: none; }
.fchip span { font-size: 16px; }
.fchip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- result card (board 03) ---------- */
.rcard { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.rcard--urgent { border: 2px solid var(--orange); padding: 19px; }
.rcard .logo-tile--lg { font-size: 17px; }
.rcard__main { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rcard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rcard__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.rcard__title a { color: var(--ink); text-decoration: none; }
.rcard__title a:hover { color: var(--accent); }
.rcard__badge { padding: 3px 9px; }
.rcard__alt { font-size: 14px; color: var(--muted); }
.rcard__meta { font-size: 14.5px; color: var(--text2); }
.rcard__tags { margin-top: 4px; }
.rcard__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 210px; margin-left: auto; } /* stays right-aligned when it wraps under the text */
.rcard__salary { font-size: 16.5px; font-weight: 600; text-align: right; }
.rcard__posted { font-size: 13px; color: var(--hint); }
.rcard__btns { display: flex; gap: 8px; align-items: center; }
.rcard__btns .icon-btn { width: 40px; height: 40px; border-radius: 9px; }
.rcard__btn { border-radius: 9px; padding: 9px 14px; min-height: 40px; }
.rcard__btn--apply { padding: 10px 18px; }

/* ---------- landing hero (board 08) ---------- */
.land-hero { background: var(--ink); color: var(--bg); }
.land-hero__in { padding-top: 22px; padding-bottom: 52px; }
.land-hero--sm .land-hero__in { padding-bottom: 40px; }
.land-hero__row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 30px; }
.land-hero__text { flex: 1 1 560px; min-width: 0; }
.land-hero__h1 { font-family: 'Bricolage Grotesque', var(--font); font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -1.4px; }
.land-hero__h1--sm { font-size: 44px; letter-spacing: -1px; }
html[lang="th"] .land-hero__h1 { font-family: var(--font); line-height: 1.25; letter-spacing: 0; font-size: 48px; }
.land-hero__sub { margin-top: 12px; font-size: 20px; color: var(--on-dark); }
.land-search { flex: 0 1 436px; /* board: 420 content + 2×8 padding */ background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; }
.land-search input, .land-search select { flex: 1 1 auto; min-width: 0; border: 0; outline: none; font-size: 16px; color: var(--ink); padding: 0 12px; background: transparent; }
.land-search .btn { min-height: 48px; padding: 0 20px; }
.co-search { flex-basis: 520px; }
.co-search select { flex: 0 1 170px; border-left: 1px solid var(--border); cursor: pointer; }

/* ---------- landing body ---------- */
.land-body { padding-top: 36px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.land-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.land-intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--body); }
.narrow { display: flex; flex-direction: column; gap: 14px; }
.narrow__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.narrow__label { font-size: 14px; font-weight: 600; color: var(--muted); width: 110px; }
.pill-link { text-decoration: none; background: #fff; border: 1px solid var(--outline); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.pill-link:hover { border-color: var(--ink); color: var(--ink); }
.pill-link__n { color: var(--hint); font-size: 12.5px; }
.pill-link.is-on { background: var(--tint); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.land-list { display: flex; flex-direction: column; gap: 12px; }
.land-list__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.land-h2 { font-family: var(--head); font-size: 28px; line-height: 1.25; }
.land-foreign { margin: 0; display: flex; align-items: center; gap: 10px; }
.land-foreign .check { min-height: 44px; align-items: center; }
.land-foreign .check input { width: 18px; height: 18px; margin: 0; }
.land-filtered { font-size: 14px; color: var(--muted); }
.lrow { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.lrow--urgent { border: 2px solid var(--orange); padding: 17px 19px; }
.lrow__main { flex: 1 1 320px; min-width: 0; }
.lrow__title { font-size: 17px; font-weight: 600; }
.lrow__title a { color: var(--ink); text-decoration: none; }
.lrow__title a:hover { color: var(--accent); }
.lrow__meta { margin-top: 3px; font-size: 14px; color: var(--muted); }
.lrow__tags { margin-top: 8px; }
.lrow__tags .tag { padding: 3px 9px; }
.lrow__side { flex: 0 0 auto; text-align: right; min-width: 200px; }
.lrow__salary { font-size: 16px; font-weight: 600; }
.lrow__side .rcard__posted { margin-top: 2px; }
.lrow__apply { flex: 0 0 auto; border-radius: 9px; padding: 11px 20px; }
.land-seeall { align-self: center; margin-top: 4px; font-size: 15px; border-radius: 10px; padding: 13px 24px; min-height: 48px; }
.land-faq { display: flex; flex-direction: column; gap: 12px; }
.land-faq .faq { overflow: hidden; }
.land-aside { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.side-card__h { font-size: 17px; font-weight: 600; }
.side-card__p { font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.side-card .btn--block { padding: 12px 0; }
.hiring { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.hiring__item { text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-height: 44px; }
.hiring__item:hover { border-color: var(--accent); color: var(--ink); }
.hiring__name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.hiring__meta { font-size: 12.5px; color: var(--hint); }
.related a { text-decoration: none; font-size: 15px; padding: 4px 0; }
.related .side-card__h { margin-bottom: 4px; }

/* popular searches band (board 08 footer) sits right above the main footer */
.ftr.ftr--popular { margin-top: 0; border-bottom: 1px solid #284650; }
.ftr--popular .wrap > h2 { font-size: 14px; font-weight: 600; color: var(--bg); margin-bottom: 12px; font-family: var(--font); }
.ftr--popular nav a:hover { color: #fff; }
.ftr--popular + .ftr { margin-top: 0; }

/* ---------- job detail (board 05) ---------- */
.jd-crumb { padding-top: 20px; }
.jd { padding-top: 18px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.jd__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.jd__aside { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.jd-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.jd-head__id { display: flex; gap: 16px; align-items: flex-start; }
.jd-head__text { flex: 1 1 auto; min-width: 0; }
.jd-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jd-head__row .badge { font-size: 13px; padding: 4px 10px; }
.jd-h1 { font-family: var(--head); font-size: 34px; line-height: 1.2; letter-spacing: -.5px; overflow-wrap: anywhere; }
html[lang="th"] .jd-h1 { font-family: var(--font); letter-spacing: 0; }
.jd-head__alt { margin-top: 6px; font-size: 17px; color: var(--muted); }
.jd-head__co { margin-top: 10px; font-size: 16px; color: var(--text2); }
.jd-head__co a { font-weight: 600; text-decoration: none; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.facts__c { background: var(--soft); padding: 14px 16px; }
.facts dt { font-size: 12.5px; color: var(--hint); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.jd-flags .tag { font-size: 13px; padding: 5px 11px; }
.jd-desc { gap: 22px; }
.jd-desc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.jd-h2 { font-size: 21px; font-weight: 600; }
.jd-h2b { font-family: var(--head); font-size: 26px; line-height: 1.25; }
.jd-h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.seg { display: flex; border: 1px solid var(--outline); border-radius: 999px; padding: 3px; }
.seg a { border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: 14px; text-decoration: none; min-height: 38px; display: inline-flex; align-items: center; }
.seg a[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.jd-note { margin-top: -8px; font-size: 13px; color: var(--note); background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 8px 12px; align-self: flex-start; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.benefits li { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.benefits svg { flex: 0 0 auto; }
.jd-loc { gap: 14px; }
.map-ph { height: 240px; border-radius: 12px; background: #DCE8E6; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.map-ph__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-ph__pin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-ph__label { background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.15); color: var(--ink); text-decoration: none; }
a.map-ph__label:hover { color: var(--accent); }
.jd-loc__cap { font-size: 15px; color: var(--text2); }
.jd-similar { display: flex; flex-direction: column; gap: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mini-job { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.mini-job:hover { border-color: var(--accent); color: var(--ink); }
.mini-job__t { font-size: 16px; font-weight: 600; }
.mini-job__m { font-size: 14px; color: var(--muted); }
.mini-job__s { font-size: 15px; font-weight: 600; }
.jd-apply, .jd-emp { padding: 22px; gap: 12px; }
.jd-apply__btn { font-size: 17px; padding: 15px 0; border-radius: 12px; min-height: 54px; }
.jd-apply__note { text-align: center; font-size: 13px; color: var(--hint); }
.jd-apply__row { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-apply__row > * { flex: 1 1 0; min-width: 120px; }
.jd-gate-btn, .save-btn--block { min-height: 46px; border-radius: 10px; font-size: 15px; width: 100%; padding: 1px 6px; text-align: center; }
.save-form--block { display: flex; }
.save-btn--block { border: 1px solid var(--outline); background: #fff; color: var(--ink); }
.jd-gate { display: flex; align-items: center; justify-content: center; border: 1px solid #BFD3D5; background: var(--tint); color: var(--accent-dark); text-decoration: none; font-size: 15px; font-weight: 600; min-height: 44px; border-radius: 10px; padding: 0 10px; text-align: center; }
.jd-gate[hidden] { display: none; }
.jd-contacts { display: flex; flex-direction: column; gap: 8px; flex-basis: 100% !important; }
.jd-contact { justify-content: flex-start; font-size: 14.5px; overflow-wrap: anywhere; }
.jd-apply__meta { border-top: 1px solid var(--divider); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.share__l { color: var(--muted); }
.share__a { text-decoration: none; border: 1px solid var(--outline); border-radius: 8px; padding: 7px 10px; color: var(--ink); background: #fff; font-size: 14px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; }
.share__a:hover { border-color: var(--ink); color: var(--ink); }
.jd-emp__id { display: flex; gap: 12px; align-items: center; }
.jd-emp__name { font-size: 16px; font-weight: 600; }
.jd-emp__meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.jd-emp__about { font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.jd-emp__all { font-size: 15px; font-weight: 600; text-decoration: none; }
.safe { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 16px; padding: 18px 20px; font-size: 14px; line-height: 1.55; color: #5A4718; }
.safe__h { margin-bottom: 6px; font-weight: 600; }
.safe a { color: var(--note); font-weight: 600; }
.safe__form { margin-top: 14px; gap: 12px; }
.safe__form .field > label { color: #5A4718; }
.jd-gone { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.jd-gone__card { max-width: 760px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.jd-gone__card .empty-state__btns { justify-content: flex-start; }
.eyebrow--muted { margin: 0; color: var(--muted); font-size: 13px; }
.jd-gone__h1 { font-family: var(--head); font-size: 34px; line-height: 1.2; }
.jd-gone__p { font-size: 16px; color: var(--text2); line-height: 1.6; }

/* ---------- companies ---------- */
.co-body { padding-top: 28px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.co-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.co-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.co-card:hover { border-color: var(--accent); color: var(--ink); }
.co-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-card__name { font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.co-card__alt { font-size: 14px; color: var(--muted); }
.co-card__meta { font-size: 14px; color: var(--text2); }
.co-card__jobs { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.co-card__jobs.is-zero { color: var(--hint); font-weight: 400; }
.cp-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.cp-head__text { flex: 1 1 300px; min-width: 0; }
.cp-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 600; }
.cp-links a { text-decoration: none; }
.cp-jobs { display: flex; flex-direction: column; gap: 16px; }
.cp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cp-photos figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #C9DDD9; aspect-ratio: 4 / 3; }
.cp-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-photos figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.85); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; }
.cp-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-facts > div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--divider); padding-bottom: 10px; }
.cp-facts dt { font-size: 12.5px; color: var(--hint); }
.cp-facts dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- job alerts (board 09) ---------- */
.al { padding-top: 40px; padding-bottom: 72px; }
.al__h1 { font-family: var(--head); font-size: 44px; line-height: 1.1; letter-spacing: -1px; }
html[lang="th"] .al__h1 { font-family: var(--font); letter-spacing: 0; line-height: 1.3; }
.al__sub { margin-top: 10px; font-size: 18px; color: var(--text2); }
.al__sub .badge { vertical-align: middle; }
.al-grid { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.al-form { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.al-set { margin: 0; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.al-set > legend { float: left; width: 100%; padding: 0; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.al-set > legend span { font-weight: 400; color: var(--hint); font-size: 14px; }
.al-set > legend + * { clear: both; }
.achips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { position: relative; }
.achip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.achip span { display: inline-flex; align-items: center; border: 1px solid var(--outline); background: #fff; color: var(--ink); font-size: 14.5px; padding: 0 16px; min-height: 42px; border-radius: 999px; cursor: pointer; }
.achip input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.achip input:focus-visible + span { outline: 3px solid rgba(11,110,121,.4); outline-offset: 2px; }
.al-sub { display: flex; flex-direction: column; gap: 8px; }
.al-sub__l { font-size: 14px; font-weight: 600; }
.al-row { display: flex; flex-wrap: wrap; gap: 20px; }
.al-row__sal { flex: 1 1 220px; }
.al-row__sal .select { padding: 11px 12px; font-size: 15px; }
.al-row__flags { flex: 2 1 320px; }
.al-consent { font-size: 14px; color: var(--text2); }
.al-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.al-submit .btn--xl { padding: 0 32px; }
.al-submit .hint { font-size: 14px; }
.al-sum { flex: 1 1 348px; max-width: 428px; /* board: 300/380 content-box + 2×24 padding */ background: var(--ink); color: var(--bg); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.al-sum__eyebrow { font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: .4px; }
.al-sum__list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.al-sum__list > div { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid #284650; padding-bottom: 10px; }
.al-sum__list dt { font-size: 12.5px; color: var(--on-dark2); }
.al-sum__list dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.al-sum__note { font-size: 14px; color: var(--on-dark); line-height: 1.55; }
.al-sum__actions { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #284650; padding-top: 14px; }
.al-sum__actions form { margin: 0; }
.al-sum__unsub { color: var(--on-dark-link); font-size: 14px; }
.al-manage-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.al-status { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; max-width: 900px; }
.al-status form { margin: 0; }
.done-card { margin-top: 32px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 720px; }
.done-card__h { font-family: var(--head); font-size: 30px; line-height: 1.25; }
.done-card__p { font-size: 16px; color: var(--text2); line-height: 1.6; overflow-wrap: anywhere; }
.done-card .empty-state__btns { justify-content: flex-start; }
.done-card form { margin: 6px 0 0; }
.sum-list { margin: 0; width: 100%; background: var(--soft); border: 1px solid var(--divider); border-radius: 12px; }
.sum-list > div { display: flex; gap: 12px; padding: 10px 14px; }
.sum-list > div + div { border-top: 1px solid var(--divider); }
.sum-list dt { width: 110px; flex: 0 0 auto; color: var(--hint); font-size: 14px; }
.sum-list dd { margin: 0; font-weight: 600; font-size: 15px; }

/* ---------- 404 ---------- */
.nf { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.nf__card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.nf__code { font-family: 'Bricolage Grotesque', var(--font); font-size: 72px; line-height: 1; font-weight: 700; color: var(--orange); }
.nf__h1 { font-family: var(--head); font-size: 34px; }
.nf__p { font-size: 17px; color: var(--text2); }
.nf__alt { font-size: 14px; color: var(--hint); }
.nf__search { width: 100%; max-width: 560px; border: 1px solid var(--input); margin: 8px 0; flex: 0 1 auto; }

/* ---------- legal pages ---------- */
.legal-hero .page-h1 { margin-top: 22px; }
html[lang="th"] .page-h1 { letter-spacing: 0; line-height: 1.3; }
.legal-wrap { max-width: 920px; padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.legal { gap: 0; }
.legal h2 { font-size: 21px; font-weight: 600; margin-top: 18px; scroll-margin-top: 16px; }
.legal h3 { font-size: 16.5px; font-weight: 600; margin-top: 4px; }
.legal__intro { font-size: 17px; }
.legal-toc { background: var(--soft); border: 1px solid var(--divider); border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.legal-toc__h { font-weight: 600; margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; }
.owner { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; background: var(--soft); border: 1px solid var(--divider); border-radius: 12px; padding: 16px 20px; }
.legal__see { margin-top: 12px; font-size: 14px; color: var(--muted); }
.dd-status { display: flex; flex-direction: column; gap: 10px; }
.sum-list--light { background: #fff; }
.dd-form { margin-top: 4px; }
.prose .notice { font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .land-hero__h1 { font-size: 44px; }
  .al-sum { position: static; max-width: none; }
  .jd__aside, .land-aside { max-width: none; }
}
@media (max-width: 860px) {
  .filters-toggle { display: inline-flex; width: 100%; }
  .filters { max-width: none; flex-basis: 100%; }
  .js .filters:not(.is-open) { display: none; }
  .filters { order: 2; }
  .filters-toggle { order: 1; }
  .sres__main { order: 3; }
}
@media (max-width: 640px) {
  .sband__in { padding-top: 14px; padding-bottom: 14px; }
  .sbar input[type="search"] { flex-basis: 180px; font-size: 16px; }
  .sbar__btn { width: 100%; }
  .sres { padding-top: 18px; gap: 16px; }
  .sres__h1 { font-size: 24px; }
  .rcard { padding: 16px; gap: 12px 14px; }
  .rcard--urgent { padding: 15px; }
  .rcard__side { min-width: 0; width: 100%; align-items: stretch; }
  .rcard__salary { text-align: left; }
  .rcard__btns { width: 100%; }
  .rcard__btns .rcard__btn { flex: 1 1 auto; }
  .land-hero__in { padding-bottom: 36px; }
  .land-hero__row { margin-top: 20px; gap: 20px; }
  .land-hero__h1, .land-hero__h1--sm { font-size: 36px; letter-spacing: -.8px; }
  html[lang="th"] .land-hero__h1 { font-size: 32px; }
  .land-hero__sub { font-size: 17px; }
  .land-search { flex-basis: 100%; }
  .co-search { flex-wrap: wrap; }
  .co-search input { flex-basis: 100%; min-height: 44px; }
  .co-search select { border-left: 0; border-top: 1px solid var(--border); min-height: 44px; flex: 1 1 auto; }
  .land-body { padding-top: 24px; }
  .narrow__label { width: 100%; }
  .land-h2 { font-size: 23px; }
  .lrow__side { min-width: 0; text-align: left; flex: 1 1 100%; }
  .lrow__apply { width: 100%; }
  .hiring { grid-template-columns: 1fr; }
  .jd-card { padding: 20px; }
  .jd-h1 { font-size: 26px; }
  .jd-head__id .logo-tile--jd { width: 52px; height: 52px; font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: 1fr; }
  .al { padding-top: 24px; }
  .al__h1 { font-size: 32px; }
  .al__sub { font-size: 16px; }
  .al-set { padding: 18px; }
  .al-submit .btn--xl { width: 100%; }
  .done-card { padding: 24px; }
  .done-card__h { font-size: 24px; }
  .empty-state { padding: 28px 18px; }
  .nf__card { padding: 24px; }
  .nf__code { font-size: 56px; }
  .nf__h1 { font-size: 26px; }
}

/* touch targets on phones (design QA) */
@media (max-width: 640px), (pointer: coarse) {
  .seg a, .share__a, .pill-link, .fchip, .achip span, .rcard__btn, .fopt, .fsel { min-height: 44px; }
  .rcard__btns .icon-btn { width: 44px; height: 44px; }
  .related a, .jd-emp__all, .map-ph__label { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr--popular nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr--popular nav { gap: 0 22px; }
}
