/*
  REDList shared site chrome (header, navigation, footer, owner placeholders).
  Loaded by every page AFTER its own inline <style> block. All selectors are
  namespaced with "rl-" so they never collide with page-level classes such as
  .top-nav, .brand, .btn, or .wrap. Colors and fonts match the existing pages:
  brand red #be302a / #8a2219, Barlow (display) and IBM Plex Sans (body).
*/
.rl-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 252, 252, 0.95);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
.rl-nav {
  max-width: 1300px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rl-brand-group { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.rl-brand {
  font-family: "Barlow", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}
.rl-brand span { color: #be302a; }
.rl-chip {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(190, 48, 42, 0.45);
  background: rgba(190, 48, 42, 0.1);
  color: #be302a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  line-height: 1.3;
}
.rl-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.rl-links > li { position: relative; list-style: none; }
.rl-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #000;
  padding: 0.55rem 0.9rem;
  transition: 220ms ease;
  white-space: nowrap;
}
.rl-link:hover, .rl-link:focus-visible { background: #efefef; }
.rl-link[aria-current="page"] { color: #be302a; background: rgba(190, 48, 42, 0.08); }
.rl-link-quiet { color: #555; font-weight: 500; font-size: 0.9rem; }
.rl-link-cta {
  background: #be302a;
  color: #fff;
  border: 1px solid transparent;
  margin-left: 0.35rem;
}
.rl-link-cta:hover, .rl-link-cta:focus-visible {
  background: #8a2219;
  color: #fff;
  box-shadow: 0 10px 18px rgba(190, 48, 42, 0.22);
}
.rl-link-cta[aria-current="page"] { background: #8a2219; color: #fff; }

/* ELERA Portfolio dropdown: native <details>/<summary> disclosure.
   Opens on click, tap, Enter, or Space without JavaScript; assets/site-nav.js adds Escape and click-outside. */
.rl-dd { position: relative; }
.rl-dd > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.rl-dd > summary::-webkit-details-marker { display: none; }
.rl-dd > summary::marker { content: ""; }
.rl-dd > summary:focus-visible { outline: 2px solid rgba(190, 48, 42, 0.6); outline-offset: 2px; }
.rl-dd[open] > summary { background: #efefef; }
.rl-link-active { color: #be302a; }
.rl-caret { display: inline-block; font-size: 0.7em; margin-left: 0.3rem; transition: transform 160ms ease; }
.rl-dd[open] .rl-caret { transform: rotate(180deg); }

.rl-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 2rem));
  padding: 1rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.14);
  z-index: 40;
  text-align: left;
}
.rl-menu-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(190, 48, 42, 0.07);
  color: #8a2219;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.rl-menu-overview:hover, .rl-menu-overview:focus-visible { background: rgba(190, 48, 42, 0.13); }
.rl-menu-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.rl-menu-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  padding: 0 0.5rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}
.rl-menu-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #be302a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.rl-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.05rem; }
.rl-menu li { list-style: none; }
.rl-menu-groups a, .rl-menu-legacy a, .rl-menu-tools a {
  display: block;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  color: #1b1b1b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}
.rl-menu-groups a:hover, .rl-menu-groups a:focus-visible,
.rl-menu-legacy a:hover, .rl-menu-legacy a:focus-visible,
.rl-menu-tools a:hover, .rl-menu-tools a:focus-visible { background: rgba(190, 48, 42, 0.08); color: #8a2219; }
.rl-menu a[aria-current="page"] { color: #be302a; font-weight: 700; }
.rl-tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(8, 126, 184, 0.1);
  color: #076e9f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.rl-menu-legacy, .rl-menu-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid #eee;
}
.rl-menu-legacy-label {
  margin: 0 0.3rem 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.rl-menu-legacy a, .rl-menu-tools a { color: #555; font-size: 0.85rem; }
.rl-menu-tools + .rl-menu-legacy { margin-top: 0.4rem; padding-top: 0.4rem; }

/* "Free · Docker download" badge (Log Monitor) */
.rl-badge-free {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 126, 184, 0.1);
  border: 1px solid rgba(8, 126, 184, 0.3);
  color: #076e9f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer */
footer.rl-footer {
  margin-top: 4.5rem;
  background: #050505;
  color: #bababa;
  padding: 3rem 1.25rem 2.5rem;
  text-align: left;
  border-top: 3px solid #be302a;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
.rl-footer-inner { max-width: 1300px; margin: 0 auto; }
.rl-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.rl-footer-brand {
  font-family: "Barlow", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.45rem;
  line-height: 1.1;
}
.rl-footer-brand span { color: #be302a; }
.rl-footer-about p { margin: 0 0 0.6rem; max-width: 40ch; }
.rl-footer-tagline { color: #8f8f8f; font-size: 0.86rem; }
.rl-footer-heading {
  margin: 0 0 0.6rem;
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.rl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.rl-footer li { list-style: none; }
.rl-footer a { color: #d6d6d6; text-decoration: none; }
.rl-footer a:hover, .rl-footer a:focus-visible { color: #fff; text-decoration: underline; }
.rl-footer-support a { color: #ff9a93; font-weight: 600; }
.rl-footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.86rem;
  color: #9b9b9b;
}
.rl-footer-bottom p { margin: 0.35rem auto 0; max-width: 90ch; }

/* Keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* Owner placeholders: deliberately visible so nothing ships unfilled. */
.owner-ph {
  display: inline;
  background: #fff4d6;
  color: #6b4b00;
  border: 1px dashed #c99a2e;
  border-radius: 4px;
  padding: 0 0.25em;
  font-weight: 600;
  font-style: normal;
}
footer.rl-footer .owner-ph { background: #3a2f12; color: #ffd98a; border-color: #c99a2e; }

@media (max-width: 1100px) {
  .rl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .rl-header { position: relative; }
  [id] { scroll-margin-top: 12px; }
  .rl-nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .rl-links { width: 100%; flex-wrap: wrap; gap: 0.15rem 0.1rem; }
  .rl-nav { position: relative; }
  .rl-links > li.rl-has-menu, .rl-dd { position: static; }
  .rl-menu {
    left: 0.75rem;
    right: 0.75rem;
    top: 100%;
    transform: none;
    width: auto;
    max-height: 75vh;
    overflow-y: auto;
  }
  .rl-link { font-size: 0.9rem; padding: 0.45rem 0.7rem; }
}
@media (max-width: 640px) {
  .rl-menu-groups { grid-template-columns: 1fr; gap: 0.5rem; }
}
@media (max-width: 560px) {
  .rl-brand { font-size: 1.5rem; }
  .rl-brand-group { flex-wrap: wrap; gap: 0.35rem 0.6rem; }
  .rl-chip { font-size: 0.62rem; padding: 0.22rem 0.5rem; }
  .rl-link { padding: 0.4rem 0.6rem; }
  .rl-link-quiet { display: none; }
  .rl-footer-grid { grid-template-columns: 1fr; }
}
