/* ============================================
   awâsisak / Pathways
   Master stylesheet — full
   Birchbark palette · mobile-first · ES5-safe
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: Georgia, "EB Garamond", "Crimson Pro", serif;
  line-height: 1.7;
  color: #1F1410;
  background-color: #F4EDE0;
  min-height: 100vh;
}

/* Layout */

.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 680px;
}

/* Header */

.site-header {
  background-color: #FAF6EC;
  border-bottom: 1px solid #D9CDB8;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand {
  font-family: Georgia, "EB Garamond", serif;
  font-size: 2.5rem;
  font-weight: normal;
  color: #3D2817;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.brand-meaning {
  font-size: 0.95rem;
  color: #6B5B4F;
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1rem;
  color: #3D2817;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Navigation */

.main-nav {
  background-color: #3D2817;
  border-bottom: 2px solid #2A1B10;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-list li {
  flex: 1 1 auto;
  text-align: center;
  min-width: 80px;
}

.nav-list a {
  display: block;
  padding: 0.9rem 0.75rem;
  color: #F4EDE0;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
  background-color: #2A1B10;
}

.nav-list a.active {
  background-color: #2A1B10;
  font-weight: 600;
}

/* Sections */

main {
  padding: 0;
}

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #E5D9C2;
}

.section:last-child {
  border-bottom: none;
}

.intro {
  padding: 2.5rem 0 1.5rem;
  background-color: #FAF6EC;
  border-bottom: 1px solid #E5D9C2;
}

.intro p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

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

