@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/Inter-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/Inter-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/Poppins-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/Poppins-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/Poppins-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/Poppins-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/Poppins-800.ttf) format('truetype');
}
* {
  box-sizing: border-box;
}
:root {
  --green: #2c4926;
  --sage: #7a8877;
  --ochre: #b88a44;
  --ink: #1f261e;
  --paper: #f3f1ec;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.8 Poppins,
    Inter,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
a,
button {
  touch-action: manipulation;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  cursor: pointer;
}
.topline {
  padding: 9px 5%;
  background: var(--green);
  color: #fff;
  font:
    10px/1.5 Inter,
    sans-serif;
  letter-spacing: 1.4px;
  display: flex;
  justify-content: space-between;
}
header {
  padding: 6px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9dacf;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-wordmark {
  font:
    normal 38px/1 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.5px;
  font-synthesis: none;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 12px;
}
#menu {
  display: none;
}
.button {
  background: var(--green);
  color: white;
  display: inline-flex;
  gap: 30px;
  padding: 15px 23px;
  border: 1px solid var(--green);
  border-radius: 3px;
  font-size: 13px;
}
.button.light {
  background: transparent;
  color: var(--green);
}
.button.small {
  padding: 11px 18px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ochre);
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.8px;
}
h1 {
  font-size: clamp(45px, 5.3vw, 80px);
}
h2 {
  font-size: clamp(33px, 3.5vw, 50px);
}
h3 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
p {
  color: #5b6357;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 650px;
  padding: 45px 5% 55px;
  gap: 55px;
  align-items: center;
}
.hero h1 {
  margin: 24px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--sage);
}
.hero p {
  max-width: 490px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.heroimage {
  height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px 4px 4px;
}
.heroimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photocredit {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: white;
  background: #1f261e99;
  padding: 3px 10px;
  font-size: 9px;
}
.herofoot {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 32px;
}
.herofoot span {
  color: var(--ochre);
  margin-right: 8px;
}
.stats {
  background: var(--green);
  color: #fff;
  padding: 30px 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats > div {
  padding-left: 30px;
  border-left: 1px solid #ffffff30;
}
.stats strong {
  display: block;
  font:
    55px/1.2 Inter,
    sans-serif;
  letter-spacing: -3px;
}
.stats span {
  font-size: 11px;
  color: #d1d8c9;
}
.stats small {
  grid-column: 1/-1;
  text-align: right;
  font-size: 9px;
  margin-top: 13px;
  color: #c3cdbb;
}
.section {
  padding: 80px 6%;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}
.sectionhead h2 {
  margin: 12px 0 0;
}
.sectionhead p {
  max-width: 400px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.approach {
  border-top: 1px solid #cccfc3;
  padding-top: 20px;
}
.approach b {
  color: var(--ochre);
  font:
    22px Inter,
    sans-serif;
}
.approach p {
  font-size: 13px;
}
.mapteaser {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #e6e9dd;
}
.mapteaser > div {
  padding: 60px;
}
.mapart {
  min-height: 330px;
  background: #dbe5e2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gozo-map {
  width: 100%;
  margin: 0;
}
.gozo-map img {
  display: block;
  width: 100%;
  height: auto;
}
.gozo-map figcaption {
  font-size: 11px;
  text-align: center;
  color: #395335;
  margin-top: 8px;
}
.gozo-map figcaption a {
  text-decoration: underline;
}
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  background: #e9e3d7;
}
.report img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
}
.report h2 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 65px;
  letter-spacing: 0;
}
.card {
  border-top: 1px solid #cdd0c4;
  padding-top: 16px;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
}
.card .eyebrow {
  margin-top: 18px;
}
.card p {
  font-size: 13px;
}
.cta {
  text-align: center;
  background: var(--green);
  color: #fff;
  padding: 65px 20px;
}
.cta p {
  color: #cdd8c8;
}
.cta .button {
  background: var(--paper);
  color: var(--green);
}
footer {
  padding: 55px 6% 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
  font-size: 12px;
}
footer a {
  display: block;
  margin: 7px 0;
}
.footerbrand {
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
}
footer small {
  grid-column: 1/-1;
  padding-top: 25px;
  border-top: 1px solid #d5d7cb;
  color: #737b6e;
}
.pageintro {
  padding: 65px 6% 35px;
  max-width: 1000px;
}
.pageintro h1 {
  margin: 12px 0 25px;
}
.prose {
  max-width: 850px;
  margin: auto;
  padding: 25px 25px 70px;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.prose h2 {
  font-size: 31px;
  margin-top: 45px;
}
.notice {
  background: #ede5d4;
  padding: 12px 18px;
  border-left: 3px solid var(--ochre);
  font-size: 12px;
}
.maplayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  margin: 15px 6% 65px;
  min-height: 580px;
  border: 1px solid #ced4c8;
}
.mapaside {
  padding: 23px;
  background: #fff;
}
.mapaside label {
  display: block;
  margin: 15px 0;
}
.mapaside select,
.mapaside input {
  width: 100%;
  padding: 9px;
  border: 1px solid #bdc7b6;
  background: white;
}
.mapcanvas {
  min-height: 580px;
  z-index: 0;
}
.tree-marker {
  font-size: 24px;
  background: white;
  border: 2px solid var(--green);
  border-radius: 50%;
  text-align: center;
}
.tree-popup {
  font:
    13px/1.4 Inter,
    sans-serif;
}
.tree-popup img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}
.tree-popup .tree-names {
  margin: 10px 0;
  line-height: 1.3;
}
.tree-names > * {
  display: block;
}
.tree-common-name {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.tree-maltese-name {
  margin-top: 2px;
  color: var(--muted, #515c4a);
}
.tree-popup .tree-description {
  margin: 10px 0;
  line-height: 1.45;
}
.tree-facts {
  margin: 10px 0;
}
.tree-facts > div {
  margin-top: 8px;
}
.tree-facts dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #515c4a);
}
.tree-facts dd {
  margin: 1px 0 0;
  overflow-wrap: anywhere;
}
.tree-popup small {
  display: block;
  margin-top: 10px;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: #b8c4a9cc;
}
.marker-cluster div {
  background: var(--green);
  color: #fff;
  font-family: Inter, sans-serif;
}
.carousel {
  position: relative;
}
.carousel img {
  display: block;
}
.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.carousel-controls button {
  background: #1f261ecf;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 5px 11px;
}
.carousel-controls span {
  background: #1f261eb0;
  padding: 2px 8px;
  font-size: 11px;
}
.post-body {
  white-space: pre-line;
}
.empty {
  padding: 35px;
  background: #e9ecdf;
}
.skip {
  position: absolute;
  top: -50px;
}
.skip:focus {
  top: 0;
  z-index: 1000;
  background: white;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 850px) {
  nav {
    gap: 15px;
  }
  .hero {
    gap: 25px;
    min-height: 0;
  }
  .heroimage {
    height: 430px;
  }
  .maplayout {
    grid-template-columns: 1fr;
  }
  .mapaside {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .mapaside h3 {
    width: 100%;
  }
  .mapaside label {
    flex: 1;
    min-width: 150px;
  }
  .mapteaser > div {
    padding: 35px;
  }
  .report {
    gap: 30px;
  }
}
@media (max-width: 650px) {
  .topline span {
    display: none;
  }
  header {
    padding: 19px 5%;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 35px;
  }
  #menu {
    display: block;
    border: 0;
    background: transparent;
    color: var(--green);
  }
  nav {
    display: none;
    width: 100%;
    padding-top: 25px;
    flex-direction: column;
    align-items: start;
  }
  nav.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .heroimage {
    height: 390px;
    order: 2;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .stats strong {
    font-size: 42px;
  }
  .stats > div {
    padding-left: 15px;
  }
  .three,
  .report,
  .mapteaser {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 6%;
  }
  .sectionhead {
    display: block;
  }
  .report img {
    max-height: 300px;
  }
  .mapteaser > div {
    padding: 35px;
  }
  .mapcanvas {
    min-height: 480px;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  footer > div:first-child {
    grid-column: 1/-1;
  }
  .pageintro {
    padding-top: 40px;
  }
}

.marker-cluster.marker-cluster-medium {
  background: #a7b899bb;
}
.marker-cluster.marker-cluster-medium div {
  background: #2c4926;
  color: #fff;
}
.report h2 {
  font-size: clamp(45px, 5vw, 70px);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.calendar-day {
  min-height: 5rem;
  padding: 0.5rem;
  border: 1px solid #7a8877;
  background: #fff;
  color: #1f261e;
  font: inherit;
  text-align: left;
}
.calendar-day.past {
  background: #e3e5df;
  color: #52594e;
}
.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.weekday {
  font-weight: 600;
}
.event-card {
  border-bottom: 1px solid #7a8877;
  padding: 1rem 0;
}
#admin-body label {
  display: block;
  margin: 1rem 0;
}
#admin-body input,
#admin-body textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.6rem;
}
#admin-body button {
  font: inherit;
  cursor: pointer;
  margin: 0.4rem;
  padding: 0.65rem;
}
#tree-list,
#event-list {
  max-height: 20rem;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
}
dialog {
  max-width: 45rem;
  width: 95vw;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #395e33;
  border-radius: 1rem;
  padding: 1.5rem;
}
dialog::backdrop {
  background: #1f261e88;
}
#edit-map {
  height: 18rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b88a44;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .calendar-day {
    min-height: 3.5rem;
    padding: 0.3rem;
    font-size: 0.9rem;
  }
  .weekday {
    font-size: 0.85rem;
  }
}

