/* ============================================================
   TERRAPORT - SHARED STYLESHEET
   ============================================================ */

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

:root {
  --color-bg: #FAFAF8;
  --color-white: #FFFFFF;
  --color-cream: #F5F3EF;
  --color-primary: #1B3A4B;
  --color-primary-light: #2D5F73;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-border: #E5E1DB;
  --color-placeholder: #D5D0C8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links > a,
.nav-dropdown-trigger {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}
.nav-links > a:hover,
.nav-dropdown-trigger:hover { color: var(--color-primary); }
.nav-links > a.active { color: var(--color-primary); font-weight: 600; }

/* Nav dropdown */
.nav-dropdown-wrapper {
  position: relative;
  padding: 24px 0;
  margin: -24px 0;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: transform 0.2s;
}
.nav-dropdown-wrapper:hover .nav-dropdown-trigger::after,
.nav-dropdown-wrapper:focus-within .nav-dropdown-trigger::after,
.nav-dropdown-wrapper.open .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}
.nav-dropdown-wrapper:hover .nav-dropdown-trigger,
.nav-dropdown-wrapper:focus-within .nav-dropdown-trigger,
.nav-dropdown-wrapper.open .nav-dropdown-trigger {
  color: var(--color-primary);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding-top: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 110;
}
.nav-dropdown-inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown,
.nav-dropdown-wrapper.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-dropdown a:hover {
  color: var(--color-primary);
  background: var(--color-cream);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: var(--color-cream);
  box-shadow: var(--shadow-md);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}
.btn-cta {
  background: var(--color-primary-light);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45, 95, 115, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta:hover {
  background: #367d9a;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(45, 95, 115, 0.35);
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding: 140px 32px 72px;
  text-align: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.page-header-inner {
  max-width: 660px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- SECTION SHARED ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-primary-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  max-width: 560px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header .section-subtitle { margin-bottom: 0; }

/* ---------- IMAGE PLACEHOLDER ---------- */
.image-placeholder {
  background: var(--color-placeholder);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- RESOURCE SECTIONS ---------- */
.resource-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 32px;
}
.resource-section + .resource-section {
  border-top: 1px solid var(--color-border);
}
.resource-section-alt {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.resource-section-alt .resource-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 32px;
}

/* ---------- FEATURED POST ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.featured-post .image-placeholder {
  aspect-ratio: 16 / 10;
}
.featured-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 12px;
}
.featured-post h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.featured-post h2 a { color: inherit; text-decoration: none; }
.featured-post h2 a:hover { color: var(--color-primary-light); }
.featured-post p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.post-meta time { font-weight: 500; }

/* ---------- BLOG GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card .image-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.blog-card-body { padding: 24px; }
.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--color-primary-light); }
.blog-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ---------- REPORT CARDS ---------- */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.report-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  transition: all 0.25s;
}
.report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.report-card .image-placeholder {
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 180px;
}
.report-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.report-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 8px;
  display: block;
}
.report-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.report-card h3 a { color: inherit; text-decoration: none; }
.report-card h3 a:hover { color: var(--color-primary-light); }
.report-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---------- TOOLS GRID ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.tool-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 36px 32px;
  transition: all 0.25s;
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-cream);
}
.tool-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 4px;
  display: block;
}
.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.tool-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ---------- NEWSLETTER CTA ---------- */
.newsletter {
  text-align: center;
  padding: 80px 32px;
  background: var(--color-primary);
  color: #fff;
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}
.newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
}
.newsletter-form button {
  padding: 13px 28px;
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.newsletter-form button:hover {
  background: var(--color-cream);
  box-shadow: var(--shadow-md);
}

/* ---------- CTA SECTION ---------- */
.cta {
  text-align: center;
  padding: 100px 32px;
  background: var(--color-primary);
  color: #fff;
}
.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 32px;
  background: var(--color-white);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-primary); }

