/* ===== หน้าสาธารณะ ICU บางพลี (ฉบับใหม่) ===== */
body.pub {
  --ink: #12313C; --paper: #F2F6F7; --surface: #FFFFFF; --brand: #0B4F6C; --brand-2: #0E6A8C;
  --open: #1F8A6A; --open-bg: #E3F4EE; --next: #B87A12; --next-bg: #FBF1DD; --line: #D6E2E6; --mute: #56707A;
  --display: "Bai Jamjuree", "IBM Plex Sans Thai Looped", sans-serif;
  --text-font: "IBM Plex Sans Thai Looped", "Sarabun", sans-serif;
  background: var(--paper); color: var(--ink); font-family: var(--text-font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.pub a { color: var(--brand); }
body.pub a:hover { color: var(--brand-2); }
body.pub :focus-visible { outline: 3px solid #1D8FC0; outline-offset: 2px; border-radius: 6px; }
body.pub h1, body.pub h2, body.pub h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.005em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- หัวเว็บ ---------- */
body.pub header.site-header { position: sticky; top: 0; z-index: 50; display: block; padding: 0; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.pub-top { display: flex; align-items: center; gap: 16px; min-height: 68px; }
body.pub .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
body.pub .brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; }
body.pub .brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
body.pub .brand-text strong { font-family: var(--display); font-size: 17px; font-weight: 700; }
body.pub .brand-text span { font-size: 13px; color: var(--mute); }
body.pub nav.site-nav { display: flex; gap: 2px; flex-wrap: nowrap; }
body.pub nav.site-nav a { position: relative; color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
body.pub nav.site-nav a:hover { background: #EAF2F4; color: var(--ink); }
body.pub nav.site-nav a.active { color: var(--brand); font-weight: 700; }
body.pub nav.site-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 3px; border-radius: 2px; background: var(--brand); }
.pub-act { display: flex; align-items: center; gap: 8px; }
.pub-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 12px; background: var(--open-bg); color: var(--open) !important; white-space: nowrap; }
.pub-call svg { flex: none; }
body.pub #nav-login-btn { font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
body.pub #nav-login-btn:hover { border-color: var(--brand); color: var(--brand); }
body.pub .hdr-bell { background: #EAF2F4; color: var(--brand); }
.pub-nav-row { display: none; }

@media (max-width: 1240px) {
  body.pub .pub-top nav.site-nav { display: none; }
  .pub-nav-row { display: block; border-top: 1px solid var(--line); }
  .pub-nav-row nav.site-nav { overflow-x: auto; scrollbar-width: none; padding: 4px 16px; margin: 0 -24px; scroll-snap-type: x proximity; }
  .pub-nav-row nav.site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .pub-nav-row nav.site-nav { margin: 0 -16px; }
  .pub-top { min-height: 60px; gap: 10px; }
  body.pub .brand-mark { width: 38px; height: 38px; }
  body.pub .brand-text strong { font-size: 15px; }
  body.pub .brand-text span { font-size: 12px; }
  .pub-call .t { display: none; }
  .pub-call { padding: 9px 11px; }
  body.pub #nav-login-btn { padding: 8px 10px; font-size: 13px; }
}

/* ---------- ปุ่ม ---------- */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; padding: 13px 20px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; }
.pbtn.solid { background: var(--brand); color: #fff !important; }
.pbtn.solid:hover { background: var(--brand-2); }
.pbtn.ghost { background: transparent; color: var(--brand) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.pbtn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.pbtn.go { background: var(--open); color: #fff !important; }

/* ---------- ส่วนบนของหน้า ---------- */
.p-hero { padding: 56px 0 40px; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.p-hero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.22; font-weight: 700; margin: 0 0 18px; }
.p-hero .lede { font-size: 18px; color: var(--mute); max-width: 34em; margin: 0 0 26px; }
.p-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.p-head { padding: 44px 0 8px; }
.p-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.25; margin: 0 0 10px; font-weight: 700; }
.p-head p { color: var(--mute); margin: 0; max-width: 40em; font-size: 17px; }
@media (max-width: 900px) { .p-hero-grid { grid-template-columns: 1fr; gap: 28px; } .p-hero { padding: 32px 0 24px; } }

/* ---------- กระดานเวลาเยี่ยม (จุดเด่น) ---------- */
.vboard { background: var(--surface); border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(11,79,108,.35); border: 1px solid var(--line); }
.vb-label { font-size: 14px; color: var(--mute); margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; }
.vb-label time { font-family: var(--display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.vb-status { font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.2; margin: 0; display: flex; align-items: center; gap: 12px; }
.vb-status .dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }
.vboard.is-open .vb-status { color: var(--open); }
.vboard.is-open .vb-status .dot { animation: vbPulse 2.2s ease-out infinite; }
.vboard.is-next .vb-status { color: var(--next); }
.vboard.is-closed .vb-status { color: var(--mute); }
@keyframes vbPulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,106,.45); } 70% { box-shadow: 0 0 0 12px rgba(31,138,106,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,106,0); } }
.vb-sub { margin: 6px 0 0; font-size: 17px; color: var(--ink); }
.vb-sub b { font-family: var(--display); }
.vb-strip { position: relative; height: 46px; margin: 22px 0 6px; border-radius: 12px; background: repeating-linear-gradient(90deg, #EEF4F6 0 calc(100%/24 - 1px), #E2EBEE calc(100%/24 - 1px) calc(100%/24)); overflow: hidden; }
.vb-win { position: absolute; top: 0; bottom: 0; background: var(--open-bg); border-left: 2px solid var(--open); border-right: 2px solid var(--open); }
.vb-win span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--open); white-space: nowrap; }
.vb-now { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; transition: left .6s ease; }
.vb-now::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ink); }
.vb-ticks { display: flex; justify-content: space-between; font-family: var(--display); font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.vb-raw { margin: 14px 0 0; font-size: 15px; color: var(--mute); }
.vb-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--next-bg); color: #6E4A08; font-size: 14.5px; }
.vb-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.vb-actions .pbtn { flex: 1 1 170px; }
@media (prefers-reduced-motion: reduce) { .vboard.is-open .vb-status .dot { animation: none; } .vb-now { transition: none; } }

/* ---------- ส่วนต่าง ๆ ---------- */
.p-sec { padding: 44px 0; border-top: 1px solid var(--line); }
.p-sec > .wrap > h2, .p-sec h2.sec { font-size: 26px; margin: 0 0 6px; font-weight: 700; }
.sec-lead { color: var(--mute); margin: 0 0 22px; max-width: 42em; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { margin: 0 !important; }
.sec-more { font-weight: 600; font-size: 15px; }

.photo-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.photo { border-radius: 22px; overflow: hidden; background: #DCE8EC; min-height: 300px; position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 15px; }
.vm dt { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; color: var(--brand); }
.vm dd { margin: 0 0 24px; color: var(--ink); max-width: 32em; }
@media (max-width: 860px) { .photo-split { grid-template-columns: 1fr; } .photo { min-height: 220px; } }

.prep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.prep > div { padding: 22px 22px 24px; }
.prep > div + div { border-left: 1px solid var(--line); }
.prep h3 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.prep h3 svg { color: var(--brand); flex: none; }
.prep p { margin: 0; color: var(--mute); white-space: pre-line; font-size: 16px; }
@media (max-width: 760px) { .prep { grid-template-columns: 1fr; } .prep > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.team-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.faces { display: flex; }
.faces span { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--paper); margin-left: -12px; background: #CFE0E6; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 17px; }
.faces span:first-child { margin-left: 0; }
.faces img { width: 100%; height: 100%; object-fit: cover; }
.team-strip p { margin: 0; color: var(--mute); }
.team-strip p b { color: var(--ink); font-family: var(--display); font-size: 22px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding: 14px 4px; color: var(--ink); align-items: baseline; }
.rows a:hover { background: #fff; color: var(--ink); }
.rows .when { font-family: var(--display); font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rows b { display: block; font-weight: 600; }
.rows small { display: block; color: var(--mute); font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty { color: var(--mute); padding: 22px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; font-size: 15px; }

/* ---------- บุคลากร ---------- */
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 0 4px; position: sticky; top: 68px; z-index: 5; background: var(--paper); }
.jump a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; }
.jump a b { font-family: var(--display); color: var(--brand); margin-left: 4px; }
@media (max-width: 1240px) { .jump { top: 110px; } }
@media (max-width: 560px) { .jump { top: 102px; } }
.pgroup { padding: 30px 0 6px; scroll-margin-top: 140px; }
.pgroup h2 { font-size: 24px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; }
.pgroup h2 small { font-family: var(--text-font); font-size: 15px; color: var(--mute); font-weight: 400; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; }
.person { text-align: center; }
.person .ph { width: 100%; aspect-ratio: 1; border-radius: 22px; background: #DCE8EC; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; font-weight: 700; color: #8FB0BC; margin-bottom: 10px; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; }
.person small { display: block; color: var(--mute); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.people.lead { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.people.lead .person { text-align: left; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.people.lead .person .ph { margin: 0; border-radius: 16px; font-size: 30px; }
.people.lead .person b { font-family: var(--display); font-size: 18px; }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }

/* ---------- ผลงาน: ไทม์ไลน์ตามปี ---------- */
.tl { position: relative; margin-top: 10px; }
.tl-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl-year > h2 { font-size: 34px; margin: 0; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; position: sticky; top: 90px; align-self: start; }
.tl-items { display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--ink); }
.tl-item:hover { border-color: var(--brand); color: var(--ink); }
.tl-item .kind { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.tl-item .kind.award { background: #FBF1DD; color: #7C5208; }
.tl-item .kind.research { background: #E4EEF8; color: #234E7A; }
.tl-item b { display: block; font-weight: 600; font-size: 17px; line-height: 1.5; }
.tl-item small { display: block; color: var(--mute); font-size: 15px; margin-top: 2px; }
.tl-item .chev { color: var(--mute); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.filters button { font: inherit; font-size: 15px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .tl-year { grid-template-columns: 1fr; gap: 10px; } .tl-year > h2 { position: static; font-size: 28px; } }

/* ---------- บทความ ---------- */
.article { max-width: 760px; }
.article .back { display: inline-block; margin: 28px 0 0; font-weight: 600; font-size: 15px; }
.article .meta { color: var(--mute); font-size: 15px; margin: 18px 0 6px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; margin: 0 0 14px; }
.article .lede { font-size: 19px; color: var(--mute); margin: 0 0 24px; }
.article .body { font-size: 17.5px; line-height: 1.95; white-space: pre-line; }
.article .aside { margin-top: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.article .aside h3 { font-size: 17px; margin: 0 0 4px; }

/* ---------- ข่าว ---------- */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 26px; }
.news-feature .img { min-height: 280px; height: 100%; background: #DCE8EC; position: relative; }
.news-feature .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-feature .tx { padding: 26px 28px 28px 0; }
.news-feature h2 { font-size: 28px; line-height: 1.35; margin: 6px 0 12px; }
.news-feature .tx p, .news-item p { color: var(--mute); margin: 0; white-space: pre-line; }
.news-feature .when, .news-item .when { font-family: var(--display); font-size: 15px; color: var(--mute); }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; margin-top: 34px; }
.news-item .img { aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; background: #DCE8EC; margin-bottom: 12px; }
.news-item .img img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 20px; line-height: 1.4; margin: 4px 0 8px; }
.news-item .more, .news-feature .more { font: inherit; font-weight: 600; font-size: 15px; color: var(--brand); background: none; border: 0; padding: 6px 0 0; cursor: pointer; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } .news-feature .img { min-height: 200px; } .news-feature .tx { padding: 0 20px 22px; } }

/* ---------- FAQ ---------- */
.faq-search { position: relative; max-width: 560px; margin: 24px 0 18px; }
.faq-search input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px 14px 46px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; }
.faq-search input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(11,79,108,.12); }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; padding: 18px 4px; font-weight: 600; font-size: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; background: #E6EFF2; position: relative; transition: transform .25s ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--brand); border-radius: 1px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 44px 20px 4px; color: var(--ink); white-space: pre-line; }
.faq mark { background: #FFF0B8; color: inherit; border-radius: 3px; }
.faq-cta { margin-top: 30px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); max-width: 780px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.faq-cta p { margin: 0; }

/* ---------- เยี่ยม & ติดต่อ ---------- */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 24px; height: 24px; margin-top: 3px; border-radius: 8px; background: var(--open-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F8A6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center no-repeat; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.facts > div { padding: 16px 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts .ic { width: 40px; height: 40px; border-radius: 12px; background: #E6EFF2; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.facts h3 { font-size: 16px; margin: 0; font-weight: 600; font-family: var(--text-font); color: var(--mute); }
.facts p { margin: 2px 0 0; white-space: pre-line; font-size: 17px; }
.facts a.big { font-family: var(--display); font-size: 22px; font-weight: 700; }
.map { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #DCE8EC; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- ความคิดเห็น ---------- */
.fb { max-width: 680px; margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.fb fieldset { border: 0; padding: 0; margin: 0; }
.fb legend, .fb label > span { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.fb label > span small { font-weight: 400; color: var(--mute); }
.fb input[type=text], .fb input[type=email], .fb textarea { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #FBFDFD; }
.fb input:focus, .fb textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(11,79,108,.12); background: #fff; }
.fb textarea { min-height: 140px; resize: vertical; }
.fb .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .fb { padding: 20px 16px; } .fb .row2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; margin: 0; }
.seg label { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; background: #FBFDFD; }
.seg label b { font-size: 16px; }
.seg label small { color: var(--mute); font-size: 13.5px; line-height: 1.4; }
.seg input:checked + label { border-color: var(--brand); background: #E9F3F6; box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + label { outline: 3px solid #1D8FC0; outline-offset: 2px; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
.fb .status { padding: 12px 14px; border-radius: 14px; font-size: 15.5px; }
.fb .status.ok { background: var(--open-bg); color: #145C47; }
.fb .status.err { background: #FCE9E6; color: #8E2B20; }

/* ---------- ท้ายเว็บ ---------- */
body.pub footer.site-footer { display: block; text-align: left; background: var(--ink); color: #DCE8EC; padding: 44px 0 30px; margin-top: 56px; }
.pf-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
body.pub .pf-grid h3 { color: #fff; font-size: 17px; margin: 0 0 10px; }
.pf-grid p { margin: 0 0 6px; font-size: 15.5px; white-space: pre-line; }
body.pub .pf-grid a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.pf-grid ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.pf-grid li { font-size: 15.5px; margin-bottom: 6px; break-inside: avoid; }
body.pub .pf-grid li a { color: #DCE8EC; text-decoration: none; }
body.pub .pf-grid li a:hover { color: #fff; }
.pf-copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #9FB8C1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: 1fr; gap: 24px; } }

@media (max-width: 560px) { .vb-status { font-size: 26px; } .vboard { padding: 20px 18px 18px; border-radius: 20px; } .p-hero h1 { font-size: 30px; } }
.nw { white-space: nowrap; }
