.development-pdf2-shell {
    max-width: 1180px;
}

.development-pdf2-controls {
    align-items: center;
}

.development-pdf2-controls .pdf2-filter-tabs {
    flex-wrap: wrap;
}

.development-pdf2-card .card-surface {
    min-height: 430px;
}

.development-pdf2-card .mcq-card-surface {
    cursor: default;
    min-height: 620px;
}

.development-pdf2-card .mcq-card-content {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: flex-start;
    text-align: left;
}

.development-pdf2-card .mcq-prompt {
    font-size: clamp(2rem, 4vw, 4.5rem);
}

.development-pdf2-card .anki-text {
    max-width: 980px;
}

.development-pdf2-card .anki-text.is-answer {
    text-align: left;
}

.development-pdf2-card .topic-tag {
    background: rgba(169, 217, 196, 0.13);
    border-color: rgba(169, 217, 196, 0.38);
    color: #d3efdf;
}

.development-pdf2-card .topic-tag[data-topic="intro"] {
    background: rgba(154, 199, 238, 0.14);
    border-color: rgba(154, 199, 238, 0.38);
    color: #d8eaff;
}

.development-pdf2-card .topic-tag[data-topic="sex-determination"],
.development-pdf2-card .topic-tag[data-topic="sexual-reproduction"] {
    background: rgba(241, 201, 141, 0.15);
    border-color: rgba(241, 201, 141, 0.4);
    color: #f4d6a6;
}

.development-pdf2-card .topic-tag[data-topic="molecular-mechanisms"],
.development-pdf2-card .topic-tag[data-topic="fertilization"] {
    background: rgba(195, 181, 237, 0.15);
    border-color: rgba(195, 181, 237, 0.38);
    color: #ded5ff;
}

.development-pdf2-card .topic-tag[data-topic="stem-cells"],
.development-pdf2-card .topic-tag[data-topic="cloning"] {
    background: rgba(181, 220, 174, 0.15);
    border-color: rgba(181, 220, 174, 0.4);
    color: #d7f0cf;
}

.development-pdf2-card .topic-tag[data-topic="developmental-disorders"] {
    background: rgba(232, 166, 162, 0.15);
    border-color: rgba(232, 166, 162, 0.4);
    color: #ffd0cc;
}

.development-pdf2-card .topic-tag[data-topic="ageing"] {
    background: rgba(143, 210, 225, 0.14);
    border-color: rgba(143, 210, 225, 0.38);
    color: #c8eef6;
}

.development-pdf2-card .grade-note {
    min-height: 1.7em;
}

.development-pdf2-card .question-meta {
    align-items: center;
}

.readmore-button {
    align-items: center;
    background: rgba(229, 238, 247, 0.08);
    border: 1px solid rgba(214, 229, 243, 0.24);
    border-radius: 999px;
    color: #edf5ff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
    width: 42px;
}

.readmore-button:hover,
.readmore-button:focus-visible {
    background: rgba(154, 199, 238, 0.18);
    border-color: rgba(154, 199, 238, 0.5);
    transform: translateY(-1px);
}

.readmore-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    transform: none;
}

.readmore-button svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 21px;
}

.readmore-dialog {
    background: transparent;
    border: 0;
    color: #e8eef7;
    height: min(88vh, 920px);
    max-height: none;
    max-width: none;
    opacity: 0;
    padding: 0;
    transform: translateY(8px) scale(0.99);
    transition: opacity 90ms ease-out, transform 90ms ease-out;
    width: min(1120px, calc(100vw - 44px));
}

.readmore-dialog[open] {
    display: block;
}

.readmore-dialog.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.readmore-dialog::backdrop {
    background:
        radial-gradient(circle at center, rgba(18, 29, 41, 0.28), rgba(8, 12, 18, 0.72)),
        rgba(7, 10, 15, 0.62);
    backdrop-filter: blur(5px);
}

.readmore-shell {
    background:
        linear-gradient(135deg, rgba(59, 67, 77, 0.98), rgba(43, 50, 59, 0.98)),
        #303842;
    border: 1px solid rgba(180, 201, 224, 0.22);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.readmore-head {
    align-items: flex-start;
    border-bottom: 1px solid rgba(210, 224, 239, 0.12);
    display: flex;
    gap: 22px;
    justify-content: space-between;
    padding: 26px 30px 22px;
}

.readmore-head h2 {
    color: #eef5ff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.95;
    margin: 0;
}

.readmore-body {
    display: grid;
    gap: 20px;
    overflow: auto;
    padding: 24px 30px 36px;
}

.readmore-card {
    background: rgba(232, 238, 245, 0.045);
    border: 1px solid rgba(212, 226, 241, 0.13);
    border-left: 5px solid rgba(154, 199, 238, 0.52);
    border-radius: 18px;
    padding: 26px 28px;
}

.readmore-card-question {
    border-left-color: rgba(154, 199, 238, 0.68);
}

.readmore-card-answer {
    border-left-color: rgba(181, 220, 174, 0.62);
}

.readmore-card-image {
    border-left-color: rgba(241, 201, 141, 0.62);
}

.readmore-card h3 {
    color: #b8d9fb;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.readmore-card p,
.readmore-card li {
    color: #e4ebf4;
    font-size: clamp(1.08rem, 1.55vw, 1.25rem);
    line-height: 1.55;
    margin-top: 0;
    text-align: left;
}

.readmore-rows {
    display: grid;
    gap: 0;
}

.readmore-row {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(211, 226, 241, 0.12);
    border-radius: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(150px, 0.26fr) 1fr;
    padding: 13px 0;
}

.readmore-row:first-child {
    padding-top: 0;
}

.readmore-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.readmore-row span {
    color: #b8d9fb;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.readmore-row p {
    margin: 0;
}

.readmore-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.2rem;
}

.readmore-rows + .readmore-list {
    margin-top: 16px;
}

.readmore-muted {
    color: #b9c5d1;
    margin: 0;
}

.readmore-image-link {
    background: rgba(235, 241, 248, 0.88);
    border: 1px solid rgba(214, 226, 239, 0.5);
    border-radius: 14px;
    display: block;
    overflow: hidden;
    padding: 10px;
}

.readmore-image-link img {
    display: block;
    height: auto;
    width: 100%;
}

.smart-complete-flash {
    animation: smartCompleteFlash 900ms ease-out forwards;
    background:
        radial-gradient(circle at center, rgba(169, 217, 196, 0.88), rgba(92, 184, 130, 0.34) 36%, rgba(23, 36, 30, 0) 68%),
        rgba(116, 211, 155, 0.15);
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 9999;
}

@keyframes smartCompleteFlash {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    22% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

@media (max-width: 720px) {
    .readmore-dialog {
        height: min(92vh, 920px);
        width: calc(100vw - 20px);
    }

    .readmore-head,
    .readmore-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .readmore-row {
        grid-template-columns: 1fr;
    }
}
