/*
Theme Name: Sangthai
Theme URI: https://sangthaimetalsheet.com
Author: Sangthai Metalsheet
Description: WordPress block theme for Sangthai Metalsheet, built based on Claude Design specifications.
Version: 1.2.1
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sangthai
*/

/* -------------------------------------------------------------------------
 * 1. CSS Variables & Design Tokens
 * ------------------------------------------------------------------------- */
:root {
  --st-color-ink: #1C1510;
  --st-color-brown: #3A2A1E;
  --st-color-gold: #F1C44D;
  --st-color-gold-text: #8A6416;
  --st-color-cream: #F7F3EC;
  --st-color-stone: #E8E1D5;
  --st-color-line: #DDD4C6;
  --st-color-muted: #6B5E52;
  --st-color-body: #4A3F36;
  --st-color-white: #FFFFFF;

  --st-font-sans: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --st-font-mono: 'IBM Plex Mono', monospace;

  --st-radius: 2px;
  --st-max-width: 1240px;
}

/* -------------------------------------------------------------------------
 * 2. Base & Reset
 * ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--st-font-sans);
  background-color: var(--st-color-cream);
  color: var(--st-color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--st-color-cream);
  color: var(--st-color-ink);
  font-family: var(--st-font-sans);
}

body.st-nav-locked {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--st-color-gold-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--st-color-brown);
}

p {
  margin: 0 0 1rem;
  color: var(--st-color-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--st-color-ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

/* Accessibility helper */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
 * 3. Contract Classes & Layout Utilities
 * ------------------------------------------------------------------------- */

/* .st-wrap: container 1240px with padding 32px (mobile 20px) */
.st-wrap {
  width: 100%;
  max-width: var(--st-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .st-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* .st-section: section padding 104px (mobile 64px) */
.st-section {
  padding-top: 104px;
  padding-bottom: 104px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .st-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.st-section--cream {
  background-color: var(--st-color-cream);
  color: var(--st-color-ink);
}

.st-section--white {
  background-color: var(--st-color-white);
  color: var(--st-color-ink);
}

.st-section--dark {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
}

.st-section--dark h1,
.st-section--dark h2,
.st-section--dark h3,
.st-section--dark h4 {
  color: #FFFFFF;
}

.st-section--dark a:not(.st-btn) {
  color: var(--st-color-gold);
}

.st-section--dark a:not(.st-btn):hover {
  color: #FFFFFF;
}

.st-section--brown {
  background-color: var(--st-color-brown);
  color: #E8DFD1;
}

.st-section--gold {
  background-color: var(--st-color-gold);
  color: var(--st-color-ink);
}

/* .st-eyebrow: uppercase small label */
.st-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-color-gold-text);
  line-height: 1.4;
}

.st-section--dark .st-eyebrow,
.st-hero .st-eyebrow,
.st-sidebar-box--dark .st-eyebrow {
  color: var(--st-color-gold);
}

/* Typography styles */
.st-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--st-color-ink);
  margin: 0;
}

@media (max-width: 768px) {
  .st-title {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .st-title {
    font-size: 32px;
  }
}

.st-h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--st-color-ink);
  margin: 0;
}

@media (max-width: 768px) {
  .st-h2 {
    font-size: 30px;
  }
}

.st-h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--st-color-ink);
  margin: 0;
}

@media (max-width: 768px) {
  .st-h3 {
    font-size: 22px;
  }
}

.st-lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--st-color-body);
  margin: 0;
}

@media (max-width: 768px) {
  .st-lead {
    font-size: 18px;
  }
}

/* .st-rule: gold bar 56x2px */
.st-rule {
  width: 56px;
  height: 2px;
  background-color: var(--st-color-gold);
  margin: 24px 0;
  display: block;
  border: 0;
}

/* .st-btn: buttons (min-height 52px, touch targets >= 44px) */
.st-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: var(--st-radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.st-btn--gold {
  background-color: var(--st-color-gold);
  color: var(--st-color-ink) !important;
  border: 1px solid var(--st-color-gold);
}

.st-btn--gold:hover {
  background-color: #e2b23a;
  border-color: #e2b23a;
  color: var(--st-color-ink) !important;
}

.st-btn--outline {
  background-color: transparent;
  border: 1px solid var(--st-color-ink);
  color: var(--st-color-ink) !important;
}

.st-btn--outline:hover {
  background-color: var(--st-color-ink);
  color: #FFFFFF !important;
}

.st-btn--dark {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream) !important;
  border: 1px solid var(--st-color-ink);
}

