.library-page .archive-tags-outer,
.library-page archive-tags,
.library-page .tags-gradient {
    display: none !important;
}

.library-page-group {
    position: relative;
}

.library-page-separator {
    position: relative;
    text-align: center;
    margin-bottom: clamp(28px, 3vw, 40px);
}

.library-page-separator::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
}

.library-page-separator span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 18px;
    background: var(--background-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.library-grid {
    row-gap: clamp(32px, 4vw, 52px);
}

.library-grid-five {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(20px, 2vw, 28px);
}

.library-book-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.library-book-card-image {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.04);
}

.library-book-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.library-book-card-title {
    text-decoration: none;
    color: currentColor;
    margin-bottom: 8px;
}

.library-book-card-excerpt {
    margin-bottom: 10px;
}

.library-book-card-author {
    display: flex !important;
    align-items: center;
    gap: 0;
}

.library-book-card-author a {
    color: currentColor;
    text-decoration: none;
}

.library-book-card-author span:last-child,
.library-book-card-author a:last-child {
    opacity: 1;
}

.library-page-empty {
    opacity: 0.65;
    margin-top: 8px;
}

@media screen and (max-width: 1280px) {
    .library-grid-five {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1080px) {
    .library-page-separator {
        margin-bottom: 28px;
    }

    .library-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media screen and (max-width: 767px) {
    .library-page-separator {
        margin-bottom: 22px;
    }

    .library-page-separator span {
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .library-grid-five {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}


/* Keely 1.23.1 targeted regression fixes */
html, body, .viewport, .site-content, .site-main {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body, .viewport, .site-content, .site-main { overflow-x: hidden; }
}
.library-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.library-page .wide-container,
.library-page .library-grid {
  max-width: 100%;
  box-sizing: border-box;
}
.library-page .library-grid {
  width: 100%;
  overflow: visible;
}
.library-page .library-book-card,
.library-page .library-book-card * {
  min-width: 0;
}
.post-card-author,
.post-card-author *,
.post-authors,
.post-authors *,
.library-home-author,
.library-home-author *,
.library-book-card-author,
.library-book-card-author *,
.essay-author-link,
.essay-meta-link,
.post-author-plain-link {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none;
  white-space: normal;
}
.post-card-author a,
.post-authors a,
.library-home-author a,
.library-book-card-author a,
.post-author-plain-link {
  display: inline !important;
}
.scramble-random.post-author-plain-link,
.post-author-plain-link .scramble-random,
.post-card-author .scramble-random,
.post-authors .scramble-random,
.library-home-author .scramble-random,
.library-book-card-author .scramble-random {
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
.footer-nav a.external-link,
.footer-nav-link.external-link,
.footer-normal-links a.external-link {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.35em;
  width: auto !important;
  max-width: max-content;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}
.footer-nav a.external-link .external-link-icon,
.footer-nav-link.external-link .external-link-icon,
.footer-normal-links a.external-link .external-link-icon {
  display: inline-flex !important;
  width: 0.58em;
  height: 0.58em;
  margin-left: 0.05em;
  flex: 0 0 auto;
  opacity: 0.76;
  vertical-align: 0.08em;
}
.footer-nav a.external-link .external-link-icon svg,
.footer-nav-link.external-link .external-link-icon svg,
.footer-normal-links a.external-link .external-link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.footer-nav a.external-link .external-link-icon path,
.footer-nav-link.external-link .external-link-icon path,
.footer-normal-links a.external-link .external-link-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-nav a.external-link::after,
.footer-nav-link.external-link::after,
.footer-normal-links a.external-link::after {
  content: none !important;
}
@media (max-width: 767px) {
  .library-page .library-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .library-page .library-book-card {
    width: 100%;
    max-width: 100%;
  }
  .post-card-author,
  .post-card-author *,
  .post-authors,
  .post-authors *,
  .library-home-author,
  .library-home-author *,
  .library-book-card-author,
  .library-book-card-author * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
  }
}


/* Keely 1.23.3: final scoped repair for author scramble text and footer external arrows */
.post-card-author,
.post-card-author *,
.library-home-author,
.library-home-author *,
.library-book-card-author,
.library-book-card-author *,
.all-posts-latest-author,
.all-posts-latest-author *,
.post-authors,
.post-authors *,
.post-author-name,
.post-author-name *,
.essay-author-link,
.essay-author-link *,
.essay-meta-link,
.essay-meta-link * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
}
.post-card-author .wrap-characters,
.library-home-author .wrap-characters,
.library-book-card-author .wrap-characters,
.all-posts-latest-author .wrap-characters,
.post-authors .wrap-characters,
.post-author-name .wrap-characters,
.post-author-plain-link.wrap-characters,
.essay-author-link.wrap-characters,
.essay-meta-link.wrap-characters {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: normal !important;
    gap: 0 !important;
}
.post-card-author .scramble-word,
.library-home-author .scramble-word,
.library-book-card-author .scramble-word,
.all-posts-latest-author .scramble-word,
.post-authors .scramble-word,
.post-author-name .scramble-word,
.essay-author-link .scramble-word,
.essay-meta-link .scramble-word {
    display: inline-flex !important;
    white-space: nowrap !important;
}
.post-card-author .scramble-char,
.library-home-author .scramble-char,
.library-book-card-author .scramble-char,
.all-posts-latest-author .scramble-char,
.post-authors .scramble-char,
.post-author-name .scramble-char,
.essay-author-link .scramble-char,
.essay-meta-link .scramble-char {
    display: inline-block !important;
    position: relative !important;
}
.post-card-author .scramble-random,
.library-home-author .scramble-random,
.library-book-card-author .scramble-random,
.all-posts-latest-author .scramble-random,
.post-authors .scramble-random,
.post-author-name .scramble-random,
.essay-author-link .scramble-random,
.essay-meta-link .scramble-random {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    pointer-events: none !important;
}
.post-card-author .scramble-main,
.library-home-author .scramble-main,
.library-book-card-author .scramble-main,
.all-posts-latest-author .scramble-main,
.post-authors .scramble-main,
.post-author-name .scramble-main,
.essay-author-link .scramble-main,
.essay-meta-link .scramble-main {
    position: relative !important;
    opacity: 1 !important;
}
html, body { overflow-x: hidden !important; }
.viewport, .site-content, .site-main, main { max-width: 100vw !important; }
footer .footer-nav a.external-link,
footer .footer-normal-links a.external-link,
footer .footer-nav-link.external-link {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.32em !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
}
footer .footer-nav a.external-link::after,
footer .footer-normal-links a.external-link::after,
footer .footer-nav-link.external-link::after { content: none !important; display: none !important; }
footer .footer-nav a.external-link .external-link-icon,
footer .footer-normal-links a.external-link .external-link-icon,
footer .footer-nav-link.external-link .external-link-icon {
    display: inline-flex !important;
    width: 0.62em !important;
    height: 0.62em !important;
    margin-left: 0.02em !important;
    opacity: 0.78 !important;
    flex: 0 0 auto !important;
    color: currentColor !important;
}
footer .footer-nav a.external-link .external-link-icon svg,
footer .footer-normal-links a.external-link .external-link-icon svg,
footer .footer-nav-link.external-link .external-link-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}
footer .footer-nav a.external-link .external-link-icon path,
footer .footer-normal-links a.external-link .external-link-icon path,
footer .footer-nav-link.external-link .external-link-icon path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
footer .social a.external-link .external-link-icon,
footer [class*="social"] a.external-link .external-link-icon,
footer .socials a.external-link .external-link-icon,
footer .social-buttons a.external-link .external-link-icon,
footer .socials-buttons a.external-link .external-link-icon,
footer [data-socials] a.external-link .external-link-icon { display: none !important; }
/* Keely consolidated maintenance layer, 1.23.4
   This file replaces the repeated patch-on-patch fixes for author text, footer external links,
   page overflow, mobile footer/header handling and the homepage library carousel. */

:root {
    --keely-external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M3 1.5h7.5V9H9.2V3.7L2.4 10.5l-.9-.9 6.8-6.8H3V1.5z'/%3E%3C/svg%3E");
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body,
.viewport,
.site-content,
.site-main,
main {
    max-width: 100%;
}

img,
video,
iframe,
figure,
picture {
    max-width: 100%;
}

/* Keep regular pages contained without disabling the intended homepage carousel rail. */
.library-page,
.commentary-page,
.all-posts-page,
.library-page .wide-container,
.commentary-page .wide-container,
.all-posts-page .wide-container,
.library-page .library-grid,
.commentary-page .grid,
.all-posts-page .grid,
.commentary-post-grid,
.normal-grid {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.library-page .library-grid-five {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.library-page .library-book-card,
.commentary-page .post-card,
.all-posts-page .post-card {
    min-width: 0;
}

/* Author and tag links: readable by default, animated only on hover. */
.post-card-author,
.post-card-author *,
.library-home-author,
.library-home-author *,
.library-book-card-author,
.library-book-card-author *,
.all-posts-latest-author,
.all-posts-latest-author *,
.commentary-latest-author,
.commentary-latest-author *,
.post-authors,
.post-authors *,
.post-author-plain-link,
.post-author-plain-link *,
.essay-author-link,
.essay-author-link *,
.essay-meta-link,
.essay-meta-link *,
.post-card-tags,
.post-card-tags * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    font-kerning: normal !important;
}

.post-card-author,
.library-home-author,
.library-book-card-author,
.all-posts-latest-author,
.commentary-latest-author {
    display: block;
    white-space: normal;
}

.post-card-author a,
.library-home-author a,
.library-book-card-author a,
.all-posts-latest-author a,
.commentary-latest-author a,
.post-author-plain-link,
.essay-author-link,
.essay-meta-link,
.post-card-tags a {
    display: inline !important;
    color: currentColor;
    text-decoration: none;
    white-space: normal !important;
}

.post-card-author .wrap-characters,
.library-home-author .wrap-characters,
.library-book-card-author .wrap-characters,
.all-posts-latest-author .wrap-characters,
.commentary-latest-author .wrap-characters,
.post-authors .wrap-characters,
.post-author-plain-link.wrap-characters,
.essay-author-link.wrap-characters,
.essay-meta-link.wrap-characters {
    display: inline !important;
    white-space: normal !important;
}

.post-card-author .scramble-word,
.library-home-author .scramble-word,
.library-book-card-author .scramble-word,
.all-posts-latest-author .scramble-word,
.commentary-latest-author .scramble-word,
.post-authors .scramble-word,
.essay-author-link .scramble-word,
.essay-meta-link .scramble-word,
.post-card-tags .scramble-word {
    display: inline !important;
    white-space: normal !important;
}

.post-card-author .scramble-char,
.library-home-author .scramble-char,
.library-book-card-author .scramble-char,
.all-posts-latest-author .scramble-char,
.commentary-latest-author .scramble-char,
.post-authors .scramble-char,
.essay-author-link .scramble-char,
.essay-meta-link .scramble-char,
.post-card-tags .scramble-char {
    display: inline !important;
    position: relative;
}

.post-card-author .scramble-random,
.library-home-author .scramble-random,
.library-book-card-author .scramble-random,
.all-posts-latest-author .scramble-random,
.commentary-latest-author .scramble-random,
.post-authors .scramble-random,
.essay-author-link .scramble-random,
.essay-meta-link .scramble-random,
.post-card-tags .scramble-random {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.keely-plain-scramble,
.keely-plain-scramble:hover {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
}

.keely-plain-scramble:hover,
.post-card-tags a:hover,
.post-author-plain-link:hover,
.essay-author-link:hover,
.essay-meta-link:hover,
.all-posts-latest-author a:hover,
.commentary-latest-author a:hover {
    background-color: var(--text-color);
    color: var(--background-color) !important;
}

/* Full-image article hero meta: never let the author split letter-by-letter. */
.post-header-full-image .bottom-item-links,
.post-header-moving-title .bottom-item-links,
.post-header-circle-bottom .bottom-item-links {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.post-header-full-image .bottom-item-links a,
.post-header-moving-title .bottom-item-links a,
.post-header-circle-bottom .bottom-item-links a,
.post-hero-author-link {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Footer backgrounds and visibility. */
.footer-wrapper,
.footer-normal-wrapper {
    display: block !important;
    visibility: visible !important;
    position: relative;
    overflow: hidden;
    background-image: var(--footer-bg-image);
    background-size: auto 100%;
    background-position: center right;
    background-repeat: no-repeat;
}

.footer-wrapper .creative-footer,
.footer-normal-wrapper .footer-normal {
    visibility: visible !important;
    background-color: transparent;
}

.footer-content-inner > p,
.footer-normal-content > p,
.footer-tagline,
.footer-description {
    display: none !important;
}

.footer-logo-image,
.footer-logo img {
    width: auto;
    max-width: none;
    height: max(calc(18px * var(--logo-scale)), calc(1.25vw * var(--scale) * var(--logo-scale)));
}

/* Footer external-link arrows, excluding social icons. */
footer .footer-nav a,
footer .footer-nav-link,
footer .footer-normal-links a {
    display: inline-flex !important;
    align-items: baseline;
    width: auto !important;
    max-width: max-content;
    gap: 0;
    white-space: nowrap !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

footer .footer-nav a.keely-external-link::after,
footer .footer-nav-link.keely-external-link::after,
footer .footer-normal-links a.keely-external-link::after {
    content: "";
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin-left: 0.3em;
    flex: 0 0 0.62em;
    opacity: 0.78;
    background-color: currentColor;
    -webkit-mask: var(--keely-external-icon) center / contain no-repeat;
    mask: var(--keely-external-icon) center / contain no-repeat;
    vertical-align: 0.08em;
}

footer .footer-nav a.keely-social-link::after,
footer .footer-nav-link.keely-social-link::after,
footer .footer-normal-links a.keely-social-link::after,
footer .external-link-icon {
    display: none !important;
    content: none !important;
}

/* Mobile layout. */
@media screen and (max-width: 767px) {
    html,
    body,
    .viewport,
    .site-content,
    .site-main,
    main {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .navbar,
    .navbar-inner {
        min-height: 58px !important;
        height: 58px !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .logo-outer {
        flex: 0 0 58vw !important;
        width: 58vw !important;
        max-width: 58vw !important;
        padding-left: 16px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .logo-wrapper,
    .logo-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .logo-image-wrapper img,
    .logo-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 36px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .menu-link-wrapper {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        padding-right: 16px !important;
    }

    .post-header-full-image .section-bottom,
    .post-header-moving-title .section-bottom,
    .post-header-circle-bottom .section-bottom {
        display: grid !important;
        grid-template-columns: 40% 60% !important;
        align-items: end !important;
        gap: 0 !important;
    }

    .post-header-full-image .bottom-item,
    .post-header-moving-title .bottom-item,
    .post-header-circle-bottom .bottom-item {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .post-header-full-image .bottom-item-links,
    .post-header-moving-title .bottom-item-links,
    .post-header-circle-bottom .bottom-item-links {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.15 !important;
        font-size: clamp(22px, 6.4vw, 32px) !important;
    }

    .post-header-full-image .bottom-item-links a,
    .post-header-moving-title .bottom-item-links a,
    .post-header-circle-bottom .bottom-item-links a,
    .post-hero-author-link {
        display: inline !important;
        white-space: normal !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .library-page .library-grid-five,
    .library-page .library-grid,
    .commentary-page .grid,
    .commentary-page .normal-grid,
    .all-posts-page .grid,
    .all-posts-page .normal-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-template .library-section .library-carousel[data-library-carousel],
    body:not(.library-template) .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory;
        touch-action: pan-x pan-y !important;
        scrollbar-width: none;
        max-width: 100vw !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .home-template .library-section .library-carousel[data-library-carousel]::-webkit-scrollbar,
    body:not(.library-template) .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel]::-webkit-scrollbar {
        display: none;
    }

    .home-template .library-section .library-carousel[data-library-carousel] .library-card,
    body:not(.library-template) .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel] .library-card {
        flex: 0 0 82vw !important;
        width: 82vw !important;
        max-width: 82vw !important;
        min-width: 82vw !important;
        margin-right: 16px !important;
        scroll-snap-align: start;
    }

    .footer-wrapper,
    .footer-normal-wrapper {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 0 !important;
        clear: both;
        background-image: var(--footer-bg-image-mobile);
        background-size: auto 100%;
        background-position: center right;
        background-repeat: no-repeat;
    }

    .creative-footer,
    .footer-normal {
        display: flex !important;
        visibility: visible !important;
        min-height: auto !important;
        height: auto !important;
    }

    .footer-logo-image,
    .footer-logo img {
        height: max(calc(9px * var(--logo-scale)), calc(1.15vw * var(--scale) * var(--logo-scale)));
        max-width: 62vw;
    }

    footer .footer-nav a,
    footer .footer-nav-link,
    footer .footer-normal-links a {
        white-space: nowrap !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
    }
}

/* Header/menu external links use the same indicator as footer links. */
custom-menu a.keely-external-link::after,
.nav a.keely-external-link::after,
.navbar a.keely-external-link::after {
    content: "";
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin-left: 0.3em;
    flex: 0 0 0.62em;
    opacity: 0.78;
    background-color: currentColor;
    -webkit-mask: var(--keely-external-icon) center / contain no-repeat;
    mask: var(--keely-external-icon) center / contain no-repeat;
    vertical-align: 0.08em;
}

custom-menu a.keely-social-link::after,
.nav a.keely-social-link::after,
.navbar a.keely-social-link::after {
    display: none !important;
    content: none !important;
}

.menu-email-link,
.menu-email-link * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
}

/* Keely 1.23.6 stability overrides. Keep these scoped and last. */
.post-card-tags,
.post-card-tags *,
.post-card-author,
.post-card-author *,
.library-home-author,
.library-home-author *,
.library-book-card-author,
.library-book-card-author *,
.all-posts-latest-author,
.all-posts-latest-author *,
.commentary-latest-author,
.commentary-latest-author *,
.post-author-plain-link,
.post-author-plain-link *,
.essay-author-link,
.essay-author-link *,
.essay-meta-link,
.essay-meta-link * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    font-kerning: normal !important;
}

.post-card-tags a,
.post-card-author a,
.library-home-author a,
.library-book-card-author a,
.all-posts-latest-author a,
.commentary-latest-author a,
.post-author-plain-link,
.essay-author-link,
.essay-meta-link {
    display: inline !important;
    white-space: normal !important;
    text-decoration: none;
}

.post-card-tags a:hover,
.post-card-author a:hover,
.library-home-author a:hover,
.library-book-card-author a:hover,
.all-posts-latest-author a:hover,
.commentary-latest-author a:hover,
.post-author-plain-link:hover,
.essay-author-link:hover,
.essay-meta-link:hover,
.keely-plain-scramble.keely-scrambling-now {
    background-color: var(--text-color);
    color: var(--background-color) !important;
}

footer .footer-nav a.keely-external-link::after,
footer .footer-nav-link.keely-external-link::after,
footer .footer-normal-links a.keely-external-link::after,
footer .footer-normal-links .keely-external-link::after {
    content: "" !important;
    display: inline-block !important;
    width: 0.62em !important;
    height: 0.62em !important;
    margin-left: 0.3em !important;
    flex: 0 0 0.62em !important;
    opacity: 0.78 !important;
    background-color: currentColor !important;
    -webkit-mask: var(--keely-external-icon) center / contain no-repeat !important;
    mask: var(--keely-external-icon) center / contain no-repeat !important;
    vertical-align: 0.08em !important;
}

footer .socials a::after,
footer .socials-buttons a::after,
footer .keely-social-link::after,
footer .footer-logo::after {
    display: none !important;
    content: none !important;
}

.library-page,
.commentary-page,
.all-posts-page,
.library-page .site-main,
.commentary-page .site-main,
.all-posts-page .site-main,
.library-page .wide-container,
.commentary-page .wide-container,
.all-posts-page .wide-container {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

@media screen and (max-width: 767px) {
    body.home-template .library-section:not(.tag-essays-section) .library-carousel.keely-mobile-swipe-ready,
    body.home-template .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        touch-action: pan-x pan-y !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }

    body.home-template .library-section:not(.tag-essays-section) .library-carousel.keely-mobile-swipe-ready::-webkit-scrollbar,
    body.home-template .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel]::-webkit-scrollbar {
        display: none !important;
    }

    body.home-template .library-section:not(.tag-essays-section) .library-carousel.keely-mobile-swipe-ready .library-card,
    body.home-template .library-section:not(.tag-essays-section) .library-carousel[data-library-carousel] .library-card {
        flex: 0 0 82vw !important;
        width: 82vw !important;
        min-width: 82vw !important;
        max-width: 82vw !important;
        margin-right: 16px !important;
        scroll-snap-align: start !important;
        transform: none !important;
    }

    .library-page .library-carousel,
    .library-page .library-grid,
    .library-page .library-grid-five,
    .commentary-page .grid,
    .commentary-page .normal-grid,
    .all-posts-page .grid,
    .all-posts-page .normal-grid {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}

/* Keely 1.23.7 focused repair: author/tag scramble and footer external arrows */
.keely-author-tag-scramble,
.keely-author-tag-scramble * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    font-kerning: normal !important;
}

.keely-author-tag-scramble {
    display: inline !important;
    white-space: normal !important;
    text-decoration: none;
}

.keely-author-tag-scramble .scramble-word {
    display: inline-block !important;
    white-space: nowrap !important;
}

.keely-author-tag-scramble .scramble-char {
    display: inline-block !important;
    position: relative !important;
    line-height: inherit !important;
}

.keely-author-tag-scramble .scramble-random {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    pointer-events: none !important;
}

.keely-author-tag-scramble .scramble-main {
    position: relative !important;
    opacity: 1;
}

.keely-author-tag-scramble:hover {
    background-color: var(--text-color) !important;
    color: var(--background-color) !important;
}

footer a.keely-external-link {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.28em !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
}

footer a.keely-external-link::after {
    content: none !important;
    display: none !important;
}

footer a.keely-external-link > .keely-external-icon {
    display: inline-flex !important;
    width: 0.62em !important;
    height: 0.62em !important;
    flex: 0 0 0.62em !important;
    margin: 0 0 0 0.08em !important;
    color: currentColor !important;
    opacity: 0.78 !important;
    line-height: 1 !important;
    vertical-align: 0.08em !important;
}

footer a.keely-external-link > .keely-external-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}

footer a.keely-social-link > .keely-external-icon,
footer .footer-socials a > .keely-external-icon,
footer .socials a > .keely-external-icon,
footer .socials-buttons a > .keely-external-icon {
    display: none !important;
}

/* Keely 1.23.8 focused final layer: use the original scramble engine for author/tag links and force footer external arrows. */
.post-card-tags a.keely-author-tag-scramble,
.post-card-author a.keely-author-tag-scramble,
.library-home-author a.keely-author-tag-scramble,
.library-book-card-author a.keely-author-tag-scramble,
.all-posts-latest-author a.keely-author-tag-scramble,
.commentary-latest-author a.keely-author-tag-scramble,
a.post-author-plain-link.keely-author-tag-scramble,
a.essay-author-link.keely-author-tag-scramble,
a.essay-meta-link.keely-author-tag-scramble {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    background: transparent !important;
}

.post-card-tags a.keely-author-tag-scramble:hover,
.post-card-author a.keely-author-tag-scramble:hover,
.library-home-author a.keely-author-tag-scramble:hover,
.library-book-card-author a.keely-author-tag-scramble:hover,
.all-posts-latest-author a.keely-author-tag-scramble:hover,
.commentary-latest-author a.keely-author-tag-scramble:hover,
a.post-author-plain-link.keely-author-tag-scramble:hover,
a.essay-author-link.keely-author-tag-scramble:hover,
a.essay-meta-link.keely-author-tag-scramble:hover {
    background: transparent !important;
    color: currentColor !important;
}

.post-card-tags a.keely-author-tag-scramble .scramble-word,
.post-card-author a.keely-author-tag-scramble .scramble-word,
.library-home-author a.keely-author-tag-scramble .scramble-word,
.library-book-card-author a.keely-author-tag-scramble .scramble-word,
.all-posts-latest-author a.keely-author-tag-scramble .scramble-word,
.commentary-latest-author a.keely-author-tag-scramble .scramble-word,
a.post-author-plain-link.keely-author-tag-scramble .scramble-word,
a.essay-author-link.keely-author-tag-scramble .scramble-word,
a.essay-meta-link.keely-author-tag-scramble .scramble-word {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.post-card-tags a.keely-author-tag-scramble .scramble-char,
.post-card-author a.keely-author-tag-scramble .scramble-char,
.library-home-author a.keely-author-tag-scramble .scramble-char,
.library-book-card-author a.keely-author-tag-scramble .scramble-char,
.all-posts-latest-author a.keely-author-tag-scramble .scramble-char,
.commentary-latest-author a.keely-author-tag-scramble .scramble-char,
a.post-author-plain-link.keely-author-tag-scramble .scramble-char,
a.essay-author-link.keely-author-tag-scramble .scramble-char,
a.essay-meta-link.keely-author-tag-scramble .scramble-char {
    display: inline-block !important;
    position: relative !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.post-card-tags a.keely-author-tag-scramble .scramble-random,
.post-card-author a.keely-author-tag-scramble .scramble-random,
.library-home-author a.keely-author-tag-scramble .scramble-random,
.library-book-card-author a.keely-author-tag-scramble .scramble-random,
.all-posts-latest-author a.keely-author-tag-scramble .scramble-random,
.commentary-latest-author a.keely-author-tag-scramble .scramble-random,
a.post-author-plain-link.keely-author-tag-scramble .scramble-random,
a.essay-author-link.keely-author-tag-scramble .scramble-random,
a.essay-meta-link.keely-author-tag-scramble .scramble-random {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    opacity: 0;
    color: var(--background-color) !important;
    background-color: var(--text-color) !important;
    pointer-events: none !important;
}

.post-card-tags a.keely-author-tag-scramble .scramble-main,
.post-card-author a.keely-author-tag-scramble .scramble-main,
.library-home-author a.keely-author-tag-scramble .scramble-main,
.library-book-card-author a.keely-author-tag-scramble .scramble-main,
.all-posts-latest-author a.keely-author-tag-scramble .scramble-main,
.commentary-latest-author a.keely-author-tag-scramble .scramble-main,
a.post-author-plain-link.keely-author-tag-scramble .scramble-main,
a.essay-author-link.keely-author-tag-scramble .scramble-main,
a.essay-meta-link.keely-author-tag-scramble .scramble-main {
    position: relative !important;
    z-index: 1 !important;
}

footer a.keely-external-link:not(.keely-social-link),
footer .nav a.keely-external-link:not(.keely-social-link),
footer .footer-nav-wrapper a.keely-external-link:not(.keely-social-link) {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.28em !important;
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

footer a.keely-external-link:not(.keely-social-link) .keely-external-icon,
footer .nav a.keely-external-link:not(.keely-social-link) .keely-external-icon,
footer .footer-nav-wrapper a.keely-external-link:not(.keely-social-link) .keely-external-icon {
    display: inline-flex !important;
    width: 0.66em !important;
    height: 0.66em !important;
    flex: 0 0 0.66em !important;
    margin-left: 0 !important;
    color: currentColor !important;
    opacity: 0.82 !important;
    vertical-align: 0.08em !important;
}

footer a.keely-external-link:not(.keely-social-link) .keely-external-icon svg,
footer .nav a.keely-external-link:not(.keely-social-link) .keely-external-icon svg,
footer .footer-nav-wrapper a.keely-external-link:not(.keely-social-link) .keely-external-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

footer a.keely-social-link .keely-external-icon,
footer [class*="social"] a .keely-external-icon,
footer a.keely-social-link::after,
footer [class*="social"] a::after {
    display: none !important;
    content: none !important;
}
