:root {
  --hub-navy: #10243e;
  --hub-blue: #176bff;
  --hub-blue-dark: #0f4fc3;
  --hub-green: #16a36a;
  --hub-paper: #f7f6f2;
  --hub-ink: #17202a;
  --hub-muted: #607086;
  --hub-line: #dce5ef;
  --hub-card: rgba(255,255,255,.94);
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hub-ink);
  background-color: var(--hub-paper);
  background-image: linear-gradient(rgba(16,36,62,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,36,62,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  font-family: "Noto Sans Thai", "Tahoma", system-ui, sans-serif;
  line-height: 1.65;
}
a { color: var(--hub-blue-dark); }
img { max-width: 100%; }
.hub-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.hub-header {
  position: relative;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 18px;
  padding: .72rem 1rem;
  border: 1px solid var(--hub-line);
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(16,36,62,.08);
}
.hub-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--hub-navy); font-size: 1.35rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.hub-brand img { width: 34px; height: 34px; border-radius: .5rem; }
.hub-brand span { color: var(--hub-blue); }
.hub-main { padding: 1.2rem 0 4rem; }
.hub-breadcrumb { margin: .8rem 0; color: var(--hub-muted); font-size: .83rem; }
.hub-breadcrumb a { text-decoration: none; }
.hub-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--hub-navy);
  box-shadow: 0 20px 55px rgba(16,36,62,.14);
}
.hub-hero picture, .hub-hero img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,36,62,.98) 0 42%, rgba(16,36,62,.66) 58%, rgba(16,36,62,.08) 100%); }
.hub-hero__copy { position: relative; z-index: 2; display: flex; min-height: 500px; width: min(590px, 62%); padding: clamp(1.5rem, 5vw, 3.6rem); flex-direction: column; justify-content: center; color: #fff; }
.hub-kicker { margin: 0 0 .7rem; color: #bcd4ff; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hub-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.15rem, 4.8vw, 4rem); line-height: 1.14; letter-spacing: -.025em; }
.hub-hero p { max-width: 52ch; margin: 0 0 1.2rem; color: #e7eef8; font-size: 1.05rem; }
.hub-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hub-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.48); border-radius: .75rem; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; text-decoration: none; cursor: pointer; }
.hub-button--primary { border-color: var(--hub-blue); background: var(--hub-blue); }
.hub-button--green { border-color: var(--hub-green); background: var(--hub-green); }
.hub-section { padding-top: 4rem; }
.hub-section--compact { padding-top: 2rem; }
.hub-heading { max-width: 780px; margin: 0 auto 1.5rem; text-align: center; }
.hub-heading h2 { margin: 0 0 .45rem; color: var(--hub-navy); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.25; }
.hub-heading p { margin: 0; color: var(--hub-muted); }
.quick-answer { margin: 1.2rem auto 0; padding: 1rem 1.15rem; border-left: 4px solid var(--hub-blue); border-radius: 0 .85rem .85rem 0; background: #edf4ff; color: #30425a; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-card { padding: 1.25rem; border: 1px solid var(--hub-line); border-radius: 1rem; background: var(--hub-card); box-shadow: 0 12px 28px rgba(16,36,62,.07); }
.hub-card h3 { margin: 0 0 .35rem; color: var(--hub-navy); font-size: 1.1rem; }
.hub-card p { margin: 0 0 .8rem; color: var(--hub-muted); }
.hub-card a { font-weight: 800; text-decoration: none; }
.hub-number { display: inline-grid; width: 36px; height: 36px; margin-bottom: .8rem; place-items: center; border-radius: .65rem; color: #fff; background: var(--hub-blue); font-weight: 900; }
.tool-panel { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--hub-line); border-radius: 1.2rem; background: #fff; box-shadow: 0 16px 38px rgba(16,36,62,.09); }
.tool-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 1.2rem; align-items: start; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label, .field legend { color: #334155; font-size: .82rem; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #bac8d8; border-radius: .7rem; color: var(--hub-ink); background: #fff; font: inherit; }
.field input:focus, .field select:focus, .model-option:focus-within { outline: 3px solid rgba(23,107,255,.2); border-color: var(--hub-blue); }
.field-wide { grid-column: 1 / -1; }
.form-note { margin: .65rem 0 0; color: var(--hub-muted); font-size: .78rem; }
.result-box { padding: 1.2rem; border: 1px solid #b9d7c8; border-radius: 1rem; background: #f1fbf6; }
.result-box h3 { margin: 0 0 .75rem; color: #0f6b48; }
.result-list { display: grid; gap: .55rem; margin: 0; }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(22,163,106,.17); }
.result-row:last-child { border-bottom: 0; }
.result-row dt { color: #4f625a; }
.result-row dd { margin: 0; text-align: right; font-weight: 850; }
.result-highlight { margin: 1rem 0 0; padding: .85rem; border-radius: .75rem; color: #fff; background: var(--hub-navy); font-size: 1.05rem; font-weight: 850; }
.model-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.model-option { position: relative; display: grid; min-height: 150px; padding: 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: #fff; cursor: pointer; }
.model-option input { position: absolute; top: .75rem; right: .75rem; width: 20px; height: 20px; accent-color: var(--hub-blue); }
.model-option strong { padding-right: 1.5rem; color: var(--hub-navy); }
.model-option small { align-self: end; color: var(--hub-muted); }
.compare-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--hub-line); border-radius: .9rem; background: #fff; }
.compare-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .75rem; border-bottom: 1px solid var(--hub-line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--hub-navy); background: #eef4fc; }
.compare-table tbody th { width: 150px; }
.compare-empty { padding: 1rem; color: var(--hub-muted); }
.evidence-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.evidence-metric { padding: 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: #fff; text-align: center; }
.evidence-metric strong { display: block; color: var(--hub-blue); font-size: 1.7rem; }
.knowledge-list { display: grid; gap: .8rem; }
.knowledge-item { display: grid; grid-template-columns: 44px 1fr; gap: .85rem; padding: 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: #fff; }
.knowledge-item h3 { margin: 0 0 .2rem; color: var(--hub-navy); }
.knowledge-item p { margin: 0; color: var(--hub-muted); }
.knowledge-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: .75rem; color: var(--hub-blue); background: #eaf2ff; font-size: 1.2rem; font-weight: 900; }
.hub-table-wrap { overflow-x: auto; border: 1px solid var(--hub-line); border-radius: 1rem; background: #fff; }
.hub-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.hub-table th, .hub-table td { padding: .8rem; border-bottom: 1px solid var(--hub-line); text-align: left; vertical-align: top; }
.hub-table th { color: var(--hub-navy); background: #edf4ff; }
.faq-list { display: grid; gap: .7rem; max-width: 900px; margin: auto; }
.faq-list details { padding: .9rem 1rem; border: 1px solid var(--hub-line); border-radius: .8rem; background: #fff; }
.faq-list summary { color: var(--hub-navy); font-weight: 850; cursor: pointer; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--hub-line); border-radius: 1rem; background: #fff; }
.author-mark { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: #fff; background: var(--hub-navy); font-weight: 900; }
.author-box h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.author-box p { margin: 0; color: var(--hub-muted); }
.hub-footer { padding: 2.5rem 0; color: #dce6f2; background: var(--hub-navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 1.2rem; }
.hub-footer h2, .hub-footer h3 { margin: 0 0 .5rem; color: #fff; font-size: 1rem; }
.hub-footer p { margin: .25rem 0; font-size: .86rem; }
.hub-footer a { display: block; margin: .25rem 0; color: #dce6f2; text-decoration: none; font-size: .86rem; }
.status-good { color: #0f7d52; }
.status-warn { color: #a66000; }
.checklist { display: grid; gap: .55rem; }
.check-item { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--hub-line); border-radius: .75rem; background: #fff; }
.check-item input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--hub-green); }
.dashboard-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.dashboard-toolbar input { min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--hub-line); border-radius: .65rem; }
.dashboard-toolbar button { min-height: 44px; padding: .55rem .8rem; border: 0; border-radius: .65rem; color: #fff; background: var(--hub-blue); font-weight: 800; cursor: pointer; }
.privacy-note { padding: .8rem 1rem; border-radius: .75rem; color: #5d4b18; background: #fff8dc; }
@media (max-width: 980px) {
  .hub-header { flex-direction: column; }
  .site-nav { width: 100%; }
  .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-layout, .footer-grid { grid-template-columns: 1fr; }
  .model-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .hub-container { width: min(100% - 20px, 1160px); }
  .hub-header { padding: .65rem; }
  .hub-hero { min-height: 560px; }
  .hub-hero::after { background: linear-gradient(0deg, rgba(16,36,62,.98) 0 52%, rgba(16,36,62,.62) 75%, rgba(16,36,62,.18) 100%); }
  .hub-hero picture, .hub-hero img { object-position: 68% center; }
  .hub-hero__copy { justify-content: flex-end; width: 100%; min-height: 560px; padding: 1.25rem; }
  .hub-hero h1 { font-size: 2.15rem; }
  .hub-grid, .hub-grid--2, .field-grid, .model-options, .evidence-strip { grid-template-columns: 1fr; }
  .hub-section { padding-top: 3rem; }
  .hub-button { flex: 1 1 140px; }
  .author-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
