@media (max-width: 767px) {
    body.zgds-home-pro,
    body.zgds-read-page {
        --mobile-pad-x: max(0.85rem, env(safe-area-inset-left, 0));
        --mobile-pad-y: 0.75rem;
        --mobile-gap: 0.65rem;
        --mobile-touch: 2.75rem;
        --mobile-radius: 0.55rem;
    }

    body.zgds-home-pro .zgds-home-shell,
    body.zgds-home-pro .gzd-v3-main__content,
    body.zgds-home-pro .gzd-workspace__stage {
        padding-left: var(--mobile-pad-x);
        padding-right: max(0.85rem, env(safe-area-inset-right, 0));
    }

    body.zgds-home-pro .gzd-v3-main__grid,
    body.zgds-home-pro .gzd-workspace__grid,
    body.zgds-home-pro .zgds-page-layout {
        gap: var(--mobile-gap);
    }

    body.zgds-home-pro .gzd-v3-main,
    body.zgds-home-pro .gzd-workspace {
        padding-top: var(--mobile-pad-y);
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
    }

    body.zgds-home-pro .gzd-v3-hd__brand-row,
    body.zgds-home-pro .gzd-v3-hd__brand-unit {
        align-items: center;
        text-align: center;
    }

    body.zgds-home-pro .gzd-v3-hd__slogan {
        justify-content: center;
    }

    body.zgds-home-pro .gzd-v3-search {
        padding: 0.75rem 0.85rem;
        border-radius: var(--mobile-radius);
    }

    body.zgds-home-pro .gzd-v3-search__body {
        gap: 0.6rem;
    }

    body.zgds-home-pro .gzd-v3-search__mode {
        width: 100%;
        min-width: 0;
    }

    body.zgds-home-pro .gzd-v3-search__field,
    body.zgds-home-pro .gzd-v3-search__input,
    body.zgds-home-pro .gzd-v3-search__submit {
        width: 100%;
    }

    body.zgds-home-pro .gzd-v3-search__submit-inner {
        min-height: var(--mobile-touch);
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-v3-era-ribbon__frame {
        margin-inline: 0;
        padding: 0.4rem 0.35rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-v3-era-ribbon__stage {
        min-height: clamp(2.75rem, 10vw, 3.5rem);
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.55rem 0.65rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__copy,
    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__tools {
        width: 100%;
        min-width: 0;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__sort {
        min-width: 0;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__sort-trigger,
    body.zgds-home-pro[data-page-role="home"] .gzd-v3-catalog__sort-trigger {
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: space-between;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__views {
        display: inline-flex;
        gap: 0.35rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-v3-catalog__view-btn {
        min-width: var(--mobile-touch);
        min-height: var(--mobile-touch);
        padding-inline: 0.65rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-bookshelf--grid .gzd-shelf-tier__books {
        justify-content: center;
        gap: 0.55rem 0.75rem;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-v3-catalog__foot-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-v3-catalog__load-more {
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
    }

    body.zgds-home-pro .gzd-era-nav__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    body.zgds-home-pro .gzd-era-nav__tally {
        justify-content: center;
        text-align: center;
    }

    body.zgds-home-pro .gzd-era-nav__tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

    body.zgds-home-pro .gzd-era-nav__btn {
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
    }

    body.zgds-home-pro .zgds-mobile-drawer__panel {
        border-radius: 1rem 1rem 0 0;
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
    }

    body.zgds-home-pro .zgds-mobile-drawer .gzd-nav__toolbar {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    body.zgds-home-pro .zgds-mobile-drawer .gzd-nav__tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    body.zgds-home-pro .zgds-mobile-drawer .gzd-nav__tools .zgds-hall-btn {
        min-height: var(--mobile-touch);
        justify-content: center;
    }

    body.zgds-home-pro .zgds-hall-fab.gzd-mobile-only {
        right: max(0.85rem, env(safe-area-inset-right, 0));
        bottom: max(1rem, env(safe-area-inset-bottom, 0) + 0.5rem);
        width: 3.25rem;
        height: 3.25rem;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-path__bar--trail {
        padding: 0.6rem 0.75rem;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-path__trail {
        justify-content: flex-start;
        row-gap: 0.35rem;
    }

    body.zgds-home-pro[data-page-role="search"] #search-cluster-nav {
        width: 100%;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-cluster-aside .gzd-era-nav__shell {
        border-radius: var(--mobile-radius);
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-catalog__head .gzd-home-catalog__bar,
    body.zgds-home-pro[data-page-role="search"] .gzd-search-path__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.55rem 0.65rem;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-path__tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem;
        width: 100%;
        margin-left: 0;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-path__sort-trigger,
    body.zgds-home-pro[data-page-role="search"] .gzd-v3-catalog__view-btn {
        min-height: var(--mobile-touch);
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-article-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.5rem 0.65rem;
        padding: 0.75rem 0.85rem;
        border-radius: var(--mobile-radius);
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-article-row__read {
        grid-column: 1 / -1;
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
        margin-top: 0.15rem;
    }

    body.zgds-home-pro[data-page-role="search"] #search-results.gzd-bookshelf .gzd-shelf-tier__books,
    body.zgds-home-pro[data-page-role="search"] .zgds-journal-grid {
        justify-items: center;
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-filter__groups {
        max-height: min(48vh, 22rem);
    }

    body.zgds-home-pro[data-page-role="search"] .gzd-search-filter__chip,
    body.zgds-home-pro[data-page-role="search"] .gzd-search-filter__link {
        min-height: 2.35rem;
        padding-inline: 0.65rem;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.6rem 0.75rem;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__trail {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 0.3rem;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__current,
    body.zgds-home-pro[data-page-role="detail"] .gzd-pg-bar__current {
        max-width: none !important;
        white-space: normal;
        word-break: break-word;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__copy {
        width: 100%;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__meta {
        justify-content: flex-start;
        gap: 0.35rem 0.75rem;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__link {
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
        text-align: center;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-aside__cover-frame {
        max-width: 10.5rem;
        margin-inline: auto;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-issue-row,
    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-folio-item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.45rem 0.65rem;
        padding: 0.75rem 0.85rem;
        min-height: auto;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-folio-item__enter {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-height: var(--mobile-touch);
        justify-content: center;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(255, 248, 238, 0.95);
        border: 1px solid rgba(196, 160, 85, 0.28);
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-year-chip {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: var(--mobile-touch);
        justify-content: center;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.6rem 0.75rem;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__trail {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 0.3rem;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__copy {
        width: 100%;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__meta {
        justify-content: flex-start;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__action {
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
        text-align: center;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-aside__cover-frame {
        max-width: 10.5rem;
        margin-inline: auto;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-folio-item,
    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-index__row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "seq content"
            "read read";
        gap: 0.35rem 0.65rem;
        padding: 0.7rem 0.75rem;
        align-items: start;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-folio-item:not(:has(.gzd-chapters-index__read)) {
        grid-template-areas: "seq content";
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-folio-item__seq {
        grid-area: seq;
        align-self: center;
        text-align: center;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-folio-item__content {
        grid-area: content;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-folio-item__head {
        width: 100%;
        min-width: 0;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-index__read {
        grid-area: read;
        flex-shrink: 0;
        width: auto;
        justify-self: end;
        min-height: var(--mobile-touch, 2.75rem);
        justify-content: center;
    }

    body.zgds-home-pro[data-page-role="chapters"] .gzd-detail-folio-item__enter {
        grid-column: 1 / -1;
        width: 100%;
        min-height: var(--mobile-touch);
        justify-content: center;
        margin-top: 0.2rem;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(255, 248, 238, 0.95);
        border: 1px solid rgba(196, 160, 85, 0.28);
        font-size: 0.8125rem;
    }

    body.zgds-home-pro[data-page-role="login"] .gzd-pg-vault-shell,
    body.zgds-home-pro[data-page-role="error"] .gzd-pg-vault-shell {
        padding: var(--mobile-pad-y) var(--mobile-pad-x)
            max(1.25rem, env(safe-area-inset-bottom, 0));
    }

    body.zgds-home-pro .zgds-auth-card,
    body.zgds-home-pro .zgds-error-card {
        padding: 1.35rem 1.15rem;
        border-radius: var(--mobile-radius);
    }

    body.zgds-home-pro .zgds-auth-form__submit,
    body.zgds-home-pro .zgds-error-btn {
        min-height: var(--mobile-touch);
        width: 100%;
        justify-content: center;
    }

    body.zgds-home-pro .gzd-pg-vault-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    body.zgds-home-pro .zgds-auth-form__input {
        min-height: var(--mobile-touch);
    }

    body.zgds-home-pro .gzd-vault-ft--classic .gzd-vault-ft__body {
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
    }

    body.zgds-home-pro .gzd-vault-ft--classic .gzd-ft-ku--head .gzd-ft-ku__matrix-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.55rem;
        overflow-x: visible;
        width: 100%;
    }

    body.zgds-home-pro .gzd-vault-ft--classic .gzd-ft-ku--head .gzd-ft-ku__matrix {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 20rem;
    }

    body.zgds-home-pro .gzd-vault-ft--classic .gzd-ft-ku--head .gzd-ft-ku__matrix-cell {
        flex: 0 0 auto;
    }

    body.zgds-home-pro .gzd-vault-ft--classic .gzd-vault-ft__qr-grid {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 479px) {
    body.zgds-home-pro .gzd-v3-hd__logo,
    body.zgds-home-pro .gzd-hd__logo {
        height: clamp(2.65rem, 13vw, 3.75rem) !important;
    }

    body.zgds-home-page--v3 .gzd-bookshelf--grid {
        --gzd-shelf-cols: 2;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__tools {
        grid-template-columns: 1fr;
    }

    body.zgds-home-pro[data-page-role="home"] .gzd-home-catalog__views {
        width: 100%;
        justify-content: center;
    }

    body.zgds-home-pro[data-page-role="detail"] .gzd-detail-path__tools,
    body.zgds-home-pro[data-page-role="chapters"] .gzd-chapters-path__actions {
        grid-template-columns: 1fr;
    }

    body.zgds-read-page .gzd-read-chrome {
        padding: 0.5rem max(0.65rem, env(safe-area-inset-left, 0));
    }

    body.zgds-read-page .gzd-read-chrome__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    body.zgds-read-page .gzd-read-chrome__center {
        order: -1;
        text-align: center;
        padding: 0.35rem 0 0.55rem;
        border-bottom: 1px solid rgba(196, 160, 85, 0.24);
    }

    body.zgds-read-page .gzd-read-chrome__start {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        width: 100%;
    }

    body.zgds-read-page .gzd-read-chrome__link,
    body.zgds-read-page .gzd-read-chrome__back {
        min-height: var(--mobile-touch, 2.75rem);
        justify-content: center;
        padding-inline: 0.5rem;
        font-size: 0.8125rem;
    }

    body.zgds-read-page .gzd-read-chrome__end {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        width: 100%;
    }

    body.zgds-read-page .gzd-read-chrome__search {
        order: 0;
        display: flex;
        width: 100%;
        min-height: var(--mobile-touch, 2.75rem);
    }

    body.zgds-read-page .gzd-read-chrome__search-input {
        flex: 1;
        min-width: 0;
    }

    body.zgds-read-page .gzd-read-chrome__search-btn {
        min-width: var(--mobile-touch, 2.75rem);
    }

    body.zgds-read-page .gzd-read-chrome__toggle {
        width: 100%;
        min-height: var(--mobile-touch, 2.75rem);
        justify-content: center;
    }

    body.zgds-read-page .gzd-read-chrome__pager {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        width: 100%;
    }

    body.zgds-read-page .gzd-read-chrome__page-btn {
        min-height: var(--mobile-touch, 2.75rem);
        justify-content: center;
    }

    body.zgds-read-page .gzd-read-zoom {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.35rem 0;
    }

    body.zgds-read-page .gzd-read-zoom__btn {
        min-width: var(--mobile-touch, 2.75rem);
        min-height: 2.35rem;
    }

    body.zgds-read-page .gzd-read-body {
        flex-direction: column;
    }

    body.zgds-read-page .gzd-read-sidebar {
        width: 100%;
        max-height: min(42vh, 20rem);
        border-left: none;
        border-top: 3px solid rgba(196, 160, 85, 0.35);
    }

    body.zgds-read-page .gzd-read-viewer {
        min-height: min(52vh, 28rem);
    }
}

@media (pointer: coarse) and (max-width: 767px) {
    body.zgds-home-pro .gzd-v3-catalog__view-btn,
    body.zgds-home-pro .gzd-era-year-chip,
    body.zgds-home-pro .zgds-year-checkbox,
    body.zgds-home-pro .gzd-search-filter__chip,
    body.zgds-home-pro .gzd-detail-year-chip {
        min-height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.zgds-home-pro .gzd-detail-issue-row,
    body.zgds-home-pro .gzd-chapters-folio-item,
    body.zgds-home-pro .gzd-search-article-row,
    body.zgds-home-pro .gzd-v3-hd__home-return {
        transition: none;
    }
}

@media (max-width: 767px) {
    body.zgds-home-pro .gzd-v3-hd__home-return {
        position: static;
        order: -2;
        align-self: flex-start;
        margin: 0.4rem clamp(0.75rem, 2vw, 1.25rem) 0;
        min-height: var(--mobile-touch, 2.75rem);
    }

    body.zgds-home-pro:not([data-page-role="home"]) .gzd-v3-hd {
        display: flex;
        flex-direction: column;
    }

    body.zgds-home-pro .gzd-era-nav__head-band {
        min-height: 2.85rem;
        padding-top: 0.45rem;
        padding-bottom: 0.42rem;
    }

    body.zgds-home-pro .gzd-era-nav__title {
        font-size: 0.9375rem !important;
    }

    body.zgds-read-page .gzd-read-chrome__start {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}

@media (max-width: 24rem) {
    body.zgds-home-pro .gzd-v3-hd__home-return-text {
        display: none;
    }

    body.zgds-home-pro .gzd-v3-hd__home-return {
        padding-inline: 0.45rem;
    }
}