.news-strip {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
}
.news-strip > .card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}
.news-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.news-controls button {
  font: inherit;
  padding: 0.7rem;
  border: 1px solid #395e33;
  background: white;
  color: #2c4926;
}
.sponsor-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.sponsor-logos img {
  max-width: 12rem;
  max-height: 7rem;
  object-fit: contain;
}
@media (max-width: 700px) {
  .news-strip > .card {
    flex-basis: 90%;
  }
}

/* CI accessibility finding: footer metadata needs normal-text contrast. */
footer small {
  color: #515c4a;
  font-size: 0.875rem;
}

/* Readable report-inspired typography, with accent colours reserved for decoration. */
:root {
  --cover-green: #395c34;
}
.eyebrow {
  font-size: 0.875rem;
  color: var(--green);
  letter-spacing: 1.2px;
}
.cta .eyebrow {
  color: var(--paper);
}
nav a,
.button,
.herofoot,
.stats span,
.stats small,
footer,
.card p {
  font-size: 0.875rem;
}
.topline {
  font-size: 0.75rem;
}
.photocredit {
  font-size: 0.75rem;
  background: #1f261ed9;
}
.hero h1 {
  color: var(--green);
}
.report h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -1px;
}
.involvement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.involvement-grid h2 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.involvement-grid a {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .involvement-grid {
    grid-template-columns: 1fr;
  }
}

