:root {
  --wp--preset--color--ink: #17211c;
  --wp--preset--color--mist: #f5f7f4;
  --wp--preset--color--leaf: #2f6b4f;
  --wp--preset--color--river: #2f6f83;
  --wp--preset--color--sun: #f2b84b;
  --wp--preset--color--clay: #a85f3b;
  --okd-shadow-soft: 0 14px 40px rgba(23, 33, 28, 0.08);
  --okd-border: 1px solid rgba(23, 33, 28, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wp--preset--color--leaf);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.okd-skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  padding: 8px 12px;
  background: #ffffff;
}

.okd-skip-link:focus {
  left: 8px;
}

.okd-container {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.okd-main {
  min-height: 70vh;
}

.wp-site-blocks {
  min-height: 100vh;
}

.okd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--okd-border);
  background: rgba(245, 247, 244, 0.9);
  backdrop-filter: blur(14px);
}

.okd-site-header a {
  color: inherit;
}

.okd-header-inner,
.okd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.okd-header-inner {
  min-height: 64px;
}

.okd-brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--wp--preset--color--ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.okd-brand-logo {
  display: block;
  width: 116px;
  height: 40px;
  background-image: url("https://www.okdentang.com/wp-content/uploads/2026/07/okdentang-logo-header-transparent-300x103-1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.okd-primary-nav ul,
.okd-site-footer ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.okd-site-footer {
  padding: 42px 0;
  background: var(--wp--preset--color--ink);
  color: #ffffff;
}

.okd-site-footer a {
  color: #ffffff;
}

.okd-hero {
  display: flex;
  align-items: center;
  min-height: 76vh;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.okd-hero--image {
  overflow: hidden;
}

.okd-hero--image::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(23, 33, 28, 0.56), rgba(23, 33, 28, 0));
  content: "";
  pointer-events: none;
}

.okd-hero :where(h1, p) {
  max-width: 760px;
}

.okd-hero__content {
  max-width: 760px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.okd-hero__content > * {
  position: relative;
  z-index: 1;
}

.okd-hero-meta,
.okd-mood-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.okd-hero-meta span,
.okd-hero-meta p,
.okd-hero-subnote {
  margin: 0;
}

.okd-hero-meta span,
.okd-hero-meta p {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(23, 33, 28, 0.28);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
}

.okd-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.okd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--wp--preset--color--leaf);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--wp--preset--color--leaf);
  color: #ffffff;
  font-weight: 800;
}

.okd-button--ghost {
  border-color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.okd-hero-subnote {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.okd-planning-rail {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -44px;
  border: var(--okd-border);
  border-radius: 8px;
  background: rgba(23, 33, 28, 0.14);
  box-shadow: var(--okd-shadow-soft);
  overflow: hidden;
}

.okd-planning-rail > div,
.okd-planning-item {
  min-height: 100%;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.okd-planning-item p {
  margin-top: 0;
  margin-bottom: 0;
}

.okd-planning-item p:not(.okd-kicker) {
  color: rgba(23, 33, 28, 0.76);
  font-size: 0.95rem;
}

.okd-hero-media {
  min-height: 480px;
  overflow: hidden;
}

.okd-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.okd-section {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.okd-section--intro {
  padding-top: clamp(42px, 7vw, 76px);
}

.okd-section--intro .okd-mood-strip {
  margin-top: 18px;
  margin-bottom: 26px;
}

.okd-card,
.is-style-surface,
.is-style-soft-panel {
  border: var(--okd-border);
  box-shadow: var(--okd-shadow-soft);
}

.okd-card {
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.okd-card:hover {
  border-color: rgba(47, 107, 79, 0.28);
  box-shadow: 0 18px 48px rgba(23, 33, 28, 0.12);
  transform: translateY(-2px);
}

.okd-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.is-style-surface {
  border-radius: 8px;
  background: #ffffff;
}

.is-style-soft-panel {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.okd-card-media {
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--wp--preset--color--mist);
}

.okd-card-media img,
.okd-rounded-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.okd-rounded-media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.okd-card-body {
  padding: 20px;
}

.okd-kicker {
  margin-bottom: 4px;
  color: var(--wp--preset--color--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.okd-destination-grid,
.okd-action-grid,
.okd-route-grid,
.okd-post-grid {
  display: grid;
  gap: 18px;
}

.okd-destination-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.okd-post-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.okd-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.okd-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.okd-route-card {
  border: var(--okd-border);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--okd-shadow-soft);
}

.okd-route-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.okd-action-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: var(--okd-border);
  border-radius: 8px;
  padding: 22px;
  background: #f5f7f4;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.okd-action-card:hover,
.okd-product-card:hover {
  box-shadow: var(--okd-shadow-soft);
  transform: translateY(-2px);
}

.okd-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.okd-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: var(--okd-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.okd-product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  background: #eef4f1;
  color: var(--wp--preset--color--river);
  font-weight: 900;
}

.okd-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.okd-product-card__body > * {
  margin-top: 0;
  margin-bottom: 0;
}

.okd-product-card__body .wp-block-buttons {
  margin-top: auto;
}

.okd-skip-note {
  color: rgba(23, 33, 28, 0.68);
}

.okd-action-card p:last-child {
  margin-bottom: 0;
}

.okd-trip-kit,
.okd-less-is-better,
.okd-pill-list {
  padding: 24px;
}

.okd-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.okd-pill-list a,
.okd-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: var(--okd-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.okd-disclosure {
  display: block;
  clear: both;
  border-top: var(--okd-border);
  color: rgba(23, 33, 28, 0.72);
  font-size: 0.9rem;
}

.okd-disclosure--after-grid {
  margin: 22px 0 0;
  padding-top: 14px;
}

.okd-affiliate-note {
  padding: 22px;
}

.okd-page-header {
  margin-bottom: 28px;
}

.okd-content-page {
  max-width: 860px;
}

.okd-entry-content > * {
  max-width: 760px;
}

.okd-entry-content img,
.okd-featured-image img {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .okd-header-inner,
  .okd-footer-inner,
  .okd-primary-nav ul,
  .okd-site-footer ul {
    align-items: flex-start;
    flex-direction: column;
  }

  .okd-primary-nav ul,
  .okd-site-footer ul {
    gap: 8px;
  }

  .okd-brand-logo {
    width: 99px;
    height: 34px;
  }

  .okd-hero {
    min-height: auto;
  }

  .okd-hero__content {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .okd-planning-rail {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
  }

  .okd-hero-media,
  .okd-hero-media img {
    min-height: 320px;
  }

  .okd-destination-grid,
  .okd-action-grid,
  .okd-route-grid,
  .okd-product-grid {
    grid-template-columns: 1fr;
  }
}
