/* ==========================================================================
   AASU — Voice magazine page
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url(/voice/assets/fonts/IBMPlexSansArabic-Regular.ttf) format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url(/voice/assets/fonts/IBMPlexSansArabic-Medium.ttf) format("truetype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url(/voice/assets/fonts/IBMPlexSansArabic-SemiBold.ttf) format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url(/voice/assets/fonts/IBMPlexSansArabic-Bold.ttf) format("truetype");
    font-weight: 700;
    font-display: swap;
}

/* ---------- Tokens ---------- */

.voice-of-aasu {
    --navy: #0e1c43;
    --navy-line: #284085;
    --yellow: #ffaf00;
    --teal: #1ac5ab;
    --gold: #b18b34;
    --text: #37404e;
    --muted: #88929b;
    --line: #ddd;
    --white: #fff;

    --radius-sm: 10px;
    --radius-lg: 32px;
    --container: 1344px;
    --gutter: 12px;
    --header-h: 117px;
    --header-h-stuck: 88px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    /* Clip 3D book overflow so pseudo-element shadows cannot cover the site footer */
    overflow: hidden;
    padding-bottom: 56px;
}

.voice-of-aasu-footer-clear {
    display: block;
    width: 100%;
    height: 0;
    clear: both;
    position: relative;
    z-index: 50;
}

/* Force the CMS layout footer to stay visible below the magazine page */
body:has(.voice-of-aasu) footer.footer,
body:has(.voice-of-aasu-footer-clear) footer.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    clear: both;
    margin-top: 0 !important;
    transform: none !important;
    isolation: isolate;
    overflow: visible !important;
}

/* ---------- Scoped base (CMS embed) ---------- */

.voice-of-aasu {
    font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.voice-of-aasu *,
.voice-of-aasu *::before,
.voice-of-aasu *::after {
    box-sizing: border-box;
}

.voice-of-aasu h1,
.voice-of-aasu h2,
.voice-of-aasu h3,
.voice-of-aasu h6,
.voice-of-aasu p,
.voice-of-aasu ul {
    margin: 0;
    padding: 0;
}

.voice-of-aasu ul {
    list-style: none;
}

.voice-of-aasu a {
    color: inherit;
    text-decoration: none;
}

.voice-of-aasu img {
    max-width: 100%;
    height: auto;
    display: block;
}

.voice-of-aasu button,
.voice-of-aasu input,
.voice-of-aasu select {
    font: inherit;
    color: inherit;
}

.voice-of-aasu button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.voice-of-aasu :focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.voice-of-aasu .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.voice-of-aasu .section {
    margin-top: 48px;
}

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

.skip-link {
    position: absolute;
    top: -60px;
    right: 12px;
    z-index: 1000;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    color: var(--navy);
    font-weight: 600;
}

.skip-link:focus {
    top: 8px;
}

/* ---------- Buttons & form controls ---------- */

.voice-of-aasu .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s, color .2s, transform .2s;
}

.voice-of-aasu .btn-default {
    color: var(--navy);
    background-color: var(--yellow);
}

.voice-of-aasu .btn-default:hover {
    color: var(--white);
    background-color: var(--teal);
    transform: translateY(-2px);
}

.voice-of-aasu .form-control {
    display: block;
    width: 100%;
    padding: 11px 15px 13px;
    font-size: 14px;
    line-height: 24px;
    color: var(--text);
    background-color: var(--white);
    border: 1px solid rgba(6, 18, 36, .1);
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
}

.voice-of-aasu .form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}

.voice-of-aasu .form-control:focus {
    outline: 0;
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(26, 197, 171, .3);
}

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0b6f64;
}

.hero__kicker span {
    width: 34px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--yellow);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__actions .btn {
    padding: 15px 26px;
    font-weight: 700;
}

@media (max-width: 575px) {
.hero__actions .btn {
        flex: 1 1 100%;
    }
}

/* ---------- The full name as a mark: صوت + جامعة / عبدالله / السالم stacked,
   as on the magazine's artwork ---------- */

.wm {
    display: inline-flex;
    align-items: center;
    gap: .1em;
    font-weight: 700;
    line-height: 1;
}

