/* Trade Caravan — Design System
   Mobile-first, no frameworks, ~12 KB target
   ================================================ */

/* -------------------------------------------------------
   Custom properties
   ------------------------------------------------------- */
:root {
  --navy:       #0F2B4F;
  --teal:       #0F6E56;
  --teal-light: #1D9E75;
  --gold:       #B45309;
  --gold-bright:#F59E0B;
  --white:      #FFFFFF;
  --grey-50:    #F8FAFC;
  --grey-100:   #F1F5F9;
  --grey-200:   #E2E8F0;
  --grey-400:   #94A3B8;
  --grey-600:   #475569;
  --grey-800:   #1E293B;
  --red:        #DC2626;
  --green:      #16A34A;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:  0 4px 16px rgba(0,0,0,.12);
  --transition: 180ms ease;
  --font:       system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:  ui-monospace,"Cascadia Code",monospace;
  --max-w:      1140px;
  --nav-h:      58px;
}

/* -------------------------------------------------------
   Reset
   ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-800);
  background: var(--white);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p + p { margin-top: .75rem; }

/* -------------------------------------------------------
   Skip link (a11y)
   ------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: .5rem; }

/* -------------------------------------------------------
   Layout
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

.section     { padding: 3rem 0; }
.section-alt { padding: 3rem 0; background: var(--grey-50); }

.grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }

@media (min-width: 600px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 600px)  { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px)  { .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* -------------------------------------------------------
   Navigation
   ------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--teal-light); }
.nav-logo:hover { text-decoration: none; color: #fff; }

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  gap: .25rem;
}
@media (min-width: 900px) { .nav-links { display: flex; align-items: center; } }

.nav-links a {
  display: block;
  padding: .4rem .75rem;
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  max-width: 260px;
  margin-left: auto;
}
.nav-search input {
  width: 100%;
  padding: .4rem .75rem;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .875rem;
  outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search input:focus { background: rgba(255,255,255,.2); }

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: #fff;
}
@media (min-width: 900px) { .nav-menu-btn { display: none; } }
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--navy);
  z-index: 190;
  overflow-y: auto;
  padding: 1.5rem;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; padding: 0; }
.nav-drawer a {
  display: block;
  padding: .75rem .5rem;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.nav-drawer a:hover { color: #fff; }

/* FX ticker */
.fx-ticker {
  background: var(--grey-800);
  color: var(--grey-400);
  font-size: .75rem;
  padding: .25rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.fx-ticker-inner {
  display: flex;
  gap: 2rem;
  animation: ticker 30s linear infinite;
}
.fx-ticker-inner:hover { animation-play-state: paused; }
.fx-pair { display: inline-flex; gap: .35rem; align-items: center; }
.fx-pair .rate { color: #fff; font-weight: 600; }
.fx-up   { color: var(--green); }
.fx-down { color: var(--red); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -------------------------------------------------------
   Hero
   ------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; }

.btn-primary  { background: var(--teal);    color: #fff; }
.btn-primary:hover  { background: var(--teal-light); color: #fff; }

.btn-gold     { background: var(--gold);    color: #fff; }
.btn-gold:hover     { background: #c55f0a; color: #fff; }

.btn-ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover    { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.btn-outline  { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover  { background: var(--teal); color: #fff; }

.btn-sm { padding: .4rem .875rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }

/* -------------------------------------------------------
   Cards
   ------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: .875rem 1rem; }
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Tool cards */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border-top-color: var(--teal-light);
}
.tool-card .icon {
  font-size: 1.75rem;
  line-height: 1;
}
.tool-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .2rem; }
.tool-card p  { font-size: .85rem; color: var(--grey-600); margin: 0; }

/* News cards */
.news-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card-meta  { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.news-card h3    { font-size: 1rem; color: var(--navy); }
.news-card h3 a  { color: inherit; }
.news-card h3 a:hover { color: var(--teal); text-decoration: none; }
.news-card p     { font-size: .875rem; color: var(--grey-600); margin: 0; }

/* Job rows */
.job-row {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: 1rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.job-row:hover { box-shadow: var(--shadow-sm); }
@media (min-width: 600px) {
  .job-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.job-row-info h4 { font-size: .95rem; color: var(--navy); margin-bottom: .2rem; }
.job-row-info span { font-size: .8rem; color: var(--grey-600); }

/* -------------------------------------------------------
   Badges
   ------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-high       { background: #FEE2E2; color: #991B1B; }
.badge-medium     { background: #FEF3C7; color: #92400E; }
.badge-watch      { background: #DBEAFE; color: #1E40AF; }
.badge-za         { background: #DCFCE7; color: #166534; }
.badge-africa     { background: #F0FDF4; color: #15803D; }
.badge-global     { background: #EFF6FF; color: #1D4ED8; }
.badge-port       { background: #F0F9FF; color: #0369A1; }
.badge-regulatory { background: #FDF4FF; color: #7E22CE; }

/* -------------------------------------------------------
   Forms
   ------------------------------------------------------- */
.form-group  { display: flex; flex-direction: column; gap: .35rem; }
.form-label  { font-size: .875rem; font-weight: 600; color: var(--grey-800); }
.form-hint   { font-size: .78rem; color: var(--grey-600); }

.form-input,
.form-select,
textarea {
  width: 100%;
  padding: .6rem .875rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 44px;
}
.form-input:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,110,86,.15);
}
textarea { resize: vertical; min-height: 100px; }

/* -------------------------------------------------------
   Calculator / Result boxes
   ------------------------------------------------------- */
.result-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.result-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
}
.result-label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .25rem; }

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .875rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-total {
  display: flex;
  justify-content: space-between;
  padding: .75rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-bright);
}

/* Affiliate CTA */
.affiliate-cta {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.affiliate-cta h4 { color: var(--navy); margin-bottom: .35rem; }
.affiliate-cta p  { font-size: .875rem; color: var(--grey-600); margin-bottom: .75rem; }

/* -------------------------------------------------------
   Typography helpers
   ------------------------------------------------------- */
.section-title { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--navy); margin-bottom: .375rem; }
.section-sub   { color: var(--grey-600); font-size: .95rem; margin-bottom: 1.5rem; }
.section-hdr   { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-link  { font-size: .875rem; font-weight: 600; color: var(--teal); white-space: nowrap; }

/* Prose (article body) */
.prose { max-width: 72ch; }
.prose h2 { margin: 2rem 0 .75rem; font-size: 1.35rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: .5rem 1rem;
  margin: 1.25rem 0;
  background: var(--grey-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--grey-600);
}
.prose a { font-weight: 500; }
.prose strong { color: var(--navy); }
.prose code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--grey-100);
  padding: .15em .4em;
  border-radius: 3px;
}

/* -------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--grey-600);
  padding: .75rem 0;
}
.breadcrumb a    { color: var(--grey-600); }
.breadcrumb a:hover { color: var(--teal); text-decoration: none; }
.breadcrumb-sep  { color: var(--grey-400); }
.breadcrumb-current { color: var(--grey-800); font-weight: 500; }

/* -------------------------------------------------------
   Feedback widget
   ------------------------------------------------------- */
.feedback-widget {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  font-size: .875rem;
  color: var(--grey-600);
}
.feedback-btn {
  background: none;
  border: 1.5px solid var(--grey-200);
  padding: .35rem .875rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: .85rem;
  transition: border-color var(--transition), background var(--transition);
}
.feedback-btn:hover { border-color: var(--teal); background: rgba(15,110,86,.06); }
.feedback-btn.voted { border-color: var(--teal); background: rgba(15,110,86,.1); color: var(--teal); font-weight: 600; }
.feedback-msg { color: var(--teal); font-weight: 600; font-size: .85rem; }

/* -------------------------------------------------------
   WhatsApp share
   ------------------------------------------------------- */
.wa-share {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #25D366;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.wa-share:hover { background: #20B858; color: #fff; text-decoration: none; }
.wa-share::before { content: ''; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* -------------------------------------------------------
   Ad slot
   ------------------------------------------------------- */
.ad-slot {
  background: var(--grey-100);
  border: 1px dashed var(--grey-200);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  font-size: .75rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* -------------------------------------------------------
   Skeleton loaders
   ------------------------------------------------------- */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.skeleton,
.skeleton-text,
.skeleton-title {
  background: linear-gradient(90deg, var(--grey-200) 25%, var(--grey-100) 50%, var(--grey-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
.skeleton       { height: 200px; }
.skeleton-title { height: 1.5rem; width: 70%; margin-bottom: .75rem; }
.skeleton-text  { height: 1rem; margin-bottom: .5rem; }
.skeleton-text:last-child { width: 50%; }

/* -------------------------------------------------------
   Related grid
   ------------------------------------------------------- */
.related-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3,1fr); } }

/* -------------------------------------------------------
   Filter tabs
   ------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: .4rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 20px;
  background: var(--white);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  color: var(--grey-600);
}
.filter-btn:hover   { border-color: var(--teal); color: var(--teal); }
.filter-btn.active  { border-color: var(--teal); background: var(--teal); color: #fff; }

/* -------------------------------------------------------
   Pagination
   ------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--grey-600);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
}
.page-link:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.page-link.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* -------------------------------------------------------
   Impact indicator
   ------------------------------------------------------- */
.impact-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-600);
}
.impact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.impact-dot.high   { background: var(--red); }
.impact-dot.medium { background: var(--gold); }
.impact-dot.watch  { background: #3B82F6; }

/* Live indicator */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

/* -------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 2.5rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 600px; }

/* -------------------------------------------------------
   Notice / alert banners
   ------------------------------------------------------- */
.notice {
  padding: .875rem 1.125rem;
  border-radius: var(--radius);
  font-size: .875rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1rem 0;
}
.notice-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.notice-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.notice-warn    { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.notice-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FEE2E2; }

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { font-size: .85rem; margin-top: .5rem; }
.footer-col h4  { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col ul  { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-col a   { color: rgba(255,255,255,.65); font-size: .85rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* -------------------------------------------------------
   Mobile bottom nav
   ------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
@media (max-width: 899px) { .mobile-bottom-nav { display: flex; } }

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .6rem .25rem .5rem;
  font-size: .65rem;
  font-weight: 600;
  color: var(--grey-600);
  text-decoration: none;
  min-height: 44px;
  transition: color var(--transition);
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--teal); }
.mobile-bottom-nav .icon { font-size: 1.2rem; line-height: 1; }

/* Spacer so content isn't hidden behind mobile nav */
.mobile-nav-spacer { height: 64px; display: block; }
@media (min-width: 900px) { .mobile-nav-spacer { display: none; } }

/* -------------------------------------------------------
   Utility
   ------------------------------------------------------- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .78rem; }
.text-muted   { color: var(--grey-600); }
.text-navy    { color: var(--navy); }
.text-teal    { color: var(--teal); }
.text-gold    { color: var(--gold); }
.font-bold    { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.justify-between { justify-content: space-between; }
