/* Styles for the per-award pages generated by tools/build-pages.js */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0e1117; --surface: #161b22; --surface2: #1e2530; --border: #2d333b;
  --text: #cdd9e5; --muted: #768390; --bright: #e6edf3; --accent: #4d9de0; --bronze: #c69026;
}
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--accent); }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { max-width: 780px; margin: 0 auto; padding: 1.75rem 16px 3rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.hero { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.hero .ribbon { width: 144px; height: 40px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
h1 { font-size: 1.75rem; line-height: 1.2; color: var(--bright); letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; }
.kind { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; margin-right: 8px; vertical-align: 1px; }
.lead { font-size: 1.05rem; color: var(--text); margin-bottom: 1.2rem; }

.cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  background: var(--accent); color: #0e1117; border-radius: 7px; padding: 0.6rem 1rem; margin-bottom: 1.5rem;
}
.cta:hover { background: #6cb0ea; }

section { margin-top: 1.6rem; }
h2 { font-size: 1.1rem; color: var(--bright); margin-bottom: 0.5rem; }
section p + p { margin-top: 0.5rem; }
section ul { margin-left: 1.2rem; }
section li { margin-bottom: 0.35rem; }
ul.checks { list-style: none; margin-left: 0; }
ul.checks li { position: relative; padding-left: 1.5rem; }
ul.checks li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 3px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; font-size: 0.92rem; }
.facts dt { color: var(--muted); }

details.official { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
details.official summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; font-weight: 600; color: var(--bright); }
details.official summary::-webkit-details-marker { display: none; }
details.official summary .ic { color: var(--muted); transition: transform 0.15s; }
details.official[open] summary .ic { transform: rotate(90deg); }
.official-body { padding: 0 1rem 1rem; font-size: 0.92rem; color: #adbac7; }
.official-body h3 { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 1rem 0 0.3rem; }
.official-body p { margin-bottom: 0.5rem; }
.official-body ul { margin: 0 0 0.5rem 1.2rem; }
.source { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.source a { display: inline-flex; align-items: center; gap: 5px; }
.source .ic { width: 13px; height: 13px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.pager a {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.8rem; font-size: 0.9rem; background: var(--surface);
}
.pager a:hover { border-color: #444c56; color: var(--bright); }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--muted); font-size: 0.72rem; }
.pager .ic { color: var(--muted); }

ul.related { list-style: none; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.3rem 1rem; }
ul.related a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-size: 0.9rem; padding: 0.25rem 0; }
ul.related a:hover { color: var(--bright); text-decoration: underline; }
ul.related img { flex-shrink: 0; border-radius: 1px; }

footer { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
footer p + p { margin-top: 0.6rem; }
.feedback { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.feedback:hover { color: var(--text); text-decoration: underline; }
.feedback .ic { width: 13px; height: 13px; }

@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  h1 { font-size: 1.45rem; }
  .pager { grid-template-columns: 1fr; }
}