.wm__main {
    font-size: 1em;
    line-height: 1.05;
}

.wm__stack {
    display: flex;
    flex-direction: column;
    font-size: .27em;
    line-height: 1.12;
}

/* Designs that draw themselves (4–7). Arabic is written right to left, so each part is revealed that way. */

.draw .wm__main,
.draw .wm__stack span {
    clip-path: inset(0 0 0 100%);
}

.draw.is-drawn .wm__main { animation: draw-write .8s .1s cubic-bezier(.5, 0, .3, 1) forwards; }

.draw.is-drawn .wm__stack span:nth-child(1) { animation: draw-write .45s .8s ease-out forwards; }

.draw.is-drawn .wm__stack span:nth-child(2) { animation: draw-write .5s 1.1s ease-out forwards; }

.draw.is-drawn .wm__stack span:nth-child(3) { animation: draw-write .5s 1.45s ease-out forwards; }

.draw.is-drawn .hero6__text { animation: hero6-in .7s 1.4s ease forwards; }

/* Design 4: the calligraphic line draws itself */

.hero6 {
    position: relative;
    overflow: hidden;
    color: var(--navy);
    background:
        radial-gradient(ellipse 70% 80% at 25% 40%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        #f4f1ea;
    border-radius: 32px;
    margin: 56px var(--gutter) 0;
}

.hero6__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: 540px;
    padding-block: 60px;
}

.hero6__text {
    opacity: 0;
    transform: translateY(14px);
}

/* English/LTR: show hero copy immediately (RTL keeps the stamp animation) */
.voice-of-aasu[dir="ltr"] .hero6__text {
    opacity: 1;
    transform: none;
    animation: none !important;
}

.hero6__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.35;
}

.hero6__lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 2;
    color: #2b3657;
}

.hero6__ghost {
    color: var(--navy);
    border: 1.5px solid rgba(14, 28, 67, .35);
}

.hero6__ghost:hover {
    color: var(--white);
    background-color: var(--navy);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
.draw .wm__main,
    .draw .wm__stack span { clip-path: none; }

.draw .draw-voice,
    .draw .hero6__text,
    .draw .hero7__covers span,
    .draw .hero9__covers span,
    .draw .hero9__bottom { opacity: 1; transform: none; }

.draw.is-drawn * { animation: none !important; }
}

@media (max-width: 991px) {
.hero6,
    .hero9 {
        border-radius: 24px;
        margin-top: 36px;
    }

.hero6__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
        padding-block: 40px 56px;
    }

.hero6__title {
        font-size: 34px;
    }
}

@media (max-width: 575px) {
.hero6__title {
        font-size: 27px;
    }

.hero6__lead {
        font-size: 15px;
        line-height: 1.9;
    }
}

/* drifts down from the upper right, swaying like paper, then settles */

/* Design 11: the rubber stamp */

