/* Shared improvements, kept separate from the original theme. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 2147483100; padding: 12px 18px; border-radius: 10px; background: #39263f; color: #fff; transform: translateY(-150%); text-decoration: none; }
.skip-link:focus { transform: none; }
:where(a, button, input, textarea, select, [tabindex="0"]):focus-visible { outline: 2px solid #efbdff; outline-offset: 4px; }
.page-shell:focus, .container:focus { outline: none; }
.main-content .intro-card, .main-content .projects-card {
    padding: 24px;
    border: 1px solid rgba(168,85,247,.14);
    border-radius: 20px;
    background: rgba(35,20,43,.38);
    backdrop-filter: blur(10px) saturate(1.25);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 32px rgba(0,0,0,.14);
}
.main-content .intro-text { color: rgba(255,255,255,.86); }
.main-content .section-title { margin-bottom: 16px; }
.audio-visualizer-toggle { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 12px; cursor: pointer; }
.audio-visualizer-toggle::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.audio-visualizer-toggle[aria-pressed="true"] { border-color: rgba(239,189,255,.5); color: #efbdff; }
.audio-visualizer-toggle[aria-pressed="true"]::before { background: #efbdff; box-shadow: 0 0 7px rgba(239,189,255,.45); }
.xh-nav-links { flex: 0 1 auto; }
.back-to-top { position: fixed; right: 20px; bottom: 126px; z-index: 1001; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(44,28,52,.9); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.back-to-top[hidden], .archive-post-card[hidden], .search-empty[hidden] { display: none !important; }
.search-empty, .load-error { grid-column: 1 / -1; width: 100%; padding: 36px 20px; border: 1px dashed rgba(239,189,255,.22); border-radius: 18px; background: rgba(35,20,43,.3); color: rgba(255,255,255,.75); text-align: center; line-height: 1.8; }
.search-empty button, .load-error button, .draft-clear { min-height: 36px; margin-top: 12px; padding: 6px 16px; border: 1px solid rgba(239,189,255,.3); border-radius: 10px; background: rgba(239,189,255,.08); color: #efbdff; cursor: pointer; }
.album-results { margin: -16px 0 28px; color: rgba(255,255,255,.62); font-size: 12px; }
.album-photo-count { display: inline-block; margin-top: 10px; color: #efbdff; font-size: 12px; }
.album-meta { max-width: 420px; margin: 0 auto; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(29,20,36,.64); }
.page-title { text-shadow: 0 2px 18px rgba(20,10,28,.4); }
.album-date:empty { display: none; }
.timeline-photo-list { width: 100%; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; gap: 18px; }
.gallery-layout:has(.gallery-timeline-nav[hidden]) { grid-template-columns: 1fr; }
.gallery-timeline-node { scroll-margin-top: 100px; }
.gallery-count, .album-results, .gallery-timeline-description { color: rgba(255,255,255,.75); }
.photo-caption:empty { display: none; }
.posts-heading { margin-bottom: 28px; }
.page-post-lightbox, .lightbox { pointer-events: none; z-index: 2147483000; transition: opacity .2s ease; }
.page-post-lightbox.is-open, .lightbox.is-open { pointer-events: auto; }
.post-pinned { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: rgba(47,25,56,.88); color: #efbdff; font-size: 11px; }
.lightbox .lightbox-image { max-width: calc(100% - 110px); max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font: 30px/1 sans-serif; cursor: pointer; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav:disabled { opacity: .25; cursor: default; }
.lightbox-counter { position: absolute; top: 28px; left: 24px; color: rgba(255,255,255,.72); font-size: 13px; }
.lightbox-help { position: absolute; bottom: 20px; color: rgba(255,255,255,.48); font-size: 11px; }
.lightbox .lightbox-caption { bottom: 48px; overflow-wrap: anywhere; }
.copy-contact { display: flex; align-items: center; gap: 10px; }
.copy-contact span { min-width: 0; overflow-wrap: anywhere; }
.contact-copy { flex: 0 0 auto; margin-left: auto; min-width: 48px; min-height: 36px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.05); color: #efbdff; font-size: 11px; cursor: pointer; }
.contact-direct-link { color: inherit; text-decoration-color: rgba(239,189,255,.4); text-underline-offset: 4px; }
.draft-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.7; }
.draft-tools .draft-clear { margin: 0; padding: 4px 10px; min-height: 30px; font-size: 11px; }
.message-status { min-height: 24px; overflow-wrap: anywhere; }
.email-image-upload:focus-visible { outline: 2px solid #efbdff; outline-offset: 4px; }
.email-image-placeholder { width: 100%; border: 0; background: transparent; cursor: pointer; }
.page-post-body a { overflow-wrap: anywhere; }
.site-footer { margin-top: 48px; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); }
.site-footer a { color: inherit; text-decoration: none; }
@media (max-width: 720px) {
    .xh-top-nav-inner { gap: 10px; }
    .main-content .intro-card, .main-content .projects-card { padding: 20px 18px; border-radius: 16px; }
    .audio-visualizer-toggle { font-size: 11px; padding: 0 10px; }
    .lightbox { padding: 70px 12px 90px; }
    .lightbox .lightbox-image { max-width: 100%; max-height: calc(100dvh - 180px); }
    .lightbox-nav { top: auto; bottom: 18px; width: 40px; height: 40px; transform: none; }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
    .lightbox-help { bottom: 30px; }
    .lightbox .lightbox-caption { bottom: 70px; }
    .email-input, .email-textarea, .archive-search input, .page-search input, #favorabilityUsername { font-size: 16px; }
    .page-heading { gap: 20px; }
    .gallery-toolbar { flex-wrap: wrap; }
    .back-to-top { right: 15px; }
}
html.reduce-effects *, html.reduce-effects *::before, html.reduce-effects *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.reduce-effects .xh-top-nav { transform: none; }
html.reduce-effects #vrcStatus { transform: none !important; }
html.reduce-effects .intro-splash, html.reduce-effects .ambient-canvas, html.reduce-effects .global-click-canvas, html.reduce-effects .ambient-orb { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .xh-top-nav { transform: none; }
    .intro-splash, .ambient-canvas, .global-click-canvas, .ambient-orb { display: none !important; }
}
