@import "./functional.css";
:root {
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  color: #27342c;
  background: #fff;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 20px;
}
.choice-header {
  max-width: 1160px;
  padding: 16px 20px 8px;
  margin: auto;
  border-bottom: 3px solid #27342c;
}
.choice-wordmark {
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}
.choice-header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.choice-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
h1 {
  font-size: clamp(24px, 4vw, 35px);
  margin: 20px 0 14px;
}
.two-plus-one {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.choice-position {
  min-width: 0;
  border: 1px solid #9ba99f;
  padding: 12px;
}
.choice-position.position-2 {
  grid-column: 1/-1;
}
.choice-position.position-2 .choice-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.choice-card {
  min-width: 0;
}
.choice-photo {
  display: block;
}
.choice-photo img {
  display: block;
  width: 100%;
  height: 126px;
}
.choice-copy h3 {
  font-size: 20px;
  margin: 10px 0;
}
.choice-copy p {
  margin: 8px 0;
}
.choice-input {
  font-size: 16px;
}
.choice-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.choice-actions a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
button {
  border: 1px solid #566d5d;
  background: #f0f5ed;
  color: #27342c;
}
button[aria-pressed="true"] {
  background: #27342c;
  color: #fff;
}
.review-link,
.candidate-membership {
  padding: 14px 0;
  border-bottom: 2px solid #9ba99f;
  margin-bottom: 20px;
}
.review-link p {
  margin: 0 0 8px;
}
.catalogue-batch {
  padding: 14px 0 20px;
  border-bottom: 2px solid #9ba99f;
  margin-bottom: 18px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.game-grid .choice-copy p:first-of-type {
  display: none;
}
.game-grid .choice-photo img {
  height: 80px;
}
.comparison-sheets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.comparison-sheet {
  border: 1px solid #798d7e;
  padding: 14px;
  min-width: 0;
}
.comparison-sheet img {
  height: 90px;
  width: 100%;
}
.comparison-sheet h2 {
  font-size: 20px;
}
.comparison-sheet dt {
  font-weight: bold;
  margin-top: 12px;
}
.comparison-sheet dd {
  margin: 4px 0;
  line-height: 1.5;
}
.choice-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.choice-info a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.reading {
  padding: 16px 0;
  border-top: 1px solid #9ba99f;
  margin: 16px 0;
}
.player-block {
  margin: 18px 0;
}
.site-footer {
  max-width: 1160px;
  margin: auto;
}
@media (max-width: 1099px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comparison-sheets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-photo img {
    height: 95px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 0 12px;
  }
  .choice-header {
    padding: 10px 12px 4px;
  }
  .choice-wordmark {
    font-size: 22px;
  }
  .choice-header nav {
    gap: 12px;
  }
  .two-plus-one {
    gap: 12px;
  }
  .choice-position {
    padding: 8px;
  }
  .choice-position.position-2 .choice-link {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }
  .choice-photo img {
    height: 76px;
  }
  .choice-copy h3 {
    font-size: 18px;
  }
  .choice-copy p:first-of-type {
    display: none;
  }
  .choice-actions {
    display: block;
  }
  .choice-actions button {
    width: 100%;
  }
  .comparison-sheets {
    display: block;
  }
  .comparison-sheet {
    margin-bottom: 18px;
  }
  .game-grid {
    gap: 12px;
  }
  .game-grid .choice-photo img {
    height: 64px;
  }
  .game-grid .choice-input {
    margin: 5px 0;
  }
}
.choice-card > .choice-link {
  padding: 10px;
}
.choice-actions {
  padding: 0 10px 10px;
}
.choice-position.position-2 .choice-actions {
  padding-top: 4px;
}
.choice-photo {
  position: relative;
  min-height: 126px;
}
.choice-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.game-grid .choice-photo {
  min-height: 80px;
}
.game-grid .choice-copy h3 {
  font-size: 18px;
  margin: 6px 0;
}
.game-grid .choice-copy p {
  margin: 4px 0;
  line-height: 1.35;
}
.game-grid .choice-link {
  padding: 6px;
}
.game-grid .choice-actions {
  padding: 0 6px 6px;
}
@media (max-width: 760px) {
  .choice-photo {
    min-height: 76px;
  }
  .game-grid .choice-photo {
    min-height: 64px;
  }
}
.choice-card .choice-photo > img {
  height: 100%;
  width: 100%;
}
@media (max-width: 760px) {
  .game-grid .choice-photo {
    min-height: 56px;
  }
}

@media (min-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.game-grid:has(> :last-child:nth-child(odd)) > :last-child {
  grid-column: 1 / -1;
}

.comparison-sheet {
  padding: 10px;
}
.comparison-sheet img {
  height: 64px;
}
.comparison-sheet h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 6px 0;
}
.comparison-sheet dl {
  margin: 8px 0;
}
.comparison-sheet dt {
  margin-top: 8px;
}
.comparison-sheet dd {
  line-height: 1.35;
  margin: 3px 0;
}
@media (max-width: 760px) {
  .game-grid .choice-photo {
    min-height: 48px;
  }
  .game-grid .choice-copy h3 {
    font-size: 16px;
    line-height: 1.25;
    margin: 4px 0;
  }
  .game-grid .choice-copy p {
    font-size: 16px;
    line-height: 1.25;
    margin: 3px 0;
  }
  .game-grid .choice-link {
    padding: 4px;
  }
  .game-grid .choice-actions {
    padding: 0 4px 4px;
  }
  .game-grid .choice-actions button {
    font-size: 16px;
    line-height: 1.2;
    padding: 6px 4px;
  }
  .catalogue-batch {
    padding: 10px 0 14px;
    margin-bottom: 14px;
  }
}

@media (max-width: 760px) {
  .catalogue-batch > h2 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
  }
  .catalogue-batch {
    padding: 8px 0 10px;
    margin-bottom: 10px;
  }
}
@media (max-width: 760px) {
  .game-grid .choice-photo {
    min-height: 40px;
  }
}

@media (max-width: 760px) {
  .catalogue-batch .game-grid {
    gap: 6px;
  }
  .catalogue-batch > h2 {
    margin-bottom: 6px;
  }
}

.comparison-sheet {
  padding: 8px;
}
.comparison-sheet h2 {
  margin: 4px 0;
}
.comparison-sheet dl {
  margin: 6px 0;
}
.comparison-sheet dt {
  margin-top: 6px;
}
.comparison-sheet dd {
  margin: 2px 0;
}

.comparison-sheet {
  display: flex;
  flex-direction: column;
}
.comparison-sheet > .comparison-game {
  height: auto;
  flex: 1;
}
.comparison-sheet > button {
  align-self: flex-start;
  flex: none;
}

/* Content-first compact identity and bounded navigation. */
.choice-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 12px;
}
.choice-header > a {
  flex: none;
  line-height: 1.15;
  margin: 0 auto 0 0;
}
.choice-header > nav {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  gap: 14px;
  margin: 0;
  padding: 0 2px;
}
.choice-header > nav a {
  flex: none;
  white-space: nowrap;
  min-height: 44px;
}
.choice-header {
  border-bottom-width: 2px;
}
.choice-wordmark {
  font-size: 21px;
}
.choice-position {
  padding: 6px;
}
.two-plus-one {
  gap: 12px;
}
.choice-card > .choice-link {
  padding: 6px;
}
.choice-copy h3 {
  margin: 6px 0;
  font-size: 18px;
}
.game-grid .choice-photo {
  min-height: 90px;
}
@media (min-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .game-grid .choice-photo {
    min-height: 72px;
  }
  .choice-position.position-2 .choice-link {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* Three image columns use six tracks to distribute a partial final row. */
@media (min-width: 1100px) {
  [data-game-list].game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  [data-game-list].game-grid > [data-game-id] {
    grid-column: span 2;
  }
  [data-game-list].game-grid
    > :nth-last-child(1 of [data-game-id]):nth-child(3n + 1 of [data-game-id]) {
    grid-column: span 6;
  }
  [data-game-list].game-grid:has(
      > :nth-last-child(1 of [data-game-id]):nth-child(3n + 2 of [data-game-id])
    )
    > :nth-last-child(-n + 2 of [data-game-id]) {
    grid-column: span 3;
  }
}

.choice-position {
  padding: 0;
}

/* Independent condition controls; one visible control per condition. */
.home-tail {
  margin: 12px 0 20px;
}
.home-tail:has(> [hidden]) {
  margin: 0;
}
[data-home-feed] [data-local-items]:empty {
  display: none;
}
dialog.filter-bottom-choice {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(760px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 12px);
}
.filter-bottom-choice .dialog-panel {
  border-radius: 16px 16px 0 0;
  max-height: calc(100dvh - 12px);
}
.candidate-conditions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

/* Web-rendered radio groups share the form's sole condition state. */
.discovery-form [data-condition-group] {
  min-width: 0;
  margin: 8px 0;
  border-bottom: 1px solid currentColor;
}
.discovery-form [data-condition-group] > summary {
  min-height: 44px;
  font-size: 16px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.discovery-form [data-condition-summary] {
  font-weight: normal;
}
.discovery-form [data-condition-group] fieldset {
  min-width: 0;
}
.discovery-form [data-condition-group] label {
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.discovery-form [data-condition-group] label:has(input:checked) {
  outline: 1px solid currentColor;
  outline-offset: -1px;
  border-radius: 4px;
}

/* Current rules 8–12: fixed site columns, finite measured fill and flexible true final rows. */
:root {
  --site-columns: 2;
  --card-ratio: 2.6;
  --list-gap: 12px;
}
.game-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--list-gap);
  grid-template-columns: none;
}
.game-grid > [data-game-id],
.game-grid > [data-local-entry] {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  grid-column: auto;
  margin: 0;
}
.game-grid .game-card-link,
.game-card-link[data-game-id] {
  min-width: 0;
}
.game-card-link [data-image-frame] {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 180px;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  border-radius: 7px;
}
.game-card-link [data-image-frame] > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
:is(
    .game-grid,
    .two-plus-one,
    .source-slip-layout,
    .word-examples,
    .suggestion-pair,
    .focus-choices,
    .chain-point
  )
  .game-card-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  height: 100%;
  padding: 6px;
  border-radius: 10px;
}
.two-plus-one .choice-position .game-card-link {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 8px;
}
.game-card-link [data-card-title] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}
.game-grid .game-card-link {
  height: auto;
}
.game-grid > article > .game-card-link {
  flex: 1;
}
.game-grid > article {
  display: flex;
  flex-direction: column;
}
.game-grid .candidate-actions,
.game-grid .choice-actions {
  padding: 4px 0 0;
}
.catalogue-tail,
.home-tail {
  margin: 12px 0 20px;
}
.search-status {
  font-size: 16px;
  line-height: 1.35;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.site-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
}
.site-footer a {
  font-size: 16px;
}
.reading {
  margin-block: 12px;
  padding-block: 12px;
}
main > section,
main > nav {
  margin-bottom: 16px;
}
button,
.identity-action,
.discovery-trigger {
  border-radius: 9px;
}
button,
.identity-action {
  min-height: 44px;
}
button:focus-visible,
.game-card-link:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  button,
  .game-card-link {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}
