/* News article page. Composition taken from ref/News Article.jpeg:
   quiet, flat and square. Centred title, narrow reading measure, hairline
   rules only, no shadows, no rounded containers, large white margins.
   Mobile-first: the base rules are the 360-430px composition. */

.news-article-page {
  background: #fff;
}

/* Light header, following the Services pattern. */
.news-article-page .site-header {
  color: var(--tank-blue);
  border-bottom-color: rgb(27 20 100 / .16);
}

.news-article-page .brand {
  background-image: var(--pkg-logo-color);
}

.news-article-page .desktop-nav a::after {
  background: var(--tank-blue);
}

.news-article-page .header-contact {
  border-color: rgb(27 20 100 / .46);
}

.news-article-page .header-contact:hover {
  background: var(--tank-blue);
  color: #fff;
}

.news-article-page.menu-open .site-header {
  color: #fff;
}

.news-article-page.menu-open .brand {
  background-image: var(--pkg-logo-white);
}

/* Layout shell for this page only. */
.na-wrap {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------- Article head ---------- */

.na-head {
  padding-block: calc(var(--header-height) + 44px) 0;
  text-align: center;
}

.na-back {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease;
}

.na-back:hover,
.na-back:focus-visible {
  color: var(--tank-blue);
  border-bottom-color: var(--tank-blue);
}

.na-back__arrow {
  font-size: 12px;
  letter-spacing: 0;
}

.na-title {
  max-width: 20ch;
  margin: 0 auto;
  color: var(--tank-blue);
  font-family: "Biennale", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(29px, 8vw, 40px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.na-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.na-meta__dot {
  color: var(--line);
  letter-spacing: 0;
}

.na-head__rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 34px auto 0;
  background: var(--line);
}









/* ---------- Body grid ---------- */

.na-body {
  display: grid;
  gap: 62px;
  padding-block: 46px 0;
}

/* ---------- Article column ---------- */

.na-article {
  min-width: 0;
}

.na-figure {
  margin: 0 0 34px;
}

.na-article p {
  max-width: 66ch;
  margin: 0 0 1.55em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.82;
}

.na-article .na-standfirst {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}




/* 10.2 ปิดท้าย: closing paragraph with the media contact. */
.na-endnote {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.na-article .na-endnote__title {
  margin: 0 0 12px;
  color: var(--tank-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.na-article .na-endnote__text {
  max-width: 46ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.na-endnote__link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .25s ease;
}

.na-endnote__link:hover {
  border-bottom-color: var(--tank-blue);
}

/* ---------- Image placeholders ---------- */

.na-ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--soft-blue);
}

.na-ph--lead {
  aspect-ratio: 4 / 3;
}

.na-ph--card {
  aspect-ratio: 4 / 3;
}




/* ---------- Rails ---------- */

.na-rail {
  min-width: 0;
}

.na-rail__inner {
  display: grid;
  gap: 42px;
}

.na-rail--right .na-block + .na-block {
  margin-top: 42px;
}

/* Below the three-column layout the article already carries a contact block,
   so the rail copy of it would repeat within a screen of itself. */
.na-block--enquiry {
  display: none;
}

.na-block__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}







.na-rail__text {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.na-rail__link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .25s ease;
}

.na-rail__link:hover {
  border-bottom-color: var(--tank-blue);
}

.na-latest {
  margin: 0;
  padding: 0;
  list-style: none;
}

.na-latest__item + .na-latest__item {
  border-top: 1px solid var(--line);
}

.na-latest__item a {
  display: grid;
  gap: 7px;
  padding-block: 16px;
}

.na-latest__item:first-child a {
  padding-top: 0;
}

.na-latest__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.na-latest__title {
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: color .25s ease;
}

.na-latest__item a:hover .na-latest__title,
.na-latest__item a:focus-visible .na-latest__title {
  color: var(--infra-blue);
}

.na-archive {
  margin: 0;
  padding: 0;
  list-style: none;
}

.na-archive li + li {
  border-top: 1px solid var(--line);
}

.na-archive a {
  display: block;
  padding-block: 11px;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  transition: color .25s ease;
}

.na-archive li:first-child a {
  padding-top: 0;
}

.na-archive a:hover,
.na-archive a:focus-visible {
  color: var(--infra-blue);
}

/* ---------- Related updates ---------- */

.na-related {
  margin-top: 66px;
  padding-block: 46px 88px;
  border-top: 1px solid var(--line);
}

.na-related__title {
  margin: 0 0 30px;
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.na-related__grid {
  display: grid;
  gap: 36px;
}

.na-card {
  display: block;
}

/* Caption panel overlapping the lower part of the image, as in the reference. */
.na-card__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  width: calc(100% - 44px);
  margin: -52px auto 0;
  padding: 17px 16px 19px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  transition: border-color .25s ease;
}

.na-card:hover .na-card__panel,
.na-card:focus-visible .na-card__panel {
  border-color: var(--infra-blue);
}

.na-card__category {
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.na-card__title {
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.na-allnews {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  color: var(--tank-blue);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.na-allnews__rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  transition: background .25s ease;
}

.na-allnews:hover .na-allnews__rule,
.na-allnews:focus-visible .na-allnews__rule {
  background: var(--tank-blue);
}

/* ---------- Thai typography ---------- */

html[data-language="th"] .na-title {
  font-family: "DB Helvethaica X", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: clamp(31px, 8.6vw, 44px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}


html[data-language="th"] .na-back,
html[data-language="th"] .na-meta,
html[data-language="th"] .na-block__title,
html[data-language="th"] .na-latest__meta,
html[data-language="th"] .na-card__category,
html[data-language="th"] .na-related__title,
html[data-language="th"] .na-endnote__title,
html[data-language="th"] .na-allnews {
  font-family: "DB Helvethaica X", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-micro);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}



html[data-language="th"] .na-article p {
  font-family: "TH Sarabun New", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-body);
  line-height: 1.62;
  max-width: 44ch;
}

html[data-language="th"] .na-article .na-standfirst {
  font-size: var(--th-lead);
  line-height: 1.55;
}


html[data-language="th"] .na-article .na-endnote__text {
  max-width: 36ch;
  font-family: "TH Sarabun New", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-action);
  line-height: 1.5;
}

html[data-language="th"] .na-article .na-endnote__title {
  font-family: "DB Helvethaica X", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-micro);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

html[data-language="th"] .na-rail__text,
html[data-language="th"] .na-rail__link,
html[data-language="th"] .na-endnote__link,
html[data-language="th"] .na-latest__title,
html[data-language="th"] .na-archive a,
html[data-language="th"] .na-card__title {
  font-family: "TH Sarabun New", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-action);
  line-height: 1.45;
}


/* ---------- 720px and up ---------- */

@media (min-width: 720px) {
  .na-head {
    padding-block: calc(var(--header-height) + 74px) 0;
  }

  .na-back {
    margin-bottom: 58px;
  }

  .na-title {
    max-width: 18ch;
    font-size: clamp(40px, 5.6vw, 56px);
  }

  html[data-language="th"] .na-title {
    font-size: clamp(42px, 5.8vw, 58px);
  }

  .na-meta {
    gap: 12px;
    margin-top: 26px;
    font-size: 11px;
  }

  .na-head__rule {
    width: 72px;
    margin-top: 44px;
  }



  .na-body {
    padding-top: 62px;
  }

  .na-figure {
    margin-bottom: 44px;
  }

  .na-ph--lead {
    aspect-ratio: 16 / 10;
  }

  /* The reference keeps related posts inside the reading column, not across
     the full page. Hold them to a centred measure. */
  .na-related .na-wrap {
    max-width: 860px;
  }

  .na-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .na-card__panel {
    width: calc(100% - 56px);
    margin-top: -58px;
    padding: 20px 18px 22px;
  }

  .na-rail__inner {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
  }

  .na-rail--right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
  }

  .na-rail--right .na-block + .na-block {
    margin-top: 0;
  }
}

