/* ============================================================
   Mycobind — Stylesheet v7
   Theme: Plant Science + Biotechnology + Protection
   Colour scheme v4: off-white hero, section-differentiated bgs
   Fonts: Merriweather (headings) + Source Sans 3 (body)
   ============================================================ */

:root {
  /* Brand greens */
  --forest:      #1B4332;
  --forest-dark: #122A1E;
  --forest-mid:  #2D6A4F;
  /* Teal — science/biotech */
  --teal:        #0D7A6B;
  --teal-dark:   #095E53;
  --teal-pale:   #E6F4F1;
  /* Sage — product/nature */
  --sage:        #52735E;
  --sage-light:  #EEF4EC;
  --sage-border: #C2D8C8;
  /* Blue — research/science section */
  --blue-pale:   #EFF6FF;
  --blue-mid:    #DBEAFE;
  --blue-teal:   #134E6F;
  /* Neutrals */
  --cream:       #F8FAF7;   /* hero off-white */
  --off-white:   #F5F7F5;
  --white:       #FFFFFF;
  --ink:         #1A2420;
  --muted:       #4B6358;
  --border:      #C8D8CC;
  --shadow-sm:   0 1px 3px rgba(26,60,42,0.08);
  --shadow-md:   0 4px 16px rgba(26,60,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============================================================
   TOP INFO BAR
   ============================================================ */
.topbar {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.78);
  font-size: 0.75rem;
  padding: 0.38rem 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.78); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 1.5rem; align-items: center; }
.topbar-right { display: flex; gap: 1.5rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
header, .site-header {
  background: #ffffff !important;
  border-bottom: 3px solid var(--forest) !important;
  padding: 1rem 0;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-wrap:hover { text-decoration: none; }
.logo-mark svg { display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.site-name-block { line-height: 1.15; }
.site-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -0.02em;
  display: block;
}
.site-tagline {
  font-size: 0.75rem;
  color: var(--sage);
  font-style: italic;
  display: block;
  margin-top: 0.1rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav, .main-nav {
  background: var(--forest) !important;
  position: relative;
  z-index: 200;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
}
.nav-toggle {
  display: none !important;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.78rem 0;
  letter-spacing: 0.04em;
}
.nav-items {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  flex: 1;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.nav-item > a:hover,
.nav-item:hover > a {
  background: var(--forest-dark);
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.nav-item > a.active {
  background: var(--forest-dark);
  border-bottom-color: #fff;
  color: #fff;
}
.nav-item > a .arrow {
  font-size: 0.58rem;
  opacity: 0.65;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-item:hover > a .arrow { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-top: 3px solid var(--forest);
  border: 1px solid var(--border);
  border-top: 3px solid var(--forest);
  box-shadow: var(--shadow-md);
  z-index: 300;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
  background: var(--sage-light);
  color: var(--forest);
  text-decoration: none;
}

/* ============================================================
   HOMEPAGE HERO  —  off-white background, dark green text
   ============================================================ */
.hero-section {
  background: var(--cream);
  color: var(--ink);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* Subtle botanical texture: very faint green radial wash, bottom-right */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 110% 110%,
    rgba(45,106,79,0.08) 0%,
    rgba(45,106,79,0) 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-mid);
  border: 1px solid var(--sage-border);
  background: var(--sage-light);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-section h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  color: var(--forest);
}
.hero-section h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Primary hero CTA: solid forest-green button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}
.btn-hero-primary:hover {
  background: var(--forest-dark);
  color: #fff;
  text-decoration: none;
}
/* Secondary / outline hero CTA: green border, green text */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3px;
  border: 2px solid var(--forest);
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}
.btn-hero-outline:hover {
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}

/* Hero visual (SVG panel) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.92;
}

/* ============================================================
   VALUE PROPS STRIP
   ============================================================ */
.props-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.props-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.prop-item {
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.prop-item:last-child { border-right: none; }
.prop-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.prop-item h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.3rem;
}
.prop-item p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.section-wrap {
  padding: 4.5rem 1.5rem;
}
/* alt-bg: Product section — white background, sage-green accents */
.section-wrap.alt-bg  { background: var(--white); }
/* blue-bg: Science/Research section — very light blue, teal headings */
.section-wrap.blue-bg { background: var(--blue-pale); }
/* dark-bg: Quality/Development stage — deep forest green ✓ keep */
.section-wrap.dark-bg { background: var(--forest); color: #fff; }
.section-wrap.white-bg { background: var(--white); }

/* Science section heading overrides: teal instead of forest */
.section-wrap.blue-bg .section-title      { color: var(--blue-teal); }
.section-wrap.blue-bg .section-label      { color: var(--teal); }
.section-wrap.blue-bg .step-num           { background: var(--teal); }
.section-wrap.blue-bg .step-content h5    { color: var(--blue-teal); }
.section-wrap.blue-bg .info-card          { border-top-color: var(--teal); }
.section-wrap.blue-bg .info-card h4       { color: var(--blue-teal); }

/* Product/alt section: sage-green card style */
.section-wrap.alt-bg .info-card {
  border: 1px solid var(--sage-border);
  border-top: 3px solid var(--forest-mid);
  background: var(--sage-light);
}
.section-wrap.alt-bg .info-card h4 { color: var(--forest); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-inner.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-label.on-dark { color: rgba(255,255,255,0.55); }

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-title.on-dark { color: #fff; }
.section-title em { font-style: italic; }

.section-body {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.85;
}
.section-body.on-dark { color: rgba(255,255,255,0.75); }
.section-body p { margin-bottom: 0.85rem; }
.section-body ul { padding-left: 1.35rem; }
.section-body li { margin-bottom: 0.35rem; }

/* Info card (problem/advantage cards) */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--forest);
  padding: 1.5rem;
  border-radius: 2px;
}
.info-card.teal-top { border-top-color: var(--teal); }
.info-card .card-icon { font-size: 1.8rem; margin-bottom: 0.65rem; }
.info-card h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.4rem;
}
.info-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* Steps (how it works) */
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-content h5 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.2rem;
}
.step-content p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* Dev stage timeline */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
}
.stage-item {
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.stage-item:last-child { border-right: none; }
.stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.4);
  margin-bottom: 0.65rem;
}
.stage-dot.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}
.stage-item h5 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}
.stage-item p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.stage-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}

