/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
  --bg-primary: #F4EFEA;
  --text-primary: #3C2F2F;
  --header-bg: #1F2C24;
  --nav-bg: #2A4736;
  --accent-green: #5C7A6B;
  --nav-hover: #5C7A6B;
  --card-bg: #FFFEF7;
  --card-border: #D4C9B8;
  --shadow-light: rgba(42, 71, 54, 0.10);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --font-serif: 'Merriweather', Georgia, serif;
  --content-width: 1200px;
  --transition-speed: 0.3s;
}

/* ==========================================
   GLOBAL / RESET
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
iframe {
  max-width: 100%;
}

/* ==========================================
   HEADINGS / SECTION TITLES
   ========================================== */
h1 {
  margin: 0;
  padding: 1.8em 1em 1.2em;
  background-color: var(--header-bg);
  color: var(--bg-primary);
  text-align: center;
  border-bottom: 5px solid var(--accent-green);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.20);
}

.section-title {
  margin: 0 0 2.5rem;
  color: var(--header-bg);
  text-align: center;
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
  padding: 0;
  background-color: var(--nav-bg);
}

nav ul {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  flex: 1;
  text-align: center;
}

nav a {
  display: block;
  padding: 1.1em 1em;
  color: #EDE6D8;
  text-decoration: none;
  font-weight: 500;
  transition:
    background-color var(--transition-speed),
    color var(--transition-speed);
}

nav a:hover,
nav a:focus-visible {
  background-color: var(--nav-hover);
  color: #FFF;
  outline: none;
}

/* ================================================================
   CURRENT PAGE NAVIGATION
   ================================================================
   Provides a subtle visual indicator for the page currently being
   viewed.

   aria-current also communicates the current page to assistive
   technologies without requiring additional JavaScript.
   ================================================================ */

.site-navigation a[aria-current="page"] {
    background-color: rgba(92, 122, 107, 0.55);
    color: #FFF;
    font-weight: 700;
}

/* ==========================================
   GLOBAL LINKS
   ========================================== */
a {
  color: var(--accent-green);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-speed);
}

a:hover,
a:focus-visible {
  color: var(--nav-bg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85vh;
  min-height: 650px;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFF;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(31, 44, 36, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1.5em;
}

.hero h1 {
  margin: 0 0 0.4em;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #FFF;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.70);
}

.hero p {
  max-width: 700px;
  margin: 0 auto 1.5em;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent-green);
  color: #FFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color var(--transition-speed),
    transform 0.2s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background-color: var(--nav-bg);
  color: #FFF;
  transform: translateY(-2px);
  outline: none;
}

/* ================================================================
   INTERIOR PAGE HERO
   ================================================================
   Provides a consistent branded header for public pages while
   preserving the larger home-page hero as the site's primary
   visual introduction.

   Interior heroes intentionally use a shorter height so visitors
   can reach page-specific content more quickly.
   ================================================================ */

.page-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 320px;

    background-image:
        url('../images/hero-background.jpg');

    background-size: cover;
    background-position: center;

    color: #FFF;

    text-align: center;
}


/*
 * Dark overlay improves text readability while maintaining
 * the same visual character as the home-page hero.
 */
.page-hero::before {
    content: '';

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        rgba(31, 44, 36, 0.60);
}


/*
 * Keep hero content above the dark overlay.
 */
.page-hero-content {
    position: relative;

    z-index: 2;

    width: min(800px, 92%);

    padding:
        2.5rem
        1.5rem;
}


/*
 * Override the site's global h1 styling inside an interior hero.
 *
 * This mirrors the same treatment already used by the home hero.
 */
.page-hero h1 {
    margin: 0;

    padding: 0;

    background: transparent;

    border: 0;

    box-shadow: none;

    color: #FFF;

    font-size:
        clamp(
            2rem,
            4vw,
            2.8rem
        );

    line-height: 1.2;

    text-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.70);
}


/*
 * Optional supporting description beneath the page title.
 */
.page-hero p {
    max-width: 650px;

    margin:
        0.85rem
        auto
        0;

    font-size:
        clamp(
            1rem,
            2vw,
            1.15rem
        );

    line-height: 1.6;
}

/* ==========================================
   SHARED CARD STYLES
   ========================================== */
.video-card,
.content-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 6px 12px var(--shadow-light);
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.video-card:hover,
.content-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--shadow-hover);
}

.video-info {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem 1.4rem;
}

.video-info h3 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: 1.05em;
  line-height: 1.35;
}

.video-info p {
  margin: 0;
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
}

/* ==========================================
   FULL VIDEO GALLERY
   ========================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5em;
  max-width: var(--content-width);
  margin: 2em auto;
  padding: 0 1.5em;
}

/* All videos, including Shorts, remain in a
   consistent 16:9 presentation container. */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   HOMEPAGE - RECENT VIDEOS
   ========================================== */
.recent-videos-section {
  padding: 4rem 5%;
  background: #F8F4ED;
}

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.home-video-grid .video-card {
  display: flex;
  flex-direction: column;
}

.home-video-grid .video-info {
  flex: 1;
}

.video-watch-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================
   BLOG GRID / BLOG CARDS
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-thumbnail-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #DDD;
}

.blog-thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-date {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-excerpt-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;

  margin-bottom: 1rem !important;
}

.blog-read-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-view-all-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/* ================================================================
   BLOG STATUS MESSAGE
   ================================================================
   Used for loading, empty, and error states within the full-width
   blog grid.
   ================================================================ */

.blog-status-message {
  grid-column: 1 / -1;
  text-align: center;
}

/* ================================================================
   HOMEPAGE BLOG SECTION
   ================================================================
   Controls spacing around the latest Blog posts displayed on the
   home page while keeping presentation out of the HTML.
   ================================================================ */

.homepage-blog {
  padding: 5rem 0 1rem;
}

.homepage-blog-intro {
  max-width: 600px;
  margin: -1.5rem auto 3rem;
  text-align: center;
  color: #555;
}

/* ================================================================
   HOMEPAGE SIGHTINGS SECTION
   ================================================================
   Controls spacing and introductory text for the latest published
   sighting reports displayed on the home page.
   ================================================================ */

