/* ========================================
   ExpireGuide Design System
   Clean. Authoritative. Trustworthy.
   ======================================== */

/* --- Custom Properties --- */
:root {
  --teal: #1A6B5A;
  --teal-dark: #145647;
  --teal-light: #E6F2EF;
  --teal-subtle: #F3F9F7;

  --green: #2D8F5E;
  --amber: #D4930D;
  --red: #C44040;

  --green-bg: #EFF8F3;
  --amber-bg: #FEF7E8;
  --red-bg: #FDF0F0;

  --cream: #FAFAF7;
  --warm-gray: #F5F4F0;
  --border: #E5E4E0;
  --border-light: #EEEDEA;

  --charcoal: #1C1C1C;
  --charcoal-mid: #404040;
  --charcoal-light: #6B6B6B;
  --charcoal-muted: #999999;
  --white: #FFFFFF;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --max-width: 1140px;
  --content-width: 740px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* --- Focus States --- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.625rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--charcoal-mid); }
p:last-child { margin-bottom: 0; }

/* --- Navigation --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--charcoal);
}
.logo:hover { color: var(--teal); }
.logo svg { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 24px;
  min-height: 24px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--teal-subtle) 0%, var(--white) 50%, var(--cream) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--teal);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--charcoal-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal-light);
}

.trust-item svg { color: var(--teal); }

@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* --- Section Containers --- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.featured-items,
.all-items-preview,
.why-section {
  padding: 4rem 0;
}

.all-items-preview {
  background: var(--cream);
}

.section-container > h2 {
  text-align: center;
  font-size: 1.875rem;
}

.section-subtitle {
  text-align: center;
  color: var(--charcoal-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* --- Category Grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.2s;
  color: var(--charcoal);
}
.category-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.08);
  transform: translateY(-2px);
  color: var(--charcoal);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
}

.category-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* --- Preview Table --- */
.preview-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.preview-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-light);
  padding: 0.875rem 1.25rem;
  border-bottom: 2px solid var(--border);
  background: var(--cream);
}

.preview-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.preview-table tr:last-child td { border-bottom: none; }
.preview-table tr:hover { background: var(--teal-subtle); }

/* Clickable table rows */
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: var(--teal-subtle) !important;
}
.clickable-row td {
  transition: background 0.1s;
}

.cat-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: var(--teal-light);
  color: var(--teal-dark);
  white-space: nowrap;
}

.table-link {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* --- CTA Section --- */
.cta-section {
  padding: 3rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--teal);
}
.cta-box .btn-primary:hover {
  background: var(--cream);
  color: var(--teal-dark);
}

/* --- Why Grid --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--cream);
}

.why-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* --- Breadcrumbs --- */
.breadcrumb {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--charcoal-muted);
}

.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--charcoal-light); }
.breadcrumb a:hover { color: var(--teal); }

/* --- Item Page --- */
.item-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.item-header {
  margin: 2rem 0;
}

.item-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.item-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.item-subtitle {
  font-size: 1.0625rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

.item-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.quick-fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-muted);
  margin-bottom: 0.25rem;
}

.quick-fact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
}

@media (max-width: 480px) {
  .item-quick-facts { grid-template-columns: 1fr; }
}

.last-reviewed {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  margin-bottom: 2rem;
}

/* --- Item Sections --- */
.item-section {
  margin-bottom: 2.5rem;
}

.item-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

/* Short Answer Box */
.short-answer-box {
  background: var(--teal-subtle);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
}

.short-answer-box p {
  color: var(--charcoal);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Warning Signs */
.warning-signs {
  list-style: none;
}

.warning-signs li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--charcoal-mid);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.warning-signs li:last-child { border-bottom: none; }

.warning-signs li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Bottom Line Box */
.bottom-line-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.bottom-line-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.bl-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-muted);
  margin-bottom: 0.2rem;
}