.st-btn--dark:hover {
  background-color: var(--st-color-brown);
  border-color: var(--st-color-brown);
  color: #FFFFFF !important;
}

.st-btn--outline-light {
  background-color: transparent;
  border: 1px solid var(--st-color-gold);
  color: #FFFFFF !important;
}

.st-btn--outline-light:hover {
  background-color: var(--st-color-gold);
  color: var(--st-color-ink) !important;
}

/* .st-breadcrumb */
.st-breadcrumb {
  font-size: 14px;
  color: var(--st-color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.st-breadcrumb a {
  color: var(--st-color-muted);
  text-decoration: none;
}

.st-breadcrumb a:hover {
  color: var(--st-color-gold-text);
}

.st-breadcrumb span {
  color: var(--st-color-ink);
}

.st-hero .st-breadcrumb,
.st-hero--split .st-breadcrumb {
  color: #D9CFC0;
}

.st-hero .st-breadcrumb a,
.st-hero--split .st-breadcrumb a {
  color: #D9CFC0;
}

.st-hero .st-breadcrumb span,
.st-hero--split .st-breadcrumb span {
  color: var(--st-color-gold);
}

/* .st-hero */
.st-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background-color: var(--st-color-ink);
  overflow: hidden;
  color: #FFFFFF;
}

.st-hero img.st-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

.st-hero .st-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 104px;
  padding-bottom: 88px;
}

.st-hero h1 {
  color: #FFFFFF;
  margin-top: 12px;
}

.st-hero p {
  color: #EFE7DA;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .st-hero {
    min-height: 420px;
  }
  .st-hero .st-hero__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* .st-hero--split */
.st-hero--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background-color: var(--st-color-ink);
  color: #FFFFFF;
  align-items: stretch;
}

.st-hero--split .st-hero__text {
  padding: 88px max(32px, calc((100vw - 1240px) / 2 + 32px)) 80px;
  padding-right: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-hero--split h1 {
  color: #FFFFFF;
  margin-top: 10px;
}

.st-hero--split p {
  color: #EFE7DA;
}

.st-hero--split img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1000px) {
  .st-hero--split {
    grid-template-columns: 1fr;
  }
  .st-hero--split .st-hero__text {
    padding: 64px 32px;
  }
}

@media (max-width: 560px) {
  .st-hero--split .st-hero__text {
    padding: 48px 20px;
  }
}

/* .st-facts */
.st-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--st-color-brown);
  color: #E8DFD1;
  width: 100%;
}

.st-fact {
  padding: 32px 24px;
  border-left: 1px solid #5A4636;
}

.st-fact:first-child {
  border-left: 0;
}

.st-fact__num {
  font-size: 36px;
  font-weight: 600;
  color: var(--st-color-gold);
  line-height: 1.1;
  font-family: var(--st-font-sans);
}

.st-fact__label {
  font-size: 15px;
  color: #E8DFD1;
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .st-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-fact:nth-child(2n+1) {
    border-left: 0;
  }
  .st-fact:nth-child(n+3) {
    border-top: 1px solid #5A4636;
  }
}

@media (max-width: 560px) {
  .st-facts {
    grid-template-columns: 1fr;
  }
  .st-fact {
    border-left: 0 !important;
    border-top: 1px solid #5A4636;
    padding: 20px 0;
  }
  .st-fact:first-child {
    border-top: 0;
  }
}

/* .st-split & .st-split--wide */
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.st-split--wide {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1000px) {
  .st-split,
  .st-split--wide {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* .st-grid */
.st-grid {
  display: grid;
  width: 100%;
}

.st-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.st-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.st-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.st-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1000px) {
  .st-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .st-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .st-grid--4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .st-grid--3 {
    grid-template-columns: 1fr;
  }
  .st-grid--6 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* .st-catcard: product category cards */
.st-catcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--st-color-ink);
  background-color: var(--st-color-cream);
  border: 1px solid var(--st-color-stone);
  border-radius: var(--st-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-catcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 21, 16, 0.08);
  color: var(--st-color-ink);
}

