:root {
  color-scheme: light;
  --ink: #0b172a;
  --blue: #1859d1;
  --blue-dark: #0e3d98;
  --green: #16a66a;
  --amber: #f3a712;
  --cloud: #f4f7fb;
  --paper: #ffffff;
  --muted: #5a6575;
  --border: #dce3ed;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(11, 23, 42, 0.1);
  --radius: 14px;
  --shell: min(1180px, calc(100% - 32px));
  font-family:
    'Noto Sans Khmer',
    'Khmer UI',
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.65;
  max-width: 100%;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.utility {
  background: #07101f;
  color: #dfe8f7;
  font-size: 0.78rem;
}
.utility .shell {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.utility a {
  color: #a8d4ff;
}
.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switch a {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #dfe8f7;
}
.lang-switch a[aria-current='page'] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 8px 20px rgba(24, 89, 209, 0.25);
}
.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0;
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.89rem;
  font-weight: 750;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}
.header-tools {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.menu-button {
  display: none;
}
.mobile-home-header {
  display: none;
}
.ticker {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.ticker .shell {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding-block: 10px;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
  border-radius: 999px;
  padding: 4px 10px;
}
.ticker-items {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  min-width: 0;
}
.page {
  padding-block: 26px 64px;
}
.section {
  margin-top: 42px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 900;
  font-size: 0.72rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
}
.text-link {
  color: var(--blue);
  font-weight: 800;
}
.mobile-break {
  display: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 20px;
}
.lead-card,
.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lead-card {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: end;
  color: white;
  box-shadow: var(--shadow);
}
.lead-art {
  position: absolute;
  inset: 0;
  display: block;
}
.lead-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.05) 28%, rgba(7, 16, 31, 0.88) 100%);
}
.lead-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-copy {
  position: relative;
  padding: 32px;
  max-width: 720px;
  min-width: 0;
  background: linear-gradient(transparent, rgba(7, 16, 31, 0.94));
  width: 100%;
}
.lead-copy h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  margin: 10px 0 14px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #dce7f7;
  font-size: 0.82rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  background: #eaf1ff;
  color: var(--blue-dark);
}
.tag.green {
  background: #e5f8ef;
  color: #0b754a;
}
.side-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
}
.thumb {
  min-height: 92px;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}
