main {
	details {
		summary {
			&::after {
				display: inline-block;
				float: unset;
			}
			&>*:last-child {
				display: inline;
			}
		}
	}

  .score-details {
    display: grid;
		grid-template:
			"description" auto
			"top" auto
			"bottom" auto
			/ 1fr;
    &>p {
      grid-area: description;
    }
    &>.top {
      grid-area: top
    }
    &>.bottom {
      grid-area: bottom;
    }
		ol {
			padding-inline-start: 0;
		}
    li {
      display: grid;
      grid-auto-flow: column;
      grid-template-columns: 1.25lh 1fr 7.5lh;
			gap: 1rem;
			align-items: center;
			padding-block-end: 0.5rem;
			margin-block-end: 0.5rem;
			border-block-end: 1px dotted var(--pico-table-border-color);
			img {
				width: 1.25lh;
			}
			a:has(img), a:has(meter) {
				text-decoration: none;
			}
    }
  }
}

@media screen and (min-width: 800px) {
	main {
		.score-details {
			display: grid;
			grid-template: 
				"description description" auto
				"top bottom" 1fr
				/ 1fr 1fr;
			
			ol {
				margin-inline-end: 2rem;
			}
		}
	}
}