.st-catcard img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: var(--st-color-stone);
  display: block;
}

.st-catcard__body {
  padding: 20px 20px 24px;
}

.st-catcard__en {
  font-family: var(--st-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--st-color-gold-text);
}

.st-catcard__th {
  font-size: 19px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--st-color-ink);
}

.st-catcard__more {
  font-size: 14px;
  color: var(--st-color-muted);
  margin-top: 12px;
}

/* .st-ph: placeholder image box */
.st-ph {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--st-color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8C7F72;
  font-size: 13px;
}

/* .st-pcard: product model card */
.st-pcard {
  background-color: var(--st-color-white);
  border: 1px solid var(--st-color-stone);
  border-radius: var(--st-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.st-pcard img.st-pcard__img {
  width: 100%;
  aspect-ratio: 306/226;
  object-fit: cover;
  display: block;
  background-color: var(--st-color-stone);
}

.st-pcard .st-pcard__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.st-pcard .st-pcard__model {
  margin: 0;
  font-family: var(--st-font-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--st-color-ink);
}

.st-pcard .st-pcard__type {
  font-size: 14px;
  color: var(--st-color-body);
  line-height: 1.6;
}

.st-pcard .st-pcard__thick {
  font-size: 14px;
  color: var(--st-color-muted);
}

.st-pcard .st-pcard__note {
  font-size: 13px;
  color: #8A3B12;
  background-color: #FBF1E6;
  padding: 6px 10px;
  border-radius: var(--st-radius);
  align-self: flex-start;
}

.st-pcard .st-pcard__price {
  border-top: 1px solid #EEE7DC;
  padding-top: 14px;
  margin-top: auto;
  font-size: 22px;
  font-weight: 600;
  color: var(--st-color-ink);
}

.st-pcard .st-pcard__price small {
  font-size: 12px;
  color: var(--st-color-muted);
  font-weight: 400;
  display: block;
}

.st-pcard a.st-pcard__cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--st-color-cream);
  color: var(--st-color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--st-radius);
  margin-top: 6px;
  transition: background-color 0.15s ease;
}

.st-pcard a.st-pcard__cta:hover {
  background-color: var(--st-color-stone);
}

/* .st-chips */
.st-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

a.st-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--st-color-line);
  color: var(--st-color-ink);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--st-radius);
  background-color: var(--st-color-white);
  transition: all 0.15s ease;
}

a.st-chip:hover {
  border-color: var(--st-color-gold-text);
  color: var(--st-color-gold-text);
}

a.st-chip.is-active {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
  border-color: var(--st-color-ink);
}

/* .st-group-head */
.st-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--st-color-line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.st-group-head .st-group-head__en {
  font-family: var(--st-font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--st-color-gold-text);
}

.st-group-head h2 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 600;
}

/* .st-pd: product detail */
.st-pd {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1000px) {
  .st-pd {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.st-pd .st-pd__gallery img.st-pd__main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background-color: var(--st-color-white);
  border: 1px solid var(--st-color-stone);
  border-radius: var(--st-radius);
}

.st-pd .st-pd__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.st-pd .st-pd__thumbs img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: var(--st-radius);
  border: 1px solid var(--st-color-stone);
}

.st-pd .st-pd__info {
  display: flex;
  flex-direction: column;
}

.st-pd__model {
  margin: 12px 0 0;
  font-family: var(--st-font-mono);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--st-color-ink);
}

@media (max-width: 560px) {
  .st-pd__model {
    font-size: 40px;
  }
}

.st-pd__price {
  font-size: 36px;
  font-weight: 600;
  color: var(--st-color-ink);
}

.st-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--st-color-stone);
  border: 1px solid var(--st-color-stone);
  margin-top: 28px;
}

@media (max-width: 560px) {
  .st-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.st-spec {
  background-color: var(--st-color-white);
  padding: 16px 18px;
}

.st-spec small {
  font-size: 12px;
  color: var(--st-color-muted);
  display: block;
}

.st-spec strong {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
  color: var(--st-color-ink);
}

/* .st-features */
ol.st-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol.st-features li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #EEE7DC;
}

