/* ==========================================================================
   Galaxy Sawasdee Heights Blog
   Tokens lifted directly from the main site stylesheet so /blog/ and /
   render identically. Do not invent new colours or faces here.
   ========================================================================== */

:root {
  /* Palette — extracted from main.css */
  --gsh-navy:        #151e47;   /* --bs-primary on the main site */
  --gsh-navy-hover:  #121a3c;
  --gsh-navy-deep:   #111839;
  --gsh-ink:         #212529;
  --gsh-body:        #4b4b4b;
  --gsh-muted:       #5e5e5e;
  --gsh-muted-soft:  #6c757d;
  --gsh-slate:       #8a8fa3;
  --gsh-line:        #dee2e6;
  --gsh-line-soft:   #e9ecef;
  --gsh-light:       #f7f7f7;
  --gsh-white:       #fff;
  --gsh-whatsapp:    #00a884;

  /* Type */
  --gsh-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --gsh-sans:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --gsh-step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --gsh-step-0:  clamp(.9375rem, .91rem + .18vw, 1rem);
  --gsh-step-1:  clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --gsh-step-2:  clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --gsh-step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --gsh-step-4:  clamp(2rem, 1.6rem + 1.9vw, 3.25rem);

  /* Rhythm */
  --gsh-gap:   1.5rem;
  --gsh-shell: 1200px;
  --gsh-read:  720px;
  --gsh-radius: .5rem;
  --gsh-shadow: 0 2px 14px rgba(21, 30, 71, .08);
  --gsh-shadow-lift: 0 8px 28px rgba(21, 30, 71, .14);
}

/* Self-hosted faces, pulled from the main site so there is no Google Fonts
   request and no second copy of the file. Same origin, so no CORS needed. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(""), url("../fonts/poppins-v20-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(""), url("../fonts/poppins-v20-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(""), url("../fonts/dm-serif-display-v15-latin-regular.woff2") format("woff2");
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--gsh-sans);
  font-size: var(--gsh-step-0);
  line-height: 1.7;
  color: var(--gsh-body);
  background: var(--gsh-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--gsh-display);
  font-weight: 400;
  color: var(--gsh-navy);
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: var(--gsh-step-4); }
h2, .h2 { font-size: var(--gsh-step-3); }
h3, .h3 { font-size: var(--gsh-step-2); }
h4      { font-size: var(--gsh-step-1); }

p { margin: 0 0 1.15rem; }

a { color: var(--gsh-navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gsh-navy-hover); }

:focus-visible {
  outline: 3px solid var(--gsh-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.gsh-shell {
  width: min(100% - 2.5rem, var(--gsh-shell));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gsh-navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- header -- */
.gsh-header {
  background: var(--gsh-light);
  border-bottom: 1px solid var(--gsh-line-soft);
  position: sticky; top: 0; z-index: 50;
}
.gsh-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 84px;
}
.gsh-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.gsh-brand img { height: 60px; width: auto; }
.gsh-brand__text {
  font-family: var(--gsh-display);
  font-size: var(--gsh-step-1);
  color: var(--gsh-navy);
  text-decoration: none;
}

.gsh-header__right { display: flex; align-items: center; gap: 1rem; }

.gsh-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gsh-whatsapp); color: #fff;
  padding: .6rem 1.1rem; border-radius: var(--gsh-radius);
  font-size: var(--gsh-step--1); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: filter .18s ease;
}
.gsh-whatsapp:hover { filter: brightness(.93); color: #fff; }
.gsh-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

/* Nav */
.gsh-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.gsh-nav a {
  font-size: var(--gsh-step--1); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--gsh-navy); text-decoration: none;
  padding: .4rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.gsh-nav a:hover,
.gsh-nav .current-menu-item > a { border-bottom-color: var(--gsh-navy); }

.gsh-nav-toggle {
  display: none; background: none; border: 1px solid var(--gsh-line);
  border-radius: var(--gsh-radius); padding: .5rem .7rem; cursor: pointer;
  color: var(--gsh-navy);
}
.gsh-nav-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }

@media (max-width: 900px) {
  .gsh-nav-toggle { display: inline-flex; }
  .gsh-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--gsh-light); border-bottom: 1px solid var(--gsh-line);
    padding: 1rem 1.25rem 1.5rem;
  }
  .gsh-nav.is-open { display: block; }
  .gsh-nav ul { flex-direction: column; gap: .25rem; }
  .gsh-nav a { padding: .6rem 0; border-bottom: 1px solid var(--gsh-line-soft); width: 100%; }
  .gsh-whatsapp span { display: none; }
  .gsh-whatsapp { padding: .6rem .8rem; }
  .gsh-brand img { height: 46px; }
}

/* ---------------------------------------------------------- page intro -- */
.gsh-intro {
  background: var(--gsh-navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.gsh-intro h1, .gsh-intro .h1 { color: #fff; margin-bottom: .35rem; }
.gsh-intro p { color: rgba(255,255,255,.78); max-width: 62ch; margin: 0; }
.gsh-intro__eyebrow {
  font-size: var(--gsh-step--1); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: .6rem; display: block;
}

/* ------------------------------------------------------------- layout -- */
.gsh-main { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.gsh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 980px) { .gsh-layout { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- post cards -- */
.gsh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--gsh-gap);
}

.gsh-card {
  background: #fff;
  border: 1px solid var(--gsh-line-soft);
  border-radius: var(--gsh-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gsh-card:hover { transform: translateY(-3px); box-shadow: var(--gsh-shadow-lift); }

.gsh-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--gsh-light); overflow: hidden; }
.gsh-card__media img { width: 100%; height: 100%; object-fit: cover; }

.gsh-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.gsh-card__cat {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gsh-slate);
  margin-bottom: .5rem; display: block;
}
.gsh-card__cat a { color: inherit; text-decoration: none; }
.gsh-card__cat a:hover { color: var(--gsh-navy); }

.gsh-card__title { font-size: var(--gsh-step-1); margin: 0 0 .55rem; line-height: 1.3; }
.gsh-card__title a { text-decoration: none; color: var(--gsh-navy); }
.gsh-card__title a:hover { color: var(--gsh-navy-hover); text-decoration: underline; }

.gsh-card__excerpt { font-size: var(--gsh-step--1); color: var(--gsh-muted); margin: 0 0 1rem; }

.gsh-card__meta {
  margin-top: auto; font-size: .78rem; color: var(--gsh-slate);
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center;
}

/* Featured (first post on the archive) */
.gsh-card--wide { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .gsh-card--wide { flex-direction: row; }
  .gsh-card--wide .gsh-card__media { flex: 0 0 46%; aspect-ratio: auto; }
  .gsh-card--wide .gsh-card__body { padding: 2rem 2.25rem; justify-content: center; }
  .gsh-card--wide .gsh-card__title { font-size: var(--gsh-step-2); }
}

/* ---------------------------------------------------------- single post -- */
.gsh-article { max-width: var(--gsh-read); }
.gsh-layout .gsh-article { max-width: none; }

.gsh-article__meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  font-size: var(--gsh-step--1); color: var(--gsh-slate);
  padding-bottom: 1.25rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--gsh-line-soft);
}

.gsh-article__hero { margin: 0 0 2rem; border-radius: var(--gsh-radius); overflow: hidden; }
.gsh-article__hero img { width: 100%; }
.gsh-article__hero figcaption {
  font-size: .8rem; color: var(--gsh-slate); padding: .6rem .2rem 0;
}

.gsh-content { font-size: var(--gsh-step-0); }
.gsh-content > * + * { margin-top: 1.15rem; }
.gsh-content h2 { margin-top: 2.4rem; font-size: var(--gsh-step-2); }
.gsh-content h3 { margin-top: 1.9rem; font-size: var(--gsh-step-1); }
.gsh-content ul, .gsh-content ol { padding-left: 1.35rem; }
.gsh-content li { margin-bottom: .45rem; }
.gsh-content li::marker { color: var(--gsh-navy); }