.bl-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.bottom-line-box > p {
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .bottom-line-grid { grid-template-columns: 1fr; }
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

.faq-question:hover { color: var(--teal); }

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  line-height: 1.7;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* --- Sources --- */
.sources-list {
  list-style: none;
}

.sources-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.source-badge {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.sources-list a {
  color: var(--charcoal-light);
}
.sources-list a:hover { color: var(--teal); }

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  background: var(--amber-bg);
  border: 1px solid rgba(212, 147, 13, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.disclaimer-bar p {
  font-size: 0.8125rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  margin: 0;
}

.disclaimer-bar strong { color: var(--charcoal); }

/* --- Related Items --- */
.related-items {
  margin-top: 2rem;
}

.related-items h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all 0.15s;
  color: var(--charcoal);
}

.related-card:hover {
  border-color: var(--teal);
  background: var(--teal-subtle);
  color: var(--charcoal);
}

.related-lifespan {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
}

.related-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --- Category Page --- */
.category-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.category-header {
  margin-bottom: 2.5rem;
}

.category-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.category-description {
  font-size: 1.0625rem;
  color: var(--charcoal-light);
  max-width: 640px;
}

.category-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 2rem;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
}

.category-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-light);
  padding: 0.875rem 1.25rem;
  border-bottom: 2px solid var(--border);
  background: var(--cream);
}

.category-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
}

.category-table tr:last-child td { border-bottom: none; }
.category-table a { font-weight: 600; }

.lifespan-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  background: var(--teal-light);
  color: var(--teal-dark);
  white-space: nowrap;
}

/* Category cards (mobile-friendly alternative) */
.category-cards {
  display: none;
}

@media (max-width: 768px) {
  .category-table-wrapper { display: none; }
  .category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.item-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  color: var(--charcoal);
}

.item-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(26,107,90,0.06);
  color: var(--charcoal);
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.item-card-header h2 {
  font-size: 1.0625rem;
  margin: 0;
}

.item-card-answer {
  font-size: 0.875rem;
  color: var(--charcoal-light);
  margin-bottom: 0.75rem;
}

.item-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-card-cost {
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
}

.item-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
}

/* --- Tracker Tool --- */
.tracker-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.tracker-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.tracker-intro h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tracker-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tracker-add-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tracker-add-form h3 {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal-light);
}

.form-group select,
.form-group input {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--charcoal);
  min-height: 44px;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal-light);
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Tracker Results */
.tracker-results {
  display: grid;
  gap: 0.75rem;
}

.tracker-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tracker-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green { background: var(--green); }
.status-amber { background: var(--amber); }
.status-red { background: var(--red); }

.tracker-item-info h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0;
}

.tracker-item-info p {
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  margin: 0;
}

.tracker-time {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.tracker-remove {
  background: none;
  border: none;
  color: var(--charcoal-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  min-width: 24px;
  min-height: 24px;
}

.tracker-remove:hover { color: var(--red); }

.tracker-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--charcoal-muted);
}

@media (max-width: 768px) {
  .tracker-item {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }
  .tracker-time,
  .tracker-remove {
    grid-column: 2;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-logo:hover { color: var(--teal-light); }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.375rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* --- Supporting Pages (About, Privacy, etc.) --- */
.support-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.support-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.support-page h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.support-page h3 {
  margin-top: 1.5rem;
}

.support-page p,
.support-page li {
  color: var(--charcoal-mid);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.support-page ul,
.support-page ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.support-page li {
  margin-bottom: 0.375rem;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* --- Tracker Summary --- */
.tracker-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  flex: 1;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.summary-red { background: var(--red-bg); border-color: rgba(196,64,64,0.2); }
.summary-amber { background: var(--amber-bg); border-color: rgba(212,147,13,0.2); }
.summary-green { background: var(--green-bg); border-color: rgba(45,143,94,0.2); }

.summary-count {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.summary-red .summary-count { color: var(--red); }
.summary-amber .summary-count { color: var(--amber); }
.summary-green .summary-count { color: var(--green); }

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-light);
}

/* --- Checklist Print Styles --- */
.checklist-printable { margin-top: 1rem; }

.checklist-header-print {
  margin-bottom: 1rem;
}

.checklist-meta {
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
}

.checklist-printable input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cta-box [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- Print Styles --- */
@media print {
  .site-nav,
  .site-footer,
  .nav-toggle,
  .disclaimer-bar,
  .related-items,
  .cta-section,
  .btn { display: none !important; }

  body { font-size: 12pt; }
  .item-page { max-width: 100%; padding: 0; }
  .short-answer-box { border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
}
