/* 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/x-blog.css: only this section uses these rules, so 1.1.1 moved them out of the theme bundle ── */

:is(.hor .cb-blog-lede strong):where([data-section="corey-baines:blog-intro"], [data-section="corey-baines:blog-intro"] *) {
  color: var(--hor-ink);
  font-weight: inherit;
}
/* ── shared with the blog frontends (the section.css of each plugins/blog frontend): this section draws the same parts on sites whose blog doesn't use the add-on ── */

/* blog:prose */

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

/* ── end of the rules shared with the blog frontends ── */
/* ── shared with the blog frontends (the section.css of each plugins/blog frontend): this section draws the same parts on sites whose blog doesn't use the add-on ── */

/* blog:post-hero */

:is(.hor .blog-cover-hero):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  aspect-ratio:21/9;
}

@media (max-width:640px) {
  :is(.hor .blog-cover-hero):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
    aspect-ratio:16/10;
  }
}

/* blog:prose */

:is(.hor .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  color:inherit;
  flex-direction:column;
  text-decoration:none;
  display:flex;
}

:is(.hor .blog-cover):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  background:var(--hor-art-base);
  border:1px solid var(--hor-line-soft);
  border-radius:15px;
  position:relative;
  overflow:hidden;
}

:is(.hor .blog-cover-tile):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  aspect-ratio:16/10;
}

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

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

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

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

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

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

:is(.hor .cb-post:nth-child(2) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 180ms; }

:is(.hor .cb-post:nth-child(3) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 240ms; }

:is(.hor .cb-post:nth-child(4) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 300ms; }

:is(.hor .cb-post:nth-child(5) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 360ms; }

:is(.hor .cb-post:nth-child(6) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 420ms; }

:is(.hor .cb-post:nth-child(7) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 480ms; }

:is(.hor .cb-post:nth-child(8) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 540ms; }

:is(.hor .cb-post:nth-child(9) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 600ms; }

:is(.hor .cb-post:nth-child(n + 10) > .blog-card):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) { --hor-delay: 660ms; }

/* ── end of the rules shared with the blog frontends ── */

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

:is(.hor .blog-row):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  color:inherit;
  transition:background-color .2s var(--hor-ease), color .2s var(--hor-ease);
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:baseline;
  gap:.5rem 1rem;
  padding:.9rem 1.05rem;
  text-decoration:none;
  display:grid;
}

:is(.hor .blog-row+.blog-row):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  border-top:1px solid var(--hor-line-soft);
}

:is(.hor .blog-row:hover):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  background:var(--hor-chip);
}

:is(.hor .blog-row-title):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  min-width:0;
  color:var(--hor-ink);
  transition:color .2s var(--hor-ease);
}

:is(.hor .blog-row:hover .blog-row-title):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  color:var(--hor-accent);
}

@media (max-width:560px) {
  :is(.hor .blog-row):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
    grid-template-columns:auto minmax(0,1fr);
  }
}

@media (max-width:560px) {
  :is(.hor .blog-row-meta):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
    grid-column:2;
  }
}

:is(.hor .blog-view-toggle):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  border:1px solid var(--hor-line);
  background:var(--hor-sky-card);
  box-shadow:var(--hor-inset-top), var(--hor-shadow-sky);
  -webkit-backdrop-filter:blur(14px)saturate(150%);
  border-radius:999px;
  grid-template-columns:1fr 1fr;
  padding:3px;
  display:inline-grid;
  position:relative;
}

:is(.hor .blog-view-thumb):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  background:var(--hor-chip);
  border:1px solid var(--hor-line-strong);
  width:calc(50% - 3px);
  transition:transform .42s var(--hor-spring);
  border-radius:999px;
  position:absolute;
  top:3px;
  bottom:3px;
  left:3px;
}

:is(.hor .blog-view-toggle[data-view=index] .blog-view-thumb):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  transform:translate(100%);
}

:is(.hor .blog-view-option):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  min-width:5.75rem;
  height:29px;
  color:var(--hor-ink-3);
  cursor:pointer;
  transition:color .2s var(--hor-ease);
  border-radius:999px;
  justify-content:center;
  align-items:center;
  gap:.45rem;
  padding-inline:.85rem;
  font-size:.75rem;
  font-weight:500;
  display:inline-flex;
  position:relative;
}

:is(.hor .blog-view-option:hover):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *),:is(.hor .blog-view-option[aria-pressed=true]):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  color:var(--hor-ink);
}

:is(.hor .blog-view-option[aria-pressed=true] svg):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  color:var(--hor-accent);
}

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

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

:is(.hor .cb-post):where([data-section="corey-baines:post-grid"], [data-section="corey-baines:post-grid"] *) {
  display: contents;
}

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