/* PMP Draft - shared site styles.
   One typeface (Source Sans 3), sentence-case labels, no monospace. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #d9dee5;
  --accent: #1a56db;
  --accent-dark: #1341b0;
  --accent-soft: #e8f0fe;
  --text: #16202e;
  --text-muted: #4d5a6b;
  --success: #0a7a43;
  --warning: #9a4a05;
  --danger: #c2281f;
  --font: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --content-width: 46rem;
  --wide-width: 62rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p, ul, ol, table, blockquote { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid #f5a524; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  line-height: 1.2;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button-small { font-size: 0.92rem; padding: 0.5rem 0.95rem; }
.button .keep-case { text-transform: none; }
.button-large { font-size: 1.15rem; padding: 1rem 2.4rem; }
.button-light { background: #fff; color: var(--accent); border-color: #fff; }
.button-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { color: var(--accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem 1.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  padding: 0.3rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
main { padding-bottom: 4rem; }
main:has(> .cta-band:last-child) { padding-bottom: 0; }
.site-footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
.footer-nav a { color: var(--text); font-size: 1rem; }
.footer-note { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.5rem; max-width: 52rem; }

/* Prose pages and guides */
.prose {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--text-muted); font-size: 0.95rem; margin-top: -0.4rem; }
.prose .lede { font-size: 1.2rem; color: var(--text-muted); }
.prose .breadcrumb { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.prose blockquote {
  margin-left: 0;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 1rem;
  margin: 0;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--surface-2); font-weight: 600; }

.callout, .source-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 2.5rem 0 0;
}
.callout { border-left: 4px solid var(--accent); }
.callout h2, .more-guides h2 { font-size: 1.2rem; margin-top: 0; }
.callout p:last-child, .source-note p:last-child { margin-bottom: 0; }
.source-note { font-size: 0.95rem; color: var(--text-muted); margin-top: 1rem; }
.more-guides { margin-top: 2.5rem; }

.note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.4em;
}
.note p:last-child { margin-bottom: 0; }

/* Home page */
.hero {
  max-width: 50rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; }
.hero .lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.hero-note { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; }

.band { border-top: 1px solid var(--border); }
.section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.section > h2 { font-size: 1.7rem; }
.section-intro { max-width: 44rem; color: var(--text-muted); margin-bottom: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card h3 { margin-bottom: 0.4em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.card .step-label { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }

.starter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: starter;
}
.starter-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 1rem;
}

.cta-band { background: var(--accent); color: #fff; }
.cta-band .section { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.cta-band h2 { color: #fff; font-size: 1.45rem; }
.cta-band p { color: #e3ecff; }

/* Guides index */
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
}
.guide-list h2 { font-size: 1.2rem; margin: 0 0 0.3em; }
.guide-list p { margin: 0; color: var(--text-muted); font-size: 1rem; }

/* Forms shared by the calculator */
.field { margin-bottom: 1rem; }
.field label, .field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field .hint { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.35rem; }
input[type="text"], input[type="month"], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.4;
  padding: 0.55rem 0.7rem;
}
input[type="text"], input[type="month"], select { height: 2.875rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }

/* Experience calculator */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 0 0 1.5rem;
}
.calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.calc-row .field { margin-bottom: 0; }
.calc-row .field-title { grid-column: 1 / -1; }
.calc h2 { font-size: 1.2rem; margin: 1.75rem 0 0.9rem; }
.calc-remove {
  background: var(--surface);
  border: 1px solid #b8c0cc;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  height: 2.875rem;
  padding: 0 1rem;
}
.calc-remove:hover { border-color: var(--danger); color: var(--danger); }
.calc-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.calc-result {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.25rem;
}
.calc-result p { margin: 0 0 0.4rem; }
.calc-result p:last-child { margin-bottom: 0; }
.calc-result .big { font-size: 1.35rem; font-weight: 700; }
.calc-result.met { background: #e3f5ea; }
.calc-warning { color: var(--warning); }

@media (max-width: 980px) {
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .card-grid-4, .starter-list { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1.1rem; }
  .section { padding: 2.5rem 1.25rem; }
  .cta-band .section { grid-template-columns: 1fr; gap: 2rem; }
  .site-header-inner { gap: 0.5rem 1rem; }
  .header-cta { order: 2; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 0.2rem 1.1rem; }
}

@media (max-width: 480px) {
  .calc { padding: 1.1rem; }
  .calc-row { grid-template-columns: minmax(0, 1fr); }
}
