/* A company's group as a tree (app-paid-group.js), on its profile. Connector lines are borders on each branch's
   items: solid for a majority holding, dashed for a part-holding (the legend says so in words too). */
.gt-lede{font-size:1.02rem;margin:0 0 4px;max-width:80ch}
.gt-tree,.gt-children{list-style:none;margin:0;padding:0}
.gt-tree{margin-top:12px}
.gt-children{position:relative;margin-left:16px;padding-left:22px}
.gt-children > .gt-item{position:relative;padding-top:10px}
/* the line down the side of a branch, and the tick across to each card */
.gt-children > .gt-item::before{content:'';position:absolute;left:-22px;top:0;bottom:0;border-left:2px solid var(--line2)}
.gt-children > .gt-item:last-child::before{bottom:auto;height:34px}
.gt-children > .gt-item::after{content:'';position:absolute;left:-22px;top:34px;width:20px;border-top:2px solid var(--line2)}
.gt-children > .gt-item.is-minority::after{border-top-style:dashed}
.gt-card{display:inline-block;min-width:min(340px,100%);max-width:100%;padding:10px 14px;border:1px solid var(--line2);border-radius:12px;background:rgba(15,42,71,.72)}
.gt-card.is-top{border-color:rgba(155,192,232,.45)}
.gt-card.is-focus{border-color:var(--yellow);box-shadow:0 0 0 1px rgba(255,245,91,.3) inset}
.gt-card p{margin:0}
.gt-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-weight:600}
.gt-here{font-weight:700}
.gt-badge{padding:0 9px;border-radius:999px;background:var(--yellow);color:var(--bg);font-size:.76rem;font-weight:700}
.gt-badge.is-rival{background:transparent;color:var(--cyan);border:1px solid rgba(155,192,232,.6)}
.gt-owners{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:8px 0 0;padding:0}
.gt-owner{max-width:100%}
.gt-owner-btn{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-height:32px;padding:4px 10px;border:1px solid var(--line2);border-radius:10px;background:var(--bg2);color:var(--fg);font:inherit;font-size:.86rem;text-align:left;cursor:pointer}
.gt-owner-btn.is-static{cursor:default}
.gt-owner-btn[aria-expanded="true"]{border-color:var(--cyan)}
.gt-owner-btn:focus-visible,.gt-fold:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.gt-owner-kind{color:var(--dim);font-size:.76rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.gt-owner-more{color:var(--cyan);font-weight:600;font-size:.8rem}
.gt-owner-panel{margin:6px 0 4px;padding:10px 12px;border-left:3px solid var(--cyan);background:rgba(155,192,232,.06);border-radius:0 10px 10px 0;max-width:640px}
.gt-owner-panel p{margin:0 0 6px}
.gt-outside{list-style:none;margin:0 0 6px;padding:0;columns:2 220px;column-gap:18px}
.gt-outside li{break-inside:avoid;padding:3px 0}
.gt-outside .pd-co-meta{display:block}
.gt-match{font-size:.82rem}
.gt-fold-line{margin-top:6px!important}
.gt-more{margin:6px 0 0 38px}
.gt-legend{margin-top:14px}
.gt-key{display:inline-block;width:22px;vertical-align:middle;border-top:2px solid var(--line2)}
.gt-key.is-minority{border-top-style:dashed}
/* A big group, folded: its top company and the start of the next, fading out (a mask, so either theme), then the
   button that opens it all. --gt-peek is measured from the cards (app-paid-group.js foldedTree). */
.gt-clip.is-folded{max-height:var(--gt-peek,190px);overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 70px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 70px),transparent)}
/* Folded, the branches' own Show/Hide links can't be used (the preview is inert), so they don't show. */
.gt-clip.is-folded .gt-fold-line{display:none}
.gt-clip-go{margin:4px 0 0}
.gt-clip-btn{min-height:44px;font-weight:600;color:var(--cyan)}
.gt-clip-btn:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
html[data-pf-theme="light"] .gt-card{background:var(--card)}
html[data-pf-theme="light"] .gt-badge:not(.is-rival){color:#0B2039}
html[data-pf-theme="light"] .gt-owner-btn{background:#fff}
html[data-pf-theme="light"] .gt-badge.is-rival{color:#2F588C;border-color:rgba(47,88,140,.6)}
html[data-pf-theme="light"] .gt-owner-more{color:#2F588C}
@media (max-width:640px){
  .gt-children{margin-left:6px;padding-left:16px}
  .gt-children > .gt-item::before,.gt-children > .gt-item::after{left:-16px}
  .gt-children > .gt-item::after{width:14px}
  .gt-card{min-width:0}
}
@media print{.gt-fold,.gt-clip-go{display:none}.gt-clip.is-folded{max-height:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}