.hero6.heroS {
    background:
        radial-gradient(ellipse 70% 80% at 25% 40%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        #f4f1ea;
}

.heroS__paper {
    position: relative;
    order: 2;
    display: grid;
    place-items: center;
    min-height: 380px;
}

.heroS__stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 36px 20px;
    color: #1b2a63;
    border: 6px double currentColor;
    border-radius: 14px;
    opacity: 0;
    transform: rotate(-7deg) scale(1.7);
    /* worn rubber: ink missing in small spots */
    -webkit-mask-image:
        radial-gradient(circle at 3% 18%, transparent 0 3px, #000 4px),
        radial-gradient(circle at 97% 10%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 4% 94%, transparent 0 4px, #000 5px),
        radial-gradient(circle at 96% 88%, transparent 0 2px, #000 3px);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(circle at 3% 18%, transparent 0 3px, #000 4px),
        radial-gradient(circle at 97% 10%, transparent 0 2px, #000 3px),
        radial-gradient(circle at 4% 94%, transparent 0 4px, #000 5px),
        radial-gradient(circle at 96% 88%, transparent 0 2px, #000 3px);
    mask-composite: intersect;
}

.heroS__stamp .wm {
    font-size: clamp(80px, 8vw, 120px);
}

.heroS__voice {
    padding-top: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .35em;
    border-top: 3px solid currentColor;
}

.heroS__date {
    position: absolute;
    /* overlaps the corner of the big stamp, clear of its border lines */
    right: 0;
    bottom: -4%;
    z-index: 1;
    background-color: rgba(244, 241, 234, .85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 136px;
    height: 136px;
    padding: 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: #0f8f80;
    border: 3px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px #f4f1ea, inset 0 0 0 7px currentColor;
    opacity: 0;
    transform: rotate(12deg) scale(1.8);
}

.heroS__date span,
.heroS__date b {
    position: static;
    display: block;
    transform: none;
    white-space: nowrap;
}

.heroS__date b {
    font-size: 15px;
}

.heroS.is-drawn .heroS__stamp { animation: stamp-down .35s .5s cubic-bezier(.5, 0, .7, .4) forwards, ink-settle .8s .85s ease-out forwards; }

.heroS.is-drawn .heroS__date { animation: date-down .3s 1.6s cubic-bezier(.5, 0, .7, .4) forwards; }

.heroS.is-drawn .heroS__paper { animation: thud .3s .85s ease-out; }

.heroS.is-drawn .hero6__text { animation-delay: 1.1s; }

/* the name is stamped whole, not written */

.heroS .wm__main,
.heroS .wm__stack span { clip-path: none; }

@media (prefers-reduced-motion: reduce) {
.heroS__stamp { opacity: .9; transform: rotate(-7deg); }

.heroS__date { opacity: .88; transform: rotate(12deg); }
}

@media (max-width: 991px) {
.heroS__paper { order: -1; min-height: 300px; }
}

@media (max-width: 575px) {
.heroS__stamp { padding: 18px 20px 14px; }

.heroS__stamp .wm { font-size: 64px; }

.heroS__date { width: 104px; height: 104px; right: 2%; bottom: 0; font-size: 11px; }
}

/* ---------- Online reader (full-screen) ---------- */

body.reader-open {
    overflow: hidden;
}

.reader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    background-color: #0a1433;
}

.reader[hidden] {
    display: none;
}

.reader__bar {
    display: flex;
    align-items: center;
    gap: 8px 20px;
    padding: 10px 18px;
    color: var(--white);
    border-bottom: 1px solid var(--navy-line);
}

.reader__title {
    margin-inline-end: auto;
    font-size: 16px;
    font-weight: 600;
}

.reader__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.reader__link[hidden] {
    display: none;
}

.reader__link:hover {
    color: var(--yellow);
}

.reader__close {
    flex: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    transition: background-color .2s, color .2s;
}

.reader__close:hover {
    color: var(--navy);
    background-color: var(--white);
}

.reader__frame {
    flex: 1;
    width: 100%;
    border: 0;
    background-color: #0a1433;
}

/* ---------- Toolbar: search + sort, above the books ---------- */

.toolbar {
    display: flex;
    gap: 10px;
}

.toolbar .form-control {
    background-color: #f6f7fa;
    border-color: rgba(14, 28, 67, .16);
}

.toolbar__field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.voice-of-aasu .toolbar__field > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    left: auto;
    z-index: 2;
    color: var(--muted);
    pointer-events: none;
    font-size: 14px;
    line-height: 1;
}

html[dir="ltr"] .voice-of-aasu .toolbar__field > i {
    left: 16px;
    right: auto;
}

.voice-of-aasu .toolbar__field .form-control {
    padding: 11px 44px 13px 15px !important;
}

html[dir="ltr"] .voice-of-aasu .toolbar__field .form-control {
    padding: 11px 15px 13px 44px !important;
}

/* Hide the browser's own clear button so the field matches the original */

.toolbar__field input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.toolbar .btn {
    flex: none;
    width: 135px;
}

.toolbar__sort {
    position: relative;
    flex: none;
    width: 230px;
}

.voice-of-aasu .toolbar__sort select {
    padding: 11px 15px 13px 44px !important;
    color: #000;
    cursor: pointer;
}

html[dir="ltr"] .voice-of-aasu .toolbar__sort select {
    padding: 11px 44px 13px 15px !important;
}

.voice-of-aasu .toolbar__sort > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    right: auto;
    color: #888;
    pointer-events: none;
}

html[dir="ltr"] .voice-of-aasu .toolbar__sort > i {
    right: 15px;
    left: auto;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 170px);
    gap: 72px 88px;
    margin-bottom: 25px;
    padding: 26px 0 20px;
}

/* Style 2 shows each book at an angle with its pages fanned, so it reads larger:
   keep it a little smaller and further apart */

.issues-grid[data-book-style="hardcover"] {
    grid-template-columns: repeat(auto-fill, 135px);
    gap: 80px 150px;
    padding-inline: 48px;
}

.issues-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    font-size: 16px;
    color: var(--muted);
}

/* ---------- Issue: shared pieces ---------- */

.issue {
    position: relative;
    container-type: inline-size;
    --accent: var(--teal);
    --book-shadow: 0 10px 24px rgba(14, 28, 67, .28);
}

.issue:hover,
.issue:focus-within,
.issue.is-open {
    z-index: 5;
}

/* ---------- Style 5: "3D Animated Books pure CSS" hardcover, ported as-is.
   The pen's own rules and numbers are kept (book 160 x 220, left-bound);
   .hb__mirror flips the whole book so the spine sits on the right for Arabic. ---------- */

.issues-grid[data-book-style="classic"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr));
    gap: 30px 40px;
    padding-top: 60px;
    overflow: hidden;
    padding-bottom: 24px;
}