.homepage-sightings {
  padding: 3rem 0;
}

.homepage-sightings-intro {
  max-width: 600px;
  margin: -1.5rem auto 3rem;
  text-align: center;
  color: #555;
}

/* ================================================================
   HOMEPAGE SIGHTING CARDS
   ================================================================
   Compact preview cards for the three newest published sightings.
   Original uploaded media is never modified; images are fitted
   visually within the homepage thumbnail area using CSS only.
   ================================================================ */

#homepage-sightings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;

  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
  padding: 0 2rem;

  box-sizing: border-box;
}

.homepage-sighting-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border: 1px solid #b8aea3;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.homepage-sighting-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--header-bg);
}

.homepage-sighting-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-sighting-info {
  padding: 1.25rem;
}

.homepage-sighting-info h3 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.homepage-sighting-date {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.homepage-sighting-link {
  color: var(--nav-bg);
  font-weight: 700;
  text-decoration: none;
}

.homepage-sighting-link:hover {
  text-decoration: underline;
}


/* No-photo fallback */

.homepage-sighting-map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #FFF;
  background: var(--nav-bg);
}

/*
 * Leaflet map used when a sighting has no public image.
 */

.homepage-sighting-map {

    width: 100%;
    height: 100%;
    min-height: 260px;
}

.homepage-sighting-pin {
  font-size: 2rem;
}

/* ============================================================
   SIGHTINGS MAP - CLUSTERS
   ============================================================ */

.rmso-marker-cluster {
    background: transparent;
    border: 0;
}

.rmso-marker-cluster > div {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    background: var(--nav-bg);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.rmso-marker-cluster span {
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}


/* ============================================================
   SIGHTINGS MAP - GROUPED LOCATION PIN
   ============================================================ */

.sighting-pin-grouped {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sighting-pin-count {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 4px;

    border-radius: 50%;

    background: var(--card-bg);

    color: var(--nav-bg);

    font-size: 0.75rem;
    font-weight: 700;
}


/* ============================================================
   SIGHTINGS MAP - GROUPED REPORT LIST
   ============================================================ */

.sighting-location-reports {
    margin: 0;
    padding: 0;

    list-style: none;
}

.sighting-location-report {
    border-top:
        1px solid rgba(0, 0, 0, 0.12);
}

.sighting-location-report:first-child {
    border-top: 0;
}

.sighting-location-report a {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 10px 4px;

    color: inherit;
    text-decoration: none;
}

.sighting-location-report a:hover,
.sighting-location-report a:focus {
    text-decoration: underline;
}

.sighting-location-report span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==========================================
   RESPONSIVE LAYOUT
   ========================================== */
@media (max-width: 900px) {
  .home-video-grid,
  #homepage-sightings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }

  h1 {
    padding: 1.4em 1em 1em;
  }

  .video-grid,
  .home-video-grid,
  .blog-grid,
  #homepage-sightings-grid {
    grid-template-columns: 1fr;
  }

  .recent-videos-section {
    padding: 3rem 1rem;
  }

  .hero {
    min-height: 520px;
  }
}

/* ====================================================================
   SIGHTING REPORT FORM
   ==================================================================== */

.sighting-form-page {
  padding: 3rem 1.5rem 4rem;
}

.sighting-form-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------
   Introductory Text
   -------------------------------------------------------------------- */

.sighting-form-intro {
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-align: center;
}


/* --------------------------------------------------------------------
   Form Groups
   -------------------------------------------------------------------- */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}


/* --------------------------------------------------------------------
   Form Inputs
   -------------------------------------------------------------------- */

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-primary);
  font: inherit;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------
   Location Search
   -------------------------------------------------------------------- */

.geo-search-box {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.geo-search-box input[type="text"] {
  flex: 1;
  min-width: 0;
}

.geo-search-box button {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 5px;
  background: var(--accent-green);
  color: #FFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition-speed),
    opacity var(--transition-speed);
}

.geo-search-box button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.geo-search-box button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}


/* --------------------------------------------------------------------
   Help Text
   -------------------------------------------------------------------- */

.location-help,
.media-help {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}


/* --------------------------------------------------------------------
   Sighting Map
   -------------------------------------------------------------------- */

#map {
  width: 100%;
  height: 420px;
  margin-top: 0.5rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px var(--shadow-light);
}


/* --------------------------------------------------------------------
   File Upload
   -------------------------------------------------------------------- */

.form-group input[type="file"] {
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent-green);
  color: #FFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}


/* --------------------------------------------------------------------
   Submit Button
   -------------------------------------------------------------------- */

.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.submit-sighting-button {
  display: inline-block;
  min-width: 180px;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 5px;
  background: var(--accent-green);
  color: #FFF;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition-speed),
    opacity var(--transition-speed),
    box-shadow var(--transition-speed);
}

.submit-sighting-button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px var(--shadow-light);
}

.submit-sighting-button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

/* ================================================================
   SITE FOOTER
   ================================================================ */

.site-footer {
  width: 100%;
  margin-top: 4rem;
  padding: 3rem 2rem;
  box-sizing: border-box;
  background: var(--header-bg);
  color: #FFF;
}

.site-footer-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer-tagline {
  max-width: 650px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
  opacity: 0.85;
}

.site-footer-copyright {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ====================================================================
   SIGHTING REPORT RESPONSIVE LAYOUT
   ==================================================================== */

@media (max-width: 600px) {

  .sighting-form-page {
    padding: 2rem 1rem 3rem;
  }

  .geo-search-box {
    flex-direction: column;
  }

  .geo-search-box button {
    width: 100%;
  }

  #map {
    height: 350px;
  }

  .submit-sighting-button {
    width: 100%;
  }
}

/* ============================================================
   ADMIN SIGHTING MODERATION
   ============================================================ */

.admin-page {
    width: min(1200px, 94%);
    margin: 2rem auto 4rem;
}


/* ------------------------------------------------------------
   Administration Page Header
   ------------------------------------------------------------ */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;

    margin-bottom: 1.5rem;
}