.news-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.news-card > span {
  min-width: 0;
}
.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.score-card {
  padding: 18px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 850;
}
.team:last-child {
  text-align: right;
}
.versus {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cloud);
  font-size: 0.7rem;
  color: var(--muted);
}
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cluster-card {
  padding: 20px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cluster-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 900;
}
.cluster-card p {
  color: var(--muted);
  font-size: 0.86rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.guide-feature {
  padding: 0;
  background: var(--ink);
  color: white;
  border: none;
  min-height: 330px;
  overflow: hidden;
}
.guide-photo,
.guide-photo img,
.guide-card-image,
.guide-card-image img {
  display: block;
  width: 100%;
}
.guide-photo {
  aspect-ratio: 3 / 2;
  max-height: 290px;
  overflow: hidden;
}
.guide-photo img,
.guide-card-image img {
  height: 100%;
  object-fit: cover;
}
.guide-feature-copy {
  padding: 24px 28px 28px;
}
.guide-feature p {
  color: #cbd7e8;
  max-width: 55ch;
}
.guide-feature .text-link {
  display: inline-block;
  margin-top: 12px;
}
.guide-list {
  display: grid;
  gap: 12px;
}
.guide-list .card {
  padding: 0;
  overflow: hidden;
}
.guide-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.78fr) 1fr;
  align-items: stretch;
}
.guide-card-image {
  min-height: 142px;
  overflow: hidden;
}
.guide-card-copy {
  padding: 16px;
}
.trust-strip {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trust-point {
  padding: 0;
  border-radius: 12px;
  background: var(--cloud);
  overflow: hidden;
  border: 1px solid var(--border);
}
.trust-point img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.trust-point-copy {
  display: block;
  padding: 12px;
}
.trust-point strong {
  display: block;
  color: var(--blue);
  font-size: 1.2rem;
}
.authors {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -8px;
  background: var(--ink);
  color: white;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 850;
}
.avatar:first-child {
  margin-left: 0;
}
.author-status {
  color: var(--muted);
  font-size: 0.78rem;
}
.responsibility {
  margin-top: 42px;
  padding: 18px 20px;
  border-left: 4px solid var(--danger);
  background: #fff3f2;
  color: #6f261f;
  border-radius: 10px;
}
.footer {
  background: var(--ink);
  color: #dce7f7;
  padding: 46px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}
.footer h3 {
  color: white;
  margin-bottom: 10px;
}
.footer a {
  display: block;
  color: #b8c7dc;
  padding-block: 4px;
  font-size: 0.86rem;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.75rem;
  color: #96a8c1;
}

/* Article */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 22px;
}
.article-hero {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-heading {
  padding: clamp(24px, 5vw, 54px);
  max-width: 980px;
  min-width: 0;
  overflow: hidden;
}
.article-heading h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  margin: 10px 0 16px;
}
.dek {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 760px;
}
.author-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.author-line > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.author-line .avatar {
  margin: 0;
}
.article-art {
  aspect-ratio: 2.2/1;
  display: block;
  overflow: hidden;
}
.article-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  margin-top: 30px;
}
.article-body {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 50px);
}
.article-body > * {
  max-width: 720px;
  margin-inline: auto;
}
.article-body p {
  font-size: 1.04rem;
}
.article-body h2 {
  margin-top: 42px;
}
.article-body h3 {
  margin-top: 30px;
}
.toc {
  padding: 18px 20px;
  background: var(--cloud);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.toc ol {
  margin-bottom: 0;
  padding-left: 22px;
}
.fact-box {
  padding: 18px;
  border-left: 4px solid var(--green);
  background: #ecfaf4;
  border-radius: 10px;
  margin-block: 28px;
}
.source-box {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.88rem;
}
.sidebar {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 14px;
}
.sidebar .panel {
  padding: 18px;
}
.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-row button {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: 15px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 850;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-grid .card {
  padding: 18px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .menu-button {
    display: grid;
  }
  .hero-grid,
  .guide-grid,
  .trust-strip,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .news-card {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 22px, 1180px);
  }
  .utility .shell {
    min-height: 38px;
  }
  .utility-copy {
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-row {
    min-height: 62px;
    gap: 10px;
  }
  .site-header {
    position: static;
  }
  body.home-page .site-header {
    display: none;
  }
  .mobile-home-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
  }
  .mobile-break {
    display: block;
  }
  .brand {
    min-width: 0;
    font-size: 0.9rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-copy small {
    display: none;
  }
  .header-tools .icon-button:first-child {
    display: none;
  }
  .page {
    padding-top: 14px;
  }
  .hero-grid {
    gap: 12px;
  }
  .lead-card {
    min-height: 430px;
  }
  .lead-copy {
    padding: 22px;
  }
  .lead-copy h2 {
    font-size: 1.72rem;
    line-height: 1.28;
    word-break: break-all;
  }
  .side-stack {
    grid-template-columns: 1fr;
  }
  .news-card {
    grid-template-columns: 102px 1fr;
    padding: 12px;
  }
  .score-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .score-card {
    min-width: 280px;
    scroll-snap-align: start;
  }
  .cluster-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .cluster-card {
    min-width: 240px;
    scroll-snap-align: start;
  }
  .trust-points {
    grid-template-columns: 1fr;
  }
  .trust-point {
    display: grid;
    grid-template-columns: 42% 1fr;
    align-items: center;
  }
  .trust-point img {
    height: 100%;
    min-height: 132px;
  }
  .footer-grid,
  .sidebar,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-heading {
    padding: 24px 20px;
  }
  .article-heading h1 {
    font-size: 1.68rem;
    line-height: 1.3;
    word-break: break-all;
  }
  .lead-copy p,
  .meta,
  .news-card h3,
  .article-heading .dek,
  .author-line {
    line-break: anywhere;
    white-space: normal;
    word-break: break-all;
  }
  .ticker-items {
    overflow-x: auto;
  }
  .article-art {
    aspect-ratio: 1.35/1;
  }
  .article-body {
    padding: 22px 18px;
  }
  .article-body p {
    font-size: 1rem;
  }
  .breadcrumbs {
    white-space: nowrap;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress production integration */
.search-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.archive-header,
.error-page {
  padding: clamp(36px, 6vw, 72px) 0 32px;
}

.archive-header h1,
.error-page h1,
.page-content h1 {
  margin: 6px 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.narrow-shell {
  max-width: 900px;
}

.page-content {
  margin-bottom: 72px;
}

.page-content > *:not(.alignwide, .alignfull) {
  max-width: 760px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.article-body a,
.page-content a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--green);
  color: var(--slate);
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 680px;
}

.search-field {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.search-submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 64px;
}

.page-numbers {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 900px) {
  .header-row {
    flex-wrap: wrap;
  }

  .menu-button {
    display: grid;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    order: 4;
    padding: 8px 0 16px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 10px 0;
  }

  .search-link {
    margin-left: 4px;
  }
}

@media (max-width: 560px) {
  .article-heading h1,
  .lead-copy h2 {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .lead-copy p,
  .meta,
  .article-heading .dek,
  .author-line {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

.site-intro {
  max-width: 860px;
  padding: 34px 0 24px;
}

.site-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.site-intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #0b63f6;
  outline-offset: 3px;
}
