:root {
    --ir-green: #285f49;
    --ir-green-dark: #1e4938;
    --ir-green-soft: #eaf3ee;
    --ir-green-mid: #39775a;
    --ir-green-pale: #dcebe2;
    --ir-ink: #282523;
    --ir-muted: #76716b;
    --ir-border: #dbe2dc;
    --ir-surface: #fffef9;
    --ir-background: #f7f6ef;
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

html,
body {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: transparent;
    color: var(--ir-ink);
    font-family: Arial, Helvetica, sans-serif;
    direction: ltr;
    text-align: left;
}

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

[hidden] {
    display: none !important;
}

button,
input,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ir-app {
    width: 100%;
    min-width: 0;
    padding: 2px;
}

.ir-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ir-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 0%, rgba(40, 95, 73, 0.08) 0 15%, transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(40, 95, 73, 0.06) 0 13%, transparent 31%),
        linear-gradient(145deg, #fffefb 0%, var(--ir-background) 100%);
    box-shadow: 0 22px 55px rgba(35, 60, 47, 0.10);
}

.ir-decoration {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 999px;
    pointer-events: none;
}

.ir-decoration-one {
    top: -160px;
    right: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(40, 95, 73, 0.11);
}

.ir-decoration-two {
    bottom: -130px;
    left: -90px;
    width: 240px;
    height: 240px;
    background: rgba(40, 95, 73, 0.035);
}

.ir-content {
    width: 100%;
    min-width: 0;
    padding: clamp(28px, 5vw, 64px);
}

.ir-header {
    max-width: 720px;
    margin: 0 0 28px;
}

.ir-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--ir-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ir-eyebrow svg {
    width: 18px;
    height: 18px;
}

.ir-header h2 {
    margin: 0;
    color: var(--ir-ink);
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.03;
    text-wrap: balance;
}

.ir-header p {
    margin: 16px 0 0;
    color: var(--ir-muted);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 400;
    line-height: 1.55;
}

.ir-form {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.9fr) auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #e1e6e1;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 35px rgba(35, 60, 47, 0.08);
}

.ir-control {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    border: 1px solid #d6ded8;
    border-radius: 15px;
    background: #ffffff;
    color: var(--ir-ink);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ir-control:focus-within {
    border-color: var(--ir-green);
    box-shadow: 0 0 0 3px rgba(40, 95, 73, 0.12);
}

.ir-control-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    color: var(--ir-green);
    pointer-events: none;
}

.ir-control-icon svg {
    width: 21px;
    height: 21px;
}

.ir-keyword {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 0 16px 0 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ir-ink);
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
}

.ir-keyword::placeholder {
    color: #96918b;
    opacity: 1;
}

.ir-keyword::-webkit-search-cancel-button {
    display: none;
}

.ir-clear {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0 10px 0 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ir-green-pale);
    color: var(--ir-green-dark);
    cursor: pointer;
    transition: transform 150ms ease;
}

.ir-clear:hover {
    transform: scale(1.05);
}

.ir-clear:focus-visible,
.ir-submit:focus-visible,
.ir-load-more:focus-visible,
.ir-language-toggle:focus-visible,
.ir-language-filter-clear:focus-visible,
.ir-language-option:focus-visible {
    outline: 3px solid rgba(40, 95, 73, 0.24);
    outline-offset: 2px;
}

.ir-clear svg {
    width: 18px;
    height: 18px;
}

.ir-language-control {
    overflow: visible;
}

.ir-language-native {
    display: none !important;
}

.ir-language-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 16px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ir-ink);
    text-align: left;
    cursor: pointer;
}

.ir-language-toggle .ir-control-icon {
    width: 52px;
}

.ir-language-label {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--ir-ink);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ir-select-arrow {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    color: var(--ir-green);
    transition: transform 160ms ease;
    pointer-events: none;
}

.ir-language-control.is-open .ir-select-arrow {
    transform: rotate(180deg);
}

.ir-select-arrow svg {
    width: 20px;
    height: 20px;
}

.ir-language-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px;
    border: 1px solid #d6ded8;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(35, 60, 47, 0.16);
}

.ir-language-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 10px;
    border: 1px solid #d6ded8;
    border-radius: 14px;
    background: var(--ir-surface);
}

.ir-language-search-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    color: var(--ir-green);
}

.ir-language-search-icon svg,
.ir-language-filter-clear svg {
    width: 18px;
    height: 18px;
}

.ir-language-filter {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ir-ink);
    font-size: 14px;
    line-height: 1.2;
}

