:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #536173;
  --line: #d8e0e8;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --navy: #10233f;
  --teal: #0f9f95;
  --teal-dark: #08766f;
  --gold: #b5852d;
  --red: #c94a4a;
  --shadow: 0 18px 50px rgba(16, 35, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #314258;
  font-size: 14px;
  font-weight: 650;
}

nav a,
.footer-links a,
.related-links a {
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover,
.related-links a:hover {
  color: var(--teal-dark);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-cta,
.button-primary {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.button-primary:hover,
.header-cta:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 140px));
  display: grid;
  align-items: center;
  padding: 76px 5vw 72px;
  color: white;
  background-image: url("../img/philippines-stablecoin-hero.png");
  background-position: center right;
  background-size: cover;
  overflow: hidden;
}

.hero-compact {
  min-height: 58vh;
  padding-top: 86px;
  padding-bottom: 86px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 22, 42, 0.96) 0%, rgba(9, 22, 42, 0.86) 38%, rgba(9, 22, 42, 0.26) 76%, rgba(9, 22, 42, 0.08) 100%),
    linear-gradient(0deg, rgba(9, 22, 42, 0.24), rgba(9, 22, 42, 0.02));
}

.hero-content {
  position: relative;
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-compact h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.hero-content p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 18px;
}

.hero-note {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.intent-strip {
  display: flex;
  gap: 10px;
  padding: 18px 5vw;
  overflow-x: auto;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.intent-strip span {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  width: min(1180px, 90vw);
  margin: 72px auto;
}

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

.intent-line {
  padding: 18px 20px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 26px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.content-section h2,
.faq-block h2,
.cta-panel h2,
.related-panel h2 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.content-section p,
.content-section li,
.faq-block p,
.cta-panel p,
.site-footer p {
  color: var(--muted);
}

.content-section ul,
.sources ul {
  padding-left: 20px;
}

.content-section li + li {
  margin-top: 10px;
}

.query-intent-block {
  display: grid;
  gap: 16px;
  margin: 30px 0 8px;
  padding: 24px;
  background: #f7fbfb;
  border: 1px solid #cde7e4;
  border-radius: 8px;
}

.query-intent-block h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.18;
}

.query-intent-block p {
  margin: 0;
  color: var(--muted);
}

.query-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.query-variant-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.sources a {
  color: var(--teal-dark);
  font-weight: 750;
}

.faq-block {
  padding: 48px 0 0;
}

.calculator-block {
  display: grid;
  gap: 24px;
  margin: 46px 0;
  padding: 30px;
  background: #eef7f6;
  border: 1px solid #cde7e4;
  border-radius: 8px;
}

.calculator-block h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.16;
}

.calculator-block p {
  color: var(--muted);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.calculator-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.calculator-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #b7d8d5;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-result div {
  padding: 18px;
  background: white;
  border: 1px solid #cde7e4;
  border-radius: 8px;
}

.calculator-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-result strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.route-table-block {
  display: grid;
  gap: 22px;
  margin: 46px 0;
  padding: 30px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-table-block h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.16;
}

.route-table-block p {
  color: var(--muted);
}

.route-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.route-row {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 1.45fr 1.35fr;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row > * {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.route-row > *:last-child {
  border-right: 0;
}

.route-head {
  color: white;
  background: var(--navy);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.route-row strong {
  color: var(--navy);
}

.route-row span {
  color: var(--muted);
}

[data-source-ledger="official-sources"] .route-row {
  grid-template-columns: 1fr 1.25fr 1.2fr;
}

[data-source-ledger="official-sources"] .route-row strong small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.registration-checklist-block .route-row {
  grid-template-columns: 0.35fr 1.25fr 1.6fr;
}

.registration-checklist-block .route-row strong {
  color: var(--teal-dark);
}

.site-search-block {
  display: grid;
  gap: 22px;
  margin: 46px 0;
  padding: 30px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-search-block h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.16;
}

.site-search-block p {
  color: var(--muted);
}

.site-search-form {
  display: grid;
  gap: 10px;
}

.site-search-form label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-search-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.site-search-form input {
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.site-search-results {
  display: grid;
  gap: 10px;
}

.search-result-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--navy);
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-result-card span,
.muted-result {
  color: var(--muted);
  font-size: 14px;
}

.high-intent-routes {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 5vw 4px;
}

.high-intent-routes h2 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.high-intent-routes p {
  color: var(--muted);
}

.intent-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intent-route-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  color: var(--navy);
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 35, 63, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.intent-route-card:hover,
.intent-route-card:focus-visible {
  border-color: #5fc5ba;
  box-shadow: 0 18px 42px rgba(16, 35, 63, 0.13);
  transform: translateY(-2px);
}

.intent-route-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.intent-route-card strong {
  font-size: 18px;
  line-height: 1.14;
}

.intent-route-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 18px 0;
  color: var(--navy);
  font-weight: 800;
}

details p {
  max-width: 720px;
  padding-bottom: 18px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cta-panel,
.related-panel {
  position: sticky;
  top: 96px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.related-panel {
  position: static;
  box-shadow: none;
}

.cta-kicker {
  color: var(--teal-dark) !important;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.fine-print {
  margin-top: 18px;
  color: #6b7280 !important;
  font-size: 12px;
  line-height: 1.55;
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-links a {
  padding: 12px 0;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.topic-cluster-block {
  display: grid;
  gap: 22px;
  padding: 42px;
  background: #f7fbfb;
  border: 1px solid #d9e8e6;
  border-radius: 8px;
}

.topic-cluster-block h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.topic-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-cluster-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-cluster-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.topic-cluster-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.intent-tags,
.cluster-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-tags span,
.cluster-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--navy);
  background: #eef5f6;
  border: 1px solid #d4e4e6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.cluster-links a {
  color: var(--teal-dark);
  background: #f9fbfb;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 48px 5vw;
  background: #f0f4f8;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.not-found {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 84px 0;
}

.not-found-hero {
  padding: 52px;
  color: white;
  background:
    linear-gradient(125deg, rgba(16, 35, 63, 0.96), rgba(15, 159, 149, 0.82)),
    url("../img/philippines-stablecoin-hero.png") center right / cover;
  border-radius: 8px;
}

.not-found-hero h1 {
  max-width: 780px;
  font-size: clamp(36px, 5vw, 64px);
}

.not-found-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.not-found-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.not-found-link {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px;
  color: var(--navy);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.not-found-link span {
  font-size: 18px;
  font-weight: 850;
}

.not-found-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
  }

  .header-cta {
    position: absolute;
    top: 14px;
    right: 5vw;
  }

  .hero {
    min-height: 78vh;
    padding-top: 82px;
    padding-bottom: 80px;
    background-position: center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9, 22, 42, 0.96) 0%, rgba(9, 22, 42, 0.82) 66%, rgba(9, 22, 42, 0.46) 100%);
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 46px;
  }

  .high-intent-routes {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .not-found-links {
    grid-template-columns: 1fr;
  }

  .not-found-hero {
    padding: 34px;
  }
}

@media (max-width: 620px) {
  .brand {
    max-width: calc(100% - 112px);
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
    padding-bottom: 78px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 34px 0;
  }

  .content-section h2,
  .faq-block h2,
  .calculator-block h2,
  .cta-panel h2,
  .related-panel h2 {
    font-size: 24px;
  }

  .calculator-form,
  .calculator-result,
  .intent-route-grid {
    grid-template-columns: 1fr;
  }

  .route-row,
  .route-head {
    grid-template-columns: 1fr;
  }

  .registration-checklist-block .route-row {
    grid-template-columns: 1fr;
  }

  .route-head {
    display: none;
  }

  .route-row {
    border-bottom: 1px solid var(--line);
  }

  .route-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-row > *:last-child {
    border-bottom: 0;
  }

  .topic-cluster-block {
    padding: 28px;
  }

  .topic-cluster-grid {
    grid-template-columns: 1fr;
  }

  .site-search-form div {
    grid-template-columns: 1fr;
  }
}
