.article-title {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-dark .footer-link {
  color: #b0b0ff;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #b0b0ff;
  text-underline-offset: 3px;
}

.footer-dark .footer-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;500;600;700;900&display=swap');

:root {
  --primary: #000000;
  --secondary: #ff6600;
  --neutral-900: #000000;
  --neutral-700: #333333;
  --neutral-500: #666666;
  --neutral-300: #CCCCCC;
  --surface: #FFFFFF;
  --background: #FFFFFF;
  --accent: #FF0000;
  --success: #00AA00;
  --info: #0066CC;
  --warning: #FF6600;
  --dark-purple: #4f11b4;
  --blue: #004499;
  --btn-bg: var(--dark-purple);
  --btn-text: #ffffff;
  --btn-hover-bg: var(--warning);
  --btn-hover-text: #1a1a1a;
  --btn-secondary-bg: #616161;
  --btn-secondary-text: #ffffff;
  --btn-secondary-hover-bg: #ff9800;
  --btn-secondary-hover-text: #1a1a1a;
  --btn-danger-bg: #c62828;
  --btn-danger-hover-bg: #b71c1c;
  --btn-danger-light-bg: #ef5350;
  --btn-danger-text: #ffffff;
  --btn-flat-color: var(--dark-purple);
  --btn-flat-hover-color: var(--warning);
}

html, body {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--neutral-900);
  line-height: 1.6;
  font-size: 1rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { 
  font-size: 1.5rem;   /* 40px */
  font-weight: 900;
  line-height: 1.1;
}

h2 { 
  font-size: 1.4rem;     /* 32px */
  font-weight: 800;
}

h3 { 
  font-size: 1.3rem;   /* 24px */
  font-weight: 700;
}

h4 { 
  font-size: 1.2rem;  /* 20px */
  font-weight: 700;
}

h5 { 
  font-size: 1.1rem; /* 18px */
  font-weight: 600;
}

h6 { 
  font-size: 1rem;     /* 16px */
  font-weight: 600;
}

ul,
ol {
  margin: 1rem 0 1.5rem 2rem;
  font-size: 1.1rem;
}

ul {
  list-style-type: disc;
  list-style-position: outside;
}

ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.brand-logo {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1px;
  color: var(--neutral-900) !important;
  text-transform: uppercase;
}

.nav-wrapper {
  background-color: var(--surface) !important;
  border-bottom: 1px solid var(--primary);
  padding: 0 0;
}

/* Wired-style navigation links */
nav a {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 0.65rem;
  padding: 0.15rem 0.3rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--neutral-300);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-title a {
  text-decoration: none;
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn,
.btn-large,
.btn-small {
  background-color: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover,
.btn:focus,
.btn-large:hover,
.btn-large:focus,
.btn-small:hover,
.btn-small:focus {
  background-color: var(--btn-hover-bg) !important;
  color: var(--btn-hover-text) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn.disabled,
.btn:disabled,
.btn.disabled:hover,
.btn:disabled:hover,
.btn.disabled:focus,
.btn:disabled:focus {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: none;
  cursor: not-allowed;
}

.btn.deep-purple,
.btn.deep-purple.lighten-2,
.btn.deep-purple.btn-small,
.btn.deep-purple.btn-large {
  background-color: var(--btn-bg) !important;
  color: var(--btn-text) !important;
}

.btn.deep-purple.disabled,
.btn.deep-purple:disabled {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.btn.deep-purple:hover,
.btn.deep-purple.lighten-2:hover,
.btn.deep-purple.btn-small:hover,
.btn.deep-purple.btn-large:hover {
  background-color: var(--btn-hover-bg) !important;
  color: var(--btn-hover-text) !important;
}

.btn.grey,
.btn.grey.btn-small,
.btn.grey.btn-large {
  background-color: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
}

.btn.grey:hover,
.btn.grey:focus,
.btn.grey.btn-small:hover,
.btn.grey.btn-large:hover {
  background-color: var(--btn-secondary-hover-bg) !important;
  color: var(--btn-secondary-hover-text) !important;
}

.btn.red,
.btn.red.btn-small,
.btn.red.btn-large {
  background-color: var(--btn-danger-bg) !important;
  color: var(--btn-danger-text) !important;
}

.btn.red:hover,
.btn.red:focus,
.btn.red.btn-small:hover,
.btn.red.btn-large:hover {
  background-color: var(--btn-danger-hover-bg) !important;
  color: var(--btn-danger-text) !important;
}

.btn.red.lighten-2,
.btn-small.red.lighten-2 {
  background-color: var(--btn-danger-light-bg) !important;
  color: var(--btn-danger-text) !important;
}

.btn.red.lighten-2:hover,
.btn-small.red.lighten-2:hover {
  background-color: var(--btn-danger-hover-bg) !important;
  color: var(--btn-danger-text) !important;
}

.btn-flat {
  background: transparent !important;
  color: var(--btn-flat-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-flat:hover,
.btn-flat:focus {
  background: transparent !important;
  color: var(--btn-flat-hover-color) !important;
}

.btn-flat.btn-flat-danger {
  color: var(--btn-danger-bg) !important;
}

.btn-flat.btn-flat-danger:hover,
.btn-flat.btn-flat-danger:focus {
  color: var(--btn-danger-hover-bg) !important;
}

.admin-card {
  background-color: var(--primary) !important;
  color: var(--surface) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.admin-card:hover {
  background-color: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Text Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-neutral-900 { color: var(--neutral-900) !important; }
.text-neutral-700 { color: var(--neutral-700) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }

/* Background Colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-background { background-color: var(--background) !important; }

/* Layout Utilities */
.chips .chip { 
  margin-right: 6px; 
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
}

a.chip {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

a.chip:hover,
a.chip:focus {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.article-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-overview-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-thumbnail {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  order: 1;
}

.article-body.article-overview {
  order: 2;
}

.article-thumbnail img {
  max-width: 640px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
}

.article-summary,
.article-content-body {
  margin-top: 1rem;
}

.article-overview {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.article-content {
  max-width: 90ch;
  margin-left: 0;
  margin-right: auto;
}

.sections-grid {
  column-count: 1;
  column-gap: 2rem;
  width: 100%;
}

.article-list-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-list-thumbnail {
  width: auto;
  order: 1;
}

.article-list-thumbnail img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.article-list-content {
  flex: 1;
  order: 2;
}

@media (min-width: 900px) {
  .article-overview-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .article-thumbnail {
    order: 2;
    margin-top: 0.5rem;
    margin-left: 2rem;
  }

  .article-body.article-overview {
    order: 1;
  }

  .sections-grid {
    column-count: 2;
  }

  .article-list-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .article-list-thumbnail {
    width: 400px;
    flex-shrink: 0;
    margin-left: 1.5rem;
    order: 2;
  }

  .article-list-thumbnail img {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }

  .article-list-content {
    order: 1;
  }
}

.sections-grid > .section-block {
  break-inside: avoid-column;
  margin-bottom: 2rem;
}

.section-block { 
  margin-bottom: 0; 
  border-bottom: 1px solid #e0e0e0;
  padding-left: 1rem;
  padding-bottom: 1.5rem;
  break-inside: avoid-column;
}

.section-block h1:first-child,
.section-block h2:first-child,
.section-block h3:first-child,
.section-block h4:first-child,
.section-block h5:first-child,
.section-block h6:first-child {
  margin-top: 0;
}

.article-body {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 80ch; /* Optimal reading width */
  color: var(--neutral-900);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 992px) {
  .article-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Ensure section blocks have the same width as article body */
.section-block .article-body {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: block;
  width: 100%;
  break-inside: avoid-column;
}

.article-body p {
  margin: 1.25rem 0;
  text-align: justify;
}

/* Center images in article body and sections */
.article-body figure,
.section-block figure,
.article-body img,
.section-block img {
  display: block;
  margin: 1em auto;
  text-align: center;
}

.article-body figure img,
.section-block figure img {
  margin: 0 auto;
}

.article-body figure figcaption,
.section-block figure figcaption {
  text-align: center;
  display: block;
}

/* Article headings */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  padding-left: 1rem;
  padding-right: 1rem;
}

.article-body h1 { font-size: 1.5rem; }
.article-body h2 { font-size: 1.4rem; } 
.article-body h3 { font-size: 1.3rem; }  
.article-body h4 { font-size: 1.2rem; }  
.article-body h5 { font-size: 1.1rem; } 
.article-body h6 { font-size: 1rem; }  

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 2rem;
  font-size: 1rem;
}

.article-body ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 1rem !important;
}

.article-body ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  padding-left: 1rem !important;
}

/* Override Materialize CSS for article content */
.article-body ul li {
  list-style-type: disc !important;
  display: list-item !important;
}

.article-body ol li {
  list-style-type: decimal !important;
  display: list-item !important;
}

.article-body blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--neutral-700);
  background: var(--background);
  padding: 1.5rem;
}

.article-body code {
  background: var(--background);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--neutral-300);
}

.article-body pre {
  background: var(--neutral-900);
  color: var(--surface);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Bold text styling */
.article-body strong,
.article-body b {
  font-weight: 700 !important;
  color: var(--neutral-900) !important;
}

.article-body em,
.article-body i {
  font-style: italic;
  color: var(--neutral-700);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 1.5rem 0;
  font-style: italic;
}

/* ==========================================================================
   Links & Interactive Elements
   ========================================================================== */
a {
  color: var(--primary);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--neutral-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

a[href^="http"]:after {
  content: " ↗";
  font-size: 0.8rem;
  color: var(--neutral-500);
}

.input-field input:focus + label,
.input-field textarea:focus + label {
  color: var(--primary) !important;
  font-weight: 600;
}

.input-field input:focus,
.input-field textarea:focus {
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: 0 1px 0 0 var(--primary) !important;
}

input, textarea, select {
  font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
}

.dropdown-content {
  background-color: #ffffff !important;
}

.dropdown-content li > a,
.dropdown-content li > span {
  color: #000000 !important;
}

.dropdown-content li:hover > a,
.dropdown-content li.active > a,
.dropdown-content li > a:hover,
.dropdown-content li > span:hover {
  color: #ff9800 !important;
  background-color: var(--dark-purple) !important;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.magazine-feature {
  grid-column: span 2;
  background: var(--surface);
  padding: 2rem;
  border: 2px solid var(--primary);
}

.magazine-sidebar {
  background: var(--background);
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.pull-quote {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--secondary);
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  border-top: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.footer-dark {
  background-color: #2b2b2b !important;
  color: #f0f0f0;
}

.footer-dark p {
  color: #d0d0d0;
}

.footer-dark .footer-link {
  color: #b0b0ff;
  text-decoration: underline;
}

.footer-dark .footer-link:hover {
  color: #ffffff;
}

.page-footer {
  font-size: 0.85rem;
}

.page-footer p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-copyright {
  font-size: 0.8rem;
}