/* HubPortalStaff.world — service-first editorial, text-led */

:root {
  --bg: #f7f5f2;
  --bg-panel: #fffefb;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent: #2c5f4e;
  --accent-soft: #3d7a64;
  --border: #d9d4cc;
  --max: 38rem;
  --max-wide: 48rem;
  --max-archive: 40rem;
  --space: 1.25rem;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-soft);
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  font: inherit;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel);
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav__list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    list-style: none;
    margin: 0.35rem 0 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    z-index: 20;
  }

  .site-nav__list.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list li {
    margin: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
  }

  .site-nav__list a:hover {
    background: var(--bg);
    color: var(--accent);
  }
}

@media (min-width: 52.01rem) {
  .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav__list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .site-nav__list a:hover {
    color: var(--accent);
  }
}

/* Layout */
main {
  padding-bottom: 3rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.container--wide {
  max-width: var(--max-wide);
}

.container--archive {
  max-width: var(--max-archive);
}

/* Hero & sections */
.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

h1,
.h1-like {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type,
.section-block:first-child h2 {
  border-top: 0;
  padding-top: 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.section-block {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.section-block--tight-top {
  padding-top: 1.25rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.trust-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  max-width: 32rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.3;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: rgba(44, 95, 78, 0.08);
  color: var(--accent-soft);
}

/* Help list */
.help-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.help-list li {
  margin-bottom: 0.35rem;
}

/* Service pathways */
.pathway-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 44rem) {
  .pathway-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
  }
}

.pathway {
  padding: 1rem 1rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pathway h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.pathway p {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.pathway__links {
  font-size: 0.92rem;
  margin: 0;
}

.pathway__links a {
  display: block;
  margin-top: 0.35rem;
}

/* Process */
.process-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.process-list li {
  margin-bottom: 0.65rem;
}

/* Selected notes — emphasized + stack */
.note-featured {
  padding: 1.15rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.note-featured h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.note-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-stack li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.note-stack li:last-child {
  border-bottom: 0;
}

.note-stack h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.note-stack p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.read-link {
  font-size: 0.92rem;
}

/* Archive */
.archive-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.archive-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.archive-list a {
  font-family: var(--font-serif);
  color: var(--text);
  text-decoration: none;
}

.archive-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Forms */
.form-block {
  margin-top: 1rem;
  max-width: 28rem;
}

.form-row {
  margin-bottom: 0.85rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel);
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-details {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details p {
  margin: 0.35rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 1.75rem var(--space);
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-nav {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
}

/* Page shell (inner pages) */
.page-intro {
  padding-top: 2rem;
}

.page-intro h1 {
  border: 0;
  padding: 0;
}

/* Articles */
.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.breadcrumb {
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.related-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-block h2 {
  border: 0;
  padding: 0;
  margin-top: 0;
  font-size: 1.1rem;
}

.related-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.related-block li {
  margin-bottom: 0.4rem;
}

/* Privacy narrow */
.privacy-toc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-section {
  margin-top: 1.75rem;
}

.privacy-section h2 {
  font-size: 1.15rem;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* Thank you */
.thank-panel {
  padding: 1.5rem 0 2rem;
}

.thank-links {
  margin-top: 1.5rem;
}

.thank-links a {
  margin-right: 1rem;
}

/* Two-column editorial rhythm (homepage sections) */
@media (min-width: 48rem) {
  .split-rail {
    display: grid;
    grid-template-columns: 1fr 11rem;
    gap: 2rem;
    align-items: start;
  }

  .split-rail__aside {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    padding-left: 1rem;
    margin-top: 0.25rem;
  }
}

@media (max-width: 47.99rem) {
  .split-rail__aside {
    display: none;
  }
}
