@font-face {
  font-family: "ProbaPro";
  src: url("../fonts/probapro/ProbaPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ProbaPro";
  src: url("../fonts/probapro/ProbaPro-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ProbaPro";
  src: url("../fonts/probapro/ProbaPro-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ProbaPro";
  src: url("../fonts/probapro/ProbaPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f3f7fc;
  --color-surface: #ffffff;
  --color-ink: #102033;
  --color-ink-soft: #344a62;
  --color-muted: #53677d;
  --color-edge: #d5dfeb;
  --color-edge-strong: #074f9e;
  --color-yellow: #ffd747;
  --color-blue: #0057b8;
  --color-blue-deep: #003d82;
  --color-blue-soft: #e7f1ff;
  --color-green: #1f8a5b;
  --color-completed: #475467;
  --content-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow: 0 18px 40px rgba(16, 24, 39, 0.08);
  font-family: "ProbaPro", Arial, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.empty-state-page {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.empty-state-card {
  width: min(560px, 100%);
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.empty-state-card h1 {
  margin: 0;
  color: var(--color-blue-deep);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}

.empty-state-card p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: #fff;
  font-weight: 800;
  padding: 12px 20px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.primary-link-button:hover,
.primary-link-button:focus-visible {
  background: var(--color-blue-deep);
  transform: translateY(-1px);
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.container {
  width: min(var(--content-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 247, 252, 0.78);
  border-bottom: 1px solid rgba(0, 61, 130, 0.12);
  padding-block: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-badge {
  flex: 0 0 auto;
  width: 10px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-yellow);
}

.brand-text strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-blue-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--color-blue);
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-blue);
}

.hero {
  padding-block: 16px 0;
}

.hero-grid,
.detail-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 52px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  /*align-items: end;*/
  border: 1px solid rgba(0, 61, 130, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.98), rgba(0, 61, 130, 0.98)), var(--color-blue);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1,
.detail-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p,
.lead {
  max-width: 740px;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.hero-copy > p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 800;
}

.hero-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition:
    opacity 160ms ease,
    text-decoration-color 160ms ease;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  opacity: 0.82;
  text-decoration-color: currentColor;
}

.document-link::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.18em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.submission-card,
.detail-panel,
.side-box {
  border: 1px solid rgba(16, 24, 39, 0.16);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow);
}

.submission-card a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-blue);
  color: #fff;
  padding: 11px 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.submission-card a:hover,
.submission-card a:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--color-blue-deep);
  transform: translateY(-1px);
}

.contest-section {
  background: var(--color-bg);
}

.section-shell {
  border-bottom: 1px solid var(--color-edge);
}

.contest-section:last-of-type .section-shell {
  border-bottom: 0;
}

.section-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  padding-block: 30px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.section-toggle:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-blue-deep);
}

.section-count {
  margin-left: 10px;
  color: var(--color-blue);
  font-size: 24px;
  font-weight: 850;
}

.section-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.2em;
  border-right: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.section-toggle[aria-expanded="true"] .section-icon {
  transform: rotate(225deg);
}

.section-panel[hidden] {
  display: none;
}

.section-panel {
  padding-bottom: 34px;
}

.section-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-description {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
}

.section-all-link {
  flex: 0 0 auto;
  color: var(--color-blue);
  font-weight: 850;
  text-decoration-color: rgba(0, 87, 184, 0.32);
  transition:
    opacity 160ms ease,
    text-decoration-color 160ms ease;
}

.section-all-link:hover,
.section-all-link:focus-visible {
  opacity: 0.82;
  text-decoration-color: currentColor;
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contest-card {
  display: grid;
  min-height: 310px;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 20px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contest-card:hover,
.contest-card:focus-visible {
  border-color: var(--color-edge-strong);
  transform: translateY(-2px);
}

.status-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-open {
  background: var(--color-blue);
}

.status-voting {
  background: var(--color-green);
}

.status-results {
  background: var(--color-completed);
}

.contest-card time {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.contest-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.contest-card p {
  margin: 0;
  color: var(--color-ink-soft);
}

.card-meta {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-edge);
}

.card-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-meta dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-meta dd {
  margin: 0;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--color-edge);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  padding: 24px;
  color: var(--color-muted);
}

.document-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-list li {
  border-bottom: 1px solid var(--color-edge);
  padding-bottom: 12px;
  font-weight: 800;
}

.documents-page-header {
  padding-block: 16px 0;
}

.documents-page-header-inner {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 61, 130, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 241, 255, 0.82)),
    var(--color-surface);
  box-shadow: 0 14px 34px rgba(16, 24, 39, 0.06);
  padding: clamp(28px, 5vw, 52px);
}

