/* Remove Blocksy's bottom page padding when Newsletter Footer is last */
body:has(.newsletter-footer-pattern)
#main > .ct-container-full {
    padding-bottom: 0 !important;
}


/* ========================================
   Lanklu Designs Official Registry
   ======================================== */

.ldb-registry-header,
.ldb-registry-content,
.ldb-registry-footer {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ...rest of the Registry CSS... */tom: 0 !important;
}

/* ========================================
   Collector Access Paywall
   ======================================== */

/* Reduce excess spacing inside paywall */
.jetpack-subscribe-paywall > *:first-child {
    margin-top: 0 !important;
}

.jetpack-subscribe-paywall h2 {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.jetpack-subscribe-paywall h2 + p {
    max-width: 620px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6;
}

/* Collector Access form */
.jetpack-subscribe-paywall .wp-block-jetpack-subscriptions {
    margin-top: 18px !important;
}

/* Login link */
.jetpack-subscribe-paywall a {
    font-weight: 500;
}

/* Align Collector Access login link */
.wp-block-jetpack-subscriber-login {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
}

.wp-block-jetpack-subscriber-login p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Collector Access login row */
#gspb_col-id-gsbp-2f5f944 > p {
    margin: 0 !important;
}

#gspb_col-id-gsbp-2f5f944 .wp-block-jetpack-subscriber-login {
    margin: 0 !important;
}

/* ========================================
   Registry Information Table
   ======================================== */

.ldb-registry-data {
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    overflow: hidden;
}

.ldb-registry-data .ldb-data-row {
    display: grid !important;
    grid-template-columns: 42% 58%;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.ldb-registry-data .ldb-data-row:nth-child(odd) {
    background: #f3f3f3;
}

.ldb-registry-data .ldb-data-row:nth-child(even) {
    background: #ffffff;
}

.ldb-registry-data .ldb-data-row > * {
    margin: 0 !important;
    padding: 12px 14px !important;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

.ldb-registry-data .ldb-data-row > *:first-child {
    border-right: 1px solid #e1e1e1;
}

.ldb-registry-data .ldb-data-row + .ldb-data-row {
    border-top: 1px solid #e1e1e1;
}

/* Keep Pods-generated values vertically centered */
.ldb-registry-data .pods-block-field {
    display: flex;
    align-items: center;
}

/* Mobile */
@media (max-width: 600px) {
    .ldb-registry-data .ldb-data-row {
        grid-template-columns: 42% 58%;
    }

    .ldb-registry-data .ldb-data-row > * {
        padding: 10px !important;
    }
}
/* ========================================
   Collector Access Login / Logout
   ======================================== */

.collector-access-login a {
    display: inline-block;
    padding: 11px 20px;
    background: #0d4f8b;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.collector-access-login a:hover {
    color: #ffffff !important;
    opacity: 0.88;
}
/* Hide optional detail rows when they contain no Pods/value output */
.ldb-detail-row.ldb-optional-row:not(:has(> :nth-child(2))) {
    display: none;
}
/* Hide External Catalog heading when neither catalog row has a value */
#external-catalog-references:not(:has(~ .ldb-detail-row.ldb-optional-row > :nth-child(2))) {
    display: none;
}
/* Hide Related Registry Records heading when nothing exists
   between it and the Security section */
#related-registry-records:has(+ #security-authentication-details) {
    display: none;
}
/* Banknote Registry - View in Shop button */
.ldb-shop-button {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    padding: 10px 20px !important;
    background: #0b4d8c;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    line-height: 1.4;
    align-items: center;
    justify-content: center;
}

.ldb-shop-button:hover {
    color: #ffffff !important;
    opacity: 0.85;
}
/* Lanklu Designs Banknote Registry Browser */

.ldb-registry-year {
    margin-top: 38px;
}

.ldb-registry-year-title {
    margin-bottom: 20px;
}

.ldb-registry-family {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 28px 0;
    border-top: 1px solid #e2e5e8;
}

.ldb-registry-family:last-child {
    border-bottom: 1px solid #e2e5e8;
}

.ldb-registry-family-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ldb-registry-family-number {
    font-weight: 700;
    color: #0b4d8c;
    margin-bottom: 4px;
}

.ldb-registry-family-title {
    margin: 0 0 6px;
    font-size: 1.35em;
}

.ldb-registry-family-meta {
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ldb-registry-variants > strong {
    display: block;
    margin-bottom: 7px;
}

.ldb-registry-variants ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ldb-registry-variants li {
    margin: 5px 0;
}

.ldb-registry-variants a {
    text-decoration: none;
}

.ldb-registry-variants a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .ldb-registry-family {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ldb-registry-family-image {
        max-width: 320px;
    }
}
/* Lanklu Designs Registry Search */

.ldb-registry-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dfe3e7;
    border-radius: 40px;
    padding: 5px;
    background: #fff;
}

.ldb-registry-search-form input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px 18px;
    font-size: 16px;
}

.ldb-registry-search-form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 30px;
    padding: 12px 24px;
    background: #0b4d8c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.ldb-registry-search-form button:hover {
    opacity: 0.85;
}

.ldb-registry-search-results {
    margin-top: 24px;
}

.ldb-registry-search-results h3 {
    margin-bottom: 12px;
}

.ldb-registry-search-result {
    padding: 14px 0;
    border-top: 1px solid #e2e5e8;
}

.ldb-registry-search-result:last-child {
    border-bottom: 1px solid #e2e5e8;
}

.ldb-registry-search-result > a {
    display: flex;
    gap: 12px;
    align-items: baseline;
    text-decoration: none;
}

.ldb-registry-search-catalog {
    color: #0b4d8c;
    white-space: nowrap;
}

.ldb-registry-search-title {
    font-weight: 600;
}

.ldb-registry-search-result > a:hover .ldb-registry-search-title {
    text-decoration: underline;
}

.ldb-registry-search-meta {
    margin-top: 3px;
    font-size: 0.9em;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .ldb-registry-search-result > a {
        display: block;
    }

    .ldb-registry-search-catalog {
        display: block;
        margin-bottom: 3px;
    }
}
.ldb-issue-date-value {
    display: block;
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: inherit;
}
/* Hide Physical Specifications heading when all three following rows are empty/hidden */
.ldb-physical-specs-heading:not(:has(
    ~ .ldb-detail-row:not(:empty)
)) {
    display: none;
}
/* Hide Physical Specifications heading when none of its rows contain a value */
.ldb-physical-specs-heading:not(
    :has(+ .ldb-detail-row > :nth-child(2)),
    :has(+ .ldb-detail-row + .ldb-detail-row > :nth-child(2)),
    :has(+ .ldb-detail-row + .ldb-detail-row + .ldb-detail-row > :nth-child(2))
) {
    display: none;
}