.arx-page {
    --c-text: #13243d;
    --c-muted: #60718a;
    --c-line: rgba(210, 223, 241, 0.75);
    --c-blue: #486fa8;
    --c-blue-dark: #345986;
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans KR", "Segoe UI", sans-serif;
    background: transparent;
    min-height: calc(100vh - 120px);
}

.arx-body {
    --arx-catch-bg:
        radial-gradient(900px 420px at 14% 22%, rgba(225, 234, 248, 0.62) 0%, transparent 60%),
        radial-gradient(1100px 520px at 86% 84%, rgba(206, 222, 244, 0.58) 0%, transparent 62%),
        rgba(242, 246, 252, 0.38);
    background:
        radial-gradient(1200px 560px at 100% -8%, #d8e7ff 0%, transparent 62%),
        radial-gradient(980px 480px at -12% -12%, #eaf3ff 0%, transparent 58%),
        #f2f6fc;
    padding-top: 62px;
    /* `overflow-x: hidden` 을 걷어냈다 (260801-11). 아무것도 막지 못한다 — 실측:
       clip 적용/무력화, 드로어 개폐, 모바일/데스크톱 4가지 모두에서 있으나 없으나 결과가 같았다.
       body 에만 걸고 html 에는 없으면 뷰포트 클리핑이 되지 않는다(이번 가로 스크롤 버그의 정체가
       그것이다). 모바일 드로어는 `position: fixed` 라 문서 스크롤 폭에 애초에 기여하지 않는다.
       가로 오버플로는 넘치는 원본에서 자른다 — `.mer-shelf-wrap { overflow-x: clip }`. */
}

.arx-body #site-header,
.arx-body #site-footer {
    background: transparent;
}

/* Hide global floating agent chat widget on the reframe page */
.arx-body #merlin-widget {
    display: none !important;
}

.arx-body .c-footer {
    background: #eef3fb;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.arx-body .c-footer {
    border-top: 0;
}

.arx-body .c-footer__inner {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.arx-body footer,
.arx-body #site-footer,
.arx-body .c-footer {
    margin: 0;
    padding: 0;
}

.arx-body .header,
.arx-body .c-header,
.arx-body.arx-scrolled .header,
.arx-body.arx-scrolled .c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    margin-bottom: 0;
    padding: 0.42rem 0;
    background: rgba(255, 255, 255, 0.56);
    border-bottom-color: rgba(203, 218, 239, 0.42);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.arx-body .header-content {
    height: 46px;
}

.arx-body .logo {
    margin-left: 8px;
}

.arx-body .logo h1 {
    font-size: 1.28rem;
    color: #2d4f7b;
}

.arx-body .main-nav a {
    color: #365b8d;
    padding: 0.34rem 0;
}

.arx-body .main-nav a:after {
    background-color: #4b74ac;
}

.arx-body .write-post-btn {
    background: rgba(255, 255, 255, 0.28);
    color: #3f6698;
    border: 1px solid rgba(93, 127, 176, 0.62);
    border-radius: 999px;
    corner-shape: superellipse(1.2);
    padding: 0.42rem 0.86rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px -18px rgba(46, 78, 121, 0.38);
    transition: none;
}

.arx-body .write-post-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 20px -18px rgba(46, 78, 121, 0.38);
    transform: none !important;
}

@supports not (corner-shape: superellipse(1.2)) {
    .arx-body .write-post-btn {
        border-radius: 999px;
    }
}

.arx-body .google-login-btn {
    border-color: #cddbef;
    color: #3d5f8d;
}

.arx-body .google-login-btn:hover {
    background: #f4f8ff;
}

.arx-body .c-footer__meta {
    color: #5a7598;
}

.arx-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.65rem 1rem;
    position: relative;
    overflow: clip;
    --arx-parallax: 0px;
}

.arx-starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.arx-stars {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    transition: opacity 420ms ease, transform 500ms ease;
}

.arx-stars:before {
    content: "";
    position: absolute;
    inset: -200px;
    background-repeat: repeat;
}

.arx-stars-1:before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1px);
    background-size: 90px 90px;
    animation: arx-star-drift-1 26s linear infinite;
}

.arx-stars-2:before {
    background-image: radial-gradient(circle, rgba(214, 229, 255, 0.8) 1.2px, transparent 1.2px);
    background-size: 130px 130px;
    animation: arx-star-drift-2 34s linear infinite;
}

.arx-stars-3:before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.8px, transparent 0.8px);
    background-size: 72px 72px;
    animation: arx-star-drift-3 22s linear infinite;
}

.arx-page[data-active="hero"] .arx-stars {
    opacity: 0.34;
}

.arx-page[data-active="classic"] .arx-stars {
    opacity: 0.48;
}

.arx-page[data-active="wiki"] .arx-stars {
    opacity: 0.54;
}

