.hdh-library {
    --library-bg: #101213;
    --library-panel: #191c1e;
    --library-border: #303437;
    --library-text: #f4eee0;
    --library-muted: #aaa6a0;
    --library-accent: #ff7054;
    background: var(--library-bg);
    color: var(--library-text);
    font: 15px/1.5 Georgia, "Times New Roman", serif;
    margin: 0;
    padding: 0;
}

.hdh-library *, .hdh-library *::before, .hdh-library *::after {
    box-sizing: border-box;
}

.hdh-library a {
    color: inherit;
    text-decoration: none;
}

.hdh-library a:hover {
    color: var(--library-accent);
}

.hdh-library a:focus:not(:focus-visible),
.hdh-library button:focus:not(:focus-visible),
.hdh-library summary:focus:not(:focus-visible) {
    outline: none;
}

.hdh-library a:focus-visible, .hdh-library button:focus-visible, .hdh-library input:focus-visible, .hdh-library summary:focus-visible {
    outline: 2px solid var(--library-accent);
    outline-offset: 5px;
}

.hdh-library .library-container {
    width: min(100% - 112px, 1440px);
    margin-inline: auto;
    padding: 0;
}

.hdh-library .library-sr-only, .hdh-library .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hdh-library .library-skip {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 50;
    padding: 12px 20px;
    color: #101213;
    background: var(--library-accent);
}

.hdh-library .library-skip:focus {
    top: 12px;
}

.hdh-library .library-header {
    border-bottom: 1px solid var(--library-border);
}

.hdh-library .library-masthead {
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 74px;
}

.hdh-library .library-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: 320px;
    color: var(--library-text);
}

.hdh-library .library-logo {
    display: block;
    width: 100%;
    height: auto;
}

.hdh-library .library-nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 30px;
    margin-left: 12px;
}

.hdh-library .library-nav a {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 15px;
}

.hdh-library .library-nav a[aria-current] {
    color: var(--library-accent);
}

.hdh-library .library-nav a[aria-current]::after {
    content: "";
    height: 2px;
    background: var(--library-accent);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.hdh-library .library-search-toggle {
    display: none;
}

.hdh-library .library-search-panel {
    display: contents;
}

.hdh-library .library-search {
    display: flex;
    align-items: center;
    width: min(390px, 31%);
    margin: 0 0 0 auto;
    min-width: 220px;
    height: 40px;
    background: #1b1e20;
    border: 1px solid #3b3f42;
    border-radius: 10px;
}

.hdh-library .library-search:focus-within {
    border-color: var(--library-accent);
}

.hdh-library .library-search button {
    background: none;
    border: 0;
    padding: 8px 12px 8px 15px;
    color: var(--library-text);
    cursor: pointer;
    line-height: 0;
}

.hdh-library .library-search svg {
    width: 21px;
    height: 21px;
}

.hdh-library .library-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    color: var(--library-text);
    font: inherit;
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    padding: 0 12px 0 0;
    margin: 0;
    outline: none;
}

.hdh-library .library-search input::placeholder {
    color: #bbb7b3;
    opacity: 1;
}

.hdh-library .library-categories {
    display: flex;
    gap: 10px;
    padding-block: 20px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #43474b transparent;
}

.hdh-library .library-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 17px;
    border: 1px solid var(--library-border);
    border-radius: 10px;
    background: #151819;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.hdh-library .library-chip:hover {
    border-color: #80746a;
    background: #1b1f21;
}

.hdh-library .library-chip-active, .hdh-library .library-chip-active:hover {
    color: #161514;
    background: var(--library-accent);
    border-color: var(--library-accent);
}

.hdh-library .library-main {
    padding-top: 26px;
    padding-bottom: 56px;
    min-height: 50vh;
}

