:root {
  color-scheme: light;
  --ink: #201837;
  --muted: #665c7b;
  --violet: #6335d7;
  --violet-dark: #4d24b5;
  --line: #ded5f1;
  --tint: #f0e9ff;
  --surface: #fff;
  font-family: Montserrat, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse 42rem 20rem at 50% 0%, #ebe1ff 0%, transparent 100%),
    #fbf9ff;
}

a { color: var(--violet-dark); text-underline-offset: .23em; }
:is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.site-main { flex: 1 0 auto; padding-inline: 1rem; }
.landing-main { padding-block: calc(clamp(1.5rem, 5.5vh, 3.75rem) + .55rem) .8rem; }

.site-hero { text-align: center; margin: 0 auto clamp(1.65rem, 5.4vh, 2.6rem); }
.site-hero h1 {
  max-width: 50rem;
  margin: 0 auto;
  font-size: clamp(1.65rem, 4.9vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -.063em;
  line-height: 1.06;
}
.site-hero h1 > span {
  display: block;
  font-size: .75em;
}
.site-hero strong {
  display: block;
  color: var(--violet-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.landing-bottom, .site-footer { --footer-width: min(100% - 2rem, 54rem); }
.landing-bottom {
  width: max-content;
  max-width: var(--footer-width);
  margin: 0 auto;
}
.landing-bottom .site-footer { width: auto; margin: 0; }
.landing-note {
  contain: inline-size;
  margin: .5rem 0 .7rem;
  color: var(--muted);
  text-align: center;
  font-size: .79rem;
  line-height: 1.4;
}
.site-footer {
  width: var(--footer-width);
  margin: auto auto 0;
  padding: .8rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.25rem;
}
.footer-links a { color: inherit; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--violet-dark); }

[data-dp-subsidy] { margin-inline: auto; }
[data-dp-subsidy] form { width: min(100%, 26rem); margin-inline: auto; }
.dp-route-fields { display: grid; gap: 1.04rem; }
.dp-field { position: relative; min-width: 0; }
.dp-field label {
  display: block;
  margin: 0 0 .4rem;
  font-size: .875rem;
  font-weight: 650;
}
.dp-optional { font-weight: 400; color: var(--muted); font-size: .8rem; }

.dp-field input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: .52rem .88rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
  background-color: var(--surface);
  font: inherit;
  font-size: 1rem;
}
.dp-field input::placeholder { color: var(--muted); opacity: 1; }
.dp-destination input {
  border-color: #c6b4ed;
  background-color: #f7f2ff;
}
.dp-field input:hover { border-color: #ae99e0; }
.dp-origin .dp-long-example::placeholder { font-size: .76em; }

.dp-city-options {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + .28rem);
  inset-inline: 0;
  max-height: min(15rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  box-shadow: 0 .6rem 2rem #2d185821;
  list-style: none;
}
.dp-city-options li {
  padding: .58rem .72rem;
  cursor: pointer;
  border-radius: .4rem;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.dp-city-options li:hover, .dp-city-options li[aria-selected="true"] { background: var(--tint); }

.dp-profile-separator {
  margin: 1.06rem 0 .9rem;
  border: 0;
  border-top: 1px solid #d8d5dd;
}
.dp-profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  margin: 0 0 .62rem;
}
.dp-profile-fields .dp-check { overflow-wrap: anywhere; }
.dp-profile-disclosure { min-width: 0; }
.dp-registration-options {
  min-width: 0;
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.dp-profile-toggle,
.project-faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-inline-end: .25rem;
  list-style: none;
  text-align: left;
  cursor: pointer;
}
.dp-profile-toggle {
  min-height: 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}
.dp-profile-toggle::-webkit-details-marker,
.project-faq > summary::-webkit-details-marker { display: none; }
.dp-profile-toggle::after,
.project-faq > summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-top: -.2rem;
  border: solid var(--violet);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dp-profile-disclosure[open] > .dp-profile-toggle::after,
.project-faq[open] > summary::after {
  margin-top: .2rem;
  transform: rotate(-135deg);
}
.dp-profile-options {
  min-width: 0;
  display: grid;
  gap: .55rem;
  margin: .3rem 0 0;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
}
.dp-check {
  display: flex;
  gap: .48rem;
  align-items: baseline;
  font-size: .88rem;
  line-height: 1.4;
  cursor: pointer;
}
.dp-check input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--violet); }

