/* Foreign transaction fee comparison workspace. One three-track grid is shared by the shared-input row
   and every payment-method row so labels, controls and results line up; results sit in the right column.
   Accent text is reserved for the large best total (large-text contrast); small numbers use ink. */
.tn-fxf-page {
  --fxf-paper: #faf6ee;
  --fxf-wash: #f5efdf;
  --fxf-ink: #1a1208;
  --fxf-muted: #5a4a30;
  --fxf-line: #b8a888;
  --fxf-soft: #ddd4be;
  --fxf-accent: #c44a00;
  --fxf-button: #ede6d4;
  --fxf-hover: #dfd4bb;
  --fxf-primary: #1a1208;
  --fxf-primary-text: #faf6ee;
  --fxf-primary-hover: #463524;
  --fxf-seg-rate: #1a1208;
  --fxf-seg-fee: #b8a888;
  --fxf-seg-dcc: #c44a00;
  --fxf-sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  --fxf-mono: var(--tn-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color: var(--fxf-ink);
  -webkit-font-smoothing: antialiased;
}
.tn-fxf-page .tn-fxf-tool,
.tn-fxf-page .tn-fxf-tool * { box-sizing: border-box; }
.tn-fxf-page .tn-fxf-ad--top,
.tn-fxf-page .tn-fxf-ad--bottom {
  width: 100%; max-width: 728px; min-height: 0; height: auto; max-height: none;
  margin-right: auto; margin-left: auto; padding: 0; border: 0;
  background: transparent; box-shadow: none; overflow: visible;
}
.tn-fxf-page .tn-fxf-ad--top { margin-top: 54px; margin-bottom: 36px; }
.tn-fxf-page .tn-fxf-ad--bottom { margin-top: 28px; margin-bottom: 28px; }

.tn-fxf-page .tn-fxf-tool {
  display: block;
  border: 1px solid var(--fxf-line);
  border-top: 3px double var(--fxf-line);
  background: var(--fxf-paper);
  color: var(--fxf-ink);
  font-family: var(--fxf-sans);
  line-height: 1.6;
}
.tn-fxf-page .tn-fxf-tool :is(ul, ol, li) { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tn-fxf-page .tn-fxf-tool li::before { content: none; }
.tn-fxf-page .tn-fxf-tool p { margin: 0; }
.tn-fxf-page .tn-fxf-tool :is(code, pre, kbd, samp) { padding: 0; border: 0; border-radius: 0; background: none; background-color: transparent; color: inherit; -webkit-text-fill-color: inherit; }

.tn-fxf-page .fxf-workspace { display: grid; gap: 0; padding: 22px 28px 20px; }
.tn-fxf-page .fxf-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; column-gap: 20px; align-items: start; min-width: 0; }
.tn-fxf-page .fxf-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; min-width: 0; }
.tn-fxf-page .fxf-row--head { padding-bottom: 18px; border-bottom: 3px double var(--fxf-line); }

