/* M1S6_MAP_CSS_VERSION: shared-formal-v85 */
.m1s6-global-map-mobile {
  --city-map-css-version: "shared-formal-v85";
  display: none;
}

.m1s6:before{
    height:30%;
  }

@media (min-width: 0) {
  .m1s6 {
    overflow: clip;
    
  }
  .m1s6-global-map-mobile {
    --city-map-bg: #e9ece4;
    --city-map-ink: #050505;
    --city-map-muted: #757575;
    --city-map-line: rgba(5, 5, 5, 0.22);
    --city-map-green: #577058;
    --city-map-orange: #f58220;
    --city-map-ratio: 1030.62 / 625.71;

    display: block;
    position: relative;
    width: 100%;
    min-height: 640px;
    overflow-x: clip;
    overflow-y: visible;
    background: transparent;
    color: var(--city-map-ink);
    font-family: inherit;
    padding: 8px 7vw 0;
    box-sizing: border-box;
  }

  .city-map-nav {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 14px;
    border-bottom: 1px solid var(--city-map-line);
    min-height: 54px;
    padding-bottom: 10px;
  }

  .city-map-path {
    min-width: 0;
    font-size: clamp(28px, 7.1vw, 34px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: left;
    word-break: keep-all;
  }

  .city-map-path span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
  }

  .city-map-path button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
    padding: 0;
    text-align: left;
  }

  .city-map-path .is-parent::after {
    content: "▶";
    display: inline-block;
    margin: 0 10px;
    font-size: 0.35em;
    transform: translateY(-0.1em);
  }

  .city-map-path .is-parent {
    color: #a3a3a3;
  }

  .city-map-back {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--city-map-muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    padding: 0 0 5px;
    white-space: nowrap;
  }

  .city-map-back[hidden] {
    display: none;
  }

  .city-map-list {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    min-height: 80px;
    padding: 10px 0 4px;
    text-align: left;
  }

  .city-map-list::before {
    content: "";
    display: none;
    position: absolute;
    z-index: -1;
    inset: -12px -7vw -20px;
    background: linear-gradient(
      to bottom,
      rgba(233, 236, 228, 0.97) 0%,
      rgba(233, 236, 228, 0.9) 62%,
      rgba(233, 236, 228, 0) 100%
    );
    pointer-events: none;
  }

  .city-map-list.is-root,
  .city-map-list.is-country {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .city-map-list.is-root {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: clamp(80px, 24vw, 112px);
    row-gap: 18px;
  }

  .city-map-list.is-root .city-map-option:nth-child(even) {
    transform: translateX(10px);
  }

  .city-map-list.is-country {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 16px;
    text-align: left;
  }

  .city-map-list.is-long-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .city-map-list:not(.is-root):not(.is-country) {
    row-gap: 5px;
  }

  .city-map-list.is-long-list .city-map-option {
    font-size: 15px;
    line-height: 1.24;
  }

  .city-map-list.is-taiwan {
    background: transparent;
    box-shadow: none;
  }

  .city-map-list.is-taiwan::before {
    display: none;
  }

  .city-map-option {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--city-map-ink);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    line-height: 1.28;
    letter-spacing: 0;
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .city-map-list.is-root .city-map-option {
    font-size: 1.5rem;
    line-height: 1.22;
    width: auto;
  }

  .city-map-list.is-country .city-map-option {
    justify-content: flex-start;
    font-size: 16px;
  }

  .city-map-list:not(.is-root):not(.is-country) .city-map-option {
    min-height: 28px;
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.92);
  }

  .city-map-option::before {
    content: "•";
    flex: 0 0 auto;
    margin-right: 9px;
    color: var(--city-map-ink);
    font-size: 0.92em;
    line-height: 1;
  }

  .city-map-list.is-root .city-map-option::before,
  .city-map-list.is-country .city-map-option::before {
    content: "";
    display: none;
  }

  .city-map-list.is-root .city-map-option::after {
    content: none;
  }

  .city-map-list.is-root .city-map-option .root-caret {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.31em;
    transform: translateY(0.08em);
  }

  .city-map-list.is-country .city-map-option::after {
    content: "▼";
    margin-left: 7px;
    font-size: 0.45em;
    transform: translateY(0.04em);
  }

  .city-map-option.is-active {
    color: var(--city-map-orange);
  }

  .city-map-option-note {
    color: #777;
    font-size: 0.75em;
    line-height: 1;
  }

  .city-map-stage {
    position: absolute;
    z-index: 1;
    top: -118px;
    left: 0;
    right: 0;
    height: 870px;
    min-height: 870px;
    margin: 0;
    overflow: visible;
  }

  .m1s6-global-map-mobile.is-map-calibrator .city-map-stage {
    cursor: grab;
    touch-action: none;
  }

  .m1s6-global-map-mobile.is-map-calibrator .city-map-stage.is-dragging {
    cursor: grabbing;
  }

  .city-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    aspect-ratio: var(--city-map-ratio);
    height: auto;
  }

  .city-map-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    user-select: none;
  }

  /* Overrides Bootstrap's svg:not(:root) { overflow: hidden; } reset. */
  .city-map-canvas .city-map-svg:not(:root) {
    overflow: visible;
  }

  .city-map-admin-layer {
    pointer-events: none;
    user-select: none;
    vector-effect: non-scaling-stroke;
  }

  .city-map-points {
    transition: opacity 220ms ease;
  }

  .city-map-dot {
    fill: var(--city-map-green);
    stroke: rgba(255, 255, 255, 0.42);
    stroke-width: 0.18;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    opacity: 0.95;
  }

  .m1s6-global-map-mobile.is-root-view .city-map-nav {
    display: none;
  }

  .m1s6-global-map-mobile.is-root-view .city-map-list {
    padding-top: 10px;
  }

  .m1s6-global-map-mobile:not(.is-root-view) {
    min-height: 752px;
  }

  .m1s6-global-map-mobile.is-root-view .city-map-stage {
    top: -42px;
  }

  .city-map-dot.is-active {
    fill: var(--city-map-orange);
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 0.35;
  }

}

