@import url("/brand/a11y-control.css");

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/fonts/NotoSansThai-Variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #0b1b2b;
  --ivory: #f4f2ed;
  --paper: #fcfbf8;
  --forest: #17364d;
  --brass: #a98747;
  --brass-soft: #d5c18d;
  --ink: #0b1b2b;
  --ink-soft: #53616b;
  --ink-faint: #78838a;
  --line: #d9d7d0;
  --page-max: 94rem;
  --gutter: clamp(1rem, 2.5vw, 4.75rem);
  --header-height: 5.25rem;
  --nlf-header-shell-height: 5.3125rem;
  --nlf-header-nav-height: 3.25rem;
  --nlf-header-nav-gap: 0rem;
  --nlf-header-nav-font-size: clamp(.76rem,.75vw,.84rem);
  --nlf-header-nav-font-weight: 600;
  --nlf-header-nav-line-height: 1;
  --font-ui:
    "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", Tahoma, sans-serif;
  --font-display: "EB Garamond", "Noto Sans Thai", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[lang="th"] { --font-ui: "Noto Sans Thai", Tahoma, sans-serif; }
html[lang^="zh"] { --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="ja"] { --font-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
html[lang="en"] { --font-ui: ui-sans-serif, system-ui, "Segoe UI", sans-serif; }
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 440;
  line-height: 1.72;
}
html[lang="th"] body {
  font-size: 1.0625rem;
  font-weight: 480;
  line-height: 1.78;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared site chrome */
.content-skip {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.content-skip:focus {
  top: 1rem;
}
.content-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nlf-header-shell-height);
  border-bottom: 1px solid rgb(11 27 43/0.07);
  background: var(--paper);
}
.content-header-inner {
  width: min(100%, var(--page-max));
  height: 100%;
  min-height: var(--nlf-header-shell-height);
  margin: auto;
  padding-inline: var(--gutter);
}
.content-header-primary {
  display: flex;
  min-height: var(--nlf-header-shell-height);
  align-items: center;
}
.content-brand {
  display: flex;
  width: calc(clamp(11.5rem, 15vw, 14.5rem) + 1.25rem);
  height: 3.75rem;
  min-width: 0;
  align-self: center;
  align-items: center;
  gap: 0;
  margin-right: auto;
  padding-right: 1.25rem;
  text-decoration: none;
}
.content-brand img {
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  object-fit: contain;
}
.content-brand strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.content-primary {
  display: flex;
  align-items: stretch;
  gap: var(--nlf-header-nav-gap);
}
.content-primary > a {
  position: relative;
  display: inline-flex;
  min-height: var(--nlf-header-nav-height);
  align-items: center;
  padding-inline: clamp(0.55rem, 0.82vw, 0.8rem);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: var(--nlf-header-nav-font-size);
  font-weight: var(--nlf-header-nav-font-weight);
  line-height: var(--nlf-header-nav-line-height);
  text-decoration: none;
  white-space: nowrap;
}
.content-primary > a:after {
  position: absolute;
  right: 0.75rem;
  bottom: 1rem;
  left: 0.75rem;
  height: 1px;
  content: "";
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}
.content-primary > a:hover,
.content-primary > a:focus-visible {
  color: var(--ink);
}
.content-primary > a:hover:after,
.content-primary > a[aria-current="page"]:after {
  transform: scaleX(1);
  transform-origin: left;
}
.content-header-actions {
  display: contents;
}
.content-header-actions > .content-languages { order: 1; }
.content-header-actions > .content-consult,
.content-consult--mobile { order: 2; align-self: center; }
.content-header-primary > .content-a11y { order: 3; }
.content-mobile-menu { order: 4; align-self: center; }
.content-languages {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid rgb(214 221 217 / 70%);
  border-radius: 999px;
  background: rgb(252 251 248 / 60%);
}
.content-languages a {
  display: inline-flex;
  min-width: 2.25rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.content-languages a.active {
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
}
.content-consult {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0.625rem 1.125rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease);
}
.content-consult:hover {
  background: var(--forest);
  transform: translateY(-0.125rem);
}
.content-a11y {
  position: relative;
}
.content-a11y summary {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  cursor: pointer;
  list-style: none;
}
.content-a11y summary::-webkit-details-marker {
  display: none;
}
.content-a11y summary svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.content-a11y__panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 13rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--paper);
  box-shadow: 0 1rem 2.5rem rgb(11 27 43/0.12);
}
.content-a11y__panel p {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
}
.content-a11y__panel > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.content-a11y__panel button {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
}
.content-a11y__panel button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
}
.content-mobile-menu,
.content-mobile-languages {
  display: none;
}
.content-main {
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

/* Archive */
.content-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(20rem, 34vw);
  align-items: end;
  background: var(--navy);
  color: var(--paper);
}
.content-hero::before {
  position:absolute;
  z-index:0;
  inset:0;
  content:"";
  pointer-events:none;
  background:linear-gradient(90deg,rgb(11 27 43/.98) 0%,rgb(11 27 43/.85) 42%,rgb(11 27 43/.24) 78%),linear-gradient(0deg,rgb(11 27 43/.64),transparent 62%);
}
.content-hero__media { position:absolute; z-index:-1; inset:0; background-position:var(--hero-position-desktop,center); background-size:cover; opacity:0; transition:opacity .9s var(--ease); }
.content-hero__media.is-active { opacity:1; }
.content-hero__inner {
  position:relative;
  z-index:1;
  width: min(100%, var(--page-max));
  margin: auto;
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.25rem);
}
.content-archive__eyebrow,
.content-detail-intro__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.content-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 540;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
html[lang="th"] .content-hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 650;
  letter-spacing: 0;
}
.content-hero__lead {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: rgb(252 251 248/0.73);
  font-size: 1rem;
  line-height: 1.75;
}
.content-hero__rule {
  display: block;
  width: 4rem;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--brass);
}
.content-archive {
  width: min(100%, var(--page-max));
  margin: auto;
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter);
}
.content-archive__top {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: 3.5rem;
}
.content-archive__top h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.5vw, 3.7rem);
  font-weight: 520;
  line-height: 1.08;
}
html[lang="th"] .content-archive__top h2 {
  font-family: var(--font-ui);
  font-weight: 620;
}
.content-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin: 0;
}
.content-search label {
  display: block;
}
.content-search input {
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  border-bottom: 1px solid var(--forest);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
}
.content-search button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.35rem;
  padding: 0 1.35rem;
  background: var(--navy);
  color: var(--paper);
  font-weight: 650;
}
.content-category-label {
  margin: 0 0 0.65rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 650;
}
.content-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.content-categories a {
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}
.content-categories a:first-child {
  padding-left: 0;
}
.content-categories a.active {
  border-color: var(--brass);
  color: var(--forest);
}
.content-items {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3.2vw, 3.75rem);
}
.content-item {
  position: relative;
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.content-item--feature {
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.content-item__index {
  display: none;
}
.content-item__copy {
  max-width: 46rem;
}
.content-item .meta {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.content-item__language {
  display: inline-flex;
  margin-inline-start: .65rem;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: .65rem;
  color: var(--ink-faint);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.content-item h2 {
  margin: 0.6rem 0 0.8rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 650;
  line-height: 1.4;
}
.content-item--feature h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 520;
  line-height: 1.08;
}
html[lang="th"] .content-item--feature h2 {
  font-family: var(--font-ui);
  font-weight: 620;
}
.content-item p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}
.content-item__date {
  display: block;
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
}
.content-item__visual {
  width: 100%;
  aspect-ratio: 40/21;
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--ivory);
  box-shadow: 0 1rem 2.75rem rgb(11 27 43 / 8%);
}
.content-item--feature .content-item__visual {
  aspect-ratio: 40/21;
}
.content-item__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position:var(--cover-position-desktop,50% 50%);
  transition: transform 700ms var(--ease);
}
.content-item:hover .content-item__visual img {
  transform: scale(1.025);
}

