/* Geomatics in Practice (GEO5016) — site styles, layered on top of chota.css */

:root {
  --tu-navy: #16385e;
  --tu-blue: #1e60ac;
  --tu-cyan: #6fd4ec;
  --tu-ink: #24303c;
  /* Retint chota's primary colour (links, buttons) to TU Delft blue */
  --color-primary: var(--tu-blue);
}

body {
  color: var(--tu-ink);
}

h1, h2, h3, h4 {
  color: var(--tu-navy);
  font-weight: 600;
}

.container {
  max-width: 800px; /* adjust this as desired */
  margin-left: auto;
  margin-right: auto;
}
.container.wide {
  max-width: min(98vw, 1700px);
  width: 100%;
}
/* The header needs more room than the 800px content column for brand + nav */
.site-header .container {
  max-width: 1100px;
}
.site-header .container.wide {
  max-width: min(98vw, 1700px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-lightGrey);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tu-navy);
}
.brand:hover {
  opacity: 1;
}
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
}
.brand-code {
  margin-left: 0.2rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--tu-blue);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.site-nav-links a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  color: var(--tu-ink);
  font-size: 1.45rem;
  font-weight: 500;
}
.site-nav-links a:hover {
  background: rgba(30, 96, 172, 0.08);
  color: var(--tu-blue);
}
.site-nav-links a.active {
  background: rgba(30, 96, 172, 0.12);
  color: var(--tu-blue);
}
/* Collapsible menu, shown only on small screens */
.site-nav-toggle {
  display: block;
  /* keep the links visible on desktop, regardless of the closed state */
}
.site-nav-toggle:not([open]) .site-nav-links {
  display: flex;
  content-visibility: visible;
}
.site-nav-toggle summary {
  display: none;
  list-style: none;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-lightGrey);
  border-radius: 6px;
  color: var(--tu-ink);
  font-size: 1.45rem;
  font-weight: 500;
  cursor: pointer;
}
.site-nav-toggle summary::-webkit-details-marker {
  display: none;
}
.site-nav-toggle summary:hover {
  background: rgba(30, 96, 172, 0.08);
}

/* ---------- Hero (home page) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #10294c 0%, #1b4a80 55%, #2a7fae 100%);
  color: #fff;
}
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 4rem 46% 4.4rem 0;
}
.hero-copy {
  max-width: 56rem;
}
.hero-kicker {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tu-cyan);
}
.hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
}
.hero-sub {
  margin: 0;
  max-width: 46rem;
  font-size: 1.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Content ---------- */

#all h2 {
  margin-top: 3.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-lightGrey);
}
#all hr {
  height: 1px;
  margin: 3rem 0;
  border: none;
  background: var(--color-lightGrey);
}

/* ---------- Tables ---------- */

#all table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}
#all th,
#all td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-lightGrey);
}
#all thead th {
  border-bottom: 2px solid #c8cdd6;
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll table {
  min-width: 1200px;
  font-size: 1.4rem;
}

/* ---------- Numbered steps ---------- */

.steps {
  display: grid;
  gap: 1.6rem;
  margin: 2rem 0 1rem;
}
.step {
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--color-lightGrey);
  border-left: 4px solid var(--tu-blue);
  border-radius: 8px;
  background: #f6f9fc;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
}
.step-number {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--tu-blue);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.step p {
  margin: 0 0 0.6rem;
}
.step p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4.5rem;
  padding: 2.8rem 0 3.2rem;
  border-top: 1px solid var(--color-lightGrey);
  background: var(--bg-secondary-color);
  color: var(--color-grey);
  font-size: 1.4rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.site-footer p {
  margin: 0 0 0.3rem;
}
.footer-brand {
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--tu-navy);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-note {
  margin-top: 2rem;
  font-size: 1.3rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .site-header-inner {
    position: relative;
  }
  .brand {
    font-size: 1.5rem;
  }
  .site-nav-toggle {
    display: inline-block;
  }
  .site-nav-toggle:not([open]) .site-nav-links {
    display: none;
  }
  .site-nav-toggle summary {
    display: inline-flex;
  }
  .site-nav-toggle[open] .site-nav-links {
    display: flex;
  }
  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-lightGrey);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 14px rgba(22, 56, 94, 0.12);
    z-index: 30;
  }
  .hero-art {
    display: none;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-inner {
    padding: 3rem 0 3.4rem;
  }
}