/* ---------- TOOL PAGE STYLES ---------- */
.tool-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.tool-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group .label-hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0;
}
.rate-source {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Tool results */
.tool-results {
  margin-top: 32px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 40px;
  display: none;
}
.tool-results.visible { display: block; }
.result-headline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.result-item label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.result-item .result-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}
.result-item .result-value.warning {
  color: #B45309;
}
.result-item .result-value.good {
  color: #15803D;
}
.result-breakdown {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}
.result-breakdown h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.result-row:last-child { border-bottom: none; }
.result-row .row-label { color: var(--color-text-muted); }
.result-row .row-value { font-weight: 600; color: var(--color-text); }
.result-row.total {
  border-top: 2px solid var(--color-primary);
  border-bottom: none;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
}
.result-row.total .row-label { color: var(--color-text); }
.result-row.total .row-value { color: var(--color-primary); font-size: 1.05rem; }
.result-callout {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Explainer section below tool */
.tool-explainer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.tool-explainer h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.tool-explainer p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ---------- CHECKLIST STYLES ---------- */
.checklist-progress {
  margin-bottom: 32px;
}
.checklist-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.checklist-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.3s;
  width: 0%;
}
.checklist-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.checklist-category {
  margin-bottom: 32px;
}
.checklist-category h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-bg);
}
.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}
.checklist-item label {
  font-size: 0.93rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.5;
}
.checklist-item.checked label {
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.checklist-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- GLOSSARY STYLES ---------- */
.glossary-search {
  margin-bottom: 40px;
}
.glossary-search input {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}
.glossary-search input:focus {
  border-color: var(--color-primary);
}
.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 40px;
}
.glossary-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all 0.15s;
}
.glossary-alpha-nav a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.glossary-letter-group {
  margin-bottom: 40px;
}
.glossary-letter {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.glossary-term {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-bg);
}
.glossary-term h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.glossary-term p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}
.glossary-no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  display: none;
}

/* ---------- RELATED TOOLS ---------- */
.related-tools {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.related-tools h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-tool-link {
  display: block;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-tool-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-tool-link h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.related-tool-link p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- RESOURCE SEARCH BAR ---------- */
.resource-search-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 0;
}
.resource-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 16px center no-repeat;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.resource-search-bar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 75, 0.08);
}
.resource-search-bar input::placeholder {
  color: var(--color-text-muted);
}
.resource-search-no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  display: none;
}

/* ---------- BLOG ARTICLE ---------- */
.article-header {
  padding: 140px 32px 48px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.article-header-inner {
  max-width: 720px;
  margin: 0 auto;
}
.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-header .article-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 620px;
}
.article-header .post-meta {
  font-size: 0.85rem;
}
.article-hero-img {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.article-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 48px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 36px 0 12px;
  line-height: 1.35;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px 20px;
  line-height: 1.8;
  color: var(--color-text);
}
.article-body li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.article-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-cream);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body strong { font-weight: 600; }
.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: var(--color-primary-light);
}
.article-callout {
  padding: 24px 28px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin: 28px 0;
}
.article-callout h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.article-callout p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.article-callout ul {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
}
.article-sources {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.article-sources h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 16px;
}
.article-sources ol {
  margin: 0 0 0 20px;
  line-height: 1.8;
}
.article-sources li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.article-sources a {
  color: var(--color-primary-light);
  word-break: break-all;
}
.related-posts {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.related-posts h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.related-post-link {
  display: block;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-post-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-post-link span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
  margin-bottom: 6px;
}
.related-post-link h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- PRINT ---------- */
@media print {
  nav, footer, .newsletter, .related-tools, .btn, .checklist-actions,
  .checklist-progress, .glossary-search, .glossary-alpha-nav { display: none; }
  .page-header { padding-top: 32px; border: none; }
  .tool-form, .tool-results { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .blog-grid, .report-grid, .tools-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .report-card { grid-template-columns: 1fr; }
  .report-card .image-placeholder { min-height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .related-tools-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .nav-links > a:not(.btn),
  .nav-dropdown-wrapper { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .tool-form { padding: 28px 20px; }
  .tool-results { padding: 24px 20px; }
}
