/* Page «О проекте», variant Б: the table of contents on the left, the sections on the right with Roman numerals.
   Colours come from tokens.css, so every look works. On a phone the contents are folded into one line above the text. */
.about-hero { margin: 0 0 18px; padding: 14px 20px 6px; background: var(--c-parchment); color: var(--c-ink); border-radius: var(--radius-m, 10px); box-shadow: 0 2px 8px var(--c-shadow); }
.about-hero h1 { margin: 0 0 .3em; }
.about-hero .lead { margin: 0 0 .7em; max-width: 60ch; color: var(--c-ink); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.about-sections { min-width: 0; }
.about .about-sections section { scroll-margin-top: 72px; }
.about .about-sections section:first-child { margin-top: 0; }
.about-sections h2 .num { color: var(--c-ink-soft); margin-right: .15em; }
.about-sections h2 { margin-top: .4em; color: var(--c-accent); }
.about-sections h3 { font-size: 1.15rem; }

.about-toc { background: var(--c-parchment); color: var(--c-ink); border-radius: var(--radius-m, 10px); box-shadow: 0 2px 8px var(--c-shadow); }
.about-toc summary { min-height: var(--tap, 44px); display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; }
.about-toc nav { display: flex; flex-direction: column; padding: 0 8px 8px; }
.about-toc a { display: flex; gap: 10px; align-items: center; min-height: var(--tap, 44px); padding: 4px 10px; border-radius: var(--radius-s, 6px); color: var(--c-ink); text-decoration: none; font-size: 1.05rem; }
.about-toc a:hover { background: var(--c-ink-a15); }
.about-toc a[aria-current="true"] { background: var(--c-gold); color: var(--c-ink); font-weight: 700; }
.about-toc .num { width: 2.2em; flex: none; font-family: var(--font-display, Georgia, serif); }

@media (min-width: 900px) {
	.about-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
	.about-toc { position: sticky; top: 16px; }
	.about-toc summary { display: none; }
	.about-toc nav { padding-top: 8px; }
	.about-hero { padding: 18px 28px 8px; }
}
.about-toc summary { list-style: none; justify-content: space-between; }
.about-toc summary::-webkit-details-marker { display: none; }
.about-toc summary::after { content: "\25BE"; font-size: 1.2rem; }
.about-toc[open] summary::after { content: "\25B4"; }

/* the marks of sources: the same chips as on a game's page (page-game.css) */
.about .marks dt { margin-top: .8em; margin-bottom: 4px; }
.about .mark { display: inline-block; margin: 0; padding: 1px 10px; border: 1px solid currentcolor; border-radius: 6px; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.about .mark.m-book { color: var(--c-ok-text); background: var(--c-ok-bg); }
.about .mark.m-read { color: var(--c-read-text); background: var(--c-wait-bg); }
.about .mark.m-ours { color: var(--c-accent); background: var(--c-parchment); } /* the lighter plate: «accent on parchment-2» is 4.14:1 in kover */
.about .mark .sign { color: inherit; }
/* the addresses of the licences wrap inside the card on a phone */
.about-sections li, .about-sections p { overflow-wrap: break-word; }
