/* Presentation only. Claude's tree structure and responsive layout remain intact. */
:root {
  --cream: #f4f6fa;
  --ink: #162339;
  --muted: #647086;
  --shadow: 0 12px 30px rgba(23, 42, 74, .07);
  --radius: 20px;
}

body { background: #f4f6fa; }
.confetti { display: none; }
header.top h1 { font-weight: 800; color: #162339; }
header.top h1 span { color: #1554ff; letter-spacing: -.025em; }
header.top p { color: #69758a; font-size: 14px; line-height: 1.9; }
.hint {
  background: #e8eefb;
  color: #395486;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  transform: none;
  font-size: 13px;
  font-weight: 700;
}
.hint::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1554ff;
  flex: none;
}
.btn {
  border: 1px solid #d2daea;
  color: #fff;
  background: #1554ff;
  border-radius: 10px;
  box-shadow: 0 4px 12px #1554ff14;
  font-weight: 700;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.lang-toggle { background: white; color: #20365d; box-shadow: none; }
.lang-toggle:hover { background: #eaf0ff; border-color: #b8cafa; }

.wires path { stroke: #afbbce; stroke-width: 2; }
.wires circle { fill: #fff; stroke: #6986b9; stroke-width: 2; r: 5px; }
.pill {
  background: #e4ecfc;
  color: #284d99;
  border-color: var(--cream);
  box-shadow: none;
  border-radius: 99px;
  font-weight: 800;
}
.branch:nth-child(odd) .pill,
.branch:nth-child(even) .pill { transform: none; }
.branch[data-branch="1"] .pill { background: #e9e5f7; color: #60508f; }
.branch[data-branch="2"] .pill { background: #f3e8d6; color: #7a5a24; }
.branch[data-branch="3"] .pill { background: #efe6d0; color: #87652c; }

.card {
  --accent: #1554ff;
  --wash: #f0f4ff;
  border: 1px solid #d9e0ec;
  background: linear-gradient(180deg, var(--wash), #fff 115px);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.card[data-key="info"] { --accent: #1554ff; --wash: #ebf0ff; }
.card[data-key="plus"] { --accent: #f26a1b; --wash: #fff0e7; }
.card[data-key="art"] { --accent: #169bdb; --wash: #eaf6fd; }
.card[data-key="business"] { --accent: #e0262d; --wash: #fff0f0; }
.card[data-key="sport"] { --accent: #12924a; --wash: #eaf7ef; }
.card[data-key="lifestyle"] { --accent: #8a4fd3; --wash: #f3edfb; }
.card[data-key="network"] { --accent: #b98a2e; --wash: #f8f1e3; }
.card[data-key="thebest"] { --accent: #d6ae5e; }
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 8px 8px;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 35px #20375b17;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.card .logo { border-radius: 12px; }
.card .chip { width: 32px; height: 7px; border-radius: 99px; }
.card h3 { font-weight: 700; color: #263752; }
.card .tag { color: #70809a; font-weight: 600; }
.card.root-card {
  background: linear-gradient(180deg, #e9efff, #fff 68%);
  border-color: #bacbf3;
  box-shadow: 0 16px 40px #1554ff0e, 0 0 0 5px #ffffff80;
}
.card.root-card::before { inset-inline: 48px; height: 4px; }
.card.root-card .chip { width: 50px; }
.card.dark {
  background: #111821;
  border-color: #3e3b31;
  box-shadow: 0 12px 30px #11182116;
}
.card.dark h3 { color: #eee8dc; }
.card.dark .logo { background: #0a0a0b; }
.card.dark:hover { border-color: #d6ae5e; }

.socials a, .socials span {
  background: transparent;
  border: 0;
  color: #52647f;
  border-radius: 50%;
}
.socials a::before, .socials span::before {
  background: #edf1f7;
  border: 1px solid transparent;
  border-radius: 50%;
}
.socials a:hover, .socials a:focus-visible {
  color: white;
  transform: translateY(-2px);
}
.socials a:hover::before, .socials a:focus-visible::before {
  background: var(--hc, var(--accent));
  box-shadow: 0 4px 9px #20375b15;
}
.socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.socials span { opacity: .32; }
.card.dark .socials a, .card.dark .socials span {
  color: #d6c296;
}
.card.dark .socials a::before, .card.dark .socials span::before { background: #252b32; border-color: transparent; }
.card.dark .socials a:hover { color: #111821; }
.card.dark .socials a:hover::before { background: #d6ae5e; }

dialog#panel { max-width: min(680px, 94vw); }
dialog#panel::backdrop { background: #0c183bc9; backdrop-filter: blur(7px); }
.sheet {
  border: 1px solid #dbe2ee;
  border-radius: 22px;
  box-shadow: 0 25px 90px #08152950;
}
.sheet .cover { border-bottom: 1px solid #e0e6f0; }
.sheet .avatar { border: 4px solid white; box-shadow: 0 4px 18px #24365920; }
.sheet h2 { font-weight: 800; color: #162339; }
.sheet .tagline { font-weight: 700; }
.sheet .about { color: #647086; }
.links a, .links .off {
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f5f7fb;
  font-weight: 700;
}
.links a:hover, .links a:focus-visible {
  transform: translateY(-1px);
  border-color: #b8c9ec;
  box-shadow: 0 5px 15px #26375d0b;
  background: white;
}
.links a:focus-visible { outline: 2px solid #1554ff; outline-offset: 2px; }
.links .off { border-style: dashed; background: white; }
.links .ic { border-radius: 50%; }
.close {
  border: 1px solid #ffffff55;
  background: #111b2eeb;
  color: white;
  box-shadow: 0 4px 16px #0002;
  font-weight: 600;
}
footer { color: #8590a3; font-size: 12px; letter-spacing: .08em; }
/* all cards end on the same line: branches stretch, kids fill, icons sit at the bottom */
.branches { align-items: stretch; }
.branch .kids { flex: 1; }
.card .socials { margin-top: auto; }
/* 8 cards across: narrower cards and branch gaps so the tree fits without sideways scroll */
@media (min-width: 1024px) {
  :root { --card-w: clamp(128px, 10.4vw, 180px); }
  /* one shared row for the pills and one for the cards: a two-line pill keeps every card top and bottom aligned */
  .branches { display: grid; grid-auto-flow: column; grid-template-rows: auto 1fr; justify-content: center; gap: 0 clamp(18px, 2.2vw, 40px); }
  .branch { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; align-items: stretch; }
  .branch .pill { align-self: end; max-width: calc(var(--card-w) + 24px); white-space: normal; text-align: center; line-height: 1.25; }
  .branch[data-branch="2"] .pill { padding-inline: 16px; }
  html[lang="en"] .branch[data-branch="2"] .pill { font-size: clamp(15px, 1.15vw, 20px); }
}

@media (max-width: 520px) {
  .hint { font-size: 11px; }
  header.top p { font-size: 12px; }
  .card { border-radius: 16px; }
  .card::before { inset-inline: 22px; }
}

/* 25 Oct (owner): keep the tree, not the stacked list, on laptop widths too. Between 1024 and 1280px the 8 cards
   shrink to fit one row under EGY Group; below 1024px the branches stack as before. */
@media (min-width: 1024px) and (max-width: 1280px) {
  :root { --card-w: calc((100vw - 190px) / 8); }
  .branches { column-gap: 14px; }
  .kids { gap: 10px; }
  .card { padding: 12px 8px 10px; gap: 8px; }
  .card h3 { font-size: 13px; }
  .socials { gap: 4px; }
  .socials a, .socials span { width: 36px; height: 36px; }
  .socials a::before, .socials span::before { inset: 4px; }
  .socials svg { width: 16px; height: 16px; }
  .pill { font-size: 18px; padding: 5px 14px 7px; margin-bottom: 40px; }
  .level.root { margin-bottom: 48px; }
}