.issue--classic {
    min-height: 300px;
    padding-right: 90px;
}

.hb {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0;
}

.hb__mirror {
    width: 160px;
    height: 220px;
    transform: scaleX(-1);
}

/* 1. container */

.hb__book {
    position: relative;
    width: 160px;
    height: 220px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hb ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 2. background & colour */

.hb .hardcover_front li:first-child {
    background-color: #eee;
    backface-visibility: hidden;
}

.hb .hardcover_front li:last-child,
.hb .hardcover_back li:first-child,
.hb .hardcover_back li:last-child {
    background: #fffbec;
}

.hb .book_spine li:first-child {
    background: #eee;
}

.hb .book_spine li:last-child {
    background: #333;
}

/* thickness of cover */

.hb .hardcover_front li:first-child::after,
.hb .hardcover_front li:first-child::before,
.hb .hardcover_front li:last-child::after,
.hb .hardcover_front li:last-child::before,
.hb .hardcover_back li:first-child::after,
.hb .hardcover_back li:first-child::before,
.hb .hardcover_back li:last-child::after,
.hb .hardcover_back li:last-child::before,
.hb .book_spine li:first-child::after,
.hb .book_spine li:first-child::before,
.hb .book_spine li:last-child::after,
.hb .book_spine li:last-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: #999;
}

/* page */