/* Detail */
.detail-page {
  padding: 0 var(--gutter) clamp(3.5rem, 5vw, 5rem);
  background: var(--paper);
}
.detail-shell {
  width: min(100%, var(--page-max));
  margin: auto;
}
.crumb {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.15rem 0 1.6rem;
  overflow: visible;
  color: var(--ink-faint);
  font-size: 0.73rem;
  line-height: 1.55;
  white-space: normal;
}
.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}
.crumb span:last-child {
  min-width: 0;
}
.content-hero__crumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.72rem;
  margin-bottom:clamp(1rem,2vw,1.5rem);
  padding:0;
  color:rgb(252 251 248 / 78%);
  font-family:"Noto Sans Thai",Tahoma,sans-serif;
  font-size:.835rem;
  font-weight:650;
  line-height:1.78;
}
.content-hero__crumb a { color:var(--brass-soft); font-weight:750; }
.detail-layout {
  display: grid;
  align-items: start;
  justify-content: center;
}
.detail-layout--article {
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 52rem) minmax(
      14rem,
      17rem
    );
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
}
.detail-article-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 52rem) minmax(
      14rem,
      17rem
    );
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
}
.detail-article-heading .content-detail-intro {
  grid-column: 2 / 4;
  max-width: 71.75rem;
}
.detail-article-heading .content-detail-intro h1 {
  max-width: none;
}
.detail-layout__aside,
.detail-contact {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem);
}
.content-context {
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 1.35rem;
}
.content-context__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}
.content-context h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.4;
}
.detail-toc > p {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 750;
}
.detail-toc ol {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: calc(100dvh - var(--header-height) - 15rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.detail-toc ol::-webkit-scrollbar { display: none; }
.detail-toc a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
  text-decoration: none;
}
.detail-toc__level-3 a {
  padding-left: 0.8rem;
  color: var(--ink-faint);
}
.content-context > a {
  display: block;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--brass);
  font-size: 0.75rem;
  text-decoration: none;
}
.article-prose {
  min-width: 0;
  width: 100%;
  max-width: 52rem;
}
.content-detail-intro {
  padding: 0.2rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}
.content-detail-intro h1 {
  max-width: 22ch;
  margin: 0.35rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.content-detail-intro h1.content-title--long {
  font-size: clamp(2.15rem, 3.35vw, 3.35rem);
}
.content-detail-intro h1.content-title--very-long {
  font-size: clamp(1.95rem, 2.85vw, 2.85rem);
  line-height: 1.14;
}
html[lang="th"] .content-detail-intro h1 {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--ink-faint);
  font-size: 0.76rem;
}
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.detail-meta b {
  color: var(--ink-soft);
  font-weight: 650;
}
.content-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.detail-meta .content-icon {
  color: var(--brass);
}
.lead {
  max-width: 45rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}
.cover-frame {
  margin: 1.75rem 0 2.35rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ivory);
}
.cover-frame img {
  width: 100%;
  max-height: none;
  aspect-ratio: 40/21;
  object-fit:var(--detail-cover-fit,cover);
  object-position:var(--detail-cover-position,50% 50%);
}
.article-prose h2,
.article-prose h3 {
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
}
.article-prose :is(h2,h3)[id] {
  scroll-margin-top: calc(var(--header-height, 5.25rem) + 1.75rem);
}
.article-prose h2 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.38;
}
.article-prose h3 {
  margin: 2.35rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.45;
}
.article-prose p,
.article-prose li {
  font-size: 1rem;
  line-height: 1.95;
}
.article-prose p {
  margin: 1.15rem 0;
}
.article-prose ul,
.article-prose ol {
  padding-inline-start: 1.35rem;
}
.article-prose blockquote {
  margin: 2.2rem 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--brass);
  background: rgb(169 135 71/0.07);
  color: var(--ink-soft);
}
.article-prose hr {
  height: 1px;
  margin: 3rem 0;
  border: 0;
  background: var(--line);
}
.article-prose .article-image {
  margin: 2.75rem 0;
}
.article-prose .article-image[data-align="left"] {
  margin-left: 0;
  margin-right: auto;
}
.article-prose .article-image[data-align="center"] {
  margin-inline: auto;
}
.article-prose .article-image[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}
.article-prose .article-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.article-prose .article-image figcaption {
  padding-top: 0.65rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}
.table-scroll {
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-prose th,
.article-prose td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}
.article-prose th {
  background: var(--navy);
  color: var(--paper);
}
.machine {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--brass);
  background: var(--ivory);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Article actions */
.detail-contact {
  display: grid;
  width: 100%;
  gap: 0.65rem;
  border: 1px solid var(--line);
  padding: 1.15rem;
  border-top: 2px solid var(--brass);
  border-radius: 0.75rem;
  background: var(--paper);
  box-shadow: 0 1rem 2.5rem rgb(11 27 43 / 6%);
}
.detail-contact > p {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}
.detail-contact__action {
  display: flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.detail-contact__action--line {
  background: var(--brass);
}
.content-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.content-share > p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 720;
}
.content-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}
.content-share__action {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}
.content-share__action:last-child { border-right: 0; }
.content-share__action:hover {
  background: color-mix(in srgb, var(--brass) 10%, var(--paper));
  color: var(--forest);
}
.content-share__action span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.content-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.5rem;
}
.content-pagination > div {
  min-width: 0;
}
.content-pagination a,
.content-pagination__empty {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.content-pagination__older {
  justify-content: flex-end;
  text-align: right;
}
.content-pagination span span {
  min-width: 0;
}
.content-pagination small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 720;
}
.content-pagination strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.83rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.content-pagination__empty--right {
  justify-content: flex-end;
  text-align: right;
}
.content-back-top {
  display: table;
  margin: 2.5rem 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-decoration: none;
}
.content-contact-dock {
  display: none;
}

