/* ============================================================
   SHARED · PathogenIDCarousel styles (v4)
   Scoped to .pidc (component root). Static styles only — the depth-fade
   (bg opacity, border color, blur, content opacity) and the rotor
   transform are applied inline per frame by pathogen-id-carousel.js, so
   the visual output matches the original JSX exactly. Two-class
   selectors (.pidc .rpc-*) beat global card rules, keeping reader text
   #111111.
   ============================================================ */

.rar-topic-content .pidc, .pidc { color: #111111; }
/* Frameless — the carousel floats on the bare page (no blue panel, no card). */
.pidc .rpc-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: none;
    padding: 10px 16px 20px;
}

/* Strip the surrounding topic-section-card frame on the carousel sections so
   only the hovering 3D carousel shows. */
.rar-topic-content #phx-carousel,
.rar-topic-content #resp-pathogens-carousel {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* header */
.pidc .rpc-header { text-align: center; margin-bottom: 6px; }
.pidc .rpc-overline {
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
    color: #5b6472; text-transform: uppercase;
}
.pidc .rpc-title { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: #111111; }
.pidc .rpc-intro { margin: 6px auto 0; max-width: 540px; font-size: 14px; color: #5b6472; line-height: 1.5; }

/* 3D scene — whole shape visible (no backface culling), panels fade by depth */
.pidc .rpc-scene {
    perspective: 1700px;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.pidc .rpc-shadow {
    position: absolute; bottom: 44px; width: 420px; height: 30px;
    background: radial-gradient(ellipse at center, rgba(40,60,110,.16), rgba(40,60,110,0) 70%);
}
.pidc .rpc-rotor { transform-style: preserve-3d; will-change: transform; position: relative; }
.pidc .rpc-face {
    position: absolute; top: 0; left: 0;
    backface-visibility: visible; -webkit-backface-visibility: visible;
}

/* glass panel (bg/border-color/blur/shadow set inline per frame) */
.pidc .rpc-panel {
    width: 100%; height: 100%; box-sizing: border-box;
    border-radius: 18px; padding: 16px 18px;
    transition: border-color .15s;
    display: flex; flex-direction: column;
}
.pidc .rpc-content { height: 100%; display: flex; flex-direction: column; }

.pidc .rpc-card-head { display: flex; align-items: center; gap: 7px; }
.pidc .rpc-dotc { width: 9px; height: 9px; border-radius: 999px; }
.pidc .rpc-gram { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pidc .rpc-tag {
    margin-left: auto; font-size: 10.5px; font-weight: 600; color: #6b7280;
    border: 1px solid rgba(120,130,150,0.35); border-radius: 999px; padding: 2px 9px;
}
.pidc .rpc-name { font-size: 20px; font-weight: 800; font-style: italic; color: #111111; line-height: 1.15; margin-top: 6px; }
.pidc .rpc-morph { font-size: 13px; color: #374151; margin-top: 2px; font-weight: 600; }

.pidc .rpc-imgs { display: flex; gap: 12px; margin-top: auto; justify-content: center; align-items: flex-end; }
.pidc .rpc-imgcell { min-width: 0; }
.pidc .rpc-imgbox {
    height: 130px; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(120,130,150,0.28); background: rgba(255,255,255,0.28);
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px;
}
.pidc .rpc-imgbox--missing { border-color: #d9a441; background: rgba(253,248,236,0.7); }
.pidc .rpc-imgmiss { font-size: 10px; font-weight: 700; color: #9a6b16; word-break: break-all; }
.pidc .rpc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pidc .rpc-imgcap { font-size: 11px; color: #111111; margin-top: 6px; line-height: 1.2; text-align: center; font-weight: 500; }

/* controls */
.pidc .rpc-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.pidc .rpc-btn {
    cursor: pointer; border: 1px solid #d3ddf0; background: rgba(255,255,255,0.7); border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; color: #111111;
}
.pidc .rpc-btn:hover { border-color: #b7c6e6; }

.pidc .rpc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 13px; flex-wrap: wrap; }
.pidc .rpc-dot {
    cursor: pointer; border: none; border-radius: 999px; padding: 0;
    width: 9px; height: 9px; background: #c3d0e8; transition: width .2s, background .2s;
}
.pidc .rpc-dot.is-active { width: 24px; }

.pidc .rpc-footer { text-align: center; margin-top: 9px; font-size: 12.5px; color: #5b6472; }
.pidc .rpc-foot-name { font-style: italic; font-weight: 700; color: #111111; }
