html{color-scheme:light;scroll-padding-top:88px}
.brand-name{text-transform:none}
.announcement{position:sticky;top:12px;z-index:5;display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 16px 0;border-radius:12px;text-align:left}
.announcement-icon{display:block;flex:none;width:32px;height:32px;border-radius:8px}
.announcement-copy a{white-space:nowrap}
@media(max-width:480px){.announcement{gap:10px;margin:12px 12px 0;padding:10px 12px}.announcement-icon{width:28px;height:28px;border-radius:7px}}
.masthead{position:relative;padding-right:76px}
.card .article-status{display:table;margin:16px 0 12px;padding:4px 10px;border-radius:6px;font-size:13px;font-weight:600;line-height:1.5;background:#edf0f2;color:#404b55}
.card .article-status[data-status=published]{background:#e7f3eb;color:#245c36}
.card .article-status[data-status=to-publish]{background:#fff0d6;color:#70450b}
html[data-theme=dark] .card .article-status{background:#252b30;color:#d2dbe3}
html[data-theme=dark] .card .article-status[data-status=published]{background:#183523;color:#a4e0b5}
html[data-theme=dark] .card .article-status[data-status=to-publish]{background:#382a14;color:#f2ca88}
.masthead.has-article-version{grid-template-columns:minmax(42px,1fr) auto minmax(150px,1fr);column-gap:16px}
.article-version{justify-self:end;display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}
.article-version select{max-width:180px;min-height:44px;padding:9px 10px;border:1px solid var(--rule);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.article-version select:disabled{cursor:default;opacity:1}
.article-version select:focus-visible{outline:3px solid #479064;outline-offset:4px}
@media(max-width:600px){.has-article-version .brand img{width:80px}.masthead.has-article-version{grid-template-columns:42px auto minmax(0,1fr);column-gap:12px}.article-version>span{display:none}.article-version select{max-width:130px;font-size:12px;padding:8px 6px}}
.theme-toggle{position:absolute;right:24px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:1px solid var(--rule);border-radius:50%;background:transparent;color:var(--ink);display:grid;place-items:center}
.theme-toggle svg{width:22px;height:22px}
html[data-theme=dark]{color-scheme:dark;--paper:#000000;--ink:#f2f2f2;--muted:#aaaaaa;--rule:#383838;--green:#252525;--v2-surface:#141414;--v2-tint:#202020;--v2-line:#3c3c3c;--v2-ink-2:#cccccc;--v2-muted:#aaaaaa;--v2-accent:#92d3a6;--v2-context:#737373;--v2-track:#303030;--v2-warn:#f2bd72}
[data-theme=dark] .v2-compare{background:#202020;color:#dddddd}
[data-theme=dark] a:hover,[data-theme=dark] .v2-compare a{color:#a5dfb7}
[data-theme=dark] :is(.v2-fastcheck,.v2-note,.template,th,.card,.vr-route,.v2-tool,.v2-route-tile,.checkout-choice-card,.visual-sheet,.reader-tool,.decision-tool,dialog){background:#141414;color:var(--ink);border-color:var(--rule)}
[data-theme=dark] :is(input,select,textarea){background:#000000;color:var(--ink);border-color:var(--rule)}
[data-theme=dark] .v2-fastcheck li::before{background:#334b3c;color:#c8eed3}
[data-theme=dark] .v2-notes-toggle{color:#ffa8b2}
[data-theme=dark] .article-body .v2-fig .v2-technical-note{background:#3c2026;color:#ffc2ca;border-color:#85424e}
[data-theme=dark] :is(.brand,.site-footer) img{filter:brightness(0) invert(1)}
[data-theme=dark] .tara-end-cta{background:#141414;color:var(--ink);border-color:var(--rule)}
[data-theme=dark] .preview-label{background:#202020;color:#dddddd;border-color:var(--rule)}
@media(max-width:480px){.masthead{padding-left:16px;padding-right:62px}.theme-toggle{right:12px;width:36px;height:36px}}
[data-theme=dark] .article-body :is(.tara-end-cta,.tara-diagram .diagram-steps li,.tara-tool .tool-result,.v2-choices label){background:#141414;color:var(--ink);border-color:var(--rule)}
[data-theme=dark] .article-body .tara-end-cta :is(h2,p){color:var(--ink)}
[data-theme=dark] .article-body :is(.tara-tool select,.tara-tool textarea,.v2-tool input:not([type=radio]),.v2-tool select,.v2-lookup input){background:#000000;color:var(--ink);border-color:var(--rule)}

/* Explicit state selectors beat the component's light-mode selectors. */
html[data-theme=dark] .article-body .v2-tool :is(input:not([type=radio]),select),
html[data-theme=dark] .article-body .v2-lookup input{background:#0a0a0a;color:#f2f2f2;border-color:#555}
html[data-theme=dark] .article-body .v2-choices label{background:#141414;color:#f2f2f2;border-color:#555}
html[data-theme=dark] .article-body .v2-choices label:has(input:checked){background:#242424;border-color:var(--v2-accent)}
html[data-theme=dark] :is(.vp-branch,.v2-tflow li){background:#141414}
html[data-theme=dark] .vp-grid>.vp-stop{background:#321c1c;border-color:#8c4a4a}
html[data-theme=dark] :is(.vp-stop strong,.vp-stop .vp-codes,.sq-bad,.v2-matrix td.no,.tf-bad::before){color:#ffaaa3}
html[data-theme=dark] .v2-rows b{color:#ffc080}
html[data-theme=dark] .article-body .v2-answer .v2-status{color:#ffc2bc;background:#321c1c}
html[data-theme=dark] :is(.v2-n,.sq-hold,.lg-bar i){color:#101010}
html[data-theme=dark] .lg-own{background:repeating-linear-gradient(135deg,#bcbcbc 0 6px,#939393 6px 12px)}
html[data-theme=dark] .lg-flight{background:#a5b9ac}
html[data-theme=dark] .lg-notes .lg-own-n{--sw:repeating-linear-gradient(135deg,#bcbcbc 0 3px,#939393 3px 6px)}
html[data-theme=dark] .lg-notes>div:nth-child(2){--sw:#a5b9ac}
html[data-theme=dark] input::placeholder{color:#aaa;opacity:1}
html[data-theme=dark] .search-toggle{color:var(--ink)}
html[data-theme=dark] .sq-hold{background:#a0a0a0;color:#101010}

/* Shared v1 tools need complete foreground and background pairs. */
html[data-theme=dark] .article-body :is(.bank-request,.transaction-checker,.network-matrix,.tara-tool,.tara-diagram){background:#141414;color:var(--ink);border-color:var(--rule)}
html[data-theme=dark] .article-body :is(.bank-request input[type=text],.transaction-form input,.transaction-form select){background:#0a0a0a;color:var(--ink);border-color:#555}
html[data-theme=dark] .article-body :is(.bank-request textarea,.tara-tool textarea,.tara-tool select){background:#0a0a0a;color:var(--ink);border-color:#555}
html[data-theme=dark] .article-body :is(.reader-tool-primary,.tool-actions [data-copy-bank]){background:#f2f2f2;color:#101010;border-color:#f2f2f2}
html[data-theme=dark] .article-body :is(.reader-tool-primary,.tool-actions [data-copy-bank]):hover{background:#c8eed3;color:#101010}
html[data-theme=dark] .article-body .transaction-examples button{background:#202020;color:var(--ink);border-color:#555}
html[data-theme=dark] .article-body .transaction-examples button:hover{background:#334b3c}
html[data-theme=dark] .article-body .transaction-result{background:#1c3023;color:var(--ink)}
html[data-theme=dark] .article-body .transaction-result[data-state=failed]{background:#321c1c}
html[data-theme=dark] .article-body .transaction-result[data-state=confirming]{background:#302719}
html[data-theme=dark] .article-body .transaction-result[data-state=unknown]{background:#202730}
html[data-theme=dark] .article-body :is(.network-matrix .matrix-evm,.network-legend-item){background:#202020;color:var(--ink);border-color:var(--rule)}
html[data-theme=dark] .article-body :is(.reader-tool-kicker,.reader-tool-foot,.transaction-examples span,.network-matrix caption,.tara-diagram .diagram-kicker,.tara-diagram .diagram-steps span,.tara-tool .tool-kicker,.tara-tool .tool-foot){color:#b8c5bd}
html[data-theme=dark] .article-body :is(.tool-error,.reader-tool-error,.network-matrix .matrix-no){color:#ffaaa3}
html[data-theme=dark] .article-body .tara-diagram .diagram-steps .diagram-step{color:#92d3a6}
html[data-theme=dark] .article-body .tara-diagram .diagram-steps .diagram-outcome{background:#1c3023;border-color:#56755f}
html[data-theme=dark] .hero,html[data-theme=dark] .payment-columns{background:#141414;color:var(--ink)}
html[data-theme=dark] :is(.sheet-label,.sheet-foot,.payment-context,.payment-account,.payment-note){color:var(--muted)}
html[data-theme=dark] .card .thumb:not(.thumb-image){background:#202020;color:var(--ink)}
html[data-theme=dark] .article-body a[href="https://tara.com"]{background:#f2f2f2;color:#101010}
html[data-theme=dark] .article-body .v2-tool input[aria-invalid=true]{border-color:#ffaaa3}

.card .thumb-image{padding:0;overflow:hidden;background:#fff;display:block}
.thumb-image img{width:100%;height:100%;display:block;object-fit:cover}
.thumb-card-close img{transform:scale(1.65);transform-origin:68% 43%}
.thumb-terminal img{object-position:50% 45%;transform:scale(1.12)}

.card .thumb{border-radius:12px;overflow:hidden}
html[data-theme=dark] .card{background:transparent}
.card .thumb-image{background:transparent}

/* Shared article framing; thumbnails retain their compact 12px radius. */
:root{--article-radius:24px}
.imported-article .kg-image-card{margin:36px 0}
.imported-article .kg-image{display:block;width:100%;height:auto;border-radius:var(--article-radius)}
.imported-article .kg-embed-card{margin:30px 0;overflow-wrap:anywhere}
.editorial-photo-figure picture,.editorial-photo-figure img,.hero{border-radius:var(--article-radius);overflow:hidden}
.article-body :is(.v2-fig,.v2-fastcheck,.v2-tool,.tara-diagram,.tara-tool,.tara-end-cta){border:0;border-radius:var(--article-radius)}
.article-body :is(.template,.table-wrap,.v2-answer,.tool-result,.v2-note){border-radius:var(--article-radius);overflow:hidden}
.article-body .table-wrap{border:1px solid var(--rule);overflow:auto}
.article-body .table-wrap table{margin:0;border:0}
.article-body .tara-tool form{grid-template-columns:minmax(0,1fr);gap:8px}
.article-body .tara-tool :is(select,textarea){max-width:100%;font:inherit;padding:14px 16px;border-radius:12px}
.article-body .tara-tool label{margin-top:12px}
html[data-theme=dark] .article-body :is(.tara-diagram,.tara-tool){background:#141414;color:var(--ink)}
html[data-theme=dark] .article-body :is(.tara-diagram,.tara-tool) :is(h2,h3,label,legend){color:var(--ink)}
html[data-theme=dark] .article-body :is(.tara-diagram,.tara-tool) :is(p,.diagram-subtitle,.tool-note){color:var(--muted)}
.article-body .tara-end-cta-art img{background:transparent}
.article-body .tara-end-cta-copy{container-type:inline-size}
.article-body .tara-end-cta h2:has(.cta-line){font-size:clamp(24px,11.5cqw,56px);line-height:1.08;letter-spacing:-.035em;max-width:none}
.article-body .tara-end-cta .cta-line{display:block;white-space:nowrap}
.article-body .tara-end-cta .tara-end-cta-copy>a{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:14px 24px;border:1px solid transparent;border-radius:999px;background:#111216;color:#fff;font-size:16px;font-weight:650;line-height:1.25;text-decoration:none;white-space:nowrap}
.article-body .tara-end-cta .tara-end-cta-copy>a:hover{background:#294f3d;color:#fff}
.article-body .tara-end-cta .tara-end-cta-copy>a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
html[data-theme=dark] .article-body .tara-end-cta .tara-end-cta-copy>a{background:#fff;color:#111216}
html[data-theme=dark] .article-body .tara-end-cta .tara-end-cta-copy>a:hover{background:#c5edcf;color:#111216}
.article-body a[href^="#source-"],.article-body figcaption:has(a[href^="#source-"]){display:none}
.hold-icon{width:28px;height:28px;position:absolute;left:0;top:2px}
[aria-labelledby="hold-windows-title"] .v2-bars .lab{position:relative;padding-left:40px}
/* One quiet brand gradient, with unaltered screenshots inside phone bevels. */
.article-body .tara-account-screens{display:flex;justify-content:center;gap:40px;padding:30px 28px;background:linear-gradient(100deg,rgba(197,237,210,.32),rgba(255,197,200,.32))}
.account-screen{background:transparent;padding:0;text-align:center;width:45%;min-width:0;color:var(--ink)}
.account-tag{display:block;font:700 16px Inter,sans-serif;margin-bottom:18px;text-shadow:none}
.account-phone{width:184px;max-width:100%;margin:auto;padding:6px;background:#080808;border:1px solid #777;border-radius:32px;box-shadow:inset 0 0 0 2px #292929,inset 0 0 0 3px #080808;overflow:hidden}
.account-phone img{display:block;width:100%;height:auto;border-radius:26px;filter:none;box-shadow:none}
.article-body .account-screen p{font-size:14px;color:var(--ink);margin:18px 0 0;text-shadow:none}
.article-body .v2-tflow>li:first-child{background:rgba(197,237,210,.18);color:var(--ink)}
.article-body .v2-tflow>li:nth-child(3){background:rgba(255,197,200,.18);color:var(--ink);--v2-accent:#cf7887;--v2-context:#e8b5be}
.article-body .v2-tflow>li:is(:first-child,:nth-child(3)) .tf-place{color:var(--ink)}
html[data-theme=dark] .article-body .tara-account-screens{background:linear-gradient(100deg,rgba(197,237,210,.10),rgba(255,197,200,.10))}
html[data-theme=dark] .article-body .v2-tflow>li:first-child{background:rgba(197,237,210,.09)}
html[data-theme=dark] .article-body .v2-tflow>li:nth-child(3){background:rgba(255,197,200,.09)}
@media(max-width:500px){.article-body .tara-account-screens{gap:18px;padding:24px 16px}.account-screen{width:50%}.account-tag{font-size:13px}.account-phone{border-radius:26px;padding:5px}.account-phone img{border-radius:21px}}
.article-body .v2-country-rules{display:grid;gap:16px}
.article-body .v2-country-rules>li{display:block;margin:0;padding:22px 24px;border-radius:var(--article-radius);background:var(--v2-surface)}
.article-body .v2-country-rules h3{display:flex;align-items:center;gap:14px;font-size:20px;margin:0 0 12px}
.article-body .v2-country-rules h3 img{box-shadow:none}
.article-body .v2-country-rules p{font-size:16px;line-height:1.6}