.hb .page > li {
    background: linear-gradient(to right, #e1ddd8 0%, #fffbf6 100%);
    box-shadow: inset 0 -1px 2px rgba(50, 50, 50, .1), inset -1px 0 1px rgba(150, 150, 150, .2);
    border-radius: 0 5px 5px 0;
}

/* 3. opening cover, back cover and pages */

.hb .hardcover_front {
    transform: rotateY(-34deg) translateZ(8px);
    z-index: 100;
}

.hb .hardcover_back {
    transform: rotateY(-15deg) translateZ(-8px);
}

.hb .page li:nth-child(1) { transform: rotateY(-28deg); }

.hb .page li:nth-child(2) { transform: rotateY(-30deg); }

.hb .page li:nth-child(3) { transform: rotateY(-32deg); }

.hb .page li:nth-child(4) { transform: rotateY(-34deg); }

.hb .page li:nth-child(5) { transform: rotateY(-36deg); }

/* 4. position, transform & transition */

.hb .hardcover_front,
.hb .hardcover_back,
.hb .book_spine,
.hb .hardcover_front li,
.hb .hardcover_back li,
.hb .book_spine li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hb .hardcover_front,
.hb .hardcover_back {
    transform-origin: 0% 100%;
}

.hb .hardcover_front {
    transition: all .8s ease, z-index .6s;
}

.hb .hardcover_front li:first-child {
    transform: translateZ(2px);
}

.hb .hardcover_front li:last-child {
    transform: rotateY(180deg) translateZ(2px);
}

.hb .hardcover_back li:first-child {
    transform: translateZ(2px);
}

.hb .hardcover_back li:last-child {
    transform: translateZ(-2px);
}

.hb .hardcover_front li:first-child::after,
.hb .hardcover_front li:first-child::before {
    width: 4px;
    height: 100%;
}

.hb .hardcover_front li:first-child::after {
    transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.hb .hardcover_front li:first-child::before {
    transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.hb .hardcover_front li:last-child::after,
.hb .hardcover_front li:last-child::before {
    width: 4px;
    height: 160px;
}

.hb .hardcover_front li:last-child::after {
    transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px);
}

.hb .hardcover_front li:last-child::before {
    /* Neutralize far 3D shadow — it expanded page overflow and covered the site footer */
    content: none;
    box-shadow: none;
    transform: none;
}

.hb .hardcover_back li:first-child::after,
.hb .hardcover_back li:first-child::before {
    width: 4px;
    height: 100%;
}

.hb .hardcover_back li:first-child::after {
    transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.hb .hardcover_back li:first-child::before {
    transform: rotateY(90deg) translateZ(158px) translateX(2px);
}

.hb .hardcover_back li:last-child::after,
.hb .hardcover_back li:last-child::before {
    width: 4px;
    height: 160px;
}

.hb .hardcover_back li:last-child::after {
    transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px);
}

.hb .hardcover_back li:last-child::before {
    content: none;
    box-shadow: none;
    transform: none;
}

/* book spine */

.hb .book_spine {
    transform: rotateY(60deg) translateX(-5px) translateZ(-12px);
    width: 16px;
    z-index: 0;
}

.hb .book_spine li:first-child {
    transform: translateZ(2px);
}

.hb .book_spine li:last-child {
    transform: translateZ(-2px);
}

.hb .book_spine li:first-child::after,
.hb .book_spine li:first-child::before {
    width: 4px;
    height: 100%;
}

.hb .book_spine li:first-child::after {
    transform: rotateY(90deg) translateZ(-2px) translateX(2px);
}

.hb .book_spine li:first-child::before {
    transform: rotateY(-90deg) translateZ(-12px);
}

.hb .book_spine li:last-child::after,
.hb .book_spine li:last-child::before {
    width: 4px;
    height: 16px;
}

.hb .book_spine li:last-child::after {
    transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px);
}

.hb .book_spine li:last-child::before {
    content: none;
    box-shadow: none;
    transform: none;
}

.hb .page,
.hb .page > li {
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

.hb .page {
    width: 100%;
    height: 98%;
    top: 1%;
    left: 3%;
    z-index: 10;
}

.hb .page > li {
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transition-property: transform;
    transition-timing-function: ease;
}

.hb .page > li:nth-child(1) { transition-duration: .6s; }

.hb .page > li:nth-child(2) { transition-duration: .6s; }

.hb .page > li:nth-child(3) { transition-duration: .4s; }

.hb .page > li:nth-child(4) { transition-duration: .5s; }

.hb .page > li:nth-child(5) { transition-duration: .6s; }

/* 5. events (hover as in the pen; tap/click and keyboard focus do the same) */

.issue--classic.is-open .hardcover_front,
.issue--classic:focus-within .hardcover_front { transform: rotateY(-145deg) translateZ(0); z-index: 0; }

.issue--classic.is-open .page li:nth-child(1),
.issue--classic:focus-within .page li:nth-child(1) { transform: rotateY(-30deg); transition-duration: 1.5s; }

.issue--classic.is-open .page li:nth-child(2),
.issue--classic:focus-within .page li:nth-child(2) { transform: rotateY(-35deg); transition-duration: 1.8s; }

.issue--classic.is-open .page li:nth-child(3),
.issue--classic:focus-within .page li:nth-child(3) { transform: rotateY(-118deg); transition-duration: 1.6s; }

.issue--classic.is-open .page li:nth-child(4),
.issue--classic:focus-within .page li:nth-child(4) { transform: rotateY(-130deg); transition-duration: 1.4s; }

.issue--classic.is-open .page li:nth-child(5),
.issue--classic:focus-within .page li:nth-child(5) { transform: rotateY(-140deg); transition-duration: 1.2s; }

@media (hover: hover) {
.hb__book:hover > .hardcover_front { transform: rotateY(-145deg) translateZ(0); z-index: 0; }

.hb__book:hover > .page li:nth-child(1) { transform: rotateY(-30deg); transition-duration: 1.5s; }

.hb__book:hover > .page li:nth-child(2) { transform: rotateY(-35deg); transition-duration: 1.8s; }

.hb__book:hover > .page li:nth-child(3) { transform: rotateY(-118deg); transition-duration: 1.6s; }

.hb__book:hover > .page li:nth-child(4) { transform: rotateY(-130deg); transition-duration: 1.4s; }

.hb__book:hover > .page li:nth-child(5) { transform: rotateY(-140deg); transition-duration: 1.2s; }
}

/* 6. cover design, button, figcaption */

.hb__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
}

.hb__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(-135deg, rgba(255, 255, 255, .45) 0%, transparent 100%);
}

