/* Flora page - FSOL version 1. Loaded AFTER climate-cards1.css (cards, tables, PDF block) and team-cards.css. Prefix fo-. */
.fo-page{ max-width: 1180px; }

/* hero: text + covers */
.fo-hero-grid{ display: grid; gap: 1.5rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px){ .fo-hero-grid{ grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .fo-hero-grid.no-img{ grid-template-columns: 1fr; } }
.fo-page[dir="ltr"] .fo-covers{ order: -1; }
@media (min-width: 900px){ .fo-page[dir="ltr"] .fo-hero-grid{ grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .fo-page[dir="ltr"] .fo-hero-grid.no-img{ grid-template-columns: 1fr; } }
.fo-covers{ display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.fo-covers a{ display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px rgba(38,70,54,.2); aspect-ratio: 3 / 4; }
.fo-covers img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fo-covers a:hover img{ transform: scale(1.05); }
.fo-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.fo-follow{ display: inline-flex; align-items: center; gap: .5rem; margin-inline-start: auto; font-weight: 600; color: var(--tm-green-dark, #355e4a); }
.fo-follow a{
  display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--tm-green, #3e6a55); color: #fff; font-size: 1.15rem; text-decoration: none; transition: background .2s, color .2s;
}
.fo-follow a:hover, .fo-follow a:focus-visible{ background: var(--tm-yellow, #fbf456); color: #1f3a2e; }

/* text sections */
.fo-sec .cl-text ul{ margin: 0 0 1rem; padding-inline-start: 1.4rem; }
.fo-sec .cl-text li + li{ margin-top: .4rem; }
.fo-sec .cl-text sup{ font-size: .75em; }
.fo-sec .cl-text bdi, .fo-sec .cl-text [dir="LTR"], .fo-sec .cl-text [dir="ltr"]{ unicode-bidi: isolate; }

/* tables */
.fo-tbl{ margin: 1.25rem 0 1.5rem; }
.fo-tbl:last-child{ margin-bottom: 0; }
.fo-table{ min-width: 0; }
.fo-table--species_list{ min-width: 560px; }
.fo-table--endemic_families{ min-width: 640px; }
.fo-wrap{ max-height: 620px; }
.fo-table td.fo-text{ text-align: start; }
.fo-table .cl-st{ font-weight: 700; }
.fo-table tbody tr:nth-child(even) td, .fo-table tbody tr:nth-child(even) th.cl-st{ background-color: #f6faeb; }
.fo-table tbody tr:nth-child(even) th.cl-st{ background: #eef5dc; }
/* phytogeography (grouped rows) */
.fo-table--phytogeo th.fo-grp{ text-align: start; vertical-align: middle; background: #e8f2cb; color: var(--tm-green-dark, #355e4a); font-weight: 800; border-inline-end: 1px solid #cfe0b4; position: static; }
.fo-table--phytogeo td.fo-region{ text-align: start; }
.fo-table--phytogeo tr.fo-total td{ font-weight: 800; background: #e8f2cb; }
.fo-table--phytogeo tbody tr:nth-child(even) td{ background: transparent; }
.fo-table--phytogeo tr.fo-total:nth-child(even) td{ background: #e8f2cb; }
.fo-pct{ display: inline-block; min-width: 3.2rem; }
.fo-bar{ display: inline-block; width: 90px; height: 8px; margin-inline-start: .6rem; vertical-align: middle; background: #e3ecd8; border-radius: 4px; overflow: hidden; }
.fo-bar i{ display: block; height: 100%; background: var(--tm-green, #3e6a55); border-radius: 4px; }
/* marks (+, ++, +++) */
.fo-markcell{ text-align: center; }
.fo-mark{ display: inline-block; min-width: 2.6rem; padding: .08rem .5rem; border-radius: 999px; font-weight: 800; letter-spacing: .08em; color: #fff; }
.fo-m1{ background: #d9a441; }
.fo-m2{ background: #e0742d; }
.fo-m3{ background: #c0392b; }

/* endemism centers */
.fo-centers{ display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px){ .fo-centers{ grid-template-columns: 1fr 1fr; } }
.fo-center{ display: flex; flex-direction: column; background: #f4f9e6; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(38,70,54,.12); }
.fo-center-photo{ display: block; aspect-ratio: 16 / 10; background: #d2e497; overflow: hidden; }
.fo-center-photo img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fo-center-photo:hover img{ transform: scale(1.04); }
.fo-center-body{ padding: 1rem 1.15rem 1.25rem; }
.fo-center-body h3{ margin: 0 0 .6rem; padding-bottom: .45rem; font-size: 1.1rem; font-weight: 700; color: var(--tm-green-dark, #355e4a); border-bottom: 3px solid var(--tm-yellow, #fbf456); }
.fo-center-body .cl-text{ font-size: 1rem; line-height: 1.9; }
