/* editions-download.css -- Uniform download indicators for the AcreetionOS
   edition/download listings (testing build). One component everywhere the
   downloadable editions are listed: download glyph + item name + real
   metadata + a button-style affordance to the item's actual target.
   Tokens are the pill build's (pill-nav.css); every var() carries the same
   value as a fallback so the component holds on pages that load it alone. */
:root{
  --pill-green:#2ecc71; --pill-green-hi:#4be389;
  --pill-glass:rgba(16,24,19,.78); --pill-glass2:rgba(18,28,22,.96);
  --pill-line:rgba(46,204,113,.25); --pill-ink:#f2f5f2; --pill-muted:#9fb3a6;
}

/* ---------- Indicator panel (Downloads page, Mirrors page) ---------- */
.dl-ind-panel{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
  background:var(--pill-glass); border:1px solid var(--pill-line); border-radius:16px;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 10px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  padding:18px; margin:1.5rem 0; color:var(--pill-ink);
}
.dl-ind-title{ margin:0 0 4px; font-size:1.05rem; font-weight:700; color:var(--pill-ink); }
.dl-ind-title b{ color:var(--pill-green); }
.dl-ind-sub{ margin:0 0 14px; font-size:.85rem; color:var(--pill-muted); }
.dl-ind-list{ display:flex; flex-direction:column; gap:10px; }

.dl-ind{ display:flex; align-items:center; gap:14px; padding:12px 14px;
  background:rgba(18,28,22,.55); border:1px solid var(--pill-line); border-radius:16px;
  color:var(--pill-ink); text-decoration:none; }
.dl-ind:hover{ border-color:var(--pill-green); background:rgba(46,204,113,.08); text-decoration:none; }
.dl-ind:focus-visible{ outline:2px solid var(--pill-green-hi); outline-offset:2px; }
.dl-ind-glyph{ flex:0 0 auto; width:26px; height:26px; color:var(--pill-green); }
.dl-ind-glyph svg{ display:block; width:100%; height:100%; }
.dl-ind-text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dl-ind-name{ font-weight:700; font-size:1rem; line-height:1.3; color:var(--pill-ink); }
.dl-ind-meta{ font-size:.8rem; line-height:1.4; color:var(--pill-muted); overflow-wrap:anywhere; }
.dl-ind-btn{ flex:0 0 auto; background:var(--pill-green); color:#07130b; font-weight:700;
  font-size:.9rem; line-height:1.2; padding:10px 18px; border-radius:999px; white-space:nowrap;
  box-shadow:0 8px 26px rgba(46,204,113,.35); }
.dl-ind:hover .dl-ind-btn{ background:var(--pill-green-hi); }
.dl-ind-foot{ margin:12px 0 0; font-size:.8rem; color:var(--pill-muted); }
.dl-ind-foot a{ color:var(--pill-green); }

@media (max-width:560px){
  .dl-ind-panel{ padding:14px; }
  .dl-ind{ flex-wrap:wrap; }
  .dl-ind-btn{ margin-left:40px; }
}

/* ---------- Homepage: hero download buttons + Wayland download link ----
   CSS-only treatment (no markup changes): the Bootstrap font icon is
   swapped for the same inline-SVG download glyph the panels use (rendered
   through a mask so it takes the button's own color), and the buttons take
   the pill's 999px radius. Targets are unchanged. */
.hero-cta .btn-download, a.wayland-download{
  border-radius:999px;
}
.hero-cta .btn-download .bi, a.wayland-download .bi{ display:none; }
.hero-cta .btn-download::before, a.wayland-download::before,
#editions-carousel .ed-slide[data-name="X11 (XOrg) Cinnamon Edition"] .ed-slide-link::before,
#editions-carousel .ed-slide[data-name="XL (XLibre) Cinnamon Edition"] .ed-slide-link::before,
#editions-carousel .ed-slide[data-name="Wayland Edition (experimental)"] .ed-slide-link::before{
  content:""; flex:0 0 auto; width:20px; height:20px; background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
#editions-carousel .ed-slide[data-name="X11 (XOrg) Cinnamon Edition"] .ed-slide-link,
#editions-carousel .ed-slide[data-name="XL (XLibre) Cinnamon Edition"] .ed-slide-link,
#editions-carousel .ed-slide[data-name="Wayland Edition (experimental)"] .ed-slide-link{
  gap:.55rem;
}
