:root{--primary: #1e3a5f;--primary-dark: #152a45;--primary-soft: #eef3f8;--accent: #b45309;--border: #e4ddd2;--surface: #ffffff;--surface-muted: #f7f5f1;--shadow-soft: 0 1px 3px rgba(28,36,48,.06),0 1px 2px rgba(28,36,48,.04);--text-main: #1c2430;--text-muted: #5c564e;--warn: #b45309;--paper: #f4f1ea;--radius: 14px;--radius-sm: 9px;--seg-0: #bfdbfe;--seg-1: #60a5fa;--seg-2: #2563eb;--seg-3: #1e3a5f;--seg-4: #b45309;--seg-5: #9a3412;--seg-6: #7f1d1d;}
.txc-card [hidden]{display: none !important;}
.txc-card{background: var(--surface);border: 1px solid var(--border);border-top: 4px solid var(--primary);border-radius: var(--radius);box-shadow: var(--shadow-soft);padding: 1.25rem 1.5rem 1.5rem;margin: .5rem 0 2.5rem;}
.txc-card .author-meta{display: flex;flex-wrap: wrap;justify-content: space-between;align-items: center;gap: .4rem 1rem;padding-bottom: .9rem;margin-bottom: 1rem;border-bottom: 1px solid var(--border);font-size: .85rem;color: var(--text-muted);}
.txc-card .meta-updated{font-weight: 600;white-space: nowrap;}
.txc-card .author-link{color: var(--primary);font-weight: 600;text-decoration: none;}
.txc-card .author-link:hover,.txc-card .author-link:focus-visible{text-decoration: underline;}
.txc-types{display: flex;flex-wrap: wrap;gap: .4rem;margin: 0 0 .75rem;}
.txc-type{display: inline-flex;align-items: center;gap: .4rem;border: 1px solid var(--border);background: var(--surface-muted);color: var(--text-main);font-weight: 600;font-size: .84rem;padding: .45rem .7rem;border-radius: 999px;cursor: pointer;}
.txc-type span{font-variant-numeric: tabular-nums;font-size: .72rem;font-weight: 700;color: var(--text-muted);}
.txc-type:hover{border-color: var(--primary);color: var(--primary-dark);}
.txc-type.active{background: var(--primary);border-color: var(--primary);color: #fff;}
.txc-type.active span{color: #d6e2f0;}
.txc-type:focus-visible{outline: 2px solid var(--primary);outline-offset: 2px;}
.txc-blurb{margin: 0 0 1.1rem;font-size: .92rem;color: var(--text-muted);max-width: 46rem;}
.txc-body{display: grid;grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);gap: 1.5rem;align-items: start;}
.txc-field{margin-bottom: .9rem;}
.txc-field label,.txc-check,.txc-radio{font-weight: 600;font-size: .9rem;color: var(--text-main);}
.txc-field label{display: block;margin-bottom: .3rem;}
.txc-field label em{font-style: normal;font-weight: 500;font-size: .75rem;color: var(--text-muted);margin-left: .25rem;}
.txc-field input[type=number],.txc-field select{width: 100%;padding: .55rem .7rem;border: 1px solid var(--border);border-radius: var(--radius-sm);font-size: 1rem;color: var(--text-main);background: var(--surface);font-variant-numeric: tabular-nums;}
.txc-field input[type=number]:focus,.txc-field select:focus{outline: none;border-color: var(--primary);box-shadow: 0 0 0 3px rgba(30,58,95,.15);}
.txc-field small{display: block;margin-top: .28rem;font-size: .78rem;color: var(--text-muted);line-height: 1.4;}
.txc-grid2{display: grid;grid-template-columns: 1fr 1fr;gap: .75rem;}
.txc-grid3{display: grid;grid-template-columns: 1fr 1fr 1fr;gap: .75rem;}
.txc-checks,.txc-radios{display: flex;flex-wrap: wrap;gap: .45rem .9rem;margin: 0 0 .9rem;}
.txc-check,.txc-radio{display: flex;align-items: center;gap: .4rem;font-weight: 600;margin: 0;}
.txc-check input,.txc-radio input{accent-color: var(--primary);}
.txc-actions{display: flex;flex-wrap: wrap;gap: .5rem;margin-top: .25rem;}
.txc-btn{border: 1px solid var(--primary);background: var(--primary);color: #fff;font-weight: 600;font-size: .88rem;padding: .5rem .95rem;border-radius: var(--radius-sm);cursor: pointer;}
.txc-btn:hover{background: var(--primary-dark);}
.txc-btn-ghost{background: var(--surface);color: var(--primary-dark);border-color: var(--border);}
.txc-btn-ghost:hover{background: var(--primary-soft);}
.txc-btn:focus-visible{outline: 2px solid var(--primary);outline-offset: 2px;}
.txc-results{background: var(--paper);border: 1px solid var(--border);border-radius: var(--radius);padding: 1.1rem 1.15rem 1.2rem;}
.txc-currency{display: flex;align-items: center;justify-content: space-between;gap: .5rem;margin: 0 0 .85rem;font-size: .75rem;font-weight: 700;letter-spacing: .04em;text-transform: uppercase;color: var(--text-muted);}
.txc-currency select{text-transform: none;letter-spacing: 0;font-weight: 600;font-size: .88rem;padding: .35rem .5rem;border: 1px solid var(--border);border-radius: 7px;background: var(--surface);color: var(--text-main);}
.txc-currency select:disabled{opacity: .65;cursor: not-allowed;}
.txc-currency-note{margin: -.45rem 0 .8rem;font-size: .78rem;color: var(--text-muted);}
.txc-headline{display: flex;flex-direction: column;gap: .15rem;padding-bottom: .85rem;border-bottom: 1px dashed var(--border);}
.txc-headline-label{font-size: .75rem;font-weight: 700;letter-spacing: .05em;text-transform: uppercase;color: var(--text-muted);}
.txc-headline-value{font-size: 2.4rem;font-weight: 700;line-height: 1.1;color: var(--primary-dark);font-variant-numeric: tabular-nums;overflow-wrap: anywhere;}
.txc-headline-value.is-warn{color: var(--warn);}
.txc-headline-sub{font-size: .9rem;color: var(--text-muted);line-height: 1.4;}
.txc-stats{display: grid;grid-template-columns: 1fr 1fr;gap: .55rem .9rem;margin: .9rem 0 .2rem;}
.txc-stat{margin: 0;}
.txc-stat dt{font-size: .75rem;font-weight: 600;color: var(--text-muted);}
.txc-stat dd{margin: 0;font-size: 1rem;font-weight: 700;color: var(--text-main);font-variant-numeric: tabular-nums;}
.txc-table-wrap{overflow-x: auto;margin: .9rem 0 0;border: 1px solid var(--border);border-radius: var(--radius-sm);background: var(--surface);}
.txc-table{width: 100%;border-collapse: collapse;font-size: .84rem;font-variant-numeric: tabular-nums;}
.txc-table caption{caption-side: top;text-align: left;padding: .5rem .7rem;font-size: .75rem;font-weight: 700;color: var(--text-muted);}
.txc-table th,.txc-table td{padding: .4rem .7rem;text-align: right;border-top: 1px solid var(--border);}
.txc-table th:first-child,.txc-table td:first-child{text-align: left;}
.txc-table thead th{background: var(--surface-muted);font-size: .75rem;}
.txc-split{margin-top: .85rem;}
.txc-split-title{margin: 0 0 .4rem;font-size: .78rem;font-weight: 700;color: var(--text-main);}
.txc-bar{display: flex;height: 14px;border-radius: 999px;overflow: hidden;background: var(--border);}
.txc-bar span{display: block;height: 100%;}
.txc-seg-0{background: var(--seg-0);}
.txc-seg-1{background: var(--seg-1);}
.txc-seg-2{background: var(--seg-2);}
.txc-seg-3{background: var(--seg-3);}
.txc-seg-4{background: var(--seg-4);}
.txc-seg-5{background: var(--seg-5);}
.txc-seg-6{background: var(--seg-6);}
.txc-legend{list-style: none;display: flex;flex-wrap: wrap;gap: .3rem .8rem;padding: 0;margin: .45rem 0 0;font-size: .78rem;color: var(--text-muted);}
.txc-legend b{color: var(--text-main);}
.txc-dot{display: inline-block;width: 9px;height: 9px;border-radius: 2px;margin-right: .3rem;vertical-align: -1px;}
.txc-note{margin: .9rem 0 0;padding: .7rem .8rem;border-left: 3px solid var(--accent);background: #fff7ed;border-radius: 0 var(--radius-sm) var(--radius-sm) 0;font-size: .84rem;line-height: 1.5;color: var(--text-main);}
.txc-article{margin: 0 auto 2rem;color: var(--text-main);line-height: 1.7;}
.txc-article section{margin-bottom: 2.6rem;}
.txc-article h2{font-size: 1.5rem;font-weight: 700;line-height: 1.25;margin: 0 0 .8rem;color: var(--text-main);}
.txc-article h3{font-size: 1.02rem;font-weight: 700;margin: 0 0 .35rem;}
.txc-article p{margin: 0 0 .85rem;}
.txc-article a{color: var(--primary-dark);font-weight: 600;}
.txc-article ul{margin: 0 0 1rem;padding-left: 1.15rem;}
.txc-article li{margin-bottom: .45rem;}
.txc-callout{margin: 0 0 1rem;padding: .85rem 1rem;background: #fff7ed;border-left: 4px solid var(--accent);border-radius: 0 var(--radius-sm) var(--radius-sm) 0;}
.txc-callout p{margin: 0;}
.txc-formula{font-family: ui-monospace,SFMono-Regular,Consolas,monospace;font-size: .88rem;background: var(--surface-muted);border: 1px solid var(--border);border-radius: var(--radius-sm);padding: .7rem .85rem;}
.txc-table-doc{overflow-x: auto;margin: 0 0 1rem;border: 1px solid var(--border);border-radius: var(--radius-sm);}
.txc-doc{width: 100%;border-collapse: collapse;font-size: .92rem;font-variant-numeric: tabular-nums;}
.txc-doc caption{caption-side: top;text-align: left;padding: .55rem .8rem;font-size: .8rem;color: var(--text-muted);}
.txc-doc th,.txc-doc td{padding: .5rem .8rem;text-align: left;border-top: 1px solid var(--border);}
.txc-doc thead th{background: var(--surface-muted);font-size: .78rem;}
.txc-doc td:not(:first-child),.txc-doc th:not(:first-child){text-align: right;}
.txc-bases td:nth-child(2),.txc-bases td:nth-child(3),.txc-bases th:nth-child(2),.txc-bases th:nth-child(3){text-align: left;}
.txc-pair{display: grid;grid-template-columns: 1fr 1fr;gap: .75rem;margin: 0 0 1rem;}
.txc-pair div{border: 1px solid var(--border);border-radius: var(--radius-sm);padding: .85rem 1rem;background: var(--surface);}
.txc-pair p{margin: 0;font-size: .92rem;}
.txc-omit{background: var(--surface-muted);border: 1px solid var(--border);border-radius: var(--radius);padding: 1.1rem 1.2rem .4rem;}
@media (max-width:991px){.txc-body{grid-template-columns: 1fr;}.txc-pair{grid-template-columns: 1fr;}}
@media (max-width:767px){.hero-text h1{font-size: clamp(1.75rem,5vw,2.5rem);}.hero-subtitle{font-size: clamp(1rem,3vw,1.125rem);}}
@media (max-width:575px){.txc-card{padding: 1rem;}.txc-grid2,.txc-grid3,.txc-stats{grid-template-columns: 1fr;}.txc-headline-value{font-size: 2rem;}.txc-article h2{font-size: 1.28rem;}}