/* un-mirror the artwork and the text on the page */

.hb__art {
    position: absolute;
    inset: 0;
    background: #3498db center / 100% 100% no-repeat;
    transform: scaleX(-1);
}

.hb__art--plain {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    background-image: linear-gradient(to bottom, #15a593 58%, #0b7c70 0%);
}

.hb__art--plain strong {
    font-size: 44px;
    line-height: 1.1;
}

.hb .page > li.hb__cta {
    transform-style: flat;
}

.hb__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    padding: 12px 16px 12px 12px;
    text-align: center;
    transform: scaleX(-1);
}

.hb__page-logo {
    width: 74px;
    height: auto;
}

.hb__page-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

/* the back of the third page: it faces the reader once the book is open */

.hb__facing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 12px 12px 16px;
    text-align: center;
    color: var(--navy);
    transform: translateZ(-1px) scaleZ(-1);
    backface-visibility: hidden;
}

.hb__facing-head {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.hb .hb__toc {
    display: grid;
    gap: 5px;
    width: 100%;
    margin-top: 4px;
    font-size: 9.5px;
    line-height: 1.45;
    text-align: right;
}

.hb__toc li {
    padding-right: 9px;
    border-right: 2px solid var(--yellow);
}

.hb__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .2em .6em;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: color .3s, border-color .3s;
}

.hb__btn:hover {
    color: #16a085;
    border-color: #16a085;
}

.hb__caption {
    position: absolute;
    top: 0;
    right: 160px;
    width: 310px;
    padding-right: 40px;
    text-align: right;
}

.hb__caption h3 a:hover {
    color: #0f8f80;
}

.hb__caption h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

.hb__caption span {
    display: block;
    padding: .6em 0 1em;
    color: #16a085;
}

.hb__caption p {
    color: #63707d;
    line-height: 1.7;
}

/* read + download, beside each book */

.hb__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hb__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: background-color .2s, color .2s, transform .2s;
}

.hb__action--read {
    color: var(--navy);
    background-color: var(--yellow);
}

.hb__action--download {
    color: var(--navy);
    border: 1.5px solid rgba(14, 28, 67, .3);
}

.hb__action:hover {
    color: var(--white);
    background-color: var(--navy);
    transform: translateY(-2px);
}

/* ---------- LTR (English): book on the left, caption on the right ---------- */

.voice-of-aasu[dir="ltr"] .issue--classic {
    padding-right: 0;
    padding-left: 90px;
}

.voice-of-aasu[dir="ltr"] .hb__mirror {
    transform: none;
}

.voice-of-aasu[dir="ltr"] .hb__art {
    transform: none;
}

.voice-of-aasu[dir="ltr"] .hb__cta-inner {
    transform: none;
}