.admin-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.admin-header p {
    margin: 0;
}


/* ------------------------------------------------------------
   Administrator Messages
   ------------------------------------------------------------ */

.admin-message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;

    border-radius: 8px;
}

.admin-message.success {
    border: 1px solid currentColor;
}

.admin-message.error {
    border: 1px solid currentColor;
}


/* ------------------------------------------------------------
   Moderation Tabs
   ------------------------------------------------------------ */

.admin-moderation-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0.75rem;

    margin-bottom: 2rem;
}

.admin-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.65rem;

    min-width: 0;

    padding: 0.85rem 1rem;

    border: 1px solid var(--card-border);
    border-radius: 8px;

    background: var(--card-bg);
    color: var(--text-primary);

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color var(--transition-speed),
        color var(--transition-speed),
        border-color var(--transition-speed),
        transform 0.2s,
        box-shadow var(--transition-speed);
}

.admin-tab-button:hover {
    transform: translateY(-1px);

    border-color: var(--accent-green);

    box-shadow:
        0 4px 10px var(--shadow-light);
}

.admin-tab-button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}

.admin-tab-button.active {
    background: var(--nav-bg);
    color: #FFF;

    border-color: var(--nav-bg);

    box-shadow:
        0 4px 10px var(--shadow-light);
}

.admin-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 2rem;
    min-height: 2rem;

    padding: 0.15rem 0.5rem;

    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 0.85rem;
    line-height: 1;
}


/* ------------------------------------------------------------
   Tab Panels
   ------------------------------------------------------------ */

.admin-tab-panel {
    width: 100%;
}

.admin-tab-panel[hidden] {
    display: none;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 1rem;

    margin-bottom: 1.25rem;
}

.admin-section-heading h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.admin-section-heading p {
    margin: 0;

    opacity: 0.8;
}


/* ------------------------------------------------------------
   Sighting Lists
   ------------------------------------------------------------ */

.admin-sightings-list {
    display: grid;

    gap: 1.5rem;
}

.admin-loading,
.admin-empty-state {
    padding: 2rem;

    text-align: center;

    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 10px;

    background: var(--card-bg);
}


/* ------------------------------------------------------------
   Sighting Cards
   ------------------------------------------------------------ */

.admin-sighting-card {
    padding: 1.5rem;

    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 12px;

    background: var(--card-bg);

    box-shadow:
        0 4px 10px var(--shadow-light);
}

.admin-sighting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 1rem;

    margin-bottom: 1rem;
}

.admin-sighting-card-header h3 {
    margin: 0 0 0.35rem;
}

.admin-location {
    font-size: 0.95rem;

    opacity: 0.8;
}


/* ------------------------------------------------------------
   Moderation Status Badges
   ------------------------------------------------------------ */

.admin-status-badge {
    display: inline-block;

    flex-shrink: 0;

    padding: 0.35rem 0.7rem;

    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.admin-status-badge-pending {
    background: var(--bg-primary);
}

.admin-status-badge-published {
    background: var(--accent-green);
    color: #FFF;
}

.admin-status-badge-hidden {
    background: var(--card-bg);
    color: var(--text-primary);
}


/* ------------------------------------------------------------
   Sighting Metadata
   ------------------------------------------------------------ */

.admin-sighting-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 1rem 2rem;

    margin-bottom: 1.25rem;

    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Reporter Information
   ------------------------------------------------------------ */

.admin-reporter-section {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;

    border: 1px solid var(--card-border);
    border-radius: 8px;

    background: var(--bg-primary);
}

.admin-reporter-section h4 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.admin-reporter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 0.75rem 1.5rem;
}

.admin-reporter-field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.admin-reporter-label {
    margin-bottom: 0.2rem;

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.03em;

    opacity: 0.75;
}

.admin-reporter-value {
    overflow-wrap: anywhere;
}

.admin-reporter-email {
    overflow-wrap: anywhere;
}

/* ================================================================
   ADMIN DESCRIPTION SECTION
   ================================================================
   Displays the reporter's sighting description with consistent
   spacing and alignment.

   white-space: pre-line preserves meaningful line breaks entered by
   the reporter while collapsing indentation whitespace introduced by
   the JavaScript HTML template.
   ================================================================ */

.admin-description {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}


.admin-description h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}


.admin-description p {
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;

    /*
     * Preserve reporter-entered line breaks without preserving the
     * indentation spaces used to format the HTML template itself.
     */
    white-space: pre-line;
}


/*
 * Keep the Submitted Media section heading spacing consistent.
 */
.admin-media-section h4 {
    margin-bottom: 0.5rem;
}

/* ================================================================
   ADMIN LOCATION SECTION
   ================================================================
   Groups the sighting coordinates and Leaflet map into one clearly
   defined location area on the administrator sighting card.
   ================================================================ */

.admin-location-section {
    margin-top: 1.5rem;
}


/*
 * Location section heading and supporting description.
 */
.admin-location-heading {
    margin-bottom: 0.85rem;
}


.admin-location-heading h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}


.admin-location-heading p {
    margin: 0.35rem 0 0;
    color: var(--accent-green);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   Exact Administrator Coordinates
   ------------------------------------------------------------ */

.admin-coordinates {
    margin-bottom: 1rem;

    font-size: 0.9rem;
}

.admin-location-section .admin-coordinates {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

/* ------------------------------------------------------------
   Administrator Map
   ------------------------------------------------------------ */

.admin-sighting-map {
    width: 100%;
    height: 320px;

    margin-bottom: 1.5rem;

    border-radius: 10px;

    overflow: hidden;
}

.admin-location-section .admin-sighting-map {
    margin-top: 0;
}

/* ------------------------------------------------------------
   Submitted Media
   ------------------------------------------------------------ */

.admin-media-section {
    margin-top: 1rem;
}

.admin-media-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 1rem;
}

.admin-media-item {
    min-width: 0;

    padding: 0.75rem;

    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;

    overflow: hidden;
}


/*
 * Preserve the original aspect ratio of administrator media
 * previews.
 *
 * Portrait media remains portrait.
 * Landscape media remains landscape.
 *
 * Originals are not cropped or resized by the application.
 */
.admin-media-item img,
.admin-media-item video {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 350px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 6px;
}

.admin-media-item audio {
    width: 100%;
}

.admin-media-filename {
    margin-top: 0.6rem;

    font-size: 0.85rem;

    overflow-wrap: anywhere;
}

.admin-no-media {
    padding: 1rem;

    border:
        1px dashed
        rgba(128, 128, 128, 0.4);

    border-radius: 8px;

    text-align: center;
}

/* ================================================================
   ADMIN SIGHTING ACTIONS SECTION
   ================================================================
   Separates whole-sighting moderation controls from the individual
   media attachment controls shown above.

   These controls affect the sighting report as a whole.
   ================================================================ */

.admin-sighting-actions-section {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}


/*
 * Heading and explanatory text for whole-sighting actions.
 */
.admin-sighting-actions-heading {
    margin-bottom: 1rem;
}


.admin-sighting-actions-heading h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}