.hdh-library .library-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hdh-library .library-heading h1 {
    font-family: inherit;
    color: var(--library-text);
    font-size: clamp(32px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.6px;
    margin: 0;
    padding: 0;
}

.hdh-library .library-sort {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c6c2bb;
    border: 1px solid var(--library-border);
    border-radius: 9px;
    padding: 7px 13px;
    font-size: 13px;
    white-space: nowrap;
}

.hdh-library .library-sort svg {
    width: 17px;
    height: 17px;
}

.hdh-library .library-breadcrumbs {
    color: var(--library-muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.hdh-library .library-breadcrumbs ol {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: max-content;
    grid-auto-columns: minmax(0, max-content);
    justify-content: start;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hdh-library .library-breadcrumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
    overflow-wrap: normal;
}

.hdh-library .library-breadcrumbs li > :is(a, span) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdh-library .library-breadcrumbs li + li::before {
    content: "/";
    flex: 0 0 auto;
    padding-right: 12px;
    color: #777976;
}

.hdh-library .library-archive .library-heading {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 22px;
}

.hdh-library .library-archive h1 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hdh-library .library-tag-icon {
    display: inline-block;
    width: .7em;
    height: .7em;
    color: var(--library-accent);
    vertical-align: .02em;
}

.hdh-library .library-archive .library-sort {
    margin-left: auto;
    border: 0;
    padding: 0 0 3px;
}

.hdh-library .library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 27px 24px;
    margin: 0;
    padding: 0;
}

.hdh-library .library-card {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--library-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #15191a, #101415);
    overflow: hidden;
    box-shadow: 0 6px 22px #00000014;
}

.hdh-library .library-grid-ad {
    grid-column: 1 / -1;
}

.hdh-library .library-cover {
    display: block;
    position: relative;
    aspect-ratio: 5 / 6;
    background: #20262a;
    border: 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.hdh-library .library-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    margin: 0;
    border: 0;
    transition: transform .2s ease;
}

.hdh-library .library-cover:hover img {
    transform: scale(1.025);
}

.hdh-library .library-format {
    position: absolute;
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 4px 9px;
    border: 1px solid #c3c9cdb3;
    border-radius: 20px;
    background: #101820cf;
    color: #fff;
    font: 11px/1.5 Arial, sans-serif;
}

.hdh-library .library-card-age {
    position: absolute;
    bottom: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 5px 9px;
    border: 1px solid #ffe14a33;
    border-radius: 7px;
    color: #ffe14a;
    background: #080909;
    font: 800 12px/1.4 Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdh-library .library-cover-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: #75828a;
    background: linear-gradient(145deg, #293039, #181d22);
}

.hdh-library .library-cover-empty svg {
    width: 54px;
    height: 54px;
}

.hdh-library .library-card-title {
    color: var(--library-text);
    font-family: inherit;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.15px;
    padding: 0;
    margin: 0 0 14px;
    min-height: 0;
}

.hdh-library .library-card-content {
    min-width: 0;
    padding: 16px 14px 12px;
}

.hdh-library .library-card-title:last-child {
    margin-bottom: 0;
}

.hdh-library .library-card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hdh-library .library-card-taxonomies {
    --library-pill-fade-start: 0px;
    --library-pill-fade-end: 0px;
    position: relative;
    min-width: 0;
}

.hdh-library .library-card-meta {
    display: flex;
    gap: 7px;
    min-width: 0;
    padding: 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 40px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hdh-library .library-card-meta::-webkit-scrollbar {
    display: none;
}

.hdh-library .library-card-taxonomies[data-can-scroll-previous] {
    --library-pill-fade-start: 40px;
}

.hdh-library .library-card-taxonomies[data-can-scroll-next] {
    --library-pill-fade-end: 40px;
}

.hdh-library .library-card-taxonomies[data-can-scroll-previous] .library-card-meta,
.hdh-library .library-card-taxonomies[data-can-scroll-next] .library-card-meta {
    mask-image: linear-gradient(to right, transparent, #000 var(--library-pill-fade-start), #000 calc(100% - var(--library-pill-fade-end)), transparent);
}

.hdh-library .library-card-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #383e40;
    border-radius: 24px;
    color: #edeae4;
    background: #171c1e;
    font: 13px/1.3 Arial, sans-serif;
    white-space: nowrap;
}

.hdh-library .library-card-meta a.library-card-category {
    color: var(--library-accent);
    border-color: var(--library-accent);
    background: #191a19;
}

.hdh-library .library-card-meta a:hover {
    color: #fff;
    background: #2a3032;
    text-decoration: none;
}

.hdh-library .library-card-meta a.library-card-category:hover {
    color: #ff9884;
    background: #30201d;
}

.hdh-library .library-card-meta:focus-visible {
    outline: 2px solid var(--library-accent);
    outline-offset: 2px;
}

.hdh-library .library-card-meta a:focus-visible {
    outline-offset: -3px;
}

.hdh-library .library-card-taxonomy-control {
    position: absolute;
    top: 4px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #e7e3db;
    background: transparent;
    cursor: pointer;
}

.hdh-library .library-card-taxonomy-previous { left: -8px; }
.hdh-library .library-card-taxonomy-next { right: -8px; }

.hdh-library .library-card-taxonomy-control::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid #3b4345;
    border-radius: 50%;
    background: #222a2b;
    box-shadow: 0 1px 6px #0005;
}

.hdh-library .library-card-taxonomy-control[hidden] {
    display: none;
}

.hdh-library .library-card-taxonomy-control:hover {
    color: var(--library-accent);
}

.hdh-library .library-card-taxonomy-control:hover::before {
    border-color: #6e625c;
    background: #303637;
}

.hdh-library .library-card-taxonomy-control svg {
    position: relative;
    width: 16px;
    height: 16px;
}

.hdh-library .library-card-title a:focus-visible {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.hdh-library .library-card-excerpt {
    color: var(--library-muted);
    font: 13px/1.5 Georgia, serif;
    margin: 8px 0;
}

.hdh-library #navigation {
    margin-top: 44px;
}

.hdh-library #navigation .pager {
    margin: 0;
    padding: 0;
}

.hdh-library #navigation .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hdh-library #navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 39px;
    border: 1px solid var(--library-border);
    border-radius: 8px;
    color: var(--library-text);
    background: #171a1c;
    font-size: 14px;
    font-weight: 400;
    padding: 8px;
    margin: 0;
}

.hdh-library #navigation .current, .hdh-library #navigation a.page-numbers:hover {
    color: #151313;
    background: var(--library-accent);
    border-color: var(--library-accent);
}

.hdh-library #navigation .dots {
    background: none;
    border-color: transparent;
    color: var(--library-muted);
}

.hdh-library .library-empty {
    grid-column: 1 / -1;
    padding: 70px 24px;
    text-align: center;
    background: #181c1e;
    border: 1px solid var(--library-border);
    border-radius: 10px;
}

.hdh-library .library-empty h2 {
    font: 24px/1.4 Georgia, serif;
    margin: 0 0 20px;
}

.hdh-library .library-empty a {
    color: var(--library-accent);
}

.hdh-library .library-footer {
    width: 100%;
    color: var(--library-muted);
    background: #0d0f10;
    border-top: 1px solid var(--library-border);
    padding: 43px 0 0;
    margin: 0;
}

.hdh-library .library-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr .8fr;
    gap: 64px;
}

.hdh-library .library-footer h2 {
    color: var(--library-text);
    font: 700 23px/1.3 Georgia, serif;
    letter-spacing: -.2px;
    margin: 0 0 19px;
}

.hdh-library .library-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hdh-library .library-tag-cloud a {
    display: inline-block;
    border: 1px solid #292e31;
    border-radius: 6px;
    background: #15191b;
    font-size: 12px;
    padding: 5px 9px;
}

.hdh-library .library-tag-cloud a:hover {
    border-color: var(--library-accent);
}

.hdh-library .library-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
}

.hdh-library .library-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hdh-library .library-footer li {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.hdh-library .library-other-sites li + li {
    margin-top: 11px;
}

.hdh-library .library-other-sites a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #292e31;
    border-radius: 7px;
    padding: 11px 13px;
    background: #15191b;
    color: #d7d1c7;
}

.hdh-library .library-other-sites a:hover {
    border-color: #7c5e50;
    color: var(--library-accent);
}

.hdh-library .library-footer-bottom {
    border-top: 1px solid #272b2e;
    margin-top: 36px;
    padding: 24px 64px;
    text-align: center;
    font-size: 13px;
}

.hdh-library .library-footer-bottom p {
    color: inherit;
    font: inherit;
    margin: 0;
}

.hdh-library .library-footer-bottom p a {
    color: #d5d0c6;
}