.arx-page[data-active="community"] .arx-stars {
    opacity: 0.58;
}

.arx-page[data-active="catch"] .arx-stars {
    opacity: 0;
}

.arx-shell {
    position: relative;
    z-index: 2;
    width: min(1140px, 100%);
    border: 1px solid var(--c-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(31, 54, 89, 0.14);
    padding: 1.5rem;
    transform: translateY(16px) scale(0.986);
    opacity: 0.58;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

/* hero에서는 카드 없이 배경에 직접 배치 */
.arx-hero .arx-shell {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    /* 컨테이너 기준으로 잡는다. `94vw` 는 body 좌우 패딩(≤768px, styles.css)과 섹션 패딩
       합 44.8px 을 모르기 때문에 모바일에서 셀보다 넓어졌고, `place-items: center` 가
       넘치는 아이템을 시작 모서리로 클램프해 초과분이 전부 오른쪽으로 쏠렸다. */
    width: min(1140px, 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arx-hero .arx-prompt {
    width: 100%;
    max-width: min(1080px, 92vw);
    text-align: left;
}

.arx-hero-download {
    margin-top: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.4rem;
    border-radius: 999px;
    background: var(--c-blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 180ms ease;
}

.arx-hero-download:hover {
    background: var(--c-blue-dark);
}

.arx-hero .arx-chips {
    justify-content: center;
}

.arx-section.is-active .arx-shell {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.arx-bg {
    position: absolute;
    inset: -80px 0;
    z-index: 1;
    transform: translate3d(0, var(--arx-parallax), 0);
    transition: transform 140ms linear;
}

.arx-hero .arx-bg {
    background:
        radial-gradient(1200px 520px at 102% -8%, #d7e8ff 0%, transparent 60%),
        radial-gradient(840px 420px at -12% -14%, #eaf3ff 0%, transparent 56%),
        #f2f6fc;
}

.arx-split-section .arx-bg {
    background:
        radial-gradient(1100px 500px at 100% 110%, #deebff 0%, transparent 62%),
        #f3f7ff;
}

.arx-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4d78b1;
}

.arx-hero h1 {
    margin: 0.48rem 0 0.56rem;
    font-size: clamp(2rem, 5.6vw, 4rem);
    line-height: 1.22;
    letter-spacing: -0.03em;
    word-break: keep-all;
    transform: scale(0.96);
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arx-section.is-active h1,
.arx-section.is-active h2 {
    transform: scale(1);
}

.arx-sub {
    margin: 0;
    color: var(--c-muted);
    font-size: clamp(0.95rem, 2vw, 1.22rem);
}

.arx-prompt {
    margin-top: 1rem;
    border: 1px solid #cddbf0;
    border-radius: 16px;
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.56rem;
    padding: 0.68rem 0.78rem;
}

.arx-prompt>i {
    color: #5c789f;
}

.arx-prompt button i {
    color: #fff;
}

.arx-prompt input {
    border: 0;
    background: transparent;
    color: #4d678a;
    font-size: 0.92rem;
}

.arx-prompt input:focus {
    outline: none;
}

.arx-prompt button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--c-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.arx-prompt button:hover {
    background: var(--c-blue-dark);
}

.arx-chips {
    margin-top: 0.62rem;
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.arx-prompt-status {
    margin: 0;
    color: #4d678a;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin-top 180ms ease;
    pointer-events: none;
}

.arx-prompt-status.is-visible {
    margin-top: 0.62rem;
    opacity: 1;
    transform: translateY(0);
    max-height: 72px;
}

.arx-prompt-status.is-empty {
    color: #6c5d35;
}

.arx-chips button {
    border: 1px solid #d3def0;
    border-radius: 999px;
    background: #f8fbff;
    color: #49658b;
    font-size: 0.77rem;
    font-weight: 700;
    padding: 0.3rem 0.56rem;
}

.arx-chips button:hover {
    border-color: #b7cde9;
    background: #f1f7ff;
}

.arx-brand-copy {
    margin: 0.86rem 0 0;
    color: #3b6095;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.arx-brand-copy-end {
    margin-top: 1.2rem;
    font-size: 1.02rem;
}

.arx-split-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: center;
}

/* ============ 01 CLASSIC — 입체 책장 ============ */
.mer-classic {
    --shelf-angle: -22deg;
    --shelf-pitch: 9deg;
    --flow-dur: 64s;
    --spine: 46px;
    display: block;
    padding: 0;
    overflow: visible; /* preserve-3d가 작동하려면 overflow:visible 필요 */
    background:
        radial-gradient(125% 78% at 50% 8%, #eef3fb 0%, #f6f9fe 44%, #ffffff 82%);
}

.mer-classic-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.3rem, 4vh, 2.8rem);
    padding: 5.4rem 0 2.6rem;
    position: relative;
}

.mer-classic-head {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 3vw, 2rem);
}

.mer-classic-head h2 {
    margin: 0.32rem 0 0.45rem;
    font-size: clamp(1.95rem, 4.6vw, 3.6rem);
    line-height: 1.07;
}

.mer-classic-head p {
    margin: 0;
    max-width: 48ch;
    color: #5f7799;
    font-size: 1rem;
    line-height: 1.62;
}

/* 3D 무대 — 위아래 3D 투영이 잘리지 않도록 충분히 크게 잡고,
   모델은 중앙 기준 앵커(아래 bottom:calc(50%-N))로 박스 안 중앙에 고정.
   늘어난 위아래 빈 공간은 .mer-shelf-wrap 음수 마진으로 접어 텍스트를 가깝게. */
.mer-shelf-3d {
    position: relative;
    width: 100%;
    height: clamp(460px, 58vh, 600px);
    perspective: 2600px;
    perspective-origin: 50% 50%;
    z-index: 0;
}

.mer-shelf-stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--shelf-pitch)) rotateY(var(--shelf-angle));
    transform-origin: 50% 72%;
}

.mer-shelf-track {
    position: absolute;
    left: 0;
    /* 중앙 앵커: 책 baseline을 박스 중앙보다 책높이 절반쯤 아래로 → 책이 중앙에 옴 */
    bottom: calc(50% - 140px);
    display: flex;
    align-items: flex-end;
    gap: 1px;
    transform-style: preserve-3d;
    /* animation은 JS WAAPI로 제어 */
    will-change: transform;
}

/* hover pause는 JS에서 처리 (animation-play-state 대신 transform 고정) */

@media (prefers-reduced-motion: reduce) {
    .mer-shelf-track { /* WAAPI도 JS에서 matchMedia로 처리 */ }
}

/* 선반(plank) — 책 baseline보다 18px 아래(중앙 앵커와 동일 기준)에서 뷰어 방향으로 펼쳐지는 수평면 */
.mer-plank {
    display: none;
    position: absolute;
    left: -14%;
    bottom: calc(50% - 158px);
    width: 128%;
    height: 300px;
    transform-origin: bottom center;
    transform: rotateX(-90deg);
    transform-style: preserve-3d;
    background:
        linear-gradient(to bottom, #5a6e7a 0%, #485c68 100%);
}

/* 선반 앞면 — 선반 앞 모서리에서 수직으로 올라가는 얇은 면 */
.mer-plank::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 16px;
    transform-origin: top center;
    transform: rotateX(-90deg);
    background: linear-gradient(to bottom, #6b7f8b 0%, #596d79 100%);
}

/* 한 권 — 3D 박스 */
.mer-book {
    --wf: 1;
    --h: 220px;
    --d: 64px;
    --clr: #3a567f;
    position: relative;
    flex: 0 0 auto;
    width: calc(var(--spine) * var(--wf));
    height: var(--h);
    transform-style: preserve-3d;
    transform-origin: 50% 100%;
    transition: transform 0.56s cubic-bezier(0.34, 1.3, 0.5, 1);
    cursor: pointer;
    text-decoration: none;
}

.mer-face {
    position: absolute;
    top: 0; left: 0;
    backface-visibility: hidden;
}

.mer-top {
    width: 100%;
    height: var(--d);
    transform-origin: top center;
    transform: translateZ(-8px) rotateX(-90deg);
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    background: repeating-linear-gradient(0deg, #e9e2d1 0, #e9e2d1 1px, #dcd3bd 1px, #dcd3bd 2px);
}

.mer-bottom {
    top: auto;
    bottom: 0;
    width: 100%;
    height: var(--d);
    transform-origin: bottom center;
    transform: rotateX(90deg);
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    background: repeating-linear-gradient(0deg, #e9e2d1 0, #e9e2d1 1px, #dcd3bd 1px, #dcd3bd 2px);
}

.mer-side {
    position: absolute;
    top: 0; left: 0; right: auto;
    width: var(--d);
    height: 100%;
    /* rotateY(90deg) → +X 법선 (shelf -22deg에서 뷰어 방향)
       translate3d(--side-x, 0, --side-z) → cylinder 가장자리 z에 맞춤 */
    transform-origin: 0 50% 0;
    transform: rotateY(90deg) translate3d(var(--side-x, 0px), 0, var(--side-z, 0px));
    background: repeating-linear-gradient(0deg, #e9e2d1 0, #e9e2d1 1px, #dcd3bd 1px, #dcd3bd 2px);
    backface-visibility: hidden;
}

/* 볼록한 원통 곡면 */
.mer-spine-cyl {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.mer-facet {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: var(--clr);
    backface-visibility: hidden;
    box-shadow: none;
}

.mer-facet:first-child { border-radius: 2px 0 0 2px; }
.mer-facet:last-child  { border-radius: 0 2px 2px 0; }

.mer-spine-text {
    position: absolute;
    inset: 0;
    transform: translateZ(0.6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 9px 3px 11px;
    pointer-events: none;
    overflow: hidden;
}

.mer-chip {
    position: relative;
    z-index: 1;
    font: 700 10px/1 'Noto Serif KR', serif;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.16);
    padding: 3px 5px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.mer-title {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: 8px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(13px, calc(var(--spine) * 0.34), 18px);
    letter-spacing: 0.04em;
    color: #f4f7fc;
    text-shadow: 0 1px 2px rgba(0,0,0,0.38);
    white-space: nowrap;
}

.mer-era {
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    font: 600 10px/1 'Noto Serif KR', serif;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* 호버 — 위로 뽑힘 */
.mer-book.is-out,
.mer-book:focus-visible {
    transform: translateY(-44px) translateZ(100px) rotateX(-8deg) scale(1.02);
    outline: none;
}

.mer-book.is-out .mer-facet,
.mer-book:focus-visible .mer-facet {
    box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.06);
}

/* 표지 — 책 오른쪽 면: rotate 먼저(+X법선), 그 다음 world-space translate(x=책너비, z=edgeZ) */
.mer-cover {
    position: absolute;
    top: 0; left: 0; right: auto;
    width: var(--d);
    height: 100%;
    transform-origin: 0 50% 0;
    transform: translate3d(var(--side-x, 0px), 0, var(--side-z, 0px)) rotateY(90deg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, rgba(0,0,0,0.10) 100%),
        var(--clr);
    box-shadow: inset 5px 0 14px rgba(0,0,0,0.28), inset -2px 0 6px rgba(0,0,0,0.12);
    border-radius: 2px 0 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 6px;
    overflow: hidden;
    backface-visibility: hidden;
}

.mer-cover-ttl {
    color: rgba(255,255,255,0.95);
    font-size: clamp(11px, calc(var(--d) * 0.2), 14px);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
    line-height: 1.3;
    word-break: keep-all;
}

.mer-cover-sub {
    color: rgba(255,255,255,0.55);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* 3D 컨텍스트 밖 래퍼 — mask로 양쪽 가장자리 페이드 처리
   (z-index 방식은 GPU 3D 컴포지팅 레이어와 충돌, mask는 배경색 불문 동작) */
.mer-shelf-wrap {
    position: relative;
    width: 100%;
    /* 중앙 앵커로 생긴 위아래 빈 띠를 접어 머리글/안내문을 모델에 가깝게 */
    margin-top: -90px;
    margin-bottom: -90px;
    z-index: 0;
    /* 가로 오버플로 차단 (260801-11) — 아래 mask 는 픽셀만 투명하게 만들 뿐
       레이아웃 오버플로를 자르지 않는다. `.mer-shelf-track` 은 책 80권이 한 줄로 늘어선
       absolute 박스라 모바일 390px 에서 7,245px(데스크톱 8,099px)까지 뻗고, 조상 중
       클리핑하는 요소가 없어 문서 전체가 가로로 늘어났다 — 보이는 건 없는데 스크롤만 잡혔다.
       `hidden` 이 아니라 `clip` 인 이유: hidden 은 스크롤 컨테이너를 만들면서 세로축까지
       잘라 3D 투영이 상하로 잘린다(EXP 260602 에서 겪은 것). clip 은 컨테이너를 만들지 않아
       세로 `visible` 과 같이 쓸 수 있다.
       clip 미지원 브라우저(iOS Safari 16 미만)는 `.arx-body` 의 overflow-x: hidden 이 받는다. */
    overflow-x: clip;
    overflow-y: visible;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* 페이드 div는 숨김 — mask-image로 대체 */
.mer-fade {
    display: none;
}

/* 하단 안내줄 */
.mer-readout {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 3vw, 2rem);
    min-height: 1.6em;
    text-align: center;
    font-size: 0.94rem;
    color: #5f7799;
    pointer-events: none;
    position: relative;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}

.mer-readout-hint { color: #93a8c6; }

.mer-readout b {
    color: #2a4f83;
    font-weight: 700;
    margin-right: 0.3em;
}

.mer-r-sep { color: #c3cee0; margin: 0 0.5em; }
.mer-r-open { color: #4a6c9a; font-weight: 700; }

.arx-wiki-network {
    padding: 0;
    background: transparent;
}

.arx-wiki-graph {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
}

.arx-wiki-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: saturate(1.12) contrast(1.08) brightness(1.06);
    z-index: 0;
}

.arx-wiki-emoji-burst {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.arx-wiki-center {
    width: min(620px, 90%);
    position: relative;
    z-index: 2;
    border: 0;
    border-radius: 24px;
    background: rgba(238, 246, 255, 0.14);
    backdrop-filter: blur(3px);
    text-align: center;
    padding: 1.2rem 1.15rem;
    box-shadow: none;
}

.arx-wiki-center h2 {
    margin: 0.35rem 0 0.45rem;
    font-size: clamp(1.8rem, 4.4vw, 3.3rem);
    line-height: 1.1;
}

.arx-wiki-center p {
    margin: 0;
    color: #5f789b;
    line-height: 1.54;
}

.arx-wiki-center .arx-cta {
    margin-top: 0.74rem;
}


.arx-feature-section {
    padding: 0;
}

.arx-feature-wrap {
    width: min(1220px, 100%);
    min-height: 100vh;
    padding: 5.2rem 1.3rem 2.4rem;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.9rem;
}

.arx-community-row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1rem;
    align-items: center;
    min-height: clamp(500px, 66vh, 760px);
}

.arx-feature-head {
    margin-top: 0;
}

.arx-feature-head h2 {
    margin: 0.34rem 0 0.2rem;
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    line-height: 1.08;
}

.arx-feature-sub {
    margin: 0 0 0.7rem;
    max-width: 560px;
    color: #5f7698;
    font-size: 0.95rem;
    line-height: 1.56;
}

.arx-community-live {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.arx-live-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(176, 195, 221, 0.66);
    background: rgba(247, 250, 255, 0.75);
    color: #4d678a;
    font-size: 0.78rem;
    letter-spacing: -0.01em;
    backdrop-filter: blur(8px);
}

.arx-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6f8fb8;
    box-shadow: 0 0 0 5px rgba(111, 143, 184, 0.14);
    animation: arxLivePulse 2.3s ease-in-out infinite;
}

.arx-live-item strong {
    color: #2a4f83;
    font-size: 0.86rem;
}

.arx-community-layout {
    display: flex;
    justify-content: flex-end;
    align-self: start;
    margin-top: -6rem;
}

.arx-community-stack {
    position: relative;
    min-height: 470px;
}

.arx-stack-card {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(440px, 92%);
    min-height: 200px;
    border: 1px solid #d0dff1;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.28rem 1.12rem 1.08rem;
    box-shadow: 0 18px 44px -30px rgba(53, 86, 124, 0.34);
}

.arx-community-stack-right {
    --open: var(--arx-community-progress, 0);
    --start-shift-x: 76px;
    --start-shift-y: -56px;
    --start-rot-scale: 0.38;
    perspective: 1200px;
    transform-style: preserve-3d;
    width: min(640px, 100%);
    min-height: 620px;
}

.arx-community-stack-right .arx-stack-card {
    left: 0.7rem;
    bottom: 1rem;
    --ss: 0.2;
    --start-rot-offset: 0deg;
    --start-z: 0px;
    transform: translate(calc((var(--start-shift-x) * (1 - var(--open))) + (var(--tx) * var(--ss) * (1 - var(--open))) + (var(--tx) * var(--open))),
            calc((var(--start-shift-y) * (1 - var(--open))) + (var(--ty) * var(--ss) * (1 - var(--open))) + (var(--ty) * var(--open)))) translateZ(calc(var(--start-z) * (1 - var(--open)))) rotate(calc((var(--rot) * var(--start-rot-scale) * var(--ss) * (1 - var(--open))) + (var(--rot) * var(--open)) + (var(--start-rot-offset) * (1 - var(--open)))));
    opacity: 0.96;
    width: min(460px, 94%);
}

.arx-stack-a {
    --ss: 0.14;
    --tx: 136px;
    --ty: 0px;
    --rot: -3.2deg;
}

.arx-stack-b {
    --ss: 0.18;
    --tx: 96px;
    --ty: -223px;
    --rot: 4.6deg;
}

.arx-stack-c {
    --ss: 0.25;
    --tx: 150px;
    --ty: -442px;
    --rot: -3.9deg;
    z-index: 3;
}

.arx-stack-d {
    --ss: 0.16;
    --tx: 88px;
    --ty: 218px;
    --rot: 3deg;
    --start-rot-offset: -18deg;
    --start-z: -220px;
    z-index: 1;
}

.arx-stack-kicker {
    margin: 0;
    color: #6c8ab2;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.arx-stack-card h3 {
    margin: 0.52rem 0 0.42rem;
    font-size: 1.24rem;
    color: #2a4f83;
    line-height: 1.34;
}

.arx-stack-card p {
    margin: 0;
    color: #5f7698;
    line-height: 1.56;
}

.arx-community-live {
    margin-top: 0.45rem;
}

.arx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.arx-feature-grid article {
    min-height: 230px;
    border: 1px solid #d0dff1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 1rem;
    display: grid;
    align-content: end;
    gap: 0.45rem;
}

.arx-feature-grid h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #2a4f83;
}

.arx-feature-grid p {
    margin: 0;
    font-size: 0.9rem;
    color: #5f7698;
    line-height: 1.5;
}

@keyframes arxLivePulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.arx-catch-section {
    min-height: 100vh;
    padding: 0;
    background: var(--arx-catch-bg);
}

.arx-catch-wrap {
    --cp: var(--arx-catch-progress, 0);
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: transparent;
    transform: scale(calc(0.95 + (var(--cp) * 0.05)));
    transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arx-catch-kicker {
    margin: 0;
    color: #5e7eab;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: calc(0.36 + (var(--cp) * 0.64));
    transform: scale(calc(0.965 + (var(--cp) * 0.035))) translateY(calc((1 - var(--cp)) * 4px));
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.arx-catch-wrap h2 {
    margin: 0.75rem 0 0;
    font-size: clamp(2.1rem, 5.4vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    opacity: calc(0.46 + (var(--cp) * 0.54));
    transform: scale(calc(0.88 + (var(--cp) * 0.12))) translateY(calc((1 - var(--cp)) * 6px));
    transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 390ms ease;
}

.arx-catch-wrap .arx-brand-copy-end {
    opacity: calc(0.33 + (var(--cp) * 0.67));
    transform: scale(calc(0.905 + (var(--cp) * 0.095))) translateY(calc((1 - var(--cp)) * 10px));
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.arx-catch-cta-row {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    opacity: calc(0.24 + (var(--cp) * 0.76));
    transform: scale(calc(0.9 + (var(--cp) * 0.1))) translateY(calc((1 - var(--cp)) * 14px));
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 460ms ease;
}

.arx-catch-cta {
    border: 1px solid #c9d8ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #365c90;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.46rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.arx-catch-cta:hover {
    background: #f5f9ff;
    border-color: #abc3e5;
}

.arx-copy {
    position: relative;
    z-index: 2;
}

.arx-section-tag {
    margin: 0;
    color: #6f88aa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.arx-copy h2 {
    margin: 0.35rem 0 0.56rem;
    font-size: clamp(1.45rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    transform: scale(0.97);
    transform-origin: left center;
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arx-copy p {
    margin: 0;
    color: var(--c-muted);
    line-height: 1.58;
    font-size: 0.93rem;
}

.arx-cta {
    margin-top: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #40689f;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.arx-visual {
    position: relative;
    min-height: 320px;
}

.arx-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.arx-constellation path {
    fill: none;
    stroke: rgba(112, 145, 193, 0.62);
    stroke-width: 1.6;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arx-constellation circle {
    fill: #5f86bc;
    opacity: 0.25;
    transition: opacity 500ms ease;
}

.arx-section.is-active .arx-constellation path {
    stroke-dashoffset: 0;
}

.arx-section.is-active .arx-constellation circle {
    opacity: 0.9;
}

.arx-mock {
    position: absolute;
    right: 0.35rem;
    left: 0.35rem;
    bottom: 0.35rem;
    top: 0.35rem;
    border: 1px solid #d2def0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    z-index: 2;
    transform: translateY(12px) rotate(-1.2deg) scale(0.98);
    opacity: 0.7;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.arx-section.is-active .arx-mock {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
}

.arx-mock-head {
    height: 22px;
    border-radius: 9px;
    background: #edf3fc;
    margin: 0.72rem;
}

.arx-mock-lines {
    margin: 0.72rem;
    display: grid;
    gap: 0.5rem;
}

.arx-mock-lines span {
    height: 14px;
    border-radius: 7px;
    background: #eef4fd;
}

.arx-time-row {
    margin: 0.76rem;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 0.5rem;
    align-items: center;
}

.arx-time-row span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7ea0cc;
}

.arx-time-row div {
    height: 26px;
    border-radius: 8px;
    background: #eef4fd;
}

.arx-mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.8rem;
}

.arx-mock-grid div {
    border-radius: 10px;
    background: #eef4fd;
}

.arx-dots {
    position: fixed;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: grid;
    gap: 1.18rem;
}

.arx-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1px solid #9fb6d8;
    background: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    position: relative;
}

.arx-dot span {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #cad8ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #4f6c93;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.16rem 0.46rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.arx-dot:hover span,
.arx-dot.is-active span {
    opacity: 1;
}

.arx-dot.is-active {
    background: #4a70aa;
    border-color: #4a70aa;
}

.arx-minibar {
    position: fixed;
    top: 74px;
    right: 0.95rem;
    z-index: 45;
}

.arx-mini-ask {
    border: 1px solid #c9d9ef;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #3e6396;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.62rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.arx-mini-ask:hover {
    background: #f6faff;
    border-color: #aec7e8;
}

@keyframes arx-star-drift-1 {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-40px, -80px, 0);
    }
}

@keyframes arx-star-drift-2 {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(45px, -70px, 0);
    }
}

@keyframes arx-star-drift-3 {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-30px, -50px, 0);
    }
}

@keyframes mer-flow {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}



@media (max-width: 980px) {
    .arx-section {
        min-height: auto;
        padding: 1.25rem 0.9rem;
    }

    .arx-hero {
        min-height: calc(100vh - 62px);
        padding-top: clamp(2rem, 8vh, 4.5rem);
        padding-bottom: 1.25rem;
    }

    .arx-hero .arx-shell {
        margin-top: clamp(0.6rem, 2.5vh, 1.6rem);
    }

    .arx-shell {
        border-radius: 20px;
        padding: 1rem;
        transform: translateY(10px) scale(0.992);
        opacity: 0.76;
    }

    .arx-split-shell {
        grid-template-columns: 1fr;
    }

    .mer-classic-wrap { min-height: auto; padding: 4.6rem 0 2rem; }
    .mer-classic { --shelf-angle: -16deg; --spine: 42px; }
    .mer-shelf-3d { height: clamp(330px, 46vh, 440px); }
    .mer-shelf-track, .mer-plank { bottom: 14px; }
    /* 위 한 줄이 책 baseline 을 박스 바닥에 붙이므로 아래에 접을 빈 띠가 없다.
       데스크톱 기준의 `margin-bottom: -90px` 를 그대로 두면 안내 문구가 책 위로 올라와
       책등 가운데에 겹쳐 찍힌다(900px 실측: 책 아래끝 626px, 안내 571px). */
    .mer-shelf-wrap { margin-bottom: 0; }

    .arx-wiki-graph {
        min-height: 78vh;
        padding-top: 0;
    }

    .arx-wiki-constellation {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .arx-feature-wrap {
        min-height: auto;
        padding-top: 4.5rem;
        grid-template-rows: auto auto;
    }

    .arx-community-row {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: auto;
    }

    .arx-community-live {
        grid-template-columns: 1fr;
    }

    .arx-community-layout {
        justify-content: center;
        margin-top: 0;
    }

    .arx-community-stack-right {
        --start-shift-x: 0px;
        --start-shift-y: 0px;
        min-height: auto;
        width: 100%;
    }

    .arx-community-stack-right .arx-stack-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 560px;
        --mobile-rot: 0deg;
        --mobile-x: 0px;
        transform: translateX(var(--mobile-x)) rotate(var(--mobile-rot)) !important;
        margin: 0 auto;
    }

    .arx-community-stack-right .arx-stack-a,
    .arx-community-stack-right .arx-stack-b,
    .arx-community-stack-right .arx-stack-c,
    .arx-community-stack-right .arx-stack-d {
        --tx: 0px;
        --ty: 0px;
        --rot: 0deg;
    }

    .arx-community-stack-right .arx-stack-a {
        --mobile-x: -8px;
        --mobile-rot: -1.8deg;
    }

    .arx-community-stack-right .arx-stack-b {
        --mobile-x: 10px;
        --mobile-rot: 1.4deg;
        margin-top: -46px;
    }

    .arx-community-stack-right .arx-stack-c {
        --mobile-x: -6px;
        --mobile-rot: -1.2deg;
        margin-top: -46px;
    }

    .arx-community-stack-right .arx-stack-d {
        --mobile-x: 12px;
        --mobile-rot: 1.7deg;
        margin-top: -46px;
    }

    .arx-feature-grid {
        grid-template-columns: 1fr;
    }

    .arx-feature-grid article {
        min-height: 160px;
    }

    .arx-visual {
        min-height: 260px;
    }

    .arx-dots,
    .arx-minibar {
        right: 0.55rem;
    }
}

@media (max-width: 640px) {
    .arx-body {
        padding-top: 58px;
    }

    .arx-hero {
        min-height: calc(100vh - 58px);
        padding-top: clamp(2.25rem, 10vh, 5.25rem);
        padding-bottom: 1.4rem;
    }

    .arx-hero .arx-shell {
        margin-top: clamp(0.8rem, 4vh, 2rem);
    }

    .arx-body .header-content {
        height: 44px;
    }

    .arx-dots,
    .arx-minibar {
        display: none;
    }

    .arx-stars {
        opacity: 0.2 !important;
    }

    .arx-bg {
        transform: none !important;
        transition: none;
    }

    .mer-classic { --shelf-angle: -12deg; --spine: 38px; }
    .mer-shelf-3d { height: 320px; perspective: 1400px; }

    .arx-wiki-graph {
        min-height: 72vh;
    }

    .arx-shell,
    .arx-copy h2,
    .arx-hero h1 {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .arx-prompt {
        grid-template-columns: auto 1fr auto;
    }
}

/* ============ PAPER SECTION ============ */
.arx-paper-section { padding: 0; }
.arx-paper-wrap {
    width: min(1320px, 100%);
    min-height: 100vh;
    padding: 5.2rem 1.4rem 3rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1.5rem;
    align-content: stretch;
    position: relative;
    z-index: 2;
}

.arx-paper-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
    align-items: end;
    background: transparent;
    color: inherit;
    box-shadow: none;
}
.arx-paper-headline h2 {
    margin: 0.32rem 0 0.5rem;
    font-size: clamp(2rem, 4.7vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}
.arx-paper-headline > p {
    margin: 0;
    color: #5f7799;
    line-height: 1.58;
    max-width: 52ch;
}
.arx-paper-side {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
    align-content: end;
}
.arx-paper-date {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(180, 202, 232, 0.6);
    box-shadow: 0 12px 28px -22px rgba(53, 86, 124, 0.4);
    backdrop-filter: blur(8px);
}
.arx-paper-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #6f9bd4;
    box-shadow: 0 0 0 4px rgba(111, 155, 212, 0.18);
    animation: arxLivePulse 2.3s ease-in-out infinite;
}
.arx-paper-date strong {
    color: #2a4f83;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.arx-paper-date em {
    color: #6680a8;
    font-style: normal;
    font-size: 0.82rem;
}

/* Carousel deck */
.arx-paper-deck {
    position: relative;
    width: 100%;
    height: min(58vh, 480px);
    display: grid;
    place-items: center;
    perspective: 1600px;
    overflow: hidden;
}
.arx-paper-card {
    --x: 0px;
    --rot: 0deg;
    --scale: 1;
    --z: 10;
    --op: 1;
    position: absolute;
    width: min(460px, 92%);
    height: min(56vh, 440px);
    border: 1px solid rgba(204, 220, 241, 0.95);
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.92) 100%);
    box-shadow: 0 30px 60px -36px rgba(39, 63, 99, 0.42);
    padding: 1.45rem 1.45rem 1.35rem;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 0.55rem;
    align-content: start;
    transform: translateX(var(--x)) rotate(var(--rot)) scale(var(--scale));
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease, box-shadow 320ms ease;
    z-index: var(--z);
    opacity: var(--op);
    cursor: pointer;
    user-select: none;
}
.arx-paper-card[data-state="active"] {
    box-shadow: 0 42px 90px -32px rgba(39, 63, 99, 0.5);
    cursor: default;
    animation: arxPaperFloat 5.5s ease-in-out infinite;
}
@keyframes arxPaperFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}
.arx-paper-card[data-state="hidden"] {
    opacity: 0 !important;
    pointer-events: none;
}
.arx-paper-card h3 {
    margin: 0;
    color: #1f3a60;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.005em;
    text-wrap: pretty;
}
.arx-paper-card .arx-paper-summary {
    margin: 0;
    color: #5f7798;
    font-size: 0.9rem;
    line-height: 1.6;
}
.arx-paper-meta {
    margin: 0;
    color: #6680a8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.arx-paper-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    width: max-content;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(72, 111, 168, 0.1);
    color: var(--c-blue, #3e6396);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 320ms ease;
}
.arx-paper-badge::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 999px;
    background: var(--c-blue, #3e6396);
    animation: arxLivePulse 2.3s ease-in-out infinite;
}
.arx-paper-card[data-state="active"] .arx-paper-badge { opacity: 1; }
.arx-paper-tags {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.32rem;
    flex-wrap: wrap;
}
.arx-paper-tags span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a6c9a;
    border: 1px solid #d3def0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

/* Carousel controls */
.arx-paper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.arx-paper-nav {
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid #c9d8ee;
    background: rgba(255, 255, 255, 0.92);
    color: var(--c-blue, #3e6396);
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}
.arx-paper-nav:hover { background: var(--c-blue, #3e6396); color: #fff; }
.arx-paper-nav:active { transform: scale(0.94); }
.arx-paper-pips {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.arx-paper-pip {
    width: 24px; height: 4px;
    background: rgba(72, 111, 168, 0.22);
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background 240ms ease, width 240ms ease;
    padding: 0;
}
.arx-paper-pip.is-active {
    background: var(--c-blue, #3e6396);
    width: 40px;
}

/* Paper card — stars & clinical message */
.arx-paper-stars {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}
.arx-paper-stars i {
    font-size: 0.72rem;
    color: #c9d8ee;
}
.arx-paper-stars i.is-filled { color: #e8a830; }

.arx-paper-clinical {
    margin: 0;
    font-size: 0.82rem;
    color: #4a6a96;
    line-height: 1.55;
    border-left: 2px solid rgba(72, 111, 168, 0.28);
    padding-left: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Paper header: the date badge must not consume the copy column on phones. */
@media (max-width: 640px) {
    .arx-paper-wrap {
        min-height: auto;
        padding: 3.4rem 1.25rem 2.5rem;
        grid-template-rows: auto auto auto;
        gap: 1.4rem;
    }

    .arx-paper-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 1.25rem;
    }

    .arx-paper-headline {
        min-width: 0;
    }

    .arx-paper-headline h2 {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .arx-paper-headline > p {
        max-width: none;
    }

    .arx-paper-side {
        justify-items: center;
        align-content: start;
    }
}
