:root {
    --esy-ink: #10281d;
    --esy-muted: #607066;
    --esy-forest: #104522;
    --esy-green: #07552d;
    --esy-leaf: #168548;
    --esy-mint: #dff3e6;
    --esy-mint-soft: #eef8f1;
    --esy-cream: #fff7e4;
    --esy-gold: #c98713;
    --esy-sky: #e7f3f7;
    --esy-blue: #2f7895;
    --esy-violet: #eee8f5;
    --esy-violet-ink: #70528a;
    --esy-border: #d6e4da;
    --esy-canvas: #f3f7f3;
    --esy-white: #fff;
    --esy-shadow: 0 24px 70px rgba(20, 68, 39, .1);
    --esy-ease: cubic-bezier(.16, .95, .24, 1);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--esy-ink);
    background: var(--esy-canvas);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(22, 133, 72, .3);
    outline-offset: 3px;
}

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

.esy-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.esy-header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: 72px;
    border-bottom: 1px solid rgba(16, 69, 34, .12);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.esy-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.esy-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.esy-brand img,
.esy-footer__brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.esy-brand > span,
.esy-footer__brand > span {
    display: grid;
    min-width: 0;
}

.esy-brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.esy-brand small {
    margin-top: 3px;
    color: var(--esy-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.esy-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esy-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #cbded0;
    border-radius: 14px;
    background: var(--esy-white);
    color: var(--esy-forest);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.esy-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.esy-button--manage {
    background: var(--esy-mint-soft);
}

@media (hover: hover) {
    .esy-button:hover {
        border-color: #92bda0;
        background: var(--esy-mint-soft);
        box-shadow: 0 8px 20px rgba(16, 69, 34, .08);
        transform: translateY(-1px);
    }
}

.esy-page {
    overflow: hidden;
    padding: 28px 0 32px;
}

.esy-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 290px;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 36px;
    padding: 44px 48px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 32px;
    background: var(--esy-forest);
    color: var(--esy-white);
    box-shadow: var(--esy-shadow);
}

.esy-hero::before,
.esy-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 30px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
}

.esy-hero::before {
    width: 260px;
    height: 260px;
    top: -155px;
    right: 120px;
}

.esy-hero::after {
    width: 360px;
    height: 360px;
    right: -240px;
    bottom: -270px;
}

.esy-hero__copy,
.esy-hero__mark {
    position: relative;
    z-index: 1;
}

.esy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--esy-leaf);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.esy-hero .esy-eyebrow {
    color: #a8e1b7;
}

.esy-eyebrow::before {
    width: 28px;
    height: 2px;
    flex: 0 0 28px;
    border-radius: 99px;
    background: currentColor;
    content: "";
}

.esy-hero h1 {
    max-width: 740px;
    margin: 14px 0 14px;
    font-size: clamp(34px, 4.5vw, 58px);
    letter-spacing: -.055em;
    line-height: 1.04;
}

.esy-hero__copy > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .77);
    font-size: 15px;
    line-height: 1.75;
}

.esy-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.esy-hero__trust span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #e8f7ec;
    font-size: 11px;
    font-weight: 700;
}

.esy-hero__trust svg {
    width: 17px;
    height: 17px;
}

.esy-hero__mark {
    display: grid;
    width: 190px;
    height: 190px;
    place-content: center;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    text-align: center;
}

.esy-hero__mark::before {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: inherit;
    content: "";
}

.esy-hero__mark span {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: .8;
}

.esy-hero__mark small {
    margin-top: 14px;
    color: #b7dbc1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.esy-levels,
.esy-library,
.esy-method {
    margin-top: 26px;
}

.esy-levels {
    padding: 36px;
    border: 1px solid #cee2d4;
    border-radius: 32px;
    background: var(--esy-mint);
}

.esy-section-heading,
.esy-library__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.esy-section-heading h2,
.esy-library__head h2,
.esy-method h2 {
    margin: 7px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.045em;
    line-height: 1.12;
}

.esy-section-heading > p {
    max-width: 460px;
    margin: 0 0 2px;
    color: var(--esy-muted);
    font-size: 13px;
}

.esy-levels__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.esy-level {
    position: relative;
    display: flex;
    min-height: 340px;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--esy-border);
    border-radius: 22px;
    background: var(--esy-white);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.esy-level::before {
    position: absolute;
    width: 110px;
    height: 110px;
    top: -58px;
    right: -48px;
    border: 18px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: .06;
}

.esy-level--putusan {
    color: var(--esy-green);
}

.esy-level--fatwa {
    color: var(--esy-blue);
}

.esy-level--wacana {
    color: var(--esy-violet-ink);
}

@media (hover: hover) {
    .esy-level:hover {
        border-color: currentColor;
        box-shadow: 0 18px 40px rgba(20, 68, 39, .1);
        transform: translateY(-2px);
    }
}

.esy-level__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.esy-level__number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--esy-white);
    font-size: 12px;
    font-weight: 800;
}

.esy-level--putusan .esy-level__number {
    background: var(--esy-green);
}

.esy-level--fatwa .esy-level__number {
    background: var(--esy-blue);
}

.esy-level--wacana .esy-level__number {
    background: var(--esy-violet-ink);
}

.esy-level__status {
    padding: 6px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, white);
    font-size: 10px;
    font-weight: 800;
}