.hdh-library .library-back-to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #ff947f;
    border-radius: 50%;
    color: #101213;
    background: var(--library-accent);
    box-shadow: 0 6px 24px #0006;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.hdh-library .library-back-to-top[hidden] {
    display: none;
}

.hdh-library .library-back-to-top:is(:hover,:focus-visible) {
    color: #101213;
    background: #ff856d;
    transform: translateY(-2px);
}

.hdh-library .library-back-to-top svg {
    width: 24px;
    height: 24px;
}

.hdh-library .library-mobile-menu {
    display: none;
}

.hdh-library .library-mobile-menu[hidden] {
    display: none;
}

html.library-navigation-open,
html.library-navigation-open body.hdh-library {
    overflow: hidden;
}

.hdh-library .library-navigation-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 400px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-left: 1px solid #3b4246;
    border-radius: 18px 0 0 18px;
    background: #14191b;
    color: var(--library-text);
    box-shadow: -20px 0 70px #0005;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), display .28s allow-discrete, overlay .28s allow-discrete;
}

.hdh-library .library-navigation-drawer:not([open]) {
    display: none;
}

.hdh-library .library-navigation-drawer[open] {
    transform: translateX(0);
}

.hdh-library .library-navigation-drawer::backdrop {
    background: #05080b00;
    backdrop-filter: blur(3px);
    transition: background-color .28s, display .28s allow-discrete, overlay .28s allow-discrete;
}

.hdh-library .library-navigation-drawer[open]::backdrop {
    background: #05080bb8;
}

@starting-style {
    .hdh-library .library-navigation-drawer[open] { transform: translateX(100%); }
    .hdh-library .library-navigation-drawer[open]::backdrop { background: #05080b00; }
}

.hdh-library .library-drawer-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: max(25px, env(safe-area-inset-top)) 24px max(25px, env(safe-area-inset-bottom));
    background: radial-gradient(ellipse at 100% 0, #ff70540c, transparent 55%);
}

.hdh-library .library-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--library-border);
}

.hdh-library .library-drawer-brand {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 265px;
}

.hdh-library .library-drawer-brand img { display: block; width: 100%; height: auto; }
.hdh-library .library-drawer-close {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    border: 1px solid #42494d;
    border-radius: 50%;
    color: var(--library-text);
    background: #1c2225;
    cursor: pointer;
}

.hdh-library .library-drawer-close:hover { border-color: var(--library-accent); color: var(--library-accent); }
.hdh-library .library-drawer-close svg { width: 20px; height: 20px; }
.hdh-library .library-drawer-body { padding-top: 31px; }
.hdh-library .library-drawer-label { margin: 0 0 16px; color: var(--library-muted); font: 12px/1.5 Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.hdh-library .library-navigation-drawer nav { display: flex; flex-direction: column; gap: 11px; }
.hdh-library .library-navigation-drawer nav a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid #343d41; border-radius: 10px; background: #1c2225; font: 21px/1.5 Georgia, serif; }
.hdh-library .library-navigation-drawer nav a::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin-right: 3px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); color: #8d999f; }
.hdh-library .library-navigation-drawer nav a:hover { border-color: #8a5648; }
.hdh-library .library-navigation-drawer nav a[aria-current] { border-color: #885247; color: var(--library-accent); background: #ff70540b; }
.hdh-library .library-navigation-drawer nav a[aria-current]::after { color: var(--library-accent); }
.hdh-library .library-drawer-footer {
    padding-top: 24px;
    margin-top: auto;
}

.hdh-library .library-drawer-footer::before {
    content: '';
    display: block;
    margin-bottom: 20px;
    border-top: 1px solid var(--library-border);
}

.hdh-library .library-drawer-footer .library-drawer-label { margin-bottom: 12px; }
.hdh-library .library-theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid #3b4246;
    border-radius: 14px;
    background: #1c2225;
}

.hdh-library .library-theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 56px;
    padding: 9px 6px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--library-text);
    background: transparent;
    font: 600 16px/1.25 Arial, sans-serif;
    cursor: pointer;
}

.hdh-library .library-theme-option[aria-pressed="true"] {
    border-color: #985c4e;
    background: #ff705414;
}

.hdh-library .library-theme-option:disabled { color: #aaa6a0; cursor: not-allowed; }
.hdh-library .library-theme-option:focus-visible { outline-offset: -3px; }
.hdh-library .library-theme-option svg { flex: 0 0 auto; width: 19px; height: 19px; }
.hdh-library .library-theme-option .library-theme-check {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    color: #14191b;
    background: var(--library-accent);
}

.hdh-library .library-theme-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.hdh-library .library-theme-note { font-size: 11px; font-weight: 400; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .hdh-library .library-navigation-drawer,
    .hdh-library .library-navigation-drawer::backdrop { transition: none; }
}

.hdh-library #scroll-top {
    display: none !important;
}

