.jdc-map {
    --map-ink: #30221b;
    --map-muted: #655347;
    --map-accent: #8d412b;
    --map-line: #ded0b9;
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid var(--map-line);
    border-radius: 1.05rem;
    background: #fffaf0;
    color: var(--map-ink);
    scroll-margin-top: 1.25rem;
}

.jdc-map__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.jdc-map__eyebrow {
    margin: 0 0 0.3rem;
    color: var(--map-accent);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.jdc-map__title {
    margin: 0;
    font-size: clamp(1.15rem, 3.2vw, 1.55rem);
    line-height: 1.16;
}

.jdc-map__step {
    padding: 0.27rem 0.44rem;
    border: 1px solid var(--map-line);
    border-radius: 0.4rem;
    color: var(--map-muted);
    font-size: 0.7rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.jdc-map__hint {
    margin: 0.5rem 0 0.85rem;
    color: var(--map-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.jdc-map__back {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--map-accent);
    font-size: 0.82rem;
    font-weight: 750;
}

.jdc-map__plot {
    position: relative;
    overflow: hidden;
    border: 1px solid #e0d3b9;
    border-radius: 0.7rem;
    background-color: #f3ead5;
    background-image: radial-gradient(#bead904d 0.85px, transparent 0.85px);
    background-size: 11px 11px;
}

.jdc-map__compass {
    position: absolute;
    top: 0.6rem;
    left: 0.65rem;
    z-index: 1;
    color: #6d5b45;
    font-size: 0.64rem;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}

.jdc-map__compass::after {
    display: block;
    width: 0.54rem;
    height: 0.9rem;
    margin: 0.1rem auto 0;
    background-color: currentColor;
    clip-path: polygon(50% 0%, 100% 100%, 50% 69%, 0 100%);
    content: '';
}

.jdc-map__svg {
    display: block;
    width: 100%;
    height: auto;
}

.jdc-map__shape {
    cursor: pointer;
}

.jdc-map__shape path {
    fill: #e1b984;
    stroke: #675039;
    stroke-linejoin: round;
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
}

.jdc-map__shape:nth-of-type(3n + 1) path {
    fill: #e7c9a0;
}

.jdc-map__shape:nth-of-type(3n + 2) path {
    fill: #d6b07f;
}

.jdc-map__shape text {
    fill: #35251a;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.jdc-map__shape:hover path,
.jdc-map__shape:focus path,
.jdc-map__shape[aria-current] path {
    fill: var(--map-accent);
    stroke: #3f271d;
    stroke-width: 1.6;
}

.jdc-map__shape:hover text,
.jdc-map__shape:focus text,
.jdc-map__shape[aria-current] text {
    fill: #fff9eb;
}

.jdc-map__overseas {
    margin-top: 0.7rem;
    color: var(--map-muted);
    font-size: 0.74rem;
}

.jdc-map__overseas > span {
    font-weight: 750;
}

.jdc-map__overseas ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0.28rem 0 0;
    padding: 0;
    list-style: none;
}

.jdc-map__overseas a {
    display: block;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--map-line);
    border-radius: 2rem;
    background: #fff9ed;
    color: var(--map-ink);
    text-decoration: none;
}

.jdc-map__overseas a:hover,
.jdc-map__overseas a:focus-visible {
    border-color: var(--map-accent);
    color: var(--map-accent);
}

.jdc-map__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.45rem;
    margin-top: 1rem;
}

.jdc-map__form label {
    grid-column: 1 / -1;
    color: var(--map-ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.jdc-map__form select,
.jdc-map__form button {
    min-height: 2.75rem;
    border: 1px solid var(--map-line);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
}

.jdc-map__form select {
    width: 100%;
    min-width: 0;
    padding: 0.45rem;
    background: #fffcf6;
    color: var(--map-ink);
}

.jdc-map__form button {
    padding: 0.45rem 0.7rem;
    border-color: var(--map-accent);
    background: var(--map-accent);
    color: #fff9eb;
    font-weight: 750;
    cursor: pointer;
}

.jdc-map__form button:hover {
    background: #68301f;
}

.jdc-map__credit {
    margin: 0.65rem 0 0;
    color: var(--map-muted);
    font-size: 0.64rem;
}

.jdc-map__credit a {
    color: inherit;
}
