/* 3DPNC.org: inner pages (regions, resources, about).
   Black header and title band, light grey page, white cards. */

:root {
  --bg: #f5f5f5;
  --ink: #111;
  --muted: #555;
  --line: #e2e2e2;
  --rule: #ececec;
  --amber: #ffb020;
  --amber-text: #ffc54d;
  --blue: #2d6bff;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 20px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: #000; }

/* Header */
.topbar { background: #000; color: #fff; }
.topbar nav { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { color: #fff; text-decoration: none; font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 22px; }
.links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 600; }
.links a { color: #fff; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color 0.15s; }
.links a:hover, .links a[aria-current] { border-bottom-color: #fff; }

/* Title band */
.band { background: #000; color: #fff; border-top: 1px solid #1f1f1f; }
.band .inner { max-width: 1120px; margin: 0 auto; padding: 48px 24px 52px; }
.crumb { margin: 0 0 14px; font-size: 14px; color: #b5b5b5; }
.crumb a { color: #b5b5b5; }
.band h1 {
  margin: 0 0 16px;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.band .lead { margin: 0; max-width: 720px; font-size: 19px; line-height: 1.6; color: #d0d0d0; }

/* Notice in the title band: something upcoming */
.notice {
  margin-top: 28px; max-width: 720px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 14px 18px; border: 1px solid #333; border-radius: 10px;
}
.notice strong { font-size: 15px; color: var(--amber-text); }
.notice.blue strong { color: #7aa5ff; }
.notice span.text { color: #d0d0d0; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-amber { background: var(--amber); box-shadow: 0 0 12px 2px rgba(255,176,32,0.7); }
.dot-blue { background: var(--blue); box-shadow: 0 0 12px 2px rgba(45,107,255,0.7); }

/* Layouts */
.page { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; }
.layout { max-width: 1120px; margin: 0 auto; padding: 44px 24px 80px; display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.layout main { flex: 999 1 560px; min-width: 0; max-width: 760px; }

/* Side menu (resources) */
.side { flex: 1 1 220px; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); overflow: hidden; }
.side a { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--rule); transition: background 0.15s, color 0.15s; }
.side a:first-child { border-top: 0; }
.side a:hover { background: #111; color: #fff; }
.side a[aria-current] { background: #111; color: #fff; font-weight: 700; }

/* Section headings */
main section { padding-bottom: 40px; }
h2.sec { margin: 0 0 18px; font-size: 28px; line-height: 1.2; font-weight: 800; }
h2.sec::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 12px; background: var(--ink); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 26px 30px;
  margin-bottom: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 14px 32px rgba(0,0,0,0.08); }
.card h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.3; font-weight: 800; }
.card p { margin: 0 0 18px; color: #333; }
.card .meta { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card .meta .dot { width: 8px; height: 8px; }
.box h2 { margin: 0 0 10px; font-size: 21px; font-weight: 800; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; padding: 16px 0; margin: 0 0 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }

.btn {
  display: inline-block; padding: 10px 18px;
  background: #111; color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }

/* Two-column rows inside a card (parts of a bill, glossary) */
.rows { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 14px; }
.rows .row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.rows .row:last-child { border-bottom: 0; }
.rows .row span { color: #333; }
.rows.wide .row { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 600px) { .rows .row, .rows.wide .row { grid-template-columns: 1fr; } }

ul.list, ol.list { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
main p, .page p { margin: 0 0 14px; }

details.card { padding: 16px 22px; }
details.card summary { cursor: pointer; font-weight: 700; }
details.card p { margin: 10px 0 0; color: var(--muted); }

/* Media */
.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 20px; }
.media a { display: block; padding: 0; overflow: hidden; text-decoration: none; margin: 0; }
.media .thumb { aspect-ratio: 16 / 9; background: #111; display: flex; align-items: center; justify-content: center; }
.media .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media .caption { margin: 0; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.news { padding: 0; overflow: hidden; }
.news a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px 22px; text-decoration: none; border-top: 1px solid var(--rule); }
.news a:first-child { border-top: 0; }
.news .src { color: var(--muted); font-size: 15px; }

.sources { color: #444; font-size: 15px; }
.fine { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Footer */
footer { background: #000; }
footer .inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: #b5b5b5; font-size: 14px; }
footer a { color: #d6d6d6; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