@media (min-width: 1680px) {
    .hdh-library .library-card-title {
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .hdh-library .library-container {
        width: calc(100% - 64px);
    }
    .hdh-library .library-masthead {
        gap: 24px;
    }
    .hdh-library .library-brand {
        width: 280px;
    }
    .hdh-library .library-nav {
        gap: 20px;
        margin-left: 0;
    }
    .hdh-library .library-search {
        min-width: 200px;
    }
    .hdh-library .library-grid {
        gap: 25px 20px;
    }
    .hdh-library .library-card-title {
        font-size: 19px;
        min-height: 46px;
    }
    .hdh-library .library-footer-grid {
        gap: 32px;
    }
}

@media (max-width: 1000px) {
    .hdh-library .library-nav {
        display: none;
    }
    .hdh-library .library-search {
        width: min(390px, 45%);
        order: 2;
    }
    .hdh-library .library-masthead[data-search-ready] {
        flex-wrap: wrap;
        gap: 0 12px;
        padding-block: 12px;
        min-height: 68px;
    }
    .hdh-library .library-masthead[data-search-ready] .library-brand {
        width: min(280px, calc(100% - 104px));
    }
    .hdh-library .library-masthead[data-search-ready] .library-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        order: 2;
        margin-left: auto;
        padding: 8px;
        border: 1px solid var(--library-border);
        border-radius: 7px;
        color: var(--library-text);
        background: transparent;
        cursor: pointer;
    }
    .hdh-library .library-search-toggle svg {
        width: 21px;
        height: 21px;
    }
    .hdh-library .library-search-toggle .library-search-close-icon,
    .hdh-library .library-search-toggle[aria-expanded="true"] .library-search-icon {
        display: none;
    }
    .hdh-library .library-search-toggle[aria-expanded="true"] {
        color: var(--library-accent);
        border-color: var(--library-accent);
        background: #ff70540a;
    }
    .hdh-library .library-search-toggle[aria-expanded="true"] .library-search-close-icon {
        display: block;
    }
    .hdh-library .library-masthead[data-search-ready] .library-mobile-menu {
        flex: 0 0 40px;
        order: 3;
        margin-left: 0;
    }
    .hdh-library .library-masthead[data-search-ready] .library-search-panel {
        display: block;
        flex: 0 0 100%;
        min-width: 0;
        height: 0;
        order: 4;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: height .22s ease, opacity .16s ease, transform .22s ease, visibility 0s linear .22s;
    }
    .hdh-library .library-masthead[data-search-ready].library-search-open .library-search-panel {
        height: 56px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }
    .hdh-library .library-masthead[data-search-ready] .library-search {
        width: 100%;
        min-width: 0;
        margin: 12px 0 0;
    }
    .hdh-library .library-mobile-menu {
        display: block;
        order: 3;
        position: relative;
    }
    .hdh-library .library-mobile-menu summary {
        list-style: none;
        cursor: pointer;
        padding: 8px;
        color: var(--library-text);
        line-height: 0;
        border: 1px solid var(--library-border);
        border-radius: 7px;
    }
    .hdh-library .library-menu-toggle {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        border: 1px solid var(--library-border);
        border-radius: 7px;
        color: var(--library-text);
        background: transparent;
        cursor: pointer;
        line-height: 0;
    }
    .hdh-library .library-menu-toggle svg { width: 22px; height: 22px; }
    .hdh-library .library-mobile-menu summary::-webkit-details-marker {
        display: none;
    }
    .hdh-library .library-mobile-menu summary svg {
        width: 22px;
        height: 22px;
    }
    .hdh-library .library-mobile-menu nav {
        position: absolute;
        right: 0;
        top: 49px;
        display: flex;
        flex-direction: column;
        min-width: 190px;
        padding: 9px;
        border: 1px solid #43484b;
        border-radius: 10px;
        background: #1b1f21;
        z-index: 20;
        box-shadow: 0 14px 35px #0006;
    }
    .hdh-library .library-mobile-menu a {
        padding: 11px 14px;
        border-radius: 5px;
    }
    .hdh-library .library-mobile-menu a[aria-current] {
        color: var(--library-accent);
        background: #252b2e;
    }
    .hdh-library .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hdh-library .library-container {
        width: calc(100% - 36px);
    }
    .hdh-library .library-masthead {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 15px;
    }
    .hdh-library .library-brand {
        width: min(270px, calc(100% - 52px));
    }
    .hdh-library .library-masthead[data-search-ready] {
        column-gap: 8px;
    }
    .hdh-library .library-masthead[data-search-ready] .library-brand {
        width: min(250px, calc(100% - 96px));
    }
    .hdh-library .library-mobile-menu {
        order: 1;
        margin-left: auto;
    }
    .hdh-library .library-search {
        order: 2;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .hdh-library .library-categories {
        padding-top: 17px;
        gap: 8px;
    }
    .hdh-library .library-chip {
        font-size: 12px;
        padding-inline: 13px;
        border-radius: 8px;
    }
    .hdh-library .library-main {
        padding-top: 23px;
        padding-bottom: 38px;
    }
    .hdh-library .library-heading {
        margin-bottom: 18px;
    }
    .hdh-library .library-heading h1 {
        font-size: 31px;
    }
    .hdh-library .library-sort {
        font-size: 11px;
        padding: 6px 8px;
        gap: 5px;
    }
    .hdh-library .library-sort svg {
        display: none;
    }
    .hdh-library .library-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px 16px;
    }
    .hdh-library .library-card-title {
        font-size: 24px;
        min-height: 0;
    }
    .hdh-library .library-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 25px;
    }
    .hdh-library .library-footer-grid > :first-child {
        grid-column: 1 / -1;
    }
    .hdh-library .library-footer-bottom {
        padding-inline: 0;
    }
}

@media (max-width: 520px) {
    .hdh-library .library-grid {
        gap: 24px 14px;
    }
    .hdh-library .library-card-title {
        font-size: 24px;
    }
    .hdh-library .library-format {
        top: 7px;
        left: 7px;
        font-size: 10px;
        padding: 3px 7px;
    }
    .hdh-library .library-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hdh-library .library-footer h2 {
        font-size: 22px;
    }
    .hdh-library .library-footer-bottom {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdh-library .library-back-to-top {
        transition: none;
    }
    .hdh-library .library-masthead[data-search-ready] .library-search-panel {
        transition: none;
    }
    .hdh-library .library-cover img {
        transition: none;
    }
    .hdh-library .library-cover:hover img {
        transform: none;
    }
}

/* The remaining HDH screens share the approved library shell. */
.hdh-library .library-eyebrow {
    color: var(--library-muted);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 12px;
    margin: 0 0 8px;
}

.hdh-library .library-result-count {
    color: var(--library-muted);
    margin: 12px 0 0;
}

.hdh-library .library-heading h1 {
    overflow-wrap: anywhere;
}

.hdh-library .library-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid var(--library-accent);
    border-radius: 6px;
    color: #101213;
    background: var(--library-accent);
    font: 600 15px/1.4 Georgia, serif;
    text-decoration: none;
    cursor: pointer;
}

.hdh-library .library-button:hover {
    background: #ff876e;
    border-color: #ff876e;
    color: #101213;
}

.hdh-library .library-button-secondary {
    background: #171a1c;
    border-color: var(--library-border);
    color: var(--library-text);
}

.hdh-library .library-button-secondary:hover {
    background: #202427;
    border-color: var(--library-accent);
    color: var(--library-text);
}

.hdh-library .library-message {
    text-align: center;
    padding: 72px 20px 96px;
    max-width: 760px;
    margin: 0 auto;
}