.voice-of-aasu[dir="ltr"] .hb__caption {
    left: 160px;
    right: auto;
    padding-left: 40px;
    padding-right: 0;
    text-align: left;
}

.voice-of-aasu[dir="ltr"] .hb .hb__toc {
    text-align: left;
}

.voice-of-aasu[dir="ltr"] .hb__toc li {
    padding-left: 9px;
    padding-right: 0;
    border-left: 2px solid var(--yellow);
    border-right: 0;
}

.voice-of-aasu[dir="ltr"] .hero6__inner {
    direction: ltr;
}

.voice-of-aasu[dir="ltr"] .heroS__paper {
    order: 2;
}

.voice-of-aasu[dir="ltr"] .hero6__text {
    order: 1;
    text-align: left;
}

.voice-of-aasu[dir="ltr"] .hero__kicker {
    justify-content: flex-start;
}

.voice-of-aasu[dir="ltr"] .hero__actions {
    justify-content: flex-start;
}

.voice-of-aasu[dir="ltr"] .heroS__date {
    right: auto;
    left: 0;
}

.voice-of-aasu[dir="ltr"] .toolbar__field > i {
    left: 16px;
    right: auto;
}

.voice-of-aasu[dir="ltr"] .toolbar__field .form-control {
    padding: 11px 15px 13px 44px !important;
}

.voice-of-aasu[dir="ltr"] .toolbar__sort > i {
    right: 15px;
    left: auto;
}

.voice-of-aasu[dir="ltr"] .toolbar__sort select {
    padding: 11px 44px 13px 15px !important;
}

@media (max-width: 605px) {
.issue--classic {
        min-height: 440px;
        padding-right: 0;
    }

.voice-of-aasu[dir="ltr"] .issue--classic {
        padding-left: 0;
    }

.hb {
        margin: 0 auto;
    }

/* leave room on the right for the opened cover */

.hb__mirror {
        transform: translateX(-52px) scaleX(-1);
    }

.voice-of-aasu[dir="ltr"] .hb__mirror {
        transform: translateX(52px);
    }

.hb__caption {
        top: 250px;
        right: -80px;
        width: 320px;
        padding-right: 0;
        text-align: center;
    }

.voice-of-aasu[dir="ltr"] .hb__caption {
        left: -80px;
        right: auto;
        padding-left: 0;
        text-align: center;
    }
}

/* ---------- Style 6: a stage. The books stand on shelves inside a tinted panel.
   Book and caption sizes are fixed here so the shelves (a repeating background
   on the grid) always land exactly under each row of books. ---------- */

.issues-grid[data-book-style="stage"] {
    --bw: 170px;  /* book width */
    --bh: 240px;  /* book height */
    --cap: 70px;  /* space under the shelf for the caption */
    --rg: 76px;   /* gap between shelves */
    --pt: 112px;  /* room for the heading; keep --cap + --rg at least 30px above it */

    position: relative;
    grid-template-columns: repeat(auto-fit, var(--bw));
    grid-auto-rows: calc(var(--bh) + var(--cap));
    justify-content: center;
    gap: var(--rg) 88px;
    margin-top: 6px;
    padding: var(--pt) 56px 34px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        /* the shelf: lit top edge, front face, soft shadow underneath */
        linear-gradient(to bottom,
            transparent var(--bh),
            #fff var(--bh), #fff calc(var(--bh) + 3px),
            #dde3ee calc(var(--bh) + 3px), #c8d0df calc(var(--bh) + 14px),
            rgba(14, 28, 67, .15) calc(var(--bh) + 14px), rgba(14, 28, 67, 0) calc(var(--bh) + 28px),
            transparent 100%)
            center var(--pt) / calc(100% - 72px) calc(var(--bh) + var(--cap) + var(--rg)) repeat-y,
        radial-gradient(ellipse 70% 90% at 50% 0, #fff 0, rgba(255, 255, 255, 0) 70%),
        #eef1f7;
}

/* ---------- Editorial committee ---------- */

.voice-of-aasu .editorial {
    padding: 48px 50px 40px;
    background:
        radial-gradient(ellipse 60% 80% at 90% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        #f4f1ea;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px -28px rgba(14, 28, 67, .35);
}

.voice-of-aasu .editorial__title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

.voice-of-aasu .editorial__lead {
    margin-top: 8px;
    font-size: 16px;
    color: var(--text);
}

.voice-of-aasu .editorial__members {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
    margin-bottom: 0;
    width: 100%;
    align-items: stretch;
}

.voice-of-aasu .person {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    height: 100%;
    min-height: 168px;
    padding: 26px 14px 22px;
    text-align: center;
    background-color: var(--white);
    border: 1px solid rgba(14, 28, 67, .08);
    border-radius: 6px 20px 6px 20px;
    box-shadow: 0 8px 20px -16px rgba(14, 28, 67, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.voice-of-aasu .person:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(14, 28, 67, .4);
}

.voice-of-aasu .person__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 78px;
    height: 78px;
    overflow: hidden;
    font-size: 22px;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--yellow);
    font-weight: 700;
    color: var(--navy);
    background-color: #e3e8f1;
    border-radius: 50%;
}

.voice-of-aasu .person__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: 1;
}

