:root {
  --ink: #102024;
  --muted: #5a686b;
  --soft: #7a8789;
  --line: #d9e2df;
  --paper: #f6f8f7;
  --surface: #fbfdfc;
  --surface-soft: #eef4f1;
  --accent: #216f62;
  --accent-strong: #174f47;
  --accent-soft: #dcece7;
  --danger: #9d3434;
  --warning: #8a5a15;
  --shadow: 0 18px 48px rgba(16, 32, 36, 0.09);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(33, 111, 98, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfcfb 0%, var(--paper) 36rem);
  font-family: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(16, 32, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 36, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
summary,
td,
th {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-strong);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 247, 0.9);
  border-bottom: 1px solid rgba(217, 226, 223, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 234px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  flex: 0 0 42px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.18;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  color: #304044;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  outline: none;
}

.site-nav a:active,
.button:active,
.menu-toggle:active {
  transform: translateY(1px);
}

.site-nav .nav-cta {
  margin-left: 4px;
  color: #fff;
  background: var(--accent-strong);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.72fr);
  grid-template-areas: "content info";
  align-items: start;
  gap: clamp(34px, 6vw, 72px);
  max-width: var(--container);
  min-height: auto;
  margin: 0 auto clamp(10px, 1.6vw, 20px);
  padding: clamp(52px, 6vw, 86px) clamp(18px, 5vw, 60px) clamp(28px, 4vw, 44px);
}

.hero-content {
  grid-area: content;
  max-width: 860px;
}

.notice-line {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(33, 111, 98, 0.16);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero-actions,
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 12px 26px rgba(23, 79, 71, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-strong);
  border-color: rgba(23, 79, 71, 0.34);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-info-panel {
  grid-area: info;
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(33, 111, 98, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-info-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-strong), #b3975d 58%, rgba(33, 111, 98, 0.18));
}

.panel-kicker {
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: calc(var(--radius) - 2px);
  font-size: 12px;
  font-weight: 780;
}

.hero-info-panel h2 {
  max-width: 16ch;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.04;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2px 0 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.key-facts div {
  display: grid;
  gap: 3px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.key-facts .featured-fact {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(23, 79, 71, 0.12), transparent 64%),
    #fff;
}

.key-facts dt {
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
}

.key-facts dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 820;
  line-height: 1.08;
}

.key-facts span {
  color: var(--muted);
  font-size: 13px;
}

.panel-link {
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration-color: rgba(23, 79, 71, 0.42);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.panel-link:hover,
.panel-link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
  outline: none;
}

.quick-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--container);
  margin: 0 auto clamp(18px, 3vw, 36px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-band article {
  min-height: 112px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.quick-band span,
.summary-tile span,
.salary-card span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
}

.quick-band strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.section {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 60px);
}

.section > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-alt {
  background: rgba(238, 244, 241, 0.58);
  border-block: 1px solid rgba(217, 226, 223, 0.65);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.date-layout,
.split-section,
.exam-tables {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.date-status,
.checker,
.salary-card,
.salary-points,
.info-card,
.process article,
.faq-list details,
.language-card,
.summary-tile {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.date-status,
.checker,
.salary-card,
.salary-points {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #fff;
  background: var(--warning);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}

.status-pill.open {
  background: var(--accent);
}

.status-pill.closed {
  background: var(--danger);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.timeline-date {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.timeline-title {
  margin: 0;
  font-weight: 760;
}

.timeline-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(180px, 240px);
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7d4d0;
  border-radius: var(--radius);
}

input::placeholder {
  color: #879392;
}

input:focus,
select:focus,
button:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(33, 111, 98, 0.24);
  outline-offset: 2px;
}

.vacancy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px auto;
}

.summary-tile {
  padding: 16px;
}

.summary-tile strong {
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  padding: 14px 16px 0;
  text-align: left;
  color: var(--accent-strong);
  font-weight: 820;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6eeeb;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #263d3d;
  background: #edf5f1;
  font-size: 13px;
}

td:nth-child(n + 3),
th:nth-child(n + 3) {
  text-align: right;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: #f5faf8;
}

.bar-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bar-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-weight: 820;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e7efec;
  border-radius: 999px;
}

.bar-fill {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.bar-value {
  color: var(--muted);
  font-weight: 760;
  text-align: right;
}

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

.language-card {
  padding: 16px;
}

.language-card strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.language-card span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}

.language-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 16px;
}

.eligibility-grid .info-card:first-child {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(33, 111, 98, 0.1), transparent 58%),
    #fff;
}

.info-card {
  padding: 22px;
}

.info-card p,
.salary-card p,
.salary-points p,
.process p,
.note {
  color: var(--muted);
}

.info-card strong,
.salary-card strong {
  display: block;
  color: var(--accent-strong);
}

.checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.checker-controls {
  display: flex;
  gap: 10px;
}

.result-text {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: #f6faf8;
  border: 1px solid #dcebe5;
  border-radius: var(--radius);
}

.result-text.pass {
  color: #14532d;
  background: #eaf7ef;
  border-color: #b7dfc3;
}

.result-text.fail {
  color: #7f1d1d;
  background: #fbebeb;
  border-color: #efc3c3;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.process article {
  position: relative;
  padding: 20px;
}

.process span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.note {
  margin: 16px auto 0;
}

.salary-card {
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(33, 111, 98, 0.13), transparent 60%),
    #fff;
}

.salary-card strong {
  margin: 8px 0 12px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.salary-points ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 20px;
}

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

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 760;
}

.faq-list p {
  max-width: 72ch;
  color: var(--muted);
}

.related-links,
.citation-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-left: 20px;
}

.related-links a,
.citation-list a {
  color: var(--accent-strong);
  font-weight: 720;
}

.answer-box {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.answer-box p {
  margin: 0;
  color: var(--muted);
}

.source-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: clamp(26px, 5vw, 58px) auto;
  padding: clamp(24px, 4vw, 40px);
  color: #fff;
  background: var(--accent-strong);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 20px 44px rgba(23, 79, 71, 0.18);
}

.source-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.source-band p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.source-band .button.primary {
  color: var(--accent-strong);
  background: #fff;
  box-shadow: none;
}

.source-band .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 18px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "info";
  }

  .hero-info-panel {
    align-self: auto;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .date-layout,
  .split-section,
  .checker,
  .exam-tables {
    grid-template-columns: 1fr;
  }

  .quick-band,
  .vacancy-summary,
  .process,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 66px;
  }

  .hero-section {
    padding: 36px 18px 32px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions,
  .source-actions,
  .checker-controls,
  .source-band {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .quick-band,
  .key-facts,
  .toolbar,
  .vacancy-summary,
  .eligibility-grid,
  .process,
  .checklist,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .quick-band article {
    min-height: auto;
    padding: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section {
    padding: 48px 18px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}
