/* ============================================================================
   PAGE FAMILY: Plate of Affinities study-plate page (C3) - STRUCTURE tier -
   from the global files, original order. Scope: .wheel-of-affinities-* only
   (renders in artwork_similar_plate_of_affinities.html).
   Migrated 2026-07-06. PHASE-A FIDELITY: verbatim relocation.
   ========================================================================= */

.wheel-of-affinities-page-shell {
    width: 100%;
    padding: 12px 160px 48px;
}

@media only screen and (min-width: 992px) and (max-width: 1500px) {
  .wheel-of-affinities-page-shell {
        padding: 12px 60px 44px;
    }

}
@media only screen and (max-width: 991.98px) {
  .wheel-of-affinities-page-shell {
        padding: 10px 20px 36px;
    }

}
.wheel-of-affinities-empty-state {
    margin: 48px auto;
    text-align: center;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-style: italic;
    color: var(--poa-ink-muted, #6e675d);
}

.wheel-of-affinities-figure {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100vw;
    margin: 1.2em 0 0;
    margin-left: 50%;
    transform: translateX(-50%);
}

.wheel-of-affinities-intro {
    position: absolute;
    left: clamp(16px, 4vw, 80px);
    top: 0;
    bottom: 0;
    z-index: 70;
    width: min(34vw, 380px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    background: var(--poa-card-bg, rgba(255, 255, 255, 0.72));
    border: none;
    border-radius: 2px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--poa-ink, #2b2620);
    pointer-events: auto;
    animation: wheel-of-affinities-intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wheel-of-affinities-intro__eyebrow {
    margin: 0 0 6px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--poa-ink-muted, #6e675d);
}

.wheel-of-affinities-intro__title {
    margin: 0 0 12px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-intro__lead {
    margin: 0 0 16px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-intro__subhead {
    margin: 0 0 8px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--poa-accent, #7a5c2e);
}

.wheel-of-affinities-intro__how {
    margin: 0 0 18px;
    padding-left: 18px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-intro__how li {
    margin-bottom: 6px;
}

.wheel-of-affinities-intro__legend {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--poa-hairline, rgba(43, 38, 32, 0.18));
}

.wheel-of-affinities-intro__legend dt {
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--poa-ink-muted, #6e675d);
    margin-bottom: 3px;
}

.wheel-of-affinities-intro__legend dd {
    margin: 0 0 12px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-intro__legend dd:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .wheel-of-affinities-figure {
        flex-direction: column;
        align-items: stretch;
    }

  .wheel-of-affinities-intro {
        position: static;
        width: auto;
        max-height: none;
        margin: 0 auto 12px;
        max-width: 640px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

}
@media (prefers-reduced-motion: reduce) {
  .wheel-of-affinities-intro {
        animation: none;
    }

}
.wheel-of-affinities-stage {
    position: relative;
    width: 100%;
    height: 90vh;
    max-width: none;
    touch-action: none;
    cursor: grab;
    user-select: none;
    overflow: hidden;
}

.wheel-of-affinities-stage--dragging {
    cursor: grabbing;
}

.wheel-of-affinities-stage:focus {
    outline: none;
}

.wheel-of-affinities-stage:focus-visible {
    outline: 2px solid var(--poa-accent, #7a5c2e);
    outline-offset: 3px;
}

.wheel-of-affinities-canvas {
    position: absolute;
    inset: 0;
}

.wheel-of-affinities-rings {
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(
            circle at center,
            var(--poa-ring-faint, rgba(43, 38, 32, 0.05)) 0,
            var(--poa-ring-faint, rgba(43, 38, 32, 0.05)) 1px,
            transparent 1px,
            transparent 5vh
        );
    -webkit-mask-image: radial-gradient(circle at center, #000 0, #000 33vh, transparent 44vh);
    mask-image: radial-gradient(circle at center, #000 0, #000 33vh, transparent 44vh);
    opacity: 0.9;
}

.wheel-of-affinities-spoke-labels {
    position: absolute;
    inset: 0;
}

.wheel-of-affinities-spoke-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--poa-ink-muted, #6e675d);
    white-space: nowrap;
    pointer-events: none;
}

.wheel-of-affinities-work {
    position: absolute;
    display: block;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: opacity 0.25s ease-out, filter 0.25s ease-out;
    border: none;
    background: transparent;
    opacity: 0.82;
    cursor: pointer;
    line-height: 0;
    z-index: 10;
}

.wheel-of-affinities-work__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 14vh;
    max-height: 14vh;
    object-fit: contain;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease-out;
    filter: drop-shadow(0 6px 14px rgba(20, 16, 12, 0.28));
}

.wheel-of-affinities-work:hover {
    opacity: 1;
    z-index: 40;
}

.wheel-of-affinities-work:hover .wheel-of-affinities-work__image {
    transform: scale(1.28);
    filter: drop-shadow(0 12px 26px rgba(20, 16, 12, 0.45));
}

.wheel-of-affinities-work--intro-hidden .wheel-of-affinities-work__image {
    opacity: 0;
}

.wheel-of-affinities-work--entering .wheel-of-affinities-work__image {
    animation: wheel-of-affinities-work-enter 1.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: inherit;
}

.wheel-of-affinities-tips {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 60;
    max-width: 240px;
    padding: 6px 10px;
    background: var(--poa-card-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--poa-hairline, rgba(43, 38, 32, 0.18));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.wheel-of-affinities-study-card {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(300px, 86vw);
    padding: 12px 14px;
    background: var(--poa-card-bg, rgba(255, 255, 255, 0.97));
    border: 1px solid var(--poa-hairline, rgba(43, 38, 32, 0.18));
    border-radius: 2px;
    box-shadow: 0 8px 26px rgba(20, 16, 12, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease-out;
}

.wheel-of-affinities-study-card--visible {
    opacity: 1;
    visibility: visible;
}

.wheel-of-affinities-study-card__body {
    flex: 1;
    min-width: 0;
}

.wheel-of-affinities-study-card__title-line {
    margin: 0 0 8px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 14px;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-study-card__title {
    font-style: italic;
}

.wheel-of-affinities-study-card__meta {
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 13px;
    color: var(--poa-ink-muted, #6e675d);
}

.wheel-of-affinities-study-card__criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
}

.wheel-of-affinities-study-card__criterion-label {
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--poa-ink-muted, #6e675d);
}

.wheel-of-affinities-study-card__criterion-value {
    float: right;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-study-card__criterion-track {
    display: block;
    clear: both;
    height: 3px;
    margin-top: 3px;
    background: var(--poa-bar-track, rgba(43, 38, 32, 0.12));
    overflow: hidden;
}

.wheel-of-affinities-study-card__criterion-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--poa-bar-fill, #5a5346);
    transition: width 0.3s ease-out;
}

.wheel-of-affinities-study-card__criterion--unmeasured {
    opacity: 0.5;
}

.wheel-of-affinities-index {
    margin: 32px 0 0;
}

.wheel-of-affinities-index__columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--poa-ink-muted, #6e675d) var(--poa-bar-track, rgba(43, 38, 32, 0.12));
    cursor: grab;
}

.wheel-of-affinities-index__columns--dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.wheel-of-affinities-index__columns::-webkit-scrollbar {
    height: 10px;
}

.wheel-of-affinities-index__columns::-webkit-scrollbar-track {
    background: var(--poa-bar-track, rgba(43, 38, 32, 0.12));
}

.wheel-of-affinities-index__columns::-webkit-scrollbar-thumb {
    background: var(--poa-ink-muted, #6e675d);
    border-radius: 6px;
}

.wheel-of-affinities-index__column {
    flex: 0 0 auto;
    width: 240px;
}

.wheel-of-affinities-index__column-heading {
    margin: 0 0 8px;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--poa-ink-muted, #6e675d);
    border-bottom: 1px solid var(--poa-hairline, rgba(43, 38, 32, 0.18));
    padding-bottom: 6px;
}

.wheel-of-affinities-index__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    font-size: 13px;
    line-height: 1.7;
    color: var(--poa-ink, #2b2620);
}

.wheel-of-affinities-index__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 7px;
}

.wheel-of-affinities-index__thumb-link {
    flex: 0 0 auto;
    display: block;
    width: 34px;
    line-height: 0;
    position: relative;
    z-index: 1;
    border: var(--poa-work-frame-width, 2px) solid var(--poa-work-frame, #8a8378);
    background: var(--poa-work-mat, #ffffff);
}

.wheel-of-affinities-index__thumb-image {
    display: block;
    width: 100%;
    height: 34px;
    object-fit: cover;
}

.wheel-of-affinities-index__text {
    min-width: 0;
}

.wheel-of-affinities-index__work-link {
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    color: var(--poa-ink, #2b2620);
    font-style: italic;
    text-decoration: none;
    border-bottom: 1px solid var(--poa-ink-faint, rgba(43, 38, 32, 0.35));
}

.wheel-of-affinities-index__work-link:hover {
    color: var(--poa-accent, #7a5c2e);
    border-bottom-color: var(--poa-accent, #7a5c2e);
}

.wheel-of-affinities-index__work-meta {
    font-family: var(--poa-serif-font, Georgia, 'Times New Roman', serif);
    color: var(--poa-ink-muted, #6e675d);
}

@media (max-width: 767.98px) {
  .wheel-of-affinities-page-shell {
        padding: 8px 12px 36px;
    }

  .wheel-of-affinities-work__image {
        max-width: 9vh;
        max-height: 9vh;
    }

  .wheel-of-affinities-index__column {
        width: 200px;
    }

  .wheel-of-affinities-study-card {
        width: min(280px, 86vw);
        padding: 10px 12px;
    }

  .wheel-of-affinities-study-card__criteria {
        grid-template-columns: minmax(0, 1fr);
    }

}
