.feature-browser {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  border: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
}

.tab-list {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-blue);
}

.tab-button {
  width: 100%;
  min-height: 50px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: var(--stroke-medium) solid var(--ink-line);
  border-radius: var(--radius-round);
  color: var(--text-main);
  background: var(--paper-bright);
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--brand-red-deep);
  background: var(--paper);
}

.tab-button[aria-selected="true"],
.tab-button.active {
  color: var(--paper-bright);
  background: var(--brand-red);
}

.tab-panels {
  min-width: 0;
}

.tab-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 46px);
}

.tab-panel[hidden] {
  display: none;
}

.tab-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
}

.tab-detail-grid > * {
  min-width: 0;
}

.toc {
  position: relative;
  max-width: 100%;
  margin-bottom: 38px;
  padding: 12px;
  overflow-x: auto;
  border-top: var(--stroke-medium) solid var(--ink-line);
  border-bottom: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-blue);
  -webkit-overflow-scrolling: touch;
}

.toc-list {
  min-width: max-content;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  list-style: none;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border: var(--stroke-thin) solid var(--ink-line);
  color: var(--text-main);
  background: var(--paper-bright);
  font-weight: 800;
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--paper-bright);
  background: var(--brand-red);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
}

.faq-item summary {
  min-height: 58px;
  padding: 15px 52px 15px 18px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: var(--stroke-thin) solid var(--ink-line);
  border-radius: var(--radius-round);
  background: var(--paper-blue);
  content: "+";
  font-family: var(--font-mono);
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary {
  color: var(--paper-bright);
  background: var(--brand-red);
}

.faq-item[open] summary::after {
  color: var(--text-main);
  background: var(--paper-bright);
  content: "−";
}

.faq-answer {
  padding: 18px;
  border-top: var(--stroke-medium) solid var(--ink-line);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.glossary-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
}

.glossary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: var(--paper-blue);
  content: "";
}

.glossary-term {
  margin-bottom: 8px;
  padding-left: 4px;
  color: var(--brand-red-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.glossary-code {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.download-card {
  position: relative;
  min-width: 0;
  padding: 25px;
  display: grid;
  gap: 18px;
  border: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
}

.download-card.featured {
  border-width: var(--stroke-heavy);
}

.download-card.archived {
  background:
    repeating-linear-gradient(-45deg, var(--ink-dust) 0 6px, var(--transparent) 6px 12px),
    var(--paper-bright);
}

.download-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.download-card-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.download-card-title {
  min-width: 0;
  flex: 1 1 auto;
}

.download-card-title h3 {
  margin-bottom: 5px;
}

.download-card-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-actions .button {
  min-height: 46px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.version-slot[hidden],
[data-cdnver][hidden] {
  display: none;
}

.badge-pick {
  color: var(--paper-bright);
  background: var(--brand-red);
}

.badge-recommended {
  color: var(--text-main);
  background: var(--paper-blue);
}

.badge-retired {
  color: var(--paper-bright);
  background: var(--text-soft);
}

.post-card {
  position: relative;
  min-width: 0;
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-top: var(--stroke-heavy) solid var(--brand-red);
  border-right: var(--stroke-medium) solid var(--ink-line);
  border-bottom: var(--stroke-medium) solid var(--ink-line);
  border-left: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
}

.post-card::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 18px;
  height: 18px;
  border: var(--stroke-thin) solid var(--brand-red);
  border-radius: var(--radius-round);
  content: "";
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.post-card h3 {
  margin: 0;
}

.post-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--brand-red-deep);
}

.post-card p {
  margin: 0;
  color: var(--text-soft);
}

.post-link {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  font-weight: 900;
}

.callout {
  position: relative;
  margin: 26px 0;
  padding: 20px 22px 20px 28px;
  overflow-wrap: anywhere;
  border-top: var(--stroke-medium) solid var(--ink-line);
  border-right: var(--stroke-medium) solid var(--ink-line);
  border-bottom: var(--stroke-medium) solid var(--ink-line);
  border-left: 9px solid var(--brand-red);
  background: var(--paper-blue);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
}

.callout-warning {
  border-left-color: var(--state-warning);
  background: var(--paper-bright);
}

.callout-success {
  border-left-color: var(--state-success);
}

.article-download-card {
  margin-top: 54px;
  padding: clamp(23px, 4vw, 38px);
  border: var(--stroke-heavy) double var(--brand-red);
  background:
    radial-gradient(circle at 92% 18%, var(--red-wash) 0 2px, var(--transparent) 3px),
    var(--paper-bright);
  background-size: 15px 15px, auto;
}

.article-download-card .button-row {
  margin-top: 20px;
}

.dl-fab {
  position: fixed;
  right: max(16px, var(--gutter));
  bottom: 18px;
  z-index: 60;
  max-width: min(320px, calc(100vw - 32px));
  min-height: 58px;
  padding: 9px 16px 9px 10px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: var(--stroke-medium) solid var(--ink-line);
  color: var(--paper-bright);
  background: var(--brand-red);
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.dl-fab:hover,
.dl-fab:focus-visible {
  color: var(--text-main);
  background: var(--paper-blue);
}

.dl-fab-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--stroke-thin) solid currentColor;
  border-radius: var(--radius-round);
}

.dl-fab-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.step-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: soda-step;
  list-style: none;
}

.step-list > li {
  min-width: 0;
  padding: 22px 22px 22px 86px;
  position: relative;
  border: var(--stroke-medium) solid var(--ink-line);
  background: var(--paper-bright);
  counter-increment: soda-step;
}

.step-list > li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--stroke-heavy) double var(--brand-red);
  border-radius: var(--radius-round);
  color: var(--brand-red);
  content: counter(soda-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 900;
}

.prose > .data-table {
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .feature-browser {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab-list {
    padding: 12px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: var(--stroke-medium) solid var(--ink-line);
    -webkit-overflow-scrolling: touch;
  }

  .tab-button {
    width: auto;
    min-width: max-content;
  }

  .tab-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .faq-item summary {
    padding-left: 15px;
    font-size: 1rem;
  }

  .download-card-head {
    align-items: center;
  }

  .download-actions {
    display: grid;
  }

  .download-actions .button {
    width: 100%;
  }

  .post-card,
  .glossary-card,
  .download-card {
    padding: 20px;
  }

  .step-list > li {
    padding: 76px 18px 20px;
  }

  .step-list > li::before {
    top: 16px;
    left: 18px;
  }

  .dl-fab {
    right: 16px;
    bottom: 12px;
  }
}