/* Intra-Hub.info — text-led structured resource portal */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1a18;
  --text-muted: #4d4d47;
  --accent: #2b6a5c;
  --accent-hover: #24594d;
  --border: #d8d6cf;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(26, 26, 24, 0.06);
  --font: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --measure-wide: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--measure);
}

/* HEADER */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.site-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--accent);
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* MAIN */

main {
  padding: 2rem 0 3rem;
}

.page-intro {
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* HERO */

.utility-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.25rem 0 1.35rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.anchor-row a {
  text-decoration: none;
  font-weight: 600;
}

/* SECTIONS */

.section {
  margin-bottom: 2.75rem;
}

.section-heading {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.25rem;
}

.issue-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 42rem) {
  .issue-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.issue-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.issue-block h3 {
  margin-top: 0;
  font-size: 1rem;
}

.start-checks {
  background: var(--surface);
  padding: 1.25rem 1.25rem 0.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

/* Categories: two-column rhythm */

.category-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 50rem) {
  .category-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.category-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 0.5rem;
  margin-bottom: 1rem;
}

.category-group:last-child {
  margin-bottom: 0;
}

.category-group h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text);
}

/* Featured guide */

.featured-guide {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.featured-guide .guide-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.takeaways {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
}

.takeaways li {
  margin-bottom: 0.45rem;
}

/* Archive */

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.archive-item:first-child {
  padding-top: 0;
}

.archive-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.archive-summary {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0 0 0.55rem;
}

/* Contact note */

.contact-note {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  font-size: 0.95rem;
}

.contact-note address {
  font-style: normal;
  margin: 0.75rem 0;
  color: var(--text-muted);
}

/* FOOTER */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer nav li {
  margin-bottom: 0.35rem;
}

.copyright {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* Article body */

.article-body {
  font-size: 1.02rem;
}

.article-body ul {
  margin: 0 0 1em;
  padding-left: 1.35rem;
}

.related-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Forms (contacts) */

.form-stack label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 1rem;
}

.form-stack textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Utility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
