/* Styles for the generated scholarship, category and info pages.
   Builds on the variables and components in app.css. */

.page { padding-inline: 20px; }

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.site-head .brand { text-decoration: none; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: 14px; }
.site-nav a, .crumbs a, .detail a:not(.apply-link):not(.tag), footer a { color: var(--ink); }

.crumbs { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }

.detail {
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 5px 5px 0 rgba(var(--shadow), 0.85);
  max-width: 820px;
}
.detail h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.1; margin: 6px 0 4px; }
.detail .provider { margin: 0 0 10px; font-size: 15px; }
.amount.big { font-size: clamp(22px, 4vw, 30px); margin: 4px 0 12px; }
.detail .status-row { margin: 0; padding: 0; }

.facts { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 10px; border-top: 1.5px solid var(--border-soft); }
.facts th { width: 34%; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 560px) {
  .facts th, .facts td { display: block; width: auto; }
  .facts th { border-top: 1.5px solid var(--border-soft); padding-bottom: 0; }
  .facts td { border-top: 0; padding-top: 2px; }
}

.detail .tag-row { margin-top: 14px; }
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--border); color: var(--ink); }

.prose { font-size: 15.5px; line-height: 1.6; }
.prose li { margin-bottom: 8px; }

.related { margin-top: 30px; }
.related h2, .cat-group h2 { font-size: 22px; margin-bottom: 12px; }

.cat-head { margin-bottom: 18px; max-width: 820px; }
.cat-head h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin-bottom: 8px; }

.static-card { opacity: 1; transform: none; animation: none; }
.static-card h3 a { color: var(--ink); text-decoration: none; }
.static-card h3 a:hover { text-decoration: underline; }

.cat-group { margin-bottom: 26px; }
.cat-list { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.cat-list li { break-inside: avoid; padding: 4px 0; font-size: 14.5px; }
.cat-list a { color: var(--ink); font-weight: 600; }
.cat-list .count { color: var(--ink-faint); font-size: 12.5px; font-family: "JetBrains Mono"; }

.page footer { margin-top: 36px; }
