
@font-face{
  font-family:"Comfortaa";
  src:local("Comfortaa");
  font-display:swap;
}

:root{
  color-scheme:dark;
  --bg:#000;
  --fg:#fff;
  --muted:rgba(255,255,255,.46);
  --soft:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.18);
  --wash:rgba(255,255,255,.035);
}

*{box-sizing:border-box}

html{
  background:var(--bg);
}

html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--fg);
}

body{
  font-family:"Comfortaa",Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,
input{
  font-family:inherit;
}

a{
  color:inherit;
}

.flora-page{
  width:min(1340px,calc(100% - 64px));
  margin:0 auto;
  padding:34px 0 72px;
}

/* Header / same visual language as Flöw menus */
.flora-header{
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
}

.flora-header-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
}

.flora-brand{
  display:block;
  width:min(360px,34vw);
  text-decoration:none;
}

.flora-brand img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}

.back-link{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:5px;
  padding:9px 0;
  border:0;
  color:rgba(255,255,255,.52);
  text-decoration:none;
  font-size:10px;
  font-weight:700;
  transition:color .18s ease,transform .18s ease;
}

.back-link:hover{
  color:#fff;
  transform:translateX(-2px);
}

.flora-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:44px;
  margin-top:28px;
}

.intro-copy{
  max-width:820px;
}

.eyebrow,
.section-kicker{
  color:rgba(255,255,255,.38);
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.lead{
  margin:8px 0 0;
  max-width:800px;
  color:rgba(255,255,255,.61);
  font-size:12px;
  line-height:1.75;
}

/* Same flat tab language as Preferences */
.range-tabs{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:18px;
  border-bottom:1px solid var(--line);
}

.range-tab{
  appearance:none;
  border:0;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  padding:11px 0 10px;
  background:transparent;
  color:rgba(255,255,255,.40);
  cursor:pointer;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
  transition:color .18s ease,border-color .18s ease,opacity .18s ease;
}

.range-tab:hover{
  color:rgba(255,255,255,.78);
}

.range-tab.active{
  color:#fff;
  border-bottom-color:#fff;
}

/* Summary: frameless and divided, like the site's menu lists */
.metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:34px 0 54px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.metric{
  min-width:0;
  padding:20px 22px;
  border-left:1px solid var(--line);
  background:transparent;
}

.metric:first-child{
  border-left:0;
}

.metric span{
  display:block;
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}

.metric strong{
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:clamp(20px,2.1vw,30px);
  line-height:1;
  font-weight:700;
  letter-spacing:-.025em;
}

.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(290px,.72fr);
  gap:54px;
  align-items:start;
}

.side-column{
  display:grid;
  gap:42px;
}

.section-block{
  min-width:0;
}

.section-heading{
  min-height:52px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:0 0 12px;
  border-bottom:1px solid var(--line-strong);
}

.section-heading.compact{
  min-height:44px;
}

.section-heading h1,
.section-heading h2{
  margin:5px 0 0;
  color:#fff;
  font-size:15px;
  line-height:1.2;
  font-weight:700;
}

.section-heading h1{
  font-size:17px;
}

.section-note{
  color:rgba(255,255,255,.30);
  font-size:9px;
  font-weight:700;
}

.card{
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
}

.list{
  display:grid;
}

/* Ranking/news rows */
.item{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  min-height:77px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.item:last-child{
  border-bottom:0;
}

.rank{
  align-self:start;
  padding-top:3px;
  color:rgba(255,255,255,.28);
  font-size:9px;
  font-weight:700;
}

.item-title{
  display:inline;
  color:rgba(255,255,255,.93);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  line-height:1.48;
  transition:color .16s ease;
}

a.item-title:hover{
  color:#fff;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.item-meta{
  margin-top:7px;
  color:rgba(255,255,255,.34);
  font-size:8.5px;
  line-height:1.55;
}

.flora-score{
  min-width:92px;
  text-align:right;
  color:#fff;
  font-size:22px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.04em;
}

.flora-score small{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.31);
  font-size:7.5px;
  line-height:1;
  font-weight:400;
  letter-spacing:0;
}

/* Source/category bars */
.bars{
  padding-top:7px;
}

