/* Ecosystem atlas (atlas.html) and the ecosystem band on the home page.
   The six current colours are the Synergy Atlas's own (app/ecosystem.js, CURRENTS). They mark dots and
   borders only; text stays in the site's ink colours for contrast. */
:root {
  --cur-nav: #3987e5; --cur-col: #d95926; --cur-afr: #199e70;
  --cur-fnd: #c98500; --cur-fbk: #d55181; --cur-clm: #0ca30c;
  /* Atlas ramp: navy -> blue -> teal -> mint -> pale gold */
  --ramp-1: #1B2A6B; --ramp-2: #2F5FB3; --ramp-3: #0A9E92; --ramp-4: #7FD1B9; --ramp-5: #F2D88A;
}
.cur-nav { --cur: var(--cur-nav); } .cur-col { --cur: var(--cur-col); } .cur-afr { --cur: var(--cur-afr); }
.cur-fnd { --cur: var(--cur-fnd); } .cur-fbk { --cur: var(--cur-fbk); } .cur-clm { --cur: var(--cur-clm); }

.atl-dot { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--cur, var(--teal)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* Hero */
/* Dark like every page hero, with the Atlas's globe glow: teal over navy, a blue rim at the bottom */
.atl-hero { background: radial-gradient(700px 420px at 88% 30%, rgba(127, 209, 185, .28), transparent 62%), radial-gradient(900px 380px at 10% 120%, rgba(57, 135, 229, .30), transparent 60%), linear-gradient(160deg, #1B2A6B, #0E1640); }
.atl-legend { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.page-hero .atl-legend a { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .86rem; font-weight: 600; color: #fff; text-decoration: none; }
.page-hero .atl-legend a:hover { border-color: var(--cur); background: rgba(255, 255, 255, .12); }
.page-hero .atl-legend .atl-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }

/* Demand chart + side */
.atl-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .atl-split { grid-template-columns: minmax(0, 1fr) 360px; } }
.atl-bar { fill: var(--ramp-3); }
.atl-bar-top { fill: var(--ramp-1); }
.atl-big { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--indigo); margin: .25rem 0 .5rem; }
.atl-years { list-style: none; padding: 0; margin: .75rem 0; display: grid; gap: .3rem; }
.atl-years li { display: grid; grid-template-columns: 3rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .86rem; font-variant-numeric: tabular-nums; }
.atl-years svg { width: 100%; height: 10px; }
.atl-years b { text-align: right; color: var(--ink); }

/* Currents */
.atl-currents { display: grid; gap: 1.75rem; }
.atl-current { border-top: 4px solid var(--cur); padding-top: 1rem; }
.atl-current-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: .9rem; }
.atl-current-head h3 { margin: 0; font-size: 1.25rem; }
.atl-current-head p { margin: .15rem 0 0; color: var(--muted); }
.atl-num { font-weight: 800; font-size: 1.6rem; color: var(--cur); line-height: 1; min-width: 2.2rem; }
.atl-sites { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 700px) { .atl-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .atl-sites { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.atl-site { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; scroll-margin-top: 6rem; }
.atl-site.is-self { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo), var(--shadow); }
.atl-site:target { outline: 3px solid var(--amber-600); outline-offset: 2px; }
.atl-site-head { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.atl-site h4 { margin: 0; font-size: 1rem; }
.atl-site h4 a { color: var(--ink); text-decoration: none; }
.atl-site h4 a:hover { text-decoration: underline; }
.atl-tag { margin: .2rem 0 .7rem; color: var(--muted); font-size: .9rem; font-style: italic; }
.atl-facts { margin: auto 0 0; display: grid; gap: .45rem; font-size: .84rem; }
.atl-facts dt { font-weight: 700; color: var(--ink); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.atl-facts dd { margin: 0; }

/* Pairs and best fit */
.atl-pairs, .atl-best { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .45rem; }
.atl-pair { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .92rem; }
.atl-plus { color: var(--muted); font-weight: 800; padding: 0 .1rem; }
.atl-best li { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .92rem; }
.atl-best b { font-variant-numeric: tabular-nums; }

/* Home page ecosystem band */
.eco-section { background: radial-gradient(1000px 420px at 100% 0%, rgba(10, 158, 146, .12), transparent 60%), radial-gradient(800px 380px at 0% 100%, rgba(57, 135, 229, .10), transparent 60%), var(--bg-soft); border-block: 1px solid var(--line); }
.eco-band { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1000px) { .eco-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.eco-currents { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 600px) { .eco-currents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eco-currents a { display: flex; gap: .75rem; align-items: center; padding: .75rem .9rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cur); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); height: 100%; }
.eco-currents a:hover { border-color: var(--cur); }
.eco-currents strong { display: block; font-size: .95rem; }
.eco-currents span.small { color: var(--muted); }
.eco-currents .atl-num { font-size: 1.25rem; min-width: 1.8rem; }
