body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font-text); }
.ed-bar, .ed-article { box-sizing: border-box; max-width: 58rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.ed-mast { border-bottom: 1px solid var(--line-control); }
.ed-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-block: .8rem; }
.ed-brand { color: inherit; font: 750 1.65rem/1.2 var(--font-head); letter-spacing: -.055em; text-decoration: none; }
.ed-switch { position: relative; max-width: 100%; }
.ed-switch summary, .ed-chart summary { cursor: pointer; padding-block: .4rem; }
.ed-switch nav { position: absolute; z-index: 10; inset-inline-end: 0; min-width: min(23rem, 85vw); max-height: 65vh; overflow: auto; background: var(--raised); border: 1px solid var(--line-control); border-radius: .5rem; padding: .75rem; box-shadow: 0 .6rem 2rem #0008; font-family: system-ui, sans-serif; }
.ed-switch ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ed-switch span[aria-disabled] { display: block; padding: .35rem .6rem; color: var(--muted); }
.ed-switch a { display: block; color: var(--ink); padding: .35rem .6rem; text-decoration: none; }
.ed-switch a:hover, .ed-switch a[aria-current] { text-decoration: underline; }
.ed-article { padding-block: clamp(1.6rem, 6vw, 4rem) 5rem; overflow-wrap: anywhere; }
.ed-article h1, .ed-article h2, .ed-article h3 { color: inherit; text-wrap: pretty; line-height: 1.17; }
.ed-article h1 { margin-block: .55rem 1.1rem; font-size: clamp(2rem, 5vw, 3.65rem); letter-spacing: -.035em; }
.ed-article h2 { margin-block: 2.5rem 1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ed-article h3 { margin-block: 1.6rem .5rem; font-size: 1.2rem; }
.ed-status, .ed-meta { color: var(--muted); margin: 0; font-size: .94rem; }
.ed-status { display: inline-block; border-inline-start: .2rem solid var(--line-control); padding-inline-start: .55rem; }
.ed-article header { margin-block-end: 1.75rem; }
.ed-article p, .ed-article li { max-width: 78ch; }
.ed-article pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ed-article article > p:first-child { font-size: 1.13rem; }
.ed-article a { text-decoration: underline; text-underline-offset: .14em; color: inherit; }
.ed-table { max-width: 100%; overflow-x: auto; margin-block: 1.2rem; }
.ed-table:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ed-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ed-table th, .ed-table td { border: 0; border-bottom: 1px solid var(--line); padding: .55rem .65rem; text-align: start; }
.ed-table th { background: var(--raised); }
.ed-table td { min-width: 4rem; }
.ed-table .ed-number-link { display: inline-block; min-inline-size: 24px; min-block-size: 24px; text-align: center; }
.ed-table tbody tr:nth-child(even) { background: var(--panel); }
.ed-chart { margin-block: 1.6rem; border-block: 1px solid var(--line-control); padding-block: .65rem; }
.ed-chart summary { font-weight: 600; }
.ed-chart img { display: block; margin: 1rem auto; max-width: 100%; width: 35rem; height: auto; }
.ed-chart p { margin: .5rem 0; color: var(--muted); }
@media (max-width: 32rem) { .ed-switch nav { position: fixed; inset-inline: 1rem; } }

.ed-article article img { max-width: 100%; height: auto; }
.ed-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 52rem; margin: 0 auto; padding: 1rem; border-top: 1px solid var(--line-control); }
.ed-footer .ed-switch nav { inset-block-end: 100%; }

.ed-search { display: flex; gap: .4rem; min-width: 0; align-items: center; }
.ed-search input { min-width: 0; width: 14rem; max-width: 100%; min-height: 44px; padding: .45rem .7rem; font: inherit; }
.ed-search .tk-btn { min-height: 44px; }
.ed-search-results [hidden] { display: none; }
@media (max-width: 620px) {
  .ed-search { flex-basis: 100%; }
  .ed-search input { flex: 1; width: auto; }
}
