
/* Converter247 currency: compact automatic converter and accessible picker. */
.currency-page{padding-bottom:4rem}
.currency-page h1{margin:.4rem 0 .7rem}
.currency-page h2{font-size:1.4rem;line-height:1.3;margin:0 0 .9rem}
.currency-intro{padding:1.5rem 0 2rem;max-width:56rem}
.currency-intro>p:last-child{font-size:1.1rem;color:var(--c-text-secondary)}
.currency-eyebrow{font-size:.8rem;font-weight:750;letter-spacing:.09em;color:var(--c-primary-dark);margin:0 0 .7rem}
.currency-workspace{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);padding:var(--sp-5);min-width:0}
.currency-conversion-grid{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:var(--sp-3);align-items:center}
.currency-component{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;padding:var(--sp-4);border:1px solid #b8c3da;border-radius:var(--r-md)}
.currency-component.currency-output{background:var(--c-primary-light);border-color:#c4cbed}
.currency-page label{display:block;font-size:.875rem;font-weight:650;margin-bottom:.4rem}
.currency-component>label{grid-column:1;grid-row:1;margin:0;padding-right:.5rem}
.currency-value-row{display:contents}
.currency-value-row>.currency-picker-trigger{grid-column:2;grid-row:1}
.currency-value-row>input,.currency-value-row>output{grid-column:1 / -1;grid-row:2;margin-top:.3rem}
.currency-page input:not([type=checkbox]):not([type=range]){width:100%;min-height:44px;border:1px solid #a5b4cf;border-radius:8px;background:#fff;color:var(--c-text);padding:.65rem .75rem;font:inherit;min-width:0}
.currency-page #currency-amount{border:0;padding:.3rem 0;font-size:clamp(1.4rem,2.5vw,2rem);font-weight:700;background:transparent;font-variant-numeric:tabular-nums;line-height:1.35}
.currency-page #currency-result{display:block;min-height:44px;font-size:clamp(1.4rem,2.5vw,2rem);font-weight:750;line-height:1.35;padding:.3rem 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;min-width:0}
.currency-selected-name{grid-column:1 / -1;font-size:.875rem;line-height:1.4;color:var(--c-text-secondary);margin:.35rem 0 0;overflow-wrap:anywhere}
.currency-page button{font:inherit;cursor:pointer;min-height:44px;border-radius:8px;padding:.6rem .8rem;font-weight:650;transition:background .15s,border-color .15s}
.currency-page button:disabled{opacity:.5;cursor:default}
.currency-page .currency-picker-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid #a5b4cf;background:white;color:var(--c-text);min-width:84px;padding:.5rem .6rem;white-space:nowrap}
.currency-picker-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.currency-picker-trigger:hover,.currency-picker-trigger[aria-expanded=true]{border-color:var(--c-primary-dark);background:var(--c-primary-light)}
.currency-swap{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--c-border);background:var(--c-primary-light);color:var(--c-primary-dark);padding:.6rem!important}
.currency-swap svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.currency-page .currency-help{font-size:.875rem;line-height:1.5;color:var(--c-text-secondary);margin:.4rem 0 .6rem}
.currency-page #currency-amount-help{margin:.65rem 0 .2rem}
.currency-error{color:#a01735;font-size:.875rem;margin:.3rem 0;line-height:1.5}
.currency-error:empty{display:none}
.currency-reference{padding-top:var(--sp-2)}
.currency-reference #currency-rate{font-weight:650;margin:0 0 .4rem;overflow-wrap:anywhere}
.currency-reference #currency-status{font-size:.875rem;line-height:1.5;margin:.25rem 0 .6rem;min-height:1.5em}
.currency-reference #currency-status[data-state=error]{color:#a01735}
.currency-reference #currency-status[data-state=stale]{color:#7c3b0b}
.currency-actions{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:.6rem 0}
.currency-button{border:1px solid #b8c3da;background:white;color:var(--c-text)}
.currency-button:hover{background:var(--c-surface-alt)}
.currency-primary{border:1px solid var(--c-primary-dark);background:var(--c-primary-dark);color:#fff}
.currency-primary:hover{background:#3730a3}
.currency-secondary-actions button{font-size:.875rem;padding:.5rem .7rem}
.currency-page #currency-action-status:empty{display:none}
.currency-dates{display:flex;gap:.4rem 1.2rem;flex-wrap:wrap;font-size:.8125rem;line-height:1.5;color:var(--c-text-secondary);margin:.6rem 0}
.currency-dates p{margin:0}
.currency-options{border-top:1px solid var(--c-border);margin-top:var(--sp-3);padding-top:var(--sp-3)}
.currency-date-row{display:flex;gap:var(--sp-3);align-items:end;max-width:27rem}
.currency-date-row>div{flex:1;min-width:0}
.currency-remember{display:flex!important;align-items:start;gap:.55rem;font-size:.875rem;line-height:1.5;margin:.7rem 0}
.currency-remember input{flex:0 0 auto;margin-top:.25rem;width:18px;height:18px;accent-color:var(--c-primary)}
.currency-preferences{display:flex;gap:var(--sp-3);align-items:center;justify-content:space-between}
.currency-preferences .currency-help{margin:0;flex:1}
.currency-preferences button{font-size:.8125rem;flex-shrink:0;padding:.5rem .6rem}
.currency-disclaimer{font-size:.875rem;line-height:1.6;margin:.85rem 0 .3rem}
.currency-page details{font-size:.9rem}
.currency-page summary{cursor:pointer;font-weight:650;padding:.65rem 0;min-height:44px}
.currency-page details p{line-height:1.6}
.currency-picker{position:fixed;inset:auto;margin:0;width:min(27rem,calc(100vw - 32px));max-width:none;max-height:min(35rem,calc(var(--currency-visible-height,100dvh) - 24px));padding:0;border:1px solid #b8c3da;border-radius:var(--r-md);color:var(--c-text);background:white;box-shadow:var(--shadow-lg);overflow:hidden;overscroll-behavior:contain}
.currency-picker[open]{display:flex;flex-direction:column}
.currency-picker::backdrop{background:rgba(30,27,75,.14)}
.currency-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4) 0}
.currency-picker-heading h2{font-size:1.15rem;margin:0}
.currency-picker-heading button{font-size:.875rem}
.currency-picker-search{padding:var(--sp-3) var(--sp-4) var(--sp-2);flex-shrink:0}
.currency-picker-search input{font-size:1rem!important}
.currency-picker-search .currency-help{font-size:.8125rem;margin:.35rem 0 0}
.currency-picker-results{overflow-y:auto;overscroll-behavior:contain;min-height:0;max-height:22rem;padding:0 var(--sp-2) var(--sp-2);scroll-padding:.5rem}
.currency-picker-group-title{padding:.65rem .65rem .4rem;font-size:.8125rem;font-weight:700;color:var(--c-text-secondary);margin:0}
.currency-page .currency-picker-option{display:grid;grid-template-columns:3.4rem minmax(0,1fr) 1.2rem;align-items:center;gap:.4rem;width:100%;text-align:left;border:1px solid transparent;background:white;color:var(--c-text);font-size:.875rem;min-height:48px;padding:.6rem;border-radius:6px;font-weight:400}
.currency-picker-option strong{font-size:.94rem}
.currency-picker-option span{overflow-wrap:anywhere;line-height:1.4}
.currency-picker-option:hover,.currency-picker-option.is-active{background:var(--c-primary-light);border-color:var(--c-primary)}
.currency-picker-option[aria-selected=true] strong{color:var(--c-primary-dark)}
.currency-picker-empty{padding:var(--sp-4);font-size:.94rem;line-height:1.6}
.currency-suggestions,.currency-history,.currency-tables-section{margin-top:2.5rem;padding-top:1.8rem;border-top:1px solid var(--c-border)}.currency-pairs{display:flex;flex-wrap:wrap;gap:.55rem}.currency-pairs button{background:#fff;border:1px solid var(--c-border);color:var(--c-primary-dark)}.currency-section-heading{display:flex;justify-content:space-between;gap:1rem;align-items:start}.currency-section-heading p{font-size:.94rem;color:var(--c-text-secondary);margin-top:0}.currency-periods{display:flex;gap:.4rem;flex-wrap:wrap;border:0;padding:0;margin:1rem 0}.currency-periods legend{font-size:.875rem;margin-bottom:.5rem}.currency-periods button{background:white;border:1px solid var(--c-border);font-size:.875rem}.currency-periods button[aria-pressed=true]{border-color:var(--c-primary-dark);background:var(--c-primary-light);color:var(--c-primary-dark)}.currency-chart{height:280px;background:#fff;position:relative;border-radius:8px}.currency-chart:empty{background:repeating-linear-gradient(to top,transparent 0,transparent 68px,var(--c-border) 69px,transparent 70px)}.currency-chart svg{display:block;width:100%;height:280px;overflow:visible}.currency-chart text{font-size:12px;fill:var(--c-text-secondary)}.currency-chart .currency-chart-line{stroke:var(--c-primary-dark);stroke-width:2;fill:none;vector-effect:non-scaling-stroke}.currency-chart .currency-grid{stroke:#dce3f0;stroke-width:1;shape-rendering:crispEdges}.currency-chart .currency-selected{fill:var(--c-primary-dark);stroke:#fff;stroke-width:2}.currency-page #currency-point{display:block;width:100%;min-height:44px;accent-color:var(--c-primary-dark)}.currency-page #currency-point-label{font-size:.94rem;font-weight:650;display:block;min-height:1.5rem}.currency-statistics{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:1.4rem 0}.currency-statistics div{border-left:2px solid var(--c-border);padding-left:.9rem;min-width:0}.currency-statistics dt{font-size:.875rem;color:var(--c-text-secondary)}.currency-statistics dd{font-size:1.15rem;font-weight:700;margin:.4rem 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.currency-table-scroll{overflow:auto;max-height:28rem}.currency-tables{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.currency-table{width:100%;border-collapse:collapse;font-size:.94rem;font-variant-numeric:tabular-nums}.currency-table caption{text-align:left;font-weight:700;padding:.6rem 0}.currency-table th,.currency-table td{text-align:right;padding:.7rem .85rem;border-bottom:1px solid var(--c-border);white-space:nowrap}.currency-table th:first-child,.currency-table td:first-child{text-align:left}.currency-table th{background:var(--c-surface-alt);position:sticky;top:0}.currency-editorial{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem 3.5rem;margin-top:3.5rem;padding-top:2rem;border-top:1px solid var(--c-border)}.currency-editorial p{color:var(--c-text-secondary);font-size:1rem;line-height:1.8}.currency-page :focus-visible{outline:3px solid #4f46e5;outline-offset:3px}.currency-notice{padding:1rem;border:1px solid #b45309;background:#fffbeb}.currency-sr{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.currency-page [hidden]{display:none!important}
@media(max-width:850px){.currency-editorial{gap:2rem}.currency-statistics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){
 .currency-intro{padding:1rem 0 1.2rem}
 .currency-workspace{padding:var(--sp-3)}
 .currency-conversion-grid{grid-template-columns:minmax(0,1fr);gap:var(--sp-2)}
 .currency-component{padding:var(--sp-3)}
 .currency-swap{justify-self:center;transform:rotate(90deg)}
 .currency-page #currency-amount,.currency-page #currency-result{font-size:1.5rem}
 .currency-preferences{align-items:start;flex-direction:column;gap:.5rem}
 .currency-tables,.currency-editorial{grid-template-columns:1fr}
 .currency-section-heading{flex-direction:column}
 .currency-editorial{gap:1.5rem}
 .currency-chart text{font-size:12px}
 .currency-chart,.currency-chart svg{height:250px}
 .currency-page button{font-size:.875rem}
 .currency-statistics dd{font-size:1rem}
 .currency-picker{inset:auto 0 var(--currency-keyboard-inset,0px);margin:0 auto;width:100%;max-height:calc(var(--currency-visible-height,100dvh) - 16px);border-radius:18px 18px 0 0}
 .currency-picker-results{max-height:24rem}
}
@media(prefers-reduced-motion:reduce){.currency-page button{transition:none}}