.section-heading {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-intro {
  color: #6B5B4F;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.section-footer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.section-footer a {
  color: #9B3A1F;
  text-decoration: none;
  font-weight: 500;
}

.section-footer a:hover,
.section-footer a:focus {
  color: #3D2817;
  text-decoration: underline;
}

/* Start Here List */

.start-list {
  list-style: none;
}

.start-list li {
  margin-bottom: 0.75rem;
}

.start-item {
  display: block;
  padding: 1rem 1.25rem;
  background-color: #FAF6EC;
  border-left: 4px solid #9B3A1F;
  text-decoration: none;
  color: #1F1410;
  transition: background-color 0.2s, transform 0.2s;
}

.start-item:hover,
.start-item:focus {
  background-color: #F0E6D2;
  transform: translateX(2px);
}

.start-title {
  display: block;
  font-size: 1.05rem;
  color: #3D2817;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.start-meta {
  display: block;
  font-size: 0.85rem;
  color: #6B5B4F;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Category Grid */

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.category-card {
  display: block;
  padding: 1.5rem 1.25rem;
  background-color: #FAF6EC;
  border: 1px solid #D9CDB8;
  border-radius: 4px;
  text-decoration: none;
  color: #1F1410;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.category-card:hover,
.category-card:focus {
  border-color: #9B3A1F;
  background-color: #F0E6D2;
  transform: translateY(-2px);
}

.category-card h3 {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #6B5B4F;
  line-height: 1.5;
}

/* Topic Cloud */

.topic-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-cloud li {
  display: inline-block;
}

.topic-cloud a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FAF6EC;
  border: 1px solid #5C6B47;
  border-radius: 20px;
  color: #5C6B47;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  transition: background-color 0.2s, color 0.2s;
}

.topic-cloud a:hover,
.topic-cloud a:focus {
  background-color: #5C6B47;
  color: #F4EDE0;
}

/* Path List */

.path-list {
  list-style: none;
}

.path-list li {
  margin-bottom: 0.75rem;
}

.path-item {
  display: block;
  padding: 1rem 1.25rem;
  background-color: #FAF6EC;
  border-left: 4px solid #5C6B47;
  text-decoration: none;
  color: #1F1410;
  transition: background-color 0.2s, transform 0.2s;
}

.path-item:hover,
.path-item:focus {
  background-color: #F0E6D2;
  transform: translateX(2px);
}

.path-title {
  display: block;
  font-size: 1.05rem;
  color: #3D2817;
  margin-bottom: 0.25rem;
}

.path-meta {
  display: block;
  font-size: 0.85rem;
  color: #6B5B4F;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Support Block */

.section-support p {
  margin-bottom: 1rem;
}

.support-block {
  padding: 1rem 1.25rem;
  background-color: #FAF6EC;
  border-left: 4px solid #9B3A1F;
  margin-bottom: 1rem;
}

.support-name {
  font-size: 1rem;
  color: #3D2817;
  margin-bottom: 0.25rem !important;
  font-weight: 600;
}

.support-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.2rem;
  color: #9B3A1F;
  font-weight: 600;
  margin-bottom: 0.25rem !important;
  letter-spacing: 0.02em;
}

.support-number a {
  color: #9B3A1F;
  text-decoration: none;
  font-weight: 600;
}

.support-number a:hover,
.support-number a:focus {
  color: #3D2817;
  text-decoration: underline;
}

.support-meta {
  font-size: 0.85rem;
  color: #6B5B4F;
  margin-bottom: 0 !important;
}

/* Page Wrapper */

.page-main {
  padding: 2rem 0 3rem;
}

.page-title {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

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

.page-section h2 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.page-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-section p:last-child {
  margin-bottom: 0;
}

.page-section a {
  color: #9B3A1F;
}

.page-section a:hover,
.page-section a:focus {
  color: #3D2817;
}

.page-meta {
  font-size: 0.85rem;
  color: #6B5B4F;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #D9CDB8;
}

/* Back link */

.back-link {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.back-link a {
  color: #6B5B4F;
  text-decoration: none;
}

.back-link a:hover,
.back-link a:focus {
  color: #3D2817;
}

/* Resource page */

.resource-title {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.resource-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  color: #6B5B4F;
  margin-bottom: 0.5rem;
}

.resource-nation {
  font-size: 0.95rem;
  color: #5C6B47;
  margin-bottom: 0.5rem;
}

.indigenous-flag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background-color: #FAF6EC;
  border-left: 3px solid #5C6B47;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.indigenous-flag.indigenous-no { border-left-color: #6B5B4F; }
.indigenous-flag.indigenous-contested { border-left-color: #9B3A1F; background-color: #F4EDE0; }
.indigenous-flag.indigenous-mixed { border-left-color: #5C6B47; }

.contested-flag {
  padding: 0.75rem 1rem;
  background-color: #F4EDE0;
  border: 1px solid #9B3A1F;
  color: #9B3A1F;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.visit-source-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.visit-source {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background-color: #9B3A1F;
  color: #F4EDE0 !important;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.visit-source:hover,
.visit-source:focus {
  background-color: #7A2E18;
  color: #F4EDE0 !important;
}

.resource-section {
  margin: 1.75rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5D9C2;
}

.resource-section:last-of-type {
  border-bottom: none;
}

.resource-section h2 {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: normal;
  color: #3D2817;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resource-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.resource-topics li a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: #FAF6EC;
  border: 1px solid #5C6B47;
  border-radius: 16px;
  color: #5C6B47;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  transition: background-color 0.2s, color 0.2s;
}

.resource-topics li a:hover,
.resource-topics li a:focus {
  background-color: #5C6B47;
  color: #F4EDE0;
}

.resource-priority {
  font-size: 0.9rem;
  color: #6B5B4F;
  margin: 1rem 0;
}

.loading {
  color: #6B5B4F;
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* Resource list (for category/topic browse pages) */

.resource-list {
  list-style: none;
}

.resource-list li {
  margin-bottom: 1rem;
}

.resource-list-item {
  display: block;
  padding: 1.25rem;
  background-color: #FAF6EC;
  border: 1px solid #D9CDB8;
  border-radius: 4px;
  text-decoration: none;
  color: #1F1410;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.resource-list-item:hover,
.resource-list-item:focus {
  border-color: #9B3A1F;
  background-color: #F0E6D2;
  transform: translateY(-2px);
}

.resource-list-title {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: #3D2817;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.resource-list-meta {
  display: block;
  font-size: 0.85rem;
  color: #6B5B4F;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 0.4rem;
}

.resource-list-summary {
  font-size: 0.95rem;
  color: #3D2817;
  line-height: 1.5;
  margin-top: 0.4rem;
}

.resource-list-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.flag-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
}

.flag-chip.flag-indigenous { background-color: #5C6B47; color: #F4EDE0; }
.flag-chip.flag-mixed { background-color: #FAF6EC; color: #5C6B47; border: 1px solid #5C6B47; }
.flag-chip.flag-non-indigenous { background-color: #FAF6EC; color: #6B5B4F; border: 1px solid #6B5B4F; }
.flag-chip.flag-contested { background-color: #9B3A1F; color: #F4EDE0; }
.flag-chip.flag-essential { background-color: #3D2817; color: #F4EDE0; }

/* Category tabs (for /categories/) */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #D9CDB8;
}

.category-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FAF6EC;
  border: 1px solid #D9CDB8;
  border-radius: 4px;
  color: #3D2817;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.category-tab:hover,
.category-tab:focus {
  border-color: #9B3A1F;
  background-color: #F0E6D2;
}

.category-tab.active {
  background-color: #3D2817;
  color: #F4EDE0;
  border-color: #3D2817;
}

/* Footer */

.site-footer {
  background-color: #3D2817;
  color: #E5D9C2;
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.site-footer p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-name {
  font-size: 1rem !important;
  color: #F4EDE0;
}

.footer-meta {
  padding-top: 1rem;
  border-top: 1px solid #5C4A37;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #C9BBA3;
}

.footer-meta a {
  color: #E5D9C2;
  text-decoration: underline;
}

.footer-meta a:hover,
.footer-meta a:focus {
  color: #F4EDE0;
}

/* Links */

a {
  color: #9B3A1F;
}

a:hover,
a:focus {
  color: #3D2817;
}

/* Tablet & up */

@media (min-width: 640px) {
  .brand { font-size: 3rem; }
  .tagline { font-size: 1.1rem; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .section-heading { font-size: 1.8rem; }
}

@media (min-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Accessibility */

:focus {
  outline: 2px solid #9B3A1F;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 
    0.01ms !important;
    animation-duration: 0.01ms !important;
    /* ============================================
   404 page additions
   ============================================ */

.not-found-list {
  list-style: none;
  margin-top: 1rem;
}

.not-found-list li {
  margin-bottom: 0.75rem;
}

.not-found-link {
  display: block;
  padding: 1rem 1.25rem;
  background-color: #FAF6EC;
  border-left: 4px solid #5C6B47;
  text-decoration: none;
  color: #3D2817;
  transition: background-color 0.2s, transform 0.2s;
}

.not-found-link:hover,
.not-found-link:focus {
  background-color: #F0E6D2;
  transform: translateX(2px);
  color: #3D2817;
}

.not-found-link strong {
  font-weight: 600;
}

/* ============================================
   Print stylesheet hook
   The print.css file is loaded via media="print"
   ============================================ */
  }
}