.voice-of-aasu .person__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--navy);
    /* Keep both rows visually even when names wrap */
    min-height: calc(1.45em * 2);
}

.voice-of-aasu .person__name.is-missing {
    color: #a3a9b6;
    font-weight: 600;
}

.voice-of-aasu .editorial__contact {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14.5px;
    color: var(--text);
    border-top: 1px solid rgba(14, 28, 67, .1);
}

.voice-of-aasu .editorial__contact a {
    font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--yellow);
}

@media (max-width: 1199px) {
.voice-of-aasu .editorial__members {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
.voice-of-aasu .editorial__members {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
.voice-of-aasu .editorial {
        padding: 32px 18px 28px;
    }

.voice-of-aasu .editorial__title {
        font-size: 26px;
    }

.voice-of-aasu .editorial__members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
.voice-of-aasu {
        --header-h: 84px;
        --header-h-stuck: 72px;
    }


.voice-of-aasu .section {
        margin-top: 32px;
    }

.toolbar {
        flex-wrap: wrap;
    }

.toolbar__field {
        flex-basis: 100%;
    }

.toolbar__sort {
        flex: 1;
        width: auto;
    }

}

@media (max-width: 575px) {
.voice-of-aasu .container {
        padding-inline: 16px;
    }

.reader__bar {
        flex-wrap: wrap;
        padding: 8px 12px;
    }

.reader__title {
        flex-basis: 100%;
        font-size: 14px;
    }

.reader__close {
        margin-inline-start: auto;
    }

.toolbar .btn {
        width: auto;
        padding-inline: 22px;
    }

.issues-grid {
        grid-template-columns: repeat(2, minmax(0, 150px));
        justify-content: space-evenly;
        gap: 44px 28px;
        padding-inline: 0;
    }

.issues-grid[data-book-style="stage"] {
        --bw: 132px;
        --bh: 187px;
        --cap: 66px;
        --rg: 66px;
        --pt: 100px;
        gap: var(--rg) 30px;
        padding: var(--pt) 16px 26px;
        background-size: calc(100% - 28px) calc(var(--bh) + var(--cap) + var(--rg)), auto, auto;
    }

/* the open hardcover is nearly two books wide: one per row */

.issues-grid[data-book-style="hardcover"] {
        grid-template-columns: 135px;
        justify-content: center;
        padding-inline: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
*,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

/* ---------- Animations ---------- */

@keyframes draw-write { to { clip-path: inset(0 0 0 0); } }

@keyframes hero6-in { to { opacity: 1; transform: none; } }

@keyframes stamp-down {
    to { opacity: .92; transform: rotate(-7deg) scale(1); filter: blur(.6px); }
}

@keyframes ink-settle {
    from { filter: blur(.6px); }
    to { opacity: .9; transform: rotate(-7deg) scale(1); filter: blur(0); }
}

@keyframes date-down {
    to { opacity: .88; transform: rotate(12deg) scale(1); }
}

@keyframes thud {
    30% { transform: translateY(3px); }
}