.gsh-content blockquote {
  margin: 2rem 0; padding: .35rem 0 .35rem 1.5rem;
  border-left: 3px solid var(--gsh-navy);
  font-family: var(--gsh-display); font-size: var(--gsh-step-1);
  color: var(--gsh-navy); line-height: 1.45;
}
.gsh-content blockquote p:last-child { margin-bottom: 0; }

.gsh-content table {
  width: 100%; border-collapse: collapse; font-size: var(--gsh-step--1);
  margin: 1.75rem 0;
}
.gsh-content th, .gsh-content td {
  border: 1px solid var(--gsh-line); padding: .7rem .85rem; text-align: left;
}
.gsh-content th { background: var(--gsh-light); color: var(--gsh-navy); font-weight: 600; }

.gsh-content figure { margin: 2rem 0; }
.gsh-content figcaption { font-size: .8rem; color: var(--gsh-slate); margin-top: .5rem; }

.gsh-content code {
  background: var(--gsh-light); padding: .12em .38em;
  border-radius: 3px; font-size: .9em;
}

.wp-block-image img, .alignwide img, .alignfull img { border-radius: var(--gsh-radius); }
.alignleft  { float: left;  margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

/* Tags */
.gsh-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.gsh-tags a {
  font-size: .78rem; padding: .35rem .8rem;
  background: var(--gsh-light); border: 1px solid var(--gsh-line-soft);
  border-radius: 100px; color: var(--gsh-muted); text-decoration: none;
}
.gsh-tags a:hover { background: var(--gsh-navy); color: #fff; border-color: var(--gsh-navy); }

/* Prev / next */
.gsh-pagination-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gsh-line-soft);
}
@media (max-width: 620px) { .gsh-pagination-post { grid-template-columns: 1fr; } }
.gsh-pagination-post a {
  display: block; padding: 1.1rem 1.25rem;
  border: 1px solid var(--gsh-line-soft); border-radius: var(--gsh-radius);
  text-decoration: none; transition: border-color .18s ease;
}
.gsh-pagination-post a:hover { border-color: var(--gsh-navy); }
.gsh-pagination-post span {
  display: block; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gsh-slate); margin-bottom: .35rem;
}
.gsh-pagination-post strong { font-family: var(--gsh-display); font-weight: 400; color: var(--gsh-navy); }
.gsh-pagination-post .is-next { text-align: right; }

/* ------------------------------------------------------------ sidebar -- */
.gsh-sidebar { position: sticky; top: 108px; }
@media (max-width: 980px) { .gsh-sidebar { position: static; } }

.gsh-widget {
  background: var(--gsh-light);
  border-radius: var(--gsh-radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: var(--gsh-gap);
}
.gsh-widget__title {
  font-size: var(--gsh-step-1); margin: 0 0 1rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--gsh-line);
}
.gsh-widget ul { list-style: none; margin: 0; padding: 0; }
.gsh-widget li { padding: .5rem 0; border-bottom: 1px solid var(--gsh-line-soft); font-size: var(--gsh-step--1); }
.gsh-widget li:last-child { border-bottom: 0; }
.gsh-widget a { text-decoration: none; color: var(--gsh-body); }
.gsh-widget a:hover { color: var(--gsh-navy); text-decoration: underline; }

/* Project CTA — the one place the blog sells the landing page */
.gsh-cta {
  background: var(--gsh-navy); color: #fff;
  border-radius: var(--gsh-radius); padding: 1.75rem 1.6rem;
  margin-bottom: var(--gsh-gap);
}
.gsh-cta h2 { color: #fff; font-size: var(--gsh-step-2); margin-bottom: .5rem; }
.gsh-cta p { color: rgba(255,255,255,.8); font-size: var(--gsh-step--1); margin-bottom: 1.25rem; }
.gsh-cta__stats { list-style: none; margin: 0 0 1.35rem; padding: 0; }
.gsh-cta__stats li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: var(--gsh-step--1);
}
.gsh-cta__stats li:last-child { border-bottom: 0; }
.gsh-cta__stats span { color: rgba(255,255,255,.62); }
.gsh-cta__stats strong { font-weight: 600; text-align: right; }