.admin-sighting-actions-heading p {
    margin: 0.35rem 0 0;
    color: var(--accent-green);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   Moderation Actions
   ------------------------------------------------------------ */

.admin-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 0.75rem;

    margin-top: 1.5rem;
}

/* NEW scoped adjustment goes AFTER the existing rule */
.admin-sighting-actions-section .admin-actions {
    justify-content: flex-start;
    margin-top: 0;
}

/*
 * Shared button foundation.
 */
.admin-approve-button,
.admin-hide-button,
.admin-publish-button,
.admin-add-media-button,
.admin-delete-button {
    padding: 0.7rem 1.25rem;

    border: 1px solid transparent;
    border-radius: 8px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s,
        opacity var(--transition-speed),
        background-color var(--transition-speed),
        border-color var(--transition-speed),
        box-shadow var(--transition-speed);
}

/*
 * Add Media is a normal administrative action.
 */
.admin-add-media-button {
    background: var(--card-bg);
    color: var(--text-primary);

    border: 1px solid var(--accent-green);
}

.admin-add-media-button:hover {
    background: var(--bg-primary);

    transform: translateY(-1px);

    box-shadow:
        0 4px 8px var(--shadow-light);
}

/*
 * Approve / Publish actions.
 */
.admin-approve-button,
.admin-publish-button {
    background: var(--accent-green);
    color: #FFF;
}

.admin-approve-button:hover,
.admin-publish-button:hover {
    opacity: 0.92;

    transform: translateY(-1px);

    box-shadow:
        0 4px 8px var(--shadow-light);
}


/*
 * Hide is intentionally styled as a less destructive action
 * than permanent deletion.
 */
.admin-hide-button {
    background: var(--card-bg);
    color: var(--text-primary);

    border-color: var(--accent-green);
}

.admin-hide-button:hover {
    background: var(--bg-primary);

    transform: translateY(-1px);
}


/*
 * Permanent deletion remains visually distinct from normal
 * moderation actions.
 */
.admin-delete-button {
    background: var(--card-bg);
    color: var(--text-primary);

    border-color: currentColor;
}

.admin-delete-button:hover {
    opacity: 0.8;

    transform: translateY(-1px);
}


/*
 * Keyboard focus.
 */
.admin-approve-button:focus-visible,
.admin-hide-button:focus-visible,
.admin-publish-button:focus-visible,
.admin-add-media-button:focus-visible,
.admin-delete-button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}


/*
 * Disabled actions.
 */
.admin-approve-button:disabled,
.admin-hide-button:disabled,
.admin-publish-button:disabled,
.admin-add-media-button:disabled,
.admin-delete-button:disabled {
    cursor: not-allowed;

    opacity: 0.5;

    transform: none;
}


/* ------------------------------------------------------------
   Responsive Administrator Layout
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .admin-header {
        flex-direction: column;

        gap: 0.75rem;
    }

        .admin-reporter-grid {
        grid-template-columns: 1fr;
    }


    .admin-moderation-tabs {
        grid-template-columns: 1fr;
    }


    .admin-tab-button {
        justify-content: space-between;
    }


    .admin-section-heading {
        flex-direction: column;
    }


    .admin-sighting-card-header {
        flex-direction: column;
    }


    .admin-sighting-map {
        height: 260px;
    }


    .admin-actions {
        flex-direction: column;
    }


    /*
    * Shared button foundation.
    */
    .admin-approve-button,
    .admin-hide-button,
    .admin-publish-button,
    .admin-add-media-button,
    .admin-delete-button {
        padding: 0.7rem 1.25rem;

        border: 1px solid transparent;
        border-radius: 8px;

        width: 100%;

        font: inherit;
        font-weight: 700;

        cursor: pointer;

        transition:
            transform 0.2s,
            opacity var(--transition-speed),
            background-color var(--transition-speed),
            border-color var(--transition-speed),
            box-shadow var(--transition-speed);
    }
}

/* ================================================================
   ADMIN MEDIA VISIBILITY / MODERATION
   ================================================================

   Individual media attachments can be hidden from or restored to
   public display without deleting or modifying the original file.

   These controls are administrative only.
   ================================================================ */


/*
 * Visibility status displayed beneath each media attachment.
 */
.admin-media-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    margin-top: 0.75rem;
    padding: 0.35rem 0.7rem;

    border: 1px solid var(--card-border);
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/*
 * Attachment is eligible for public display.
 *
 * The parent sighting must also be published before the attachment
 * can actually appear on the public site.
 */
.admin-media-status-public {
    color: var(--nav-bg);
    background: rgba(92, 122, 107, 0.14);
    border-color: var(--accent-green);
}


/*
 * Attachment has been individually hidden from public display.
 *
 * The original file remains stored and available to administrators.
 */
.admin-media-status-hidden {
    color: #7A342E;
    background: rgba(122, 52, 46, 0.10);
    border-color: rgba(122, 52, 46, 0.45);
}


/*
 * Shared styling for the individual attachment moderation buttons.
 */
.admin-media-visibility-button {
    display: block;

    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem 0.9rem;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color var(--transition-speed),
        border-color var(--transition-speed),
        color var(--transition-speed),
        box-shadow var(--transition-speed),
        transform var(--transition-speed);
}