.esy-level h3 {
    margin: 28px 0 10px;
    color: var(--esy-ink);
    font-size: 21px;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.esy-level > p {
    margin: 0;
    color: var(--esy-muted);
    font-size: 13px;
}

.esy-level__position {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--esy-border);
    color: var(--esy-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.esy-level__position svg {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 7px;
    background: color-mix(in srgb, currentColor 11%, white);
    color: inherit;
}

.esy-level > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    color: currentColor;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.esy-level > a svg {
    width: 20px;
    height: 20px;
    transition: transform 180ms ease;
}

@media (hover: hover) {
    .esy-level > a:hover svg {
        transform: translateX(3px);
    }
}

.esy-library {
    padding: 36px;
    border: 1px solid #e6d8b8;
    border-radius: 32px;
    background: var(--esy-cream);
}

.esy-result-count {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid #e8d8b2;
    border-radius: 999px;
    background: #fffdf7;
    color: var(--esy-muted);
    font-size: 11px;
    font-weight: 700;
}

.esy-result-count strong {
    color: var(--esy-green);
    font-size: 14px;
}

.esy-toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 10px;
    border: 1px solid #e7dabd;
    border-radius: 20px;
    background: var(--esy-white);
}

.esy-search {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}

.esy-search > svg {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    color: #6f8175;
    pointer-events: none;
}

.esy-search input {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 45px;
    border: 1px solid transparent;
    border-radius: 14px;
    outline: 0;
    background: #f5f8f5;
    color: var(--esy-ink);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.esy-search input::-webkit-search-cancel-button {
    display: none;
}

.esy-search input:focus {
    border-color: #9cc7a9;
    background: var(--esy-white);
    box-shadow: 0 0 0 4px rgba(22, 133, 72, .08);
}

.esy-search button {
    position: absolute;
    right: 4px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--esy-muted);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(.75) rotate(-10deg);
    transition: opacity 160ms ease, transform 180ms var(--esy-ease), background-color 160ms ease;
}

.esy-search button[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
}

.esy-search button svg {
    width: 19px;
    height: 19px;
}

@media (hover: hover) {
    .esy-search button:hover {
        background: var(--esy-mint-soft);
    }
}

.esy-tabs {
    display: flex;
    padding: 4px;
    border-radius: 15px;
    background: #edf4ef;
}

.esy-tabs button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--esy-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: color 160ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.esy-tabs button small {
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: rgba(16, 40, 29, .07);
    font-size: 9px;
}

.esy-tabs button[aria-selected="true"] {
    background: var(--esy-white);
    box-shadow: 0 4px 14px rgba(20, 68, 39, .09);
    color: var(--esy-green);
}

.esy-tabs button:active {
    transform: scale(.97);
}

.esy-results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.esy-resource {
    position: relative;
    display: grid;
    min-height: 148px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--esy-border);
    border-left-width: 4px;
    border-radius: 19px;
    background: var(--esy-white);
    transition: opacity 180ms ease, transform 200ms var(--esy-ease), border-color 180ms ease, box-shadow 180ms ease;
}

.esy-resource--putusan {
    border-left-color: var(--esy-leaf);
}

.esy-resource--fatwa {
    border-left-color: var(--esy-blue);
}

.esy-resource--wacana {
    border-left-color: var(--esy-violet-ink);
}

.esy-resource[hidden] {
    display: none !important;
}

.esy-resource.is-leaving {
    opacity: 0;
    transform: translateY(5px);
}

@media (hover: hover) {
    .esy-resource:hover {
        border-color: #aecab7;
        box-shadow: 0 15px 34px rgba(20, 68, 39, .09);
        transform: translateY(-2px);
    }
}

.esy-resource__marker {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    font-size: 12px;
    font-weight: 800;
}

.esy-resource--putusan .esy-resource__marker {
    background: var(--esy-mint);
    color: var(--esy-green);
}

.esy-resource--fatwa .esy-resource__marker {
    background: var(--esy-sky);
    color: var(--esy-blue);
}

.esy-resource--wacana .esy-resource__marker {
    background: var(--esy-violet);
    color: var(--esy-violet-ink);
}

.esy-resource__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--esy-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.esy-resource__meta > span:first-child {
    color: var(--esy-green);
}

.esy-resource__local {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--esy-mint);
    color: var(--esy-green) !important;
}

.esy-resource__meta time::before {
    margin-right: 7px;
    content: "·";
}

.esy-resource h3 {
    margin: 7px 0 6px;
    color: var(--esy-ink);
    font-size: 17px;
    letter-spacing: -.025em;
    line-height: 1.35;
}

.esy-resource__body > p {
    display: -webkit-box;
    max-width: 720px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--esy-muted);
    font-size: 12px;
    line-height: 1.7;
}

.esy-resource__action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #c8dccd;
    border-radius: 13px;
    background: var(--esy-mint-soft);
    color: var(--esy-green);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.esy-resource__action svg {
    width: 17px;
    height: 17px;
}

.esy-resource__action--disabled {
    border-color: #e2e8e3;
    background: #f5f6f5;
    color: #7b867e;
}

@media (hover: hover) {
    .esy-resource__action:not(.esy-resource__action--disabled):hover {
        border-color: #8eb99a;
        background: var(--esy-mint);
        transform: translateY(-1px);
    }
}

.esy-empty {
    margin-top: 16px;
    padding: 36px 20px;
    border: 1px dashed #c8d8cc;
    border-radius: 20px;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.esy-empty[hidden] {
    display: none !important;
}

.esy-empty > div {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 16px;
    background: var(--esy-mint);
    color: var(--esy-green);
}

.esy-empty svg {
    width: 23px;
    height: 23px;
}

.esy-empty h3 {
    margin: 0;
    font-size: 16px;
}

.esy-empty p {
    margin: 5px 0 16px;
    color: var(--esy-muted);
    font-size: 12px;
}

.esy-empty button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #bdd5c3;
    border-radius: 12px;
    background: var(--esy-white);
    color: var(--esy-green);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.esy-method {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 38px;
    border: 1px solid #c9e0e7;
    border-radius: 32px;
    background: var(--esy-sky);
}

.esy-method__intro > p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--esy-muted);
    font-size: 13px;
}

.esy-method__reference {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--esy-blue);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.esy-method__reference svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}

@media (hover: hover) {
    .esy-method__reference:hover svg {
        transform: translate(2px, -2px);
    }
}

.esy-method__steps {
    display: grid;
    align-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.esy-method__steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #c8dfe5;
    border-radius: 16px;
    background: var(--esy-white);
}

