.kf-compass {
    --compass-paper: #f7f4ec;
    --compass-card: #fffdf8;
    --compass-card-end: #f2eee3;
    --compass-ink: #142b3b;
    --compass-copy: #3f5566;
    --compass-line: #d8d2c3;
    --compass-accent: #74521e;
    color: var(--compass-ink);
    background: var(--compass-paper);
}
[data-kf-theme="dark"] .kf-compass {
    --compass-paper: #101a22;
    --compass-card: #182b38;
    --compass-card-end: #13232e;
    --compass-ink: #f6f1e6;
    --compass-copy: #c1d0d8;
    --compass-line: #405765;
    --compass-accent: #f1ce81;
}
.kf-compass-wrap { max-width: 1360px; }
.kf-compass-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: end;
    gap: clamp(16px, 5vw, 88px);
    margin-bottom: clamp(26px, 4vw, 52px);
}
.kf-compass-intro .lp-kicker { color: var(--compass-accent); }
.kf-compass h2 {
    font-size: clamp(34px, 4.5vw, 72px);
    line-height: 1.04;
    letter-spacing: -.055em;
}
.kf-compass-lead {
    max-width: 43ch;
    margin: 0 0 .2em;
    color: var(--compass-copy);
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.63;
}
.kf-compass-prompt {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 780;
}
.kf-compass-explorer {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: 12px;
}
.kf-compass-board {
    min-width: 0;
    min-height: 290px;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    color: #f7f1df;
    background:
        radial-gradient(ellipse at 50% 47%, #254c64 0, #142f44 39%, transparent 73%),
        linear-gradient(145deg, #132a3b, #0b1a27 62%, #112b3d);
}
.kf-compass-board::before,
.kf-compass-board::after {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
}
.kf-compass-board::before {
    inset: 0;
    background:
        repeating-radial-gradient(ellipse at 50% 50%, transparent 0 24px, #b7d3e20d 25px 26px, transparent 27px 45px),
        repeating-linear-gradient(0deg, transparent 0 43px, #b7d3e20b 44px 45px),
        repeating-linear-gradient(90deg, transparent 0 43px, #b7d3e20b 44px 45px);
}
.kf-compass-board::after {
    inset: 9px;
    border: 1px solid #abc5d330;
    border-radius: 10px;
}
.kf-compass-dial {
    position: relative;
    width: min(72%, 300px);
    aspect-ratio: 1;
    border: 1px solid #c8a9658c;
    border-radius: 50%;
    background: radial-gradient(circle, #1c394c 0 25%, #183243c9 26% 52%, transparent 73%);
    box-shadow: 0 0 0 5px #07152556, 0 0 0 6px #b5c6d028, 0 12px 42px #070f1b91;
}
.kf-compass-ticks,
.kf-compass-orbit,
.kf-compass-needle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.kf-compass-ticks {
    inset: 3%;
    background:
        repeating-conic-gradient(from -.55deg, #f7d78ca6 0 1.1deg, transparent 1.1deg 45deg),
        repeating-conic-gradient(from -.24deg, #dcdecc70 0 .48deg, transparent .48deg 5.625deg);
    mask-image: radial-gradient(circle closest-side, transparent 0 87%, #000 88% 99%, transparent);
}
.kf-compass-orbit {
    inset: 12%;
    border: 1px solid #cbb4777d;
    background: repeating-conic-gradient(from -.28deg, #e4cf9859 0 .56deg, transparent .56deg 45deg);
    box-shadow: inset 0 0 28px #091d2d9e;
}
.kf-compass-orbit::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid #aecbdf42;
    border-radius: inherit;
}
.kf-compass-needle {
    opacity: 0;
    transform: rotate(var(--compass-direction, 0deg));
    transition: transform .45s cubic-bezier(.2,.72,.3,1), opacity .22s ease-out;
}
.kf-compass-needle::before {
    content: "";
    position: absolute;
    inset: -3% 45% 43%;
    background: linear-gradient(180deg, #fff1bc, #dfab4f 65%, #a66c2d);
    clip-path: polygon(50% 0, 74% 82%, 50% 100%, 26% 82%);
}
.is-pointing .kf-compass-needle { opacity: 1; }
.kf-compass-hub {
    position: absolute;
    inset: 27%;
    display: grid;
    place-items: center;
    border: 1px solid #d7b97691;
    border-radius: 50%;
    background: radial-gradient(circle at 47% 37%, #244a64, #112635 69%, #0c1c2b);
    box-shadow: 0 0 0 4px #0c1c2fa6, inset 0 0 0 3px #b5955d24, 0 3px 20px #070f1b99;
}
.kf-compass-hub img {
    display: block;
    width: 92%;
    height: auto;
}
.kf-compass-wheel[hidden] { display: none; }
.kf-compass-areas {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}
.kf-compass-area,
.kf-compass-method {
    min-width: 0;
    color: var(--compass-ink);
    background: var(--compass-card);
    border: 1px solid var(--compass-line);
    border-radius: 9px;
}
.kf-compass-area[open] { border-color: var(--compass-accent); }
.kf-compass-summary {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 13px;
    min-height: 53px;
    padding: 9px clamp(14px, 2vw, 23px);
    border-radius: 8px;
    list-style: none;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 780;
    line-height: 1.38;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.kf-compass-summary::-webkit-details-marker { display: none; }
.kf-compass-summary:hover,
.kf-compass-area[open] > .kf-compass-summary { color: var(--compass-accent); }
.kf-compass-marker {
    display: block;
    width: 8px;
    height: 8px;
    border: 1px solid currentColor;
    transform: rotate(45deg);
}
.kf-compass-area[open] .kf-compass-marker,
.kf-compass-point[aria-selected="true"] .kf-compass-marker { background: currentColor; }
.kf-compass-plus {
    position: relative;
    width: 14px;
    height: 14px;
    color: var(--compass-accent);
}
.kf-compass-plus::before,
.kf-compass-plus::after {
    content: "";
    position: absolute;
    inset: 6px 1px;
    border-radius: 1px;
    background: currentColor;
}
.kf-compass-plus::after { transform: rotate(90deg); }
.kf-compass details[open] > summary .kf-compass-plus::after { opacity: 0; }
.kf-compass-panel {
    padding: 0 clamp(14px, 2vw, 23px) 17px;
    overflow-wrap: anywhere;
}
.kf-compass-panel h3 { display: none; }
.kf-compass-panel p,
.kf-compass-method-copy p {
    max-width: 58ch;
    margin: 0 0 15px;
    color: var(--compass-copy);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.63;
}
.kf-compass-program,
.kf-compass-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}
.kf-compass-program {
    padding: 9px 14px;
    color: #172833;
    background: #f3d187;
}
.kf-compass-program:hover { color: #172833; background: #fce2a1; }
.kf-compass-footer {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 12px;
}
.kf-compass-method { background: transparent; }
.kf-compass-method-copy { padding: 0 clamp(14px, 2vw, 23px) 4px; }
.kf-compass-catalog {
    min-height: 55px;
    padding: 9px clamp(14px, 2vw, 23px);
    color: var(--compass-ink);
    border: 1px solid var(--compass-line);
}
.kf-compass-catalog:hover { color: var(--compass-accent); border-color: var(--compass-accent); }
.kf-compass :is(button, summary, a, [role="tabpanel"]):focus-visible {
    outline: 2px solid var(--compass-accent);
    outline-offset: 3px;
}

@media (min-width: 1100px) {
    .kf-compass-explorer.has-wheel {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 0;
        border: 1px solid var(--compass-line);
        border-radius: 17px;
        box-shadow: 0 22px 45px -34px #090f1d9c;
    }
    .has-wheel .kf-compass-board {
        min-height: clamp(398px, 38vw, 500px);
        border-radius: 16px 0 0 16px;
    }
    .has-wheel .kf-compass-dial { width: clamp(273px, 25vw, 344px); }
    .kf-compass-wheel { position: absolute; inset: 0; }
    .kf-compass-point {
        --point-x: 50%;
        --point-y: 11%;
        position: absolute;
        left: var(--point-x);
        top: var(--point-y);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        min-height: 44px;
        width: max-content;
        max-width: 31%;
        padding: 6px 12px;
        transform: translate(-50%, -50%);
        color: #f7f1df;
        background: #133045;
        border: 1px solid #85a6ba96;
        border-radius: 7px;
        box-shadow: 0 5px 9px #07142060;
        font: inherit;
        font-size: clamp(13px, 1.12vw, 16px);
        font-weight: 780;
        line-height: 1.28;
        text-align: left;
        overflow-wrap: anywhere;
        cursor: pointer;
    }
    .kf-compass-point > span:last-child { min-width: 0; }
    .kf-compass-point .kf-compass-marker { flex: 0 0 8px; color: #e1bd72; }
    .kf-compass-point:nth-child(2) { --point-x: 77%; --point-y: 22%; }
    .kf-compass-point:nth-child(3) { --point-x: 82%; --point-y: 50%; }
    .kf-compass-point:nth-child(4) { --point-x: 77%; --point-y: 78%; }
    .kf-compass-point:nth-child(5) { --point-y: 89%; }
    .kf-compass-point:nth-child(6) { --point-x: 23%; --point-y: 78%; }
    .kf-compass-point:nth-child(7) { --point-x: 18%; --point-y: 50%; }
    .kf-compass-point:nth-child(8) { --point-x: 23%; --point-y: 22%; }
    .kf-compass-point:hover { background: #21435a; border-color: #e0bf7e; }
    .kf-compass-point[aria-selected="true"] {
        color: #142737;
        background: #f3d187;
        border-color: #f7dea3;
        box-shadow: 0 0 0 3px #f1c97533, 0 4px 16px #0a182799;
    }
    .kf-compass-point[aria-selected="true"] .kf-compass-marker { color: #795521; }
    .kf-compass .kf-compass-point:focus-visible { outline-color: #ffdf91; }
    .has-wheel .kf-compass-areas {
        align-content: center;
        padding: clamp(22px, 3.25vw, 60px);
        border-radius: 0 16px 16px 0;
        background: linear-gradient(138deg, var(--compass-card), var(--compass-card-end));
    }
    .has-wheel .kf-compass-area {
        background: transparent;
        border: 0;
    }
    .has-wheel .kf-compass-area:not([open]),
    .has-wheel .kf-compass-summary { display: none; }
    .has-wheel .kf-compass-panel { padding: 0; }
    .has-wheel .kf-compass-panel h3 {
        display: block;
        margin: 0 0 16px;
        font-size: clamp(28px, 3vw, 47px);
        font-weight: 820;
        letter-spacing: -.045em;
        line-height: 1.1;
    }
    .has-wheel .kf-compass-panel h3::before {
        content: "";
        display: block;
        width: 42px;
        height: 2px;
        margin-bottom: clamp(17px, 2vw, 26px);
        background: var(--compass-accent);
    }
    .has-wheel .kf-compass-panel p { margin-bottom: clamp(16px, 2vw, 29px); }
}
@media (max-width: 740px) {
    .kf-compass-intro,
    .kf-compass-explorer,
    .kf-compass-footer { grid-template-columns: minmax(0, 1fr); }
    .kf-compass-intro { gap: 14px; }
    .kf-compass-explorer { gap: 9px; }
    .kf-compass-board { min-height: clamp(160px, 46vw, 224px); }
    .kf-compass-dial { width: clamp(124px, 35vw, 180px); }
    .kf-compass-footer { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .kf-compass-needle { transition: none; }
}