/*
 * "Hide from Public"
 *
 * Use a restrained warning appearance because this action removes
 * an attachment from public display but does not delete it.
 */
.admin-media-hide-button {
    color: #7A342E;
    background: transparent;
    border-color: rgba(122, 52, 46, 0.55);
}

.admin-media-hide-button:hover {
    color: #FFFFFF;
    background: #7A342E;
    border-color: #7A342E;

    box-shadow: 0 2px 6px var(--shadow-light);

    transform: translateY(-1px);
}


/*
 * "Show Publicly"
 *
 * Uses the site's established RMSO green to represent restoring
 * public eligibility.
 */
.admin-media-publish-button {
    color: #FFFFFF;
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.admin-media-publish-button:hover {
    background: var(--nav-bg);
    border-color: var(--nav-bg);

    box-shadow: 0 2px 6px var(--shadow-light);

    transform: translateY(-1px);
}


/*
 * Keyboard accessibility.
 *
 * Keep a visible focus indicator for administrators navigating the
 * moderation interface without a mouse.
 */
.admin-media-visibility-button:focus-visible {
    outline: 3px solid rgba(92, 122, 107, 0.35);
    outline-offset: 2px;
}


/*
 * Disabled state is included now so the same styling is available if
 * we later disable the button while an API request is processing.
 */
.admin-media-visibility-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================================================
   ADMIN MEDIA CARD LAYOUT
   ================================================================
   Keeps media previews at their natural proportions while providing
   a consistent information and moderation area beneath each preview.

   Original uploaded media is never cropped or altered by these rules.
   ================================================================ */

/*
 * Do not stretch shorter media cards to match taller portrait items.
 *
 * A portrait image may naturally create a taller card than a landscape
 * image. This keeps the individual card sized to its own content.
 */
.admin-media-grid {
    align-items: start;
}


/*
 * Each attachment is treated as a vertical card:
 *
 *     preview
 *     filename
 *     type / size
 *     visibility
 *     moderation button
 */
.admin-media-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


/*
 * The information area added by admin-sightings.js.
 *
 * Keeping these elements together gives us predictable spacing
 * regardless of whether the attachment is an image, video, or audio
 * file.
 */
.admin-media-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}


/*
 * Original filename.
 *
 * overflow-wrap prevents long camera/audio filenames from forcing the
 * media card wider than the grid column.
 */
.admin-media-filename {
    margin-top: 0.75rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;

    /*
     * Long camera-generated and UUID-style filenames are allowed to
     * wrap rather than expanding the media card beyond its grid column.
     */
    overflow-wrap: anywhere;
    word-break: normal;
}


/*
 * Secondary attachment information such as:
 *
 *     IMAGE • 3.2 MB
 *     VIDEO • 18.7 MB
 *     AUDIO • 1.4 MB
 */
.admin-media-metadata {
    margin-top: 0.3rem;
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.03em;
}


/*
 * Keep the visibility badge separated from the filename/metadata
 * without creating excessive vertical space.
 */
.admin-media-info .admin-media-status {
    margin-top: 0.65rem;
}


/*
 * Keep the attachment action visually associated with its status.
 */
.admin-media-info .admin-media-visibility-button {
    margin-top: 0.65rem;
}


/*
 * Media should always retain its original aspect ratio.
 *
 * width: 100% allows large media to fit within the card.
 * height: auto prevents portrait or landscape images from being
 * distorted or cropped.
 */
.admin-media-item img,
.admin-media-item video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/*
 * Audio players should fill the available card width without changing
 * the audio file itself.
 */
.admin-media-item audio {
    display: block;
    width: 100%;
    max-width: 100%;
}

/*
 * ============================================================
 * ADMIN ADD MEDIA
 * ============================================================
 */

.admin-add-media-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #555;
    border-radius: 0.5rem;
}

.admin-add-media-panel h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.admin-add-media-help {
    margin-top: 0;
    margin-bottom: 1rem;
}

.admin-add-media-input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.admin-add-media-queue {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-add-media-empty {
    font-style: italic;
    opacity: 0.8;
}

.admin-add-media-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid #555;
    border-radius: 0.4rem;
}

.admin-add-media-file-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.admin-add-media-file-info strong {
    overflow-wrap: anywhere;
}

.admin-add-media-file-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.admin-add-media-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-upload-media-button,
.admin-cancel-media-button,
.admin-remove-media-file-button {
    background: var(--card-bg);
    color: var(--text-primary);

    border-color: var(--accent-green);
}

.admin-add-media-button:hover {
    background: var(--bg-primary);

    transform: translateY(-1px);

    box-shadow:
        0 4px 8px var(--shadow-light);
}

.admin-upload-media-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-remove-media-file-button {
    flex-shrink: 0;
}

@media (max-width: 600px) {

    .admin-add-media-queue-item {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-remove-media-file-button {
        align-self: flex-start;
    }

    .admin-add-media-controls {
        flex-direction: column;
    }

    .admin-upload-media-button,
    .admin-cancel-media-button {
        width: 100%;
    }
      .lore-introduction,
  .lore-history {
    padding: 3rem 1.25rem;
  }

  .lore-timeline::before {
    left: 8px;
  }

  .lore-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 2rem;
  }

  .lore-timeline-item::before {
    top: 0.45rem;
    left: 1px;
  }

  .lore-timeline-date {
    padding-top: 0;
    text-align: left;
  }
    .lore-encounters {
    padding: 3rem 1.25rem;
  }

  .lore-encounter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .lore-encounter-reverse .lore-encounter-media,
  .lore-encounter-reverse .lore-encounter-content {
    order: initial;
  }

  .lore-encounter-content h3 {
    font-size: 1.3rem;
  }
  .lore-traditions {
  padding: 3rem 1.25rem;
  }
  .lore-tradition-feature {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  .lore-tradition-heading h3 {
    font-size: 1.4rem;
  }

  .lore-comparison {
    grid-template-columns: 1fr;
  }
  .lore-encounter-figure {
    margin: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
  }

  .lore-encounter-figure img {
    display: block;
    width: 100%;
    height: auto;
  }

  .lore-encounter-figure figcaption {
    padding: 1rem 1.25rem;
    line-height: 1.5;
  }

  .lore-encounter-figure figcaption strong {
    display: block;
    color: var(--text-primary);
  }

  .lore-encounter-figure figcaption span {
    display: block;
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.85rem;
  }

  /* ================================================================
   CONTINUING EVIDENCE SECTIONS
   Reduces excess spacing when two related content sections appear
   consecutively without a major chapter break.
   ================================================================ */

.lore-traditions-intro {
  padding-top: 1rem;
}
}

/* ================================================================
   EVIDENCE — VISUAL NEST COMPARISON

   Side-by-side comparison between scientifically documented
   great-ape nesting behavior and a North American field observation.
   ================================================================ */

.evidence-visual-comparison {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    box-sizing: border-box;
}

.evidence-visual-comparison-inner {
    max-width: 1050px;
    margin: 0 auto;
}

.evidence-visual-comparison .lore-lead {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}


/* Two photographic comparison cards */

.evidence-nest-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-top: 2.5rem;
}

