/* Clone layout helpers — complements official app.css */

/* Local fonts (match live Gustan + Fira-Sans) */
@font-face {
  font-family: gustan;
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../assets/fonts/Gustan-Light.woff") format("woff");
}
@font-face {
  font-family: gustan;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/Gustan-Book.woff") format("woff");
}
@font-face {
  font-family: gustan;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/Gustan-Medium.woff") format("woff");
}
@font-face {
  font-family: gustan;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Gustan-Bold.woff") format("woff");
}
@font-face {
  font-family: gustan;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Gustan-Bold.woff") format("woff");
}
@font-face {
  font-family: Fira-Sans;
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../assets/fonts/FiraSans-Light.woff") format("woff");
}
@font-face {
  font-family: Fira-Sans;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/FiraSans-Book.woff") format("woff");
}
@font-face {
  font-family: Fira-Sans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/FiraSans-Regular.woff") format("woff");
}
@font-face {
  font-family: Fira-Sans;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/FiraSans-Medium.woff") format("woff");
}
@font-face {
  font-family: Fira-Sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/FiraSans-Bold.woff") format("woff");
}

:root {
  --inz-navy: #002c58; /* wave */
  --inz-blue: #0e7ac3;
  --inz-blue-darker: #0d6eb0;
  --inz-dark: #1e222c; /* darkest-blue */
  --inz-grey: #f2f2f2;
  --inz-footer: #323849; /* dark-blue */
  --inz-orange: #d4431b;
  --inz-pink: #dc2a5f;
  --font-family-base: Fira-Sans, Arial, Helvetica Neue, Helvetica, sans-serif;
  --font-family-gustan: Gustan, gustan, TimesNewRoman, Times New Roman, Times, Baskerville, Georgia, serif;
}

body {
  margin: 0;
  color: var(--color-dark-blue, #323849);
  font-family: var(--font-family-base);
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 400;
  background-color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header — match live immigration.govt.nz */
.header {
  background: #fff;
  border-bottom: 0.1rem solid rgba(50, 56, 73, 0.5);
  color: var(--inz-footer);
  position: relative;
  z-index: 50;
}
.header__container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  max-width: 117rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  width: auto;
}
@media (min-width: 768px) {
  .header__container { padding: 2rem 3rem; }
}
@media (min-width: 992px) {
  .header__container { padding: 2rem 4rem 0; }
}
@media (min-width: 1400px) {
  .header__container {
    max-width: 132rem;
    padding: 2rem 0 0;
  }
}
.header__top,
.header__bottom {
  width: 100%;
}
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 992px) {
  .header__top {
    border-bottom: 0.1rem solid rgba(50, 56, 73, 0.2);
    padding-bottom: 2rem;
  }
}
.header__logo {
  display: inline-block;
  flex-shrink: 0;
}
.header__logo-desktop,
.header__logo-mobile { fill: var(--inz-dark); }
.header__logo-mobile {
  display: block;
  height: 4rem;
  width: 12.5rem;
}
.header__logo-desktop { display: none; }
@media (min-width: 768px) {
  .header__logo-mobile { display: none; }
  .header__logo-desktop {
    display: block;
    height: 5rem;
    width: 15rem;
  }
}
@media (min-width: 992px) {
  .header__logo-desktop {
    display: block;
    height: 6rem;
    width: 20rem;
  }
}

.header-quicklinks {
  display: none;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}