/* ---------- 1024px and up: three columns, article flanked by hairlines ---------- */

@media (min-width: 1024px) {
  .na-head {
    padding-block: calc(var(--header-height) + 96px) 0;
  }

  .na-title {
    max-width: 17ch;
    font-size: clamp(52px, 4.6vw, 62px);
  }

  html[data-language="th"] .na-title {
    font-size: clamp(52px, 4.8vw, 64px);
  }

  .na-body {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6.4fr) minmax(0, 3fr);
    gap: 0;
    padding-top: 74px;
  }

  .na-article {
    grid-column: 2;
    grid-row: 1;
    padding-inline: clamp(34px, 3.6vw, 58px);
    border-inline: 1px solid var(--line);
  }

  .na-rail--left {
    grid-column: 1;
    grid-row: 1;
    padding-right: clamp(24px, 2.4vw, 40px);
  }

  .na-rail--right {
    grid-column: 3;
    grid-row: 1;
    display: block;
    padding-left: clamp(24px, 2.4vw, 40px);
  }

  .na-rail--right .na-block + .na-block {
    margin-top: 46px;
  }

  .na-rail__inner {
    position: sticky;
    top: calc(var(--header-height) + 26px);
    display: block;
  }

  .na-rail__inner .na-block + .na-block {
    margin-top: 46px;
  }

  .na-block--enquiry {
    display: block;
  }

  .na-related {
    margin-top: 84px;
    padding-block: 54px 110px;
  }

  .na-related__grid {
    gap: 40px;
  }
}

/* ---------- Content v2.1 additions ---------- */

.news-article-page .na-dateline { color: var(--tank-blue); font-weight: 700; }

.news-article-page .na-figure { margin: 6px 0 34px; }

.news-article-page .na-caption {
  max-width: 66ch;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.news-article-page .na-card__category { font-size: 11px; }

.news-article-page .na-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.news-article-page .na-rail__text--contact { margin-bottom: 4px; color: var(--tank-blue); font-weight: 700; }

.news-article-page .na-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.news-article-page .na-article .na-share__title {
  margin: 0;
  color: var(--tank-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.news-article-page .na-share__links { display: flex; flex-wrap: wrap; gap: 8px; }

.news-article-page .na-share__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--tank-blue);
  font: 700 13px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.news-article-page .na-share__link:hover {
  border-color: var(--tank-blue);
  background: var(--tank-blue);
  color: #fff;
}

html[data-language="th"] .news-article-page .na-caption,
html[data-language="th"] .news-article-page .na-facts {
  font-family: "TH Sarabun New", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-action);
  line-height: 1.4;
}

html[data-language="th"] .news-article-page .na-card__category { font-size: var(--th-note); }

html[data-language="th"] .news-article-page .na-article .na-share__title,
html[data-language="th"] .news-article-page .na-share__link {
  font-family: "DB Helvethaica X", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--th-micro);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

/* Thai headline: wider measure so each phrase stays on one line. */
html[data-language="th"] .news-article-page .na-title { max-width: none; }

@media (min-width: 720px) {
  html[data-language="th"] .news-article-page .na-title { max-width: 820px; }
}

@media (min-width: 1024px) {
  html[data-language="th"] .news-article-page .na-title { max-width: 900px; font-size: clamp(48px, 4vw, 58px); }
}