ol.st-features li .st-features__n {
  font-family: var(--st-font-mono);
  font-size: 14px;
  color: var(--st-color-gold-text);
  padding-top: 3px;
  min-width: 24px;
}

ol.st-features li span {
  font-size: 16px;
  line-height: 1.8;
  color: #2B221B;
}

/* .st-table */
.st-table {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--st-color-line);
  border-radius: var(--st-radius);
  background-color: var(--st-color-white);
}

.st-table table,
.st-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
}

.st-table thead tr,
.st-prose thead tr {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
}

.st-table th,
.st-prose th {
  padding: 16px 20px;
  font-weight: 500;
  text-align: left;
}

.st-table tbody tr,
.st-prose tbody tr {
  border-top: 1px solid #EEE7DC;
}

.st-table td,
.st-prose td {
  padding: 16px 20px;
  color: #2B221B;
}

/* .st-note */
.st-note {
  font-size: 14px;
  color: var(--st-color-muted);
  line-height: 1.8;
}

/* .st-callout */
.st-callout {
  background-color: var(--st-color-cream);
  border-top: 3px solid var(--st-color-gold);
  padding: 24px 28px;
  margin: 24px 0;
  border-radius: var(--st-radius);
}

/* .st-branchcard */
.st-branchcard {
  background-color: var(--st-color-white);
  border: 1px solid var(--st-color-stone);
  border-top: 3px solid var(--st-color-gold);
  border-radius: var(--st-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-branchcard h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--st-color-ink);
}

.st-branchcard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--st-color-body);
}

.st-branchcard__row {
  font-size: 14px;
  color: var(--st-color-ink);
}

.st-branchcard__row span {
  color: var(--st-color-muted);
}

.st-branchcard__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* .st-region */
.st-region {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
}

@media (max-width: 1000px) {
  .st-region {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* .st-dl */
.st-dl {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  row-gap: 18px;
  column-gap: 16px;
  font-size: 16px;
  line-height: 1.7;
  border-top: 1px solid var(--st-color-line);
  padding-top: 28px;
}

.st-dl dt {
  color: var(--st-color-muted);
}

.st-dl dd {
  margin: 0;
  color: var(--st-color-ink);
}

/* .st-qr */
.st-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--st-color-white);
  border: 1px solid var(--st-color-stone);
  border-radius: var(--st-radius);
}

.st-qr img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
}

/* .st-gallery */
.st-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.st-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--st-radius);
  background-color: var(--st-color-ink);
}

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

@media (max-width: 1000px) {
  .st-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .st-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* .st-review */
figure.st-review {
  margin: 0;
  padding: 32px 28px;
  background-color: var(--st-color-cream);
  border-radius: var(--st-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

figure.st-review blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #2B221B;
}

figure.st-review figcaption {
  font-size: 15px;
  font-weight: 600;
  color: var(--st-color-ink);
  border-top: 1px solid var(--st-color-line);
  padding-top: 16px;
}

/* .st-postcard */
a.st-postcard {
  text-decoration: none;
  color: var(--st-color-ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

a.st-postcard img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: var(--st-radius);
}

.st-postcard__date {
  font-size: 13px;
  color: var(--st-color-muted);
}

.st-postcard__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--st-color-ink);
}

/* .st-cta */
.st-cta {
  background-color: var(--st-color-gold);
  width: 100%;
}

.st-cta .st-wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.st-cta h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  color: var(--st-color-ink);
}

.st-cta p {
  margin: 10px 0 0;
  font-size: 18px;
  color: var(--st-color-brown);
}

.st-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* .st-dark-list */
.st-dark-list {
  display: flex;
  flex-direction: column;
}

.st-dark-list__item {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #3A2E25;
}

.st-dark-list__num {
  font-family: var(--st-font-mono);
  font-size: 15px;
  color: var(--st-color-gold);
  padding-top: 4px;
}

.st-dark-list__title {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.st-dark-list__desc {
  font-size: 15px;
  color: #BFB3A4;
  margin-top: 6px;
  line-height: 1.7;
}

/* .st-quote */
.st-quote {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--st-color-ink);
  margin: 24px 0;
}