/* Indexable service pages */
.service-ssr {
  background: var(--paper);
}
.service-ssr__hero {
  border-bottom: 3px solid var(--brass);
  background: var(--ivory);
}
.service-ssr__hero > div,
.service-ssr__body {
  width: min(100%, var(--page-max));
  margin: auto;
  padding-inline: var(--gutter);
}
.service-ssr__hero > div {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.service-ssr__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.service-ssr__hero-inner--text {
  grid-template-columns: minmax(0, 52rem);
}
.service-ssr__hero-copy {
  min-width: 0;
}
.service-ssr__visual {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--navy);
  aspect-ratio: 40 / 21;
}
.service-ssr__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-ssr__hero .crumb {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.service-ssr__eyebrow,
.service-ssr__section-heading > p {
  margin: 0 0 0.65rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-ssr__hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="th"] .service-ssr__hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 650;
  line-height: 1.26;
  letter-spacing: 0;
}
.service-ssr__lead {
  max-width: 48rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.85;
}
.service-ssr__body {
  display: block;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.service-ssr__summary {
  position: static;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(32rem, 2fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}
.service-ssr__summary > p {
  margin: 0;
  color: var(--forest);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.55;
}
.service-ssr__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0;
}
.service-ssr__contact a {
  display: flex;
  min-height: 3.5rem;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.service-ssr__contact a + a {
  background: var(--brass);
}
.service-ssr__contact-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  object-fit: contain;
}
.service-ssr__content {
  width: min(100%, 52rem);
  margin: clamp(3.5rem, 7vw, 6.5rem) auto 0;
}
.service-ssr__content > section {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.service-ssr__content > section + section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.service-ssr__scope h2,
.service-ssr__decision h2,
.service-ssr__guide h2,
.service-ssr__documents h2,
.service-ssr__faq h2,
.service-ssr__sources h2,
.service-ssr__related h2 {
  max-width: 22ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  line-height: 1.32;
}
.service-ssr__scope ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem clamp(2rem, 4vw, 4rem);
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.service-ssr__scope li {
  position: relative;
  min-height: 0;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}
.service-ssr__scope li:nth-child(odd) {
  border-right: 0;
}
.service-ssr__scope li::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--brass);
  content: "";
}
.service-ssr__decision {
  border-top: 2px solid var(--brass);
}
.service-ssr__decision p {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  font-weight: 580;
  line-height: 1.85;
}
.service-ssr__guide ol {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.service-ssr__guide li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.service-ssr__guide li > span {
  color: var(--brass);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.service-ssr__guide h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.55;
}
.service-ssr__guide p,
.service-ssr__sources > p {
  margin: .65rem 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}
.service-ssr__documents ul,
.service-ssr__sources ul {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.service-ssr__documents li,
.service-ssr__sources li {
  padding-left: .25rem;
  line-height: 1.75;
}
.service-ssr__sources a {
  color: var(--forest);
  font-weight: 680;
  text-decoration-color: var(--brass);
  text-underline-offset: .22em;
}
.service-ssr__faq details {
  border-top: 1px solid var(--line);
}
.service-ssr__faq details:first-of-type {
  margin-top: 1.5rem;
}
.service-ssr__faq summary {
  min-height: 3.75rem;
  padding: 1rem 2rem 1rem 0;
  color: var(--navy);
  font-weight: 720;
  cursor: pointer;
}
.service-ssr__faq details p {
  margin: -.2rem 0 1.25rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.service-ssr__related {
  margin-top: 0;
}
.service-ssr__articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.5rem;
  background: transparent;
}
.service-ssr__articles a {
  min-width: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
}
.service-ssr__articles h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.service-ssr__articles p {
  display: -webkit-box;
  margin: 0.7rem 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.service-ssr__all {
  display: inline-block;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--brass);
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

/* Album */
.detail-layout--album {
  display: block;
}
.article-prose--album {
  max-width: none;
}
.album-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: start;
}
.album-opening .cover-frame {
  margin: 0;
}
.cover-frame--album button,
.album-gallery__item button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.cover-frame--album img {
  width: 100%;
  max-height: none;
  aspect-ratio: 40/21;
  object-fit: cover;
}
.album-opening__copy .content-detail-intro {
  padding-top: 0.25rem;
}
.album-opening__copy .content-detail-intro h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
}
.detail-contact--album {
  position: static;
  margin-top: 1.75rem;
}
.album-gallery {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.album-gallery__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 520;
}
html[lang="th"] .album-gallery__heading h2 {
  font-family: var(--font-ui);
  font-weight: 620;
}
.album-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.35rem);
  margin-top: 1.75rem;
}
.album-gallery__item {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--ivory);
}
.album-gallery__item:nth-child(4n + 1),
.album-gallery__item:nth-child(4n + 4) {
  grid-column: span 7;
}
.album-gallery__item:nth-child(4n + 2),
.album-gallery__item:nth-child(4n + 3) {
  grid-column: span 5;
}
.album-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}
.album-gallery__item:nth-child(4n + 1) img,
.album-gallery__item:nth-child(4n + 4) img {
  aspect-ratio: 16/9;
}
.album-gallery__item button:hover img {
  transform: scale(1.02);
}

/* Lightbox */
.content-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
}
.content-lightbox::backdrop {
  background: rgb(3 10 17/0.94);
  backdrop-filter: blur(8px);
}
.content-lightbox__chrome {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding: 2rem;
}
.content-lightbox figure {
  display: grid;
  min-width: 0;
  width: 100%;
  height: min(calc(100dvh - 8rem), 58rem);
  max-height: 100%;
  overflow: hidden;
  margin: 0;
  place-items: center;
}
.content-lightbox figure > img {
  width: auto !important;
  height: auto !important;
  max-inline-size: 100% !important;
  max-block-size: min(calc(100dvh - 8rem), 58rem) !important;
  margin: 0 !important;
  place-self: center;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}
.content-lightbox button {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid rgb(252 251 248/0.36);
  border-radius: 50%;
  background: rgb(11 27 43/0.74);
  color: var(--paper);
  font-size: 1.55rem;
  cursor: pointer;
}
.content-lightbox button:hover {
  border-color: var(--brass);
  background: var(--forest);
}
.content-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.5rem;
}
.content-lightbox__previous {
  justify-self: start;
}
.content-lightbox__next {
  justify-self: end;
}
.content-lightbox__counter {
  grid-column: 1/-1;
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
}

