.v2-button__icon {
  display: inline-grid;
  inline-size: 1.25em;
  block-size: 1.25em;
  flex: 0 0 auto;
  place-items: center;
  line-height: 1;
}

.v2-button--compact {
  min-block-size: var(--touch-target-min);
  padding-inline: var(--space-4);
  font-size: var(--font-size-sm);
}

.v2-button--large {
  min-block-size: 3.25rem;
  padding-inline: var(--space-6);
  font-size: var(--font-size-md);
}

.v2-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-3);
  min-inline-size: 0;
}

.v2-button-group > .v2-button {
  max-inline-size: 100%;
  white-space: normal;
}

.v2-badge {
  display: inline-flex;
  min-block-size: 1.75rem;
  max-inline-size: 100%;
  padding: var(--space-1) var(--space-3);
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  overflow-wrap: anywhere;
}

.v2-badge--info {
  border-color: rgb(7 91 173 / 34%);
  color: var(--color-brand-blue);
  background: var(--color-snow);
}

.v2-badge--protected {
  border-color: rgb(138 90 0 / 36%);
  color: var(--color-warning);
  background: #FFF8DF;
}

.v2-badge--new {
  border-color: rgb(31 122 77 / 32%);
  color: var(--color-success);
  background: #EFFAF4;
}

.v2-section-header {
  inline-size: 100%;
  max-inline-size: none;
  min-inline-size: 0;
}

.v2-section-header__eyebrow,
.v2-section-header__title,
.v2-section-header__description {
  min-inline-size: 0;
  margin: 0;
}

.v2-section-header__eyebrow {
  color: var(--color-brand-blue);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.v2-section-header__title {
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-tight);
  overflow-wrap: anywhere;
}

.v2-section-header__description {
  max-inline-size: var(--layout-readable-max);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.v2-section-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-inline-size: 0;
  margin-block-start: var(--space-2);
}

.v2-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-block-size: clamp(27rem, 67vh, 42rem);
  align-items: end;
  color: var(--color-text-inverse);
  background: var(--color-brand-navy);
  overflow: hidden;
}

.v2-hero--content {
  min-block-size: 0;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-snow) 58%, var(--color-surface-muted) 100%);
  overflow: visible;
}

.v2-hero--resort {
  min-block-size: clamp(30rem, 72vh, 46rem);
}

.v2-hero__media,
.v2-hero__overlay {
  position: absolute;
  inset: 0;
}

.v2-hero__media {
  z-index: -2;
  background: var(--color-brand-navy);
}

.v2-hero__media > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: var(--v2-hero-object-position, center);
}

.v2-hero__overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgb(6 40 95 / 18%) 0%, rgb(6 40 95 / 84%) 88%);
}

.v2-hero__content {
  inline-size: min(100% - (2 * var(--v2-current-gutter)), var(--layout-content-max));
  min-inline-size: 0;
  margin-inline: auto;
  padding-block: var(--space-8);
}

.v2-hero--content .v2-hero__content {
  padding-block: var(--space-8);
}

.v2-hero__eyebrow,
.v2-hero__title,
.v2-hero__description,
.v2-hero__meta {
  margin: 0;
}

.v2-hero__eyebrow {
  color: var(--color-brand-gold);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.v2-hero--content .v2-hero__eyebrow {
  color: var(--color-brand-blue);
}

.v2-hero__title {
  max-inline-size: 18ch;
  margin-block-start: var(--space-3);
  color: inherit;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  overflow-wrap: anywhere;
}

.v2-hero__description {
  max-inline-size: var(--layout-readable-max);
  margin-block-start: var(--space-4);
  color: rgb(255 255 255 / 90%);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
}

.v2-hero--content .v2-hero__description {
  color: var(--color-text-secondary);
}

.v2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-inline-size: 0;
  margin-block-start: var(--space-5);
}

.v2-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-block-start: var(--space-5);
  color: rgb(255 255 255 / 82%);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.v2-hero--content .v2-hero__meta {
  color: var(--color-text-secondary);
}

.v2-content-card {
  display: flex;
  min-inline-size: 0;
  flex-direction: column;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-standard);
}

.v2-content-card:hover {
  border-color: rgb(7 91 173 / 42%);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.v2-content-card__media {
  aspect-ratio: 16 / 9;
  min-block-size: 0;
  border-start-start-radius: calc(var(--radius-large) - var(--border-width));
  border-start-end-radius: calc(var(--radius-large) - var(--border-width));
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-snow));
  overflow: hidden;
}