@media (max-width: 768px) {
  .st-quote {
    font-size: 22px;
  }
}

/* .st-prose */
.st-prose {
  max-width: 100%;
}

.st-prose p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.95;
  color: #2B221B;
}

.st-prose h2 {
  margin: 56px 0 20px;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--st-color-ink);
}

.st-prose h3 {
  margin: 40px 0 16px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--st-color-ink);
}

.st-prose ul,
.st-prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: #2B221B;
}

.st-prose img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--st-radius);
  margin: 24px 0;
  display: block;
}

.st-prose figure {
  margin: 24px 0;
}

.st-prose figcaption {
  font-size: 14px;
  color: var(--st-color-muted);
  margin-top: 8px;
  text-align: center;
}

.st-prose aside {
  background-color: var(--st-color-cream);
  border-top: 3px solid var(--st-color-gold);
  padding: 24px 28px;
  margin: 24px 0;
  border-radius: var(--st-radius);
}

@media (max-width: 560px) {
  .st-prose p {
    font-size: 17px;
  }
}

/* -------------------------------------------------------------------------
 * 4. Header & Navigation Styles
 * ------------------------------------------------------------------------- */
.st-site-header {
  font-family: var(--st-font-sans);
  color: var(--st-color-ink);
  background-color: var(--st-color-white);
  border-bottom: 1px solid var(--st-color-stone);
  position: relative;
  z-index: 100;
}

.st-site-header__util {
  background-color: var(--st-color-ink);
  color: #E8DFD1;
  font-size: 13px;
}

.st-site-header__util-inner {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-site-header__util-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.st-site-header__iso {
  color: var(--st-color-gold);
}

.st-site-header__util-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.st-site-header__util-link {
  color: #E8DFD1;
  text-decoration: none;
}

.st-site-header__util-link:hover {
  color: var(--st-color-gold);
}

.st-lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid #5A4636;
  border-radius: var(--st-radius);
  overflow: hidden;
}

.st-lang-item {
  padding: 2px 8px;
  color: #E8DFD1;
  text-decoration: none;
  font-size: 12px;
}

.st-lang-item.is-active {
  background-color: var(--st-color-gold);
  color: var(--st-color-ink);
  font-weight: 600;
}

@media (max-width: 900px) {
  .st-site-header__util,
  .hd-util {
    display: none !important;
  }
}

.st-site-header__bar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.st-site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.st-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.st-site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.st-site-header__brand-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--st-color-ink);
}

.st-site-header__brand-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--st-color-gold-text);
  font-weight: 600;
}

.st-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.st-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  text-decoration: none;
  color: var(--st-color-body);
  font-weight: 400;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
}

.st-nav__link:hover {
  color: var(--st-color-gold-text);
}

.st-nav__link.is-active {
  color: var(--st-color-ink);
  font-weight: 600;
  border-bottom: 2px solid var(--st-color-gold);
}

.st-nav__mobile-cta {
  display: none;
}

.st-site-header__cta {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  flex-shrink: 0;
}

/* Mobile Navigation Hamburger */
.st-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--st-color-stone);
  border-radius: var(--st-radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.st-nav-toggle__bar {
  width: 22px;
  height: 2px;
  background-color: var(--st-color-ink);
  transition: transform 0.2s, opacity 0.2s;
  display: block;
}

@media (max-width: 960px) {
  .st-nav-toggle {
    display: flex;
  }

  .st-site-header__cta {
    display: none;
  }

  .st-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--st-color-white);
    border-bottom: 2px solid var(--st-color-gold);
    box-shadow: 0 16px 32px rgba(28, 21, 16, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    z-index: 1000;
  }

  .st-nav.is-open {
    display: flex;
  }

  .st-nav__link {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--st-color-stone);
    font-size: 16px;
  }

  .st-nav__link.is-active {
    border-bottom: 1px solid var(--st-color-stone);
    border-left: 3px solid var(--st-color-gold);
    padding-left: 9px;
  }

  .st-nav__mobile-cta {
    display: block;
    margin-top: 16px;
  }

  .st-nav__mobile-cta .st-btn {
    width: 100%;
  }

  .st-nav-toggle[aria-expanded="true"] .st-nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .st-nav-toggle[aria-expanded="true"] .st-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .st-nav-toggle[aria-expanded="true"] .st-nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* -------------------------------------------------------------------------
 * 5. Footer Styles
 * ------------------------------------------------------------------------- */