.approach b {
  color: var(--green);
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 0.25rem;
}
.approach p {
  font-size: 1rem;
}
.notice {
  font-size: 0.875rem;
}
.sponsor-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  min-height: 7rem;
}
.sponsor-logos img {
  width: 12rem;
  height: 7rem;
  object-fit: contain;
}
/* Owner refinements: shared identity, clear section boundaries and native admin. */
.brand > .brand-mark {
  display: block;
  width: 60px;
  flex: 0 0 60px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}
footer {
  border-top: 10px solid var(--green);
}
.stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.recognition-button {
  margin-top: 28px;
}
.sponsor-logos .government-partner {
  min-width: 260px;
}
.sponsor-logos .government-partner img {
  width: 320px;
  max-width: 100%;
  object-fit: contain;
}
.story-prose {
  max-width: 1200px;
}
.team-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
}
.team-layout > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.team-names {
  margin: 0;
}
.team-names > div {
  padding: 14px 0;
  border-bottom: 1px solid #d5d7cb;
}
.team-names dt {
  font-weight: 600;
  font-size: 21px;
}
.team-names dd {
  margin: 2px 0;
  color: #515c4a;
  font-size: 14px;
}
.involvement-grid > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.involvement-grid > article .button {
  margin-top: auto;
}
.mapcanvas,
#edit-map {
  touch-action: none;
}
@media (max-width: 650px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sponsor-logos .government-partner {
    min-width: 0;
    width: 100%;
  }
  .brand > .brand-mark {
    width: 50px;
    flex-basis: 50px;
  }
  .brand-wordmark {
    font-size: 32px;
  }
}
.admin-workspace {
  padding-top: 20px;
}
.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 2px solid #cbd1c2;
  margin-bottom: 30px;
}
.admin-tabs button {
  padding: 12px 16px;
  border: 1px solid #cbd1c2;
  background: transparent;
  color: var(--green);
  border-radius: 4px 4px 0 0;
  font-size: 14px;
}
.admin-tabs button[aria-selected='true'] {
  background: var(--green);
  color: white;
}
.admin-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.admin-heading h2 {
  font-size: 36px;
}
.admin-search {
  display: block;
  max-width: 600px;
  margin: 20px 0;
}
.admin-workspace input:not([type='checkbox']),
.admin-workspace select,
.admin-workspace textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #aeb9a6;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.6;
}
.admin-table caption {
  text-align: left;
  padding: 12px 0;
  color: #515c4a;
}
.admin-table th {
  text-align: left;
  background: #e6e9dd;
  color: var(--green);
  white-space: nowrap;
}
.admin-table td,
.admin-table th {
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid #d5d7cb;
  min-width: 100px;
  max-width: 320px;
  overflow-wrap: anywhere;
}
.admin-table td {
  min-width: 130px;
}
.admin-table td:first-child {
  min-width: 70px;
}
.admin-table button {
  border: 1px solid var(--green);
  border-radius: 3px;
  padding: 6px 10px;
  background: #fff;
  color: var(--green);
  white-space: nowrap;
}
.admin-table button:disabled {
  opacity: 0.55;
  cursor: default;
}
.admin-thumbnail {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.csv-tools {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid #cbd1c2;
}
.csv-tools label {
  display: block;
  max-width: 500px;
  margin-bottom: 15px;
}
#record-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: 90dvh;
  border: 1px solid #aeb9a6;
  border-radius: 8px;
  padding: 25px;
  background: var(--paper);
  color: var(--ink);
}
#record-dialog::backdrop {
  background: #1f261e99;
}
#record-title {
  font-size: 32px;
  margin-top: 0;
}
#record-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#record-fields label {
  font-size: 14px;
  display: block;
  min-width: 0;
}
#record-fields label:has(textarea) {
  grid-column: 1/-1;
}
#record-fields input:not([type='checkbox']),
#record-fields select,
#record-fields textarea {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #aeb9a6;
  background: white;
  font: inherit;
  color: var(--ink);
  border-radius: 3px;
}
#record-fields input[readonly] {
  background: #e9ecdf;
}
#record-fields input[type='hidden'] {
  display: none;
}
#record-fields label:has(input[type='hidden']) {
  display: none;
}
#record-fields textarea {
  min-height: 110px;
  resize: vertical;
}
#record-fields .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
#edit-map {
  height: 300px;
  min-height: 300px;
  margin-top: 10px;
}
#pin-help,
#pin-position {
  font-size: 13px;
}
#photo-field {
  margin-top: 22px;
}
#photo-file {
  display: block;
  max-width: 100%;
  margin: 8px 0;
}
#photo-preview {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin: 12px 0;
}
#form-status {
  font-size: 14px;
  color: #762e21;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 650px) {
  #record-fields {
    grid-template-columns: 1fr;
  }
  #record-dialog {
    padding: 20px;
  }
  .admin-tabs button {
    font-size: 12px;
    padding: 10px;
  }
  .admin-heading h2 {
    font-size: 30px;
  }
}

