@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --green: #075d58;
  --green-dark: #044541;
  --green-light: #e5f2ef;
  --red: #bd3028;
  --ink: #172b2a;
  --muted: #607473;
  --line: #dce7e5;
  --surface: #fff;
  --canvas: #f5f8f7;
  --shadow: 0 22px 60px rgba(9, 54, 51, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: var(--green-dark);
}
.site-header__inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 94px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { padding: 7px 10px; display: inline-flex; align-items: center; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.brand img { width: 215px; max-height: 58px; object-fit: contain; }
.login-button {
  min-width: 126px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.login-button svg { grid-row: 1 / 3; width: 20px; fill: currentColor; }
.login-button span { font-size: 14px; font-weight: 700; line-height: 1.1; }
.login-button small { font-size: 10px; line-height: 1.1; text-transform: uppercase; letter-spacing: .08em; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 112px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 20%, rgba(41, 164, 151, .32), transparent 24%),
    linear-gradient(118deg, var(--green-dark), var(--green) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -370px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}
.eyebrow {
  margin: 0 0 10px;
  color: #358e85;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #8ed7d0; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; line-height: 1.15; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.04em; }
.hero__lead { max-width: 630px; margin: 20px 0 0; color: rgba(255,255,255,.78); font-size: 18px; }

.selections { position: relative; z-index: 2; margin-top: -56px; padding-bottom: 100px; }
.section-heading {
  min-height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading .eyebrow { margin-bottom: 2px; }
.section-heading__line { height: 1px; flex: 1; background: var(--line); }
.carousel { padding: 0 30px 24px; border-radius: 0 0 16px 16px; background: #fff; box-shadow: var(--shadow); }
.carousel__track { overflow: hidden; }
.selection-slide { padding: 10px 0 4px; }
.selection-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.selection-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.selection-card:hover { transform: translateY(-3px); border-color: #b6cfcb; box-shadow: 0 18px 45px rgba(8,64,60,.12); }
.selection-card:focus-visible, .document-link:focus-visible, .floating-apply:focus-visible, .brand:focus-visible { outline: 3px solid #ffcf33; outline-offset: 4px; }
.selection-card__top { padding: 28px 30px 24px 34px; display: grid; grid-template-columns: 78px 1fr auto; gap: 24px; align-items: center; }
.municipality-mark { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 15px; background: var(--green-light); }
.municipality-mark img { width: 64px; max-height: 65px; object-fit: contain; }
.selection-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--green); font-size: 13px; font-weight: 800; }
.selection-card__heading h3 { max-width: 750px; margin: 8px 0; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -.025em; }
.selection-card__heading p { margin: 0; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 50px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge--loading, .status-badge--neutral { color: #6c7776; background: #eef1f0; }
.status-badge--open { color: #117247; background: #e4f5eb; }
.status-badge--closed { color: #a52e29; background: #fae9e8; }
.selection-card__arrow { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); font-size: 24px; transition: transform .2s ease; }
.selection-card:hover .selection-card__arrow { transform: translateX(3px); }
.selection-card__summary { display: grid; grid-template-columns: 2fr repeat(3, 1fr); border-top: 1px solid var(--line); background: #f8faf9; }
.selection-card__summary div { padding: 18px 22px; border-right: 1px solid var(--line); }
.selection-card__summary div:last-child { border-right: 0; }
.selection-card__summary span, .detail-hero__facts span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.selection-card__summary strong { display: block; margin-top: 4px; font-size: 15px; }
.selection-card__cta { padding: 14px 24px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--green); font-size: 13px; font-weight: 800; border-top: 1px solid var(--line); }
.carousel__position { margin: 18px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.carousel__position span { width: 38px; height: 3px; display: inline-block; border-radius: 2px; background: var(--red); }

.site-footer { color: rgba(255,255,255,.78); background: #073d3a; }
.site-footer__inner { min-height: 145px; display: flex; align-items: center; gap: 18px; }
.site-footer img { width: 235px; height: 62px; padding: 7px 10px; object-fit: contain; border-radius: 9px; background: #fff; }
.site-footer strong { color: #fff; font-size: 14px; }
.site-footer p { margin: 1px 0 0; font-size: 12px; }
.site-footer__legal { margin-left: auto !important; }

.detail-page { background: #f4f7f6; padding-bottom: 0; }
.breadcrumb { padding: 26px 0 18px; display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--green); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-hero {
  position: relative;
  min-height: 380px;
  padding: 54px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 5%, rgba(79,180,168,.35), transparent 26%),
    linear-gradient(125deg, #073f3c, #08736c);
  box-shadow: 0 24px 60px rgba(7,71,66,.18);
}
.detail-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -150px;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025);
}
.detail-hero__content { position: relative; z-index: 2; }
.detail-hero__meta { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; color: #b8e2dd; font-size: 13px; font-weight: 700; }
.detail-hero .eyebrow { color: #91d4cd; }
.detail-hero h1 { max-width: 760px; margin: 4px 0 16px; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.04em; }
.detail-hero__content > p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.76); }
.detail-hero__facts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 0; }
.detail-hero__facts div { min-width: 140px; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.2); }
.detail-hero__facts div:last-child { border-right: 0; }
.detail-hero__facts span { color: #9fc7c3; }
.detail-hero__facts strong { display: block; margin-top: 4px; font-size: 16px; }
.detail-hero__seal { position: relative; z-index: 2; width: 190px; height: 190px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.07); }
.detail-hero__seal img { width: 145px; height: 145px; object-fit: cover; border-radius: 50%; }
.detail-layout { padding: 64px 0 100px; }
.detail-content { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 36px rgba(14,60,56,.06); }
.content-section { padding: 54px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 26px; border-bottom: 1px solid var(--line); }
.content-section > div { min-width: 0; }
.content-section:last-child { border-bottom: 0; }
.content-section__number { width: 46px; height: 46px; display: grid; place-items: center; color: var(--green); border-radius: 12px; background: var(--green-light); font-size: 13px; font-weight: 800; }
.content-section h2 { margin: 0 0 20px; font-size: 30px; letter-spacing: -.025em; }
.content-section p { color: #4d6260; }
.document-link {
  margin-top: 30px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.document-link:hover { border-color: var(--green); transform: translateY(-2px); }
.document-list { margin-top: 30px; display: grid; gap: 12px; }
.document-list .document-link { margin-top: 0; }
.document-link__icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--red); font-size: 11px; font-weight: 800; }
.document-link strong, .document-link small { display: block; }
.document-link small { margin-top: 2px; color: var(--muted); }
.schedule { margin-top: 28px; }
.schedule__item { position: relative; min-height: 78px; padding: 0 0 25px 36px; display: grid; grid-template-columns: 1fr; }
.schedule__item::before { content: ""; position: absolute; left: 8px; top: 17px; bottom: -1px; width: 1px; background: #c8cfce; transition: background-color .25s ease; }
.schedule__item:last-child::before { display: none; }
.schedule__marker { position: absolute; left: 2px; top: 5px; width: 13px; height: 13px; z-index: 1; border: 3px solid #fff; border-radius: 50%; background: #9ba5a4; box-shadow: 0 0 0 2px #c1c8c7; transition: background-color .25s ease, box-shadow .25s ease; }
.schedule__item.is-reached .schedule__marker { background: var(--green); box-shadow: 0 0 0 2px #9fc9c4; }
.schedule__item.is-completed-segment::before { background: #9fc9c4; }
.schedule__item strong { font-size: 15px; }
.schedule__item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.table-intro { margin-top: -10px; }
.table-scroll-hint { display: none; }
.table-wrapper { width: 100%; max-width: 100%; margin-top: 26px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior-inline: contain; }
.table-wrapper:focus-visible { outline: 3px solid #ffcf33; outline-offset: 3px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
thead { color: #fff; background: var(--green); }
th, td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
tbody th { min-width: 245px; font-weight: 600; }
tbody tr:hover { background: #f5faf8; }
tbody td:nth-child(n+3), thead th:nth-child(n+3) { text-align: center; white-space: nowrap; }
.code-pill { padding: 5px 8px; color: var(--green); border-radius: 6px; background: var(--green-light); font-weight: 800; }
tfoot { color: var(--green-dark); background: #e8f3f1; font-weight: 800; }
tfoot td { text-align: center; }
.detail-aside { position: sticky; top: 24px; }
.aside-card { padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; background: #fff; box-shadow: 0 12px 36px rgba(14,60,56,.06); }
.aside-card h2 { margin: 0 0 20px; font-size: 21px; }
.aside-card dl { margin: 0; }
.aside-card dl div { padding: 13px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); font-size: 12px; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; font-weight: 800; text-align: right; }
.aside-card__link { margin-top: 18px; display: flex; justify-content: space-between; gap: 8px; color: var(--green); font-size: 12px; font-weight: 800; text-decoration: none; }
.aside-card__link:hover { text-decoration: underline; }
.floating-apply {
  position: fixed;
  z-index: 30;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 24px;
  min-width: 225px;
  padding: 14px 18px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: var(--red);
  box-shadow: 0 14px 36px rgba(120,28,22,.3);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-apply:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(120,28,22,.38); }
.floating-apply span:first-child { font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; }
.floating-apply small { display: block; color: rgba(255,255,255,.75); font-family: Inter, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.floating-apply--disabled { color: rgba(255,255,255,.76); background: #727b7a; box-shadow: none; cursor: not-allowed; pointer-events: none; }

@media (max-width: 900px) {
  .selection-card__summary { grid-template-columns: repeat(2, 1fr); }
  .selection-card__summary div:nth-child(2) { border-right: 0; }
  .selection-card__summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero__seal { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .aside-card dl { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
}

@media (max-width: 640px) {
  .page-shell, .site-header__inner { width: min(100% - 28px, 1160px); }
  .site-header__inner { min-height: 78px; }
  .brand img { width: 165px; max-height: 62px; }
  .login-button { min-width: 105px; padding: 9px 10px; }
  .hero { padding: 55px 0 88px; }
  .hero__lead { font-size: 16px; }
  .selections { margin-top: -38px; padding-bottom: 65px; }
  .section-heading { min-height: 70px; padding: 0 18px; }
  .carousel { padding: 0 12px 18px; }
  .selection-card__top { padding: 22px 18px 20px 23px; grid-template-columns: 54px 1fr; gap: 15px; align-items: start; }
  .municipality-mark { width: 54px; height: 54px; border-radius: 11px; }
  .municipality-mark img { width: 46px; max-height: 45px; }
  .selection-card__arrow { display: none; }
  .selection-card__meta { gap: 7px; }
  .selection-card__summary { grid-template-columns: 1fr 1fr; }
  .selection-card__summary div { padding: 14px; }
  .selection-card__summary strong { font-size: 13px; }
  .selection-card__cta { justify-content: flex-start; }
  .site-footer__inner { min-height: 180px; flex-wrap: wrap; align-content: center; }
  .site-footer__legal { width: 100%; margin-left: 0 !important; }
  .breadcrumb { overflow: hidden; white-space: nowrap; }
  .detail-hero { min-height: auto; padding: 34px 24px; border-radius: 16px; }
  .detail-hero__meta { margin-bottom: 20px; }
  .detail-hero__facts { margin-top: 25px; gap: 18px; }
  .detail-hero__facts div { min-width: auto; padding-right: 18px; margin-right: 0; }
  .detail-layout { padding: 32px 0 90px; gap: 24px; }
  .aside-card dl { grid-template-columns: 1fr; }
  .content-section { padding: 34px 22px; grid-template-columns: 1fr; gap: 15px; }
  .content-section h2 { font-size: 26px; }
  .content-section__number { width: 40px; height: 40px; }
  .table-scroll-hint { margin: 12px 0 -12px; display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
  .table-scroll-hint span { font-size: 17px; }
  .table-wrapper { scrollbar-width: thin; scrollbar-color: var(--green) #e5eeec; }
  .table-wrapper::-webkit-scrollbar { height: 8px; }
  .table-wrapper::-webkit-scrollbar-track { background: #e5eeec; }
  .table-wrapper::-webkit-scrollbar-thumb { border-radius: 10px; background: var(--green); }
  .document-link { grid-template-columns: 42px 1fr auto; padding: 14px; }
  .document-link small { font-size: 11px; }
  .floating-apply { right: 14px; bottom: 14px; min-width: 205px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