.dp-submit {
  display: block;
  width: 100%;
  min-height: 3.35rem;
  padding: .65rem .85rem;
  border: 0;
  border-radius: .86rem;
  color: #fff;
  background: linear-gradient(105deg, #7546e7, #562ac7);
  box-shadow: 0 .5rem 1.3rem #6335d733;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.dp-submit:enabled:hover { background: var(--violet-dark); }
.dp-submit:disabled {
  color: #5f5967;
  background: #e6e3ea;
  box-shadow: none;
  cursor: not-allowed;
}
.dp-note { color: var(--muted); }

.dp-result {
  width: min(100%, 43rem);
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.dp-result h3 { margin: 0 0 .65rem; font-size: 1.24rem; line-height: 1.3; }
.dp-result h4, .dp-result p { margin: 0 0 .5rem; line-height: 1.45; }
.dp-result h4 { font-size: 1rem; }
.dp-result .dp-ordinary-title { margin: 0; font-weight: 400; }
.dp-ordinary-title strong { font-weight: 700; white-space: nowrap; }
.dp-result .dp-ordinary-note { margin: .25rem 0 0; }
.dp-result .dp-note { font-size: .875rem; }
.dp-result .dp-card {
  margin: .65rem 0;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
}
.dp-result summary { cursor: pointer; font-weight: 650; }
.dp-program + .dp-program { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.dp-card > summary + .dp-price-grid { margin-top: .75rem; }
.dp-price-grid {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content minmax(0, 1fr);
  column-gap: .8rem;
}
.dp-program, .dp-offer { display: grid; grid-template-columns: subgrid; }
.dp-program, .dp-price-grid > :is(h4, p), .dp-program > :is(h4, p) { grid-column: 1 / -1; }
.dp-offer { grid-column: 1 / 3; align-items: baseline; padding: .25rem 0; line-height: 1.35; }
.dp-offer a { justify-self: start; min-width: 0; overflow-wrap: anywhere; }
.dp-offer strong { white-space: nowrap; }
.dp-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .38rem;
  border-radius: .24rem;
  color: var(--violet-dark);
  background: var(--tint);
  font-size: .78rem;
  font-weight: 650;
}

.content-main { width: min(100%, 49rem); margin-inline: auto; padding-block: clamp(1.5rem, 5vh, 3rem) 2rem; }
.content-main nav { font-size: .875rem; }
.content-main h1 { margin: .9rem 0 1rem; font-size: clamp(1.7rem, 5.2vw, 2.65rem); line-height: 1.12; letter-spacing: -.045em; }
.content-main h2 { margin: 1.4rem 0 .45rem; font-size: 1.2rem; line-height: 1.28; }
.content-main p, .content-main li { margin: 0 0 .7rem; line-height: 1.6; }
.content-main ul { padding-inline-start: 1.35rem; }
.content-main .content-date { color: var(--muted); font-size: .87rem; }

.project-faq { border-top: 1px solid var(--line); }
.project-faq:last-child { border-bottom: 1px solid var(--line); }
.project-faq > summary { padding-block: .75rem; }
.project-faq > summary h2 { margin: 0; }

.article-contents {
  margin: 1.15rem 0 1.65rem;
  padding: .75rem .95rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
}
.article-contents summary { cursor: pointer; font-weight: 650; }
.article-contents ul { margin: .55rem 0 0; }
.article-contents li { margin: 0 0 .2rem; }
.article-body h2 { margin-top: 1.65rem; font-size: clamp(1.35rem, 4vw, 1.7rem); }
.article-body h3 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; line-height: 1.35; }
.article-body :is(h2, h3) { scroll-margin-block-start: 1rem; }
.article-body a { overflow-wrap: anywhere; }
.article-body .wp-block-table {
  overflow-x: auto;
  max-width: 100%;
  margin: .8rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface);
}
.article-body table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.45; }
.article-body :is(th, td) { padding: .5rem .6rem; text-align: left; vertical-align: top; }
.article-body tr:first-child td, .article-body th { background: var(--tint); }
.article-body tbody tr + tr { border-top: 1px solid var(--line); }
.article-body tbody td:first-child { overflow-wrap: anywhere; }
.article-body tbody tr:not(:first-child) td:last-child { white-space: nowrap; }

@media (max-width: 36rem) {
  .landing-main { padding-top: calc(clamp(1rem, 3.4vh, 1.6rem) + .45rem); }
  .site-hero { margin-bottom: 1.45rem; }
  .site-hero h1 { font-size: clamp(1.62rem, 6.5vw, 2.1rem); }
  .dp-profile-separator { margin-block: .94rem .8rem; }
  .dp-profile-fields {
    gap: .46rem;
    margin-bottom: .52rem;
  }
  .dp-route-fields { gap: .9rem; }
  .site-footer { padding-block: .65rem .8rem; }
  .footer-links { gap: .3rem .9rem; }
}

@media (min-width: 36.01rem) and (max-height: 45rem) {
  .landing-main { padding-block: 1.35rem .55rem; }
  .site-hero { margin-bottom: 1.65rem; }
  .site-hero h1 { font-size: clamp(1.7rem, 4.75vw, 2.6rem); }
  .dp-profile-separator { margin-block: .92rem .74rem; }
  .dp-profile-fields { row-gap: .35rem; margin-bottom: .48rem; }
  .dp-route-fields { gap: .85rem; }
  .dp-field input { min-height: 2.75rem; }
  .dp-submit { min-height: 3rem; }
  .site-footer { padding-block: .6rem .72rem; }
}

@media (max-width: 36rem) and (max-height: 42rem) {
  .landing-main { padding: 1rem .75rem .3rem; }
  .site-hero { margin-bottom: 1.3rem; }
  .site-hero h1 { font-size: clamp(1.48rem, 6.3vw, 1.9rem); }
  .dp-field label { margin-bottom: .35rem; }
  .dp-profile-separator { margin-block: .83rem .7rem; }
  .dp-profile-fields { row-gap: .16rem; margin-bottom: .4rem; }
  .dp-profile-fields .dp-check { gap: .35rem; font-size: .84rem; }
  .dp-field input { min-height: 2.75rem; }
  .dp-submit { min-height: 3rem; padding-inline: .6rem; font-size: .9375rem; }
  .landing-note { margin-block: .35rem .5rem; font-size: .73rem; line-height: 1.23; }
  .site-footer { padding-block: .28rem .4rem; font-size: .8125rem; line-height: 1.24; }
  .footer-links { row-gap: .08rem; }
}

@media (max-width: 22rem) {
  .landing-main { padding-inline: .75rem; }
  .dp-profile-fields .dp-check { gap: .22rem; }
  .dp-submit { font-size: .875rem; }
  .landing-bottom, .site-footer { --footer-width: calc(100% - 1.25rem); }
  .site-footer { padding-block: .3rem .4rem; font-size: .8125rem; }
}

@media (max-width: 22rem) and (max-height: 42rem) {
  .dp-profile-fields { margin-bottom: .3rem; }
  .landing-note { font-size: .71rem; }
  .site-footer { padding-block: .24rem .35rem; font-size: .765rem; }
}