/* CTA Strip */
.cta-strip {
  background: var(--teal);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cta-strip h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   LATEST RESULTS (homepage teaser)
   ============================================================ */
.result-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.result-teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s, border-left-color 0.15s;
}
.result-teaser-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--teal);
  text-decoration: none;
}
.rt-date { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.rt-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.rt-desc { font-size: 0.78rem; color: var(--sage); font-style: italic; }

/* ============================================================
   INNER PAGE LAYOUT (research/about/contact pages)
   ============================================================ */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}
.page-wrap.full-width {
  grid-template-columns: 1fr;
  max-width: 960px;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--forest-mid); }
.breadcrumb .sep { opacity: 0.45; }

/* Section head (red boxes → green) */
.section-head {
  background: var(--forest);
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* ============================================================
   RESULT LIST
   ============================================================ */
.result-list-wrap {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--white);
}
.result-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f4f2;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover {
  background: var(--sage-light);
  border-left-color: var(--forest);
  text-decoration: none;
}
.result-date {
  text-align: center;
  background: var(--sage-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.4rem 0.3rem;
  font-size: 0.72rem;
  color: var(--sage);
  line-height: 1.3;
}
.result-date strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  font-family: 'Merriweather', Georgia, serif;
}
.result-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--forest-mid);
  line-height: 1.35;
}
.result-title small {
  display: block;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
  font-style: italic;
}
.result-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid;
}
.badge-pdf   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.badge-doc, .badge-docx { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.badge-xls, .badge-xlsx { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.badge-ppt, .badge-pptx { background: #FFF7ED; color: #9A3412; border-color: #FED7AA; }
.badge-img  { background: #F5F3FF; color: #5B21B6; border-color: #DDD6FE; }

.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-box {
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  background: var(--white);
}
.sidebar-box-title {
  background: var(--forest);
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}
.sidebar-box-body {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid #f0f4f2; padding: 0.4rem 0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.12s;
}
.sidebar-links a:hover { color: var(--forest); text-decoration: none; }
.sidebar-links .link-arrow { color: var(--forest); font-size: 0.7rem; }
.sidebar-info-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f4f2;
  font-size: 0.82rem;
}
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-label { color: var(--muted); min-width: 70px; flex-shrink: 0; }
.sidebar-info-value { color: var(--ink); font-weight: 600; }

/* ============================================================
   VIEW PAGE / FORMS
   ============================================================ */
.page-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.view-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.view-meta .meta-badge {
  background: var(--forest);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.view-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: #0a5e53; border-color: #0a5e53; color: #fff; text-decoration: none; }
.btn-danger { background: #7B1111; color: #fff; border-color: #7B1111; }
.btn-danger:hover { background: #5A0D0D; border-color: #5A0D0D; color: #fff; text-decoration: none; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.78rem; }

.file-viewer {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 500px;
}
.file-viewer iframe, .file-viewer img { display: block; width: 100%; border: none; }
.file-viewer iframe { height: 78vh; min-height: 560px; }
.file-viewer img { max-width: 100%; height: auto; padding: 1.5rem; margin: 0 auto; }
.viewer-unsupported {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 5rem 2rem; text-align: center;
  color: var(--muted); min-height: 360px;
}
.viewer-unsupported .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.viewer-unsupported p { max-width: 380px; margin-bottom: 1.25rem; font-size: 0.9rem; }
.viewer-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; text-align: center; font-style: italic; }

.form-card { background: var(--white); border: 1px solid var(--border); padding: 1.75rem; max-width: 580px; }
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
input[type="text"],
input[type="date"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  border-radius: 2px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 2px rgba(27,67,50,0.1);
  background: #fff;
}
input[type="file"] { padding: 0.45rem 0.85rem; cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }
.alert { padding: 0.8rem 1rem; font-size: 0.88rem; margin-bottom: 1.1rem; border-left: 4px solid; border-radius: 0 2px 2px 0; }
.alert-success { background: #F0FDF4; color: #166534; border-color: #16A34A; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: #991B1B; }
.manage-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.manage-table th { background: var(--forest); color: #fff; text-align: left; padding: 0.65rem 1rem; font-size: 0.75rem; letter-spacing: 0.04em; font-weight: 700; }
.manage-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.manage-table tr:last-child td { border-bottom: none; }
.manage-table tr:hover td { background: var(--sage-light); }

/* PROSE */
.prose { font-size: 0.95rem; line-height: 1.85; color: var(--ink); }
.prose h2 { font-family: 'Merriweather', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--forest); margin: 1.5rem 0 0.6rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.prose li { margin-bottom: 0.3rem; }
.prose strong { color: var(--forest-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
footer, .site-footer {
  background: var(--forest-dark) !important;
  color: rgba(255,255,255,0.55);
  margin-top: 0;
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-col h5 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col p, .footer-col address { font-size: 0.82rem; line-height: 1.8; font-style: normal; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; display: block; font-size: 0.82rem; padding: 0.15rem 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-logo-name { font-family: 'Merriweather', Georgia, serif; font-size: 1.1rem; font-weight: 900; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .props-inner { grid-template-columns: 1fr; }
  .prop-item { border-right: none; border-bottom: 1px solid var(--border); }
  .prop-item:last-child { border-bottom: none; }
  .section-inner.two-col { grid-template-columns: 1fr; gap: 2rem; }
  .section-inner.three-col { grid-template-columns: 1fr 1fr; }
  .result-teaser { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .page-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-item > a { padding: 0.68rem 0.6rem; font-size: 0.76rem; }
}
@media (max-width: 760px) {
  .nav-item > a { padding: 0.68rem 0.55rem; font-size: 0.72rem; }
  .section-inner.three-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-toggle { display: block !important; }
  .nav-inner { flex-wrap: wrap; }
  .nav-items { display: none !important; width: 100%; flex-direction: column !important; padding-bottom: 0.5rem; }
  .nav-items.open { display: flex !important; }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-dropdown { display: none !important; position: static; box-shadow: none; background: rgba(0,0,0,0.18); min-width: auto; width: 100%; }
  .nav-item.mob-open .nav-dropdown { display: block !important; }
  .nav-dropdown a { color: rgba(255,255,255,0.85); background: transparent; padding-left: 2rem; }
  .nav-dropdown a:hover { background: rgba(0,0,0,0.2); color: #fff; }
  .nav-item.mob-open > a .arrow { transform: rotate(180deg); }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .result-item { grid-template-columns: 70px 1fr; }
  .result-badge { display: none; }
  .site-name { font-size: 1.25rem; }
  .site-tagline { display: none; }
  .stage-grid { grid-template-columns: 1fr; }
}