.evidence-nest-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-light);
}


/* Keeps unlike source photographs visually balanced */

.evidence-nest-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--header-bg);
}

.evidence-nest-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Caption / explanation */

.evidence-nest-card figcaption {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.evidence-comparison-label {
    display: block;
    margin-bottom: 0.5rem;

    color: var(--nav-bg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.evidence-nest-card h3 {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.35;
}

.evidence-nest-card figcaption > p {
    margin: 0;
    line-height: 1.7;
}

.evidence-photo-credit {
    margin-top: 1.25rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);

    color: #666;
    font-size: 0.82rem;
    line-height: 1.55 !important;
}

.evidence-nest-card .lore-source-link {
    margin-top: auto;
    padding-top: 1rem;
}


/* Interpretive note beneath both photographs */

.evidence-comparison-takeaway {
    max-width: 850px;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;

    background: var(--card-bg);
    border-left: 4px solid var(--accent-green);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.evidence-comparison-takeaway strong {
    display: block;
    margin-bottom: 0.5rem;

    color: var(--text-primary);
    font-family: var(--font-serif);
}

.evidence-comparison-takeaway p {
    margin: 0;
    line-height: 1.7;
}


/* Mobile */

@media (max-width: 768px) {

    .evidence-visual-comparison {
        padding: 1rem 1.25rem 3rem;
    }

    .evidence-nest-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

}

/* ================================================================
   BIOLOGICAL EVIDENCE PROGRESSION
   ================================================================ */

.bio-evidence-path {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto
        minmax(0, 1fr) auto
        minmax(0, 1fr) auto
        minmax(0, 1fr) auto
        minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;

    max-width: 1050px;
    margin: 2.5rem auto;

    padding: 1.5rem;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;

    box-shadow: 0 3px 10px var(--shadow-light);
}


.bio-evidence-step {
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 1.25rem 0.75rem;

    text-align: center;
}


.bio-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.4rem;
    height: 2.4rem;

    margin-bottom: 0.75rem;

    border: 2px solid var(--accent-green);
    border-radius: 50%;

    color: var(--nav-bg);

    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
}


.bio-evidence-step strong {
    display: block;

    margin-bottom: 0.6rem;

    color: var(--text-primary);

    font-family: var(--font-serif);
    font-size: 1.05rem;
}


.bio-evidence-step > span:last-child {
    color: #666;

    font-size: 0.85rem;
    line-height: 1.6;
}


.bio-evidence-arrow {
    color: var(--accent-green);

    font-family: Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
}


/* ------------------------------------------------
   TABLET / MOBILE
   ------------------------------------------------ */

@media (max-width: 850px) {

    .bio-evidence-path {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 500px;
    }


    .bio-evidence-step {
        min-height: auto;
        padding: 1rem;
    }


    .bio-evidence-arrow {
        transform: rotate(90deg);

        margin: -0.25rem auto;

        text-align: center;
    }

}

/* ================================================================
   EVIDENCE WIDE EDUCATIONAL FIGURES
   Allows detailed scientific diagrams to extend beyond the normal
   reading column without changing the width of surrounding text.
   ================================================================ */

.evidence-wide-figure {
  width: min(1100px, calc(100vw - 4rem));
  max-width: none;
  margin: 2.5rem 50%;
  transform: translateX(-50%);
}
/* ================================================================
   EVIDENCE — DOCUMENTARY SOURCE CARD

   Used when an original photograph or document cannot be reproduced
   locally but RMSO can direct readers to the authoritative source.

   This presentation intentionally distinguishes a source reference
   from locally hosted evidence imagery.
   ================================================================ */

.evidence-source-card {
    width: 100%;
    max-width: 320px;
    align-self: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-green);
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.evidence-source-card figcaption {
    margin: 0;
}

.evidence-source-card strong {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.4;
}

.evidence-source-card p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.evidence-source-card a {
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 700;
}

/* ================================================================
   ORIGINAL / HISTORICAL SOURCE LINKS
   ================================================================ */

.lore-original-source {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.lore-original-source h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.lore-original-source p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.lore-source-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ================================================================
   EVIDENCE VIDEO CASES
   Preserves the original aspect ratio of documentary footage.
   ================================================================ */

.lore-video-case {
  width: 100%;
}

.lore-video-case video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.lore-video-credit {
  margin: 1rem 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.lore-video-case iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.lore-video-feature {
  width: 100%;
  max-width: 850px;
  margin: 3rem auto 0;
}

.lore-video-feature > h3 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.lore-video-feature > p {
  margin: 0 0 1.5rem;
  line-height: 1.75;
}

/* ================================================================
   INDIGENOUS TRADITIONS AND REGIONAL LORE
   ================================================================ */

.lore-traditions {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.lore-traditions-intro {
  max-width: 850px;
  margin: 0 auto;
}

.lore-traditions-intro > p:not(.lore-lead) {
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.lore-cultural-note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--card-bg);
  border-left: 4px solid var(--accent-green);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.lore-cultural-note > strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.lore-cultural-note p {
  margin: 0;
  line-height: 1.7;
}

/* ================================================================
   INDIVIDUAL CULTURAL TRADITION FEATURES
   ================================================================ */

.lore-tradition-feature {
  max-width: 950px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--card-border);
}

.lore-tradition-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lore-tradition-region {
  margin: 0 0 0.5rem;
  color: var(--nav-bg);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lore-tradition-heading h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.lore-tradition-subtitle {
  margin: 0.5rem 0 0;
  color: #666;
  font-style: italic;
}

.lore-tradition-body > p {
  max-width: 850px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.lore-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.lore-comparison-column {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.lore-comparison-column h4 {
  margin: 0 0 0.75rem;
  color: var(--nav-bg);
  font-family: var(--font-serif);
}

.lore-comparison-column p {
  margin: 0;
  line-height: 1.7;
}

.lore-comparison-column p + p {
  margin-top: 1rem;
}

.lore-comparison-summary {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.lore-comparison-summary h4 {
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

/* ================================================================
   EVIDENCE SUMMARY ROWS

   Provides a consistent label / description layout for evidence
   comparison summaries throughout the Lore and Evidence pages.

   Desktop:
       fixed-width label column + flexible description column

   Mobile:
       label and description stack vertically for readability.
   ================================================================ */

.lore-evidence-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;

    padding: 0.75rem 0;

    border-top: 1px solid var(--card-border);

    line-height: 1.5;
}


.lore-evidence-row > span,
.lore-evidence-row > strong {
    min-width: 0;

    text-align: left;
}


.lore-evidence-row > strong {
    color: var(--nav-bg);
}


/* ------------------------------------------------
   Mobile Evidence Summary Rows
   ------------------------------------------------ */

@media (max-width: 600px) {

    .lore-evidence-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

}

/* ================================================================
   BIGFOOT LORE PAGE
   ================================================================ */

.lore-page {
  width: 100%;
}

.lore-introduction,
.lore-history {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.lore-lead,
.lore-section-intro {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lore-lead {
  font-size: 1.1rem;
  line-height: 1.8;
}

.lore-introduction > p:not(.lore-lead) {
  max-width: 850px;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}

.lore-section-intro {
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  color: #555;
  line-height: 1.7;
}


/* ================================================================
   BIGFOOT HISTORICAL TIMELINE
   ================================================================ */

.lore-timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
}

.lore-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 150px;
  width: 2px;
  background: var(--accent-green);
}

.lore-timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 60px;
  position: relative;
  margin-bottom: 2rem;
}

.lore-timeline-item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 143px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nav-bg);
  border: 3px solid var(--bg-primary);
}

.lore-timeline-date {
  padding-top: 1.2rem;
  text-align: right;
  font-weight: 700;
  color: var(--nav-bg);
}

.lore-timeline-content {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.lore-timeline-content h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.lore-timeline-content p {
  line-height: 1.7;
}

.lore-source-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--nav-bg);
  font-weight: 700;
  text-decoration: none;
}

.lore-source-link:hover {
  text-decoration: underline;
}

/* ================================================================
   FAMOUS ENCOUNTERS
   ================================================================ */

.lore-encounters {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  box-sizing: border-box;
}

.lore-encounter-list {
  max-width: 1050px;
  margin: 0 auto;
}

.lore-encounter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.lore-encounter:last-child {
  margin-bottom: 0;
}

.lore-encounter-reverse .lore-encounter-media {
  order: 2;
}

.lore-encounter-reverse .lore-encounter-content {
  order: 1;
}


/* ================================================================
   FAMOUS ENCOUNTER MEDIA
   ================================================================ */

.lore-encounter-media {
  width: 100%;
}

.lore-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  background: var(--header-bg);
  color: #FFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.lore-image-placeholder span {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.lore-image-placeholder strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.lore-image-placeholder small {
  margin-top: 0.5rem;
  opacity: 0.8;
}


/* ================================================================
   FAMOUS ENCOUNTER CONTENT
   ================================================================ */

.lore-encounter-content h3 {
  margin: 0.35rem 0 1rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.lore-encounter-content p {
  line-height: 1.75;
}

.lore-encounter-date {
  margin: 0;
  color: var(--nav-bg);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lore-case-status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-left: 4px solid var(--accent-green);
  box-shadow: 0 2px 8px var(--shadow-light);
  line-height: 1.6;
}

/*
 * ============================================================
 * PUBLIC SIGHTINGS MAP
 * ============================================================
 */

.sightings-map-page {
    width: 100%;
}

#map {
    width: 100%;
    height: 70vh;
    min-height: 600px;
}

.sighting-popup h3 {
    margin-top: 0;
}

.sighting-popup p {
    margin: 0.5rem 0;
}

/*
 * ============================================================
 * SIGHTING MAP PIN
 * ============================================================
 */

.sighting-pin-wrapper {
    background: transparent;
    border: none;
}

.sighting-pin {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--accent-green);
    border: 2px solid currentColor;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sighting-pin-center {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    top: 8px;
    left: 8px;
}

/*
 * ============================================================
 * PUBLIC SIGHTING DETAIL PAGE
 * ============================================================
 */

.sighting-detail-page {
    width: min(1200px, 92%);
    margin: 2rem auto;
}

.sighting-detail-status {
    padding: 2rem;
    text-align: center;
}

.sighting-detail-error {
    font-weight: bold;
}

.sighting-detail-header {
    margin-bottom: 2rem;
}

.sighting-detail-header h2 {
    margin-bottom: 0.5rem;
}

.sighting-detail-date {
    margin: 0;
    opacity: 0.8;
}

.sighting-detail-reporter {
    margin: 0.35rem 0 0;

    font-size: 0.95rem;
    font-weight: 600;

    color: var(--accent-green);
}

.sighting-detail-reporter[hidden] {
    display: none;
}

.sighting-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.sighting-detail-description,
.sighting-detail-map-section,
.sighting-media-section,
.sighting-no-media {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--card-bg);
}

.sighting-detail-description p {
    white-space: pre-wrap;
    line-height: 1.6;
}

#sighting-detail-map {
    width: 100%;
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
}

.sighting-location-notice {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.sighting-media-section {
    margin-top: 2rem;
}

.sighting-photo-gallery {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 350px), 1fr)
    );

    gap: 1.5rem;

    align-items: start;
}