.hdh-library .library-message h1, .hdh-library .library-message h2 {
    font: 700 clamp(30px, 4vw, 48px)/1.2 Georgia, serif;
    color: var(--library-text);
    margin: 24px 0 20px;
}

.hdh-library .library-message p {
    color: var(--library-muted);
    font-size: 17px;
    margin: 10px 0;
}

.hdh-library .library-message-icon {
    width: 64px;
    height: 64px;
    color: var(--library-accent);
}

.hdh-library .library-recovery-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.hdh-library .library-recovery-search {
    display: flex;
    gap: 10px;
    width: min(100%, 560px);
    margin: 30px auto 0;
}

.hdh-library .library-recovery-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--library-border);
    border-radius: 6px;
    background: #191d1f;
    color: var(--library-text);
    padding: 12px 16px;
    font: 16px/1.4 Georgia, serif;
}

.hdh-library .library-error-number {
    display: block;
    font: 700 clamp(96px, 13vw, 160px)/1 Georgia, serif;
    color: var(--library-accent);
    letter-spacing: -.04em;
}

.hdh-library .library-information .library-document {
    max-width: 860px;
    margin-inline: auto;
}

.hdh-library .library-information .library-heading {
    margin: 26px 0 30px;
}

.hdh-library .library-prose {
    color: #d5d0c8;
    font: 17px/1.85 Georgia, serif;
    overflow-wrap: anywhere;
}

.hdh-library .library-prose p {
    margin: 0 0 22px;
}

.hdh-library .library-prose h2, .hdh-library .library-prose h3, .hdh-library .library-prose h4 {
    color: var(--library-text);
    font-family: Georgia, serif;
    line-height: 1.3;
    margin: 32px 0 14px;
}

.hdh-library .library-prose h2 {
    font-size: 28px;
}

.hdh-library .library-prose h3 {
    font-size: 23px;
}

.hdh-library .library-prose a {
    color: var(--library-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hdh-library .library-prose li {
    margin: 8px 0;
}

.hdh-library .library-prose img {
    max-width: 100%;
    height: auto;
}

.hdh-library .library-prose blockquote {
    border-left: 2px solid var(--library-accent);
    background: #171b1d;
    padding: 20px 24px;
    margin: 28px 0;
}

.hdh-library .library-prose table {
    width: 100%;
}

.hdh-library .library-prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.hdh-library .library-contact {
    padding-bottom: 24px;
}

.hdh-library [data-test="contact-form"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.hdh-library [data-test="contact-form"] > .form-group {
    margin: 0;
}

.hdh-library [data-test="contact-form"] > .form-group:nth-of-type(n+3) {
    grid-column: 1 / -1;
}

.hdh-library [data-test="contact-form"] label {
    display: block;
    color: var(--library-text);
    font: 15px/1.5 Georgia, serif;
    margin-bottom: 9px;
}

.hdh-library [data-test="contact-form"] .form-control {
    display: block;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #3a4043;
    border-radius: 6px;
    color: var(--library-text);
    background: #1b1f21;
    box-shadow: none;
    font: 16px/1.6 Georgia, serif;
}

.hdh-library [data-test="contact-form"] textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.hdh-library textarea:focus-visible {
    outline: 2px solid var(--library-accent);
    outline-offset: 4px;
}

.hdh-library [data-test="contact-form"] button {
    justify-self: start;
    min-height: 46px;
    padding: 12px 25px;
    border: 1px solid var(--library-accent);
    border-radius: 6px;
    color: #101213;
    background: var(--library-accent);
    font: 600 16px/1.5 Georgia, serif;
}

.hdh-library [data-test="contact-form"] [hidden] {
    display: none;
}

.hdh-library [data-test="contact-form"] .text-danger {
    color: #ffab96;
    font-size: 14px;
    margin: 8px 0 0;
}

.hdh-library .library-contact .alert-success {
    border: 1px solid #527a64;
    border-radius: 6px;
    color: #c8e6d3;
    background: #192a20;
    padding: 16px 20px;
}

.hdh-library .library-directory .post-content #masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
}

.hdh-library .library-directory #masonry > .boxy {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hdh-library .library-directory .category-container {
    position: relative;
    border: 1px solid #3a4145;
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 1.16;
}

.hdh-library .library-directory .category-container > a {
    display: block;
    color: var(--library-text);
}

.hdh-library .library-directory .category-container img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    aspect-ratio: 1.16;
}

.hdh-library .library-directory .category-container .posttitle {
    position: absolute;
    inset: auto 0 0;
    margin: 0;
    padding: 45px 16px 15px;
    color: var(--library-text);
    font: 700 25px/1.2 Georgia, serif;
    background: linear-gradient(transparent, #06090de8);
    border: 0;
    text-align: left;
    transform: none;
}

.hdh-library .library-directory .category-container:has(:focus-visible) {
    outline: 2px solid var(--library-accent);
    outline-offset: 3px;
}

.hdh-library .library-directory .category-container a:hover .posttitle {
    color: var(--library-accent);
}

.hdh-library .library-comic-hero {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid var(--library-border);
    border-radius: 14px;
    background: linear-gradient(120deg, #1c2022, #141718 70%);
}

.hdh-library .library-comic-artwork,
.hdh-library .library-comic-summary {
    min-width: 0;
}

.hdh-library .library-comic-cover {
    display: block;
    width: 100%;
    border: 1px solid #45494b;
    border-radius: 9px;
    overflow: hidden;
    background: #20262a;
    box-shadow: 0 12px 28px #0003;
}

.hdh-library .library-comic-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 350 / 430;
    object-fit: cover;
}

.hdh-library .library-comic-cover-empty {
    display: grid;
    place-items: center;
    aspect-ratio: 350 / 430;
    color: var(--library-muted);
}

.hdh-library .library-comic-cover-empty svg {
    width: 64px;
    height: 64px;
}

.hdh-library .library-comic-summary h1 {
    color: var(--library-text);
    font: 700 clamp(30px, 3.4vw, 46px)/1.15 Georgia, serif;
    letter-spacing: -.5px;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

.hdh-library .library-comic-published {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--library-muted);
    font: 14px/1.5 Georgia, serif;
    margin: 0 0 28px;
}

.hdh-library .library-comic-published svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.hdh-library .library-comic-published time {
    color: #d3cdc2;
}

.hdh-library .library-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #c2bcb3;
    font-size: 15px;
    margin: 0 0 20px;
}