.gsh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .8rem 1.25rem;
  background: #fff; color: var(--gsh-navy);
  border: 0; border-radius: var(--gsh-radius);
  font-family: var(--gsh-sans); font-size: var(--gsh-step-0); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.gsh-btn:hover { background: rgba(255,255,255,.88); color: var(--gsh-navy-deep); }
.gsh-btn--navy { background: var(--gsh-navy); color: #fff; }
.gsh-btn--navy:hover { background: var(--gsh-navy-hover); color: #fff; }

/* Search */
.gsh-search { display: flex; gap: .5rem; }
.gsh-search input[type="search"] {
  flex: 1; min-width: 0; padding: .65rem .85rem;
  border: 1px solid var(--gsh-line); border-radius: var(--gsh-radius);
  font-family: inherit; font-size: var(--gsh-step--1); color: var(--gsh-ink);
  background: #fff;
}
.gsh-search input[type="search"]:focus { border-color: var(--gsh-navy); outline: none; box-shadow: 0 0 0 3px rgba(21,30,71,.12); }
.gsh-search button {
  padding: .65rem 1.05rem; background: var(--gsh-navy); color: #fff;
  border: 0; border-radius: var(--gsh-radius); cursor: pointer;
  font-family: inherit; font-size: var(--gsh-step--1); font-weight: 600;
}
.gsh-search button:hover { background: var(--gsh-navy-hover); }

/* ---------------------------------------------------------- pagination -- */
.gsh-pagination { margin-top: 2.75rem; }
.gsh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.gsh-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gsh-line); border-radius: var(--gsh-radius);
  text-decoration: none; color: var(--gsh-navy); font-size: var(--gsh-step--1);
}
.gsh-pagination .page-numbers:hover { border-color: var(--gsh-navy); }
.gsh-pagination .page-numbers.current { background: var(--gsh-navy); color: #fff; border-color: var(--gsh-navy); }
.gsh-pagination .dots { border-color: transparent; }

/* ------------------------------------------------------- breadcrumbs -- */
.gsh-crumbs {
  font-size: var(--gsh-step--1); color: rgba(255,255,255,.62);
  margin-bottom: 1rem;
}
.gsh-crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.gsh-crumbs a:hover { color: #fff; text-decoration: underline; }
.gsh-crumbs span[aria-current] { color: #fff; }

/* ------------------------------------------------------------ footer -- */
.gsh-footer {
  background: var(--gsh-navy); color: rgba(255,255,255,.72);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 1.75rem;
  font-size: var(--gsh-step--1);
}
.gsh-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 820px) { .gsh-footer__top { grid-template-columns: 1fr; gap: 1.75rem; } }
.gsh-footer h2 {
  color: #fff; font-size: var(--gsh-step-1); margin-bottom: .9rem;
}
.gsh-footer ul { list-style: none; margin: 0; padding: 0; }
.gsh-footer li { margin-bottom: .5rem; }
.gsh-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.gsh-footer a:hover { color: #fff; text-decoration: underline; }
.gsh-footer__brand img { height: 54px; width: auto; margin-bottom: 1rem; }

.gsh-footer__bottom {
  padding-top: 1.5rem; display: flex; flex-wrap: wrap;
  gap: .5rem 1rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
.gsh-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }

/* Floating WhatsApp, mirrors the main site */
.gsh-float {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gsh-whatsapp); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--gsh-shadow-lift);
}
.gsh-float svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 600px) { .gsh-float { left: 1rem; bottom: 1rem; } }

/* --------------------------------------------------------------- misc -- */
.gsh-empty { text-align: center; padding: 4rem 1rem; }
.gsh-empty h2 { margin-bottom: .5rem; }
.gsh-empty p { color: var(--gsh-muted); margin-bottom: 1.75rem; }
.gsh-empty .gsh-search { max-width: 420px; margin-inline: auto; }

.gsh-404__code {
  font-family: var(--gsh-display); font-size: clamp(5rem, 18vw, 10rem);
  color: var(--gsh-light); line-height: .9; margin-bottom: .5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .gsh-card:hover { transform: none; }
}

@media print {
  .gsh-header, .gsh-footer, .gsh-sidebar, .gsh-float, .gsh-pagination-post { display: none !important; }
  body { color: #000; }
}