.ir-language-filter::placeholder {
    color: #96918b;
    opacity: 1;
}

.ir-language-filter::-webkit-search-cancel-button {
    display: none;
}

.ir-language-filter-clear {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ir-green-pale);
    color: var(--ir-green-dark);
    cursor: pointer;
}

.ir-language-options {
    display: grid;
    gap: 8px;
    max-height: 280px;
    padding-right: 2px;
    overflow: auto;
}

.ir-language-options::-webkit-scrollbar {
    width: 10px;
}

.ir-language-options::-webkit-scrollbar-thumb {
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #bfd4c7;
}

.ir-language-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dde6df;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ir-ink);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.ir-language-option:hover,
.ir-language-option:focus-visible {
    border-color: #b7cfc0;
    background: var(--ir-green-soft);
    transform: translateY(-1px);
    outline: none;
}

.ir-language-option.is-selected {
    border-color: rgba(40, 95, 73, 0.16);
    background: linear-gradient(180deg, #f8fcf9 0%, #edf6f0 100%);
    color: var(--ir-green-dark);
    font-weight: 700;
}

.ir-language-empty {
    padding: 10px 4px 4px;
    color: var(--ir-muted);
    font-size: 13px;
}

.ir-submit,
.ir-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    margin: 0;
    padding: 0 25px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--ir-green-mid) 0%, var(--ir-green-dark) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(30, 73, 56, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.ir-submit:hover,
.ir-load-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(30, 73, 56, 0.30);
}

.ir-submit:disabled,
.ir-load-more:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.ir-submit svg,
.ir-load-more svg {
    width: 19px;
    height: 19px;
}

.ir-status {
    min-height: 24px;
    margin: 24px 2px 14px;
    color: var(--ir-muted);
    font-size: 14px;
    font-weight: 700;
}

.ir-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.ir-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-width: 0;
    min-height: 200px;
    overflow: hidden;
    border: 1px solid #dfe5df;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(35, 60, 47, 0.07);
}

.ir-card-media {
    position: relative;
    display: block;
    width: 132px;
    min-width: 132px;
    min-height: 200px;
    overflow: hidden;
    background: linear-gradient(145deg, #f0eee5, #e4ebe6);
    text-decoration: none;
}

.ir-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.ir-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    color: var(--ir-green);
}

.ir-card-placeholder svg {
    width: 54px;
    height: 54px;
}

.ir-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
}

.ir-card-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    margin: 0 0 10px;
}

