/* grupo.html: the group's sites, one mascot and one speech bubble each. The same page lives on
   every site of the group in its own style; the text and order come from
   brand/group.json. Colours only from app.css variables, plus one per site (--c). */
.grupo { --c: var(--ink); --g-shadow: 0 10px 28px rgb(20 32 58 / .10); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grupo { --g-shadow: 0 10px 28px rgb(0 0 0 / .35); } }
:root[data-theme="dark"] .grupo { --g-shadow: 0 10px 28px rgb(0 0 0 / .35); }

.eyebrow { display: inline-block; font-size: var(--step--1); font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-strong); background: var(--ink-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

.g-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding: 34px 0 26px; }
.g-hero h1 { margin-bottom: 14px; }
.g-stage { position: relative; display: grid; place-items: center; min-height: 320px; }
.g-blob { position: absolute; width: min(88%, 330px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, #0284c7 26%, var(--bg)), color-mix(in srgb, #0284c7 10%, var(--bg)) 70%); }
.g-mascot { position: relative; width: min(190px, 46vw); height: auto; filter: drop-shadow(0 16px 14px rgb(15 23 42 / .18)); }
.g-say { position: absolute; top: 4%; left: 2%; margin: 0; background: var(--card); color: var(--fg); border-radius: 18px 18px 18px 4px;
  padding: 9px 15px; font-weight: 900; line-height: 1.25; max-width: 13em; box-shadow: var(--g-shadow); border: 1px solid var(--line); }

.g-list { padding: 28px 0 10px; border-top: 1px solid var(--line); }
.m-carro { --c: #ff6b4a; } .m-ohmigo { --c: #22c55e; } .m-voltaria { --c: #2f5bd0; }
.m-ceme { --c: #db2777; } .m-nap { --c: #0284c7; } .m-ampere { --c: #8b5cf6; }
.m-oop { --c: #f2b33d; } .m-pano { --c: #8f2a85; }
.mates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
.mate { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 880px; }
.mate:nth-child(even) { grid-template-columns: minmax(0, 1fr) 180px; margin-left: auto; }
.mate:nth-child(even) .mate-pic { order: 2; }
.mate-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.mate-pic::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--bg)); }
.mate-pic img { position: relative; width: 74%; height: auto; max-height: 84%; object-fit: contain; }
.mate-bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--g-shadow); padding: 22px 24px; }
/* The bubble's tail: a triangle of the card's colour, pointing at the mascot. */
.mate-bubble::before { content: ""; position: absolute; top: 50%; left: -17px; width: 18px; height: 30px; margin-top: -15px;
  background: var(--card); clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.mate:nth-child(even) .mate-bubble::before { left: auto; right: -17px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.mate-bubble h2 { margin: 2px 0 10px; }
.mate-bubble p:last-child { margin-bottom: 0; }
.mate-host { display: flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 800; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 4px; }
.mate-host::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.mate-note { color: var(--muted); font-weight: 700; }
.mate-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mate-links .btn { text-decoration: none; }
.g-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.here { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 900;
  background: var(--fg); color: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  .g-mascot, .mate-pic img { animation: g-bob 3.4s ease-in-out infinite; }
  .mate:nth-child(2n) .mate-pic img { animation-delay: -1.1s; }
  .mate:nth-child(3n) .mate-pic img { animation-delay: -2.2s; }
}
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* High contrast: no soft fills, a solid outline instead. */
:root[data-vision="hc"] .g-blob, :root[data-vision="hc"] .mate-pic::before, :root[data-vision="hc"] .mate-bubble::before { display: none; }
:root[data-vision="hc"] .mate-bubble, :root[data-vision="hc"] .g-say { border: 2px solid var(--line); box-shadow: none; }

@media (max-width: 760px) {
  .g-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0 20px; }
  .g-stage { min-height: 250px; order: -1; }
  .g-mascot { width: min(150px, 42vw); }
  .g-say { left: 0; top: 0; font-size: var(--step--1); }
  .mates { gap: 34px; }
  .mate, .mate:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-left: 0; }
  .mate .mate-pic, .mate:nth-child(even) .mate-pic { order: 0; width: 140px; margin: 0 auto; }
  .mate-bubble::before, .mate:nth-child(even) .mate-bubble::before { top: -17px; left: 50%; right: auto; width: 30px; height: 18px; margin: 0 0 0 -15px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%); }
  .mate-bubble { padding: 20px 18px; }
}