.st-footer {
  font-family: var(--st-font-sans);
  background-color: var(--st-color-ink);
  color: #D9CFC0;
  border-top: 3px solid var(--st-color-gold);
}

.st-footer__inner {
  padding-top: 72px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 48px;
}

@media (max-width: 1000px) {
  .st-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .st-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.st-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.st-footer__brand-text {
  line-height: 1.25;
}

.st-footer__brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.st-footer__brand-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--st-color-gold);
}

.st-footer__desc {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #D9CFC0;
}

.st-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.st-footer__social a {
  width: 44px;
  height: 44px;
  border: 1px solid #4A3B2F;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--st-radius);
  text-decoration: none;
  font-size: 13px;
  color: #D9CFC0;
  transition: all 0.15s ease;
}

.st-footer__social a:hover {
  border-color: var(--st-color-gold);
  color: var(--st-color-gold);
}

.st-footer__heading {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--st-color-gold);
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.st-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.st-footer__links a {
  color: #D9CFC0;
  text-decoration: none;
  transition: color 0.15s ease;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.st-footer__links a:hover {
  color: var(--st-color-gold);
}

.st-footer__phone {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 16px;
}

.st-footer__region-item {
  margin-bottom: 14px;
}

.st-footer__region-name {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
}

.st-footer__region-list {
  font-size: 14px;
  line-height: 1.8;
  color: #D9CFC0;
}

.st-footer__bottom {
  border-top: 1px solid #33281F;
}

.st-footer__bottom-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #A89A8A;
}

/* -------------------------------------------------------------------------
 * 6. Blog & Single Template Styles
 * ------------------------------------------------------------------------- */
.st-blog-head {
  padding-top: 72px;
  padding-bottom: 40px;
}

.st-blog-head__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 28px;
  border-bottom: 1px solid var(--st-color-line);
  padding-bottom: 32px;
}

.st-blog-search {
  display: flex;
  gap: 8px;
}

.st-blog-search__input {
  min-height: 48px;
  width: 260px;
  padding: 0 16px;
  border: 1px solid var(--st-color-line);
  background-color: var(--st-color-white);
  font-family: inherit;
  font-size: 15px;
  border-radius: var(--st-radius);
  color: var(--st-color-ink);
}

@media (max-width: 560px) {
  .st-blog-search {
    width: 100%;
  }
  .st-blog-search__input {
    width: 100%;
    flex: 1;
  }
}

.st-blog-search__submit {
  min-height: 48px;
  padding: 0 20px;
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
  border: 0;
  font-family: inherit;
  font-size: 15px;
  border-radius: var(--st-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.st-blog-search__submit:hover {
  background-color: var(--st-color-brown);
}

/* Blog Post Feed / Query Loop */
.st-post-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .st-post-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .st-post-feed {
    grid-template-columns: 1fr;
  }
}

/* Featured post (first item in blog feed) */
.st-post-feed > li:first-child,
.st-post-feed > .st-feed-card:first-child {
  grid-column: 1 / -1;
  margin-bottom: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--st-color-line);
}

