/* 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 .work-out):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:start;
  gap:.8rem;
  padding:.85rem 1.05rem;
  display:grid;
}

:is(.hor .work-out+.work-out):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
  border-top:1px solid var(--hor-line-soft);
}

:is(.hor .work-out-idx):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
  color:var(--hor-ink-4);
  padding-top:3px;
}

:is(.hor .work-out-tick):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
  background:var(--hor-l4);
  width:6px;
  height:6px;
  box-shadow:var(--hor-glow-sun);
  border-radius:1.5px;
  margin-top:7px;
}

@media (max-width:520px) {
  :is(.hor .work-out):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
    padding-inline:.8rem;
  }
}

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

@media (width >= 64rem) {
  :is(.hor .cb-case-deck .cb-case-left-false):where([data-section="corey-baines:case-deck"], [data-section="corey-baines:case-deck"] *) {
    grid-column: span 12 / span 12;
  }
}
/* ── 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-mini):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
  aspect-ratio:16/9;
  border-radius:9px;
}

:is(.hor .work-art-mini .hor-art-glyph):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
  font-size:26cqw;
  right:6%;
}

:is(.hor .work-nav):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
  color:inherit;
  align-items:center;
  gap:.9rem;
  padding:10px;
  text-decoration:none;
  display:flex;
}

:is(.hor .work-nav-art):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
  flex:none;
  width:104px;
}

@media (max-width:400px) {
  :is(.hor .work-nav-art):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
    width:84px;
  }
}

/* ── 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-case-nav .work-nav.cb-nav-next-true):where([data-section="corey-baines:case-nav"], [data-section="corey-baines:case-nav"] *) {
  text-align: right;
  flex-direction: row-reverse;
}
/* ── from css/work.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .work-product-link):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-ink);
  border-bottom:1px solid var(--hor-accent);
  align-items:center;
  gap:.45rem;
  font-size:.75rem;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
}

:is(.hor .work-product-link:hover):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-accent);
}

:is(.hor .work-chapter):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  padding-left:1.15rem;
  position:relative;
}

:is(.hor .work-chapter):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *):before {
  content:"";
  background:linear-gradient(180deg, var(--hor-accent), var(--hor-line-soft));
  width:1px;
  position:absolute;
  top:.35rem;
  bottom:.35rem;
  left:0;
}

:is(.hor .work-prose):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  max-width:72ch;
  color:var(--hor-ink-2);
  letter-spacing:-.011em;
  overflow-wrap:break-word;
  font-size:1.0625rem;
  line-height:1.75;
}

:is(.hor .work-prose>*+*):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  margin-top:1.3em;
}

:is(.hor .work-prose h2):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-ink);
  letter-spacing:-.03em;
  text-wrap:balance;
  margin-top:2.5em;
  font-size:clamp(1.3rem,3vw,1.65rem);
  font-weight:500;
  line-height:1.15;
  position:relative;
}

:is(.hor .work-prose>h2:first-child):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  margin-top:0;
}

:is(.hor .work-prose h2):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *):before {
  content:"";
  background:var(--hor-line-soft);
  height:1px;
  position:absolute;
  top:-1.1em;
  left:0;
  right:0;
}

:is(.hor .work-prose>h2:first-child):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *):before {
  display:none;
}

:is(.hor .work-prose strong):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-ink);
  font-weight:600;
}

:is(.hor .work-prose a):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-ink);
  -webkit-text-decoration-color:var(--hor-accent);
  text-decoration-color:var(--hor-accent);
  text-underline-offset:.18em;
  text-decoration-thickness:1px;
}

:is(.hor .work-prose a:hover):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  color:var(--hor-accent);
}

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

:is(.hor .work-prose > .cb-case-part):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *),
:is(.hor .work-prose .cb-case-prose):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  display: contents;
}

:is(.hor .work-prose .cb-case-prose > *):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  margin-top: 1.3em;
}

:is(.hor .work-prose > .cb-case-part:first-child > h2):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *) {
  margin-top: 0;
}

:is(.hor .work-prose > .cb-case-part:first-child > h2):where([data-section="corey-baines:case-sky"], [data-section="corey-baines:case-sky"] *)::before {
  display: none;
}
