:root {
  --forest-950: #052b19;
  --forest-900: #07351f;
  --forest-700: #0b5e37;
  --forest-600: #0f7b47;
  --cream: #fbfaf2;
  --ink: #17241d;
  --muted: #607168;
  --line: rgba(7, 53, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(137, 192, 130, .15), transparent 28%),
    linear-gradient(#fffef9, #f7f8f1);
  font-family: "TH Sarabun New", "Sarabun", Tahoma, sans-serif;
}
a { color: inherit; }
.guide-container { width: min(calc(100% - 44px), 1260px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 999; padding: 10px 14px; color: #fff; background: #07351f; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, .9);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.guide-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.guide-brand img { width: 48px; height: 48px; }
.guide-brand span { display: flex; flex-direction: column; line-height: .9; }
.guide-brand strong { color: var(--forest-950); font-size: 29px; }
.guide-brand small { margin-top: 6px; color: #718079; font-size: 15px; }
.guide-header nav { display: flex; align-items: center; gap: 10px; }
.guide-header nav a { padding: 8px 13px; color: #294b38; border-radius: 10px; text-decoration: none; font-size: 18px; font-weight: 800; }
.guide-header nav a:hover { background: #edf4eb; }
.guide-header .header-start { color: #fff; background: #0b633a; box-shadow: 0 8px 20px rgba(7, 53, 31, .16); }

.guide-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.guide-hero::before,
.guide-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.guide-hero::before { width: 440px; height: 440px; top: -245px; right: 3%; background: rgba(40, 133, 73, .11); }
.guide-hero::after { width: 310px; height: 310px; bottom: -230px; left: -80px; background: rgba(234, 187, 62, .12); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: clamp(64px, 8vw, 105px); padding-bottom: clamp(62px, 8vw, 100px); }
.eyebrow { margin: 0 0 9px; color: var(--forest-600); font-size: 20px; font-weight: 900; }
.hero-layout h1 { margin: 0; color: var(--forest-950); font-size: clamp(59px, 7.3vw, 92px); line-height: .82; letter-spacing: -1.5px; }
.hero-lead { max-width: 690px; margin: 25px 0 0; color: #506258; font-size: 23px; line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions a { display: inline-flex; min-height: 52px; align-items: center; gap: 13px; padding: 10px 20px; border-radius: 12px; text-decoration: none; font-size: 19px; font-weight: 900; }
.primary-action { color: #fff; background: linear-gradient(135deg, #0e7946, #07351f); box-shadow: 0 11px 26px rgba(7, 53, 31, .2); }
.secondary-action { color: #1d5133; background: #f1f5ef; border: 1px solid #cfdbd0; }

.guide-summary { padding: 27px; background: rgba(255, 255, 252, .93); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 25px 70px rgba(7, 53, 31, .12); }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-top span { color: #385847; font-size: 20px; font-weight: 800; }
.summary-top strong { padding: 5px 10px; color: #0d7142; background: #e7f4e6; border-radius: 8px; font-size: 17px; }
.guide-summary ol { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.guide-summary li { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; }
.guide-summary li i { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: #0b6940; border-radius: 10px; font-style: normal; font-size: 17px; font-weight: 900; }
.guide-summary li span { color: #294b38; font-size: 18px; font-weight: 800; }
.guide-summary li b { color: #718078; font-size: 15px; }
.guide-summary > p { margin: 18px 0 0; padding: 11px 13px; color: #55675d; background: #faf5e3; border-radius: 10px; font-size: 16px; line-height: 1.35; }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 35px; align-items: start; padding-top: 50px; padding-bottom: 85px; }
.guide-menu { position: sticky; top: 105px; padding: 19px; background: rgba(255, 255, 252, .9); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 38px rgba(7, 53, 31, .07); }
.guide-menu > p { margin: 0 0 10px; color: #809087; font-size: 15px; font-weight: 900; text-transform: uppercase; }
.guide-menu nav { display: grid; gap: 3px; }
.guide-menu a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; color: #52655a; border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 800; }
.guide-menu a span { color: #21905a; font-size: 13px; }
.guide-menu a:hover,
.guide-menu a.active { color: #0a5c35; background: #e9f4e8; }
.guide-articles { min-width: 0; display: grid; gap: 18px; }
.guide-card { scroll-margin-top: 105px; padding: clamp(26px, 4vw, 43px); background: rgba(255, 255, 252, .95); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 14px 40px rgba(7, 53, 31, .065); }
.step-heading { display: flex; align-items: center; gap: 15px; }
.step-heading > span { display: grid; flex: 0 0 auto; width: 49px; height: 49px; place-items: center; color: #fff; background: linear-gradient(145deg, #10804a, #07351f); border-radius: 14px; box-shadow: 0 8px 18px rgba(7, 53, 31, .19); font-size: 19px; font-weight: 900; }
.step-heading p { margin: 0; color: #1b8a52; font-size: 16px; font-weight: 900; }
.step-heading h2 { margin: 1px 0 0; color: var(--forest-950); font-size: clamp(30px, 3.6vw, 42px); line-height: .95; }
.guide-card > p { margin: 20px 0 0; color: #53665b; font-size: 20px; line-height: 1.52; }

.action-list { display: grid; gap: 10px; margin: 23px 0 0; padding: 0; list-style: none; counter-reset: actions; }
.action-list li { counter-increment: actions; display: grid; grid-template-columns: 32px 175px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: #f7f9f4; border: 1px solid #e1e9e0; border-radius: 12px; }
.action-list li::before { content: counter(actions); display: grid; width: 29px; height: 29px; place-items: center; color: #0d7142; background: #dff1df; border-radius: 9px; font-size: 16px; font-weight: 900; }
.action-list b { color: #17452d; font-size: 18px; }
.action-list span { color: #61736a; font-size: 17px; line-height: 1.3; }
.action-list.compact li { grid-template-columns: 32px 190px 1fr; }

.note { display: flex; gap: 15px; align-items: center; margin-top: 20px; padding: 14px 16px; color: #315641; background: #f5f1df; border: 1px solid #e8dca9; border-radius: 13px; }
.note strong { flex: 0 0 auto; font-size: 18px; }
.note span { font-size: 17px; line-height: 1.35; }
.note.success { color: #195437; background: #e5f4e4; border-color: #c7e3c7; }
.note.warning { color: #75440d; background: #fff0da; border-color: #f2d0a5; }

.business-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 23px; }
.business-choice-grid article { min-height: 165px; padding: 18px; background: #f8faf6; border: 1px solid #dfe8df; border-radius: 15px; }
.business-choice-grid i { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #0d7443; border-radius: 10px; font-style: normal; font-size: 20px; }
.business-choice-grid strong,
.business-choice-grid span { display: block; }
.business-choice-grid strong { margin-top: 11px; color: #17452d; font-size: 20px; }
.business-choice-grid span { margin-top: 5px; color: #697970; font-size: 16px; line-height: 1.35; }

.two-column-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.two-column-list > div { padding: 20px; background: #f7f9f4; border: 1px solid #e0e8df; border-radius: 15px; }
.two-column-list h3 { margin: 0; color: #16462d; font-size: 22px; }
.two-column-list ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 22px; color: #5d7065; font-size: 17px; }

.workflow-row { display: flex; align-items: stretch; gap: 9px; margin-top: 23px; }
.workflow-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 15px; background: #f6f9f4; border: 1px solid #dfe8df; border-radius: 14px; }
.workflow-row i { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: #0e7544; border-radius: 8px; font-style: normal; font-size: 15px; font-weight: 900; }
.workflow-row b { margin-top: 10px; color: #17472e; font-size: 19px; }
.workflow-row small { margin-top: 3px; color: #6b7a72; font-size: 15px; line-height: 1.2; }
.workflow-row em { align-self: center; color: #91a89b; font-size: 23px; font-style: normal; }

.status-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 23px; }
.status-guide article { padding: 20px; border-radius: 16px; border: 1px solid transparent; }
.status-guide span,
.status-guide strong { display: block; }
.status-guide span { font-size: 17px; font-weight: 800; }
.status-guide strong { margin-top: 5px; font-size: 28px; line-height: 1; }
.status-guide p { margin: 10px 0 0; font-size: 16px; line-height: 1.35; }
.status-guide .ready { color: #17603a; background: #e0f2df; border-color: #beddbe; }
.status-guide .occupied { color: #a70812; background: #ffdede; border-color: #ffb9bc; }
.status-guide .cleaning { color: #a75100; background: #ffead3; border-color: #ffd0a1; }

.document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 23px; }
.document-grid article { display: grid; grid-template-columns: 43px 1fr; column-gap: 13px; padding: 18px; background: #f7f9f4; border: 1px solid #dfe8df; border-radius: 14px; }
.document-grid i { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: #0c6e40; border-radius: 11px; font-style: normal; font-size: 21px; font-weight: 900; }
.document-grid strong { color: #17472e; font-size: 20px; }
.document-grid span { margin-top: 4px; color: #66776e; font-size: 16px; line-height: 1.3; }

.role-table { margin-top: 23px; overflow: hidden; border: 1px solid #dce5dc; border-radius: 14px; }
.role-table > div { display: grid; grid-template-columns: 1fr 1.5fr .7fr; gap: 12px; align-items: center; min-height: 53px; padding: 10px 15px; border-bottom: 1px solid #e3e9e2; }
.role-table > div:last-child { border-bottom: 0; }
.role-table > div:first-child { color: #fff; background: #0a5633; }
.role-table span { color: #566a5f; font-size: 17px; }
.role-table b { font-size: 16px; }
.role-table .yes { color: #11864d; }
.role-table .limited { color: #b56b00; }
.role-table .no { color: #aeb8b1; }

.report-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.report-chips span { padding: 9px 14px; color: #12623a; background: #e8f3e7; border: 1px solid #d0e5cf; border-radius: 999px; font-size: 17px; font-weight: 800; }

.help-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 45px); color: #fff; background: radial-gradient(circle at 100% 0, rgba(62, 175, 96, .42), transparent 33%), linear-gradient(145deg, #083c24, #062c1b); border-radius: 24px; box-shadow: 0 20px 50px rgba(7, 53, 31, .2); }
.help-card p { margin: 0; color: #8bdda9; font-size: 17px; font-weight: 900; }
.help-card h2 { margin: 3px 0 0; font-size: clamp(29px, 3.7vw, 42px); line-height: .95; }
.help-card span { display: block; margin-top: 10px; color: #c6d9ce; font-size: 17px; }
.help-card > a { display: flex; flex: 0 0 auto; min-height: 54px; align-items: center; gap: 13px; padding: 10px 19px; color: #09361f; background: #fff0b4; border-radius: 13px; text-decoration: none; font-size: 19px; font-weight: 900; }

.guide-footer { color: #fff; background: #052b19; }
.guide-footer .guide-container { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.guide-footer div > div { display: flex; flex-direction: column; }
.guide-footer strong { font-size: 26px; }
.guide-footer span { color: #afc9b9; font-size: 16px; }
.guide-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; }
.guide-footer a { color: #e7f0ea; text-decoration: none; font-size: 16px; }
.guide-footer a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; }
  .guide-summary { max-width: 650px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-menu { position: static; }
  .guide-menu nav { grid-template-columns: repeat(2, 1fr); }
  .business-choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .guide-container { width: min(calc(100% - 28px), 1260px); }
  .guide-header nav > a:not(.header-start) { display: none; }
  .hero-layout { padding-top: 55px; }
  .hero-layout h1 { font-size: 62px; }
  .guide-menu { display: none; }
  .guide-layout { padding-top: 25px; }
  .action-list li,
  .action-list.compact li { grid-template-columns: 32px 1fr; }
  .action-list span { grid-column: 2; }
  .workflow-row { display: grid; grid-template-columns: 1fr 1fr; }
  .workflow-row em { display: none; }
  .status-guide { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: 1fr; }
  .role-table > div { grid-template-columns: 1fr; gap: 3px; padding-block: 13px; }
  .role-table > div:first-child { display: none; }
  .help-card { align-items: flex-start; flex-direction: column; }
  .guide-footer .guide-container { align-items: flex-start; flex-direction: column; padding-top: 28px; padding-bottom: 28px; }
  .guide-footer nav { justify-content: flex-start; }
}

@media (max-width: 500px) {
  .guide-brand small { display: none; }
  .guide-header nav a { padding-inline: 11px; }
  .hero-layout h1 { font-size: 52px; }
  .hero-lead { font-size: 20px; }
  .guide-summary { padding: 20px; }
  .guide-summary li { grid-template-columns: 34px 1fr; }
  .guide-summary li b { display: none; }
  .guide-card { padding: 24px 19px; }
  .step-heading { align-items: flex-start; }
  .step-heading > span { width: 43px; height: 43px; }
  .step-heading h2 { font-size: 31px; }
  .business-choice-grid,
  .two-column-list { grid-template-columns: 1fr; }
  .workflow-row { grid-template-columns: 1fr; }
  .note { align-items: flex-start; flex-direction: column; gap: 3px; }
}
