/* Public Sector Calculators – full styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --psc-wrap: 72rem;
  --psc-gap: 1.5rem;
  --psc-radius: 0.5rem;
  --psc-radius-lg: 0.75rem;
  --psc-border: 1px solid #e2e8f0;
  --psc-text: #1e293b;
  --psc-muted: #64748b;
  --psc-bg: #f8fafc;
  --psc-bg-hero: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  --psc-accent: #0f766e;
  --psc-accent-hover: #0d9488;
  --psc-accent-light: #ccfbf1;
  --psc-font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --psc-font-body: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --psc-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --psc-shadow-lg: 0 4px 14px rgba(15, 118, 110, 0.15);
}

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

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

.wrap {
  max-width: var(--psc-wrap);
  margin: 0 auto;
  padding: 0 var(--psc-gap);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--psc-accent);
  font-family: var(--psc-font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--psc-accent-hover);
}

.logo svg {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.logo-text {
  white-space: nowrap;
}


/* Header */
.site-header {
  background: #fff;
  border-bottom: var(--psc-border);
  padding: 0.875rem 0;
  box-shadow: var(--psc-shadow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-nav a {
  color: var(--psc-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--psc-accent);
}

/* Main */
main {
  padding: 3.25rem var(--psc-gap) 4rem;
}

/* Breadcrumbs – clear space below header/nav */
.breadcrumbs {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--psc-muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--psc-muted);
}

.breadcrumbs a {
  color: var(--psc-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--psc-accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--psc-text);
  font-weight: 600;
}

/* Page (sub-pages) */
.page {
  background: #fff;
  border-radius: var(--psc-radius-lg);
  border: var(--psc-border);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--psc-shadow);
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--psc-font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--psc-text);
}

.page-header .lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--psc-muted);
  line-height: 1.5;
}

.page-updated {
  margin: 0;
  font-size: 0.875rem;
  color: var(--psc-muted);
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro p:first-child { margin-top: 0; }
.page-intro p:last-child { margin-bottom: 0; }

/* Section headings (H2/H3) */
.section-head {
  font-family: var(--psc-font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--psc-text);
}

.section-head .emoji {
  margin-right: 0.35rem;
}

.section-desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--psc-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: var(--psc-border);
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
  color: var(--psc-muted);
  background: #fff;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

/* Footer HTML sitemap (By calculator type, By organisation) */
.site-footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
}

.site-footer-sitemap-section {
  margin: 0;
}

.site-footer-sitemap-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--psc-text);
}

.site-footer-sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer-sitemap-links a {
  color: var(--psc-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer-sitemap-links a:hover {
  color: var(--psc-accent);
}

.site-footer-sitemap-full {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
}

.site-footer-sitemap-full a {
  color: var(--psc-accent);
  text-decoration: none;
}

.site-footer-sitemap-full a:hover {
  text-decoration: underline;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-nav a {
  color: var(--psc-muted);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--psc-accent);
}

.site-footer-meta {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer-meta p {
  margin: 0;
}

.site-footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--psc-muted);
  max-width: 52rem;
  line-height: 1.5;
}

/* Sitemap page (/sitemap.html) */
.sitemap-page .lead {
  margin-bottom: 1.5rem;
}

.sitemap-section {
  margin-bottom: 2rem;
}

.sitemap-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--psc-text);
}

.sitemap-list {
  margin: 0;
  padding-left: 1.25rem;
}

.sitemap-list li {
  margin-bottom: 0.35rem;
}

.sitemap-list a {
  color: var(--psc-accent);
  text-decoration: none;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

.sitemap-orgs {
  display: grid;
  gap: 1.25rem;
}

.sitemap-org-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.sitemap-org-block h3 a {
  color: var(--psc-accent);
  text-decoration: none;
}

.sitemap-org-block h3 a:hover {
  text-decoration: underline;
}

.sitemap-role-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.sitemap-role-list li {
  margin-bottom: 0.25rem;
}

.sitemap-role-list a {
  color: var(--psc-muted);
  text-decoration: none;
}

.sitemap-role-list a:hover {
  color: var(--psc-accent);
}

.sitemap-xml-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: var(--psc-muted);
}

.sitemap-xml-link a {
  color: var(--psc-accent);
  text-decoration: none;
}

