/*
 * /data/portals: the public bid portal directory. Its own stylesheet, scoped to .portals, so nothing
 * here touches data.css, trades.css or insights.css. Type follows the homepage rules: Poppins
 * headings in navy, DM Sans text, no eyebrows, no all-caps labels. Tokens (--navy, --blue, --cyan,
 * --ink, --line) come from styles.css; the fallbacks keep the page legible without it.
 */

.portals {
  --po-navy: var(--navy, #011f2e);
  --po-blue: var(--blue, #015579);
  --po-cyan: var(--cyan, #00cef3);
  --po-ink: var(--ink, #1b2327);
  --po-line: var(--line, #e4e8ea);
  --po-muted: #596065;
  --po-soft: #f5f7f8;
  --po-head: Poppins, 'DM Sans', Arial, sans-serif;

  color: var(--po-ink);
}

.portals .po-wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.portals h1,
.portals h2,
.portals h3 {
  font-family: var(--po-head);
  color: var(--po-navy);
}

.portals section {
  margin-top: 44px;
}

.portals h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.portals h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.portals p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
}

.portals a {
  color: var(--po-blue);
  text-underline-offset: 3px;
}

.portals a:focus-visible {
  outline: 3px solid var(--po-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Breadcrumb and heading --------------------------------------------- */

.portals .po-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--po-muted);
}

.portals .po-crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: #b6bdc1;
}

.portals .po-crumbs a {
  color: inherit;
  text-decoration: none;
}

.portals .po-head {
  padding: 26px 0 6px;
  text-align: center;
}

.portals .po-head h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.portals .po-dek {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--po-muted);
}

.portals .po-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--po-muted);
}

.portals .po-meta a {
  color: inherit;
}

.portals .po-sub,
.portals .po-foot {
  font-size: 15.5px;
  color: var(--po-muted);
}

/* ---- Scope box ------------------------------------------------------------ */

.portals .po-scope {
  padding: 24px 28px 14px;
  border-left: 6px solid var(--po-cyan);
  border-radius: 14px;
  background: var(--po-soft);
}

.portals .po-scope h2 {
  font-size: 22px;
}

/* ---- Figures ---------------------------------------------------------------- */

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

.portals .po-stats > div {
  padding: 16px 16px 14px;
  border: 1px solid var(--po-line);
  border-radius: 14px;
}

.portals .po-stats dt {
  font-size: 15px;
  color: var(--po-muted);
}

.portals .po-stats dd {
  margin: 4px 0 0;
  font-family: var(--po-head);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--po-navy);
}

.portals .po-stats .po-note {
  margin-top: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--po-muted);
}

/* ---- State navigation -------------------------------------------------------- */

.portals .po-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portals .po-jump a,
.portals .po-jump span {
  display: inline-block;
  min-width: 48px;
  padding: 10px 12px;
  border: 1px solid var(--po-line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.portals .po-jump a:hover {
  border-color: var(--po-blue);
}

.portals .po-jump span {
  color: #7c868c;
  font-weight: 400;
}

/* ---- State sections and portal cards ------------------------------------------ */

.portals .po-state {
  scroll-margin-top: 120px;
  padding-top: 22px;
  border-top: 1px solid var(--po-line);
}

.portals .po-state h2 {
  font-size: 24px;
}

.portals .po-gap {
  font-size: 16px;
  color: var(--po-muted);
}

.portals .po-flag {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--po-muted);
}

.portals .po-cautions {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--po-muted);
}

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

.portals .po-portal {
  padding: 18px 20px 6px;
  border: 1px solid var(--po-line);
  border-radius: 14px;
}

.portals .po-portal h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.portals .po-kind {
  margin: 2px 0 10px;
  font-size: 15px;
  color: var(--po-muted);
}

.portals .po-portal p {
  font-size: 16.5px;
}

.portals .po-go {
  font-weight: 600;
}

.portals .po-reg {
  font-size: 16px;
}

.portals .po-src {
  font-size: 14.5px;
  color: var(--po-muted);
}

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

.portals .po-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--po-line);
  border-radius: 14px;
}

.portals table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.portals caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
  color: var(--po-muted);
}

.portals th,
.portals td {
  padding: 10px 14px;
  border-top: 1px solid var(--po-line);
  text-align: left;
  vertical-align: top;
}

.portals td.po-num,
.portals th.po-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- Product action ---------------------------------------------------------------- */

.portals .po-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 44px;
  padding: 26px 30px;
  border-radius: 22px;
  background: var(--po-soft);
}

.portals .po-cta h2 {
  margin: 0;
  font-size: 24px;
}

.portals .po-cta p {
  margin: 8px 0 0;
  font-size: 16.5px;
  color: var(--po-muted);
}

.portals .po-cta .button {
  margin-top: 0;
}

.portals .po-related {
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.7;
}

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

@media (max-width: 760px) {
  .portals .po-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .portals .po-wrap {
    padding-bottom: 40px;
  }

  .portals .po-dek {
    font-size: 18px;
  }

  .portals p {
    font-size: 17px;
  }

  .portals .po-scope {
    padding: 20px 18px 8px;
  }

  .portals .po-portal {
    padding: 16px 16px 4px;
  }

  .portals .po-cta {
    padding: 22px;
  }

  .portals .po-cta .button {
    width: 100%;
  }
}