.esy-method__steps li > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--esy-sky);
    color: var(--esy-blue);
    font-size: 10px;
    font-weight: 800;
}

.esy-method__steps strong {
    display: block;
    font-size: 12px;
}

.esy-method__steps p {
    margin: 2px 0 0;
    color: var(--esy-muted);
    font-size: 10px;
}

.esy-footer {
    margin-top: 0;
    padding: 0 0 24px;
}

.esy-footer__inner {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    border-radius: 26px;
    background: #0b3320;
    color: var(--esy-white);
}

.esy-footer__brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.esy-footer__brand img {
    filter: saturate(.85);
}

.esy-footer__brand strong {
    font-size: 14px;
}

.esy-footer__brand small {
    margin-top: 3px;
    color: #acd0b7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.esy-footer__credit {
    color: #d0e2d5;
    font-size: 10px;
    line-height: 1.7;
    text-align: right;
}

.esy-footer__credit span {
    display: block;
}

.esy-footer__credit a {
    color: #9ed9ae;
    font-weight: 700;
    text-decoration: none;
}

.prm-motion [data-esy-reveal] {
    opacity: 0;
    transform: translateY(14px);
}

.prm-motion.is-ready [data-esy-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 340ms var(--esy-ease), transform 340ms var(--esy-ease);
    transition-delay: calc(var(--esy-reveal-index, 0) * 42ms);
}

.prm-motion .esy-resource {
    opacity: 0;
    transform: translateY(10px);
}

.prm-motion.is-ready .esy-resource {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--item-index, 0) * 34ms);
}

@media (max-width: 900px) {
    .esy-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
        padding: 36px;
    }

    .esy-hero__mark {
        width: 145px;
        height: 145px;
    }

    .esy-hero__mark span {
        font-size: 58px;
    }

    .esy-levels__grid {
        grid-template-columns: 1fr;
    }

    .esy-level {
        min-height: 0;
    }

    .esy-toolbar {
        grid-template-columns: 1fr;
    }

    .esy-tabs {
        justify-content: stretch;
    }

    .esy-tabs button {
        flex: 1 1 0;
        justify-content: center;
    }

    .esy-resource {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .esy-resource__marker {
        width: 48px;
        height: 48px;
    }

    .esy-resource__action {
        grid-column: 2;
        width: max-content;
    }

    .esy-method {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .esy-brand {
        min-height: 44px;
    }

    .esy-hero__trust span:last-child {
        display: none;
    }

    .esy-search button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .esy-search,
    .esy-search input {
        min-height: 52px;
    }

    body {
        font-size: 14px;
    }

    .esy-shell {
        width: calc(100% - 28px);
    }

    .esy-header,
    .esy-header__inner {
        min-height: 66px;
        height: 66px;
    }

    .esy-brand {
        gap: 9px;
    }

    .esy-brand img {
        width: 36px;
        height: 36px;
    }

    .esy-brand strong {
        font-size: 14px;
    }

    .esy-brand small {
        max-width: 150px;
        overflow: hidden;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .esy-header__actions {
        gap: 6px;
    }

    .esy-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 13px;
    }

    .esy-button span {
        display: none;
    }

    .esy-page {
        padding: 14px 0 22px;
    }

    .esy-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 22px 20px 18px;
        border-radius: 24px;
    }

    .esy-hero::before {
        right: -130px;
    }

    .esy-hero__mark {
        position: absolute;
        width: auto;
        height: auto;
        top: 18px;
        right: 18px;
        display: flex;
        align-items: baseline;
        gap: 5px;
        padding: 8px 10px;
        border-radius: 13px;
        background: rgba(255, 255, 255, .08);
    }

    .esy-hero__mark::before {
        display: none;
    }

    .esy-hero__mark span {
        font-size: 22px;
        line-height: 1;
    }

    .esy-hero__mark small {
        margin: 0;
        font-size: 7px;
        line-height: 1.2;
        text-align: left;
    }

    .esy-eyebrow {
        padding-right: 70px;
        font-size: 9px;
    }

    .esy-hero h1 {
        margin: 12px 0 10px;
        font-size: 29px;
        line-height: 1.08;
    }

    .esy-hero__copy > p {
        font-size: 12px;
        line-height: 1.7;
    }

    .esy-hero__trust {
        gap: 6px;
        margin-top: 16px;
    }

    .esy-hero__trust span {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 9px;
    }

    .esy-levels,
    .esy-library,
    .esy-method {
        margin-top: 16px;
        border-radius: 24px;
    }

    .esy-levels,
    .esy-library {
        padding: 20px 14px;
    }

    .esy-section-heading,
    .esy-library__head {
        display: block;
    }

    .esy-section-heading h2,
    .esy-library__head h2,
    .esy-method h2 {
        font-size: 25px;
    }

    .esy-section-heading > p {
        margin-top: 9px;
        font-size: 11px;
    }

    .esy-levels__grid {
        gap: 9px;
        margin-top: 18px;
    }

    .esy-level {
        padding: 17px;
        border-radius: 18px;
    }

    .esy-level__number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 10px;
    }

    .esy-level__status {
        font-size: 8px;
    }

    .esy-level h3 {
        margin: 16px 0 6px;
        font-size: 17px;
    }

    .esy-level > p {
        font-size: 11px;
    }

    .esy-level__position {
        margin-top: 12px;
        padding-top: 12px;
        font-size: 10px;
    }

    .esy-level > a {
        margin-top: 6px;
        padding-top: 12px;
        font-size: 10px;
    }

    .esy-result-count {
        margin-top: 12px;
    }

    .esy-toolbar {
        gap: 8px;
        margin-top: 14px;
        padding: 7px;
        border-radius: 17px;
    }

    .esy-search input {
        height: 46px;
        font-size: 12px;
    }

    .esy-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .esy-tabs::-webkit-scrollbar {
        display: none;
    }

    .esy-tabs button {
        min-width: max-content;
        flex: 1 0 auto;
        padding: 0 10px;
        font-size: 10px;
    }

    .esy-results {
        gap: 8px;
        margin-top: 12px;
    }

    .esy-resource {
        min-height: 0;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
        gap: 11px;
        padding: 15px 13px;
        border-radius: 17px;
    }

    .esy-resource__marker {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 9px;
    }

    .esy-resource__meta {
        gap: 5px;
        font-size: 7.5px;
    }

    .esy-resource h3 {
        margin: 5px 0 5px;
        font-size: 14px;
    }

    .esy-resource__body > p {
        font-size: 10.5px;
        line-height: 1.65;
    }

    .esy-resource__action {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 42px;
        margin-top: 2px;
        font-size: 9px;
    }

    .esy-empty {
        padding: 28px 16px;
    }

    .esy-method {
        gap: 18px;
        padding: 22px 18px;
    }

    .esy-method__intro > p {
        font-size: 11px;
    }

    .esy-method__steps li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    .esy-method__steps li > span {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .esy-method__steps strong {
        font-size: 11px;
    }

    .esy-method__steps p {
        font-size: 9px;
    }

    .esy-footer {
        padding-bottom: 14px;
    }

    .esy-footer__inner {
        display: grid;
        min-height: 0;
        gap: 16px;
        padding: 20px;
        border-radius: 22px;
    }

    .esy-footer__credit {
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        font-size: 9px;
        line-height: 1.75;
        text-align: left;
    }
}