.tn-fxf-page .fxf-name { display: grid; align-content: start; justify-items: start; gap: 2px; min-width: 0; padding-top: 2px; }
.tn-fxf-page .fxf-name b { color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.tn-fxf-page .fxf-name span { color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.5; }
.tn-fxf-page .fxf-rank {
  display: inline-flex; align-items: center; height: 20px; margin-top: 4px; padding: 0 7px;
  border: 1px solid var(--fxf-ink); color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-size: 11px; font-style: normal; font-weight: 700; line-height: 1;
}
.tn-fxf-page .is-best .fxf-rank { border-color: var(--fxf-accent); }
.tn-fxf-page .fxf-rank[hidden] { display: none; }

.tn-fxf-page .fxf-label { display: block; margin: 0; color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.tn-fxf-page .fxf-label small { margin-left: 4px; font-size: 11px; font-weight: 500; }
.tn-fxf-page .fxf-label-row { display: flex; align-items: center; gap: 2px; min-width: 0; min-height: 24px; margin: 0 0 5px; }

/* Circular help (design system 2026-09-10): 18px visible circle inside a 24px button. */
.tn-fxf-page .fxf-help { display: inline-flex; flex: 0 0 24px; }
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger {
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none;
  color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted);
  font-family: var(--fxf-sans); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: normal;
  text-decoration: none; cursor: help; appearance: none;
}
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger::before {
  content: ""; position: absolute; inset: 3px; box-sizing: border-box; z-index: -1;
  border: 1px solid var(--fxf-line); border-radius: 50%; background: var(--fxf-wash); pointer-events: none;
}
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger:hover { background: transparent; }
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger:hover::before,
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger[aria-expanded="true"]::before { background: var(--fxf-hover); }
.tn-fxf-page .tn-fxf-tool .fxf-help-trigger:focus-visible { outline: 2px solid var(--fxf-accent); outline-offset: 2px; }
.tn-fxf-page .fxf-help-tooltip {
  position: fixed; z-index: 10000; display: block; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  margin: 0; padding: 12px; border: 1px solid var(--fxf-line); border-radius: 0; background: var(--fxf-paper); box-shadow: none;
  color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-family: var(--fxf-sans); font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: normal; text-align: left; white-space: normal; overflow-wrap: anywhere;
}
.tn-fxf-page .fxf-help-tooltip[hidden] { display: none; }

.tn-fxf-page .fxf-field { display: grid; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.tn-fxf-page .tn-fxf-tool .fxf-control { display: flex !important; align-items: stretch !important; min-width: 0; border: 1px solid var(--fxf-line); background: var(--fxf-paper); }
.tn-fxf-page .fxf-control:has(:focus-visible) { outline: 2px solid var(--fxf-accent); outline-offset: -1px; }
.tn-fxf-page .fxf-control:has([aria-invalid="true"]) { border-color: var(--fxf-accent); }
.tn-fxf-page .fxf-control > span {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 34px; padding: 0 8px;
  border-left: 1px solid var(--fxf-line); background: var(--fxf-wash);
  color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tn-fxf-page .fxf-control input {
  display: block; flex: 1 1 auto; width: auto; min-width: 0; height: 44px; margin: 0; padding: 6px 10px;
  border: 0; border-radius: 0; outline: none; background: var(--fxf-paper); box-shadow: none;
  color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-family: var(--fxf-sans); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums; text-align: right;
}
.tn-fxf-page .fxf-control input::placeholder { color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-weight: 400; opacity: .35; }
.tn-fxf-page #fxf-travel::placeholder { font-size: 14px; }
.tn-fxf-page .fxf-control--select { position: relative; }
.tn-fxf-page .fxf-control--select::after {
  content: ""; position: absolute; top: 50%; right: 12px; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--fxf-muted); border-bottom: 1.5px solid var(--fxf-muted); transform: rotate(45deg); pointer-events: none;
}
.tn-fxf-page .tn-fxf-tool .fxf-control select {
  display: block; flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 6px 30px 6px 10px;
  border: 0; border-radius: 0; outline: none; background: var(--fxf-paper); box-shadow: none; appearance: none; -webkit-appearance: none;
  color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-family: var(--fxf-sans); font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; text-overflow: ellipsis;
}
.tn-fxf-page .tn-fxf-tool .fxf-control select:hover { background: var(--fxf-wash); }
.tn-fxf-page .tn-fxf-tool .fxf-control select option { background: var(--fxf-paper); color: var(--fxf-ink); }
.tn-fxf-page .fxf-cell-note { align-self: center; margin-top: 29px !important; color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.tn-fxf-page .fxf-cell-note--wide { grid-column: span 2; }

.tn-fxf-page .fxf-summary { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--fxf-line); background: var(--fxf-wash); }
.tn-fxf-page .fxf-best-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.tn-fxf-page .fxf-best-total {
  display: block; color: var(--fxf-accent); -webkit-text-fill-color: var(--fxf-accent);
  font-family: var(--fxf-sans); font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.tn-fxf-page .fxf-best-name { color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.tn-fxf-page .fxf-best-text { margin-top: 4px !important; color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

.tn-fxf-page .fxf-cols { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; column-gap: 20px; padding: 12px 0 6px; }
.tn-fxf-page .fxf-cols span { color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-family: var(--fxf-mono); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }

.tn-fxf-page .fxf-methods { display: grid; border-top: 1px solid var(--fxf-soft); }
.tn-fxf-page .fxf-method { padding: 14px 12px; margin: 0 -12px; border-bottom: 1px solid var(--fxf-soft); }
.tn-fxf-page .fxf-method.is-best { background: var(--fxf-wash); }
.tn-fxf-page .fxf-result { display: grid; align-content: start; gap: 3px; min-width: 0; padding-top: 2px; }
.tn-fxf-page .fxf-total-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.tn-fxf-page .fxf-total {
  color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-family: var(--fxf-sans); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.tn-fxf-page .fxf-effective { color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.5; font-variant-numeric: lining-nums tabular-nums; }
.tn-fxf-page .fxf-diff { color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink); font-size: 13px; font-weight: 600; line-height: 1.5; font-variant-numeric: lining-nums tabular-nums; }
.tn-fxf-page .fxf-diff:empty { display: none; }
.tn-fxf-page .fxf-bar { position: relative; display: flex; width: 100%; height: 10px; margin: 3px 0 2px; overflow: hidden; border: 1px solid var(--fxf-line); background: var(--fxf-paper); }
.tn-fxf-page .fxf-seg { display: block; flex: 0 0 auto; height: 100%; transition: width 200ms ease; }
.tn-fxf-page .fxf-seg[hidden] { display: none; }
.tn-fxf-page .fxf-seg + .fxf-seg { border-left: 1px solid var(--fxf-paper); }
.tn-fxf-page .fxf-seg--rate { background: var(--fxf-seg-rate); }
.tn-fxf-page .fxf-seg--fee { background: var(--fxf-seg-fee); }
.tn-fxf-page .fxf-seg--dcc { background: var(--fxf-seg-dcc); }
.tn-fxf-page .fxf-breakdown { color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.tn-fxf-page .is-error .fxf-breakdown { color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink); font-weight: 700; }

.tn-fxf-page .fxf-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; padding-top: 14px; }
.tn-fxf-page .tn-fxf-tool .fxf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; }
.tn-fxf-page .fxf-key,
.tn-fxf-page .fxf-legend-note { display: inline-flex; align-items: center; gap: 6px; color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.5; }
.tn-fxf-page .tn-fxf-tool .fxf-key::before { content: ""; display: block !important; width: 12px; height: 8px; border: 1px solid var(--fxf-line); }
.tn-fxf-page .tn-fxf-tool .fxf-key--rate::before { background: var(--fxf-seg-rate); }
.tn-fxf-page .tn-fxf-tool .fxf-key--fee::before { background: var(--fxf-seg-fee); }
.tn-fxf-page .tn-fxf-tool .fxf-key--dcc::before { background: var(--fxf-seg-dcc); }
.tn-fxf-page .fxf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tn-fxf-page .fxf-status { grid-column: 1 / -1; min-height: 20px; color: var(--fxf-muted); -webkit-text-fill-color: var(--fxf-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.tn-fxf-page .fxf-status[data-tone="error"] { color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink); font-weight: 700; }
.tn-fxf-page .fxf-noscript { padding: 16px 28px; font-size: 14px; }

.tn-fxf-page .tn-fxf-tool button:not(.fxf-help-trigger) {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0 14px;
  border: 1px solid var(--fxf-line); border-radius: 0; background: var(--fxf-button);
  color: var(--fxf-ink); -webkit-text-fill-color: var(--fxf-ink);
  font-family: var(--fxf-mono); font-size: 12px; font-weight: 700; line-height: 1;
  text-align: center; letter-spacing: 0; white-space: nowrap; text-transform: none; box-shadow: none; cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.tn-fxf-page .tn-fxf-tool button:not(.fxf-help-trigger):hover { background: var(--fxf-hover); }
.tn-fxf-page .tn-fxf-tool button:not(.fxf-help-trigger):focus-visible { outline: 2px solid var(--fxf-accent); outline-offset: 2px; }
.tn-fxf-page .tn-fxf-tool button[aria-pressed="true"] { border-color: var(--fxf-accent); text-decoration: underline; text-underline-offset: 4px; }
.tn-fxf-page .tn-fxf-tool #fxf-copy { background: var(--fxf-primary); border-color: var(--fxf-primary); color: var(--fxf-primary-text); -webkit-text-fill-color: var(--fxf-primary-text); }
.tn-fxf-page .tn-fxf-tool #fxf-copy:hover { background: var(--fxf-primary-hover); border-color: var(--fxf-primary-hover); }
.tn-fxf-page .tn-fxf-tool button:disabled { opacity: .48; cursor: not-allowed; }

/* Article: compact worked-example comparison (body comparison-list rule 2026-09-14). */
.tn-fxf-page .fxf-compare { display: grid; gap: 0; margin: 12px 0 0; }
.tn-fxf-page .fxf-compare > div { display: grid; gap: 3px; padding: 10px 0; border: 0; background: transparent; font-family: var(--fxf-sans); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.tn-fxf-page .fxf-compare > div + div { border-top: 1px solid var(--tn-fixed-soft-line, var(--fxf-soft)); }
.tn-fxf-page .fxf-compare b { color: var(--tn-fixed-ink, var(--fxf-ink)); -webkit-text-fill-color: currentColor; font-size: 14px; font-weight: 500; }
.tn-fxf-page .fxf-compare span { color: var(--tn-fixed-muted, var(--fxf-muted)); -webkit-text-fill-color: currentColor; font-size: 13px; font-weight: 400; }
.tn-fxf-page .fxf-compare strong { color: var(--tn-fixed-ink, var(--fxf-ink)); -webkit-text-fill-color: currentColor; font-family: var(--fxf-sans); font-size: 13px; font-weight: 600; white-space: nowrap; }

body[data-scheme="dark"] .tn-fxf-page,
body[data-scheme="inverse"] .tn-fxf-page,
body[data-scheme="auto"][data-l="dark"] .tn-fxf-page,
body[data-scheme="auto"][data-d="dark"] .tn-fxf-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-fxf-page {
  --fxf-paper: #201a13; --fxf-wash: #271f16; --fxf-ink: #f7ead1; --fxf-muted: #cbbd9e;
  --fxf-line: #826744; --fxf-soft: #594831; --fxf-accent: #ffab6b;
  --fxf-button: #2f2115; --fxf-hover: #3a2a1b;
  --fxf-primary: #6a3b1f; --fxf-primary-text: #f7ead1; --fxf-primary-hover: #824826;
  --fxf-seg-rate: #f7ead1; --fxf-seg-fee: #826744; --fxf-seg-dcc: #ffab6b;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-fxf-page {
    --fxf-paper: #201a13; --fxf-wash: #271f16; --fxf-ink: #f7ead1; --fxf-muted: #cbbd9e;
    --fxf-line: #826744; --fxf-soft: #594831; --fxf-accent: #ffab6b;
    --fxf-button: #2f2115; --fxf-hover: #3a2a1b;
    --fxf-primary: #6a3b1f; --fxf-primary-text: #f7ead1; --fxf-primary-hover: #824826;
    --fxf-seg-rate: #f7ead1; --fxf-seg-fee: #826744; --fxf-seg-dcc: #ffab6b;
  }
}
body[data-scheme="dark"] .tn-fxf-page .tn-fxf-tool #fxf-copy,
body[data-scheme="inverse"] .tn-fxf-page .tn-fxf-tool #fxf-copy,
body[data-scheme="auto"][data-l="dark"] .tn-fxf-page .tn-fxf-tool #fxf-copy,
body[data-scheme="auto"][data-d="dark"] .tn-fxf-page .tn-fxf-tool #fxf-copy,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-fxf-page .tn-fxf-tool #fxf-copy { border-color: var(--fxf-accent); }
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-fxf-page .tn-fxf-tool #fxf-copy { border-color: var(--fxf-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .tn-fxf-page .fxf-seg,
  .tn-fxf-page .tn-fxf-tool button { transition: none; }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .tn-fxf-page .fxf-row,
  .tn-fxf-page .fxf-cols { grid-template-columns: 132px minmax(0, 1fr) 248px; column-gap: 16px; }
  .tn-fxf-page .fxf-workspace { padding-right: 20px; padding-left: 20px; }
  .tn-fxf-page .fxf-best-total { font-size: 30px; }
}
@media (max-width: 760px) {
  .tn-fxf-page .tn-fxf-ad--top { margin-top: 48px; margin-bottom: 25px; }
  .tn-fxf-page .fxf-workspace { padding: 16px 14px 16px; }
  .tn-fxf-page .fxf-row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .tn-fxf-page .fxf-cols { display: none; }
  .tn-fxf-page .fxf-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tn-fxf-page .fxf-name { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 8px; padding-top: 0; }
  .tn-fxf-page .fxf-name span { grid-column: 1 / -1; grid-row: 2; }
  .tn-fxf-page .fxf-rank { margin-top: 0; }
  .tn-fxf-page .fxf-row--head .fxf-inputs > .fxf-field:nth-child(3),
  .tn-fxf-page .fxf-method--card .fxf-inputs > .fxf-field:first-child { grid-column: 1 / -1; }
  .tn-fxf-page .fxf-cell-note,
  .tn-fxf-page .fxf-cell-note--wide { grid-column: 1 / -1; margin-top: 0 !important; }
  .tn-fxf-page .fxf-method { padding: 14px 10px; margin: 0 -10px; }
  .tn-fxf-page .fxf-result { padding-top: 10px; border-top: 1px dashed var(--fxf-soft); }
  .tn-fxf-page .fxf-best-total { font-size: 32px; }
  .tn-fxf-page .fxf-foot { grid-template-columns: minmax(0, 1fr); }
  .tn-fxf-page .fxf-actions { justify-content: flex-start; }
  .tn-fxf-page .tn-fxf-tool button:not(.fxf-help-trigger) { padding-right: 11px; padding-left: 11px; }
}