.hdh-library .library-byline > * + *::before {
    content: '·';
    margin-right: 20px;
    color: var(--library-muted);
}

.hdh-library .library-comic-taxonomies {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: transparent;
    font-size: 0;
}

.hdh-library .library-comic-taxonomies h2 {
    color: var(--library-muted);
    font: 600 11px/1.5 system-ui, sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.hdh-library .library-comic-taxonomies a {
    display: inline-block;
    color: #c8c3ba;
    border: 1px solid var(--library-border);
    border-radius: 20px;
    font-size: 13px;
    padding: 6px 12px;
    margin: 0 7px 7px 0;
}

.hdh-library .library-comic-taxonomies .library-category-links a {
    color: var(--library-accent);
    border-color: #85513e;
    border-radius: 6px;
    background: #ff70540a;
}

.hdh-library .library-start-reading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    min-height: 52px;
    margin-top: 16px;
    font-size: 17px;
    padding: 12px 14px;
    border-radius: 8px;
}

.hdh-library .library-comic-pages {
    border-top: 1px solid var(--library-border);
    padding-top: 20px;
}

.hdh-library .library-comic-pages > h2 {
    font: 700 30px/1.2 Georgia, serif;
    color: var(--library-text);
    margin: 0 0 18px;
}

.hdh-library .library-comic-pages .my-gallery, .hdh-library [data-test="native-gallery"] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.hdh-library .library-comic-pages .my-gallery figure, .hdh-library [data-test="native-gallery"] > a {
    position: relative;
    display: block;
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    border: 1px solid #3a4145;
    border-radius: 6px;
    overflow: hidden;
    background: #1b1e20;
}

.hdh-library .library-comic-pages .my-gallery figure a {
    display: block;
}

.hdh-library .library-comic-pages .my-gallery img, .hdh-library [data-test="native-gallery"] img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin: 0;
}

.hdh-library .library-comic-pages .my-gallery figcaption, .hdh-library .library-page-number {
    position: absolute;
    top: 7px;
    left: 7px;
    min-width: 27px;
    padding: 3px 7px;
    background: #101213e8;
    color: var(--library-text);
    border: 1px solid #586065;
    border-radius: 4px;
    text-align: center;
    font: 13px/1.4 Georgia, serif;
    pointer-events: none;
}

.hdh-library .library-comic-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid var(--library-border);
    margin-top: 28px;
    padding: 20px 0 0;
}

.hdh-library .library-comic-neighbors > div:last-child {
    text-align: right;
}

.hdh-library .library-comic-neighbors a {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
}

.hdh-library .library-comic-neighbors img {
    display: block;
    border: 1px solid #3a4145;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.hdh-library .library-comic-neighbors small {
    display: block;
    color: var(--library-muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.hdh-library .library-comic-neighbors > div:last-child a {
    flex-direction: row-reverse;
}

.hdh-library .library-neighbor-arrow {
    font-size: 28px;
}

.hdh-library .library-comic-neighbors a > span {
    overflow-wrap: anywhere;
}

.hdh-library .library-reader .library-breadcrumbs ol {
    grid-template-columns: max-content minmax(0, max-content) max-content;
    gap: 8px;
}

.hdh-library .library-reader .library-breadcrumbs li + li::before {
    padding-right: 8px;
}

.hdh-library .library-reader-toolbar {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
}

.hdh-library .reader-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    float: none;
    position: static;
    padding: 0;
    margin: 22px 0;
    border: 0;
    background: transparent;
}

.hdh-library .library-reader-toolbar .reader-pagination {
    justify-content: center;
    margin: 0;
}

.hdh-library .reader-pagination a, .hdh-library .reader-pagination button {
    float: none;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #3a4145;
    border-radius: 5px;
    color: var(--library-text);
    background: #191c1e;
    font: 18px/1.2 Georgia, serif;
    cursor: pointer;
}

.hdh-library .reader-pagination a:hover, .hdh-library .reader-pagination button:hover {
    border-color: var(--library-accent);
    color: var(--library-accent);
}

.hdh-library .reader-pagination .page-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
    color: #c5beb4;
}

.hdh-library .reader-pagination .invisible {
    visibility: hidden;
    pointer-events: none;
}

.hdh-library #image-container {
    display: block;
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #3a4145;
    border-radius: 6px;
    background: #0b0d0e;
    scroll-margin-top: 190px;
    text-align: center;
}

.hdh-library #image-container > a, .hdh-library #attachementim {
    display: block;
    width: 100%;
    height: auto;
}

.hdh-library #image-container img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hdh-library #image-container.fit-horizontal {
    width: min(900px, 100%);
}

.hdh-library #image-container.fit-horizontal img {
    width: 100%;
    max-height: none;
}

.hdh-library #image-container.fit-both img {
    width: auto;
    max-height: calc(100vh - 60px);
}

@media (max-width: 760px) {
    .hdh-library .library-reader {
        width: 100%;
        margin-inline: 0;
    }
    .hdh-library .library-reader > :is(.library-breadcrumbs,.library-reader-toolbar,.reader-pagination) {
        margin-inline: 18px;
    }
    .hdh-library .library-reader #image-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
    .hdh-library .library-reader #image-container:not(.fit-both) img {
        width: 100%;
    }
}

.hdh-library .library-attachment-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--library-muted);
    margin-bottom: 30px;
}

.hdh-library .library-attachment-image {
    text-align: center;
    padding: 28px;
    border: 1px solid var(--library-border);
    border-radius: 6px;
    background: #15191b;
}

.hdh-library .library-attachment-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.hdh-library .library-sitemap-table {
    border: 1px solid var(--library-border);
    border-radius: 6px;
    overflow: auto;
}

.hdh-library .library-sitemap table {
    border-collapse: collapse;
    width: 100%;
    color: #c2bdb5;
    font-size: 14px;
}

.hdh-library .library-sitemap th {
    color: var(--library-text);
    background: #1b1e20;
    font-weight: 400;
    text-align: left;
}

.hdh-library .library-sitemap td, .hdh-library .library-sitemap th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--library-border);
    overflow-wrap: anywhere;
}