.sighting-photo-item {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
}
/* ================================================================
   SIGHTING DETAIL - ORIGINAL SOURCE
   ================================================================
   Displays optional provenance for reports imported from an
   original published source.

   The section is hidden entirely when no source URL is available.
   ================================================================ */

.sighting-source-section {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;

    border-left: 4px solid var(--accent-green);

    background: var(--card-bg);

    box-shadow:
        0 3px 8px var(--shadow-light);
}


.sighting-source-section h3 {
    margin:
        0
        0
        0.75rem;

    color: var(--header-bg);
}


.sighting-source-organization {
    margin:
        0
        0
        0.25rem;

    font-weight: 700;
}


.sighting-source-title {
    margin:
        0
        0
        0.25rem;

    line-height: 1.5;
}


.sighting-source-date {
    margin:
        0
        0
        0.75rem;

    color: #666;

    font-size: 0.9rem;
}


.sighting-source-link {
    display: inline-block;

    margin-top: 0.25rem;

    color: var(--nav-bg);

    font-weight: 700;

    text-decoration: none;
}


.sighting-source-link:hover,
.sighting-source-link:focus-visible {
    text-decoration: underline;
}

/*
 * Preserve the original aspect ratio of submitted photographs.
 *
 * Landscape images remain landscape.
 * Portrait images remain portrait.
 *
 * Images are never stretched or cropped simply to fit a
 * predetermined gallery shape.
 */
