.ajr-page {
    --ajr-ink: #111827;
    --ajr-muted: #64748b;
    --ajr-line: #e2e8f0;
    --ajr-soft: #f8fafc;
    --ajr-primary: #5b21b6;
    --ajr-primary-dark: #3b0764;
    --ajr-accent: #f97316;
    --ajr-success: #15803d;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 20px 80px;
    color: var(--ajr-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ajr-page *,
.ajr-page *::before,
.ajr-page *::after { box-sizing: border-box; }
.ajr-page a { color: inherit; }
.ajr-page img { display: block; max-width: 100%; }

.ajr-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: var(--ajr-muted);
    font-size: 13px;
}
.ajr-breadcrumb a { text-decoration: none; }
.ajr-breadcrumb a:hover { color: var(--ajr-primary); text-decoration: underline; }

.ajr-eyebrow {
    display: inline-flex;
    color: var(--ajr-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.ajr-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    min-height: 420px;
    padding: 58px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(249, 115, 22, .48), transparent 28%),
        radial-gradient(circle at 9% 88%, rgba(59, 130, 246, .34), transparent 30%),
        linear-gradient(135deg, #2e1065 0%, #5b21b6 55%, #7c3aed 100%);
    box-shadow: 0 28px 70px rgba(59, 7, 100, .24);
}
.ajr-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to right, transparent, #000 70%);
}
.ajr-hero__content { position: relative; z-index: 2; max-width: 680px; }
.ajr-hero .ajr-eyebrow { color: #fed7aa; }
.ajr-hero h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: .99;
    letter-spacing: -.045em;
}
.ajr-hero p { max-width: 690px; margin: 0; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.65; }
.ajr-hero__stats { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: 14px; }
.ajr-hero__stats strong { color: #fff; font-size: 20px; }
.ajr-hero__dot { width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: #fdba74; }
.ajr-hero__visual { position: relative; z-index: 2; min-height: 290px; }
.ajr-sheet {
    position: absolute;
    display: flex;
    align-items: flex-end;
    width: 210px;
    height: 275px;
    padding: 25px;
    border: 7px solid rgba(255,255,255,.78);
    border-radius: 16px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
    box-shadow: 0 28px 60px rgba(15,23,42,.35);
}
.ajr-sheet::before { content: ""; position: absolute; inset: 18px 18px 58px; border-radius: 8px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.7) 0 5px, transparent 5px 18px); opacity: .55; }
.ajr-sheet--one { top: 24px; left: 28px; transform: rotate(-12deg); background: #f97316; }
.ajr-sheet--two { top: 3px; left: 106px; transform: rotate(8deg); background: #0ea5e9; }
.ajr-sheet--three { top: 42px; left: 76px; transform: rotate(-1deg); background: #22c55e; }

.ajr-section { margin-top: 66px; }
.ajr-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.ajr-section__heading h2,
.ajr-search h2,
.ajr-editorial h2,
.ajr-faq h2 { margin: 7px 0 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.ajr-section__heading > p { max-width: 420px; margin: 0; color: var(--ajr-muted); line-height: 1.6; }

.ajr-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ajr-category {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid var(--ajr-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(15,23,42,.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ajr-category:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: 0 14px 30px rgba(91,33,182,.1); }
.ajr-category__icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--ajr-primary), #8b5cf6); font-weight: 900; }
.ajr-category:nth-child(3n + 2) .ajr-category__icon { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.ajr-category:nth-child(3n) .ajr-category__icon { background: linear-gradient(135deg, #c2410c, #fb923c); }
.ajr-category__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.ajr-category__text strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.ajr-category__text small { color: var(--ajr-muted); }
.ajr-category__arrow { color: var(--ajr-primary); font-weight: 900; }

.ajr-search {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.45fr);
    gap: 34px;
    margin-top: 66px;
    padding: 32px;
    border: 1px solid #ddd6fe;
    border-radius: 24px;
    background: linear-gradient(135deg, #faf5ff, #f8fafc);
}
.ajr-search__form { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; align-items: end; gap: 12px; }
.ajr-search__form label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #475569; font-size: 12px; font-weight: 800; }
.ajr-search__form input,
.ajr-search__form select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #cbd5e1; border-radius: 12px; color: var(--ajr-ink); background: #fff; font: inherit; font-size: 14px; font-weight: 500; outline: none; }
.ajr-search__form input:focus,
.ajr-search__form select:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.13); }
.ajr-search__form button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; color: #fff; background: var(--ajr-primary); font-weight: 800; cursor: pointer; }
.ajr-search__form button:hover { background: var(--ajr-primary-dark); }
.ajr-search__reset { grid-column: 1 / -1; color: var(--ajr-primary) !important; font-size: 13px; font-weight: 700; text-align: right; }

.ajr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ajr-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ajr-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--ajr-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ajr-card:hover { transform: translateY(-5px); border-color: #c4b5fd; box-shadow: 0 22px 45px rgba(30,41,59,.12); }
.ajr-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ede9fe; text-decoration: none; }
.ajr-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ajr-card:hover .ajr-card__image img { transform: scale(1.035); }
.ajr-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; background: linear-gradient(135deg, #4c1d95, #8b5cf6); font-size: 32px; font-weight: 900; letter-spacing: .08em; }
.ajr-card__badge { position: absolute; top: 13px; right: 13px; padding: 7px 10px; border-radius: 999px; color: #14532d; background: rgba(240,253,244,.94); font-size: 11px; font-weight: 900; text-transform: uppercase; box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.ajr-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ajr-card__category { color: var(--ajr-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ajr-card__title { margin: 7px 0 9px; font-size: 20px; line-height: 1.18; letter-spacing: -.025em; }
.ajr-card__title a { text-decoration: none; }
.ajr-card__title a:hover { color: var(--ajr-primary); }
.ajr-card__description { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ajr-muted); font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ajr-card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.ajr-card__meta span { padding: 5px 8px; border-radius: 7px; color: #475569; background: #f1f5f9; font-size: 11px; font-weight: 700; }
.ajr-card__link { margin-top: auto; color: var(--ajr-primary) !important; font-size: 14px; font-weight: 800; text-decoration: none; }
.ajr-card__link span { margin-left: 4px; transition: margin .18s ease; }
.ajr-card__link:hover span { margin-left: 8px; }

.ajr-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 34px; }
.ajr-pagination > span,
.ajr-pagination > a { display: inline-flex; }
.ajr-pagination a,
.ajr-pagination .current,
.ajr-pagination .is-current { display: grid; min-width: 40px; min-height: 40px; padding: 0 11px; place-items: center; border: 1px solid var(--ajr-line); border-radius: 10px; background: #fff; text-decoration: none; }
.ajr-pagination .current,
.ajr-pagination .is-current { border-color: var(--ajr-primary); color: #fff; background: var(--ajr-primary); }
.ajr-pagination .disabled { display: none; }

.ajr-empty { padding: 42px; border: 1px dashed #cbd5e1; border-radius: 20px; background: var(--ajr-soft); text-align: center; }
.ajr-empty strong { display: block; font-size: 21px; }
.ajr-empty p { color: var(--ajr-muted); }
.ajr-empty a { color: var(--ajr-primary); font-weight: 800; }

.ajr-editorial { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; margin-top: 72px; padding: 44px; border-radius: 26px; color: #fff; background: #111827; }
.ajr-editorial p { color: #cbd5e1; font-size: 16px; line-height: 1.75; }
.ajr-editorial .ajr-eyebrow { color: #fdba74; }
.ajr-editorial--compact { grid-template-columns: 1fr; }
.ajr-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.ajr-steps li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.055); }
.ajr-steps li > span { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 11px; color: #fff; background: var(--ajr-primary); font-weight: 900; }
.ajr-steps li div { display: flex; flex-direction: column; gap: 2px; }
.ajr-steps small { color: #cbd5e1; }

.ajr-faq { max-width: 900px; margin: 72px auto 0; }
.ajr-faq > h2 { margin-bottom: 24px; }
.ajr-faq details { border-top: 1px solid var(--ajr-line); }
.ajr-faq details:last-child { border-bottom: 1px solid var(--ajr-line); }
.ajr-faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; font-size: 17px; font-weight: 800; list-style: none; }
.ajr-faq summary::-webkit-details-marker { display: none; }
.ajr-faq summary::after { content: "+"; position: absolute; top: 16px; right: 4px; color: var(--ajr-primary); font-size: 27px; font-weight: 500; }
.ajr-faq details[open] summary::after { content: "−"; }
.ajr-faq details p { margin: -4px 0 20px; padding-right: 40px; color: var(--ajr-muted); line-height: 1.7; }


.ajr-ad { width: 100%; min-height: 110px; margin: 42px auto; padding: 15px 12px 12px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.04); text-align: center; }
.ajr-ad__label { display: block; margin: 0 0 9px; color: #94a3b8; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ajr-ad .adsbygoogle { min-height: 90px; }
.ajr-ad--after-hero { margin-top: 30px; margin-bottom: 18px; }
.ajr-ad--between-sections { margin-top: 50px; margin-bottom: 10px; }
.ajr-ad--resource-top { max-width: 1100px; margin-top: 38px; margin-bottom: 0; }
.ajr-ad--inside-content { margin-top: 46px; margin-bottom: 20px; }

.ajr-category-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); align-items: center; gap: 38px; padding: 42px; border: 1px solid #ddd6fe; border-radius: 26px; background: linear-gradient(135deg, #faf5ff, #f8fafc); }
.ajr-category-hero h1 { margin: 8px 0 14px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.ajr-category-hero p { max-width: 720px; margin: 0; color: var(--ajr-muted); font-size: 17px; line-height: 1.7; }
.ajr-category-hero img { width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 42px rgba(76,29,149,.16); }
.ajr-category-hero__meta { margin-top: 20px; color: #475569; }
.ajr-category-hero__meta strong { color: var(--ajr-primary); font-size: 24px; }
.ajr-category-hero__mark { display: grid; min-height: 220px; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--ajr-primary), #8b5cf6); font-size: 44px; font-weight: 950; letter-spacing: .08em; box-shadow: 0 20px 42px rgba(76,29,149,.2); }
.ajr-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 38px; align-items: start; margin-top: 54px; }
.ajr-layout__main { margin-top: 0; }
.ajr-sidebar { position: sticky; top: 20px; display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--ajr-line); border-radius: 18px; background: #fff; }
.ajr-sidebar > strong { padding: 17px; border-bottom: 1px solid var(--ajr-line); background: var(--ajr-soft); }
.ajr-sidebar a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 13px; text-decoration: none; }
.ajr-sidebar a:hover,
.ajr-sidebar a.is-active { color: var(--ajr-primary); background: #faf5ff; }
.ajr-sidebar small { color: #94a3b8; }

.ajr-resource__header { max-width: 900px; margin: 18px 0 32px; }
.ajr-resource__header h1 { margin: 10px 0 15px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.ajr-resource__answer { margin: 0; color: #475569; font-size: 19px; line-height: 1.65; }
.ajr-resource__trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 19px; color: var(--ajr-success); font-size: 13px; font-weight: 750; }
.ajr-resource__top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: 26px; }
.ajr-preview { position: relative; overflow: hidden; min-height: 420px; border: 1px solid var(--ajr-line); border-radius: 25px; background: #f1f5f9; }
.ajr-preview > img { width: 100%; min-height: 420px; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.ajr-preview__placeholder { display: grid; min-height: 520px; place-items: center; color: #fff; background: linear-gradient(135deg, #312e81, #7c3aed); font-size: 38px; font-weight: 950; letter-spacing: .08em; }
.ajr-preview__label { position: absolute; right: 16px; bottom: 16px; padding: 8px 11px; border-radius: 9px; color: #fff; background: rgba(15,23,42,.82); font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.ajr-download-card { position: sticky; top: 20px; padding: 26px; border: 1px solid #ddd6fe; border-radius: 23px; background: linear-gradient(145deg, #fff, #faf5ff); box-shadow: 0 20px 48px rgba(76,29,149,.12); }
.ajr-download-card__type { display: inline-flex; padding: 7px 9px; border-radius: 8px; color: #14532d; background: #dcfce7; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ajr-download-card h2 { margin: 12px 0 18px; font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }
.ajr-download-card dl { display: grid; gap: 0; margin: 0 0 20px; }
.ajr-download-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--ajr-line); }
.ajr-download-card dt { color: var(--ajr-muted); font-size: 13px; }
.ajr-download-card dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; }
.ajr-download-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 14px; color: #fff !important; background: linear-gradient(135deg, #ea580c, #f97316); font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 12px 24px rgba(234,88,12,.22); transition: transform .18s ease, box-shadow .18s ease; }
.ajr-download-button:hover { transform: translateY(-2px); box-shadow: 0 17px 30px rgba(234,88,12,.28); }
.ajr-download-button span { font-size: 23px; }
.ajr-download-card__note { margin: 13px 0 0; color: var(--ajr-muted); font-size: 12px; line-height: 1.55; text-align: center; }
.ajr-resource__content { max-width: 880px; margin: 54px auto 0; }
.ajr-prose { margin-top: 44px; }
.ajr-prose h2,
.ajr-info-box h2,
.ajr-gallery h2 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.ajr-prose h3 { margin: 28px 0 10px; font-size: 21px; }
.ajr-prose p,
.ajr-prose li { color: #334155; font-size: 16px; line-height: 1.78; }
.ajr-prose ul,
.ajr-prose ol { padding-left: 24px; }
.ajr-info-box { margin-top: 34px; padding: 26px; border-left: 5px solid var(--ajr-accent); border-radius: 0 16px 16px 0; background: #fff7ed; }
.ajr-info-box h2 { font-size: 23px; }
.ajr-info-box p { margin: 0; color: #7c2d12; line-height: 1.7; }
.ajr-gallery { margin-top: 52px; }
.ajr-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ajr-gallery figure { margin: 0; }
.ajr-gallery figure a { display: block; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--ajr-line); border-radius: 13px; background: var(--ajr-soft); }
.ajr-gallery img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .25s ease; }
.ajr-gallery a:hover img { transform: scale(1.03); }
.ajr-gallery figcaption { padding: 7px 3px; color: var(--ajr-muted); font-size: 12px; }
.ajr-resource__footer { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; padding: 24px 0; border-top: 1px solid var(--ajr-line); border-bottom: 1px solid var(--ajr-line); color: var(--ajr-muted); font-size: 12px; line-height: 1.6; }
.ajr-resource__footer > div { display: flex; flex-direction: column; }
.ajr-resource__footer strong { color: var(--ajr-ink); }
.ajr-resource__footer p { margin: 0; }

@media (max-width: 980px) {
    .ajr-hero { grid-template-columns: 1fr; padding: 44px; }
    .ajr-hero__visual { display: none; }
    .ajr-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ajr-search { grid-template-columns: 1fr; }
    .ajr-search__form { grid-template-columns: 1.4fr 1fr 1fr; }
    .ajr-search__form button { grid-column: 1 / -1; }
    .ajr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ajr-category-hero { grid-template-columns: 1fr; }
    .ajr-category-hero img,
    .ajr-category-hero__mark { max-height: 300px; }
    .ajr-layout { grid-template-columns: 1fr; }
    .ajr-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ajr-sidebar > strong { grid-column: 1 / -1; }
    .ajr-resource__top { grid-template-columns: 1fr; }
    .ajr-download-card { position: static; }
}

@media (max-width: 680px) {
    .ajr-page { padding: 18px 14px 55px; }
    .ajr-breadcrumb { font-size: 11px; }
    .ajr-hero { min-height: 0; padding: 30px 23px; border-radius: 22px; }
    .ajr-hero h1 { font-size: 38px; }
    .ajr-hero p { font-size: 16px; }
    .ajr-hero__stats { align-items: center; }
    .ajr-section { margin-top: 48px; }
    .ajr-section__heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ajr-categories,
    .ajr-grid,
    .ajr-grid--two { grid-template-columns: 1fr; }
    .ajr-search { gap: 24px; margin-top: 48px; padding: 22px; }
    .ajr-search__form { grid-template-columns: 1fr; }
    .ajr-search__form button { grid-column: auto; }
    .ajr-editorial { grid-template-columns: 1fr; gap: 26px; padding: 27px 22px; }
    .ajr-faq { margin-top: 52px; }
    .ajr-category-hero { padding: 27px 22px; }
    .ajr-category-hero h1 { font-size: 37px; }
    .ajr-sidebar { grid-template-columns: 1fr; }
    .ajr-resource__header h1 { font-size: 39px; }
    .ajr-resource__answer { font-size: 16px; }
    .ajr-resource__trust { align-items: flex-start; flex-direction: column; }
    .ajr-preview,
    .ajr-preview > img { min-height: 250px; }
    .ajr-download-card { padding: 21px; }
    .ajr-resource__content { margin-top: 38px; }
    .ajr-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ajr-resource__footer { grid-template-columns: 1fr; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .ajr-page *,
    .ajr-page *::before,
    .ajr-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Amélioration de la lecture des fiches ressources */
.ajr-resource__content {
    max-width: 920px;
}

.ajr-content-panel {
    position: relative;
    margin-top: 34px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .07);
}

.ajr-content-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 0 0 0 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, .09), rgba(249, 115, 22, .04));
    pointer-events: none;
}

.ajr-content-panel--main {
    margin-top: 0;
    border-color: #ddd6fe;
    background: linear-gradient(145deg, #fff 0%, #fdfcff 100%);
}

.ajr-content-panel--tips {
    border-color: #bae6fd;
    background: linear-gradient(145deg, #fff 0%, #f0f9ff 100%);
}

.ajr-content-panel--tips::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, .11), rgba(34, 197, 94, .05));
}

.ajr-content-panel__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 21px;
    border-bottom: 1px solid #e2e8f0;
}

.ajr-content-panel__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(91, 33, 182, .2);
}

.ajr-content-panel--tips .ajr-content-panel__icon {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 10px 24px rgba(2, 132, 199, .18);
}

.ajr-content-panel__eyebrow,
.ajr-info-box__label {
    display: block;
    margin-bottom: 4px;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ajr-content-panel--tips .ajr-content-panel__eyebrow {
    color: #0369a1;
}

.ajr-content-panel__header h2,
.ajr-info-box h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.ajr-prose--inside-panel {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.ajr-prose--inside-panel > :first-child {
    margin-top: 0;
}

.ajr-prose--inside-panel > :last-child {
    margin-bottom: 0;
}

.ajr-prose--inside-panel h2,
.ajr-prose--inside-panel h3 {
    position: relative;
    margin: 28px 0 11px;
    padding-left: 17px;
    color: #1e293b;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.ajr-prose--inside-panel h2::before,
.ajr-prose--inside-panel h3::before {
    content: "";
    position: absolute;
    top: .32em;
    bottom: .25em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #7c3aed, #f97316);
}

.ajr-content-panel--tips .ajr-prose--inside-panel h2::before,
.ajr-content-panel--tips .ajr-prose--inside-panel h3::before {
    background: linear-gradient(to bottom, #0284c7, #22c55e);
}

.ajr-prose--inside-panel p,
.ajr-prose--inside-panel li {
    color: #475569;
    font-size: 16px;
    line-height: 1.82;
}

.ajr-prose--inside-panel p {
    margin: 0 0 17px;
}

.ajr-prose--inside-panel ul,
.ajr-prose--inside-panel ol {
    margin: 13px 0 20px;
    padding-left: 0;
    list-style: none;
    counter-reset: ajr-list;
}

.ajr-prose--inside-panel li {
    position: relative;
    margin: 9px 0;
    padding: 10px 14px 10px 43px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: rgba(248, 250, 252, .8);
}

.ajr-prose--inside-panel ul li::before {
    content: "✓";
    position: absolute;
    top: 9px;
    left: 13px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    color: #166534;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 900;
}

.ajr-prose--inside-panel ol li {
    counter-increment: ajr-list;
}

.ajr-prose--inside-panel ol li::before {
    content: counter(ajr-list);
    position: absolute;
    top: 9px;
    left: 12px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #7c3aed;
    font-size: 12px;
    font-weight: 900;
}

.ajr-resource__practical {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.ajr-resource__practical .ajr-content-panel,
.ajr-resource__practical .ajr-info-box {
    margin-top: 0;
}

.ajr-info-box--material {
    position: relative;
    padding: 27px 30px;
    overflow: hidden;
    border: 1px solid #fed7aa;
    border-left: 6px solid #f97316;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    box-shadow: 0 12px 30px rgba(124, 45, 18, .07);
}

.ajr-info-box__label {
    color: #c2410c;
}

.ajr-info-box--material h2 {
    margin-bottom: 11px;
    font-size: 23px;
}

.ajr-info-box--material p {
    margin: 0;
    color: #7c2d12;
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 680px) {
    .ajr-content-panel {
        padding: 25px 21px;
        border-radius: 19px;
    }

    .ajr-content-panel__header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .ajr-content-panel__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 17px;
    }

    .ajr-content-panel__header h2,
    .ajr-info-box h2 {
        font-size: 23px;
    }

    .ajr-prose--inside-panel h2,
    .ajr-prose--inside-panel h3 {
        font-size: 19px;
    }

    .ajr-prose--inside-panel p,
    .ajr-prose--inside-panel li {
        font-size: 15px;
    }

    .ajr-prose--inside-panel li {
        padding-right: 11px;
    }

    .ajr-info-box--material {
        padding: 23px 20px;
    }
}