.v2-content-card__media > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.v2-content-card__body {
  display: flex;
  min-inline-size: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.v2-content-card__eyebrow,
.v2-content-card__title,
.v2-content-card__description,
.v2-content-card__meta {
  min-inline-size: 0;
  margin: 0;
}

.v2-content-card__eyebrow {
  color: var(--color-brand-blue);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.v2-content-card__title {
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  overflow-wrap: anywhere;
}

.v2-content-card__title > a {
  border-radius: var(--radius-small);
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.v2-content-card__title > a:hover {
  color: var(--color-brand-blue);
}

.v2-content-card__description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.v2-content-card__meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.v2-content-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}

.v2-resource-card {
  display: grid;
  min-inline-size: 0;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.v2-resource-card--protected {
  border-color: rgb(138 90 0 / 42%);
  background: linear-gradient(135deg, var(--color-surface) 0%, #FFF9E8 100%);
}

.v2-resource-card__cover {
  min-block-size: 10rem;
  border-start-start-radius: calc(var(--radius-large) - var(--border-width));
  border-end-start-radius: calc(var(--radius-large) - var(--border-width));
  background: var(--color-surface-muted);
  overflow: hidden;
}

.v2-resource-card__cover > img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.v2-resource-card__cover--fallback {
  display: grid;
  padding: var(--space-3);
  place-items: center;
  color: var(--color-brand-blue);
  background: linear-gradient(145deg, var(--color-surface-muted), var(--color-snow));
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
}

.v2-resource-card__body {
  display: flex;
  min-inline-size: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.v2-resource-card__badge {
  align-self: flex-start;
}

.v2-resource-card__title,
.v2-resource-card__description,
.v2-resource-card__meta {
  min-inline-size: 0;
  margin: 0;
}

.v2-resource-card__title {
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  overflow-wrap: anywhere;
}

.v2-resource-card__description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.v2-resource-card__meta {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.v2-resource-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: auto;
  padding-block-start: var(--space-2);
}

.v2-cta-panel {
  display: flex;
  min-inline-size: 0;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  border: var(--border-width) solid rgb(7 91 173 / 22%);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-snow));
  box-shadow: var(--shadow-card);
}

.v2-cta-panel__content {
  min-inline-size: 0;
}

.v2-cta-panel__title,
.v2-cta-panel__description {
  margin: 0;
}

.v2-cta-panel__title {
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  overflow-wrap: anywhere;
}

.v2-cta-panel__description {
  max-inline-size: var(--layout-readable-max);
  margin-block-start: var(--space-3);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.v2-cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex: 0 0 auto;
}

.v2-empty-state {
  display: grid;
  min-inline-size: 0;
  max-inline-size: var(--layout-readable-max);
  gap: var(--space-3);
  padding: clamp(var(--space-5), 6vw, var(--space-7));
  border: var(--border-width) dashed var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  text-align: center;
}

.v2-empty-state__icon {
  display: inline-grid;
  inline-size: 3rem;
  block-size: 3rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  color: var(--color-brand-blue);
  background: var(--color-surface-muted);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.v2-empty-state__heading,
.v2-empty-state__description {
  margin: 0;
}

.v2-empty-state__heading {
  color: var(--color-text-primary);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.v2-empty-state__description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.v2-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-2);
}

.v2-site-footer,
.v2-site-footer *,
.v2-site-footer *::before,
.v2-site-footer *::after {
  box-sizing: border-box;
}

.v2-site-footer {
  color: rgb(255 255 255 / 86%);
  background: var(--color-brand-navy);
}

.v2-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.v2-site-footer__brand-block {
  min-inline-size: 0;
}

.v2-site-footer__brand {
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.v2-site-footer__description {
  max-inline-size: 32rem;
  margin: var(--space-2) 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.v2-site-footer__nav,
.v2-site-footer__social {
  min-inline-size: 0;
  padding-block-start: var(--space-4);
  border-block-start: var(--border-width) solid rgb(255 255 255 / 14%);
}

.v2-site-footer__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-brand-gold);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-wide);
}

.v2-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Group links by reading order; keep each account and its detail together. */
.v2-site-footer__nav .v2-site-footer__links,
.v2-site-footer__social .v2-site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.v2-site-footer__nav .v2-site-footer__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--space-3);
}