.sitemap-xml-link a:hover {
  text-decoration: underline;
}

/* ========== HOMEPAGE ========== */
.home-hero {
  text-align: center;
  margin-top: 2.75rem;
  padding: 3rem 0 3.5rem;
  background: var(--psc-bg-hero);
  color: #fff;
  border-radius: var(--psc-radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--psc-shadow-lg);
}

.home-hero h1 {
  font-family: var(--psc-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-hero .tagline {
  margin: 0 auto 1rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 32rem;
  line-height: 1.5;
}

.home-hero .sub {
  font-size: 0.9375rem;
  opacity: 0.85;
  max-width: 28rem;
  margin: 0 auto;
}

.home-section {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #e2e8f0;
}

.home-section h2 {
  font-family: var(--psc-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--psc-text);
  letter-spacing: -0.02em;
}

.home-section h2 .emoji {
  margin-right: 0.35rem;
}

.home-section .section-desc {
  margin-bottom: 1.25rem;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.home-categories a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: var(--psc-border);
  border-radius: var(--psc-radius);
  text-decoration: none;
  color: var(--psc-text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.home-categories a:hover {
  border-color: var(--psc-accent);
  color: var(--psc-accent);
  box-shadow: var(--psc-shadow);
}

.home-categories a .cat-emoji {
  font-size: 1.25rem;
}

.home-orgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.home-orgs a {
  display: block;
  padding: 0.875rem 1rem;
  background: #fff;
  border: var(--psc-border);
  border-radius: var(--psc-radius);
  text-decoration: none;
  color: var(--psc-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.home-orgs a:hover {
  border-color: var(--psc-accent);
  color: var(--psc-accent);
  box-shadow: var(--psc-shadow);
}

.home-featured {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--psc-accent-light);
  border: 1px solid #99f6e4;
  border-radius: var(--psc-radius-lg);
}

.home-featured h3 {
  font-family: var(--psc-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--psc-text);
}

.home-featured h3 .emoji {
  margin-right: 0.35rem;
}

.home-featured p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--psc-muted);
  line-height: 1.5;
}

.home-featured .btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--psc-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--psc-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.home-featured .btn:hover {
  background: var(--psc-accent-hover);
}

/* Featured professions: multiple cards with calculator links */
.home-featured-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.home-featured-card {
  padding: 1.25rem 1.5rem;
  background: var(--psc-accent-light);
  border: 1px solid #99f6e4;
  border-radius: var(--psc-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-featured-card h3 {
  font-family: var(--psc-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--psc-text);
}

.home-featured-card h3 .emoji {
  margin-right: 0.35rem;
}

.home-featured-card > p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--psc-muted);
  line-height: 1.4;
}

.home-featured-calcs {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.home-featured-calcs li {
  margin-bottom: 0.35rem;
}

.home-featured-calcs a {
  color: var(--psc-accent);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.home-featured-calcs a:hover {
  text-decoration: underline;
}

.home-featured-card .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--psc-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--psc-radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
  align-self: flex-start;
}

.home-featured-card .btn:hover {
  background: var(--psc-accent-hover);
}

.home-featured-card .btn-secondary {
  background: #fff;
  color: var(--psc-accent);
  border: 1px solid var(--psc-accent);
}

.home-featured-card .btn-secondary:hover {
  background: rgba(15, 118, 110, 0.08);
}

/* Hub lists (category / org / role pages) */
.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-list li {
  margin-bottom: 0.5rem;
}

.hub-list a {
  color: var(--psc-accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  display: inline-block;
}

.hub-list a:hover {
  text-decoration: underline;
}

/* Sub-page section headings */
.article-section h2 {
  font-family: var(--psc-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--psc-text);
}

.article-section h2:first-child {
  margin-top: 0;
}

.article-section h3 {
  font-family: var(--psc-font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--psc-text);
}

/* ========== Print ========== */
@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .site-nav,
  .psc-btn,
  .psc-download-wrap,
  .psc-chart-wrap {
    display: none !important;
  }

  main {
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .page,
  .psc-results,
  .psc-assumptions,
  .psc-tool {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }

  body {
    background: #fff;
  }

  .home-hero {
    background: #0f766e;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: none;
  }
}