.st-post-feed > li:first-child .st-feed-card,
.st-post-feed > .st-feed-card:first-child {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1000px) {
  .st-post-feed > li:first-child .st-feed-card,
  .st-post-feed > .st-feed-card:first-child {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.st-feed-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-feed-card__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: var(--st-radius);
  background-color: var(--st-color-stone);
}

.st-feed-card__badge {
  display: none;
  font-size: 13px;
  color: var(--st-color-gold-text);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.st-post-feed > li:first-child .st-feed-card__badge,
.st-post-feed > .st-feed-card:first-child .st-feed-card__badge {
  display: block;
}

.st-feed-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.st-feed-card__title a {
  color: var(--st-color-ink);
  text-decoration: none;
}

.st-feed-card__title a:hover {
  color: var(--st-color-gold-text);
}

.st-post-feed > li:first-child .st-feed-card__title,
.st-post-feed > .st-feed-card:first-child .st-feed-card__title {
  font-size: 34px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .st-post-feed > li:first-child .st-feed-card__title,
  .st-post-feed > .st-feed-card:first-child .st-feed-card__title {
    font-size: 26px;
  }
}

.st-feed-card__excerpt {
  display: none;
  font-size: 16px;
  line-height: 1.85;
  color: var(--st-color-body);
  margin: 18px 0 0;
}

.st-post-feed > li:first-child .st-feed-card__excerpt,
.st-post-feed > .st-feed-card:first-child .st-feed-card__excerpt {
  display: block;
}

.st-feed-card__meta {
  font-size: 13px;
  color: var(--st-color-muted);
}

/* Postcard item used in archive and search templates */
.st-postcard-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-postcard-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: var(--st-radius);
  background-color: var(--st-color-stone);
}

.st-postcard-item__date {
  font-size: 13px;
  color: var(--st-color-muted);
}

.st-postcard-item__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.st-postcard-item__title a {
  color: var(--st-color-ink);
  text-decoration: none;
}

.st-postcard-item__title a:hover {
  color: var(--st-color-gold-text);
}

/* Pagination styles */
.st-pagination-wrap {
  padding-top: 48px;
  padding-bottom: 96px;
}

.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--st-color-line);
  color: var(--st-color-ink);
  text-decoration: none;
  border-radius: var(--st-radius);
  background-color: var(--st-color-white);
  font-size: 15px;
  box-sizing: border-box;
}

.wp-block-query-pagination a:hover {
  border-color: var(--st-color-gold-text);
  color: var(--st-color-gold-text);
}

.wp-block-query-pagination .current,
.wp-block-query-pagination .page-numbers.current {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
  border-color: var(--st-color-ink);
}

.wp-block-query-pagination .dots {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-color-muted);
}

/* Single Post Layout */
.st-single-header {
  padding-top: 64px;
  padding-bottom: 40px;
  max-width: 960px;
}

.st-single-title {
  font-size: 44px;
  line-height: 1.35;
  font-weight: 600;
  margin: 24px 0 0;
}

@media (max-width: 768px) {
  .st-single-title {
    font-size: 32px;
  }
}

.st-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--st-color-muted);
}

.st-single-featured-wrap {
  margin-bottom: 64px;
}

.st-single-featured img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
  border-radius: var(--st-radius);
}

.st-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
  padding-bottom: 96px;
}

@media (max-width: 1000px) {
  .st-article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.st-article-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st-sidebar-box {
  border: 1px solid var(--st-color-stone);
  padding: 24px;
  border-radius: var(--st-radius);
  background-color: var(--st-color-white);
}

.st-sidebar-box--dark {
  background-color: var(--st-color-ink);
  color: var(--st-color-cream);
  border-color: var(--st-color-ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-sidebar-box__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFFFFF;
}

.st-sidebar-box__heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--st-color-ink);
  margin-bottom: 14px;
}

.st-sidebar-box__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.st-sidebar-box__links a {
  color: var(--st-color-ink);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.st-sidebar-box__links a:hover {
  color: var(--st-color-gold-text);
}

.st-related-section {
  padding-top: 80px;
  padding-bottom: 96px;
}

/* 404 & Empty State */
.st-404-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.st-no-results {
  padding: 48px 0;
  font-size: 17px;
  color: var(--st-color-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------
 * Chinese Language (zh) Support
 * ------------------------------------------------------------------------- */
body.st-lang-zh,
.st-lang-zh {
  font-family: "IBM Plex Sans Thai", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}

.st-lang-zh .st-eyebrow {
  letter-spacing: 0.09em;
}

.st-lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid #5A4636;
  border-radius: var(--st-radius, 4px);
  overflow: hidden;
}

.st-lang-item {
  padding: 2px 8px;
  color: #E8DFD1;
  text-decoration: none;
  font-size: 12px;
}

.st-lang-item.is-active {
  background-color: var(--st-color-gold, #F1C44D);
  color: var(--st-color-ink, #1C1510);
  font-weight: 600;
}

