@font-face {
  font-family: "DM Serif Text";
  src: url("/font/dm-serif-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rethink Sans";
  src: url("/font/rethink-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff9f1;
  --surface: #fffdf9;
  --tint: #fff0df;
  --tint-deep: #ffe6cd;
  --ink: #342117;
  --muted: #665042;
  --accent: #95391f;
  --line: #e5cbb5;
  --header: 60px;
  --page-width: 1200px;
  --body-font: "Rethink Sans", system-ui, sans-serif;
  --title-font: "DM Serif Text", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header) + 14px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body-font);
}

a { color: var(--accent); text-underline-offset: .19em; overflow-wrap: anywhere; }
a:hover { color: #702914; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 48px, var(--page-width)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 20;
  inset: 8px auto auto 8px;
  transform: translateY(-180%);
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus { transform: none; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.navigation {
  display: flex;
  min-height: var(--header);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 400 1.44rem/1 var(--title-font);
  text-decoration: none;
  white-space: nowrap;
}

.logo img { flex: none; }

.nav-links,
.related ul,
.footer-grid ul,
.account-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a, .account-nav summary {
  display: block;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.account-nav summary:hover,
.account-nav details[open] summary {
  background: var(--tint-deep);
  color: var(--accent);
}

.nav-links .language-link { color: var(--accent); }

.account-nav { position: relative; }

.account-nav summary {
  display: list-item;
  cursor: pointer;
}

.account-nav ul {
  position: absolute;
  inset: 100% 0 auto auto;
  display: grid;
  min-width: 170px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 25px #512b151f;
}

.nav-toggle {
  min-height: 42px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: 650 .88rem var(--body-font);
  cursor: pointer;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 430px);
  grid-template-areas: "hero application" "article application";
  align-items: start;
  gap: 16px clamp(22px, 3.3vw, 42px);
  padding-block: 22px 30px;
}

.article-hero {
  grid-area: hero;
  padding: clamp(16px, 2.1vw, 25px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface), var(--tint-deep));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .83rem;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1, h2 { font-family: var(--title-font); font-weight: 400; }

h1 {
  max-width: 23ch;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -.025em;
}

.article-summary {
  max-width: 70ch;
  margin: 12px 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.related a {
  display: inline-block;
  padding: 3px 0;
  font-size: .86rem;
  font-weight: 650;
}

.mobile-apply { display: none; }

.application {
  grid-area: application;
  position: sticky;
  top: calc(var(--header) + 12px);
  max-height: calc(100dvh - var(--header) - 24px);
  overflow: auto;
  scrollbar-width: thin;
  padding: 13px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
}

.application h2 {
  margin-inline: 6px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.application-intro,
.application-note,
.application-status {
  margin: 4px 6px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.application-frame { margin-inline: -6px; }

.application iframe {
  display: block;
  width: 100%;
  height: var(--form-height, 488px);
  border: 0;
}

.application-status { margin: 0 12px 6px; }

.article-content {
  grid-area: article;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(16px, 2.1vw, 25px);
  overflow-wrap: anywhere;
}

.article-content section + section {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.65vw, 2rem);
  line-height: 1.13;
}

.article-content h3,
.article-content h4 {
  margin: 15px 0 5px;
  font-size: 1.07rem;
  font-weight: 750;
  line-height: 1.28;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content dl { margin: 0 0 9px; }

.article-content section > :last-child,
.article-content > :last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { padding-inline-start: 22px; }
.article-content li + li { margin-top: 3px; }
.article-content dt { font-weight: 700; }
.article-content dd { margin: 2px 0 8px 12px; }

.table-wrap,
.article-content .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 9px 0;
}

.article-content table {
  width: 100%;
  margin-block: 8px;
  border-collapse: collapse;
  font-size: .88rem;
}

.article-content caption {
  padding: 4px 0;
  color: var(--muted);
  text-align: left;
  font-weight: 650;
}

.article-content :is(td, th) {
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th { background: var(--tint); }

.site-footer {
  padding-block: 22px 16px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(145px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  align-items: start;
}

.footer-grid ul {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  font-size: .9rem;
}

.footer-grid nav a { color: var(--muted); }

.footer-note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.footer-note p { margin: 0 0 4px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 32px); }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "application" "article";
    gap: 12px;
    padding-block: 14px 20px;
  }

  .application { position: static; max-height: none; }

  .mobile-apply {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-apply:hover { color: #fff; }
}

@media (max-width: 690px) {
  .navigation { flex-wrap: wrap; gap: 0 10px; }
  .navigation > .logo { min-height: var(--header); }
  .nav-links { flex-basis: 100%; padding-bottom: 8px; }

  .site-header.nav-ready .nav-links { display: none; }
  .site-header.nav-open .nav-links { display: flex; }
  .account-nav ul { inset: 100% auto auto 0; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > .logo { grid-column: 1 / -1; }
}

@media (min-width: 691px) {
  .nav-toggle { display: none; }
}

@media (max-width: 430px) {
  .wrap { width: calc(100% - 22px); }
  .article-hero, .article-content { padding: 13px; }
  .application { padding: 10px 8px 8px; }
  .application iframe { height: var(--form-height, 558px); }
  .article-content :is(td, th) { padding: 5px; }
}

:root {
  --paper: #f5f8fc;
  --surface: #fff;
  --tint: #eaf2fd;
  --tint-deep: #dbeafd;
  --ink: #172537;
  --muted: #475c73;
  --accent: #165cb0;
  --line: #c9d9eb;
  --navy: #101e30;
  --night: #0e1b2b;
  --page-width: 1270px;
  --header: 64px;
  --title-font: var(--body-font);
}

body { overflow-x: clip; }
a:hover { color: #114779; }

.site-header {
  background: #191c29;
  border-color: #343e50;
}

.navigation { max-width: 1440px; width: min(100% - 40px, 1440px); }
.logo { color: #f8faff; font-size: 1.19rem; font-weight: 780; letter-spacing: -.025em; }
.logo:hover { color: #c6e6ff; }
.logo img { width: 32px; height: 32px; }
.nav-links { gap: 4px 16px; }
.nav-links a, .account-nav summary { color: #f1f5fc; }
.nav-links a:hover, .nav-links a[aria-current="page"], .account-nav summary:hover,
.account-nav details[open] summary { color: #fff; background: #304056; }
.account-nav ul { background: #182a40; border-color: #425875; }
.nav-links .nav-apply { padding-inline: 16px; background: #f8fbff; color: #134e9a; }
.nav-links .nav-apply:hover { background: #dcecff; color: #103e78; }

.market-bar { background: #191c29; color: #edf4ff; border-bottom: 1px solid #38465a; }
.market-inner { display: flex; align-items: center; min-height: 42px; gap: 20px; }
.market-label { flex: none; color: #f4f8ff; font-weight: 740; font-size: .88rem; text-decoration: none; }
.market-label:hover { color: #d8edff; }
.market-label span { margin-left: 4px; color: #aebbd0; font-weight: 500; }
.market-quotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .89rem;
  font-variant-numeric: tabular-nums;
}
.market-quotes li { padding-inline: 12px; border-left: 1px solid #454b5e; white-space: nowrap; }
.market-quotes strong { margin-right: 4px; }
.market-quotes small { margin-left: 4px; font-size: .82em; }
.market-quotes .gain { color: #a9efd2; }
.market-quotes .loss { color: #ffacb5; }

.page-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 44%);
  gap: 0 clamp(24px, 4vw, 60px);
  padding-block: 0 40px;
  isolation: isolate;
}

.page-layout::before {
  grid-row: 1;
  grid-column: 1 / -1;
  align-self: stretch;
  z-index: -1;
  margin-inline: calc(50% - 50vw);
  background:
    linear-gradient(0deg, #0c1b2cf2 0%, #0e1d2e68 32%, #0e1d2e24 100%),
    linear-gradient(90deg, #0d1a2b15, #0e1d2ec9 27%, #0e1d2e86 60%, #0d1a2b08 100%),
    #0c1b2c url("/img/madrid-blue-hour.webp") center 48% / cover no-repeat;
  content: "";
}

.article-hero {
  min-height: calc(var(--application-height, 595px) + 54px);
  padding: clamp(32px, 5vw, 67px) 0 32px;
  border: 0;
  background: transparent;
  color: #f2f7ff;
}

.article-hero h1 {
  max-width: 16ch;
  color: #f2f7ff;
  font-size: clamp(2.1rem, 4.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.article-hero h1 span {
  display: block;
  margin-top: 11px;
  color: #c8e1fb;
  font-size: .62em;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.breadcrumbs { margin-bottom: 14px; color: #c3d5e7; }
.breadcrumbs a, .related a { color: #c5e5ff; }
.breadcrumbs a:hover, .related a:hover { color: #fff; }

.article-summary { margin-block: 16px 20px; color: #e1ecf9; font-size: clamp(1rem, 1.8vw, 1.24rem); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 10px 15px;
  border: 1px solid #7da7d36e;
  border-radius: 8px;
  background: #102238bc;
}
.hero-facts dt { color: #b6cde7; font-size: .75rem; }
.hero-facts dd { margin: 1px 0 0; color: #f1f7ff; font-size: 1.02rem; font-weight: 780; }

.application {
  margin-top: 25px;
  max-height: calc(100dvh - var(--header) - 22px);
  border: 1px solid #365777;
  border-top: 3px solid #75c0eb;
  border-radius: 0 0 13px 13px;
  background: #11263e;
  color: #f4f8ff;
  padding: 15px 18px 11px;
  box-shadow: 0 12px 30px #07111f42;
}
.application h2 { color: #a7ddff; font-weight: 760; font-size: 1.16rem; margin: 0 0 6px; }
.application iframe { height: var(--form-height, 535px); }
.application-note { margin: 2px 0 3px; color: #c6d9ed; font-size: .83rem; }
.application a { color: #a1dafe; }
.application a:hover { color: #fff; }

.article-content {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}
.article-content section {
  padding: clamp(15px, 2.5vw, 25px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.article-content section:first-child { background: linear-gradient(140deg, #fff 20%, #edf4ff 100%); }
.article-content section + section { margin-top: 14px; padding-top: clamp(15px, 2.5vw, 25px); }
.article-content h2 { margin-bottom: 10px; font-weight: 780; letter-spacing: -.035em; }
.article-content h3 { color: #234c78; }
.article-content a { text-decoration-thickness: 1px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-block: 12px;
}
.summary-card {
  padding: 10px 11px;
  border: 1px solid #c3d7ef;
  border-radius: 7px;
  background: #edf5ff;
  font-size: .88rem;
  line-height: 1.45;
}
.summary-card strong { display: block; margin-bottom: 4px; color: #123e6b; }
.summary-card p:last-child { margin: 0; }

.article-content .callout {
  margin-block: 12px;
  padding: 10px 12px;
  border-left: 3px solid #438ed1;
  border-radius: 0 7px 7px 0;
  background: #eef5ff;
}
.callout :last-child { margin-bottom: 0; }

.article-content .steps {
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: steps;
  padding: 0;
}
.steps > li {
  position: relative;
  padding: 9px 10px 9px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
  counter-increment: steps;
}
.steps > li::before {
  content: counter(steps);
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #dcecff;
  color: #155aa5;
  font-weight: 760;
}
.steps > li > :last-child { margin-bottom: 0; }

.article-content details {
  margin-block: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
}
.article-content details summary { cursor: pointer; }
.article-content details summary h3 { display: inline; margin: 0; }
.article-content details > p { margin: 6px 0 0; }

.site-footer {
  background: #101e31;
  color: #f0f6ff;
  border-color: #304862;
  padding-block: 32px 20px;
}
.footer-grid { grid-template-columns: minmax(180px, 1.65fr) repeat(3, minmax(0, 1fr)); }
.footer-brand p { max-width: 30ch; margin: 9px 0; color: #bdcee2; font-size: .9rem; }
.footer-brand address { display: grid; gap: 3px; font-size: .9rem; font-style: normal; }
.footer-grid nav a, .footer-brand address a, .footer-note a { color: #b7dafd; }
.footer-grid nav a:hover, .footer-brand address a:hover, .footer-note a:hover { color: #fff; }
.footer-note { color: #bdcee2; border-color: #36506c; margin-top: 22px; padding-top: 14px; }
.footer-note strong { color: #f1f6ff; margin-right: 5px; }

@media (min-width: 851px) {
  .page-layout::before { background-size: auto, auto, 108% 100%; }
}

@media (max-width: 850px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 26px; }
  .page-layout::before {
    grid-row: 1 / 3;
    background-position: center, center, 10% 30%;
  }
  .article-hero {
    min-height: 0;
    padding: 25px 0 13px;
  }
  .article-hero h1 { max-width: 20ch; }
  .article-summary { margin-block: 10px 13px; }
  .mobile-apply { display: none; }
  .application { margin: 0 0 18px; }
  .article-content { margin-top: 14px; }
}

@media (max-width: 690px) {
  .nav-links { gap: 3px 5px; }
  .market-inner { gap: 7px; }
  .market-label { font-size: .75rem; }
  .market-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .75rem; }
  .market-quotes li { padding-inline: 6px; }
  .market-quotes li:nth-child(n + 3) { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 510px) {
  .summary-grid { grid-template-columns: 1fr; }
  .market-quotes small { display: none; }
  .hero-facts { gap: 7px 14px; }
  .hero-facts dd { font-size: .88rem; }
  .application { padding: 12px 10px 8px; }
}
