/* Desktop layout for the Hungary-specific sections. The shared sections use residency-reference.css. */

.residency-page :where(.hungary-toc) {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.residency-page :where(.hungary-toc-inner) {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

.residency-page :where(.hungary-toc-inner > span) {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-toc-inner > a) {
  text-decoration: none;
  padding: 12px 0;
  color: var(--ink);
}

.residency-page :where(.hungary-routes),
.residency-page :where(.hungary-services) {
  background: var(--white);
}

.residency-page :where(.hungary-routes-inner),
.residency-page :where(.hungary-services-inner) {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.residency-page :where(.hungary-routes-inner > div:nth-of-type(1)),
.residency-page :where(.hungary-business-inner > div:nth-of-type(1)),
.residency-page :where(.hungary-skilled-inner > div:nth-of-type(1)) {
  max-width: 820px;
}

.residency-page :where(.hungary-routes-inner > div:nth-of-type(1) > p:nth-of-type(1)),
.residency-page :where(.hungary-skilled-inner > div:nth-of-type(1) > p:nth-of-type(1)),
.residency-page :where(.hungary-fees-inner > div:nth-of-type(1) > p),
.residency-page :where(.hungary-services-inner > div:nth-of-type(1) > div > p:nth-of-type(1)) {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.residency-page :where(.hungary-routes-inner > div:nth-of-type(1) > p:nth-of-type(1) > svg),
.residency-page :where(.hungary-business-inner > div:nth-of-type(1) > p:nth-of-type(1) > svg),
.residency-page :where(.hungary-skilled-inner > div:nth-of-type(1) > p:nth-of-type(1) > svg),
.residency-page :where(.hungary-fees-inner > div:nth-of-type(1) > p > svg),
.residency-page :where(.hungary-services-inner > div:nth-of-type(1) > div > p:nth-of-type(1) > svg) {
  flex: none;
  color: var(--gold-500);
}

.residency-page :where(.hungary-routes-inner > div:nth-of-type(1) > p:nth-of-type(2)),
.residency-page :where(.hungary-skilled-inner > div:nth-of-type(1) > p:nth-of-type(2)),
.residency-page :where(.hungary-services-inner > div:nth-of-type(1) > div > p:nth-of-type(2)) {
  margin: 0;
  font-size: 19px;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-routes-inner > div:nth-of-type(1) > h2),
.residency-page :where(.hungary-business-inner > div:nth-of-type(1) > h2),
.residency-page :where(.hungary-skilled-inner > div:nth-of-type(1) > h2),
.residency-page :where(.hungary-services-inner > div:nth-of-type(1) > div > h2) {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.residency-page :where(.hungary-routes-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.residency-page :where(.hungary-routes-grid > a) {
  background: var(--light-gray);
  color: var(--ink);
  text-decoration: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 70px, 100% 100%, 0 100%);
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(1)) {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(2)) {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(3)) {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-500);
  margin-top: 6px;
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(4)) {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(5)),
.residency-page :where(.hungary-services-grid > a > span:nth-of-type(3)) {
  flex: 1;
  font-size: 15px;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(6)) {
  font-size: 14px;
  color: var(--ink);
  border-top: 1px solid var(--gray-border);
  padding-top: 12px;
}

.residency-page :where(.hungary-routes-grid > a > span:nth-of-type(7)) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-700);
  padding-top: 6px;
}

.residency-page :where(.hungary-business) {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}

.residency-page :where(.hungary-business-mark) {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 520px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.residency-page :where(.hungary-business-inner) {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.residency-page :where(.hungary-business-inner > div:nth-of-type(1) > p:nth-of-type(1)) {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.residency-page :where(.hungary-business-inner > div:nth-of-type(1) > p:nth-of-type(2)) {
  margin: 0;
  font-size: 19px;
  color: var(--navy-muted);
}

.residency-page :where(.hungary-models-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.residency-page :where(.hungary-models-grid > article) {
  background: var(--navy-panel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.residency-page :where(.hungary-models-grid > article > span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 56px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 800;
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

.residency-page :where(.hungary-models-grid > article > h3) {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.residency-page :where(.hungary-models-grid > article > p),
.residency-page :where(.hungary-business-details > div:nth-of-type(1) > div > div > div > p) {
  margin: 0;
  font-size: 15px;
  color: var(--navy-muted);
}

.residency-page :where(.hungary-business-details) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 64px;
  align-items: start;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(1) > h3) {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(1) > div) {
  display: flex;
  flex-direction: column;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(1) > div > div) {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.residency-page :where(.hungary-business-details > div:nth-of-type(1) > div > div > svg) {
  flex: none;
  margin-top: 3px;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(1) > div > div > div > h4) {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2)) {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(1)) {
  border: 1px solid var(--gold-500);
  padding: 28px 28px;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(1) > p:nth-of-type(1)),
.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(2) > p:nth-of-type(1)) {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(1) > p:nth-of-type(2)) {
  margin: 0;
  font-size: 16px;
  color: var(--white);
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(2)) {
  background: var(--navy-panel);
  padding: 28px 28px;
}

.residency-page :where(.hungary-business-details > div:nth-of-type(2) > div:nth-of-type(2) > p:nth-of-type(2)) {
  margin: 0;
  font-size: 16px;
  color: var(--navy-muted);
}

.residency-page :where(.hungary-skilled),
.residency-page :where(.hungary-fees) {
  background: var(--light-gray);
}

.residency-page :where(.hungary-skilled-inner),
.residency-page :where(.hungary-fees-inner) {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.residency-page :where(.hungary-comparison) {
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.residency-page :where(.hungary-comparison-header),
.residency-page :where(.hungary-comparison > div:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(4), :nth-of-type(5), :nth-of-type(6))) {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr 1fr;
  gap: 1px;
}

.residency-page :where(.hungary-comparison-header > span:nth-of-type(1)) {
  background: var(--navy-900);
  color: var(--navy-muted);
  padding: 18px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.residency-page :where(.hungary-comparison-header > span:is(:nth-of-type(2), :nth-of-type(3))) {
  background: var(--navy-900);
  color: var(--white);
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 800;
}

.residency-page :where(.hungary-comparison > div:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(4), :nth-of-type(5), :nth-of-type(6)) > span:nth-of-type(1)) {
  background: var(--white);
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 800;
}

.residency-page :where(.hungary-comparison > div:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(4), :nth-of-type(5), :nth-of-type(6)) > span:is(:nth-of-type(2), :nth-of-type(3))) {
  background: var(--white);
  padding: 20px 24px;
  font-size: 16px;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-card-notes) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.residency-page :where(.hungary-card-notes > div) {
  background: var(--white);
  border-top: 2px solid var(--navy-500);
  padding: 28px 28px;
}

.residency-page :where(.hungary-card-notes > div > h3) {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.residency-page :where(.hungary-card-notes > div > p) {
  margin: 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-fees-inner > div:nth-of-type(1)),
.residency-page :where(.hungary-services-inner > div:nth-of-type(1) > div) {
  max-width: 760px;
}

.residency-page :where(.hungary-fees-inner > div:nth-of-type(1) > h2) {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.residency-page :where(.hungary-fees-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.residency-page :where(.hungary-fee-highlight) {
  background: var(--navy-900);
  color: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.residency-page :where(.hungary-fee-highlight > span:nth-of-type(1)) {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.residency-page :where(.hungary-fee-highlight > span:nth-of-type(2)) {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
}

.residency-page :where(.hungary-fee-highlight > span:nth-of-type(3)) {
  font-size: 16px;
  color: var(--navy-muted);
}

.residency-page :where(.hungary-fees-list) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
}

.residency-page :where(.hungary-fees-list > div) {
  flex: 1;
  background: var(--white);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.residency-page :where(.hungary-fees-list > div > span:nth-of-type(1)) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.residency-page :where(.hungary-fees-list > div > span:nth-of-type(1) > span:nth-of-type(1)) {
  font-size: 18px;
  font-weight: 700;
}

.residency-page :where(.hungary-fees-list > div > span:nth-of-type(1) > span:nth-of-type(2)) {
  font-size: 14px;
  color: var(--ink-muted);
}

.residency-page :where(.hungary-fees-list > div > span:nth-of-type(2)) {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-500);
  white-space: nowrap;
}

.residency-page :where(.hungary-fees-inner > p) {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 980px;
}

.residency-page :where(.hungary-services-inner > div:nth-of-type(1)) {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: flex-end;
  justify-content: space-between;
}

.residency-page :where(.hungary-services-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.residency-page :where(.hungary-services-grid > a) {
  background: var(--light-gray);
  color: var(--ink);
  text-decoration: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 70px, 100% 100%, 0 100%);
}

.residency-page :where(.hungary-services-grid > a > span:nth-of-type(1)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 20px;
}

.residency-page :where(.hungary-services-grid > a > span:nth-of-type(1) > span:nth-of-type(1)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 54px;
  background: var(--navy-500);
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

.residency-page :where(.hungary-services-grid > a > span:nth-of-type(1) > span:nth-of-type(2)) {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-700);
}

.residency-page :where(.hungary-services-grid > a > span:nth-of-type(2)) {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.residency-page :where(.hungary-services-grid > a > span:nth-of-type(4)) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-700);
}
