/* Parker blog: the few things Elementor did with JavaScript, done with CSS here. */

/* Sticky header (Elementor "sticky: top") */
.elementor-location-header { position: relative; z-index: 99; }
/* Like Elementor: the bar is fixed to the top and its slot keeps the full height, so shrinking never moves the page */
.elementor-location-header > .elementor-top-section.pp-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 99; }

/* Desktop menu: show a submenu on hover or keyboard focus (Elementor used SmartMenus) */
.elementor-nav-menu--main .elementor-nav-menu li { position: relative; }
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul { display: block; left: 0; top: 100%; z-index: 100; }
.elementor-nav-menu--main .elementor-nav-menu ul ul { top: 0 !important; left: 100% !important; }
/* SmartMenus sized each dropdown to its longest item (min 10em) and flipped a submenu that would run off screen */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu { width: auto; min-width: 10em; max-width: 1000px; }
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu.pp-flip { left: auto !important; right: 100% !important; }
.elementor-nav-menu--main .elementor-nav-menu > li > ul.sub-menu.pp-flip { right: 0 !important; }
.elementor-nav-menu--dropdown .elementor-nav-menu ul { display: none; }
.elementor-nav-menu--dropdown .elementor-nav-menu li.pp-open > ul { display: block; }

/* YouTube: the thumbnail and play button; the player loads on click */
.pp-yt { position: absolute; inset: 0; background: #000; }
.pp-yt__btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.pp-yt__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-yt__btn::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 80px; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0)); }
.pp-yt__title { position: absolute; top: 12px; left: 18px; right: 18px; color: #fff; font: 500 18px/1.3 Roboto, Arial, sans-serif; text-shadow: 0 0 2px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); }
.pp-yt__btn:hover .pp-yt__play path:first-child, .pp-yt__btn:focus-visible .pp-yt__play path:first-child { fill: #c00; }
.pp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.elementor-widget-video .elementor-wrapper { position: relative; }

/* Before/after slider: dragging */
.jx-slider { touch-action: pan-y; cursor: ew-resize; user-select: none; }

/* Table of contents: sticks under the header on desktop, like the live post */
@media (min-width: 1025px) { .elementor-widget-table-of-contents { position: sticky; top: 110px; z-index: 5; } }

/* Old comments, read-only */
.pp-comments .comment-list, .pp-comments .children { list-style: none; margin: 0; padding: 0; }
.pp-comments .children { padding-left: 30px; }
.pp-comments .comment-body { padding: 16px 0; border-bottom: 1px solid #ddd; }
.pp-comments .comment-metadata { font-size: 13px; opacity: .7; margin-bottom: 8px; }

/* Table of contents collapsed (Elementor slid it shut with jQuery) */
.elementor-toc--collapsed .elementor-toc__body { display: none; }

/* Author box on phones: photo above the text, centred, inside the post box.
   (The WordPress template pushes it off the right edge of the screen; fixed here on purpose, Parker 2026-11-29.) */
@media (max-width: 767px) {
  .elementor-widget-author-box > .elementor-widget-container { padding-left: 20px !important; padding-right: 20px !important; margin-right: 0 !important; }
  .elementor-widget-author-box .elementor-author-box { flex-direction: column; align-items: center; text-align: center; margin: 0 !important; width: auto !important; max-width: 100%; }
  .elementor-widget-author-box .elementor-author-box__avatar { margin: 0 0 15px !important; width: 100%; display: flex; justify-content: center; }
  .elementor-widget-author-box .elementor-author-box__avatar img { max-width: 100%; height: auto; }
  .elementor-widget-author-box .elementor-author-box__text { width: 100%; }
}
/* YouTube Subscribe box (2026-11-30): a plain link styled like Google's button, without its 200 KB of scripts */
.pp-ytsub { display: inline-flex; align-items: center; gap: 8px; min-width: 173px; height: 48px; vertical-align: baseline; text-decoration: none; text-align: left; line-height: 1; }
.pp-ytsub img { width: 48px; height: 48px; border-radius: 0; flex: none; }
.pp-ytsub__txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pp-ytsub__name { font: 400 13px/16px Roboto, Arial, sans-serif; color: #030303; white-space: nowrap; }
.pp-ytsub__btn { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 24px; padding: 0 8px 0 6px; border-radius: 2px; background: #c00; color: #fff; font: 500 12px/24px Roboto, Arial, sans-serif; }
.pp-ytsub__btn svg { width: 16px; height: 12px; flex: none; }
.pp-ytsub:hover .pp-ytsub__btn { background: #e00; }
