:root {
  --bg: #ffffff;
  --bg-light: #f4f6f9;
  --navy: #003366;
  --navy-dark: #00224d;
  --navy-light: #e8eef5;
  --accent: #c8102e;
  --text: #2d2d2d;
  --text-light: #5a6a7a;
  --border: #d8e2ec;
  --heading: #001a33;
  --allowed: #1a7a3f;
  --notallowed: #9a1a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.top-bar {
  background: var(--navy-dark);
  padding: 0.4rem 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.tb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.top-bar a:hover {
  color: white;
}

header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 3px solid var(--navy);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.logo-ipsc {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-dot {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}

nav a:hover {
  background: var(--navy-light);
  color: var(--navy);
}

.hero {
  background: linear-gradient(
    150deg,
    var(--navy) 0%,
    #004080 60%,
    #0055aa 100%
  );
  padding: 5rem 2rem;
  color: white;
  border-bottom: 4px solid var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-pretitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover {
  background: #a00d25;
  transform: translateY(-2px);
}

.emblem-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.2),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.e-top {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.3rem;
}

.e-year {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.e-bot {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

.pillars-bar {
  background: var(--navy-dark);
  padding: 2rem;
}

.three-pillars {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pillar {
  flex: 1;
  text-align: center;
  color: white;
  padding: 1rem 2rem;
}

.pillar-num {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.pillar-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: white;
}

.pillar-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.pillar-div {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
}

.section {
  padding: 5rem 2rem;
}
.section-light {
  background: var(--bg-light);
}
.section-navy {
  background: var(--navy);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-eyebrow.light {
  color: rgba(255, 255, 255, 0.5);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

h2.light {
  color: white;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 650px;
  margin-bottom: 3rem;
}

.section-lead.light {
  color: rgba(255, 255, 255, 0.65);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}

.about-values {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.vi-icon {
  font-size: 1.2rem;
}

.about-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.num-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-align: center;
}

.nc-big {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.nc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.2rem;
}
.nc-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

.div-table {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.div-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.5fr;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.div-row:last-child {
  border-bottom: none;
}

.div-header {
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.div-row > div {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.div-row > div:last-child {
  border-right: none;
}

.div-row:not(.div-header):hover {
  background: rgba(255, 255, 255, 0.05);
}

.div-name {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.div-name strong {
  color: white;
  font-size: 0.95rem;
}
.div-name span {
  font-size: 0.75rem;
  opacity: 0.55;
}

.allowed {
  background: rgba(26, 122, 63, 0.25);
  color: #6ee7a0;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(110, 231, 160, 0.2);
}

.notallowed {
  background: rgba(154, 26, 42, 0.25);
  color: #fca5a5;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(252, 165, 165, 0.2);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rule-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 1.75rem;
}

.rule-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.rule-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.6rem;
}
.rule-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}
.rule-card strong {
  color: var(--heading);
}

.regions-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.region-zone {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.05);
}

.region-zone h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.75rem;
}
.region-zone p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.region-highlight {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-light);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.tl-year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
  padding-top: 0.2rem;
  position: relative;
}

.tl-year::after {
  content: "";
  position: absolute;
  right: -2.55rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--navy);
}

.tl-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.tl-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

footer {
  background: var(--navy-dark);
  padding: 3.5rem 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.footer-brand span {
  color: var(--accent);
}

footer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.footer-official a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
}
.footer-official a:hover {
  color: white;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.82rem;
}
.footer-links a:hover {
  color: white;
}

/* DISCIPLINES LIST */
.disc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.disc-item {
  background: white;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  transition: background 0.15s;
}

.disc-item:hover {
  background: var(--navy-light);
}

.di-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.18;
  font-family: Georgia, serif;
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
}

.di-content {
  padding: 2rem;
}

.di-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.di-meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.75rem;
}

.di-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 800px;
  line-height: 1.65;
}

.di-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.di-divisions span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: var(--navy-light);
  color: var(--navy);
  border: 1px solid var(--border);
}

/* GLOSSARY */
.gloss-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.gloss-group h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--navy);
}

.gloss-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gloss-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.gloss-entry:last-child {
  border-bottom: none;
}

.gloss-entry dt {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.3rem;
}

.gloss-entry dd {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* COMMUNITY LINKS */
.community-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.comm-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: all 0.2s;
}

.comm-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.comm-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.comm-card span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .emblem-circle {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .div-row {
    grid-template-columns: 1.5fr 1fr;
  }
  .div-row > div:nth-child(n + 3) {
    display: none;
  }
  .three-pillars {
    flex-direction: column;
  }
  .pillar-div {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 600px) {
  nav ul {
    display: none;
  }
  .tb-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .tl-item {
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
  }
  .timeline::before {
    left: 52px;
  }
}