.hdh-library .library-sitemap th:last-child, .hdh-library .library-sitemap td:last-child {
    width: 220px;
}

.hdh-library .library-sitemap tr:last-child td {
    border-bottom: 0;
}

.hdh-library .library-sitemap tbody tr:nth-child(even) {
    background: #141718;
}

.hdh-library .library-sitemap tbody a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .hdh-library .library-directory .post-content #masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .hdh-library .library-directory .post-content #masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hdh-library .library-directory .category-container .posttitle {
        font-size: 21px;
        padding: 35px 12px 12px;
    }

    .hdh-library .library-comic-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 22px;
    }

    .hdh-library .library-comic-artwork {
        width: min(100%, 300px);
        margin-inline: auto;
    }

    .hdh-library .library-comic-summary h1 {
        font-size: 30px;
    }

    .hdh-library .library-comic-pages .my-gallery, .hdh-library [data-test="native-gallery"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hdh-library .library-comic-neighbors {
        gap: 14px;
    }

    .hdh-library .library-comic-neighbors img {
        display: none;
    }

    .hdh-library .library-information .library-heading h1 {
        font-size: 36px;
    }

    .hdh-library .library-sitemap td, .hdh-library .library-sitemap th {
        padding: 12px;
    }

}

@media (max-width: 480px) {
    .hdh-library .library-message {
        padding: 42px 0 58px;
    }

    .hdh-library .library-recovery-search {
        flex-direction: column;
    }

    .hdh-library .library-recovery-links {
        flex-direction: column;
    }

    .hdh-library .library-directory .category-container .posttitle {
        font-size: 18px;
    }

    .hdh-library [data-test="contact-form"] {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hdh-library .library-comic-hero {
        gap: 24px;
        padding: 16px;
    }

    .hdh-library .library-comic-artwork {
        max-width: 280px;
    }

    .hdh-library .library-comic-summary h1 {
        font-size: 28px;
    }

    .hdh-library .reader-pagination {
        gap: 6px;
    }

    .hdh-library .reader-pagination a, .hdh-library .reader-pagination button {
        min-width: 36px;
        min-height: 40px;
        padding: 8px 10px;
    }

    .hdh-library .library-attachment-image {
        padding: 14px;
    }

}

.hdh-library .library-comic-pages .my-gallery {
    counter-reset: gallery-page;
}

.hdh-library .library-comic-pages .my-gallery figure {
    counter-increment: gallery-page;
}

.hdh-library .library-comic-pages .my-gallery figure a::before {
    content: none;
}

.hdh-library .library-comic-pages .my-gallery figure a::after {
    content: counter(gallery-page);
    position: absolute;
    top: 7px;
    left: 7px;
    min-width: 27px;
    padding: 3px 7px;
    background: #101213e8;
    color: var(--library-text);
    border: 1px solid #586065;
    border-radius: 4px;
    text-align: center;
    font: 13px/1.4 Georgia, serif;
    pointer-events: none;
}

.hdh-library .library-directory #masonry > p:empty,
.hdh-library .library-directory .category-container a:empty {
    display: none;
}

.hdh-library .library-directory .category-container .posttitle {
    text-transform: none;
}

.hdh-library .library-comic-taxonomies a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hdh-library .library-search-empty {
    padding-top: 100px;
    padding-bottom: 140px;
}

.hdh-library .library-search-empty h2 {
    margin-bottom: 36px;
}

.hdh-library .library-search-empty .library-message-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
}

.hdh-library .library-message .library-recovery-links .library-button {
    background: transparent;
    border-color: transparent;
    color: var(--library-accent);
    padding: 6px 12px;
}

.hdh-library .library-message .library-recovery-links .library-button:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.hdh-library .library-error {
    max-width: 100%;
    padding-top: 48px;
}

.hdh-library .library-error-banner {
    display: block;
    width: min(100%, 960px);
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    border: 1px solid #3a4145;
    border-radius: 9px;
    margin: 34px auto;
}

@media (max-width: 520px) {
    .hdh-library .library-search-empty {
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .hdh-library .library-error-banner {
        aspect-ratio: 2 / 1;
        margin-block: 26px;
    }
}

.hdh-library .library-comic-pages .my-gallery figure:has(:focus-visible) {
    outline: 2px solid var(--library-accent);
    outline-offset: 3px;
}

.hdh-library .library-directory .category-container:has(:focus-visible) {
    border-color: var(--library-accent);
}

.hdh-library .library-tag-section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 13px;
}

.hdh-library .library-tag-section-heading h2 {
    color: var(--library-text);
    font: 700 30px/1.2 Georgia, serif;
    padding: 0;
    margin: 0;
    border: 0;
}

.hdh-library .library-carousel-controls {
    display: flex;
    gap: 9px;
    margin-left: auto;
}

.hdh-library .library-carousel-controls[hidden] { display: none; }

.hdh-library .library-carousel-controls button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #444c50;
    border-radius: 50%;
    background: #181d20;
    color: var(--library-text);
    cursor: pointer;
}

.hdh-library .library-carousel-controls button:disabled { opacity: .35; cursor: default; }
.hdh-library .library-carousel-controls button:not(:disabled):hover { border-color: var(--library-accent); color: var(--library-accent); }
.hdh-library .library-carousel-controls svg { width: 20px; height: 20px; }

.hdh-library .library-popular-track {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 3px;
    scrollbar-width: thin;
    scrollbar-color: #3e4549 transparent;
    padding: 4px 3px 13px;
    margin-inline: -3px;
    -webkit-overflow-scrolling: touch;
}

.hdh-library .library-popular-track:focus-visible { outline: 2px solid var(--library-accent); outline-offset: 3px; }

.hdh-library .library-popular-card {
    flex: 0 0 clamp(210px, 20vw, 275px);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.08;
    scroll-snap-align: start;
    border: 1px solid #3a4145;
    border-radius: 8px;
    background: var(--library-panel);
}

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

.hdh-library .library-popular-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 42px 14px 14px;
    background: linear-gradient(transparent, #06090df2);
}

.hdh-library .library-popular-caption h3 {
    color: var(--library-text);
    font: 700 25px/1.2 Georgia, serif;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
}

