/* ============================================================================
   course-widgets/radial-hub.css -- widget #06

   a central hub node above a flow grid of radiating arm cards. unlike the
   original .ghk-radial (absolutely positioned hub text over a 2-col grid that
   collided at narrow widths), the hub here is a real centered element and the
   arms are a normal auto-fit grid, so text can never overlap at any width or arm
   count. each arm has a short accent stem visually tying it to the hub rail.
   theme-token styled throughout.
   ============================================================================ */

.cw-rh { display: block; }

/* --- hub --- */
.cw-rh-hub-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cw-rh-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    min-width: 110px;
    max-width: 220px;
    padding: 18px 22px;
    border-radius: 999px;
    background: var(--cw-accent-soft);
    border: 2px solid var(--cw-accent);
}
.cw-rh-hub-label {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--cw-accent);
    line-height: 1.15;
}
.cw-rh-hub-note {
    font-size: 0.72rem;
    color: var(--cw-muted);
    line-height: 1.3;
}
/* vertical rail connecting hub down to the arm grid */
.cw-rh-spine {
    width: 2px;
    height: 20px;
    background: var(--cw-accent);
    opacity: 0.5;
}

/* --- arms --- */
.cw-rh-arms {
    display: grid;
    grid-template-columns: repeat(var(--cw-cols, auto-fit), minmax(200px, 1fr));
    gap: var(--cw-gap, 12px);
    margin-top: 4px;
}
.cw-rh-arm {
    position: relative;
    padding: 14px 16px 12px;
    border-radius: var(--cw-radius, 14px);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-top: 3px solid var(--cw-accent);
}
/* short stem rising from each arm toward the hub rail */
.cw-rh-stem {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: var(--cw-accent);
    opacity: 0.4;
}
.cw-rh-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.07em;
    color: var(--cw-accent);
    margin-bottom: 3px;
}
.cw-rh-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--cw-text);
    line-height: 1.3;
    margin: 0 0 5px;
}
.cw-rh-desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--cw-muted);
}
