/* ORODANA universal footer v2: one footer for laptop and phone. Every rule is scoped to footer.of2.
   Alignment: the top row, the venture groups, the ORODANA/Help links and the bottom row all sit on ONE column grid
   (--of2-cols, set by the script from the number of groups that are on), so their left edges always line up. */
footer#orodana-footer-os-loaded.of2 {
  --of2-bg: #07090c;
  --of2-surface: #0e1217;
  --of2-line: #1c232c;
  --of2-text: #e8edf2;
  --of2-muted: #94a0ad;
  --of2-green: #22c55e;
  --of2-green-soft: rgba(34, 197, 94, 0.12);
  --of2-gap: 32px;
  display: block;
  margin: 0;
  padding: 40px 24px 20px;
  background: var(--of2-bg);
  border-top: 1px solid var(--of2-line);
  color: var(--of2-text);
  font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}
.of2 *, .of2 *::before, .of2 *::after { box-sizing: border-box; }
.of2 a { color: inherit; text-decoration: none; }
.of2 ul { list-style: none; margin: 0; padding: 0; }
.of2 .of2-wrap { max-width: 1240px; margin: 0 auto; }
.of2 .of2-preview-note {
  max-width: 1240px; margin: 0 auto 18px; padding: 8px 12px; border-radius: 8px;
  background: #3a2a05; color: #fde68a; font-size: 13px; text-align: center;
}

/* One grid for every row */
.of2 .of2-top, .of2 .of2-groups {
  display: grid;
  grid-template-columns: repeat(var(--of2-cols, 4), minmax(0, 1fr));
  column-gap: var(--of2-gap);
  align-items: start;
}

/* Top: brand on the left columns; on the right one block (the width of the last two columns) holding the
   numbers in three equal boxes and the WhatsApp contacts below, one per column. Edges match the columns below. */
.of2 .of2-top { align-items: center; row-gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--of2-line); }
.of2 .of2-brand { grid-column: 1 / -3; min-width: 0; }
.of2 .of2-meta { grid-column: -3 / -1; display: grid; row-gap: 12px; min-width: 0; }
.of2[data-cols="2"] .of2-brand, .of2[data-cols="2"] .of2-meta { grid-column: 1 / -1; }
.of2 .of2-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--of2-line); border-radius: 12px; background: var(--of2-surface); overflow: hidden;
}
.of2 .of2-stat { padding: 10px 6px; }
.of2 .of2-stat + .of2-stat { border-left: 1px solid var(--of2-line); }
.of2 .of2-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--of2-gap); row-gap: 10px; }
.of2 .of2-contacts[data-count="1"] { grid-template-columns: 1fr; }
.of2 .of2-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }
.of2 .of2-logo-mark {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--of2-green); color: #04140a; font-size: 15px; letter-spacing: 0;
}
.of2 .of2-tagline { margin: 10px 0 0; color: var(--of2-muted); font-size: 13.5px; line-height: 1.6; }
.of2 .of2-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.of2 .of2-stat-value { font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--of2-text); }
.of2 .of2-stat-label { font-size: 10.5px; letter-spacing: 0.12em; color: var(--of2-green); font-weight: 700; }
.of2 .of2-wa {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--of2-green-soft); border: 1px solid rgba(34, 197, 94, 0.35);
}
.of2 .of2-wa:hover, .of2 .of2-wa:focus-visible { border-color: var(--of2-green); }
.of2 .of2-wa-icon { width: 26px; height: 26px; flex: none; display: block; }
.of2 .of2-wa-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.of2 .of2-wa-place { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of2-green); font-weight: 700; }
.of2 .of2-wa-number { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Venture groups and ORODANA/Help links: same columns, same title and link style */
.of2 .of2-groups { row-gap: 30px; padding: 30px 0 4px; }
/* ORODANA + Help links: one straight line under the groups (wraps only when the screen is narrow). */
.of2 .of2-coreline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--of2-line);
}
.of2 .of2-coreline a { color: var(--of2-text); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: color 0.15s; }
.of2 .of2-coreline a:hover, .of2 .of2-coreline a:focus-visible { color: var(--of2-green); }
.of2 .of2-group { min-width: 0; }
.of2 .of2-group > summary {
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  min-height: 22px; margin-bottom: 12px;
  cursor: default;
}
.of2 .of2-group > summary::-webkit-details-marker { display: none; }
.of2 .of2-group-title { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of2-text); }
.of2 .of2-count {
  font-size: 10.5px; font-weight: 700; color: var(--of2-green);
  background: var(--of2-green-soft); border-radius: 999px; padding: 1px 7px;
}
.of2 .of2-chevron { display: none; }
.of2 .of2-group ul { display: grid; row-gap: 7px; }
.of2 .of2-group--eco ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.of2 .of2-group a {
  display: block; color: var(--of2-muted); font-size: 13.5px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.15s;
}
.of2 .of2-group a:hover, .of2 .of2-group a:focus-visible { color: var(--of2-green); }
.of2 a:focus-visible, .of2 summary:focus-visible { outline: 2px solid var(--of2-green); outline-offset: 3px; border-radius: 4px; }