.hdh-library .library-popular-caption span { font-size: 13px; color: #d1c7bd; }
.hdh-library .library-popular-card:hover h3 { color: var(--library-accent); }
.hdh-library .library-all-tags { margin-top: 31px; scroll-margin-top: 25px; }
.hdh-library .library-tag-total { color: var(--library-muted); font-size: 15px; }

.hdh-library .library-tag-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid var(--library-border);
    border-radius: 14px;
    background: #14191b;
}

.hdh-library .library-tag-search {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    height: 48px;
    border: 1px solid #3b4449;
    background: #191e21;
    border-radius: 10px;
}

.hdh-library .library-tag-search:focus-within { border-color: var(--library-accent); }
.hdh-library .library-tag-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--library-text);
    padding: 9px 12px 9px 0;
    font: 16px/1.4 Georgia, serif;
    box-shadow: none;
}
.hdh-library .library-tag-search input:focus { outline: none; }
.hdh-library .library-tag-search input::placeholder { color: #aaaeb1; opacity: 1; }
.hdh-library .library-tag-search button { order: -1; min-width: 44px; min-height: 44px; border: 0; color: #c2cbd1; background: transparent; padding: 10px 12px; cursor: pointer; line-height: 0; }
.hdh-library .library-tag-search svg { width: 21px; height: 21px; }
.hdh-library .library-tag-sort { position: relative; flex-shrink: 0; width: 204px; min-width: 0; max-width: 100%; }
.hdh-library .library-tag-sort [hidden] { display: none !important; }
.hdh-library .library-tag-filters select { color-scheme: dark; width: 100%; height: 48px; padding: 8px 12px; border: 1px solid #3b4449; border-radius: 10px; background: #191e21; color: var(--library-text); font: 16px Georgia, serif; }
.hdh-library .library-tag-sort-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #3b4449; border-radius: 10px; background: #191e21; color: var(--library-text); font: 15px/1.4 Georgia, serif; cursor: pointer; }
.hdh-library .library-tag-sort-toggle:hover, .hdh-library .library-tag-sort-toggle[aria-expanded="true"] { border-color: var(--library-accent); background: #202326; }
.hdh-library .library-tag-sort-toggle span { flex: 1; text-align: left; white-space: nowrap; }
.hdh-library .library-tag-sort-icon { flex-shrink: 0; width: 19px; height: 19px; color: var(--library-muted); }
.hdh-library .library-tag-sort-chevron { flex-shrink: 0; width: 16px; height: 16px; transition: transform .16s ease; }
.hdh-library .library-tag-sort-toggle[aria-expanded="true"] .library-tag-sort-chevron { transform: rotate(180deg); }
.hdh-library .library-tag-sort-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 244px; max-width: calc(100vw - 64px); padding: 6px; border: 1px solid #465055; border-radius: 12px; background: #1c2225; box-shadow: 0 14px 36px #0007; }
.hdh-library .library-tag-sort[data-placement="up"] .library-tag-sort-menu { top: auto; bottom: calc(100% + 8px); }
.hdh-library .library-tag-sort-menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--library-text); font: 15px/1.4 Georgia, serif; text-align: left; cursor: pointer; }
.hdh-library .library-tag-sort-menu button:hover { background: #2a3236; }
.hdh-library .library-tag-sort-menu button[aria-checked="true"] { color: var(--library-accent); background: #37251f; }
.hdh-library .library-tag-sort-menu button:focus-visible { outline: 2px solid var(--library-accent); outline-offset: -2px; }
.hdh-library .library-tag-sort-menu svg { flex-shrink: 0; width: 18px; height: 18px; opacity: 0; }
.hdh-library .library-tag-sort-menu button[aria-checked="true"] svg { opacity: 1; }
.hdh-library .library-tag-clear { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; color: var(--library-accent); font-size: 14px; }
.hdh-library .library-tag-pills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px 13px; }
.hdh-library .library-tag-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 41px; padding: 7px 10px 7px 16px; border: 1px solid #3d464a; border-radius: 999px; background: #191e21; color: var(--library-text); }
.hdh-library .library-tag-pill:hover { border-color: var(--library-accent); background: #242022; }
.hdh-library .library-tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdh-library .library-tag-count { flex-shrink: 0; min-width: 34px; padding: 2px 9px; border-radius: 999px; background: #30373b; color: #e0e2e3; font: 13px/1.4 Arial, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.hdh-library .library-tag-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 19px; margin-top: 25px; border-top: 1px solid var(--library-border); }
.hdh-library .library-tag-pagination p { margin: 0; color: var(--library-muted); font: 14px/1.5 Georgia, serif; }
.hdh-library .library-tag-pagination nav { display: flex; gap: 7px; align-items: center; }
.hdh-library .library-tag-page { display: grid; place-items: center; min-width: 34px; height: 34px; padding-inline: 6px; border: 1px solid #394247; border-radius: 6px; background: #171c1f; }
.hdh-library .library-tag-page.is-current { border-color: var(--library-accent); color: var(--library-accent); }
.hdh-library .library-tag-page.is-disabled { opacity: .35; }
.hdh-library .library-tag-ellipsis { padding: 0 3px; color: var(--library-muted); }
.hdh-library .library-tag-empty { padding: 32px 0; color: var(--library-muted); }
.hdh-library .library-tag-empty h3 { color: var(--library-text); font: 700 24px Georgia, serif; }

@media (max-width: 1100px) {
    .hdh-library .library-tag-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .hdh-library .library-tag-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .hdh-library .library-tag-section-heading h2 { font-size: 26px; }
    .hdh-library .library-popular-card { flex-basis: 74vw; max-width: 285px; }
    .hdh-library .library-tag-filters { flex-wrap: wrap; gap: 10px; padding: 10px; }
    .hdh-library .library-tag-search { flex-basis: 100%; }
    .hdh-library .library-tag-sort { flex: 1 1 160px; max-width: 204px; }
    .hdh-library .library-tag-sort-menu { right: auto; left: 0; }
    .hdh-library .library-tag-clear { margin-left: auto; }
    .hdh-library .library-tag-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
    .hdh-library .library-tag-pill { padding-left: 12px; font-size: 13px; }
    .hdh-library .library-tag-count { padding-inline: 6px; font-size: 12px; min-width: 29px; }
    .hdh-library .library-tag-pagination { flex-direction: column; align-items: flex-start; }
}