@supports not (color: color-mix(in srgb, red, white)) {
    .esy-level__status,
    .esy-level__position svg {
        background: var(--esy-mint-soft);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .prm-motion [data-esy-reveal],
    .prm-motion .esy-resource {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   e-Syar'i content library: Tanya Jawab Agama
   -------------------------------------------------------------------------- */

.esy-book-showcase,
.esy-topic-library,
.esy-article__hero,
.esy-answer,
.esy-citations,
.esy-source-card,
.esy-context-card {
    border: 1px solid var(--esy-border);
    box-shadow: var(--esy-shadow);
}

.esy-book-showcase {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) minmax(230px, 290px);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    margin-top: 24px;
    padding: clamp(24px, 4vw, 46px);
    border-radius: 32px;
    background: var(--esy-cream);
}

.esy-book-showcase::before {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -128px;
    right: 17%;
    border: 28px solid rgba(201, 135, 19, .09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.esy-book-cover {
    position: relative;
    z-index: 1;
    margin: 0;
}

.esy-book-cover img {
    display: block;
    width: min(100%, 236px);
    aspect-ratio: 921 / 1383;
    margin-inline: auto;
    border: 8px solid rgba(255, 255, 255, .8);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 22px 42px rgba(37, 66, 45, .2);
    transform: rotate(-1.3deg);
    transition: transform 220ms var(--esy-ease), box-shadow 220ms ease;
}

.esy-book-cover figcaption {
    max-width: 210px;
    margin: 12px auto 0;
    color: #6e705f;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

@media (hover: hover) {
    .esy-book-showcase:hover .esy-book-cover img {
        box-shadow: 0 26px 52px rgba(37, 66, 45, .25);
        transform: rotate(0) translateY(-2px);
    }
}

.esy-book-showcase__content {
    position: relative;
    z-index: 1;
}

.esy-book-showcase__content h2 {
    max-width: 640px;
    margin: 13px 0 13px;
    font-size: clamp(30px, 4vw, 49px);
    letter-spacing: -.045em;
    line-height: 1.06;
}

.esy-book-showcase__content > p {
    max-width: 690px;
    margin: 0;
    color: #52625a;
    font-size: 14px;
    line-height: 1.8;
}

.esy-book-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 0;
}

.esy-book-facts div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e9d9ad;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.esy-book-facts dt {
    color: var(--esy-forest);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.esy-book-facts dd {
    margin: 2px 0 0;
    color: #6d756e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.esy-book-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.esy-primary-link,
.esy-secondary-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid var(--esy-forest);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.esy-primary-link {
    background: var(--esy-forest);
    color: var(--esy-white);
}

.esy-secondary-link {
    background: rgba(255, 255, 255, .72);
    color: var(--esy-forest);
}

.esy-primary-link svg {
    width: 17px;
    height: 17px;
}

@media (hover: hover) {
    .esy-primary-link:hover,
    .esy-secondary-link:hover {
        box-shadow: 0 10px 22px rgba(16, 69, 34, .12);
        transform: translateY(-1px);
    }

    .esy-secondary-link:hover {
        border-color: #86b296;
        background: var(--esy-white);
    }
}

.esy-book-note {
    position: relative;
    z-index: 1;
    display: grid;
    align-self: stretch;
    align-content: start;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: var(--esy-forest);
    color: var(--esy-white);
}

.esy-book-note > svg {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    color: #b9e5c5;
}

.esy-book-note strong {
    display: block;
    font-size: 13px;
}

.esy-book-note p {
    margin: 8px 0 0;
    color: #c5dbcc;
    font-size: 10.5px;
    line-height: 1.75;
}

.esy-topic-library {
    scroll-margin-top: 92px;
    margin-top: 24px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 32px;
    background: var(--esy-mint);
}

.esy-library__head > div > p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--esy-muted);
    font-size: 12px;
}

.esy-topic-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 10px;
    margin-top: 22px;
    padding: 8px;
    border: 1px solid #bcd9c6;
    border-radius: 19px;
    background: rgba(255, 255, 255, .68);
}

.esy-search--topics {
    background: var(--esy-white);
}

.esy-topic-tabs,
.esy-reference-tabs {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.esy-topic-tabs button,
.esy-reference-tabs button {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #52675a;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.esy-topic-tabs button small,
.esy-reference-tabs button small {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 8px;
    background: rgba(16, 69, 34, .08);
    font-size: 8px;
}

.esy-topic-tabs button[aria-selected="true"],
.esy-reference-tabs button[aria-selected="true"] {
    border-color: #b3d4bd;
    background: var(--esy-mint-soft);
    color: var(--esy-forest);
    box-shadow: 0 6px 16px rgba(16, 69, 34, .07);
}

@media (hover: hover) {
    .esy-topic-tabs button:not([aria-selected="true"]):hover,
    .esy-reference-tabs button:not([aria-selected="true"]):hover {
        border-color: #c6ddcd;
        background: rgba(255, 255, 255, .75);
    }
}

.esy-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.prm-motion .esy-topic-card {
    opacity: 0;
    transform: translateY(10px);
}

.prm-motion.is-ready .esy-topic-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms var(--esy-ease), transform 300ms var(--esy-ease), border-color 190ms ease, box-shadow 190ms ease;
    transition-delay: calc(var(--item-index, 0) * 34ms);
}

.esy-topic-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 270px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--esy-border);
    border-left: 5px solid var(--topic-accent, var(--esy-leaf));
    border-radius: 20px;
    background: var(--topic-surface, var(--esy-white));
    box-shadow: 0 12px 28px rgba(20, 68, 39, .07);
    transition: border-color 190ms ease, box-shadow 190ms ease, transform 190ms var(--esy-ease);
}

.esy-topic-card--aqidah {
    --topic-accent: var(--esy-leaf);
    --topic-surface: #f7fcf8;
}

.esy-topic-card--quran-hadis {
    --topic-accent: var(--esy-gold);
    --topic-surface: #fffaf0;
}

.esy-topic-card--makhluk-surga {
    --topic-accent: var(--esy-blue);
    --topic-surface: #f4fafc;
}

.esy-topic-card[hidden],
.esy-reference-tabs [hidden] {
    display: none !important;
}

.esy-topic-card.is-leaving {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
    .esy-topic-card:hover {
        border-color: color-mix(in srgb, var(--topic-accent) 46%, var(--esy-border));
        box-shadow: 0 18px 34px rgba(20, 68, 39, .11);
        transform: translateY(-2px);
    }
}

.esy-topic-card__top,
.esy-topic-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esy-topic-card__number {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    background: var(--topic-accent);
    color: var(--esy-white);
    font-size: 10px;
    font-weight: 800;
}

.esy-topic-card__section {
    color: var(--topic-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.esy-topic-card h3 {
    margin: 18px 0 8px;
    font-size: 19px;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.esy-topic-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #56665d;
    font-size: 11.5px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.esy-topic-card__meta {
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

.esy-topic-card__meta span {
    padding: 6px 9px;
    border-radius: 9px;
    background: rgba(16, 69, 34, .06);
    color: #647269;
    font-size: 8px;
    font-weight: 700;
}

.esy-topic-card > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--topic-accent) 36%, var(--esy-border));
    border-radius: 13px;
    background: rgba(255, 255, 255, .65);
    color: var(--esy-forest);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.esy-topic-card > a svg {
    width: 17px;
    height: 17px;
    transition: transform 180ms var(--esy-ease);
}

@media (hover: hover) {
    .esy-topic-card > a:hover {
        border-color: var(--topic-accent);
        background: var(--esy-white);
    }

    .esy-topic-card > a:hover svg {
        transform: translateX(2px);
    }
}

.esy-library--references {
    scroll-margin-top: 92px;
    background: var(--esy-cream);
}

.esy-reference-tabs {
    width: max-content;
    max-width: 100%;
    margin-top: 20px;
    padding: 6px;
    border: 1px solid #ead9ad;
    border-radius: 17px;
    background: rgba(255, 255, 255, .68);
}

.esy-reference-tabs button {
    min-width: 105px;
    flex: 0 0 auto;
}

.esy-results--references {
    margin-top: 15px;
}

.esy-back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--esy-forest);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.esy-back-link svg {
    width: 18px;
    height: 18px;
}

.esy-page--reader {
    overflow: visible;
}

.esy-article__hero {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 175px;
    gap: clamp(24px, 4vw, 50px);
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 32px;
    background: var(--esy-forest);
    color: var(--esy-white);
}

.esy-article__hero::after {
    position: absolute;
    width: 320px;
    height: 320px;
    right: -170px;
    bottom: -230px;
    border: 30px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    content: "";
}

.esy-article__identity,
.esy-article__book {
    position: relative;
    z-index: 1;
}

.esy-article__hero .esy-eyebrow {
    color: #a8e1b7;
}

.esy-article__hero h1 {
    max-width: 820px;
    margin: 15px 0 20px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.055em;
    line-height: 1.04;
}

.esy-article__question {
    max-width: 820px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.esy-article__question > span {
    display: block;
    color: #a8e1b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.esy-article__question p {
    margin: 7px 0 0;
    color: #eef8f1;
    font-size: 14px;
    line-height: 1.75;
}

.esy-article__book {
    margin: 0;
}

.esy-article__book img {
    display: block;
    width: 150px;
    aspect-ratio: 921 / 1383;
    margin-inline: auto;
    border: 6px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .23);
}

.esy-article__book figcaption {
    margin-top: 10px;
    color: #d6eadd;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.esy-article__book small {
    display: block;
    margin-top: 2px;
    color: #a9c9b2;
    font-size: 8px;
}

.esy-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.esy-article__main,
.esy-article__aside {
    display: grid;
    gap: 18px;
}

.esy-article__aside {
    position: sticky;
    top: 90px;
}

.esy-answer {
    padding: clamp(24px, 4vw, 44px);
    border-radius: 28px;
    background: var(--esy-cream);
}

.esy-answer__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8d9b7;
}

.esy-answer__number {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border-radius: 15px;
    background: var(--esy-forest);
    color: var(--esy-white);
    font-size: 11px;
    font-weight: 800;
}

.esy-answer h2,
.esy-citations h2,
.esy-source-card h2,
.esy-context-card h2 {
    margin: 6px 0 0;
    font-size: clamp(21px, 3vw, 30px);
    letter-spacing: -.035em;
    line-height: 1.2;
}

.esy-prose {
    max-width: 76ch;
    margin: 28px auto 0;
}

.esy-prose p {
    margin: 0;
    color: #26372d;
    font-size: 15px;
    line-height: 1.9;
}

.esy-prose p + p {
    margin-top: 20px;
}

.esy-prose__lead {
    padding: 18px 20px;
    border-left: 4px solid var(--esy-gold);
    border-radius: 0 15px 15px 0;
    background: rgba(255, 255, 255, .7);
    color: var(--esy-forest) !important;
    font-size: 16px !important;
    font-weight: 600;
}

.esy-citations {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 26px;
    background: var(--esy-sky);
}

.esy-citations ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.esy-citations li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #c8e0e7;
    border-radius: 13px;
    background: rgba(255, 255, 255, .78);
    color: #274653;
    font-size: 10.5px;
    font-weight: 700;
}

.esy-citations li svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: #dff0f5;
    color: var(--esy-blue);
}

