.harmony-library {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px 16px;
}

.harmony-library__header {
    align-items: end;
    border-bottom: 1px solid #d8dee8;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.harmony-library__eyebrow {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.harmony-library h2 {
    color: #1d2a36;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin: 0;
}

.harmony-library__filter {
    align-items: center;
    display: flex;
    gap: 8px;
}

.harmony-library__filter label {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
}

.harmony-library__filter select {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    min-height: 38px;
    padding: 6px 32px 6px 10px;
}

.harmony-library__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.harmony-issue {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(23, 36, 52, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
}

.harmony-issue--latest {
    background: #f6faf8;
    border-color: #8ab49a;
    grid-column: span 2;
}

.harmony-issue__badge {
    align-self: flex-start;
    background: #166534;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
    padding: 7px 10px;
}

.harmony-issue__date {
    color: #5e6b7a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.harmony-issue h3 {
    font-size: 22px;
    line-height: 1.22;
    margin: 0 0 20px;
}

.harmony-issue h3 a {
    color: #1d2a36;
    text-decoration: none;
}

.harmony-issue h3 a:hover,
.harmony-issue h3 a:focus {
    color: #005daa;
    text-decoration: underline;
}

.harmony-issue__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.harmony-button {
    align-items: center;
    border: 1px solid #9aa8b8;
    border-radius: 6px;
    color: #1f3448;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 9px 13px;
    text-decoration: none;
}

.harmony-button:hover,
.harmony-button:focus {
    background: #eef3f8;
    color: #102131;
    text-decoration: none;
}

.harmony-button--primary {
    background: #005daa;
    border-color: #005daa;
    color: #ffffff;
}

.harmony-button--primary:hover,
.harmony-button--primary:focus {
    background: #004c8c;
    color: #ffffff;
}

.harmony-frontend-form {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(23, 36, 52, 0.06);
    display: grid;
    gap: 16px;
    max-width: 720px;
    padding: 18px;
}

.harmony-frontend-form label {
    display: grid;
    gap: 6px;
}

.harmony-frontend-form span,
.harmony-frontend-form legend {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
}

.harmony-frontend-form input[type="date"],
.harmony-frontend-form input[type="file"] {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.harmony-frontend-form fieldset {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
}

.harmony-frontend-form fieldset label {
    align-items: center;
    display: flex;
    gap: 8px;
    line-height: 1.3;
}

.harmony-frontend-form input[type="radio"] {
    flex: 0 0 auto;
    margin: 0;
}

.harmony-button--busy,
.harmony-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.harmony-upload-progress {
    color: #5e6b7a;
    font-size: 14px;
    font-weight: 700;
}

.harmony-notice {
    border-left: 4px solid #005daa;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.harmony-notice--success {
    background: #f3faf5;
    border-color: #166534;
}

.harmony-notice--error {
    background: #fff5f5;
    border-color: #b91c1c;
}

.harmony-frontend-list {
    display: grid;
    gap: 14px;
}

.harmony-frontend-issue {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
}

.harmony-frontend-issue h3 {
    font-size: 20px;
    line-height: 1.22;
    margin: 4px 0;
}

.harmony-frontend-issue p,
.harmony-frontend-issue time {
    color: #5e6b7a;
    font-size: 14px;
    margin: 0;
}

.harmony-frontend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.harmony-frontend-actions form {
    margin: 0;
}

/* ==========================================================================
   Harmony library search / filter controls — v1.8+
   ========================================================================== */

.harmony-library__search {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px;
}

.harmony-library__search fieldset {
    align-items: end;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
}

.harmony-library__search legend {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    width: 100%;
}

.harmony-library__search label {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.harmony-library__search label span {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
}

.harmony-library__search input[type="date"],
.harmony-library__search select {
    background: #ffffff;
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 10px;
}

.harmony-library__search select {
    min-width: 180px;
    padding-right: 32px;
}

.harmony-library__search select:disabled {
    background: #f3f5f7;
    color: #7a8794;
}

.harmony-library__search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* URL source added to the upload form in v1.7+. */
.harmony-frontend-form input[type="url"] {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.harmony-frontend-form small {
    color: #5e6b7a;
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive single-issue PDF reader — v1.9+
   ========================================================================== */

/*
 * A PDF/document viewer benefits from substantially more horizontal space
 * than an ordinary article. These rules affect Harmony issue pages only.
 */
body.harmony-bulletin-single .site-content .ast-container,
body.harmony-bulletin-single .site-content > .ast-container {
    max-width: 1380px;
}

body.harmony-bulletin-single .site-main,
body.harmony-bulletin-single article.post,
body.harmony-bulletin-single .entry-content {
    width: 100%;
    max-width: none;
}

body.harmony-bulletin-single .entry-content {
    overflow: visible;
}

/*
 * New v1.9 readers and historical wp:file PDF blocks use the same generous
 * document width. The !important height overrides the 640px inline height
 * stored in older Harmony posts.
 */
body.harmony-bulletin-single .entry-content .wp-block-file,
body.harmony-bulletin-single .entry-content .harmony-reader {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

body.harmony-bulletin-single .entry-content .wp-block-file object,
body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
body.harmony-bulletin-single .harmony-reader__embed {
    background: #f3f4f6;
    border: 0;
    display: block;
    height: 82vh !important;
    min-height: 680px;
    max-width: none !important;
    width: 100% !important;
}

.harmony-reader__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin: 0 0 0.9rem;
}

/*
 * Historical posts contain a generated duplicate heading immediately before
 * the wp:file block. Modern browsers hide that duplicate while retaining the
 * real WordPress post title.
 */
body.harmony-bulletin-single .entry-content > p:has(+ .wp-block-file) {
    display: none;
}

@media (max-width: 1024px) {
    body.harmony-bulletin-single .site-content .ast-container,
    body.harmony-bulletin-single .site-content > .ast-container {
        max-width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file,
    body.harmony-bulletin-single .entry-content .harmony-reader {
        width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 76vh !important;
        min-height: 560px;
    }
}

@media (max-width: 820px) {
    .harmony-library__header {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-library__filter {
        justify-content: space-between;
    }

    .harmony-library__grid {
        grid-template-columns: 1fr;
    }

    .harmony-issue--latest {
        grid-column: auto;
    }

    .harmony-frontend-issue {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .harmony-frontend-actions {
        justify-content: flex-start;
    }

    .harmony-library__search fieldset {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-library__search label,
    .harmony-library__search select,
    .harmony-library__search input[type="date"] {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 68vh !important;
        min-height: 430px;
    }

    .harmony-reader__toolbar {
        justify-content: stretch;
    }

    .harmony-reader__toolbar .harmony-button {
        flex: 1 1 10rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .harmony-library {
        padding-left: 10px;
        padding-right: 10px;
    }

    .harmony-library__search {
        padding: 12px;
    }

    .harmony-library__search-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .harmony-library__search-actions .harmony-button {
        width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 62vh !important;
        min-height: 360px;
    }
}


/* ==========================================================================
   Native Harmony category archive integration — v2.0
   ========================================================================== */

.harmony-archive-tools {
    margin: 0 auto 24px;
    width: 100%;
}

/*
 * Harmony single issues need the stylesheet on the native single-post view.
 * These stronger selectors also override Astra's normal article-width rules.
 */
body.harmony-bulletin-single #primary,
body.harmony-bulletin-single .content-area,
body.harmony-bulletin-single .site-main,
body.harmony-bulletin-single .ast-article-single {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
}

body.harmony-bulletin-single .ast-container {
    max-width: 1440px !important;
    width: 100% !important;
}

body.harmony-bulletin-single .ast-article-single {
    padding-left: clamp(20px, 4vw, 64px);
    padding-right: clamp(20px, 4vw, 64px);
}

body.harmony-bulletin-single .entry-header,
body.harmony-bulletin-single .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px !important;
    width: 100% !important;
}

body.harmony-bulletin-single .entry-content .wp-block-file,
body.harmony-bulletin-single .entry-content .harmony-reader {
    max-width: 1240px !important;
    width: 100% !important;
}

/* The native category archive uses the theme's loop, so keep the filter
 * aligned with the same archive content width. */
body.category-harmony-bulletin .harmony-archive-tools {
    max-width: 1120px;
}

@media (max-width: 767px) {
    body.harmony-bulletin-single .ast-article-single {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* Compact PDF source selector — v2.1 */
.harmony-pdf-source-options,
.harmony-pdf-source-choice {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px 18px !important;
}

.harmony-pdf-source-options label,.harmony-library {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px 16px;
}

.harmony-library__header {
    align-items: end;
    border-bottom: 1px solid #d8dee8;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.harmony-library__eyebrow {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.harmony-library h2 {
    color: #1d2a36;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin: 0;
}

.harmony-library__filter {
    align-items: center;
    display: flex;
    gap: 8px;
}

.harmony-library__filter label {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
}

.harmony-library__filter select {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    min-height: 38px;
    padding: 6px 32px 6px 10px;
}

.harmony-library__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.harmony-issue {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(23, 36, 52, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
}

.harmony-issue--latest {
    background: #f6faf8;
    border-color: #8ab49a;
    grid-column: span 2;
}

.harmony-issue__badge {
    align-self: flex-start;
    background: #166534;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
    padding: 7px 10px;
}

.harmony-issue__date {
    color: #5e6b7a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.harmony-issue h3 {
    font-size: 22px;
    line-height: 1.22;
    margin: 0 0 20px;
}

.harmony-issue h3 a {
    color: #1d2a36;
    text-decoration: none;
}

.harmony-issue h3 a:hover,
.harmony-issue h3 a:focus {
    color: #005daa;
    text-decoration: underline;
}

.harmony-issue__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.harmony-button {
    align-items: center;
    border: 1px solid #9aa8b8;
    border-radius: 6px;
    color: #1f3448;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 9px 13px;
    text-decoration: none;
}

.harmony-button:hover,
.harmony-button:focus {
    background: #eef3f8;
    color: #102131;
    text-decoration: none;
}

.harmony-button--primary {
    background: #005daa;
    border-color: #005daa;
    color: #ffffff;
}

.harmony-button--primary:hover,
.harmony-button--primary:focus {
    background: #004c8c;
    color: #ffffff;
}

.harmony-frontend-form {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(23, 36, 52, 0.06);
    display: grid;
    gap: 16px;
    max-width: 720px;
    padding: 18px;
}

.harmony-frontend-form label {
    display: grid;
    gap: 6px;
}

.harmony-frontend-form span,
.harmony-frontend-form legend {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
}

.harmony-frontend-form input[type="date"],
.harmony-frontend-form input[type="file"] {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.harmony-frontend-form fieldset {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
}

.harmony-frontend-form fieldset label {
    align-items: center;
    display: flex;
    gap: 8px;
    line-height: 1.3;
}

.harmony-frontend-form input[type="radio"] {
    flex: 0 0 auto;
    margin: 0;
}

.harmony-button--busy,
.harmony-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.harmony-upload-progress {
    color: #5e6b7a;
    font-size: 14px;
    font-weight: 700;
}

.harmony-notice {
    border-left: 4px solid #005daa;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.harmony-notice--success {
    background: #f3faf5;
    border-color: #166534;
}

.harmony-notice--error {
    background: #fff5f5;
    border-color: #b91c1c;
}

.harmony-frontend-list {
    display: grid;
    gap: 14px;
}

.harmony-frontend-issue {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
}

.harmony-frontend-issue h3 {
    font-size: 20px;
    line-height: 1.22;
    margin: 4px 0;
}

.harmony-frontend-issue p,
.harmony-frontend-issue time {
    color: #5e6b7a;
    font-size: 14px;
    margin: 0;
}

.harmony-frontend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.harmony-frontend-actions form {
    margin: 0;
}

/* ==========================================================================
   Harmony library search / filter controls — v1.8+
   ========================================================================== */

.harmony-library__search {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    margin: 0 0 24px;
    padding: 16px;
}

.harmony-library__search fieldset {
    align-items: end;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
}

.harmony-library__search legend {
    color: #384657;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    width: 100%;
}

.harmony-library__search label {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.harmony-library__search label span {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
}

.harmony-library__search input[type="date"],
.harmony-library__search select {
    background: #ffffff;
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 10px;
}

.harmony-library__search select {
    min-width: 180px;
    padding-right: 32px;
}

.harmony-library__search select:disabled {
    background: #f3f5f7;
    color: #7a8794;
}

.harmony-library__search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* URL source added to the upload form in v1.7+. */
.harmony-frontend-form input[type="url"] {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.harmony-frontend-form small {
    color: #5e6b7a;
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive single-issue PDF reader — v1.9+
   ========================================================================== */

/*
 * A PDF/document viewer benefits from substantially more horizontal space
 * than an ordinary article. These rules affect Harmony issue pages only.
 */
body.harmony-bulletin-single .site-content .ast-container,
body.harmony-bulletin-single .site-content > .ast-container {
    max-width: 1380px;
}

body.harmony-bulletin-single .site-main,
body.harmony-bulletin-single article.post,
body.harmony-bulletin-single .entry-content {
    width: 100%;
    max-width: none;
}

body.harmony-bulletin-single .entry-content {
    overflow: visible;
}

/*
 * New v1.9 readers and historical wp:file PDF blocks use the same generous
 * document width. The !important height overrides the 640px inline height
 * stored in older Harmony posts.
 */
body.harmony-bulletin-single .entry-content .wp-block-file,
body.harmony-bulletin-single .entry-content .harmony-reader {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

body.harmony-bulletin-single .entry-content .wp-block-file object,
body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
body.harmony-bulletin-single .harmony-reader__embed {
    background: #f3f4f6;
    border: 0;
    display: block;
    height: 82vh !important;
    min-height: 680px;
    max-width: none !important;
    width: 100% !important;
}

.harmony-reader__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin: 0 0 0.9rem;
}

/*
 * Historical posts contain a generated duplicate heading immediately before
 * the wp:file block. Modern browsers hide that duplicate while retaining the
 * real WordPress post title.
 */
body.harmony-bulletin-single .entry-content > p:has(+ .wp-block-file) {
    display: none;
}

@media (max-width: 1024px) {
    body.harmony-bulletin-single .site-content .ast-container,
    body.harmony-bulletin-single .site-content > .ast-container {
        max-width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file,
    body.harmony-bulletin-single .entry-content .harmony-reader {
        width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 76vh !important;
        min-height: 560px;
    }
}

@media (max-width: 820px) {
    .harmony-library__header {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-library__filter {
        justify-content: space-between;
    }

    .harmony-library__grid {
        grid-template-columns: 1fr;
    }

    .harmony-issue--latest {
        grid-column: auto;
    }

    .harmony-frontend-issue {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .harmony-frontend-actions {
        justify-content: flex-start;
    }

    .harmony-library__search fieldset {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-library__search label,
    .harmony-library__search select,
    .harmony-library__search input[type="date"] {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 68vh !important;
        min-height: 430px;
    }

    .harmony-reader__toolbar {
        justify-content: stretch;
    }

    .harmony-reader__toolbar .harmony-button {
        flex: 1 1 10rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .harmony-library {
        padding-left: 10px;
        padding-right: 10px;
    }

    .harmony-library__search {
        padding: 12px;
    }

    .harmony-library__search-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .harmony-library__search-actions .harmony-button {
        width: 100%;
    }

    body.harmony-bulletin-single .entry-content .wp-block-file object,
    body.harmony-bulletin-single .entry-content object.wp-block-file__embed,
    body.harmony-bulletin-single .harmony-reader__embed {
        height: 62vh !important;
        min-height: 360px;
    }
}


/* ==========================================================================
   Native Harmony category archive integration — v2.0
   ========================================================================== */

.harmony-archive-tools {
    margin: 0 auto 24px;
    width: 100%;
}

/*
 * Harmony single issues need the stylesheet on the native single-post view.
 * These stronger selectors also override Astra's normal article-width rules.
 */
body.harmony-bulletin-single #primary,
body.harmony-bulletin-single .content-area,
body.harmony-bulletin-single .site-main,
body.harmony-bulletin-single .ast-article-single {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
}

body.harmony-bulletin-single .ast-container {
    max-width: 1440px !important;
    width: 100% !important;
}

body.harmony-bulletin-single .ast-article-single {
    padding-left: clamp(20px, 4vw, 64px);
    padding-right: clamp(20px, 4vw, 64px);
}

body.harmony-bulletin-single .entry-header,
body.harmony-bulletin-single .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px !important;
    width: 100% !important;
}

body.harmony-bulletin-single .entry-content .wp-block-file,
body.harmony-bulletin-single .entry-content .harmony-reader {
    max-width: 1240px !important;
    width: 100% !important;
}

/* The native category archive uses the theme's loop, so keep the filter
 * aligned with the same archive content width. */
body.category-harmony-bulletin .harmony-archive-tools {
    max-width: 1120px;
}

@media (max-width: 767px) {
    body.harmony-bulletin-single .ast-article-single {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* Compact PDF source selector — v2.1 */
.harmony-pdf-source-options,
.harmony-pdf-source-choice {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px 18px !important;
}

.harmony-pdf-source-options label,
.harmony-pdf-source-choice label {
    align-items: center;
    display: inline-flex !important;
    gap: 6px;
    margin: 0;
}

@media (max-width: 600px) {
    .harmony-pdf-source-options,
    .harmony-pdf-source-choice {
        align-items: flex-start;
        flex-direction: column !important;
    }
}


/* ==========================================================================
   Compact archive filters — v2.2
   ========================================================================== */

[hidden] {
    display: none !important;
}

.harmony-library__search--compact {
    align-items: end;
    display: grid;
    gap: 14px 22px;
    grid-template-columns: minmax(230px, auto) minmax(300px, 1fr) auto auto;
    padding: 16px 18px;
}

.harmony-filter-mode {
    align-self: stretch;
    border-right: 1px solid #d8dee8;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    padding-right: 20px;
}

.harmony-filter-mode__title,
.harmony-filter-sort > span {
    color: #384657;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.harmony-filter-mode label,
.harmony-filter-sort label {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 6px;
    white-space: nowrap;
}

.harmony-filter-mode input[type="radio"],
.harmony-filter-sort input[type="radio"] {
    margin: 0;
}

.harmony-filter-panel {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.harmony-filter-panel label {
    display: grid;
    gap: 5px;
    min-width: 165px;
}

.harmony-filter-panel label span {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
}

.harmony-filter-panel input[type="date"],
.harmony-filter-panel select {
    border: 1px solid #b8c2cf;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 7px 10px;
    width: 175px;
}

.harmony-filter-sort {
    align-self: stretch;
    border-left: 1px solid #d8dee8;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    padding-left: 20px;
}

.harmony-library__search--compact .harmony-library__search-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

@media (max-width: 1100px) {
    .harmony-library__search--compact {
        grid-template-columns: minmax(210px, auto) 1fr;
    }

    .harmony-filter-sort {
        border-left: 0;
        border-top: 1px solid #d8dee8;
        flex-direction: row;
        flex-wrap: wrap;
        grid-column: 1 / 2;
        justify-content: flex-start;
        padding-left: 0;
        padding-top: 12px;
    }

    .harmony-library__search--compact .harmony-library__search-actions {
        grid-column: 2 / 3;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .harmony-library__search--compact {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .harmony-filter-mode {
        border-bottom: 1px solid #d8dee8;
        border-right: 0;
        padding-bottom: 12px;
        padding-right: 0;
    }

    .harmony-filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-filter-panel label,
    .harmony-filter-panel input[type="date"],
    .harmony-filter-panel select {
        width: 100%;
    }

    .harmony-filter-sort,
    .harmony-library__search--compact .harmony-library__search-actions {
        grid-column: 1;
    }

    .harmony-library__search--compact .harmony-library__search-actions {
        justify-content: stretch;
    }

    .harmony-library__search--compact .harmony-library__search-actions .harmony-button {
        flex: 1 1 auto;
    }
}


/* ==========================================================================
   Refined Harmony filter/sort toolbar — v2.3
   ========================================================================== */

.harmony-library__search--toolbar {
    display: block;
    padding: 16px 18px;
}

.harmony-toolbar-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    justify-content: space-between;
}

.harmony-toolbar-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.harmony-toolbar-label {
    color: #384657;
    font-size: 13px;
    font-weight: 700;
    margin-right: 2px;
}

.harmony-chip {
    appearance: none;
    background: #ffffff;
    border: 1px solid #aeb9c6;
    border-radius: 999px;
    color: #26394c;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 36px;
    padding: 9px 14px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.harmony-chip:hover,
.harmony-chip:focus-visible {
    background: #eef5fb;
    border-color: #6f91ae;
    outline: none;
}

.harmony-chip.is-active {
    background: #005daa;
    border-color: #005daa;
    color: #ffffff;
}

.harmony-library__search--toolbar .harmony-filter-panel {
    align-items: end;
    border-top: 1px solid #e2e7ed;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
}

.harmony-library__search--toolbar .harmony-filter-panel label {
    display: grid;
    gap: 5px;
    min-width: 170px;
}

.harmony-library__search--toolbar .harmony-filter-panel input[type="date"],
.harmony-library__search--toolbar .harmony-filter-panel select {
    min-height: 40px;
    width: 190px;
}

.harmony-find-button {
    min-height: 40px;
}

.harmony-toolbar-clear {
    margin-top: 10px;
}

.harmony-button--quiet {
    background: transparent;
    border-color: transparent;
    color: #526070;
    min-height: 32px;
    padding: 5px 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.harmony-button--quiet:hover,
.harmony-button--quiet:focus {
    background: transparent;
    color: #005daa;
}

/* Neutralize obsolete v2.2 layout rules for the new toolbar. */
.harmony-library__search--toolbar .harmony-filter-panel--range,
.harmony-library__search--toolbar .harmony-filter-panel--period {
    grid-column: auto;
}

@media (max-width: 760px) {
    .harmony-toolbar-row {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .harmony-toolbar-group {
        align-items: flex-start;
    }

    .harmony-toolbar-group--sort {
        border-top: 1px solid #e2e7ed;
        padding-top: 12px;
    }

    .harmony-toolbar-label {
        flex: 0 0 100%;
    }

    .harmony-library__search--toolbar .harmony-filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .harmony-library__search--toolbar .harmony-filter-panel label,
    .harmony-library__search--toolbar .harmony-filter-panel input[type="date"],
    .harmony-library__search--toolbar .harmony-filter-panel select,
    .harmony-library__search--toolbar .harmony-find-button {
        width: 100%;
    }
}

.harmony-pdf-source-choice label {
    align-items: center;
    display: inline-flex !important;
    gap: 6px;
    margin: 0;
}

@media (max-width: 600px) {
    .harmony-pdf-source-options,
    .harmony-pdf-source-choice {
        align-items: flex-start;
        flex-direction: column !important;
    }
}