@media (min-width: 431px) {
  /* The existing official page uses a flex layout on .m1s6. Keep this
     standalone map section in a single column instead of splitting its
     heading and map into separate flex items. */
  .m1s6.preview-m1s6 {
    display: block !important;
    height: auto !important;
    min-height: 100vh;
  }

  .m1s6.preview-m1s6 > .preview-copy,
  .m1s6.preview-m1s6 > .m1s6-global-map-mobile {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }

  .m1s6 {
    overflow: visible;
  }

  .m1s6-global-map-mobile {
    --city-map-desktop-height: 100vh;

    max-width: none;
    min-height: var(--city-map-desktop-height);
    margin: 0 auto;
    padding: 20px 0 0;
  }

  .m1s6 .preview-copy {
    position: relative;
    z-index: 3;
    padding: 46px clamp(32px, 7vw, 120px) 0;
    background: linear-gradient(
      to bottom,
      #e9ece4 0%,
      #e9ece4 44%,
      rgba(233, 236, 228, 0.93) 66%,
      rgba(233, 236, 228, 0) 100%
    );
  }

  .m1s6 .preview-title {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  }

  .m1s6 .preview-subtitle {
    font-size: 1.2rem;
  }

  .m1s6 .preview-target {
    font-size: 1rem;
  }

  .m1s6 .preview-cta {
    width: min(252px, 27vw);
    min-height: 45px;
    margin-top: 26px;
    font-size: 1.38rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgb(106 55 23 / 35%);
  }

  .city-map-nav,
  .city-map-list {
    width: 80%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .city-map-nav {
    min-height: 68px;
    padding: 0 0 14px;
    border-bottom: 0;
  }

  .city-map-path {
    font-size: 24px;
  }

  .city-map-path .is-parent {
    font-size: 24px;
  }

  .city-map-path .is-parent::after {
    margin: 0 8px;
    color: #a3a3a3;
    font-size: 12px;
  }

  .city-map-back {
    font-size: 13px;
    padding-bottom: 0;
  }

  .city-map-list {
    padding-top: 14px;
    padding-bottom: 8px;
  }

  .city-map-list.is-root {
    column-gap: clamp(110px, 17vw, 220px);
    row-gap: 24px;
  }

  .city-map-list.is-country,
  .city-map-list.is-long-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 28px;
  }

  .city-map-list.is-root .city-map-option {
    font-size: 24px;
  }

  .city-map-list.is-root .city-map-option::after {
    content: none;
  }

  .city-map-list.is-root .city-map-option .root-caret {
    display: inline-block;
    margin-left: 7px;
    font-size: 0.7em;
    vertical-align: 0.08em;
  }

  .city-map-option,
  .city-map-list.is-country .city-map-option,
  .city-map-list.is-long-list .city-map-option {
    font-size: 18px;
  }

  .city-map-list:not(.is-root):not(.is-country) .city-map-option {
    min-height: 30px;
  }

  .city-map-dot {
    stroke: rgba(255, 255, 255, 0.58);
    stroke-width: 0.2;
  }

  .city-map-stage {
    z-index: 0;
    top: -105px;
    height: var(--city-map-desktop-height);
    min-height: var(--city-map-desktop-height);
  }

  .city-map-canvas {
    left: 0;
    width: 100%;
    transform: none;
  }

  .m1s6-global-map-mobile.is-root-view .city-map-stage {
    top: -105px;
  }

  .m1s6-global-map-mobile:not(.is-root-view) {
    min-height: var(--city-map-desktop-height);
  }
}

@media (min-width: 769px) {
  .city-map-nav,
  .city-map-list {
    width: 35%;
  }
}

@media (max-width: 390px) {
  .city-map-list {
    gap: 14px 24px;
    padding-left: 0;
    padding-right: 0;
  }

  .city-map-option {
    font-size: 15px;
  }

  .city-map-list.is-country {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
