.axis-decoder { box-sizing: border-box; min-width: 0; max-width: 100%; color: #1f2a36; font-family: "IBMPlexSans", Arial, sans-serif; line-height: 1.6; overflow-wrap: anywhere; }
.axis-decoder *, .axis-decode-list * { box-sizing: border-box; }
.axis-decoder { margin: 2rem 0; padding: 1.5rem; border: 1px solid #e4e7ee; border-top: 2px solid #008bb8; border-radius: 8px; background: #fff; }
.axis-decoder h2, .axis-decoder h3 { line-height: 1.3; }
.axis-decoder__heading { margin: 0 0 .75rem; font-size: 1.5rem; }
.axis-decoder__pattern { margin: 0 0 1.25rem; color: #475467; }
.axis-decoder__label { display: block; margin-bottom: .5rem; font-weight: 500; }
.axis-decoder__controls { display: flex; gap: .75rem; }
.axis-decoder__input { flex: 1; min-width: 0; width: 100%; border: 1px solid #d0d5dd; border-radius: 4px; padding: .75rem; color: #1f2a36; background: #fff; font: inherit; }
.axis-decoder__button, .axis-decoder__example { border-radius: 4px; cursor: pointer; font: inherit; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.axis-decoder__button { border: 1px solid #008bb8; padding: .75rem 1.25rem; background: #008bb8; color: #fff; font-weight: 600; }
.axis-decoder__button:hover { background: #006f93; }
.axis-decoder__examples { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.axis-decoder__example { border: 1px solid #d0d5dd; padding: .5rem .75rem; background: #f5f7f9; color: #1f2a36; text-align: left; }
.axis-decoder :focus-visible { outline: 2px solid #006f93; outline-offset: 3px; }
.axis-decoder__status { margin: 1rem 0; }
.axis-decoder__result { min-width: 0; }
.axis-decoder__table-scroll, .axis-decode-page__table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.axis-decoder__table { min-width: 40rem; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9375rem; }
.axis-decoder__caption { text-align: left; margin-bottom: .5rem; color: #475467; }
.axis-decoder__table th, .axis-decoder__table td { border: 1px solid #e4e7ee; padding: .75rem; text-align: left; vertical-align: top; white-space: normal; }
.axis-decoder__table th { background: #eef2f5; font-weight: 600; }
.axis-decoder__table th:nth-child(3) { width: 32%; }
.axis-decoder__table tbody tr:nth-child(even) { background: #f5f7f9; }
.axis-decoder__unknown td:nth-child(3) { color: #8a3900; }
.axis-decoder a { color: #006f93; text-decoration: underline; }
.axis-decoder__catalog ul { padding-left: 1.25rem; }
/* The series template already has the same catalog links, available without JS. */
.axis-decode-page .axis-decoder__catalog { display: none; }
/* Series page = article detail layout (article-page + .article); here only what the article styles lack. */
.axis-decode-page .article .axis-decoder__heading { margin-top: 0; padding-top: 0; }
.axis-decode-page .article .axis-decoder__heading::before { display: none; }
.axis-decode-page .axis-decoder { scroll-margin-top: 6rem; }
.axis-decode-page .article h2 { scroll-margin-top: 6rem; }
.axis-decode-page__jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 4px; background: #0b0f14; color: #fff !important; text-decoration: none !important; }
.axis-decode-page__jump-label { font-weight: 600; }
.axis-decode-page__jump-label::after { content: ' \2193'; color: #5cc8ec; }
.axis-decode-page__jump-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #5cc8ec; overflow-wrap: anywhere; }
.axis-decode-page__jump:hover { background: #16202b; }
.axis-decoder__table td:nth-child(2) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* List of series */
.axis-decode-list { color: #1f2a36; font-family: "IBMPlexSans", Arial, sans-serif; line-height: 1.6; }
.axis-decode-list__lead { max-width: 52rem; margin: 0 0 2rem; color: #475467; font-size: 1.0625rem; }
.axis-decode-list__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; padding: 0; list-style: none; counter-reset: decode-step; }
.axis-decode-list__steps li { position: relative; margin: 0; padding: 1.25rem 1.25rem 1.25rem 4rem; border-top: 2px solid #008bb8; background: #f5f7f9; counter-increment: decode-step; }
.axis-decode-list__steps li::before { content: '0' counter(decode-step); position: absolute; left: 1.25rem; top: 1.15rem; color: #008bb8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.axis-decode-list__steps b { display: block; margin-bottom: .25rem; color: #0b0f14; }
.axis-decode-list__steps span { color: #475467; font-size: .9375rem; }
.axis-decode-list__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.axis-decode-list a.axis-decode-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid #e4e7ee; border-radius: 4px; background: #fff; color: #1f2a36; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.axis-decode-card::before, .axis-decode-card::after { content: ''; position: absolute; width: .75rem; height: .75rem; border-color: #008bb8; border-style: solid; }
.axis-decode-card::before { left: .5rem; top: .5rem; border-width: 1px 0 0 1px; }
.axis-decode-card::after { right: .5rem; bottom: .5rem; border-width: 0 1px 1px 0; }
.axis-decode-list a.axis-decode-card:hover { border-color: #008bb8; box-shadow: 0 .75rem 2rem rgba(11, 15, 20, .08); }
.axis-decode-card__brand { display: flex; align-items: center; gap: .75rem; color: #008bb8; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.axis-decode-card__brand::before { content: ''; width: 2rem; height: 1px; background: #008bb8; }
.axis-decode-card__title { margin: .75rem 0 .5rem; color: #0b0f14; font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.axis-decode-card__lead { color: #475467; }
.axis-decode-card__code { align-self: flex-start; margin-top: 1.25rem; padding: .5rem .75rem; border-radius: 4px; background: #0b0f14; color: #e6f6fb; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9375rem; }
.axis-decode-card__code::before { content: '> '; color: #5cc8ec; }
.axis-decode-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: auto; padding-top: 1.25rem; }
.axis-decode-card__code + .axis-decode-card__foot, .axis-decode-card__lead + .axis-decode-card__foot { margin-top: 1.25rem; border-top: 1px solid #e4e7ee; }
.axis-decode-card__docs { color: #667085; font-size: .875rem; }
.axis-decode-card__go { color: #008bb8; font-weight: 600; }
.axis-decode-card__go::after { content: ' \2192'; }
.axis-decode-list__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.5rem 2rem; border-left: 2px solid #008bb8; border-radius: 4px; background: #f5f7f9; }
.axis-decode-list__ask b { display: block; margin-bottom: .25rem; color: #0b0f14; font-size: 1.125rem; }
.axis-decode-list__ask span { color: #475467; }
.axis-decode-list__ask .btn { flex-shrink: 0; text-decoration: none; color: #fff; }
@media (max-width: 61.99em) {
  .axis-decode-list__steps, .axis-decode-list__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40em) {
  .axis-decoder { padding: 1rem; }
  .axis-decode-list a.axis-decode-card { padding: 1.5rem 1.25rem; }
  .axis-decode-list__ask { padding: 1.25rem; }
  .axis-decode-list__ask .btn { width: 100%; }
  .axis-decoder__controls { flex-direction: column; }
  .axis-decoder__button { width: 100%; }
  /* узкий экран: строка результата — карточка «позиция / значение / смысл / источник» */
  .axis-decoder__table { min-width: 0; table-layout: auto; }
  .axis-decoder__table thead { display: none; }
  .axis-decoder__table caption { display: block; width: auto; text-align: left; }
  .axis-decoder__table, .axis-decoder__table tbody, .axis-decoder__table tr, .axis-decoder__table td { display: block; width: auto; }
  .axis-decoder__table tr { border: 1px solid #e4e7ee; border-radius: 4px; margin-bottom: .5rem; }
  .axis-decoder__table td { border: 0; padding: .25rem .75rem; }
  .article-page .article .axis-decoder__table td { border: 0; background: none; }
  .axis-decoder__table td:first-child { padding-top: .75rem; font-weight: 600; }
  .axis-decoder__table td:last-child { padding-bottom: .75rem; font-size: .875rem; }
}