.sighting-photo-item img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 70vh;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 6px;
}

.sighting-photo-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.sighting-video-gallery,
.sighting-audio-gallery {
    display: grid;
    gap: 1.5rem;
}

.sighting-video-item {
    text-align: center;
}

.sighting-video-item video {
    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 75vh;

    border-radius: 6px;
}

.sighting-audio-item audio {
    width: 100%;
}

.sighting-media-filename {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.sighting-no-media {
    margin-top: 2rem;
}

@media (max-width: 800px) {

    .sighting-detail-grid {
        grid-template-columns: 1fr;
    }

    #sighting-detail-map {
        height: 300px;
    }

    .sighting-photo-item img {
        height: auto;
    }
}

/*
 * ============================================================
 * MEDIA PREVIEW CONTROLS
 * ============================================================
 */

.sighting-media-open {
    display: block;
    padding: 0;
    margin: 0 auto;

    background: transparent;
    border: none;

    cursor: zoom-in;
}

.sighting-media-open img {
    transition: transform 0.15s ease;
}

.sighting-media-open:hover img {
    transform: scale(1.015);
}

.sighting-media-open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.sighting-video-expand {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;

    cursor: pointer;
}


/*
 * ============================================================
 * MEDIA LIGHTBOX
 * ============================================================
 */

.media-lightbox {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    background: rgba(0, 0, 0, 0.88);

    pointer-events: auto;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;
}

.media-lightbox-image,
.media-lightbox-video {
    display: block;
    position: relative;
    z-index: 10001;
    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.media-lightbox-video {
    background: #000;
}

.media-lightbox-close {
    position: absolute;

    top: 1rem;
    right: 1.25rem;

    z-index: 10001;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 50%;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.media-lightbox-open {
    overflow: hidden;
}


@media (max-width: 800px) {

    .media-lightbox {
        padding: 1rem;
    }

    .media-lightbox-image,
    .media-lightbox-video {
        max-width: 100%;
        max-height: 85vh;
    }
}

.sighting-popup-action {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

/*
 * ============================================================
 * SELECTED MEDIA QUEUE
 * ============================================================
 */

.selected-media-list {
    margin-top: 1rem;
}

.selected-media-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 0.75rem;

    margin-bottom: 0.5rem;

    border: 1px solid currentColor;
    border-radius: 6px;
}

.selected-media-details {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.selected-media-name {
    font-weight: 600;

    overflow-wrap: anywhere;
}

.selected-media-size {
    margin-top: 0.25rem;

    font-size: 0.85rem;

    opacity: 0.75;
}

.selected-media-remove {
    flex-shrink: 0;

    padding: 0.5rem 0.75rem;

    cursor: pointer;
}
/* ====================================================================
   CONTACT FORM
   ==================================================================== */

.contact-form-page {
    padding: 3rem 1.5rem 4rem;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-intro {
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}


/* --------------------------------------------------------------------
   Contact Select
   -------------------------------------------------------------------- */

.contact-form-container .form-group select {
    width: 100%;
    padding: 0.75rem;

    border: 1px solid var(--card-border);
    border-radius: 5px;

    background: var(--card-bg);
    color: var(--text-primary);

    font: inherit;

    box-sizing: border-box;
}

.contact-form-container .form-group select:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}


/* --------------------------------------------------------------------
   Honeypot
   --------------------------------------------------------------------
   This field remains in the document for automated bot detection but
   is positioned outside the visible page for legitimate visitors.
   -------------------------------------------------------------------- */

.contact-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}


/* --------------------------------------------------------------------
   Cloudflare Turnstile
   -------------------------------------------------------------------- */

.contact-turnstile {
    display: flex;
    justify-content: center;

    margin: 2rem 0 1rem;
}


/* --------------------------------------------------------------------
   Contact Status
   -------------------------------------------------------------------- */

.contact-status {
    min-height: 1.7rem;

    margin: 1rem 0;

    text-align: center;
    font-weight: 700;
}

.contact-status-success {
    color: #2f633d;
}

.contact-status-error {
    color: #8a2f2f;
}


/* --------------------------------------------------------------------
   Disabled Submit State
   -------------------------------------------------------------------- */

.submit-sighting-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ====================================================================
   CONTACT FORM RESPONSIVE LAYOUT
   ==================================================================== */

@media (max-width: 600px) {

    .contact-form-page {
        padding: 2rem 1rem 3rem;
    }

    .contact-form-container .submit-sighting-button {
        width: 100%;
    }
}