/* Pointe's smaller pages: the roadmap (generated by tools/roadmap.py), Contribute and Features. Loaded after ../style.css, which
   gives the fonts, the colour tokens and the base elements; everything laid out here has a `pg-` name of its own, so a
   change to the main page's classes cannot move these pages. Tokens: assets/theme.json, docs/design/brand-v6.md. */

:root { --pg-tint: #FFF1E9; }
@media (prefers-color-scheme: dark) { :root { --pg-tint: rgba(255, 90, 1, .14); } }

.pg-wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.pg-skip { position: absolute; left: -999px; }
.pg-skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; }

.pg-kicker { font-size: 11px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.pg-h1 { margin-top: 14px; font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.pg-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.14; letter-spacing: -.015em; }
.pg-h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 26px; letter-spacing: -.01em; }
.pg-lead { margin-top: 20px; max-width: 64ch; font-size: 18px; line-height: 28px; color: var(--body); }
.pg-body { color: var(--body); }
.pg-small { font-size: 12.5px; line-height: 18px; color: var(--dim); }
.pg-lead + .pg-small { margin-top: 14px; max-width: 80ch; }

.pg-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.pg-wordmark { font-family: var(--font-display); font-size: 24px; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.pg-header nav { display: flex; align-items: center; gap: 24px; }
.pg-header nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.pg-header nav a:hover, .pg-header nav a[aria-current] { color: var(--text); }
.pg-header nav a.pg-gh { color: var(--text); display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
                         border: 1px solid var(--line-strong); border-radius: 12px; }

.pg-hero { padding: 72px 0 40px; }
.pg-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong);
          border-bottom: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.pg-how > li { padding: 18px 20px 20px 0; color: var(--body); }
.pg-how > li + li { padding-left: 20px; border-left: 1px solid var(--line); }

.pg-section { padding: 56px 0 8px; }
.pg-section-head { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.pg-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 24px; align-items: start; padding: 16px 0;
           border-bottom: 1px solid var(--line); }
.pg-votes { display: flex; flex-direction: column; }
.pg-votes > span:first-child { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 34px;
                               font-variant-numeric: tabular-nums; color: var(--text); }
.pg-item-title { font-size: 18px; line-height: 26px; font-weight: 500; }
.pg-item-title a { text-decoration: none; }
.pg-item-title a:hover { text-decoration: underline; }
.pg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.pg-tag { font-size: 12.5px; line-height: 18px; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.pg-tag--open { background: var(--pg-tint); border-color: rgba(255, 90, 1, .45); color: var(--text); }
.pg-action { padding-top: 4px; white-space: nowrap; font-weight: 500; }
.pg-empty { display: block; }
#done .pg-votes > span:first-child { color: var(--dim); }

/* Features: one row for each, with where it works when that is not everywhere */
.pg-feat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 150px; gap: 2px 24px; align-items: baseline; padding: 10px 0;
           border-bottom: 1px solid var(--line); }
.pg-feat a { font-weight: 500; color: var(--text); text-decoration: none; width: fit-content; }
.pg-feat a:hover { text-decoration: underline; }
.pg-feat .pg-small { text-align: right; }
@media (max-width: 720px) { .pg-feat { grid-template-columns: minmax(0, 1fr); } .pg-feat .pg-small { text-align: left; } .pg-feat .pg-small:empty { display: none; } }

/* Contribute */
.pg-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line-strong); }
.pg-steps > li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 18px 0;
                 border-bottom: 1px solid var(--line); color: var(--body); }
.pg-steps > li::before { content: counter(step); font-family: var(--font-display); font-size: 20px; line-height: 26px; color: var(--dim); }
.pg-steps b { color: var(--text); }
.pg-steps pre { margin-top: 10px; }
.pg-term { margin: 0; background: #0C0906; color: #F7F2F0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.pg-term code { background: none; padding: 0; color: inherit; display: block; white-space: pre; line-height: 22px; }
.pg-map { width: 100%; border-collapse: collapse; }
.pg-map th, .pg-map td { text-align: left; vertical-align: top; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); color: var(--body); }
.pg-map th { color: var(--text); font-weight: 500; white-space: nowrap; }
.pg-map tr:first-child th, .pg-map tr:first-child td { border-top: 1px solid var(--line-strong); }
.pg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.pg-cols > div > b { display: block; margin-bottom: 6px; }

.pg-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; }
.pg-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.pg-footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.pg-footer-links a { font-weight: 500; color: var(--muted); text-decoration: none; }
.pg-footer-links a:hover { color: var(--text); }

@media (max-width: 880px) {
  .pg-header nav a, .pg-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .pg-header nav a.pg-gh { height: 44px; }
  .pg-footer-links { gap: 0 22px; }
  .pg-how, .pg-cols { grid-template-columns: minmax(0, 1fr); }
  .pg-how > li { padding: 14px 0; }
  .pg-how > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pg-item { grid-template-columns: 64px minmax(0, 1fr); }
  .pg-action { grid-column: 2; padding-top: 0; }
}
@media (max-width: 640px) {
  .pg-wrap { padding: 0 18px; }
  .pg-header { height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 4px; padding-top: 12px; padding-bottom: 10px; }
  .pg-header nav { flex-wrap: wrap; gap: 6px 16px; }
  .pg-hero { padding: 40px 0 28px; }
  .pg-map th { white-space: normal; }
}
