.v4-information-tabs[hidden],
.v4-information-panel[hidden] {
  display: none;
}

.v4-information-panels,
.v4-information-panel {
  display: contents;
}

.v4-information-empty {
  display: none;
}

@media (max-width: 760px) {
  .v4-information-tabs {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
    padding: 4px 0 8px;
    scrollbar-width: thin;
  }

  .v4-information-tabs button {
    flex: 1 0 auto;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    padding: 8px 6px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
  }

  .v4-information-tabs button[aria-selected="true"] {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--paper-2);
  }

  .v4-information-tabs button:focus-visible,
  .v4-information-panel:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: -2px;
  }

  .v4-information-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
  }

  .v4-information-empty {
    display: block;
    margin: 0;
    color: var(--muted);
  }

  .v4-tournament-information,
  .v4-information-summary,
  .v4-information-paragraph,
  .v4-information-alert {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .v4-information-facts dd {
    font-weight: 500;
  }

  .v4-information-section {
    padding: 12px;
  }

  .v4-information-section h3 {
    font-size: 0.94rem;
  }

  .v4-information-links a,
  .v4-information-links button,
  .v4-information-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .v4-info-dialog {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .v4-info-header {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  }

  .v4-info-header h2 {
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .v4-info-close {
    width: 44px;
    height: 44px;
  }

  .v4-info-body,
  .v4-info-body > .v4-tournament-information {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
    overflow: hidden;
  }

  .v4-info-body .v4-information-tabs {
    position: static;
    flex: 0 0 auto;
    padding: 6px 12px;
  }

  .v4-info-body .v4-information-panels {
    display: block;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
    min-height: 0;
  }

  .v4-info-feedback {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0 16px;
  }

  .v4-info-feedback:has(button[hidden]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .v4-info-feedback:has(button:not([hidden])) {
    border-top: 1px solid var(--line);
    padding-block: 8px max(8px, env(safe-area-inset-bottom));
  }
}