.esy-source-card,
.esy-context-card {
    padding: 24px;
    border-radius: 24px;
}

.esy-source-card {
    background: var(--esy-mint);
}

.esy-source-card h2,
.esy-context-card h2 {
    font-size: 19px;
}

.esy-source-card dl {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
}

.esy-source-card dl div {
    padding: 10px 12px;
    border: 1px solid #c4dfcd;
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
}

.esy-source-card dt {
    color: #698071;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.esy-source-card dd {
    margin: 3px 0 0;
    color: var(--esy-forest);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.55;
}

.esy-source-card > p {
    margin: 16px 0 0;
    padding-top: 15px;
    border-top: 1px solid #c4dfcd;
    color: #53685b;
    font-size: 9.5px;
    line-height: 1.75;
}

.esy-context-card {
    background: var(--esy-violet);
}

.esy-context-links {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.esy-context-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 11px 10px 11px 12px;
    border: 1px solid #d9cce6;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--esy-ease);
}

.esy-context-links strong,
.esy-context-links small {
    display: block;
}

.esy-context-links strong {
    color: #4f3e60;
    font-size: 9.5px;
    line-height: 1.45;
}

.esy-context-links small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: #73667e;
    font-size: 8px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.esy-context-links svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 10px;
    background: #e5daf0;
    color: var(--esy-violet-ink);
}