/* The HTML hidden state must win over component display declarations. */
[hidden] {
  display: none !important;
}

@media (max-width: 650px) {
  .admin-workspace input:not([type='checkbox']),
  .admin-workspace select,
  .admin-workspace textarea,
  #record-fields input:not([type='checkbox']),
  #record-fields select,
  #record-fields textarea {
    font-size: 16px;
  }
}

.tree-popup img.species-illustration {
  object-fit: contain;
  background: var(--paper);
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: start;
}
.species-card {
  padding: 24px;
  border: 1px solid #ced4c8;
  border-radius: 8px;
  background: #faf9f5;
  overflow-wrap: anywhere;
}
.species-card > img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}
.species-card h3 {
  margin: 0 0 6px;
  font-size: 23px;
}
.species-card p {
  font-size: 14px;
}
.species-maltese,
.tree-maltese-name {
  font-weight: 600;
}
.species-card summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
  padding: 12px 0;
}
.species-card dl {
  margin: 0;
  font-size: 14px;
}
.species-card dl > div {
  border-top: 1px solid #dce0d5;
  padding: 10px 0;
}
.species-card dt {
  font-weight: 600;
}
.species-card dd {
  margin: 4px 0 0;
}
.species-reference {
  margin-top: 28px;
  font-size: 14px;
}
.admin-table th:last-child,
.admin-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--paper);
  box-shadow: -3px 0 4px #1f261e15;
}
.admin-table th:last-child {
  background: #e6e9dd;
}
.admin-table td:last-child {
  white-space: nowrap;
}
.admin-table button + button {
  margin-left: 6px;
}
.admin-table .delete-tree {
  color: #8b3327;
  border-color: #8b3327;
}
#species-description-fallback {
  grid-column: 1/-1;
}

