/* EP03 companion page: asset-by-asset map, trust lists and the Texas box.
   Uses the tokens from main.css only. No external requests. */
.am-section > p { max-width: var(--measure); }
.am-table-wrap { overflow-x: auto; max-width: 100%; margin: 1.25rem 0 .75rem; border-radius: var(--radius-sm); }
.am-table-wrap:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.am-table { width: 100%; min-width: 46rem; border-collapse: collapse; background: var(--paper-raised); font-size: .9rem; line-height: 1.45; }
.am-table caption { text-align: left; caption-side: top; padding: 0 0 .6rem; color: var(--ink-soft); font-size: .92rem; }
.am-table caption .kicker { display: block; margin-bottom: .2rem; }
.am-table th, .am-table td { border: 1px solid var(--paper-line); padding: .7rem .75rem; vertical-align: top; text-align: left; }
.am-table thead th { font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--paper-deep); }
.am-table tbody th { width: 17%; font-weight: 400; background: var(--paper); }
.am-table tbody tr:target th, .am-table tbody tr:target td { background: var(--evergreen-tint); }
.am-table td[data-col="law"] { width: 15%; }
.am-num { display: block; font: 600 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--brass-text); }
.am-name { display: block; font: 600 1rem/1.3 var(--serif); color: var(--ink); margin: .15rem 0 .35rem; }
.am-chip { display: inline-block; font: 500 .7rem/1.4 var(--mono); color: var(--slate); background: var(--slate-tint); padding: .05rem .4rem; border-radius: 4px; }
.am-result { display: block; color: var(--ink); margin-bottom: .3rem; }
.am-rule { display: block; color: var(--ink-soft); }
.am-law { display: block; font-size: .74rem; }
.am-note { background: var(--clay-tint); border-left: 4px solid var(--clay); border-radius: var(--radius-sm); padding: .8rem 1rem; max-width: 48rem; }
.am-caveat { max-width: var(--measure); font-size: .92rem; color: var(--ink-soft); }

/* Explorer (only shown when JavaScript runs; the table is the no-JS version) */
.am-explorer { background: var(--paper-raised); border: 1px solid var(--paper-line); border-left: 4px solid var(--evergreen); border-radius: var(--radius-sm); padding: 1rem 1.2rem .6rem; margin: 1.25rem 0; }
.am-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.am-picker legend { padding: 0; margin-bottom: .55rem; color: var(--evergreen); }
.am-options { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.am-options label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; border: 1px solid var(--paper-line); background: var(--paper); border-radius: 999px; padding: .35rem .8rem; font-size: .86rem; color: var(--ink); }
.am-options input { accent-color: var(--evergreen); margin: 0; }
.am-options label:has(input:checked) { border-color: var(--evergreen); background: var(--evergreen-tint); color: var(--evergreen-deep); }
.am-options label:has(input:focus-visible) { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.am-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.am-tray { border: 1px solid var(--paper-line); border-radius: var(--radius-sm); background: var(--paper); padding: .75rem .8rem; }
.am-tray h3 { font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 .55rem; }
.am-tray--out { border-top: 4px solid var(--evergreen); }
.am-tray--out h3 { color: var(--evergreen-deep); }
.am-tray--probate { border-top: 4px solid var(--clay); }
.am-tray--probate h3 { color: var(--clay); }
.am-tray--depends { border-top: 4px solid var(--brass); }
.am-cards { display: grid; gap: .6rem; }
.am-card { background: var(--paper-raised); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); padding: .6rem .7rem; font-size: .86rem; }
.am-card h4 { font: 600 .95rem/1.3 var(--serif); margin: 0 0 .3rem; }
.am-card .am-result { font-size: .86rem; }
.am-empty { margin: 0; }
.am-foot { margin: .7rem 0 0; }
.am-steps { padding-left: 1.3rem; }
.am-steps li { margin-bottom: .6rem; }

/* Texas box */
.state-box { background: var(--slate-tint); border-left: 4px solid var(--slate); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; max-width: 48rem; }
.state-box .kicker { color: var(--slate); margin-bottom: .4rem; }
.state-box p:last-child { margin-bottom: 0; }

/* Trust math: two columns */
.tm-section > p { max-width: var(--measure); }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.tm-col { background: var(--paper-raised); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.tm-col h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.tm-col--adds { border-top: 4px solid var(--evergreen); }
.tm-col--costs { border-top: 4px solid var(--clay); }
.tm-list { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.tm-list li { margin-bottom: .65rem; }
.tm-list li:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .am-board, .tm-grid { grid-template-columns: 1fr; }
}
@media print {
  .am-explorer { display: none !important; }
  .am-table { min-width: 0; font-size: .8rem; }
  .am-table-wrap { overflow: visible; }
  .am-note, .state-box { background: #fff !important; }
}
.episode-main { min-width: 0; }