@media (hover: hover) {
    .esy-context-links a:hover {
        border-color: #bea9d2;
        background: var(--esy-white);
        transform: translateY(-1px);
    }
}

.esy-article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.esy-article-nav__link {
    display: grid;
    min-width: 0;
    min-height: 88px;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--esy-border);
    border-radius: 18px;
    background: var(--esy-white);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--esy-ease);
}

.esy-article-nav__link > span {
    min-width: 0;
}

.esy-article-nav__link--next {
    grid-template-columns: minmax(0, 1fr) 36px;
    text-align: right;
}

.esy-article-nav svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 11px;
    background: var(--esy-mint-soft);
    color: var(--esy-forest);
}

.esy-article-nav small,
.esy-article-nav strong {
    display: block;
}

.esy-article-nav small {
    color: var(--esy-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.esy-article-nav strong {
    margin-top: 3px;
    color: var(--esy-ink);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

@media (hover: hover) {
    .esy-article-nav__link:hover {
        border-color: #9dc6aa;
        box-shadow: 0 12px 24px rgba(20, 68, 39, .09);
        transform: translateY(-1px);
    }
}

/* Internal reader for curated Tarjih references */
.esy-reference-reader {
    display: grid;
    gap: 18px;
}

.esy-reference-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 148px;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    min-height: 310px;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 32px;
    background: var(--esy-forest);
    color: var(--esy-white);
}

.esy-reference-hero::after {
    position: absolute;
    right: -88px;
    bottom: -116px;
    width: 270px;
    height: 270px;
    border: 34px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    content: "";
}

.esy-reference-hero__copy,
.esy-reference-hero__mark {
    position: relative;
    z-index: 1;
}

.esy-reference-hero .esy-eyebrow {
    color: #a8e1b7;
}

.esy-reference-hero h1 {
    max-width: 880px;
    margin: 14px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.055em;
    line-height: 1.04;
}

.esy-reference-hero__copy > p {
    max-width: 780px;
    margin: 0;
    color: #dceee2;
    font-size: 14px;
    line-height: 1.78;
}

.esy-reference-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.esy-reference-hero__meta span {
    min-height: 32px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #eef8f1;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

.esy-reference-hero__mark {
    display: grid;
    width: 148px;
    aspect-ratio: 1;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    background: var(--esy-cream);
    color: var(--esy-forest);
    text-align: center;
    box-shadow: 0 22px 42px rgba(0, 0, 0, .16);
}

.esy-reference-hero__mark span,
.esy-reference-hero__mark small {
    display: block;
}

.esy-reference-hero__mark span {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .95;
}

.esy-reference-hero__mark small {
    margin-top: 9px;
    color: var(--esy-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.esy-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 18px;
}

.esy-reference-main {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.esy-reference-brief {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
    background: var(--esy-sky);
}

.esy-reference-brief h2,
.esy-reference-section h2,
.esy-reference-sources h2,
.esy-reference-aside h2 {
    margin: 7px 0 0;
    letter-spacing: -.04em;
    line-height: 1.18;
}

.esy-reference-brief h2 {
    font-size: clamp(24px, 3.2vw, 34px);
}

.esy-reference-brief__intro > p {
    max-width: 68ch;
    margin: 18px 0 0;
    color: #29444d;
    font-size: 15px;
    line-height: 1.88;
}

.esy-reference-brief ul {
    display: grid;
    align-content: start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.esy-reference-brief li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 12px;
    border: 1px solid #c7e0e8;
    border-radius: 15px;
    background: #f8fcfd;
}

.esy-reference-brief li > span {
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 11px;
    background: #d6ebf1;
    color: var(--esy-blue);
    font-size: 9px;
    font-weight: 800;
}

.esy-reference-brief li p {
    margin: 1px 0 0;
    color: #26434d;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.62;
}

.esy-reference-sections {
    display: grid;
    gap: 12px;
}

.esy-reference-section {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 42px);
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #d8e5dc;
    border-radius: 26px;
    background: var(--esy-cream);
}

.esy-reference-section:nth-child(3n + 2) {
    background: var(--esy-mint-soft);
}

.esy-reference-section:nth-child(3n) {
    border-color: #d9cfe5;
    background: var(--esy-violet);
}

.esy-reference-section__heading > span {
    display: grid;
    width: 38px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 12px;
    background: var(--esy-forest);
    color: var(--esy-white);
    font-size: 9px;
    font-weight: 800;
}

.esy-reference-section h2 {
    font-size: clamp(20px, 2.4vw, 27px);
}

.esy-reference-section__body {
    max-width: 72ch;
}

.esy-reference-section__body p {
    margin: 0;
    color: #293a30;
    font-size: 15px;
    line-height: 1.88;
}

.esy-reference-section__body p + p {
    margin-top: 17px;
}

.esy-reference-sources {
    display: grid;
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
    background: var(--esy-forest);
    color: var(--esy-white);
}

.esy-reference-sources .esy-eyebrow {
    color: #a8e1b7;
}

.esy-reference-sources h2 {
    font-size: clamp(23px, 3vw, 32px);
}

.esy-reference-sources__heading > p {
    margin: 15px 0 0;
    color: #cae2d1;
    font-size: 11px;
    line-height: 1.75;
}

.esy-reference-sources__list {
    display: grid;
    gap: 8px;
}

.esy-reference-sources__list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 12px 12px 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--esy-ease);
}

.esy-reference-sources__list strong,
.esy-reference-sources__list small {
    display: block;
}

.esy-reference-sources__list strong {
    color: var(--esy-white);
    font-size: 11px;
    line-height: 1.5;
}

.esy-reference-sources__list small {
    margin-top: 4px;
    color: #c5dfcc;
    font-size: 9px;
    line-height: 1.55;
}

.esy-reference-sources__list svg {
    width: 38px;
    height: 38px;
    padding: 10px;
    border-radius: 12px;
    background: var(--esy-cream);
    color: var(--esy-forest);
}

.esy-reference-aside {
    position: sticky;
    top: 90px;
    padding: 25px;
    border: 1px solid #e5d4a6;
    border-radius: 24px;
    background: var(--esy-cream);
}

.esy-reference-aside__number {
    display: grid;
    width: 56px;
    aspect-ratio: 1;
    place-items: center;
    margin-top: 18px;
    border-radius: 17px;
    background: var(--esy-forest);
    color: var(--esy-white);
    font-size: 15px;
    font-weight: 800;
}

.esy-reference-aside h2 {
    font-size: 22px;
}

.esy-reference-aside > p {
    margin: 12px 0 0;
    color: #53685b;
    font-size: 11px;
    line-height: 1.72;
}

.esy-reference-aside > div:not(.esy-reference-aside__number) {
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #e4d6b2;
    border-radius: 14px;
    background: #fffdf7;
}

.esy-reference-aside > div strong,
.esy-reference-aside > div span {
    display: block;
}

.esy-reference-aside > div strong {
    color: var(--esy-gold);
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.esy-reference-aside > div span {
    margin-top: 5px;
    color: var(--esy-ink);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.6;
}

.esy-reference-aside > small {
    display: block;
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #e4d6b2;
    color: #6d756f;
    font-size: 8.5px;
    line-height: 1.7;
}

@media (hover: hover) {
    .esy-reference-sources__list a:hover {
        border-color: rgba(255, 255, 255, .3);
        background: rgba(255, 255, 255, .13);
        transform: translateY(-1px);
    }
}

@media (max-width: 980px) {
    .esy-book-showcase {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .esy-book-note {
        grid-column: 1 / -1;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
    }

    .esy-topic-toolbar {
        grid-template-columns: 1fr;
    }

    .esy-article__layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .esy-reference-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .esy-reference-brief,
    .esy-reference-sources {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .esy-book-showcase {
        grid-template-columns: 135px minmax(0, 1fr);
        gap: 20px;
    }

    .esy-book-cover figcaption {
        display: none;
    }

    .esy-book-facts {
        grid-column: 1 / -1;
    }

    .esy-topic-grid,
    .esy-article__layout,
    .esy-citations {
        grid-template-columns: 1fr;
    }

    .esy-article__aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .esy-book-showcase,
    .esy-topic-library,
    .esy-article__hero {
        border-radius: 24px;
    }

    .esy-book-showcase {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 16px;
        margin-top: 16px;
        padding: 18px;
    }

    .esy-book-cover img {
        width: 96px;
        border-width: 4px;
        border-radius: 12px;
        box-shadow: 0 13px 26px rgba(37, 66, 45, .18);
        transform: none;
    }

    .esy-book-showcase__content h2 {
        margin: 8px 0 7px;
        font-size: 22px;
    }

    .esy-book-showcase__content > p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 10.5px;
        line-height: 1.65;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .esy-book-facts {
        grid-column: 1 / -1;
        margin-top: 2px;
    }

    .esy-book-facts div {
        padding: 10px 8px;
        text-align: center;
    }

    .esy-book-facts dt {
        font-size: 16px;
    }

    .esy-book-facts dd {
        font-size: 7px;
    }

    .esy-book-showcase__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
    }

    .esy-primary-link,
    .esy-secondary-link {
        min-height: 44px;
        padding: 0 10px;
        font-size: 9px;
    }

    .esy-book-note {
        grid-column: 1 / -1;
        gap: 12px;
        padding: 15px;
        border-radius: 17px;
    }

    .esy-book-note > svg {
        width: 36px;
        height: 36px;
    }

    .esy-book-note strong {
        font-size: 11px;
    }

    .esy-book-note p {
        font-size: 9px;
    }

    .esy-topic-library {
        margin-top: 16px;
        padding: 20px 14px;
    }

    .esy-library__head > div > p {
        font-size: 10px;
    }

    .esy-topic-toolbar {
        margin-top: 14px;
        padding: 6px;
        border-radius: 16px;
    }

    .esy-topic-tabs,
    .esy-reference-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .esy-topic-tabs::-webkit-scrollbar,
    .esy-reference-tabs::-webkit-scrollbar {
        display: none;
    }

    .esy-topic-tabs button,
    .esy-reference-tabs button {
        min-width: max-content;
        min-height: 44px;
        flex: 0 0 auto;
        padding: 0 10px;
        font-size: 9px;
    }

    .esy-topic-grid {
        gap: 9px;
        margin-top: 11px;
    }

    .esy-topic-card {
        min-height: 0;
        padding: 16px;
        border-left-width: 4px;
        border-radius: 17px;
    }

    .esy-topic-card__number {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 9px;
    }

    .esy-topic-card__section {
        font-size: 8px;
    }

    .esy-topic-card h3 {
        margin: 13px 0 6px;
        font-size: 15px;
    }

    .esy-topic-card > p {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .esy-topic-card__meta {
        margin-top: 12px;
        padding-top: 0;
    }

    .esy-topic-card > a {
        margin-top: 10px;
        font-size: 9px;
    }

    .esy-library--references {
        margin-top: 16px;
    }

    .esy-reference-tabs {
        width: 100%;
        margin-top: 13px;
    }

    .esy-back-link {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .esy-article__hero {
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 12px;
        padding: 22px 18px;
    }

    .esy-article__hero h1 {
        margin: 10px 0 13px;
        font-size: 29px;
    }

    .esy-article__question {
        grid-column: 1 / -1;
        padding: 14px;
        border-radius: 15px;
    }

    .esy-article__question p {
        font-size: 11px;
        line-height: 1.7;
    }

    .esy-article__book img {
        width: 72px;
        border-width: 3px;
        border-radius: 9px;
    }

    .esy-article__book figcaption {
        display: none;
    }

    .esy-article__layout,
    .esy-article__main,
    .esy-article__aside {
        gap: 12px;
    }

    .esy-answer,
    .esy-citations,
    .esy-source-card,
    .esy-context-card {
        border-radius: 21px;
    }

    .esy-answer {
        padding: 20px 17px;
    }

    .esy-answer__heading {
        gap: 11px;
        padding-bottom: 17px;
    }

    .esy-answer__number {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }

    .esy-answer h2,
    .esy-citations h2 {
        font-size: 20px;
    }

    .esy-prose {
        margin-top: 20px;
    }

    .esy-prose p {
        font-size: 14px;
        line-height: 1.82;
    }

    .esy-prose p + p {
        margin-top: 15px;
    }

    .esy-prose__lead {
        padding: 14px;
        font-size: 14.5px !important;
    }

    .esy-citations {
        gap: 15px;
        padding: 19px 16px;
    }

    .esy-article__aside {
        grid-template-columns: 1fr;
    }

    .esy-source-card,
    .esy-context-card {
        padding: 18px;
    }

    .esy-article-nav {
        grid-template-columns: 1fr;
    }

    .esy-article-nav > span {
        display: none;
    }

    .esy-article-nav__link {
        min-height: 76px;
        padding: 12px 14px;
    }

    .esy-article-nav strong {
        font-size: 12.5px;
    }

    .esy-reference-hero {
        grid-template-columns: minmax(0, 1fr) 84px;
        min-height: 0;
        gap: 14px;
        padding: 23px 18px;
        border-radius: 24px;
    }

    .esy-reference-hero h1 {
        margin: 10px 0 12px;
        font-size: 30px;
    }

    .esy-reference-hero__copy > p {
        font-size: 11px;
        line-height: 1.7;
    }

    .esy-reference-hero__meta {
        grid-column: 1 / -1;
        margin-top: 15px;
    }

    .esy-reference-hero__mark {
        width: 84px;
        border-radius: 20px;
    }

    .esy-reference-hero__mark span {
        font-size: 32px;
    }

    .esy-reference-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .esy-reference-main {
        gap: 12px;
    }

    .esy-reference-aside {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 5px 12px;
        padding: 17px;
        border-radius: 20px;
    }

    .esy-reference-aside .esy-eyebrow {
        grid-column: 1 / -1;
    }

    .esy-reference-aside__number {
        width: 44px;
        grid-row: 2 / span 2;
        margin: 7px 0 0;
        border-radius: 13px;
    }

    .esy-reference-aside h2 {
        align-self: end;
        margin-top: 7px;
        font-size: 18px;
    }

    .esy-reference-aside > p {
        margin-top: 1px;
        font-size: 10px;
    }

    .esy-reference-aside > div:not(.esy-reference-aside__number),
    .esy-reference-aside > small {
        grid-column: 1 / -1;
    }

    .esy-reference-brief {
        gap: 18px;
        padding: 20px 17px;
        border-radius: 21px;
    }

    .esy-reference-brief__intro > p,
    .esy-reference-section__body p {
        font-size: 14px;
        line-height: 1.8;
    }

    .esy-reference-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 17px;
        border-radius: 21px;
    }

    .esy-reference-section__heading {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
    }

    .esy-reference-section h2 {
        margin: 0;
        font-size: 20px;
    }

    .esy-reference-sources {
        gap: 17px;
        padding: 20px 17px;
        border-radius: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prm-motion .esy-topic-card,
    .esy-book-cover img,
    .esy-topic-card,
    .esy-topic-card > a svg,
    .esy-context-links a,
    .esy-article-nav__link {
        transform: none !important;
        transition: none !important;
    }

    .esy-reference-sources__list a {
        transform: none !important;
        transition: none !important;
    }
}