.documents-page-header h1 {
  margin: 0;
  max-width: 860px;
  color: var(--color-blue-deep);
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.documents-page-header p {
  max-width: 680px;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.page-back-link {
  justify-self: start;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration-color: rgba(0, 87, 184, 0.32);
}

.page-back-link:hover,
.page-back-link:focus-visible {
  color: var(--color-blue-deep);
  text-decoration-color: currentColor;
}

.documents-page-section {
  padding-block: 28px 56px;
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: end;
  border: 1px solid rgba(0, 61, 130, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(16, 24, 39, 0.05);
  margin-bottom: 18px;
  padding: 16px;
}

.documents-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--color-blue-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.documents-field input,
.documents-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(0, 61, 130, 0.2);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  text-transform: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.documents-field input {
  padding: 12px 14px 12px 42px;
}

.documents-field input[type="search"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2366788c' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
  background-position: 16px 50%;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.documents-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-blue) 50%),
    linear-gradient(135deg, var(--color-blue) 50%, transparent 50%),
    linear-gradient(to bottom, rgba(0, 61, 130, 0.12), rgba(0, 61, 130, 0.12));
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    calc(100% - 44px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px,
    1px 26px;
  padding: 12px 56px 12px 14px;
}

.documents-field input:focus,
.documents-field select:focus {
  border-color: var(--color-blue);
  box-shadow:
    0 0 0 4px rgba(0, 87, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  outline: 0;
  outline-offset: 0;
}

.documents-field input::placeholder {
  color: var(--color-muted);
  font-weight: 500;
  opacity: 0.9;
}

.documents-results-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--color-muted);
}

.documents-results-heading p {
  margin: 0;
}

.documents-results-heading strong {
  color: var(--color-blue-deep);
}

.documents-grid {
  align-items: stretch;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.pagination-nav a,
.pagination-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(0, 61, 130, 0.22);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-blue);
  font-weight: 850;
  padding: 10px 14px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.pagination-nav a:hover,
.pagination-nav a:focus-visible {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.1);
  color: var(--color-blue-deep);
  outline: 0;
}

.pagination-nav a[aria-current="page"] {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: #fff;
}

.pagination-disabled {
  border-color: var(--color-edge);
  color: var(--color-muted);
  opacity: 0.58;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.detail-hero {
  padding-block: 16px 0;
}

.detail-grid {
  display: grid;
  gap: 44px;
  align-items: end;
  border: 1px solid rgba(0, 61, 130, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.98), rgba(0, 61, 130, 0.98)), var(--color-blue);
  color: #fff;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #fff;
  opacity: 0.82;
}

.detail-copy {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.detail-copy .lead {
  margin: 0;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-kicker .back-link,
.detail-kicker .status-pill {
  margin: 0;
}

.submission-card,
.detail-panel,
.side-box {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.submission-card div,
.detail-panel div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--color-edge);
  padding-bottom: 13px;
}

.submission-card div:last-child,
.detail-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.submission-card span,
.detail-panel span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.submission-card p,
.detail-panel p {
  margin: 0;
  color: var(--color-ink-soft);
  font-weight: 500;
}

.submission-card a {
  justify-self: start;
}

.detail-hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding-block: 48px;
}

.prose {
  max-width: 760px;
  color: var(--color-ink-soft);
  font-size: 18px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  margin: 32px 0 12px;
  color: var(--color-blue-deep);
  line-height: 1.18;
}

.prose h1 {
  font-size: 32px;
}

.prose h2 {
  font-size: 26px;
}

.prose h3 {
  font-size: 22px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 28px;
}

.prose li + li {
  margin-top: 6px;
}

.prose blockquote {
  border-left: 4px solid var(--color-blue);
  padding: 8px 0 8px 18px;
  color: var(--color-ink);
  background: var(--color-blue-soft);
}

.prose code {
  border-radius: var(--radius-sm);
  background: var(--color-blue-soft);
  color: var(--color-blue-deep);
  font-size: 0.92em;
  padding: 2px 5px;
}

.prose pre {
  overflow-x: auto;
  border: 1px solid var(--color-edge);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 16px;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--color-edge);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-blue-soft);
  color: var(--color-blue-deep);
}

.side-box {
  align-self: start;
}

.side-box h2 {
  margin: 0;
  font-size: 22px;
}

.button.full {
  width: 100%;
}

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 61, 130, 0.12);
  color: var(--color-ink-soft);
  padding-block: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 36px;
}

.site-footer a {
  color: var(--color-blue);
}

.site-footer a {
  text-decoration-color: rgba(52, 74, 98, 0.34);
  transition:
    opacity 160ms ease,
    text-decoration-color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-blue);
  opacity: 1;
  text-decoration-color: currentColor;
}

.footer-grid p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0, 61, 130, 0.12);
  padding-block: 18px;
  color: var(--color-muted);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .detail-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contest-grid {
    grid-template-columns: 1fr;
  }

  .documents-toolbar {
    grid-template-columns: 1fr;
  }

  .pagination-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .pagination-nav span {
    text-align: center;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--content-width));
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-badge {
    height: 30px;
  }

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

  .hero-grid,
  .detail-grid {
    padding: 28px;
  }

  .hero h1,
  .detail-hero h1 {
    font-size: 32px;
  }

  .section-title {
    font-size: 23px;
  }

  .section-summary {
    display: grid;
  }

  .card-meta div,
  .footer-bottom {
    display: grid;
  }
}
