/* ==================================================
   World Data portal
================================================== */

body.world-site {
  background: #f3f6f8;
  color: #1f2d36;
}

.world-site a {
  color: #176a86;
}

.world-site-header {
  background: #10394a;
  color: #fff;
  box-shadow: 0 2px 12px rgba(8, 31, 43, 0.12);
}

.world-header-width {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.world-parent-brand-bar {
  background: #fff;
  border-bottom: 1px solid #dbe4e8;
}

.world-parent-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  color: #24333b !important;
  text-decoration: none;
}

.world-parent-brand:hover {
  text-decoration: none;
}

.world-parent-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.world-parent-brand-note {
  color: #7b8a91;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-brand-area {
  padding: 27px 0 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(73, 160, 185, 0.22), transparent 34%),
    linear-gradient(135deg, #123d50 0%, #0c3040 100%);
}

.world-brand-copy {
  position: relative;
}

.world-site-name {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.world-site-name a {
  color: inherit;
  text-decoration: none;
}

/* Keep the World Data brand readable on every page.
   On the portal home the brand is an h1, so the generic .world-site h1
   color rule would otherwise override the white header color. */
.world-site-header .world-site-name,
.world-site-header h1.world-site-name,
.world-site-header p.world-site-name {
  color: #fff;
}

.world-site-header .world-site-name a,
.world-site-header .world-site-name a:visited,
.world-site-header .world-site-name a:hover,
.world-site-header .world-site-name a:focus {
  color: #fff;
  text-decoration: none;
}

.world-site-name-en {
  margin: 5px 0 0;
  color: #8ed0e2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.world-site-tagline {
  margin: 12px 0 0;
  color: #dcebf0;
  font-size: 0.98rem;
}

.world-site-nav {
  background: #0a2b39;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.world-site-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.world-site-nav a {
  flex: 0 0 auto;
  padding: 12px 17px;
  border-bottom: 3px solid transparent;
  color: #d7e8ed;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.world-site-nav a:hover,
.world-site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  border-bottom-color: #5fc0d8;
  color: #fff;
  text-decoration: none;
}

.world-site-container {
  max-width: 1240px;
  padding-top: 34px;
}

.world-main-content {
  max-width: none;
}

.world-site .wide-block {
  width: auto;
  margin-left: 0;
  transform: none;
}

.world-site .section-block {
  margin-bottom: 38px;
}

.world-site .breadcrumb {
  color: #6b7e87;
}

.world-site .breadcrumb a {
  color: #39758a;
}

.world-site h1,
.world-site h2,
.world-site h3 {
  color: #18313e;
}

.world-site h2 {
  border-bottom-color: #cddce2;
}

.world-site .category-card,
.world-site .country-stat-card,
.world-site .country-summary-card,
.world-site .country-table-wrap {
  border-color: #d6e1e6;
  box-shadow: 0 8px 24px rgba(25, 57, 70, 0.045);
}

.world-site .country-table th {
  background: #eaf1f4;
}

.world-site .country-table tbody tr:nth-child(even) {
  background: #f7fafb;
}

.world-site.is-world-home .knowledge-page-header {
  display: none;
}

.world-site.is-world-home .knowledge-page-body > p:first-child {
  margin-top: 0;
}

.world-portal-intro {
  max-width: 860px;
  margin: 0 0 30px;
}

.world-portal-intro p {
  margin: 0;
  color: #40545e;
  font-size: 1.08rem;
}

.world-portal-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 42px;
}

.world-portal-primary-card {
  display: block;
  min-height: 210px;
  padding: 30px;
  background: #fff;
  border: 1px solid #d5e1e6;
  border-radius: 14px;
  color: inherit !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(25, 57, 70, 0.055);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.world-portal-primary-card:hover {
  border-color: #78afc1;
  box-shadow: 0 14px 34px rgba(25, 57, 70, 0.09);
  text-decoration: none;
  transform: translateY(-2px);
}

.world-portal-card-kicker {
  display: block;
  margin-bottom: 14px;
  color: #2788a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.world-portal-primary-card strong {
  display: block;
  margin-bottom: 10px;
  color: #163543;
  font-size: 1.55rem;
}

.world-portal-primary-card span:last-child {
  color: #536871;
}

.world-portal-section {
  margin: 0 0 42px;
}

.world-portal-section h2 {
  margin-top: 0;
}

.world-indicator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.world-indicator-link {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: #fff;
  border: 1px solid #d6e1e6;
  border-radius: 10px;
  color: inherit !important;
  text-decoration: none;
}

.world-indicator-link:hover {
  border-color: #7eb2c2;
  text-decoration: none;
}

.world-indicator-link strong {
  color: #173746;
  font-size: 1.05rem;
}

.world-indicator-link span {
  color: #6d7f87;
  font-size: 0.84rem;
}

.world-portal-note {
  padding: 24px 26px;
  background: #e8f0f3;
  border-left: 4px solid #3c91aa;
  border-radius: 8px;
}

.world-portal-note h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.world-portal-note p:last-child {
  margin-bottom: 0;
}

.world-site-footer {
  background: #0d2e3b;
  color: #cfdee3;
}

.world-footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 28px;
  text-align: center;
}

.world-footer-title {
  margin: 0 0 5px;
  font-size: 1.2rem;
  font-weight: 700;
}

.world-footer-title a,
.world-footer-parent a {
  color: #fff;
  text-decoration: none;
}

.world-footer-description {
  margin: 0 0 20px;
  color: #aebfc5;
  font-size: 0.9rem;
}

.world-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
  margin-bottom: 20px;
}

.world-footer-nav a {
  color: #cde4eb;
  font-size: 0.9rem;
}

.world-footer-parent {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.world-site-footer .copyright {
  color: #8fa7b0;
}

@media (max-width: 900px) {
  .world-indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .world-header-width,
  .world-footer-inner {
    width: min(100% - 28px, 1240px);
  }

  .world-parent-brand-note {
    display: none;
  }

  .world-brand-area {
    padding: 22px 0 20px;
  }

  .world-site-name {
    font-size: 2rem;
  }

  .world-site-container {
    padding: 24px 14px 44px;
  }

  .world-portal-primary-grid,
  .world-indicator-grid {
    grid-template-columns: 1fr;
  }

  .world-portal-primary-card {
    min-height: 0;
    padding: 24px;
  }
}