/* Footer — same dark, information-rich finish as Home. */
.content-footer {
  border: 0;
  background: var(--navy);
  color: var(--paper);
}
.content-footer__inner {
  display: grid;
  width: min(100%, var(--page-max));
  grid-template-columns: minmax(16rem, 1.1fr) minmax(26rem, 1.7fr) minmax(18rem, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  margin: auto;
  padding: 1.35rem var(--gutter) 0.55rem;
}
.content-footer__inner section,
.content-footer__inner nav {
  min-width: 0;
}
.content-footer__lockup {
  display: block;
  margin-bottom: 0.45rem;
}
.content-footer__lockup img {
  width: clamp(10.75rem, 14vw, 12.5rem);
  height: 2.8rem;
  object-fit: contain;
  object-position: left center;
}
.content-footer__lockup > div { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.content-footer p,
.content-footer a,
.content-footer small {
  color: rgb(252 251 248 / 82%);
  font-size: 0.72rem;
  line-height: 1.4;
}
.content-footer p {
  margin: 0;
}
.content-footer a {
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.content-footer a:hover,
.content-footer a:focus-visible {
  color: #d5c18d;
}
.content-footer ul {
  display: grid;
  gap: 0.15rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-footer p.content-footer__established {
  display: none;
}
.content-footer p.content-footer__label {
  margin: 0 0 0.65rem;
  color: #d5c18d;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.content-footer__visits {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.15rem 0.6rem;
  margin-top: 0.4rem;
}
.content-footer__visits > span {
  grid-row: 1 / span 2;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #d5c18d;
  box-shadow: 0 0 0 0.3rem rgb(213 193 141 / 12%);
}
.content-footer__visits small {
  color: rgb(252 251 248 / 60%);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.content-footer__visits strong {
  color: #d5c18d;
  font-size: 0.9rem;
  line-height: 1;
}
.content-footer__bottom {
  display: flex;
  width: min(100%, var(--page-max));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: auto;
  padding: 0.55rem var(--gutter);
  border-top: 1px solid rgb(252 251 248 / 13%);
  color: rgb(252 251 248 / 55%);
  font-size: 0.68rem;
}
.content-footer__nav ul { grid-template-columns:repeat(3,minmax(0,1fr)); }
.content-footer__contact-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem .75rem; }
.content-footer__contact-list li { min-width:0; }
.content-footer__contact-list a { display:flex; min-height:2.75rem; align-items:center; gap:.55rem; overflow-wrap:anywhere; }
.content-footer__contact-list svg { width:1.15rem; height:1.15rem; flex:0 0 auto; fill:none; stroke:var(--brass); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.content-footer__contact-list .content-footer__line::before { width:1.15rem; height:1.15rem; flex:0 0 auto; background:var(--brass); content:""; -webkit-mask:url("/brand/social/line-mono.svg") center/contain no-repeat; mask:url("/brand/social/line-mono.svg") center/contain no-repeat; }
.content-footer__contact-list .content-footer__line img { display:none; }

@media (max-width: 1279px) {
  .content-primary {
    display: none;
  }
  .content-header-actions {
    display: contents;
  }
  .content-header-actions .content-consult {
    display: inline-flex;
  }
  .content-mobile-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  .content-mobile-menu > summary {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--ink);
    font-size: 0;
    cursor: pointer;
    list-style: none;
  }
  .content-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }
  .content-mobile-menu > summary:before {
    width: 1.45rem;
    height: 0.84rem;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transition: transform 260ms var(--ease);
  }
  .content-mobile-menu[open] > summary:before {
    height: 1px;
    border-bottom: 0;
    transform: rotate(45deg);
    box-shadow: 0 0 0 0 currentColor;
  }
  .content-mobile-menu[open] > summary:after {
    position: absolute;
    width: 1.45rem;
    height: 1px;
    content: "";
    background: currentColor;
    transform: rotate(-45deg);
  }
  .content-mobile-menu[open]:before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgb(5 17 27 / 47%);
    backdrop-filter: blur(3px);
  }
  .content-mobile-panel {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: auto;
    display: grid;
    width: min(88vw, 27rem);
    align-content: start;
    overflow-y: auto;
    padding: 1.25rem clamp(1.2rem, 5vw, 2rem) max(1.5rem, env(safe-area-inset-bottom));
    border-left: 1px solid var(--line);
    border-radius: 1rem 0 0 1rem;
    background: var(--paper);
    box-shadow: -2rem 0 5rem rgb(11 27 43/0.18);
  }
  .content-mobile-menu:not([open]) .content-mobile-panel {
    display: none;
  }
  .content-mobile-panel a {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(.9rem,3.7vw,1rem);
    font-weight: 650;
    text-decoration: none;
  }
  .detail-layout--article {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  }
  .detail-article-heading {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  }
  .detail-article-heading .content-detail-intro {
    grid-column: 2;
  }
  .detail-layout--article > .detail-contact {
    display: none;
  }
  .article-prose {
    max-width: none;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .content-header-actions .content-consult {
    display: inline-flex;
  }
}

/* Unified shell refinements shared with the React header and compact footer. */
.content-primary > .content-a11y { display:none; }
.content-header-primary > .content-a11y { display:block; align-self:center; margin-left:.25rem; }
:root[data-a11y-text="0"] { font-size:90%; }
:root[data-a11y-text="1"] { font-size:95%; }
:root[data-a11y-text="2"] { font-size:100%; }
:root[data-a11y-text="3"] { font-size:110%; }
:root[data-a11y-text="4"] { font-size:122%; }
:root[data-a11y-width="compact"] { --page-max:102rem; --gutter:clamp(.875rem,2.5vw,2.5rem); }
:root[data-a11y-width="standard"] { --page-max:94rem; --gutter:clamp(1.25rem,4vw,4.75rem); }
:root[data-a11y-width="wide"] { --page-max:86rem; --gutter:clamp(1.5rem,6vw,8rem); }
:root[data-a11y-contrast] { --ink:#000; --ink-soft:#111; --ink-faint:#252525; --paper:#fff; --ivory:#fff; --line:#000; --forest:#001d32; --brass:#775500; }
.content-a11y__panel fieldset { margin:.75rem 0 0; border:0; padding:0; }
.content-a11y__panel legend { margin-bottom:.35rem; color:var(--ink-soft); font-size:.72rem; font-weight:700; }
.content-a11y__panel fieldset > div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.2rem; }
.content-a11y__panel fieldset:nth-of-type(2) > div { grid-template-columns:repeat(3,minmax(0,1fr)); }
.content-a11y__panel fieldset button { width:auto; min-width:0; min-height:2.5rem; padding:.3rem; font-size:.68rem; }
.content-a11y__contrast { width:100%; min-height:2.65rem; margin-top:.75rem; }
.content-footer__inner { grid-template-columns:minmax(11rem,.75fr) minmax(27rem,1.8fr) minmax(15rem,.8fr); gap:clamp(1rem,2.4vw,2.3rem); align-items:center; padding-top:.85rem; padding-bottom:.35rem; }
.content-footer__brand > p:not(.content-footer__established) { display:none; }
.content-footer__lockup::before { width:clamp(11.25rem,15vw,13.75rem); height:3rem; }
.content-footer__nav ul { grid-template-columns:repeat(4,minmax(0,1fr)); }
.content-footer__contact-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.3rem .8rem; }
.content-footer__contact-list a { min-height:2.5rem; padding:.25rem 0; border:0; font-size:.68rem; line-height:1.25; }
.content-footer__bottom { min-height:2rem; padding-block:.35rem; }

@media (max-width:1279px) {
  .content-a11y--mobile { display:block; align-self:center; margin-right:.3rem; }
  .content-a11y--mobile > summary { width:2.75rem; height:2.75rem; }
  .content-mobile-panel > .content-a11y { display:none; }
}
@media (max-width:960px) {
  .content-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .content-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width:760px) {
  .content-footer__inner { grid-template-columns:1fr; gap:.45rem; padding:.7rem var(--gutter) .35rem; }
  .content-footer__nav ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .content-footer__contact-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem .8rem; }
  .content-footer__contact-list a { min-height:2.75rem; justify-content:flex-start; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .content-footer__contact-list span { overflow:hidden; text-overflow:ellipsis; }
  .content-footer__bottom { align-items:flex-start; flex-direction:column; gap:.2rem; font-size:.6rem; }
}

@media (max-width: 760px) {
  .cover-frame img { object-fit:var(--detail-cover-fit-mobile,var(--detail-cover-fit,cover)); object-position:var(--detail-cover-position-mobile,var(--detail-cover-position,50% 50%)); }
  .content-item__visual img { object-position:var(--cover-position-mobile,var(--cover-position-desktop,50% 50%)); }
  :root {
    --header-height: 6.75rem;
    --gutter: clamp(1rem, 5vw, 1.5rem);
  }
  .content-header-inner {
    padding-inline: var(--gutter);
  }
  .content-header-primary {
    min-height: 4.25rem;
  }
  .content-header-actions {
    display: contents;
  }
  .content-header-actions > .content-languages,
  .content-header-actions > .content-consult {
    display: none;
  }
  .content-brand {
    width: clamp(8.75rem, 36vw, 11rem);
    height: 3.05rem;
    gap: 0;
    padding-right: 0.5rem;
  }
  .content-brand img {
    width: 100%;
    height: 100%;
  }
  .content-mobile-languages {
    position: relative;
    display: grid;
    height: 2.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: calc(var(--gutter) * -1);
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .content-mobile-languages > a {
    display: flex;
    min-width: 0;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
  }
  .content-mobile-languages > a.active {
    position: relative;
    border-radius: 0;
    background: var(--navy);
    color: var(--paper);
  }
  .content-mobile-languages > a.active::after {
    content: none;
  }
  .content-mobile-languages .content-a11y {
    display: none;
  }
  .content-mobile-panel {
    top: var(--header-height);
  }
  .content-hero {
    min-height: 13.5rem;
  }
  .content-hero__inner {
    padding-block: 2.25rem;
  }
  .content-hero h1,
  html[lang="th"] .content-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .content-hero__inner > p:nth-of-type(2) {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .content-archive {
    padding-block: 3rem calc(6rem + env(safe-area-inset-bottom));
  }
  .content-archive__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
  }
  .content-archive__top h2 {
    font-size: 2.1rem;
  }
  .content-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .content-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-categories a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
  }
  .content-categories a.active {
    border-bottom: 2px solid var(--brass);
  }
  .content-item,
  .content-item--feature {
    grid-column: 1/-1;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .content-item--feature h2 {
    font-size: 1.8rem;
  }
  .detail-page {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
  .crumb {
    padding-bottom: 1.2rem;
  }
  .detail-layout--article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .detail-article-heading {
    grid-template-columns: 1fr;
  }
  .detail-article-heading > span {
    display: none;
  }
  .detail-article-heading .content-detail-intro {
    grid-column: 1;
  }
  .detail-layout__aside {
    position: static;
  }
  .content-context {
    border-top-width: 1px;
  }
  .content-context h2 {
    margin-bottom: 0;
  }
  .detail-toc {
    margin-top: 1rem;
  }
  .content-detail-intro h1,
  html[lang="th"] .content-detail-intro h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }
  .article-prose p,
  .article-prose li {
    font-size: 0.98rem;
    line-height: 1.9;
  }
  html[lang="th"] .article-prose p,
  html[lang="th"] .article-prose li {
    font-size: 1.0625rem;
  }
  .content-share {
    align-items: flex-start;
    flex-direction: column;
  }
  .content-share__actions {
    width: 100%;
  }
  .content-share__action {
    flex: 1 1 2.7rem;
    min-height: 3.25rem;
    padding-inline: 0.45rem;
  }
  .content-share__action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .content-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .content-pagination .content-icon {
    display: none;
  }
  .album-opening {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .album-opening__copy {
    display: contents;
  }
  .album-opening__copy .content-detail-intro {
    order: -1;
  }
  .detail-contact--album {
    display: none;
  }
  .album-gallery {
    margin-top: 3rem;
  }
  .album-gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .album-gallery__item,
  .album-gallery__item:nth-child(n) {
    grid-column: auto;
  }
  .album-gallery__item:nth-child(3n + 1) {
    grid-column: 1/-1;
  }
  .album-gallery__item img,
  .album-gallery__item:nth-child(n) img {
    aspect-ratio: 4/3;
  }
  .content-contact-dock {
    position: fixed;
    z-index: 52;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    box-shadow: 0 -0.5rem 1.4rem rgb(11 27 43/0.13);
  }
  .content-contact-dock .content-contact-action {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brass);
    color: var(--paper);
    font-size: 0.84rem;
    text-decoration: none;
  }
  .content-contact-dock .content-contact-action--call {
    background: var(--navy);
  }
  .content-lightbox__chrome {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 4.5rem auto;
    gap: 0.5rem;
    padding: 1rem;
  }
  .content-lightbox figure {
    grid-column: 1/-1;
    grid-row: 1;
    height: calc(100dvh - 8rem);
  }
  .content-lightbox__previous {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
  }
  .content-lightbox__next {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
  }
  .content-lightbox__previous,
  .content-lightbox__next {
    width: 100%;
    height: 3.5rem;
    border-radius: 0;
  }
  .content-lightbox__counter {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .content-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  .content-footer__inner {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-block: 1.1rem 0.55rem;
  }
  .content-footer__brand {
    grid-column: 1/-1;
  }
  .content-footer__brand > p {
    display: none;
  }
  .content-footer__visits {
    display: inline-flex;
    margin-top: 0.2rem;
  }
  .content-footer__nav,
  .content-footer__contact,
  .content-footer__nav li,
  .content-footer__contact li {
    min-width: 0;
  }
  .content-footer__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.05rem 0.8rem;
  }
  .content-footer__contact ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.8rem;
  }
  .content-footer__nav a,
  .content-footer__contact a {
    display: flex;
    min-height: 2rem;
    align-items: center;
    overflow-wrap: anywhere;
  }
  .content-footer__nav > .content-footer__label,
  .content-footer__contact > .content-footer__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .content-footer__bottom {
    gap: 0.35rem;
    padding-block: 0.5rem;
    font-size: 0.64rem;
    line-height: 1.45;
  }
  .content-footer p,
  .content-footer a,
  .content-footer small {
    font-size: 0.74rem;
    line-height: 1.48;
  }
  .content-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.5rem;
  }
  .service-ssr__hero > div {
    padding-bottom: 3rem;
  }
  .service-ssr__hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-ssr__hero .crumb {
    padding-bottom: 1.75rem;
  }
  .service-ssr__body {
    padding-block: 3rem 4.5rem;
  }
  .service-ssr__summary {
    position: static;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-ssr__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-ssr__contact a:first-child {
    grid-column: 1 / -1;
  }
  .service-ssr__scope ul,
  .service-ssr__articles {
    grid-template-columns: 1fr;
  }
  .service-ssr__scope li:nth-child(odd) {
    border-right: 0;
  }
  .service-ssr__related {
    margin-top: 1.5rem;
  }
}

/* The mobile content menu keeps the shared header visible.  The scrim is a
   real button so clicking outside reliably closes the sheet. */
@media (max-width: 760px) {
  .content-mobile-menu[open] .content-mobile-backdrop {
    position: fixed;
    z-index: 80;
    inset: var(--header-height) 0 0;
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: rgb(5 17 27 / 48%);
    backdrop-filter: blur(3px);
  }
  .content-mobile-menu .content-mobile-panel {
    z-index: 81;
    top: var(--header-height);
    bottom: auto;
    width: min(88vw, 23rem);
    max-height: min(38rem, calc(100dvh - var(--header-height) - .75rem));
    overflow-y: auto;
    border-radius: 0 0 0 .75rem;
  }
  .content-mobile-panel .content-mobile-line {
    margin-top: .55rem;
    border: 0;
    background: var(--brass);
    color: var(--navy);
    justify-content: center;
  }
}
@media (max-width: 390px) {
  .content-brand img {
    display: none;
  }
  .content-brand strong {
    max-width: calc(100vw - 5.5rem);
    font-size: 0.86rem;
  }
  .content-categories {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
@media (forced-colors: active) {
  html {
    scrollbar-width: auto;
  }
  html::-webkit-scrollbar {
    width: auto;
    height: auto;
  }
  .content-categories,
  .table-scroll {
    scrollbar-width: auto;
  }
}

.article-prose a.content-hashtag,
.content-tags a {
  color: #1769aa;
  text-decoration: none;
}
.article-prose a.content-hashtag:hover,
.content-tags a:hover {
  text-decoration: underline;
}
.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 3rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.content-tags a {
  font-size: 0.82rem;
  font-weight: 650;
}
.content-tags span {
  color: #1769aa;
  font-size: 0.82rem;
  font-weight: 650;
}

/* Province and confirmed-client-origin pages use the same editorial shell. */
.place-hero{background:var(--navy);color:var(--paper);padding:clamp(3.75rem,8vw,7rem) var(--gutter) clamp(3.5rem,7vw,6rem)}
.place-hero>div{width:min(100%,76rem);margin-inline:auto}.place-hero>div>p:first-of-type{margin:0 0 1rem;color:var(--brass-soft);font-size:.78rem;font-weight:750}.place-hero h1{max-width:18ch;margin:0;color:var(--paper);font-size:clamp(2.25rem,5vw,4.75rem);font-weight:620;line-height:1.13;letter-spacing:-.025em;text-wrap:balance}.place-hero__lead{max-width:48rem;margin:1.3rem 0 0;color:rgb(252 251 248 / 82%);font-size:clamp(1rem,1.5vw,1.16rem)}
.place-directory__body,.place-page__body{width:min(100%,86rem);margin-inline:auto;padding:clamp(3rem,7vw,6.5rem) var(--gutter) clamp(5rem,10vw,9rem)}.place-directory__body>section+section{margin-top:clamp(3rem,6vw,5rem)}.place-directory__body h2{margin:0 0 1rem;color:var(--forest);font-size:clamp(1.35rem,2.5vw,2rem);font-weight:650}.place-directory__body ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;border-top:1px solid var(--line);list-style:none}.place-directory__body li{min-width:0;border-bottom:1px solid var(--line)}.place-directory__body li:not(:nth-child(3n)){border-right:1px solid var(--line)}.place-directory__body a{display:flex;min-height:6.25rem;flex-direction:column;justify-content:center;gap:.35rem;padding:1rem 1.25rem;color:var(--ink);text-decoration:none;transition:background .35s ease,color .35s ease}.place-directory__body a:hover,.place-directory__body a:focus-visible{background:var(--paper);color:var(--forest)}.place-directory__body a span{font-size:1.05rem;font-weight:680}.place-directory__body a small{color:var(--ink-faint);font-size:.75rem}.place-directory__body--international>section{width:100%}
.place-page__body{display:grid;grid-template-columns:minmax(15rem,21rem) minmax(0,49rem);justify-content:space-between;gap:clamp(2.5rem,7vw,7rem)}.place-page__status{position:sticky;top:calc(var(--header-height) + 2rem);align-self:start;padding-top:1rem;border-top:2px solid var(--brass)}.place-page__status strong{color:var(--forest);font-size:1.05rem}.place-page__status p{margin:.75rem 0 0;color:var(--ink-soft);font-size:.9rem}.place-page__content>section{padding:0 0 2.5rem;border-bottom:1px solid var(--line)}.place-page__content>section+section{padding-top:2.5rem}.place-page__content h2{margin:0 0 .85rem;color:var(--forest);font-size:clamp(1.4rem,2.5vw,2rem);font-weight:650}.place-page__content p,.place-page__content li{color:var(--ink-soft);font-size:1.02rem}.place-page__content ul{margin:0;padding-left:1.25rem}.place-page__content li+li{margin-top:.55rem}.place-page__sources p{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem}.place-page__sources a{color:var(--forest);font-weight:680;text-decoration-color:var(--brass);text-underline-offset:.22em}.place-page__actions{display:flex;flex-wrap:wrap;gap:.65rem;padding-top:2.5rem}.place-page__actions a{display:inline-flex;min-height:3.15rem;align-items:center;justify-content:center;padding:.65rem 1rem;border:1px solid var(--forest);background:var(--forest);color:var(--paper);font-weight:720;text-decoration:none}.place-page__actions a+a{background:transparent;color:var(--forest)}
@media(max-width:820px){.place-directory__body ul{grid-template-columns:repeat(2,minmax(0,1fr))}.place-directory__body li:not(:nth-child(3n)){border-right:0}.place-directory__body li:nth-child(odd){border-right:1px solid var(--line)}.place-page__body{grid-template-columns:1fr;gap:2.5rem}.place-page__status{position:static}}
@media(max-width:460px){.place-hero{padding-top:3rem}.place-hero h1{max-width:15ch;font-size:clamp(2rem,10vw,2.85rem)}.place-directory__body ul{grid-template-columns:1fr}.place-directory__body li:nth-child(odd){border-right:0}.place-directory__body a{min-height:5.25rem}.place-page__actions{flex-direction:column}.place-page__actions a{width:100%}}

/* Place indexes carry only the place name. Status belongs to the detail page. */
.place-directory__body a{min-height:4.5rem;align-items:center;flex-direction:row;gap:0;padding:.9rem 1.25rem;transition:background .2s ease,color .2s ease}
.place-directory__body a small{display:none}
.place-protocol{margin-top:1rem;padding:clamp(1.5rem,3vw,2.5rem);background:var(--paper)}
.place-page__content>.place-protocol{border-bottom:0}
.place-protocol>header{padding-bottom:2rem;border-bottom:2px solid var(--forest)}
.place-protocol>header>p:first-child{margin:0 0 .6rem;color:var(--brass);font-size:.76rem;font-weight:750}
.place-protocol>header h2{margin:0}
.place-protocol>header>p:last-child{margin:.9rem 0 0}
.place-protocol>section{padding:2rem 0 0}
.place-protocol>section+section{margin-top:2rem;border-top:1px solid var(--line)}
.place-protocol h3{margin:0;color:var(--forest);font-size:1.16rem}
.place-protocol section p{margin:.7rem 0 0}
.place-protocol section ul{margin-top:1rem}
.place-protocol section li{font-size:.94rem}
@media(max-width:460px){.place-directory__body a{min-height:4rem}.place-protocol{padding:1.25rem}.place-protocol>section{padding-top:1.5rem}.place-protocol>section+section{margin-top:1.5rem}}

.content-category-picker { margin:0 0 2rem; border-block:1px solid var(--line); }
.content-category-picker > summary { display:flex; min-height:3.25rem; align-items:center; justify-content:space-between; gap:1rem; color:var(--forest); font-size:.86rem; font-weight:750; cursor:pointer; list-style:none; }
.content-category-picker > summary::-webkit-details-marker { display:none; }
.content-category-picker > summary b { display:grid; width:2.25rem; height:2.25rem; place-items:center; font-size:1.15rem; font-weight:500; transition:transform .25s ease; }
.content-category-picker[open] > summary b { transform:rotate(45deg); }
.content-category-picker .content-categories { margin:0; padding:.25rem 0 1rem; border:0; flex-wrap:wrap; overflow:visible; }

/* Final shared-header and compact-reading refinements. */
.content-consult--mobile,
.content-a11y--mobile,
.detail-toc-mobile {
  display: none;
}
.content-item__visual--empty {
  display: none;
}
.content-item:has(.content-item__visual--empty) {
  grid-template-columns: 1fr;
  align-content: start;
}
.cover-frame--album button,
.album-gallery__item button {
  cursor: pointer;
}
.content-hero--article {
  background-color: var(--navy);
  background-image:url("/media/articles-research-v4.jpg");
  background-position:var(--hero-position-desktop,center);
  background-size: cover;
}
.content-hero--album {
  background-color: var(--navy);
  background-image:url("/media/firm-library-v3.jpg");
  background-position:var(--hero-position-desktop,center);
  background-size: cover;
}
@supports (
  background-image: image-set(
      url("/media/firm-signing-jv-v3-1920.avif") type("image/avif") 1x
    )
) {
  .content-hero--article {
    background-image: image-set(
        url("/media/articles-research-v4-1920.avif") type("image/avif") 1x,
        url("/media/articles-research-v4-1920.webp") type("image/webp") 1x
      );
  }
  .content-hero--album {
    background-image: image-set(
        url("/media/firm-library-v3-1920.avif") type("image/avif") 1x,
        url("/media/firm-library-v3-1920.webp") type("image/webp") 1x
      );
  }
}
@media (max-width: 760px) {
  .content-hero::before { background:linear-gradient(0deg,rgb(11 27 43/.96) 0%,rgb(11 27 43/.76) 58%,rgb(11 27 43/.32)); }
  .content-hero--article,.content-hero--album,.content-hero__media { background-position:var(--hero-position-mobile,var(--hero-position-desktop,center)); }
  .content-brand { width:calc(clamp(8.75rem,36vw,11rem) + .25rem); height:3.25rem; padding-right:.25rem; }
  .content-brand img { display:block; width:100%; height:100%; object-fit:contain; }
  .content-consult--mobile {
    display: inline-flex;
    min-height: 2.75rem;
    margin: auto 0.3rem auto 0;
    padding-inline: 0.7rem;
    font-size: 0.76rem;
  }
  .content-a11y--mobile {
    display: block;
    align-self: center;
    margin-right: 0.3rem;
  }
  .content-a11y--mobile > summary {
    width: 2.75rem;
    height: 2.75rem;
  }
  .content-mobile-menu {
    margin-left: 0;
  }
  .content-mobile-menu > summary {
    width: 2.75rem;
    height: 2.75rem;
  }
  .content-a11y--mobile .content-a11y__panel {
    right: -5rem;
    width: min(19rem, calc(100vw - 2rem));
  }
  .content-mobile-panel > .content-a11y {
    display: none;
  }
  .content-context {
    padding: 0.8rem 0;
  }
  .content-context__eyebrow,
  .content-context > h2,
  .content-context > .detail-toc,
  .content-context > a {
    display: none;
  }
  .detail-toc-mobile {
    display: block;
  }
  .detail-toc-mobile summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .detail-toc-mobile summary::-webkit-details-marker {
    display: none;
  }
  .detail-toc-mobile ol {
    display: grid;
    gap: 0.7rem;
    margin: 0.5rem 0 0.75rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    max-height: min(45dvh, 24rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .detail-toc-mobile ol::-webkit-scrollbar { display: none; }
  .detail-toc-mobile a {
    display: block;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.55;
    text-decoration: none;
  }
  .detail-toc-mobile .detail-toc__level-3 a {
    padding-left: 0.85rem;
  }
  .content-lightbox .content-lightbox__previous,
  .content-lightbox .content-lightbox__next {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
  .content-hero--article { background-image:url("/media/articles-research-v4-960.webp"); }
  .content-hero--album { background-image:url("/media/firm-library-v3-960.webp"); }
}
@media (max-width: 350px) {
  .content-brand {
    gap: 0.5rem;
    padding-right: 0.2rem;
  }
  .content-brand strong {
    max-width: 4.8rem;
    font-size: 0.77rem;
  }
  .content-consult--mobile {
    padding-inline: 0.5rem;
  }
}

/* Safe, brand-limited table fills emitted by the Word-like editor. */
.article-prose .content-table-cell--navy {
  background: #0b1b2b;
  color: #fcfbf8;
}
.article-prose .content-table-cell--forest {
  background: #17364d;
  color: #fcfbf8;
}
.article-prose .content-table-cell--brass {
  background: #a98747;
  color: #0b1b2b;
}
.article-prose .content-table-cell--ivory {
  background: #f4f2ed;
  color: #0b1b2b;
}
.article-prose .content-table-cell--paper {
  background: #fcfbf8;
  color: #0b1b2b;
}

/* Shared NATTAPHAK wordmark contract. The content renderer keeps its HTML
   deliberately small, while these lockups use the same vector assets and
   geometry as the React shell. */
.content-brand::before {
  width: clamp(11.5rem, 15vw, 14.5rem);
  height: 3.75rem;
  flex: 0 0 auto;
  content: "";
  background: url("/brand/nattaphak-wordmark.svg") center / contain no-repeat;
}
.content-brand > img,
.content-brand > strong {
  display: none;
}
.content-footer__lockup::before {
  display: block;
  width: clamp(11.25rem, 15vw, 13.75rem);
  height: 3rem;
  flex: 0 0 auto;
  content: "";
  background: url("/brand/nattaphak-wordmark-light.svg") left center / contain no-repeat;
}
.content-footer__lockup > img,
.content-footer__lockup h2 {
  display: none;
}
.content-footer__nav ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
}

@media (max-width: 760px) {
  :root { --header-height: 6.75rem; }
  .content-header { height:var(--header-height); }
  .content-header-inner { height:100%; }
  .content-brand::before {
    width: clamp(8.75rem, 36vw, 11rem);
    height: 3.25rem;
  }
  .content-footer__lockup::before {
    width: min(12.25rem, 62vw);
    height: 2.75rem;
  }
  .content-footer__nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 350px) {
  .content-footer__lockup {
    justify-content: space-between;
    gap: 0.4rem;
  }
  .content-footer__lockup::before {
    width: min(12rem, 68vw);
    height: 2.75rem;
  }
  .content-footer__lockup > div {
    min-width: 0;
    max-width: 4.5rem;
    text-align: right;
  }
  .content-footer p.content-footer__established {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.3;
  }
}
.nlf-text-tight { letter-spacing:-.035em; font-kerning:normal; }
.content-title--tight { letter-spacing:-.035em; }
.content-title--very-tight { letter-spacing:-.065em; }
.content-brand-icon { display:block; width:1.2rem; height:1.2rem; flex:0 0 auto; object-fit:contain; }
.content-brand-icon--line-mono { filter:brightness(0) invert(1); }
.content-share__action .content-brand-icon { width:1.15rem; height:1.15rem; }

/* One shared navigation contract: inline on wide screens, full-viewport drawer
   only when the available width can no longer carry the complete menu. */
.content-primary { display:none; }
.content-mobile-menu {
  position:relative;
  display:flex;
  align-items:center;
  margin-left:.35rem;
}
.content-mobile-menu > summary {
  display:grid;
  width:3.25rem;
  height:3.25rem;
  place-items:center;
  border:0;
  border-radius:.2rem;
  background:transparent;
  color:var(--ink);
  font-size:0;
  cursor:pointer;
  list-style:none;
}
.content-mobile-menu > summary::-webkit-details-marker { display:none; }
.content-mobile-menu > summary::before {
  width:1.45rem;
  height:.84rem;
  border-top:1px solid currentColor;
  border-bottom:1px solid currentColor;
  content:"";
}

/* Match the React header's two-line menu trigger exactly. The content pages
   use a native details/summary disclosure, so the same icon is drawn with
   pseudo-elements instead of duplicating interactive JavaScript. */
.content-mobile-menu > summary {
  position:relative;
  width:2.75rem;
  height:2.75rem;
}
.content-mobile-menu > summary::before,
.content-mobile-menu > summary::after {
  position:absolute;
  right:calc((2.75rem - 1.45rem) / 2);
  width:1.45rem;
  height:1px;
  border:0;
  background:currentColor;
  content:"";
  transform-origin:center;
  transition:transform .2s ease-out,top .2s ease-out,width .2s ease-out;
}
.content-mobile-menu > summary::before { top:calc(50% - .22rem); }
.content-mobile-menu > summary::after { top:calc(50% + .25rem); width:calc(1.45rem * .72); }
.content-mobile-menu[open] > summary::before,
.content-mobile-menu[open] > summary::after { top:50%; width:1.45rem; }
.content-mobile-menu[open] > summary::before { transform:rotate(45deg); }
.content-mobile-menu[open] > summary::after { transform:rotate(-45deg); }
.content-mobile-backdrop {
  position:fixed;
  z-index:190;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background:rgb(5 17 27 / 54%);
  backdrop-filter:blur(8px);
}
.content-mobile-panel {
  position:fixed;
  z-index:200;
  inset:0;
  display:flex;
  width:100%;
  height:100dvh;
  flex-direction:column;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:max(1rem,env(safe-area-inset-top)) max(var(--gutter),1rem) max(1.25rem,env(safe-area-inset-bottom));
  border:0;
  border-radius:0;
  background:var(--paper);
  box-shadow:none;
  backdrop-filter:none;
}
.content-mobile-menu:not([open]) :is(.content-mobile-backdrop,.content-mobile-panel) { display:none; }
.content-mobile-panel__header {
  display:flex;
  min-height:4.25rem;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border-bottom:1px solid var(--line);
  padding-bottom:.75rem;
}
.content-mobile-panel__header > div { display:flex; align-items:center; gap:.35rem; }
.content-mobile-panel__brand { display:inline-flex; min-height:3.25rem; align-items:center; }
.content-mobile-panel__brand img { display:block; width:clamp(10.5rem,22vw,14.5rem); height:3.25rem; object-fit:contain; }
.content-mobile-close {
  position:relative;
  display:grid;
  width:3rem;
  height:3rem;
  place-items:center;
  border:0;
  border-radius:.2rem;
  background:var(--navy);
  color:var(--paper);
}
.content-mobile-close span,
.content-mobile-close span::after { width:1.25rem; height:1px; background:currentColor; content:""; transform:rotate(45deg); }
.content-mobile-close span::after { display:block; transform:rotate(90deg); }
.content-mobile-panel__languages {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  height:2.75rem;
  border-bottom:1px solid var(--line);
}
.content-mobile-panel__languages a {
  display:flex;
  min-width:0;
  min-height:2.75rem;
  align-items:center;
  justify-content:center;
  color:var(--ink-soft);
  font-size:.78rem;
  font-weight:650;
  text-decoration:none;
}
.content-mobile-panel__languages a.active { border-radius:0; background:var(--navy); color:var(--paper); }
.content-mobile-panel__links {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(100%,72rem);
  margin:auto;
  padding-block:clamp(1rem,3vh,2.5rem);
  column-gap:clamp(2rem,8vw,8rem);
}
.content-mobile-panel__links > a {
  display:flex;
  min-height:clamp(3.1rem,7vh,4.5rem);
  align-items:center;
  border-bottom:1px solid color-mix(in srgb,var(--line) 80%,transparent);
  color:var(--ink);
  font-size:clamp(1rem,1.6vw,1.35rem);
  font-weight:650;
  text-decoration:none;
}
.content-mobile-panel__links > a[aria-current="page"] { color:var(--brass); }
.content-mobile-panel__contact {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.5rem;
  width:min(100%,42rem);
  margin:auto auto 0;
  padding-top:1rem;
}
.content-mobile-panel__contact a {
  display:flex;
  min-height:3.25rem;
  margin:0;
  height:100%;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border:1px solid var(--navy);
  border-radius:.2rem;
  background:var(--navy);
  color:var(--paper);
  font-size:.82rem;
  font-weight:700;
  text-decoration:none;
}
.content-mobile-panel__contact svg,
.content-mobile-panel__contact img { width:1.05rem; height:1.05rem; flex:0 0 auto; }
.content-mobile-panel__contact svg { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.content-mobile-panel__contact .content-mobile-line { margin:0; border-color:var(--brass); background:var(--brass); color:var(--navy); }

@media (min-width:1180px) {
  .content-primary { display:flex; }
  .content-mobile-menu { display:none; }
  .content-languages { display:flex; }
}

@media (min-width:761px) and (max-width:1179px) {
  .content-primary { display:none; }
  .content-mobile-menu { display:flex; }
  .content-languages { display:flex; }
}

@media (max-width:760px) {
  .content-mobile-menu { margin-left:.15rem; }
  .content-mobile-menu > summary { width:2.75rem; height:2.75rem; }
  .content-mobile-panel { padding-top:max(.75rem,env(safe-area-inset-top)); }
  .content-mobile-panel__links { grid-template-columns:1fr; margin:0; padding-block:.75rem; }
  .content-mobile-panel__links > a { min-height:3rem; font-size:clamp(.95rem,4.3vw,1.08rem); }
  .content-mobile-panel__header .content-a11y__panel { right:-3.35rem; width:min(18rem,calc(100vw - 2rem)); }
}

@media (prefers-reduced-motion:reduce) {
  .content-mobile-panel { scroll-behavior:auto; }
}

/* The SSR content shell uses the same full-viewport menu geometry as Home.
   Higher specificity intentionally retires the older partial-sheet rules. */
@media (max-width:1179px) {
  .content-header:has(.content-mobile-menu[open]) { backdrop-filter:none; }
  .content-mobile-menu[open] .content-mobile-backdrop {
    position:fixed;
    z-index:190;
    inset:0;
    display:block;
    width:100vw;
    height:100dvh;
    border:0;
    border-radius:0;
    background:rgb(5 17 27 / 54%);
    backdrop-filter:blur(8px);
  }
  .content-mobile-menu .content-mobile-panel {
    position:fixed;
    z-index:200;
    inset:0;
    display:flex;
    width:100vw;
    max-width:none;
    height:100dvh;
    max-height:none;
    flex-direction:column;
    overflow-y:auto;
    padding:max(1rem,env(safe-area-inset-top)) max(var(--gutter),1rem) max(1.25rem,env(safe-area-inset-bottom));
    border:0;
    border-radius:0;
    background:var(--paper);
    box-shadow:none;
    backdrop-filter:none;
  }
}

/* Keep the SSR content header visually identical to the React site shell. */
@media (min-width:761px) {
  .content-header-actions {
    display:flex;
    align-items:center;
    gap:.5rem;
    padding-left:1.25rem;
  }
  .content-languages {
    gap:.125rem;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .content-languages a {
    min-width:2.25rem;
    min-height:2.5rem;
    border-radius:.25rem;
    padding-inline:.5rem;
    font-size:.8125rem;
    font-weight:580;
  }
  .content-languages a.active {
    border-radius:.25rem;
    background:var(--forest);
    color:var(--paper);
  }
  .content-consult {
    min-height:2.75rem;
    padding:.625rem 1rem;
    font-family:var(--font-ui);
    font-size:.975rem;
    line-height:1.78;
  }
}

/* Shared accessibility control: keep SSR geometry identical to the React shell. */
details.content-a11y.a11y-control > .a11y-control__trigger {
  display:inline-grid;
  width:2.75rem;
  height:2.75rem;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);
  border-radius:.25rem;
}
details.content-a11y.a11y-control > .a11y-control__trigger svg {
  width:1.125rem;
  height:1.125rem;
}
details.content-a11y.a11y-control { margin-left:.5rem; }

/* The content shell keeps the same accessibility entry point as Home on phones.
   Languages and the desktop consult action remain hidden inside this group. */
@media (max-width:760px) {
  .content-header .content-brand { width:calc(clamp(8.75rem,36vw,11rem) + .25rem); height:3.05rem; min-height:3.25rem; flex:0 1 auto; padding-right:.25rem; }
  .content-header .content-header-actions {
    display:contents;
  }
  .content-header .content-header-actions > .content-languages,
  .content-header .content-header-actions > .content-consult {
    display:none;
  }
  .content-mobile-panel .content-a11y {
    display:none;
  }
  .content-header .content-consult--mobile { order:2; }
  .content-header > .content-header-inner .content-a11y { order:3; }
  .content-header .content-mobile-menu { order:4; }
  .content-header .content-consult--mobile { margin-right:0; }
  .content-header > .content-header-inner .content-a11y { margin-left:.5rem; }
  .content-header .content-mobile-menu { margin-left:.5rem; }
}

@media (min-width:761px) and (max-width:1179px) {
  .content-mobile-menu { margin-left:.5rem; }
  .content-mobile-menu > summary { width:3.25rem; height:3.25rem; }
}

@media (max-width:360px) {
  .content-header .content-brand {
    width:calc(8.15rem + .25rem);
    height:3.05rem;
  }
  .content-header .content-consult--mobile {
    margin-right:.5rem;
    padding-inline:.5rem;
    font-size:.7rem;
  }
}