.bar-row{
  display:grid;
  grid-template-columns:minmax(86px,1fr) minmax(70px,1.35fr) 46px;
  gap:10px;
  align-items:center;
  min-height:31px;
  padding:6px 0;
}

.bar-label{
  overflow:hidden;
  color:rgba(255,255,255,.72);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bar{
  height:2px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.10);
}

.bar i{
  display:block;
  height:100%;
  border-radius:99px;
  background:#fff;
}

.bar-value{
  color:rgba(255,255,255,.35);
  text-align:right;
  font-size:8px;
}

.viewed-section{
  margin-top:60px;
}

.empty{
  padding:46px 0;
  color:rgba(255,255,255,.35);
  text-align:center;
  font-size:10px;
  line-height:1.6;
}

.flora-footer{
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-top:56px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:rgba(255,255,255,.25);
  font-size:8.5px;
  line-height:1.7;
}

.flora-footer a{
  flex:0 0 auto;
  color:rgba(255,255,255,.34);
  text-decoration:none;
}

.flora-footer a:hover{
  color:#fff;
}

.footer{
  min-width:0;
}

.loading{
  cursor:progress;
}

.loading .metrics,
.loading .content-grid,
.loading .viewed-section{
  opacity:.55;
  transition:opacity .18s ease;
}

/* Keep admin classes independent: flora.css is loaded by flora.html only. */
@media(max-width:980px){
  .flora-page{
    width:min(100% - 40px,1340px);
  }

  .flora-intro{
    align-items:flex-start;
    flex-direction:column;
    gap:22px;
  }

  .content-grid{
    grid-template-columns:1fr;
    gap:52px;
  }

  .side-column{
    grid-template-columns:1fr 1fr;
    gap:32px;
  }
}

@media(max-width:700px){
  .flora-page{
    width:min(100% - 26px,1340px);
    padding:20px 0 48px;
  }

  .flora-header{
    padding-bottom:22px;
  }

  .flora-header-main{
    align-items:center;
  }

  .flora-brand{
    width:min(250px,61vw);
  }

  .back-link{
    font-size:0;
    margin-top:0;
    padding:8px 0 8px 12px;
  }

  .back-link span:first-child{
    font-size:20px;
    line-height:1;
  }

  .flora-intro{
    margin-top:22px;
  }

  .lead{
    font-size:10.5px;
    line-height:1.75;
  }

  .range-tabs{
    width:100%;
    gap:0;
    justify-content:space-between;
  }

  .range-tab{
    flex:1;
    padding:10px 6px 9px;
    font-size:9px;
    text-align:center;
  }

  .metrics{
    grid-template-columns:1fr 1fr;
    margin:26px 0 42px;
  }

  .metric{
    padding:16px 13px;
    border-bottom:1px solid var(--line);
  }

  .metric:nth-child(odd){
    border-left:0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4){
    border-bottom:0;
  }

  .section-heading{
    min-height:47px;
  }

  .section-heading h1,
  .section-heading h2{
    font-size:13px;
  }

  .item{
    grid-template-columns:22px minmax(0,1fr);
    gap:10px;
    min-height:0;
    padding:15px 0;
  }

  .flora-score{
    grid-column:2;
    min-width:0;
    margin-top:-3px;
    text-align:left;
    font-size:17px;
  }

  .flora-score small{
    display:inline;
    margin:0 0 0 4px;
  }

  .item-title{
    font-size:10.5px;
    line-height:1.5;
  }

  .item-meta{
    font-size:7.8px;
  }

  .side-column{
    grid-template-columns:1fr;
    gap:42px;
  }

  .bar-row{
    grid-template-columns:minmax(82px,1.1fr) 1.3fr 42px;
  }

  .viewed-section{
    margin-top:48px;
  }

  .flora-footer{
    align-items:flex-start;
    flex-direction:column;
    margin-top:44px;
  }
}

@media(max-width:420px){
  .flora-page{
    width:calc(100% - 22px);
  }

  .flora-brand{
    width:min(220px,68vw);
  }

  .metric strong{
    font-size:19px;
  }

  .metric span{
    font-size:8px;
  }

  .bar-row{
    grid-template-columns:minmax(78px,1fr) 1fr 38px;
    gap:8px;
  }
}