.v2-site-footer__social .v2-site-footer__links {
  gap: var(--space-3) var(--space-4);
}

.v2-site-footer .v2-site-footer__social .v2-site-footer__item {
  display: grid;
  grid-template-rows: 44px auto;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.v2-site-footer .v2-site-footer__social .v2-site-footer__link {
  inline-size: 100%;
  justify-content: center;
}

.v2-site-footer .v2-site-footer__social .v2-site-footer__detail {
  inline-size: 100%;
  text-align: center;
}

.v2-site-footer__item {
  min-inline-size: 0;
}

.v2-site-footer__link {
  display: inline-flex;
  min-block-size: var(--touch-target-min);
  padding-block: var(--space-1);
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.v2-site-footer__link:hover {
  color: var(--color-brand-gold);
}

.v2-site-footer__detail {
  display: block;
  margin-block-start: 0;
  color: rgb(255 255 255 / 68%);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.v2-site-footer__legal {
  padding-block-start: var(--space-5);
  border-block-start: var(--border-width) solid rgb(255 255 255 / 20%);
}

.v2-site-footer__copyright,
.v2-site-footer__legal-text {
  margin: 0;
  line-height: var(--line-height-body);
}

.v2-site-footer__copyright {
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-bold);
}

.v2-site-footer__legal-text {
  max-inline-size: none;
  margin-block-start: var(--space-2);
  color: rgb(255 255 255 / 68%);
  font-size: var(--font-size-sm);
}

.v2-site-footer :where(.v2-site-footer__link):focus-visible {
  position: relative;
  outline: var(--focus-ring-width) solid var(--color-brand-gold);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 2px var(--color-brand-navy), 0 0 0 5px var(--color-brand-gold);
}

/* Use the ski guide's footer on every public page, including legacy shells. */
body .v2-pilot-footer-root > .v2-site-footer {
  padding: 0 !important;
  border-top: 4px solid #b84438 !important;
  color: #ece5dc !important;
  background: #222224 !important;
  text-align: start !important;
  font-size: 14px !important;
}

.v2-site-footer :is(.v2-site-footer__brand, .v2-site-footer__link, .v2-site-footer__copyright) {
  color: #ece5dc !important;
}

.v2-site-footer__brand {
  font-family: "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Songti TC", "Microsoft JhengHei", "Microsoft YaHei", PMingLiU, serif;
}

.v2-site-footer :is(.v2-site-footer__description, .v2-site-footer__detail, .v2-site-footer__legal-text) {
  color: #c7bdb3 !important;
}

.v2-site-footer__heading { color: #e8c17a !important; }
.v2-site-footer .v2-site-footer__link:hover { color: #f0aaa2 !important; }
.v2-site-footer :where(.v2-site-footer__link):focus-visible {
  outline-color: #f0aaa2;
  box-shadow: 0 0 0 2px #222224, 0 0 0 5px #f0aaa2;
}

@media (max-width: 30rem) {
  .v2-site-footer__nav .v2-site-footer__links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0 var(--space-2);
  }

  .v2-button--mobile-full,
  .v2-hero__actions > .v2-button,
  .v2-cta-panel__actions > .v2-button {
    inline-size: 100%;
  }

  .v2-resource-card {
    grid-template-columns: 1fr;
  }

  .v2-resource-card__cover {
    aspect-ratio: 16 / 8;
    min-block-size: 0;
    border-start-end-radius: calc(var(--radius-large) - var(--border-width));
    border-end-start-radius: 0;
  }
}

@media (min-width: 48rem) {
  .v2-section-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-6);
  }

  .v2-section-header__eyebrow,
  .v2-section-header__title,
  .v2-section-header__description {
    grid-column: 1;
  }

  .v2-section-header__actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    justify-content: flex-end;
    margin-block-start: 0;
  }

  .v2-cta-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .v2-site-footer__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .v2-site-footer__brand-block {
    grid-column: 1 / -1;
  }

  .v2-site-footer__legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .v2-site-footer__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr) minmax(0, 1.1fr);
    column-gap: var(--space-5);
  }

  .v2-site-footer__nav,
  .v2-site-footer__social {
    padding-block-start: 0;
    padding-inline-start: var(--space-5);
    border-block-start: 0;
    border-inline-start: var(--border-width) solid rgb(255 255 255 / 14%);
  }

  .v2-site-footer__brand-block {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-content-card {
    transition: none;
  }

  .v2-content-card:hover {
    transform: none;
  }
}