.game-surface > .player-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  padding: 0;
}
/* Keep the real iframe's existing size/aspect/fullscreen rules and player JS intact. */
@media (max-height: 480px) and (min-width: 480px) {
  main {
    margin-top: 0;
  }
  .search-status {
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.25;
  }
}

@media (min-width: 1100px) {
  :root {
    --site-columns: 3;
    --card-ratio: 3.2;
  }
  .game-grid > [data-game-id],
  .game-grid > [data-local-entry] {
    flex-basis: calc(33.333333% - 8px);
  }
}
.two-plus-one {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.two-plus-one > .choice-position {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  padding: 0;
  border-radius: 10px;
}
.choice-copy {
  min-width: 0;
}
.choice-copy h3 {
  margin: 0;
}
.choice-position .choice-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.choice-position .choice-actions {
  padding: 4px 6px;
}
.choice-link {
  flex: 1;
}
@media (min-width: 1100px) {
  .two-plus-one > .choice-position {
    flex-basis: calc(33.333333% - 8px);
  }
}
/* Short landscape: image and title share the first visible row between real overlays. */
@media (max-height: 480px) and (min-width: 480px) {
  .choice-header {
    min-height: 48px;
    padding: 2px 12px;
    border-bottom-width: 1px;
  }
  .choice-wordmark {
    font-size: 20px;
  }
  .two-plus-one .choice-position .choice-link,
  .game-grid .choice-link {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 4px;
    min-height: 72px;
    height: auto;
  }
  .choice-link .choice-photo {
    width: 80px;
    height: 72px;
    min-height: 72px;
    max-height: none;
    aspect-ratio: auto;
    align-self: stretch;
  }
  .choice-link [data-card-title] {
    font-size: 16px;
    line-height: 1.3;
    min-height: 0;
    margin: 0;
  }
  .two-plus-one {
    margin-top: 0;
  }
  .choice-actions {
    margin: 0;
  }
  .choice-position .choice-card {
    height: auto;
  }
}

/* Quiet detail and independent supplementary picks, October 2026. */
main:has([data-player]) {
  padding-top: 0;
}
.game-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  min-width: 0;
}
.game-heading [data-player-return] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 44px;
  font-size: 20px;
  text-decoration: none;
}
.game-heading [data-player-title] {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
.game-heading [data-full-title-open] {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
}
.player-block {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
}
[data-full-title-dialog] {
  inset: 0;
  margin: auto;
  width: min(480px, calc(100% - 24px));
  height: max-content;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line, #ccc);
}
[data-full-title-dialog] .dialog-panel {
  height: auto;
  max-height: calc(100dvh - 24px);
  padding: 14px;
}
[data-full-title-dialog] p {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.game-surface {
  margin: 0;
  min-height: 0;
  aspect-ratio: 16/9;
}
.game-surface > .player-preview {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
}
.stage:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.stage:fullscreen .game-surface {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
}
.stage:fullscreen [data-frame],
.stage:fullscreen iframe {
  width: 100%;
  height: 100%;
  max-height: none;
}
.stage:fullscreen [data-player-status] {
  font-size: 12px;
  padding-block: 2px;
}
.game-card-link {
  padding: 0 !important;
  text-decoration: none;
  color: inherit;
}
.game-card-link [data-card-title] {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 550 !important;
  min-height: 2.8em;
  margin: 0 !important;
  padding: 8px 10px !important;
}
.game-card-link [data-image-frame] {
  padding: 0 !important;
  overflow: hidden;
}
.game-card-link [data-image-frame] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  max-width: none;
}
.candidate-actions button,
.card-actions button {
  font-size: 13px;
  border: 0;
  background: transparent;
}
.reading {
  margin-block: 14px;
  padding: 12px 14px;
}
a.reading {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.reading h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
a.reading p {
  margin: 0 0 8px;
}
a.reading:hover .reading-cta {
  text-decoration: underline;
}
a.reading:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
dialog[data-filters] .dialog-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100dvh;
}
dialog[data-filters] .discovery-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
dialog[data-filters] .dialog-scroll {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
dialog[data-filters] header,
dialog[data-filters] footer {
  flex: none;
}
dialog[data-filters] h2 {
  font-size: 16px;
}
dialog[data-filters] fieldset {
  display: grid;
  gap: 8px;
  border: 0;
}
dialog[data-filters] input,
dialog[data-filters] label {
  font-size: 16px;
}
dialog[data-filters] input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
}
dialog[data-filters] footer {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
[data-list-discovery] {
  margin: 20px 0 12px;
}
[data-list-discovery] > h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 10px;
}
[data-recommendation-list] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recommendation-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
  border-bottom: 1px solid var(--line, #d5d5d5);
}
.recommendation-entry > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 94px;
  object-fit: cover;
}
.recommendation-copy {
  min-width: 0;
  padding: 12px 14px;
}
.recommendation-copy h3 {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommendation-copy p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.recommendation-cta {
  font-size: 12px;
}
.recommendation-entry:hover {
  background: #8881;
}
.recommendation-entry:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.mandatory-information {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
@media (min-width: 720px) {
  .game-heading [data-player-title] {
    font-size: 15px !important;
  }
}
@media (max-width: 550px) {
  .recommendation-entry {
    grid-template-columns: 1fr;
  }
  .recommendation-entry > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 2/1;
  }
  .recommendation-copy {
    padding: 12px;
  }
}
.comparison-pictures .recommendation-entry {
  display: flex;
  flex-direction: column;
}
.comparison-pictures .recommendation-entry > img {
  height: auto;
  aspect-ratio: 2/1;
}
@media (min-width: 720px) {
  .comparison-pictures [data-recommendation-list] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
dialog[data-filters] {
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  height: max-content;
}
dialog[data-filters] .dialog-panel {
  max-height: calc(100dvh - 24px);
}

/* Text enlargement keeps the brand inside the available header width. */
.choice-header > a {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 48%;
  overflow-wrap: anywhere;
}
.choice-header > nav {
  flex: 1 1 0;
}
.choice-header .discovery-actions {
  flex: 0 0 auto;
  min-width: 0;
}
.choice-header > button {
  flex: 0 0 44px;
}
