:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text-muted: #5c6b7c;
    --accent: #0d5c6f;
    --accent-soft: #e8f2f4;
    --border: #e2e8ee;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(13, 92, 111, 0.06);
    --default--color--1: #44AFFA;
    --default--color--2: #122E65;
    --default--color--3: #2E539B;
    --header--color--1: #2E539B;
    --header--color--2: #122E65;
    --text--color--1: #171717;
    --text--color--2: #2E539B;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text--color--1);
    background: var(--bg);
    min-height: 100vh;
  }
  .page-content {
    background-image: url(images/BioEcoOcean-baanner.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
  }
  footer {
    background-color: #051e35;
    color: #e8f2f4;
    padding: 3vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
  }
  .header {
    background: var(--default--color--3);
    color: #fff;
    padding: 2rem 1.5rem 2.5rem;
  }
  .header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
  }
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .search-wrap {
    margin-top: -1.25rem;
    margin-bottom: 1.5rem;
  }
  .search-box {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%235c6b7c' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 1rem center;
    box-shadow: var(--shadow);
    color: var(--text--color--1);
  }
  .search-box::placeholder { color: var(--text-muted); }
  .search-box:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  .count strong { color: var(--text--color--1); }
  .list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 3rem;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(13, 92, 111, 0.1);
  }
  .card-title {
    margin: 0 0 0.35em;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
  }
  .card-title a {
    color: var(--text--color--1);
    text-decoration: none;
  }
  .card-title a:hover { color: var(--accent); }
  .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
  }
  .card-meta a {
    color: var(--accent);
    text-decoration: none;
    font-family: 'Fragment Mono', monospace;
  }
  .card-meta a:hover { text-decoration: underline; }
  .card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.4em 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-keywords {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .tag {
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
  }
  .no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
  }
  .loading, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
  }
  .error { color: #b54; }