@media (min-width: 992px) {
  .header-quicklinks {
    display: flex;
    flex-flow: row nowrap;
    visibility: visible;
  }
}
.header-quicklinks__items {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-quicklinks__link {
  color: var(--inz-footer);
  font-family: var(--font-family-gustan);
  font-size: 1.6rem;
  font-weight: 300;
  text-decoration: none;
}
.header-quicklinks__link:hover { color: #707480; }
.header-quicklinks__button {
  align-self: center;
  background: var(--inz-blue);
  color: #fff;
  border: 0.2rem solid var(--inz-blue);
  border-radius: 0.4rem;
  margin: 0;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-family-gustan);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.header-quicklinks__button:hover {
  background: var(--inz-blue-darker);
  border-color: var(--inz-blue-darker);
}

.header__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__bottom .nav {
  flex: 1 1 auto;
  min-width: 0;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .header__actions { gap: 0; }
}
.header__actions-button {
  align-self: center;
  background: none;
  border: 0;
  border-radius: 50%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: var(--inz-footer);
}
.header__actions-button--search {
  padding: 0.8rem;
}
.header__actions-button--search svg {
  display: block;
  fill: var(--inz-footer);
  height: 2rem;
  width: 2rem;
}
.header__actions-button--menu {
  display: none;
  padding: 1.1rem 0.7rem;
}
.header__actions-button--menu svg {
  display: block;
  fill: var(--inz-footer);
  width: 2.2rem;
  height: 1.6rem;
}
@media (max-width: 991px) {
  .header__bottom .nav { display: none; }
  .header__actions-button--menu { display: inline-flex; }
  /* Single-row mobile header: logo left, search + menu right (matches live 70px header) */
  .header__container { align-items: center; }
  .header__top {
    width: auto;
    flex: 1 1 auto;
  }
  .header__bottom {
    width: auto;
    flex: 0 0 auto;
  }
}

.nav__items {
  display: none;
  align-items: center;
  gap: 5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 992px) {
  .nav__items { display: flex; }
}
.nav__item {
  border-bottom: 0.5rem solid transparent;
  transition: border 0.3s linear;
}
.nav__item:hover {
  border-bottom-color: var(--inz-footer);
}
.nav__link {
  background: none;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: var(--inz-footer);
  cursor: pointer;
  display: block;
  font-family: var(--font-family-gustan);
  font-size: 2rem;
  margin: 0;
  padding: 2.5rem 0 2rem;
  position: relative;
  text-decoration: none;
}
.nav__link:hover {
  background: none;
}
.nav__button {
  background: none;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: var(--inz-footer);
  cursor: pointer;
  display: block;
  font-family: var(--font-family-gustan);
  font-size: 2rem;
  margin: 0;
  padding: 2.5rem 0 2rem;
  position: relative;
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.nav__button:hover {
  background: none;
}
.navigation__title {
  display: inline-flex;
  gap: 0.8rem;
  pointer-events: none;
}
.navigation--primary {
  font-family: var(--font-family-gustan);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--inz-footer);
}
.navigation--alt {
  font-family: var(--font-family-gustan);
  font-size: 2rem;
  font-weight: 200;
  line-height: 1.3;
  color: #848892;
  white-space: nowrap;
}
.navigation__chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 1.1rem;
  margin-left: 0;
  pointer-events: none;
}
.navigation__chevron svg {
  fill: #848892;
  width: 1.1rem;
  height: auto;
  display: block;
}

/* Mega nav — use live app.css .mega-nav__* ; keep pattern local */
.header {
  position: relative;
  z-index: 30;
}
.mega-nav__holder.bg--darkest-blue {
  --text-color: #fff;
  color: #fff;
  z-index: 35;
}
.mega-nav__holder .navigation--primary,
.mega-nav__holder .navigation--alt {
  color: #fff;
}
.mega-nav__holder .navigation--alt {
  font-weight: 200;
}
.mega-nav__pattern {
  -webkit-mask-image: url("../assets/takarangi-left.svg") !important;
  mask-image: url("../assets/takarangi-left.svg") !important;
}
/* Live app.css shows .overlay--mega-nav on desktop always — keep it closed unless active */
.overlay.overlay--mega-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0;
}
.overlay.overlay--mega-nav.overlay--active {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 0.7;
  z-index: 25;
}
body.mega-nav-is-open {
  overflow: hidden;
}
.navigation__arrow svg {
  width: 2.2rem;
  height: auto;
  fill: currentColor;
  display: block;
}
.mega-nav__close-text {
  text-transform: uppercase;
}
.nav__item--current {
  border-bottom: 0.5rem solid var(--header-text-color-current, #0e7ac3);
}

/* Hero — match live rem scale (html font-size: 10px) */
.hero--homepage,
.hero--section {
  background-color: var(--inz-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  --hero-pattern-url: url("../assets/mangopare.svg");
  --hero-pattern-background: rgba(14, 122, 195, 0.3);
  --hero-pattern-position: top right;
  --hero-pattern-offset: 50rem;
  --hero-pattern-width: 77rem;
  --hero-pattern-height: auto;
}
.hero--homepage .hero__content,
.hero--section .hero__content {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .hero--homepage,
  .hero--section { --hero-pattern-offset: 32rem; }
  .hero--homepage .hero__content,
  .hero--section .hero__content { padding: 9rem 0; }
}
@media (min-width: 1200px) {
  .hero--homepage,
  .hero--section { --hero-pattern-offset: 12rem; }
  .hero--homepage .hero__content,
  .hero--section .hero__content { padding: 15rem 0; }
}
.hero__pattern {
  background: var(--hero-pattern-background);
  bottom: 0;
  height: 100%;
  -webkit-mask-image: var(--hero-pattern-url);
  mask-image: var(--hero-pattern-url);
  -webkit-mask-position: var(--hero-pattern-position, right bottom);
  mask-position: var(--hero-pattern-position, right bottom);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--hero-pattern-width) var(--hero-pattern-height);
  mask-size: var(--hero-pattern-width) var(--hero-pattern-height);
  min-width: var(--hero-pattern-width);
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateX(var(--hero-pattern-offset, 0));
  width: 100%;
}
.hero--section .hero__content .container {
  position: relative;
  z-index: 1;
}
.hero__text-wrapper {
  max-width: 77rem;
  position: relative;
  z-index: 1;
}
.hero__eyebrow,
.hero__title {
  font-family: var(--font-family-gustan);
  position: relative;
}
.hero--homepage .hero__eyebrow,
.hero--section .hero__eyebrow {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 3rem;
}
.hero--homepage .hero__title,
.hero--section .hero__title {
  color: #fff;
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
}
.hero__title-main {
  display: block;
  font-weight: 700;
}
@media (min-width: 768px) {
  .hero--homepage .hero__title,
  .hero--section .hero__title { font-size: 4.4rem; }
}
.hero--homepage .hero__intro,
.hero--section .hero__intro {
  margin: 2rem 0 0;
  max-width: 62rem;
  font-size: 1.8rem;
  line-height: 1.5;
  opacity: 0.95;
  color: #fff;
}
.hero__alt { font-weight: 400; opacity: 0.75; }

/* Landing / content page heroes — light grey, dark text (live) */
.hero--landingpage,
.hero--generic,
.hero--checklistpage,
.hero--glossarypage,
.hero--searchresultspage,
.hero--news-announcement-page,
.hero--visa-record-page {
  background-color: transparent;
  color: var(--color-dark-blue, #323849);
}
.hero--landingpage .hero__title,
.hero--generic .hero__title,
.hero--checklistpage .hero__title,
.hero--glossarypage .hero__title,
.hero--searchresultspage .hero__title,
.hero--news-announcement-page .hero__title,
.hero--visa-record-page .hero__title {
  color: var(--hero-title-color, var(--color-darkest-blue, #1e222c));
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}
@media (min-width: 768px) {
  .hero--landingpage .hero__title,
  .hero--generic .hero__title,
  .hero--checklistpage .hero__title,
  .hero--glossarypage .hero__title,
  .hero--searchresultspage .hero__title,
  .hero--news-announcement-page .hero__title,
  .hero--visa-record-page .hero__title {
    font-size: 4.4rem;
  }
}
.hero--landingpage .hero__summary,
.hero--landingpage .hero__intro,
.hero--generic .hero__summary,
.hero--checklistpage .hero__summary {
  color: var(--color-dark-blue, #323849);
  opacity: 1;
}
.hero--landingpage .hero__pattern {
  --hero-pattern-background: rgba(50, 56, 73, 0.07);
}

.bg--grey, .newsannouncementsblock {
  background: var(--inz-grey);
  --tile-border-color: var(--inz-grey);
  --news-announcements-block-pattern-color: var(--inz-footer);
}
.bg--white { background: #fff; }
.newsannouncementsblock,
.tileblock,
.visatileblock,
.childpagetileblock { overflow: hidden; }

/* Section vertical rhythm — live .block */
.block {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .block { padding: 8rem 0; }
}
@media (min-width: 992px) {
  .block { padding: 10rem 0; }
}
.container,
.block__container {
  max-width: 117rem;
  margin: 0 auto;
  padding: 0 2rem;
  width: auto;
}
@media (min-width: 768px) {
  .container, .block__container { padding: 0 3rem; }
}
@media (min-width: 992px) {
  .container, .block__container { padding: 0 4rem; }
}
@media (min-width: 1400px) {
  .container, .block__container {
    max-width: 132rem;
    padding: 0 5rem;
  }
}

.news-announcements-block__heading-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.news-announcements-block__heading-wrapper .news-announcements-block__title {
  align-self: flex-start;
  padding-right: 8rem;
}
.news-announcements-block__heading-wrapper .news-announcements-block__listing-link {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 0;
  max-width: 26rem;
}
.news-announcements-block__title,
.visa-tile-block__title,
.visa-find-block__title {
  margin: 0;
  font-family: var(--font-family-gustan);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--inz-footer);
}
.btn,
.news-announcements-block__listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--inz-blue);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-family-gustan);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.3;
  padding: 1rem 2.4rem 1.1rem;
  border-radius: 0.4rem;
  border: 0.2rem solid var(--inz-blue);
  cursor: pointer;
  box-sizing: border-box;
}
.btn:hover,
.news-announcements-block__listing-link:hover { background: var(--inz-blue-darker); }
.btn--white {
  background: #fff;
  color: var(--inz-footer) !important;
}

.news-announcements-block__pattern {
  background-color: var(--news-announcements-block-pattern-color);
  bottom: 0;
  left: 0;
  -webkit-mask-image: url("../assets/koiri-light-left.svg");
  mask-image: url("../assets/koiri-light-left.svg");
  -webkit-mask-position: bottom left;
  mask-position: bottom left;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  min-width: 80rem;
  position: absolute;
  top: 60%;
  z-index: 1;
}
@media (min-width: 992px) {
  .news-announcements-block__pattern { top: 50%; }
}
@media (min-width: 1200px) {
  .news-announcements-block__pattern { top: 25%; }
}

.news-announcements-block__list,
.visa-tile-block__list,
.tile-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.news-announcements-block__list {
  grid-template-columns: 1fr;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}
.news-announcements-block__list-item {
  border-radius: 0.4rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .news-announcements-block__list {
    gap: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-block__list--full,
  .tile-block__list--odd {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}
@media (min-width: 1200px) {
  .news-announcements-block__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.visa-tile-block__list--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .visa-tile-block__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .visa-tile-block__list--4 { gap: 3rem; }
}
@media (min-width: 1200px) {
  .visa-tile-block__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile-block__list--2 {
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .tile-block__list--2 {
    gap: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tile-block__list-item {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  min-width: 0;
}
.tile-block__list-item > .tile {
  flex: 1 1 auto;
  min-width: 0;
}

.tile {
  display: block;
  background: #fff;
  border: 0.1rem solid var(--tile-border-color, #d6d7db);
  border-radius: 0.4rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover {
  box-shadow: 0 0 1rem 0.2rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.2rem);
}
.tile--news-announcements {
  border-color: var(--tile-border-color, var(--inz-grey));
  color: var(--color-dark-blue, #323849);
  width: auto;
}
.tile--news-announcements,
.tile--visa {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: auto;
}
@media (min-width: 768px) {
  .tile--news-announcements,
  .tile--visa { padding: 3.5rem 3rem; }
}
.tile__date {
  display: block;
  color: #5b606d;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
}
.tile--news-announcements .tile__date {
  color: var(--color-dark-blue-80, #5b606d);
}
.tile__title {
  margin: 0;
  font-family: var(--font-family-gustan);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark-blue, #323849);
}
.tile--news-announcements .tile__title {
  margin: 1.2rem 0 0;
}
.tile--visa {
  padding: 3rem 2.5rem;
  z-index: 2;
}
@media (min-width: 768px) {
  .tile--visa { padding: 3.5rem 3rem; }
}
.tile--visa .tile__title {
  font-size: 2.2rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.tile--visa .tile__title::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.8rem;
  background-image: url("../assets/visa-blue.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}
.tile__summary,
.tile__text {
  color: var(--inz-footer);
  display: block;
  font-family: var(--font-family-base);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 1.2rem;
}
.tile--news-announcements .tile__summary {
  color: var(--color-dark-blue, #323849);
}
.tile--visa .tile__summary {
  color: var(--color-dark-blue, #323849);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 1.2rem;
}
.tile:has(.tile__image-wrapper) .tile__text { margin-top: 1.5rem; }
.tile__terms {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  margin-bottom: 0;
  padding: 2.5rem 0 0;
  padding-left: 0;
}
.tile__term {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag,
.btn--tag,
.listing-tile__topic {
  background: #e7f2f9;
  border: 0.1rem solid #e7f2f9;
  color: var(--color-dark-blue, #323849);
  padding: 0.4rem 1.1rem;
  font-family: var(--font-family-gustan);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.3;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.form-control {
  padding: 1rem 1.2rem;
  border: 1px solid #c2c3c8;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  background: #fff;
  color: var(--inz-dark);
  min-height: 4.8rem;
}

/* Find a visa — inline vue-select style */
.visa-find-block {
  background: var(--inz-blue);
  color: #fff;
  overflow-x: clip;
  position: relative;
}
.visa-find-block__title {
  color: #fff;
  margin: 0;
}
.visa-find-block__form {
  position: relative;
  z-index: 3;
  margin-top: 3rem;
}
.visa-find-block__field {
  display: grid;
  gap: 3rem;
  margin: 0;
  padding: 0;
}
.visa-find-step { position: relative; }
.visa-find-step__question-label {
  font-family: var(--font-family-gustan);
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1.1;
  margin-right: 1.4rem;
  color: #fff;
}
.v-select--visa-step {
  display: inline-block;
  position: relative;
  margin-right: 1.4rem;
  width: auto;
  min-width: auto;
  vertical-align: baseline;
}
.v-select--visa-step::after {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: -0.7rem;
  width: calc(100% + 1.4rem);
  height: calc(100% + 1rem);
  background-color: rgba(50, 56, 73, 0.15);
  border-radius: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}
.v-select--visa-step:hover::after,
.v-select--visa-step.vs--open::after {
  opacity: 1;
}
.v-select--visa-step .vs__dropdown-toggle {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0;
  background-color: transparent;
  border: 0;
  border-bottom: 0.1rem solid #fff;
  border-radius: 0;
  color: #fff;
  padding: 0 2rem 0.3rem 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  height: auto;
  width: auto;
  white-space: nowrap;
}
.v-select--visa-step .vs__selected-options {
  display: flex;
  flex-wrap: nowrap;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  max-width: none;
  padding: 0;
  min-width: 0;
  width: auto;
}
.v-select--visa-step .vs__input-box {
  display: flex;
  flex-grow: 0;
  min-width: 0;
  width: auto;
  align-items: center;
}
.v-select--visa-step .vs__search {
  background: transparent;
  border: 0;
  outline: none;
  margin: 0;
  padding: 0;
  width: auto !important;
  min-width: 8rem;
  max-width: none;
  flex-grow: 0 !important;
  color: #fff;
  font-family: var(--font-family-gustan);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  text-overflow: ellipsis;
}
.v-select--visa-step .vs__search::placeholder { color: #fff; opacity: 1; }
.v-select--visa-step .vs__actions {
  display: block;
  padding: 0;
  width: 0;
  overflow: visible;
}
.v-select--visa-step .vs__open-indicator {
  position: absolute;
  right: 0;
  top: 40%;
  display: block;
  width: 1.3rem;
  height: 1rem;
  fill: #fff;
  transition: transform 0.15s ease;
  pointer-events: none;
}
.v-select--visa-step .vs__open-indicator svg {
  display: block;
  width: 1.3rem;
  height: 1rem;
  fill: #fff;
}
.v-select--visa-step.vs--open .vs__open-indicator { transform: rotate(180deg); }
.v-select--visa-step .vs__clear,
.v-select--visa-step .vs__spinner { display: none !important; }
.v-select--visa-step .vs__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  min-width: 26rem;
  list-style: none;
  margin: 0;
  padding: 1.3rem 0;
  background: #fff;
  color: var(--inz-footer);
  border-radius: 0.4rem;
  box-shadow: 0 0.7rem 1.8rem 0 rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}
.v-select--visa-step.vs--open .vs__dropdown-menu { display: block; }
.v-select--visa-step .vs__dropdown-option {
  color: var(--inz-footer);
  font-family: var(--font-family-gustan);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.3;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.v-select--visa-step .vs__dropdown-option:hover,
.v-select--visa-step .vs__dropdown-option--highlight {
  background-color: var(--inz-grey);
}
.visa-find-block__listing-link { display: none; }
.visa-find-block__listing-link--active {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 5rem;
}
.visa-find-block__listing-link--active::after {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 1.4rem;
  background-image: url("../assets/arrow-right-dark-blue.svg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease;
}
.visa-find-block__listing-link--active:hover::after { transform: translateX(0.4rem); }
.visa-find-block__pattern {
  background-color: hsla(0, 0%, 100%, 0.2);
  position: absolute;
  right: 0;
  bottom: 0;
  height: 12rem;
  width: 22rem;
  -webkit-mask-image: url("../assets/koiri-small.svg");
  mask-image: url("../assets/koiri-small.svg");
  -webkit-mask-position: bottom right;
  mask-position: bottom right;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 22rem 20rem;
  mask-size: 22rem 20rem;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .visa-find-block__pattern {
    height: 21rem;
    width: 30rem;
    -webkit-mask-size: 39rem 21rem;
    mask-size: 39rem 21rem;
  }
}
@media (min-width: 1200px) {
  .visa-find-block__pattern {
    height: 25rem;
    width: 25rem;
    -webkit-mask-size: 24rem 24rem;
    mask-size: 24rem 24rem;
  }
}

.tile__image-wrapper {
  position: relative;
  margin: -0.1rem;
  overflow: hidden;
  background: #d6d7db;
}
.tile__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 57.89%, rgba(0, 0, 0, 0.5) 89.47%);
  pointer-events: none;
  z-index: 0;
}
.tile__image,
.tile__picture {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.4rem 0.4rem 0 0;
}
.tile__picture .tile__image {
  width: 100%;
  height: auto;
}
.tile__arrow {
  display: inline-block;
  margin-left: 0.8rem;
  position: relative;
  top: 0.2rem;
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}
.tile:hover .tile__arrow {
  transform: translateX(0.7rem);
}
.tile__arrow svg {
  display: block;
  fill: var(--inz-blue, #0e7ac3);
  height: 1.8rem;
  width: 2rem;
}
.tile:has(.tile__image-wrapper) {
  border-top: 0;
}
.tile:has(.tile__image-wrapper) .tile__arrow {
  position: absolute;
  left: 2rem;
  bottom: 3rem;
  top: auto;
  margin: 0;
  transform: none;
  z-index: 1;
}
@media (min-width: 768px) {
  .tile:has(.tile__image-wrapper) .tile__arrow {
    left: 3rem;
  }
}
.tile:has(.tile__image-wrapper) .tile__arrow svg {
  fill: transparent;
  height: 2.2rem;
  width: 2.8rem;
  transition: width 0.2s ease;
}
.tile:has(.tile__image-wrapper) .tile__arrow svg path {
  stroke: #fff;
  transition: d 0.2s ease;
}
.tile:has(.tile__image-wrapper):hover .tile__arrow {
  transform: none;
}
.tile:has(.tile__image-wrapper):hover .tile__arrow svg {
  width: 10.4rem;
}
.tile:has(.tile__image-wrapper):hover .tile__arrow svg path {
  d: path("M1 10.5h100M92.476 1 102 10.524l-9.524 9.524");
}
.tile__content {
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 0 0 0.4rem 0.4rem;
}
@media (min-width: 768px) {
  .tile__content { padding: 3rem; }
}
.tile:has(.tile__image-wrapper) .tile__content {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.tile__content .tile__title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-dark-blue, #323849);
}
.tile__title-icon-wrapper {
  display: inline-flex;
  align-items: center;
}

.popular-label {
  font-weight: 700;
  margin: 0 0 1rem;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.link-list a { color: var(--inz-blue); font-weight: 600; }

.content-prose {
  max-width: 48rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.content-prose h2 { margin-top: 1.75rem; }
.content-list { padding-left: 1.25rem; }

/* Footer (matches live INZ footer: dark-blue bg + aramoana wave pattern) */
.footer {
  position: relative;
  background: var(--inz-footer);
  color: #fff;
  padding: 6rem 0 2rem;
  margin-top: 0;
  overflow: hidden;
}
@media (min-width: 1200px) {
  .footer {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
}
/* Bottom wave pattern in darkest-blue, tiled horizontally */
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 28.4rem;
  background: var(--inz-dark, #1e222c);
  -webkit-mask-image: url("../assets/aramoana-dark.svg");
  mask-image: url("../assets/aramoana-dark.svg");
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  pointer-events: none;
  z-index: 0;
}
.footer .sb__container,
.footer .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
}
.footer a { color: #fff; }

.footer__primary {
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .footer__primary { margin-bottom: 7rem; }
}
@media (min-width: 1200px) {
  .footer__primary {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
  }
}

.footer__link-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer__link-wrapper { gap: 3rem; }
}
@media (min-width: 1200px) {
  .footer__link-wrapper { gap: 6rem; }
}

.footer__links:not(:last-child) { margin-bottom: 4rem; }
@media (min-width: 768px) {
  .footer__links:not(:last-child) { margin-bottom: 0; }
}
@media (min-width: 1200px) {
  .footer__links.column { max-width: 22rem; }
}

.footer .visa-lookup__header {
  font-family: var(--font-family-gustan);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 3rem;
  color: #fff;
}
@media (min-width: 768px) {
  .footer .visa-lookup__header { font-size: 4.8rem; }
}

.footer .list-header {
  font-family: var(--font-family-gustan);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2rem;
  color: #fff;
}

.footer .visa-lookup { margin-bottom: 5rem; }
@media (min-width: 768px) {
  .footer .visa-lookup { margin-bottom: 6rem; }
}
@media (min-width: 1200px) {
  .footer .visa-lookup {
    flex-grow: 1;
  }
}
.footer .visa-lookup form { margin: 0; }
.footer .visa-lookup .field,
.footer .field {
  display: flex;
  position: relative;
  max-width: 52rem;
  width: 100%;
}

/* Footer visa lookup — vue-select style combobox (matches live site) */
.footer .v-select--outline {
  position: relative;
  width: 100%;
  font-size: 1.6rem;
}
.footer .v-select--outline .vs__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.2rem 1.8rem 1.2rem 1.5rem;
  background: transparent;
  border: 0.1rem solid #fff;
  border-radius: 0.2rem;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 4.7rem;
}
.footer .v-select--outline .vs__selected-options {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
.footer .v-select--outline .vs__input-box {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.footer .v-select--outline .vs__search {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}
.footer .v-select--outline .vs__search::placeholder {
  color: #d6d7db;
  opacity: 1;
}
.footer .v-select--outline .vs__search::-webkit-search-cancel-button { display: none; }
.footer .v-select--outline .vs__actions { display: none !important; }
.footer .v-select--outline .vs__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  color: var(--inz-dark);
  border-radius: 0.2rem;
  box-shadow: 0 0.3rem 0.6rem 0 rgba(0, 0, 0, 0.2);
  max-height: 35rem;
  overflow-y: auto;
  display: none;
}
.footer .v-select--outline.vs--open .vs__dropdown-menu { display: block; }
.footer .v-select--outline .vs__dropdown-option {
  padding: 1.1rem 1.5rem;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--inz-dark);
  cursor: pointer;
}
.footer .v-select--outline .vs__dropdown-option:hover,
.footer .v-select--outline .vs__dropdown-option--highlight {
  background-color: var(--color-light-grey-50, #f2f2f2);
}

.footer__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.footer__item { list-style: none; }
.footer__links .footer__items .footer__item:not(:last-child) {
  margin-bottom: 1.5rem;
}
.footer__links .link,
.footer__links a.link {
  font-size: 1.6rem;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.4rem;
  transition: text-decoration-color 0.2s ease;
}
.footer__links .link:hover,
.footer__links a.link:hover {
  text-decoration-color: #fff;
}

.footer__logos {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 0;
}
@media (min-width: 768px) {
  .footer__logos {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__logo-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer__logo-column {
    flex-direction: row;
    align-items: center;
    gap: 6rem;
    justify-content: space-between;
  }
}
.footer__logo-column:last-child {
  justify-content: flex-end;
}
.footer__logo-column--item {
  height: 5rem;
  display: inline-flex;
  align-items: center;
}
/* Live: empty mobile refuge slot; shield from tablet up */
.womens-refuge--tablet-plus {
  display: none;
}
@media (min-width: 768px) {
  .womens-refuge--mobile {
    display: none;
  }
  .womens-refuge--tablet-plus {
    display: inline-block;
  }
}
.logo__nz-govt--wrapper {
  display: inline-flex;
  align-items: center;
  height: 3.5rem;
}
.mbie-logo-link,
.logo__nz-govt,
#womens-refuge-shield-button {
  display: inline-block;
  max-height: 5rem;
}
.footer__logos img {
  display: block;
  height: auto;
}
.mbie-logo-link img { width: 26.1rem; max-width: 100%; }
.logo__nz-govt img { width: 20.9rem; max-width: 100%; height: 3.5rem; }
.footer__logos #womens-refuge-shield-button img {
  width: 5rem;
  height: 5rem;
}
@media (max-width: 767px) {
  .footer__logos { align-items: flex-start; }
  .footer__logo-column:last-child { justify-content: flex-start; }
  .womens-refuge--tablet-plus { display: none; }
}

.footer__quick-links {
  display: block;
  padding: 3rem 0;
}
@media (min-width: 1200px) {
  .footer__quick-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
}
.footer__quick-links .footer__items {
  display: block;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .footer__quick-links .footer__items {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
  }
  .footer__quick-links .footer__items .footer__item:not(:last-child) {
    margin-bottom: 0;
  }
}
.footer__quick-links .footer__items .footer__item:not(:last-child) {
  margin-bottom: 2.5rem;
}
.footer__quick-links .link,
.footer__quick-links a.link {
  font-size: 1.6rem;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.4rem;
}
.footer__quick-links .link:hover,
.footer__quick-links a.link:hover {
  text-decoration-color: #fff;
}
.footer__copyright {
  margin: 4rem 0 0;
  opacity: 0.9;
  font-size: 1.4rem;
  color: #fff;
}
@media (min-width: 1200px) {
  .footer__copyright { margin: 0; }
}

/* Modals / mobile */
.modal,
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 44, 88, 0.92);
  z-index: 1000;
  padding: 2rem;
  overflow: auto;
}
.modal__dialog {
  max-width: 640px;
  margin: 4rem auto;
  color: #fff;
}
.modal__close,
.mobile-drawer__close,
.site-banner__close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-drawer {
  background: var(--inz-dark);
  color: #fff;
  max-width: 360px;
  margin-left: auto;
}
.mobile-drawer ul {
  list-style: none;
  padding: 2rem 0 0;
  margin: 0;
}
.mobile-drawer a {
  color: #fff;
  display: block;
  padding: 0.85rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.splash-search__input {
  width: 100%;
  margin: 1rem 0;
}
.splash-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.splash-search__button {
  background: #fff;
  color: var(--inz-blue);
  border: 0;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}

/* Live site banners: warning = orange #d4431b, white text (NOT peach) */
.site-banner {
  position: relative;
  z-index: 60;
  background-color: var(--inz-blue);
  color: #fff;
  padding: 3rem 0;
}
.site-banner--warning {
  background-color: var(--inz-orange);
  color: #fff;
  border-bottom: 0;
}
.site-banner--alert {
  background-color: #9e0000;
  color: #fff;
}
.site-banner--hidden,
.site-banner[hidden] {
  display: none !important;
}
.site-banner__container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 0 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.site-banner__icon {
  flex-shrink: 0;
  width: 3rem;
  padding-top: 0.4rem;
  color: #fff;
}
.site-banner__icon svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}
@media (min-width: 768px) {
  .site-banner__icon { width: 4rem; }
}
@media (min-width: 992px) {
  .site-banner__icon { height: 5rem; }
}
.site-banner__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 2rem;
}
@media (min-width: 768px) {
  .site-banner__content {
    flex-direction: row;
    gap: 3rem;
    padding-right: 0;
  }
  .site-banner__content-col1 {
    flex: 1;
    max-width: 30rem;
    width: 30rem;
  }
  .site-banner__content-col2 { flex: 1; }
}
.site-banner__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-family-gustan);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.site-banner__issued {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
}
.site-banner__text {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}
.site-banner__text a,
.site-banner__text .link {
  color: #fff !important;
  text-decoration-color: hsla(0, 0%, 100%, 0.5);
}
.site-banner__close {
  position: absolute;
  right: 1.4rem;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Cookie banner = darkest blue #1e222c (same as live bg--darkest-blue) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--inz-dark) !important;
  color: #fff;
  padding: 3rem 0;
  z-index: 1100;
}
.cookie-banner__content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__title {
  margin: 0;
  font-family: var(--font-family-gustan);
  font-weight: 600;
  color: #fff;
}
.cookie-banner__text { color: #fff; margin: 0; }
.cookie-banner__links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-banner__btn {
  background: var(--inz-pink);
  border-color: var(--inz-pink);
  color: #fff;
}
.cookie-banner__btn:hover {
  background: #c01353;
  border-color: #c01353;
}
.cookie-banner__btn--decline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.cookie-banner__btn--decline:hover {
  background: #fff;
  color: var(--inz-footer);
}

.modal-note { opacity: 0.85; font-size: 0.95rem; }
/* ===== Login splash / decision tree (live Login flow) ===== */
/* Live modal--full uses darkest-blue #1e222c, not wave navy */
.modal--full.splash-login {
  background: var(--inz-dark);
  padding: 0;
}
/* Native <dialog> wrapper (matches live .modal__wrapper) */
.modal__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  z-index: 1000;
}
.modal__wrapper[open] {
  overflow-y: auto;
}
.splash-login.modal--open,
.splash-login[open],
dialog.splash-login[open] {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Live splash-login: container > header + content(flex col) + footer.
   Pattern is a full-bleed sibling inside splash-container (not absolute). */
.modal--full .modal__container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  height: auto;
  min-height: 100%;
  max-height: none;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  box-sizing: border-box;
}
.modal--full .modal__header {
  padding: 2rem 3rem 0;
  margin: 0;
}
.modal--full .modal__content {
  position: relative;
  flex: 1 0 auto;
  padding: 2rem 3rem;
}
.splash-login .modal__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  gap: 0;
  padding: 0 !important;
}
.splash-login .modal__content .splash-container,
.splash-login .modal__content .splash--login {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: none;
  width: auto;
  min-height: 0;
  margin: 8rem 2rem 0;
  padding: 0;
  color: #fff;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .splash-login .modal__content .splash-container,
  .splash-login .modal__content .splash--login {
    margin-top: 12rem;
  }
}
.modal--full .modal__content .block__container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}
.modal--full .modal__footer {
  flex: 0 0 auto;
}
.splash--login {
  position: relative;
  color: #fff;
  box-sizing: border-box;
}
.splash-login__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.splash-login__logo-svg { display: inline-block; }
.splash-login__logo-svg svg {
  display: block !important;
  height: 48px;
  width: auto;
}
.splash-login__logo-svg svg g,
.splash-login__logo-svg svg path {
  fill: #fff !important;
}
/* The inline logo SVG uses clipPath id="a", which collides with other inline
   SVGs on the page (duplicate ids). url(#a) then resolves to the wrong clip and
   crops the logo. Disable the clip here since the artwork fits its own viewBox. */
.splash-login__logo-svg svg g {
  clip-path: none !important;
}
.splash-login .modal__close {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
}
/* Live modal header: logo (left) + close icon (right) */
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.modal__logo {
  display: inline-flex;
  align-items: center;
}
.modal__header .modal__logo {
  margin: 0 0 0 1rem;
}
.modal__header .header__logo-desktop g,
.modal__header .header__logo-desktop path,
.modal__header .header__logo-mobile g,
.modal__header .header__logo-mobile path {
  fill: #fff;
}
.modal__header .modal__close-button {
  display: block;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin: -0.25rem -0.5rem 0 0;
  line-height: 0;
  cursor: pointer;
  color: #fff;
}
.modal__close-button svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: #fff;
}
.logindecisiontreeblock {
  position: relative;
  z-index: 2;
  padding: 0;
  flex: 1 1 auto;
}
.splash-login .decisiontree {
  max-width: 57rem;
  margin-left: auto;
  margin-right: auto;
}
.decisiontree-title {
  font-family: var(--font-family-gustan);
  font-size: 3.2rem;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.2;
  text-align: center;
  color: var(--color-white, #fff);
  margin: 0;
  max-width: none;
}
/* Live: .splash-login .decisiontree-header */
.splash-login .decisiontree-header {
  border-bottom: 0.1rem solid var(--color-dark-blue-80, #5b606d);
  margin-bottom: 5rem;
  max-width: 57rem;
  padding-bottom: 4rem;
  width: auto;
}
@media (min-width: 768px) {
  .splash-login .decisiontree-header {
    margin-bottom: 6rem;
  }
}
.splash-login .decisiontree-title {
  color: var(--color-white, #fff);
  text-align: center;
}
.decisiontree-pathway {
  margin: 0 0 1.25rem;
}
.decisiontree-pathway__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.decisiontree-pathway__item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.decisiontree-pathway__item:hover {
  background: rgba(255,255,255,0.22);
}
/* Live: .splash-login .decisiontree .step-button--restart */
.splash-login .decisiontree .step-button--restart,
.decisiontree-restart {
  background: none;
  border: unset;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-paragraph, 1.6rem);
  font-weight: 350;
  line-height: var(--line-height-paragraph, 1.5);
  margin-top: 0;
  padding: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.splash-login .decisiontree .step-button--restart:hover,
.decisiontree-restart:hover {
  background-color: unset;
  color: inherit;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-underline-offset: 0.4rem;
}
.splash-login .decisiontree .step-button--restart::before,
.decisiontree-restart::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
  padding: 0;
  vertical-align: text-bottom;
  background-image: url("../assets/start-again.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
/* Live wraps restart in <p>; space below Log in button */
.splash-login .decisiontree .step--result > p {
  color: var(--text-color, #fff);
  font-size: var(--font-size-paragraph, 1.6rem);
  font-weight: var(--font-weight-book, 300);
  line-height: var(--line-height-paragraph, 1.5);
  margin-top: 3rem;
  margin-bottom: var(--margin-bottom-paragraph, 2rem);
}
.splash-login .decisiontree .step--result .decisiontree__result-link-wrapper + p {
  margin-top: 3rem;
}
.step-title {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
}
.step-select,
.splash--login .form-control {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  min-height: 48px;
  font-size: 1.6rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  border: 0.1rem solid #d6d7db;
  background-color: #fff;
  color: #323849;
  padding: 1.1rem 3.4rem 1.1rem 1.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath fill='%23323849' d='M9.004 5.228 6.008 8.5 3.004 5.22A412.023 412.023 0 0 1 0 1.92c0-.01.289-.333.642-.719L1.284.5l2.358 2.575a255.804 255.804 0 0 0 2.374 2.576c.01 0 1.072-1.153 2.363-2.562L10.724.527l.638.696c.35.384.638.705.638.715 0 .01-1.348 1.49-2.996 3.29Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.3rem center;
  background-size: 1.2rem 0.9rem;
  cursor: pointer;
}
.step-select:focus,
.splash--login .form-control:focus {
  outline: 0.2rem solid var(--color-aqua, #19b8e5);
  outline-offset: 0.2rem;
  border-color: #d6d7db;
}
/* Live: .decisiontree .step + splash overrides */
.decisiontree .step {
  margin-top: 5rem;
}
.decisiontree .step--first {
  margin-top: 0;
}
.splash-login .decisiontree .step {
  margin: 3rem auto 0;
  max-width: 57rem;
}
.splash-login .decisiontree .step--first {
  margin: 0;
}
.splash-login .decisiontree .step-title {
  color: var(--color-white, #fff);
  display: block;
  font-size: var(--font-size-h4, 1.8rem);
  font-weight: var(--font-weight-medium, 500);
  margin-bottom: 2rem;
}
/* Custom login decision-tree dropdown (matches live vue-select) */
.modal--full .decisiontree-main .step {
  margin-left: 0;
  margin-right: 0;
  max-width: 570px;
}
.login-select {
  position: relative;
  width: 100%;
  max-width: 570px;
  font-size: 1.6rem;
  line-height: 1.5;
}
.login-select .ls__toggle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border: 0.1rem solid #d6d7db;
  border-radius: 0.2rem;
  color: #323849;
  cursor: pointer;
}
.login-select .ls__value {
  color: #323849;
}
.login-select .ls__placeholder {
  color: #767676;
}
.login-select .ls__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 0.1rem solid #d6d7db;
  color: #323849;
  align-self: stretch;
  transition: transform 0.15s ease;
}
.login-select.is-open .ls__chevron {
  transform: none;
}
.login-select.is-open .ls__chevron svg {
  transform: rotate(180deg);
}
.login-select.is-open .ls__toggle {
  border-color: var(--color-aqua, #19b8e5);
  box-shadow: 0 0 0 0.1rem var(--color-aqua, #19b8e5);
}
.login-select .ls__toggle:focus-visible {
  outline: 0.2rem solid var(--color-aqua, #19b8e5);
  outline-offset: 0.2rem;
}
.login-select .ls__menu[hidden] {
  display: none;
}
.login-select .ls__menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 0.1rem solid #d6d7db;
  border-radius: 0.4rem;
  box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.2);
  max-height: 35rem;
  overflow-y: auto;
  z-index: 20;
}
.login-select .ls__option {
  padding: 1.5rem;
  color: #323849;
  font-size: 1.6rem;
  line-height: 1.4;
  cursor: pointer;
}
.login-select .ls__option:hover,
.login-select .ls__option.is-active,
.login-select .ls__option:focus {
  background: var(--color-light-grey-50, #f2f2f2);
  outline: none;
}
.step-content p {
  color: var(--text-color, #fff);
  font-size: var(--font-size-paragraph, 1.6rem);
  font-weight: var(--font-weight-book, 300);
  line-height: var(--line-height-paragraph, 1.5);
  margin-top: var(--margin-top-font-default, 0);
  margin-bottom: var(--margin-bottom-paragraph, 2rem);
}
.step-content p:last-child {
  margin-bottom: 0;
}
.decisiontree .step--result .btn--link,
.decisiontree .step--result .glossary-tooltip__button,
.decisiontree .step--result .link,
.decisiontree .step--result a,
.decisiontree .step--result .glossary-inline,
.step-content a,
.glossary-inline {
  color: var(--link-color, #fff);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular, 400);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.4rem;
}
.decisiontree .step--result .glossary-tooltip__button:hover,
.decisiontree .step--result .link:hover,
.decisiontree .step--result a:hover,
.decisiontree .step--result .glossary-inline:hover,
.step-content a:hover,
.glossary-inline:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 0.2rem;
}
/* Result CTA is a solid button — don't inherit glossary link styles */
.decisiontree .step--result .decisiontree__result-link,
.decisiontree .step--result a.decisiontree__result-link,
.decisiontree .step--result a.btn-realme,
.decisiontree .step--result a.btn--login-cta {
  font-family: var(--font-family-gustan);
  font-weight: var(--font-weight-semibold, 600);
  text-decoration: none !important;
}
.step-cta { margin: 1.25rem 0; }
.decisiontree__result-link-wrapper {
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .splash-login .decisiontree__result-link-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
  }
}
/* Live: result card has bg only outside splash; splash-login unsets it */
.decisiontree .step--result {
  --text-color: var(--color-white);
  --link-color: var(--color-white);
  background-color: var(--color-dark-blue, #323849);
  border-radius: 0.4rem;
  padding: 3rem;
  scroll-margin-top: 3rem;
}
.splash-login .decisiontree .step--result {
  background-color: unset;
  padding: 0 0 3rem;
  scroll-margin-top: 3rem;
}
.decisiontree .step--result .step-content {
  --text-color: var(--color-white);
  margin-top: 1rem;
  max-width: none;
}
@media (min-width: 768px) {
  .decisiontree .step--result .step-content {
    max-width: 80rem;
  }
}
.decisiontree .step--result .step-title {
  color: var(--color-white, #fff);
  font-family: var(--font-family-base);
  font-size: 2.2rem;
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.3;
  margin: 0;
  padding-inline: 0;
}
.splash-login .decisiontree .step--result .step-title {
  font-size: var(--font-size-h3, 2.2rem);
  margin: 0;
}
.btn-realme,
.btn--login-cta,
.decisiontree__result-link {
  box-sizing: border-box !important;
  display: inline-block;
  padding: 1rem 2.4rem 1.1rem;
  border-radius: 0.4rem;
  font-family: var(--font-family-gustan);
  font-size: var(--font-size-paragraph-large, 1.6rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: var(--line-height-button, 1.3);
  text-decoration: none !important;
  border: 0.2rem solid transparent;
  cursor: pointer;
  word-wrap: break-word;
  max-width: -webkit-fill-available;
  color: #fff;
}
/* Live RealMe CTA: orange + RealMe face icon via mask */
.btn-realme {
  --mask-icon: #fff;
  --mask-icon-hover: #fff;
  background-color: var(--color-orange, #d4431b) !important;
  border-color: var(--color-orange, #d4431b) !important;
  color: #fff !important;
}
.btn-realme:hover {
  background-color: var(--color-orange-darker, #b33816) !important;
  border-color: var(--color-orange-darker, #b33816) !important;
}
.btn-realme::before {
  content: "" !important;
  display: inline-block;
  width: 23.4px;
  height: 23.4px;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
  background: var(--mask-icon, #fff) !important;
  background-image: none !important;
  -webkit-mask-image: url("../assets/images/realme.svg");
  mask-image: url("../assets/images/realme.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}
.btn-realme:hover::before {
  background: var(--mask-icon-hover, #fff) !important;
}
/* Live: no external-link icon on RealMe buttons */
.btn-realme[target="_blank"]::after,
.btn-realme[target="_blank"]:after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
.splash-login .decisiontree__result-link {
  font-size: var(--font-size-paragraph-large, 1.6rem);
  color: #fff;
}
.splash-login .decisiontree__result-link-wrapper .btn-realme {
  align-self: flex-start;
}
.btn--login-cta {
  background: #fff;
  color: #0e7ac3 !important;
}
.btn--login-cta:hover { background: #e7f2f9; }
.splash-login__pattern {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: -2rem;
  margin-right: -2rem;
  left: auto;
  right: auto;
  bottom: auto;
  width: calc(100% + 4rem);
  height: 20rem;
  background-color: transparent;
  background-image: url("../assets/aramoana-white.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.splash--login .logindecisiontreeblock { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .decisiontree-title { max-width: none; }
  .splash-login__pattern { height: 18rem; }
}

.step-extra-links{margin:1rem 0;opacity:.95}.step-extra-links a{color:#fff;font-weight:400;margin:0 .15rem;text-decoration:underline;text-decoration-style:dashed;text-underline-offset:.4rem}