/* Global Presence (wide screens, only when the owner switches it on) */
.of2 .of2-presence { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--of2-line); }
.of2 .of2-presence-title { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of2-text); }
.of2 .of2-presence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.of2 .of2-country { background: var(--of2-surface); border: 1px solid var(--of2-line); border-radius: 12px; padding: 10px; text-align: center; }
.of2 .of2-country-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 12px; }
.of2 .of2-country-name { font-weight: 700; }
.of2 .of2-country-time { color: var(--of2-muted); font-variant-numeric: tabular-nums; }
.of2 .of2-gauge svg { width: 72px; height: 45px; display: block; margin: 6px auto 0; }
.of2 .of2-gauge-track { stroke: #1f2933; }
.of2 .of2-gauge-fill { stroke: var(--of2-green); }
.of2 .of2-gauge-needle { stroke: var(--of2-text); stroke-width: 2.4; stroke-linecap: round; }
.of2 .of2-gauge-hub { fill: var(--of2-text); }
.of2 .of2-gauge-value { font-weight: 800; font-size: 13px; }
.of2 .of2-gauge-label { font-size: 10px; color: var(--of2-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Bottom: legal links (left edge) + copyright (right edge) */
.of2 .of2-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--of2-line);
  font-size: 12.5px; color: var(--of2-muted);
}
.of2 .of2-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.of2 .of2-legal a:hover { color: var(--of2-text); }

/* Small laptops: three columns, so long names never get cut */
@media (min-width: 1024px) and (max-width: 1199px) {
  footer#orodana-footer-os-loaded.of2[data-cols="4"] { --of2-cols: 3 !important; --of2-gap: 28px; }
}

/* Tablet: two columns everywhere */
@media (max-width: 1023px) {
  footer#orodana-footer-os-loaded.of2 { --of2-cols: 2 !important; --of2-gap: 24px; }
  .of2 .of2-brand, .of2 .of2-meta { grid-column: 1 / -1; }
}

/* Phones: one column; each group is a full-width row that folds open and closed */
@media (max-width: 767px) {
  footer#orodana-footer-os-loaded.of2 { --of2-cols: 1 !important; padding: 28px 16px 18px; }
  .of2 .of2-top { row-gap: 16px; padding-bottom: 20px; }
  .of2 .of2-brand, .of2 .of2-meta { grid-column: 1 / -1; }
  .of2 .of2-contacts { grid-template-columns: 1fr; }
  .of2 .of2-groups { row-gap: 0; padding: 6px 0 0; }
  /* Phones: the links sit in two tidy columns. */
  .of2 .of2-coreline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-top: 14px; }
  .of2 .of2-group { border-bottom: 1px solid var(--of2-line); }
  .of2 .of2-group > summary { margin: 0; padding: 0 2px; min-height: 52px; cursor: pointer; }
  .of2 .of2-group-title { flex: 1; font-size: 12.5px; }
  .of2 .of2-chevron {
    display: block; flex: none; width: 9px; height: 9px; margin: 0 4px 3px 6px;
    border-right: 2px solid var(--of2-muted); border-bottom: 2px solid var(--of2-muted);
    transform: rotate(45deg); transition: transform 0.2s;
  }
  .of2 .of2-group[open] > summary .of2-chevron { transform: rotate(-135deg); margin-bottom: -3px; }
  .of2 .of2-group ul { padding: 0 2px 14px; row-gap: 0; }
  .of2 .of2-group a { padding: 8px 0; font-size: 14.5px; }
  .of2 .of2-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .of2 .of2-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; width: 100%; }
}