.ir-card-terms span {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ir-green-soft);
    color: var(--ir-green-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ir-card h3 {
    width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.ir-card h3 a {
    display: block;
    color: var(--ir-ink);
    text-decoration: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

.ir-card h3 a:hover {
    color: var(--ir-green);
}

.ir-card p {
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    margin: 10px 0 16px;
    overflow: hidden;
    color: var(--ir-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    word-break: normal;
    overflow-wrap: anywhere;
}

.ir-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--ir-green);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.ir-card-link svg {
    width: 17px;
    height: 17px;
}

.ir-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.ir-load-more {
    min-width: 160px;
}

.ir-skeleton-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.ir-skeleton {
    display: block;
    min-height: 200px;
    border-radius: 20px;
    background: linear-gradient(90deg, #eeece4 25%, #f8f7f1 50%, #eeece4 75%);
    background-size: 200% 100%;
    animation: ir-shimmer 1.35s infinite linear;
}

.ir-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes ir-shimmer {
    to {
        background-position: -200% 0;
    }
}

@media (max-width: 920px) {
    .ir-form {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    }

    .ir-submit {
        grid-column: 1 / -1;
        justify-self: start;
        min-width: 190px;
    }

    .ir-results,
    .ir-skeleton-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 650px) {
    .ir-content {
        padding: 30px 24px 34px;
    }

    .ir-header {
        margin-bottom: 24px;
    }

    .ir-header h2 {
        font-size: clamp(36px, 10vw, 48px);
    }

    .ir-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .ir-submit {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    .ir-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .ir-card-media,
    .ir-card-media img,
    .ir-card-placeholder {
        width: 118px;
        min-width: 118px;
        min-height: 190px;
    }

    .ir-card-body {
        padding: 17px;
    }
}

@media (max-width: 430px) {
    .ir-content {
        padding: 26px 18px 30px;
    }

    .ir-panel {
        border-radius: 24px;
    }

    .ir-eyebrow {
        font-size: 11px;
        letter-spacing: 0.10em;
    }

    .ir-header h2 {
        font-size: 35px;
    }

    .ir-header p {
        font-size: 15px;
    }

    .ir-card {
        grid-template-columns: 102px minmax(0, 1fr);
        min-height: 175px;
    }

    .ir-card-media,
    .ir-card-media img,
    .ir-card-placeholder {
        width: 102px;
        min-width: 102px;
        min-height: 175px;
    }

    .ir-card-body {
        padding: 15px;
    }

    .ir-card h3 {
        font-size: 18px;
    }

    .ir-card p {
        -webkit-line-clamp: 2;
    }
}

/* Version 1.3.0: stable isolated layout and searchable language picker. */
html,
body {
    overflow: hidden;
    overscroll-behavior: none;
}

.ir-app,
.ir-panel,
.ir-content,
.ir-form {
    min-width: 0;
    max-width: 100%;
}

.ir-form {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.ir-language-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ir-language-trigger {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

.ir-language-trigger:disabled {
    opacity: 0.64;
    cursor: wait;
}

.ir-language-label {
    display: block;
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    max-width: 100%;
    padding: 0 8px 0 0;
    overflow: hidden;
    color: var(--ir-ink);
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    unicode-bidi: plaintext;
}

.ir-language-trigger .ir-select-arrow {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
}

.ir-language-dropdown {
    position: fixed;
    z-index: 2147483000;
    top: 0;
    left: 0;
    right: auto;
    width: 320px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(40, 95, 73, 0.20);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 22px 46px rgba(27, 61, 46, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ir-language-search-wrap {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 12px;
    border-bottom: 1px solid rgba(40, 95, 73, 0.10);
    background: linear-gradient(180deg, #fbfdfb 0%, #f3f8f5 100%);
}

.ir-language-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 30px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: var(--ir-green);
    transform: translateY(-50%);
    pointer-events: none;
}

.ir-language-search {
    all: unset;
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px 0 44px;
    border: 1px solid #cad8cf;
    border-radius: 13px;
    background: #ffffff;
    color: var(--ir-ink);
    box-shadow: 0 4px 12px rgba(35, 60, 47, 0.05), inset 0 1px 0 rgba(255,255,255,0.8);
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 46px;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ir-language-search::placeholder {
    color: #898f8a;
    opacity: 1;
}

.ir-language-search:focus {
    border-color: var(--ir-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(40, 95, 73, 0.13), 0 6px 16px rgba(35, 60, 47, 0.08);
}

.ir-language-search::-webkit-search-cancel-button {
    display: none;
}

.ir-language-options {
    max-height: 280px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 95, 73, 0.40) transparent;
}

.ir-language-options::-webkit-scrollbar {
    width: 7px;
}

.ir-language-options::-webkit-scrollbar-track {
    background: transparent;
}

.ir-language-options::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(40, 95, 73, 0.38);
    background-clip: padding-box;
}

.ir-language-option {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ir-language-option-text {
    display: block;
    width: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    unicode-bidi: plaintext;
}

.ir-language-empty {
    padding: 16px 18px 18px;
}

.ir-card-media {
    padding: 6px;
    background: linear-gradient(145deg, #f7f3e9, #edf2ee);
}

.ir-card-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 920px) {
    .ir-language-select,
    .ir-language-trigger {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 650px) {
    .ir-form {
        width: 100%;
        max-width: 100%;
    }

    .ir-search-control,
    .ir-language-select,
    .ir-language-trigger,
    .ir-submit {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ir-language-dropdown {
        border-radius: 16px;
    }
}

/* Version 1.3.1: visible language labels and non-blocking page scrolling. */
html,
body {
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: auto;
}

.ir-language-option {
    justify-content: space-between;
    gap: 12px;
}

.ir-language-option-text {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 30px);
    overflow: hidden;
    color: inherit;
    opacity: 1;
    visibility: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    unicode-bidi: plaintext;
}

.ir-language-option-check {
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: var(--ir-green);
    opacity: 0;
    visibility: hidden;
}

.ir-language-option.is-selected .ir-language-option-check {
    opacity: 1;
    visibility: visible;
}

.ir-language-option-check svg {
    width: 18px;
    height: 18px;
}

/* Version 1.3.2: full book covers and reliable parent-page scrolling. */
.ir-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(145deg, #f8f5ec, #edf2ee);
}

.ir-card-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    margin: auto;
    padding: 0;
    border-radius: 9px;
    object-fit: contain !important;
    object-position: center center;
}
