/* Mega menu panels (ADR 0055): a glass card laid under the pill, opened by an item's chevron. Without JavaScript the
   icon links still go to their pages and the panel shows while the item has focus. */
.hor-navpill .hor-navitem { display: contents; }
.hor-navpill .hor-navitem:not(:first-child) > .hor-navbtn:not(.cb-last-true) { border-radius: var(--hor-nav-inner-radius); }
.hor-navpill .cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hor-navpill .hor-navmore { display: inline-grid; place-items: center; position: relative; width: 22px; height: 38px; margin-left: -2px; border-radius: 8px; color: var(--hor-ink-3); }
.hor-navpill .hor-navmore::after { content: ""; position: absolute; inset: -5px -3px; }
.hor-navpill .hor-navmore:hover, .hor-navpill .hor-navmore[aria-expanded="true"] { color: var(--hor-ink); background: var(--hor-chip); }
.hor-navpill svg[viewBox="0 0 20 20"] { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hor-navpill .hor-navmore svg { transition: transform .2s var(--hor-ease); }
.hor-navpill .hor-navmore[aria-expanded="true"] svg { transform: rotate(180deg); }
.hor-navpill .cb-mega { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 96px - env(safe-area-inset-top)); overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid var(--hor-line); border-radius: var(--hor-radius-deck); background: var(--hor-panel); box-shadow: var(--hor-shadow-panel); text-align: left; }
.hor-navpill .cb-mega[data-open], .hor-navpill:not([data-cb-mounted]) .hor-navitem:focus-within > .cb-mega { display: block; }
.hor-navpill .cb-mega__head { display: flex; align-items: center; gap: 12px; padding: 0 0 10px 6px; border-bottom: 1px solid var(--hor-line); }
.hor-navpill .cb-mega__title { margin: 0 auto 0 0; }
.hor-navpill .cb-mega__all, .hor-navpill .cb-mega__close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.hor-navpill .cb-mega__close { justify-content: center; min-width: 44px; border-radius: 12px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__close:hover { background: var(--hor-chip); color: var(--hor-ink); }
.hor-navpill .cb-mega__body { display: grid; gap: 14px; padding-top: 12px; }
.hor-navpill .cb-mega__cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hor-navpill .cb-mega__heading { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.hor-navpill .cb-mega__col[data-cols="2"] { grid-column: span 2; }
.hor-navpill .cb-mega__col[data-cols="2"] > .cb-mega__links { columns: 2; }
.hor-navpill .cb-mega__col[data-cols="3"] { grid-column: 1 / -1; }
.hor-navpill .cb-mega__col[data-cols="3"] > .cb-mega__links { columns: 3 150px; }
.hor-navpill .cb-mega__links li { break-inside: avoid; }
.hor-navpill .cb-mega__links--sub { padding-left: 14px; border-left: 1px solid var(--hor-line); margin-left: 16px; }
.hor-navpill .cb-mega__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 12px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__link:hover, .hor-navpill .cb-mega__link[aria-current="page"] { background: var(--hor-chip); color: var(--hor-ink); }
.hor-navpill .cb-mega__icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; }
.hor-navpill .cb-mega__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.hor-navpill .cb-mega__icon[data-icon-kind="mask"] { mask: var(--ve-nav-icon) center / contain no-repeat; background: currentColor; }
.hor-navpill .cb-mega__text, .hor-navpill .cb-mega__promo { display: grid; gap: 2px; }
.hor-navpill .cb-mega__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hor-navpill .cb-mega__note { font-size: 12px; color: var(--hor-ink-3); }
.hor-navpill .cb-mega__badge { padding: 1px 6px; border: 1px solid var(--hor-line); border-radius: 999px; font: 500 10px/1.5 var(--font-hor-mono), ui-monospace, monospace; text-transform: uppercase; color: var(--hor-accent); }
.hor-navpill .cb-mega__lock svg { width: 12px; height: 12px; }
.hor-navpill .cb-mega__aside { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hor-navpill .cb-mega__tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.hor-navpill .cb-mega__tile, .hor-navpill .cb-mega__promo { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--hor-line); border-radius: 14px; font-size: 13px; color: var(--hor-ink-2); }
.hor-navpill .cb-mega__tile:hover, .hor-navpill .cb-mega__promo:hover { border-color: var(--hor-line-strong); color: var(--hor-ink); }
.hor-navpill .cb-mega img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.hor-navpill .cb-mega__promo strong { font-weight: 500; color: var(--hor-ink); }
.hor-navpill .cb-mega[data-layout="drawer"] .cb-mega__cols { grid-template-columns: 1fr; }
@media (max-width: 639px) { .hor-navpill .cb-mega__col[data-cols] { grid-column: auto; } .hor-navpill .cb-mega__col[data-cols] > .cb-mega__links { columns: 1; } }
/* ── from css/horizon.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .hor-boundary):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *) {
  z-index:2;
  height:var(--hor-boundary-h);
  background:linear-gradient(180deg, var(--hor-sky-bottom), var(--hor-bg) 60%);
  position:relative;
}

:is(.hor .hor-boundary):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *):before {
  content:"";
  background:linear-gradient(90deg, transparent, var(--hor-line-strong) 14%, var(--hor-line-strong) 86%, transparent);
  height:1px;
  position:absolute;
  top:50%;
  left:0;
  right:0;
}

:is(.hor .hor-boundary-in):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *):before {
  box-shadow:var(--hor-rule-glow);
}

:is(.hor .hor-boundary):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *):after {
  content:"";
  background:linear-gradient(180deg, transparent, var(--hor-deck));
  pointer-events:none;
  position:absolute;
  inset:calc(50% + 1px) 0 0;
}

:is(.hor .hor-boundary-out):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *) {
  background:linear-gradient(180deg, var(--hor-sky-top), var(--hor-bg) 60%);
  transform:scaleY(-1);
}

/* ── from css/resume.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

@media print {
  :is(html .hor:has(.res-doc) .hor-boundary):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *) {
    display:none!important;
  }
}

/* ── from css/additions.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .hor-boundary-chip.cb-chip-rise):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *) {
  animation: cb-chip-in 0.85s var(--hor-ease) 120ms both;
}

:is(html[data-ve-mode="edit"] .hor .hor-boundary-chip.cb-chip-rise):where([data-section="corey-baines:boundary"], [data-section="corey-baines:boundary"] *) {
  animation: none !important;
  opacity: 1;
  transform: none;
}
/* ── from css/work.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .hor-art.work-art-tile):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  aspect-ratio:4/3;
}

:is(.hor .work-tile):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  color:inherit;
  text-decoration:none;
  display:block;
}

:is(.hor .work-clamp):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  display:-webkit-box;
  overflow:hidden;
}

:is(.hor .work-chips):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  flex-wrap:wrap;
  gap:.375rem;
  min-height:22px;
  display:flex;
}

:is(.hor .work-cta):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  letter-spacing:-.01em;
  color:var(--hor-accent);
  align-items:center;
  gap:.45rem;
  font-size:.75rem;
  font-weight:500;
  display:inline-flex;
}

:is(.hor .work-cta svg):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  transition:transform .4s var(--hor-ease);
}

:is(.hor .work-tile:hover .work-cta svg):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  transform:translate(3px);
}

@media (prefers-reduced-motion:reduce) {
  :is(.hor .work-cta svg):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
    transition:none!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  :is(.hor .work-tile:hover .work-cta svg):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
    transform:none;
  }
}

/* ── from css/x-work.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .cb-work-grid .work-tile.cb-lead-true):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  grid-column: 1 / -1;
}

:is(.hor .cb-work-grid .work-tile.cb-lead-false):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  display: flex;
  flex-direction: column;
}

:is(.hor .cb-work-grid .work-tile):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  --hor-delay: calc(120ms + var(--cb-i, 0) * 60ms);
}

:is(.hor .cb-work-grid .work-tile.cb-lead-true):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  --hor-delay: 60ms;
}

:is(.hor .work-chips.cb-chips-3):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  counter-reset: cb-more;
  position: relative;
}

:is(.hor .work-chips.cb-chips-3 > li:nth-child(n + 4):not(.cb-chips-more)):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  counter-increment: cb-more;
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

:is(.hor .work-chips.cb-chips-3 > .cb-chips-more):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  display: none;
}

:is(.hor .work-chips.cb-chips-3:has(> li:nth-child(5)) > .cb-chips-more):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *) {
  display: inline-flex;
}

:is(.hor .work-chips.cb-chips-3 > .cb-chips-more):where([data-section="corey-baines:work-grid"], [data-section="corey-baines:work-grid"] *)::before {
  content: "+" counter(cb-more);
}
