/* Wirecell Mullion — unequal enamel panes + lead wires + brand medallion */
.wc-nav {
 position: sticky;
 top: 0;
 z-index: 80;
 background: var(--a101-surface);
 border-bottom: var(--a101-wire-w) solid var(--a101-wire);
 box-shadow: 0 4px 0 rgba(61, 52, 41, 0.08);
}
.wc-nav-inner {
 width: min(100% - 24px, var(--a101-max));
 margin-inline: auto;
 display: grid;
 grid-template-columns: auto 1fr auto;
 gap: 16px;
 align-items: stretch;
 min-height: var(--a101-nav-h);
 padding: 8px 0;
}
.wc-medal {
 position: relative;
 display: grid;
 place-items: center;
 width: 68px;
 height: 68px;
 text-decoration: none;
 color: var(--a101-ink);
 flex-shrink: 0;
}
.wc-medal-ring {
 position: absolute;
 inset: 0;
 border-radius: 50%;
 border: 3px solid var(--a101-wire);
 background:
 conic-gradient(
 from 20deg,
 var(--a101-primary) 0 90deg,
 var(--a101-secondary) 90deg 180deg,
 var(--a101-accent) 180deg 270deg,
 var(--a101-jade) 270deg 360deg
 );
 box-shadow: inset 0 0 0 8px var(--a101-surface), 3px 3px 0 var(--a101-wire);
 transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.wc-medal:hover .wc-medal-ring,
.wc-medal:focus-visible .wc-medal-ring {
 transform: rotate(28deg) scale(1.04);
}
.wc-medal-core {
 position: relative;
 z-index: 1;
 display: flex;
 flex-direction: column;
 align-items: center;
 line-height: 1;
 text-align: center;
 background: var(--a101-surface);
 width: 44px;
 height: 44px;
 border-radius: 50%;
 border: 2px solid var(--a101-wire);
 justify-content: center;
}
.wc-medal-core strong {
 font-family: var(--a101-font-display);
 font-size: 0.55rem;
 letter-spacing: 0.02em;
}
.wc-medal-core em {
 font-style: normal;
 font-size: 0.48rem;
 font-weight: 700;
 color: var(--a101-primary);
 text-transform: uppercase;
}

.wc-mullion {
 display: flex;
 align-items: stretch;
 min-width: 0;
 border: var(--a101-wire-w) solid var(--a101-wire);
 border-radius: var(--a101-radius-cell);
 overflow: hidden;
 background: var(--a101-wire);
 gap: 0;
}
.wc-wire {
 width: 3px;
 background: var(--a101-wire);
 flex-shrink: 0;
}
.wc-pane {
 position: relative;
 flex: 1 1 0;
 min-width: 0;
 display: grid;
 place-items: center;
 padding: 10px 8px;
 text-decoration: none;
 color: var(--a101-ink);
 font-weight: 700;
 font-size: clamp(0.68rem, 1.1vw, 0.85rem);
 text-align: center;
 transition: flex-grow 0.35s ease, color 0.2s ease;
 isolation: isolate;
}
.wc-pane:nth-child(1) { flex-grow: 1.15; }
.wc-pane:nth-child(3) { flex-grow: 1.25; }
.wc-pane:nth-child(5) { flex-grow: 0.95; }
.wc-pane:nth-child(7) { flex-grow: 1.1; }
.wc-pane:nth-child(9) { flex-grow: 1.05; }
.wc-pane:nth-child(11) { flex-grow: 1.2; }
.wc-pane-fill {
 position: absolute;
 inset: 0;
 z-index: -1;
 transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), background 0.25s ease;
 transform-origin: bottom center;
}
.wc-pane--garnet .wc-pane-fill { background: var(--a101-garnet-soft); }
.wc-pane--lapis .wc-pane-fill { background: var(--a101-lapis-soft); }
.wc-pane--jade .wc-pane-fill { background: var(--a101-jade-soft); }
.wc-pane--amber .wc-pane-fill { background: var(--a101-amber-soft); }
.wc-pane:hover,
.wc-pane:focus-visible {
 flex-grow: 1.55;
 color: #fff;
 outline: none;
}
.wc-pane--garnet:hover .wc-pane-fill,
.wc-pane--garnet:focus-visible .wc-pane-fill,
.wc-pane--garnet.is-live .wc-pane-fill { background: var(--a101-primary); }
.wc-pane--lapis:hover .wc-pane-fill,
.wc-pane--lapis:focus-visible .wc-pane-fill,
.wc-pane--lapis.is-live .wc-pane-fill { background: var(--a101-secondary); }
/* Jade-deep: white on #1B8A5A fails AA for small pane labels */
.wc-pane--jade:hover .wc-pane-fill,
.wc-pane--jade:focus-visible .wc-pane-fill,
.wc-pane--jade.is-live .wc-pane-fill { background: var(--a101-jade-deep); }
/* Amber: ink on kiln orange — never white-on-accent (~2.8:1) */
.wc-pane--amber:hover,
.wc-pane--amber:focus-visible,
.wc-pane--amber.is-live {
 color: var(--a101-ink);
}
.wc-pane--amber:hover .wc-pane-fill,
.wc-pane--amber:focus-visible .wc-pane-fill,
.wc-pane--amber.is-live .wc-pane-fill { background: var(--a101-accent); }
.wc-pane.is-live {
 color: #fff;
 flex-grow: 1.45;
}
.wc-pane--amber.is-live { color: var(--a101-ink); }
.wc-pane.is-live .wc-pane-label { text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.wc-pane--amber.is-live .wc-pane-label { text-shadow: none; }
.wc-pane-label { position: relative; z-index: 1; }
.wc-pane-badge {
 position: absolute;
 top: 4px;
 right: 4px;
 z-index: 2;
 min-width: 18px;
 height: 18px;
 padding: 0 4px;
 border-radius: 9px;
 background: var(--a101-accent);
 color: var(--a101-ink);
 font-size: 0.65rem;
 font-weight: 800;
 display: grid;
 place-items: center;
 border: 2px solid var(--a101-wire);
}

.wc-tools {
 display: flex;
 align-items: center;
 gap: 10px;
}
.wc-tool {
 font-size: 0.78rem;
 font-weight: 700;
 color: var(--a101-secondary-deep);
 text-decoration: none;
 border-bottom: 2px solid transparent;
 white-space: nowrap;
}
.wc-tool:hover { border-bottom-color: var(--a101-accent); color: var(--a101-ink); }
.wc-kiln {
 display: none;
 align-items: center;
 gap: 8px;
 padding: 8px 12px;
 border: 3px solid var(--a101-wire);
 border-radius: var(--a101-radius-cell);
 background: var(--a101-accent);
 color: var(--a101-ink);
 font-weight: 800;
 font-family: var(--a101-font-body);
 cursor: pointer;
 box-shadow: 3px 3px 0 var(--a101-wire);
}
.wc-kiln-lid {
 width: 14px;
 height: 10px;
 border: 2px solid var(--a101-wire);
 border-radius: 3px 3px 0 0;
 background: var(--a101-gold);
 transition: transform 0.3s ease;
}
.wc-kiln[aria-expanded="true"] .wc-kiln-lid {
 transform: translateY(-4px) rotate(-12deg);
}
.wc-scrim {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(22, 18, 15, 0.45);
 z-index: 70;
}

@media (max-width: 900px) {
 .wc-nav-inner {
 grid-template-columns: auto 1fr;
 grid-template-rows: auto auto;
 }
 .wc-tools { justify-self: end; }
 .wc-kiln { display: inline-flex; }
 .wc-tool { display: none; }
 .wc-mullion {
 grid-column: 1 / -1;
 display: none;
 flex-direction: column;
 position: relative;
 z-index: 85;
 max-height: 70vh;
 overflow: auto;
 }
 .wc-mullion.is-open { display: flex; }
 .wc-wire { width: 100%; height: 3px; }
 .wc-pane {
 flex: none !important;
 padding: 14px 16px;
 justify-content: flex-start;
 place-items: start;
 }
 .wc-pane-label { font-size: 0.95rem; }
 .wc-scrim.is-on {
 display: block;
 }
}
