/* Styles for the homepage and its shared calculator. */
html, body { background-color: #fff; }
.l-container__contents__main.single:has(> #current_rate_table) {
  max-width: 730px;
}
.exchange-rate-link:link, .exchange-rate-link:visited, .exchange-rate-link:hover, .exchange-rate-link:active {
  color: inherit;
  text-decoration: none;
}
.exchange-rate-link:focus-visible, .home-section a:focus-visible, .home-section button:focus-visible {
  outline: 2px solid #2b7cc4;
  outline-offset: 3px;
}
.home-section, .home-news, .home-business-notice {
  font-family: "Hiragino Kaku Gothic ProN","Yu Gothic Medium",YuGothic,"Yu Gothic",メイリオ,Meiryo,arial,sans-serif;
  color: #12324a;
}
.home-section { margin: 36px 0 0; }
.home-section [hidden] { display: none !important; }
.home-section p, .home-business-notice p { margin: 0; }
.home-heading {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid #005fad;
  color: #12324a;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}
.home-card {
  box-sizing: border-box;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(20,30,50,.05);
  background: #fff;
}
.home-business-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #f7fafd;
  font-size: 14px;
  line-height: 1.7;
}
.home-business-notice__label {
  flex: none;
  border: 1px solid #c9d8e6;
  border-radius: 4px;
  background: #fff;
  padding: 2px 8px;
  color: #005fad;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.home-business-notice--year-end { margin-top: 15px; }
.home-business-notice--year-end .home-business-notice__year-end-title { color: #12324a; font-weight: 700; }
.home-business-notice--year-end .home-business-notice__year-end-mobile { display: none; }
@media (max-width: 767px) {
  .home-business-notice--year-end .home-business-notice__label,
  .home-business-notice--year-end .home-business-notice__year-end-desktop { display: none; }
  .home-business-notice--year-end .home-business-notice__year-end-mobile { display: block; }
  .home-business-notice--year-end .home-business-notice__year-end-title { font-size: 14px; }
}

.responsive-copy--narrow { display: none; }
@media (max-width: 767px) {
  .responsive-copy--wide { display: none; }
  .responsive-copy--narrow { display: inline; }
}
.home-business-notice--year-end + #current_rate_table { margin-top: 12px; }

/* Calculator layout follows s138/Main.dc.html, rate=c. */
.exchange-calculator { --calc-button: #003e75; --calc-tint: #eef3fa; font-variant-numeric: tabular-nums; }
.exchange-calculator__rate strong,
.exchange-calculator__saving-money,
.exchange-calculator__total-line strong,
.a226-calc__sub strong { font-family: var(--website-figure-font); }
.exchange-calculator[data-side="sell"] { --calc-button: #b05b05; --calc-tint: #fcf1e3; }
.exchange-calculator__card, .exchange-calculator__fallback { padding: 20px; }
.exchange-calculator__card { display: flex; flex-direction: column; gap: 14px; box-shadow: none; }
/* The card's 1px border completes the 14px gap below the purchase button. */
.exchange-calculator[data-side="buy"] .exchange-calculator__card:has(> [data-calc-cta]:not([hidden])) {
  padding-block-end: 13px;
}
.exchange-calculator__fallback p + p { margin-top: 7px; }
.exchange-calculator__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef0f2;
}
.exchange-calculator__tabs button {
  --switch-color: #005fad;
  min-height: 40px;
  padding: 0 4px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #414956;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
}
.exchange-calculator__tabs button[data-mode="sell"] { --switch-color: #b35c00; }
.exchange-calculator__tabs button[aria-pressed="true"] {
  border-color: var(--switch-color);
  background: #fff;
  color: var(--switch-color);
  box-shadow: 0 1px 3px #16283526;
  font-weight: 700;
}
.exchange-calculator__inputs { display: flex; flex-direction: column; gap: 6px; }
.exchange-calculator__fields { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.exchange-calculator__fields > div { flex: 1 1 240px; min-width: 0; }
.exchange-calculator__fields label {
  display: block;
  margin-bottom: 4px;
  color: #5a6a7a;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.exchange-calculator__select { position: relative; }
.exchange-calculator__input { display: flex; align-items: baseline; gap: 8px; }
.exchange-calculator__input span { flex: none; font-size: 16px; font-weight: 700; }
.exchange-calculator__select select, .exchange-calculator__input input {
  box-sizing: border-box;
  height: 44px;
  min-width: 0;
  border: 1px solid #c9d8e6;
  border-radius: 5px;
  color: #12324a;
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.exchange-calculator__select select { width: 100%; padding: 0 56px 0 52px; appearance: none; font-size: 16px; cursor: pointer; }
.exchange-calculator__select img { position: absolute; top: 13px; left: 12px; width: 27px; height: 18px; object-fit: cover; border-radius: 3px; pointer-events: none; }
.exchange-calculator__select-chevron { position: absolute; right: 0; top: 6px; width: 46px; height: 32px; border-left: 1px solid #c9d8e6; display: grid; place-items: center; pointer-events: none; }
.exchange-calculator__input input {
  font-family: var(--website-figure-font);
  flex: 1 1 auto; width: 0; padding: 0 14px; font-size: 20px; text-align: right; }
.exchange-calculator__input input::placeholder { color: #a9b4c0; font-weight: 400; opacity: 1; }
.exchange-calculator__select select:focus-visible, .exchange-calculator__input input:focus-visible { outline: 2px solid #2b7cc4; }
.exchange-calculator__input-note { color: #5a6a7a; font-size: 13px; line-height: 1.6; }
.exchange-calculator__warning { color: #c00000; font-size: 14px; line-height: 1.6; font-weight: 700; }
.home-section .exchange-calculator__warning--minimum {
  margin: 5px 0 0;
  color: #9f3b31;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
.exchange-calculator__rate {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 12px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--calc-tint);
  line-height: 1.6;
}
.exchange-calculator__rate span { color: #5a6a7a; font-size: 13px; letter-spacing: .04em; }
.exchange-calculator__rate strong { color: #12324a; font-size: 17px; font-weight: 700; white-space: nowrap; }
.exchange-calculator__rate small { color: #5a6a7a; font-size: 12px; }
.exchange-calculator__rate.has-result::after {
  position: absolute;
  left: calc(50% - 10px);
  bottom: -10px;
  content: "";
  border: 10px solid transparent;
  border-top-color: var(--calc-tint);
  border-bottom: 0;
}
.exchange-calculator__card { --calc-result-inline-inset: 20px; }
.exchange-calculator__results { display: flex; flex-direction: column; gap: 10px; padding: 16px var(--calc-result-inline-inset); }
.exchange-calculator__result-columns { display: flex; align-items: stretch; }
.exchange-calculator__compare, .exchange-calculator__total {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}
.exchange-calculator__compare { gap: 4px; border-right: 1px solid #ebeef5; padding-right: 24px; }
.exchange-calculator__compare:not([hidden]) + .exchange-calculator__total { padding-left: 24px; }
.exchange-calculator__total { gap: 2px; }
.exchange-calculator__compare-lead { color: #5a6a7a; font-size: 14px; line-height: 1.4; font-weight: 500; }
.exchange-calculator__compare .exchange-calculator__compare-lead { margin-bottom: 2px; }
.exchange-calculator__saving, .exchange-calculator__total-line, .a226-calc__sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; }
.exchange-calculator__saving { gap: 0 8px; }
.exchange-calculator__saving-money { color: #2f9e44; white-space: nowrap; font-size: 14px; line-height: 1.2; font-weight: 700; }
.exchange-calculator__saving-money strong { font-size: 25px; font-weight: 700; }
.exchange-calculator__saving-tail { color: #12324a; font-size: 15px; line-height: 1.4; font-weight: 700; }
.exchange-calculator__compare-note, .a226-calc__sub { color: #6b7785; font-size: 12px; line-height: 1.6; font-weight: 500; }
.exchange-calculator__compare .exchange-calculator__compare-note { margin-top: 2px; }
.exchange-calculator__total .exchange-calculator__total-label { margin-bottom: 2px; color: #5a6a7a; font-size: 13px; line-height: 1.4; font-weight: 500; }
.exchange-calculator__total-line { color: #12324a; gap: 0 6px; }
.exchange-calculator__total-line strong { font-size: 32px; line-height: 1.15; font-weight: 700; white-space: nowrap; }
.exchange-calculator__total-line span { font-size: 16px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.exchange-calculator__total .a226-calc__sub { gap: 0 8px; margin-top: 6px; }
.a226-calc__sub strong { color: #12324a; font-size: 15px; font-weight: 700; white-space: nowrap; }
@media (min-width: 768px) {
  .exchange-calculator__compare:not([hidden]) + .exchange-calculator__total { justify-content: flex-start; }
  .exchange-calculator__compare:not([hidden]) + .exchange-calculator__total .exchange-calculator__total-line { transform: translateY(-1.6px); }
  .exchange-calculator__compare:not([hidden]) + .exchange-calculator__total .a226-calc__sub { transform: translateY(-9.4px); }
  .exchange-calculator[data-side="sell"] .exchange-calculator__compare:not([hidden]) + .exchange-calculator__total .a226-calc__sub { transform: translateY(-5.4px); }
}
.exchange-calculator__details-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-top: 2px;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #2b7cc4;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.exchange-calculator__details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.exchange-calculator__details { padding: 10px 14px; border-radius: 8px; background: #f7fafd; }
.exchange-calculator__details .exchange-calculator__details-note { margin: 3px 0 0; color: #aab2bb; font-size: 11px; line-height: 1.5; }
.exchange-calculator__rate-label--desktop { display: none; }
@media (min-width: 1100px) {
  .exchange-calculator__details { margin-inline: -14px; }

  .exchange-calculator__details-align {
    display: grid;
    justify-items: end;
  }

  .exchange-calculator__details-pack {
    inline-size: max-content;
    max-inline-size: 100%;
  }

  .exchange-calculator .exchange-calculator__details .c-comparison-breakdown {
    grid-template-columns: repeat(4, max-content);
    column-gap: 24px;
  }

  .exchange-calculator .exchange-calculator__details .c-comparison-breakdown .c-comparison-breakdown__row dt { grid-column: 1 / 4; }
  .exchange-calculator .exchange-calculator__details .c-comparison-breakdown .c-comparison-breakdown__row dd {
    grid-column: 4;
    margin-inline-start: 0;
  }

  .exchange-calculator__details .c-comparison-breakdown__name { grid-area: 1 / 1; }
  .exchange-calculator__details .exchange-calculator__rate-label { grid-area: 1 / 2; }
  .exchange-calculator__details .exchange-calculator__rate-label--original { display: none; }
  .exchange-calculator__rate-label--desktop { display: block; }
  .exchange-calculator .exchange-calculator__details .c-comparison-breakdown__rate .c-comparison-breakdown__figure {
    grid-area: 1 / 3;
    inline-size: auto;
    text-align: end;
  }

  .exchange-calculator__details .exchange-calculator__details-note {
    text-align: end;
  }

  .exchange-calculator__details-reference-date { white-space: nowrap; }
}

.exchange-calculator__consult { border-radius: 10px; background: #fdf3f2; padding: 12px 16px; color: #c00000; font-size: 15px; line-height: 1.7; font-weight: 700; }
.exchange-calculator [data-calc-purchase-alert] { text-wrap: balance; }
.exchange-calculator__consult--delivery { background: #eef5fb; padding: 8px 12px; }
@media (min-width: 768px) {
  .exchange-calculator [data-calc-purchase-alert],
  .exchange-calculator [data-calc-delivery-notice] {
    align-self: flex-end;
    inline-size: fit-content;
    max-inline-size: 100%;
    box-sizing: border-box;
    text-align: left;
  }
}
.exchange-calculator__cta:link, .exchange-calculator__cta:visited {
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
  max-width: 340px;
  height: 48px;
  border-radius: 8px;
  background: var(--calc-button);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.exchange-calculator .exchange-calculator__cta.exchange-calculator__cta--currency:any-link:not([hidden]) {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-block-size: 52px;
  block-size: auto;
  max-inline-size: 360px;
  box-sizing: border-box;
  padding: 6px 24px;
  background: #005fad;
  color: #fff;
  text-align: center;
}
.exchange-calculator[data-side="sell"] .exchange-calculator__cta--currency:any-link:not([hidden]) {
  background: #b35c00;
}
.exchange-calculator[data-side="sell"] .exchange-calculator__cta--currency:hover:not([hidden]) {
  background: #995000;
}
.exchange-calculator .exchange-calculator__cta--currency:focus-visible {
  outline: 2px solid #2b7cc4;
  outline-offset: 3px;
}
.exchange-calculator .exchange-calculator__cta.exchange-calculator__cta--currency::after { content: none; }
.exchange-calculator__cta--currency strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.exchange-calculator__cta--currency strong > span { display: inline-block; max-inline-size: 100%; overflow-wrap: anywhere; }
.exchange-calculator__cta-chevron {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  line-height: 1;
}
@media (max-width: 767px) {
  .exchange-calculator .exchange-calculator__cta.exchange-calculator__cta--currency:any-link:not([hidden]) {
    min-block-size: 54px;
    max-inline-size: none;
  }
}

/* Use the page's available width, excluding a classic vertical scrollbar. */
html:has(.home-news) { container-type: inline-size; }
.home-news {
  width: 100cqw;
  margin: 28.8px calc((100% - 100cqw) / 2) 0;
  padding: 22.4px 12px 25.6px;
  --news-sky: radial-gradient(65% 36% at 17% 106%, #fff9 0%, #fff0 100%),
    radial-gradient(48% 27% at 84% 105%, #fff8 0%, #fff0 100%),
    linear-gradient(180deg, #2f6fc4 0%, #5a9ae0 55%, #9cc8f2 100%);
  background: var(--news-sky);
}
@container (width > 1512px) {
  .home-news {
    width: 1512px;
    margin-inline: calc((100% - 1512px) / 2);
    mask-image: linear-gradient(to right, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  }
}
.home-news--mobile { display: none; }
.home-news :is(h2, .home-news__label) {
  margin: 0 0 11.2px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(18, 50, 74, .42);
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}
.home-news__panel {
  max-width: 730px;
  margin: 0 auto;
  padding: 3.2px 22px;
  border-radius: 6px;
  background: #fff;
  list-style: none;
}
@media (min-width: 1100px) {
  .l-container__contents__main.single:has(> #current_rate_table),
  .home-news__panel {
    max-width: var(--page-content-width, 880px);
  }
}

.home-news__panel ul { margin: 0; padding: 0; list-style: none; }
.home-news__more { display: flex; justify-content: flex-end; border-top: 1px solid #e4e7ed; }
.home-news__more a {
  display: inline-flex;
  align-items: flex-start;
  padding: 2px 4px 0;
}
.home-news :is(time, .home-news__more a) {
  color: #6b7785;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.home-news__more a:hover { text-decoration: underline; }

.home-news li { display: flex; gap: 12px; align-items: center; padding: 7.26px 0; border-bottom: 1px solid #e4e7ed; }
.home-news li:last-child { border-bottom: 0; }
.home-news__metadata { display: flex; align-items: center; gap: 12px; flex: none; }
.home-news time { width: 80px; font-variant-numeric: tabular-nums; }
.home-news li a { color: #12324a; font-size: 14px; line-height: 1.6; text-decoration: none; }
.home-news li a:hover { text-decoration: underline; }
@media (min-width: 1100px) {
  .home-news[data-news-categories] .home-news__category {
    box-sizing: border-box;
    flex: 0 0 62px;
    padding: 2px 4px;
    border: 1px solid #d9e3ee;
    border-radius: 4px;
    background: #f2f7fc;
    color: #35536e;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
  }

  .home-news[data-news-categories] .home-news__category:empty { visibility: hidden; }
}

@media (min-width: 768px) {
  .home-news__metadata { align-self: flex-start; margin-top: .8px; }
}


.home-reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.home-reviews__head h2 { margin: 0; }
.home-reviews__band { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; font-size: 13px; }
.home-reviews__score { display: flex; align-items: baseline; gap: 8px; }
.home-reviews__score strong { font-size: 32px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.review-stars { color: #b97a14; }
.home-reviews__link:link, .home-reviews__link:visited {
  flex: none;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #245a8b;
  background: #f7fafd;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}


.home-transaction-record__amount { white-space: nowrap; font-weight: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .home-section { margin-top: 28px; }
  .home-news { margin-top: 22.4px; }
  .home-business-notice.home-business-notice--year-end { margin-top: 5px; }
  .home-business-notice { flex-direction: column; gap: 5px; margin-top: 10px; padding: 10px 12px; font-size: 13px; }
  .exchange-calculator__card, .exchange-calculator__fallback { padding: 14px; }
  .exchange-calculator[data-band-size="medium"] [data-calc-rate-num] { font-size: 15px; }
  .exchange-calculator[data-band-size="small"] [data-calc-rate-num] { font-size: 13px; }
  .exchange-calculator__results { padding: 14px 14px 10px; }
  .exchange-calculator__result-columns { flex-direction: column-reverse; }
  .exchange-calculator__total-line strong { font-size: 28px; }
  .exchange-calculator__compare { border-right: 0; border-top: 1px solid #ebeef5; padding: 10px 0 0; }
  .exchange-calculator__compare:not([hidden]) + .exchange-calculator__total { padding: 0 0 10px; }
  .exchange-calculator__saving-money strong { font-size: 22px; }
  .exchange-calculator__details-toggle { min-height: 36px; }
  .l-container__contents__main.single:has(> :is(.home-news, .home-guide)) {
    display: flex;
    flex-direction: column;
    reading-flow: flex-visual;
  }
  .home-news[data-news-bg] {
    --news-card-inset: 14px;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    background: #fff;
  }
  .home-news :is(h2, .home-news__label) {
    padding-inline-start: calc(var(--news-card-inset) + 1px);
    color: #12324a;
    font-size: 18px;
    text-align: left;
    text-shadow: none;
  }
  .home-news__panel {
    padding: 1.6px var(--news-card-inset);
    border: 1px solid #dce5ee;
    border-radius: 10px;
  }
  .home-news__more a {
    box-sizing: border-box;
    min-height: 44px;
    margin-block-end: -14px;
    padding-block-start: 5px;
  }
  .home-news li { position: relative; display: block; padding-block: 3.58px; }
  .home-news__metadata { display: block; }
  .home-news li a { display: block; padding-right: 22px; }
  .home-news li a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 3px;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
  }
  .home-reviews__band { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .home-reviews__link { padding-inline: 10px; }

}

.exchange-calculator__picker {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 56px 0 52px;
  border: 1px solid #c9d8e6;
  border-radius: 5px;
  background: #fff;
  color: #12324a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.exchange-calculator__options {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 4px) 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #c9d8e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(20,30,50,.12);
}
.exchange-calculator__options.is-above { inset: auto 0 calc(100% + 4px); }
.exchange-calculator__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 36px;
  padding: 0 12px;
  color: #12324a;
  font-size: 15px;
  cursor: pointer;
}
.exchange-calculator__option img {
  position: static;
  flex: none;
}
.exchange-calculator__option:hover,
.exchange-calculator__option.is-active,
.exchange-calculator__option[aria-selected="true"] { background: #eef3fa; }
.exchange-calculator__option[aria-selected="true"] { box-shadow: inset 2px 0 #005fad; }

.home-about { overflow: hidden; }
.home-about__body {
  display: grid;
  grid-template-areas: "intro staff" "rule staff" "record staff";
  grid-template-columns: minmax(0, 1fr) 168px;
  column-gap: 24px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.9;
}
.home-about__intro { grid-area: intro; }
.home-about__intro p + p { margin-top: 10px; }

/* Keep the existing desktop card tracks when the shortened copy wraps to fewer lines. */
@media (768px <= width < 1080px) {
  .home-about__intro-copy { min-block-size: 5lh; }
}
@media (width >= 1080px) {
  .home-about__intro-copy { min-block-size: 4lh; }
}
.home-about__rule { grid-area: rule; width: 100%; margin: 16px 0; border: 0; border-top: 1px solid #ebeef5; }
.home-about__record { grid-area: record; }
.home-about__record h3 {
  margin: 0 0 6px;
  color: #5a6a7a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.home-about__body p { font-size: inherit; line-height: inherit; }
.home-about__record .home-about__note { margin-top: 6px; }
.home-about__record .home-about__note,
.home-about__staff-caption { color: #6b7785; font-size: 12px; line-height: 1.7; }
/* Keep the month and its punctuation together at narrow widths. */
.home-about__record .home-transaction-record__date-group { white-space: nowrap; }
.home-about__record .home-transaction-record__date { color: #6b7785; font-size: 13px; }
.home-about__staff { grid-area: staff; display: block; align-self: start; width: 100%; height: auto; border-radius: 8px; }
.home-about__media {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-top: 1px solid #ebeef5;
  background: #f7fafd;
}
.home-about__cover { flex: none; width: 44px; height: auto; border: 1px solid #d9e2ec; border-radius: 2px; box-shadow: 0 1px 3px rgba(20,30,50,.12); }
.home-about__media p { color: #12324a; font-size: 14px; line-height: 1.6; }
.home-about__media .home-about__credit { color: #6b7785; font-size: 11px; }
.home-about__media-title { display: none; }
@media (max-width: 767px) {
  .home-about__body {
    grid-template-areas: "intro intro" "rule rule" "record-title record-title" "amount staff" "note note" "years years";
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 14px;
    padding: 16px;
  }
  .home-about__intro,
  .home-about__record { display: contents; }
  .home-about__body .home-about__intro-copy {
    grid-area: intro;
    display: block;
    font-size: 14px;
    line-height: 1.75;
  }
  .home-about__rule { margin-block: 14px; border-color: #d5e0eb; }
  .home-about__record-title { grid-area: record-title; }
  .home-about__record h3 { margin: 0 0 7px; }
  .home-about__record h3,
  .home-about__media-title {
    padding-left: 7px;
    border-left: 2px solid #2b7cc4;
    color: #12324a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.35;
  }
  .home-transaction-record__summary {
    grid-area: amount;
    align-self: center;
  }
  .home-transaction-record__label { display: block; color: #455a70; font-size: 13px; }
  .home-transaction-record__amount {
    display: block;
    block-size: 23.4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 23.4px;
  }
  .home-transaction-record__amount-digits { margin-inline: 2px; font-size: 24px; line-height: 1; }
  .home-transaction-record__date-group { display: block; }
  .home-about__record .home-transaction-record__date { font-size: 12px; }
  .home-about__record .home-about__note,
  .home-about__body .home-about__years {
    color: #6b7785;
    font-size: 12px;
    line-height: 1.7;
  }
  .home-about__record .home-about__note { grid-area: note; margin-top: 10px; }
  .home-about__body .home-about__years { grid-area: years; margin: 4px 0 0; }
  .home-about__staff { align-self: center; width: 100px; height: 100px; }

  .home-about__media {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px;
    background: #fff;
    border-color: #d5e0eb;
  }
  .home-about__media-title { display: block; grid-column: 1 / -1; margin: 0; }
  .home-about__media .home-about__credit { color: #12324a; white-space: nowrap; }
  .home-about__media .home-about__media-note { font-size: 11px; }
}

.home-guide__part { margin-top: 20px; }
.home-guide__part h3 { margin: 0 0 10px; color: #12324a; font-size: 15px; line-height: 1.5; font-weight: 700; }
.home-guide__text { color: #12324a; font-size: 14px; line-height: 1.8; }
.home-guide-steps {
  --step-background: #eef3fa;
  --step-color: #005fad;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.home-guide-steps[data-side="sell"] { --step-background: #fcf1e3; --step-color: #b05b05; }
.home-guide-steps__item { position: relative; }
.home-guide-steps__item + .home-guide-steps__item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -12px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c9d8e6;
  border-right: 2px solid #c9d8e6;
  transform: rotate(45deg);
}
.home-guide-steps__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--step-background);
  color: var(--step-color);
}
.home-guide-steps__mark svg { width: 40px; height: 40px; }
.home-guide-steps__title { color: #12324a; font-size: 15px; line-height: 1.5; font-weight: 700; }
.home-guide-steps__title > [aria-hidden="true"] { margin-right: 6px; color: var(--step-color); }
.home-guide-steps__item .home-guide-steps__description { margin-top: 4px; color: #5a6a7a; font-size: 13px; line-height: 1.7; }
.home-guide__link:link, .home-guide__link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 44px;
  margin: 20px auto 0;
  padding: 0 20px;
  border: 1px solid #1a438f;
  border-radius: 8px;
  background: #fff;
  color: #1a438f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 767px) {
  .home-guide-steps { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .home-guide-steps__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
  .home-guide-steps__item + .home-guide-steps__item::before { display: none; }
  .home-guide-steps__mark { width: 48px; height: 48px; margin: 0; }
  .home-guide-steps__mark svg { width: 30px; height: 30px; }
}

.home-guide__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-guide__cards .home-guide__part {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.home-guide__cards .home-guide__part > h3 {
  margin: 0;
  padding: 10px 16px;
  background: #eef3fa;
}
.home-guide__cards [data-side="sell"] > h3 { background: #fcf1e3; }
.home-guide__cards .home-guide-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  text-align: left;
}
.home-guide__cards .home-guide-steps__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.home-guide__cards .home-guide-steps__item + .home-guide-steps__item::before { display: none; }
.home-guide__cards .home-guide-steps__mark { width: 48px; height: 48px; margin: 0; }
.home-guide__cards .home-guide-steps__mark svg { width: 30px; height: 30px; }
.home-guide__cards--flow .home-guide-steps__title { line-height: 1.25; }
.home-guide__cards--flow .home-guide-steps__description { margin-top: 0; line-height: 1.4; }
@media (min-width: 768px) {
  .home-guide__cards--flow .home-guide-steps { gap: 18px; }
  .home-guide__cards--flow .home-guide-steps__description { font-size: 12px; }
  .home-guide__cards--flow .home-guide-steps__mark { z-index: 1; }
  .home-guide__cards--flow .home-guide-steps__item + .home-guide-steps__item::before,
  .home-guide__cards--flow .home-guide-steps__item:not(:last-child)::after {
    display: block;
    position: absolute;
    left: 23px;
    width: 2px;
    content: "";
    background: #cfdcec;
    border: 0;
    transform: none;
  }
  .home-guide__cards--flow .home-guide-steps__item + .home-guide-steps__item::before {
    top: 0;
    height: 50%;
  }
  .home-guide__cards--flow .home-guide-steps__item:not(:last-child)::after {
    top: 50%;
    bottom: -18px;
  }
}
@media (max-width: 767px) {
  .home-guide__cards { grid-template-columns: minmax(0, 1fr); }
}

.home-guide .home-guide__lead { margin-bottom: 16px; }
.home-guide__ship-date.home-guide__payout {
  justify-content: center;
  border: 1px solid #ead9c2;
  background: #fff;
}
.home-guide__payout strong {
  color: #12324a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .home-about__body {
    grid-template-areas: "intro staff" "rule staff" "record-title staff"
                         "amount staff" "note note" "years years";
  }

  .home-about__intro,
  .home-about__record {
    display: contents;
  }

  .home-about__intro-copy { grid-area: intro; }

  .home-about__record .home-about__record-title {
    grid-area: record-title;
    padding-inline-start: 7px;
    border-inline-start: 2px solid #2b7cc4;
    color: #12324a;
    letter-spacing: normal;
    line-height: 1.35;
  }

  .home-transaction-record__summary {
    grid-area: amount;
    display: grid;
    grid-template-areas: "label date" "amount amount";
    grid-template-columns: max-content max-content;
    align-items: baseline;
  }

  .home-transaction-record__label { grid-area: label; color: #455a70; font-size: 14px; }
  .home-transaction-record__date-group { grid-area: date; }
  .home-transaction-record__amount { grid-area: amount; font-size: 14px; font-weight: 700; line-height: 1.25; }
  .home-transaction-record__amount-digits { margin-inline: 2px; font-size: 24px; }
  .home-about__record .home-about__note { grid-area: note; white-space: nowrap; }

  .home-about__body .home-about__years {
    grid-area: years;
    margin: 4px 0 0;
    color: #6b7785;
    font-size: 12px;
    line-height: 1.7;
  }
}

@media (max-width: 767px) {
  .home-about__years strong { font-weight: inherit; }
}

@media (min-width: 768px) {
  .home-guide__cards--flow [data-side="sell"] .home-guide-steps__item + .home-guide-steps__item::before,
  .home-guide__cards--flow [data-side="sell"] .home-guide-steps__item:not(:last-child)::after {
    background: #e6c4a0;
  }
}

.exchange-calculator__total .exchange-calculator__shipping-note { margin: 2px 0 0; }

.exchange-calculator :is(.exchange-calculator__shipping-note, .exchange-calculator__consult--delivery) {
  color: #536879;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.home-review-half-star {
  position: relative;
  display: inline-block;
}

.home-review-half-star::before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  content: "★";
}

.home-about .home-about__body {
  display: grid;
  grid-template: "intro staff" auto "record staff" auto / minmax(0, 1fr) 344px;
  align-items: start;
  gap: 20px 40px;
  padding: 28px 30px;
}
.home-about .home-about__intro-copy { grid-area: intro; margin: 0; }
.home-about .home-about__record { display: block; }
.home-about .home-about__staff {
  grid-area: staff;
  position: relative;
  width: 344px;
  height: auto;
  margin: 0;
}
.home-about__staff img {
  display: block;
  width: 100%;
  height: 300px;
  border-radius: 8px;
  object-fit: cover;
}
.home-about__staff-caption { margin-top: 4px; text-align: center; }
.home-about .home-transaction-record__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.home-about .home-transaction-record__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  max-width: 100%;
}
.home-about .home-transaction-record__amount { block-size: auto; font-size: 17px; line-height: 1.25; }
.home-about .home-transaction-record__amount-digits { font-size: 38px; }
.home-about .home-about__record .home-about__note { white-space: normal; }

.home-guide--text-links .home-guide__cards--flow { gap: 18px; }
.home-guide--text-links .home-guide-steps { padding-block-end: 12px; }
.home-guide--text-links .home-guide__ship-date {
  margin-block: 0 8px;
  border: 0;
  background: #f5f7fa;
}

.home-guide__card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-inline: 12px;
}

.home-guide__card-link:is(:link, :visited) {
  --guide-link-color: #005fad;
  --guide-link-border: #b9c8d5;
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-block-size: 40px;
  padding-inline: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 .75px var(--guide-link-border);
  color: var(--guide-link-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

[data-side="sell"] .home-guide__card-link:is(:link, :visited) {
  --guide-link-color: #b35c00;
  --guide-link-border: #d5c2ac;
}

.home-guide__card-icon { display: none; }

.home-guide__card-chevron {
  position: absolute;
  inset-inline-end: 8px;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 767px) {
  .home-guide__card-footer {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 153px), 1fr));
  }

  .home-guide__card-link:is(:link, :visited) {
    min-block-size: 44px;
    font-size: 13px;
  }

  .home-guide__card-chevron { font-size: 16px; }
}

@media (max-width: 352px) {
  .home-guide__card-footer { grid-template-columns: minmax(0, 1fr); }

  @supports (grid-template-columns: subgrid) {
    .home-guide__card-footer {
      grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
      column-gap: 0;
    }

    .home-guide__card-link:is(:link, :visited) {
      grid-column: 1 / -1;
      grid-template-columns: subgrid;
    }

    .home-guide__card-label {
      grid-column: 2;
      justify-self: stretch;
    }
  }

  .home-guide__card-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }

  .home-guide__card-icon {
    display: block;
    flex: none;
    color: #005fad;
  }

  [data-side="sell"] .home-guide__card-icon { color: #b05b05; }
}

@media (min-width: 1100px) {
  .home-guide--text-links .home-guide__lead,
  .home-guide__application { display: none; }
  .home-guide__card-footer { margin-block-end: 11px; }

  .home-about .home-about__body {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding-block-end: 36px;
  }

  .home-about .home-about__staff { width: 100%; }
  .home-about__staff img { height: auto; object-fit: contain; }

  /* Keep the two existing desktop text tracks aligned beside the photo. */
  .home-about__staff-caption {
    position: absolute;
    inset: 100% 0 auto;
  }
}

.home-section.home-rate-cta[aria-label] {
  margin-block-start: 20px;
  padding-block: 0;
}

@media (width < 1100px) {
  .l-container__contents__main.single:has(> .home-rate-cta--narrow) {
    display: flex;
    flex-direction: column;
    reading-flow: flex-visual;
  }
  .l-container__contents__main.single > :is(.home-business-notice--year-end, #current_rate_table) {
    order: -2;
  }
  .home-section.home-rate-cta--narrow[aria-label] {
    order: -1;
    margin-block-start: 16px;
    padding-block: 0;
  }

  .home-rate-cta--wide,
  .home-news--desktop { display: none; }
  .home-news--mobile { display: block; }
  .home-guide__application { margin: 32px 16px 16px; }
  @media (max-width: 767px) {
    .home-guide__application { margin-block-start: 16px; }
  }
  .home-about .home-about__body {
    grid-template: "intro" "staff" "record" / minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .home-about .home-about__staff { width: 100%; max-width: 344px; }
  .home-about__staff img { height: auto; aspect-ratio: 344 / 300; }
}

@media (768px <= width < 1100px) {
  .home-guide__card-footer { margin-inline: 4px; }

  .home-guide__card-link:is(:link, :visited) {
    padding-inline: 12px;
    font-size: 12px;
  }

  .home-guide__card-chevron {
    inset-inline-end: 4px;
    font-size: 16px;
  }
}