.admin-topbar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
}
.admin-logout {
  margin-left: auto;
  flex-shrink: 0;
}

.admin-intro {
  max-width: none;
}

.mapteaser > .mapart {
  padding: 28px 20px 18px;
}

/* Keep the complete lockup compact; expand navigation only when requested. */
@media (max-width: 1050px) {
  header {
    padding: 6px 5%;
    flex-wrap: wrap;
    gap: 0;
  }
  #menu {
    display: block;
    border: 0;
    background: transparent;
    color: var(--green);
  }
  header nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    align-items: start;
    gap: 14px;
  }
  header nav.open {
    display: flex;
    padding-bottom: 10px;
  }
}

/* Linked Facebook events stay distinct from the activity register. */
.calendar-date {
  display: block;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.calendar-date.has-facebook {
  background: #245783;
  color: white;
}
.calendar-facebook-event {
  display: block;
  margin-top: 0.35rem;
  color: #163f65;
  font-size: 0.85rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.calendar-day small {
  display: block;
}
.calendar-import {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #7a8877;
}
.calendar-import input {
  display: block;
  max-width: 100%;
  margin: 0.5rem 0 1rem;
}
.donation-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}
.donation-panel {
  padding: 2rem;
  background: #e3e8dc;
  border-radius: 0.5rem;
}
@media (max-width: 650px) {
  .calendar-day {
    padding: 0.2rem;
  }
  .calendar-facebook-event {
    font-size: 0.7rem;
  }
  .donation-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.calendar-legend span {
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #245783;
}
