/* The About page (Ben's approved text, 18-11): the language bar and the two kinds of list in the text. The page itself is the
   house's own: header, footer, reading column, type and the ivory room come from house.css, site.css and shell.css.
   Colours are the room's own variables, so the light and the dark preference both read well; every side is a logical one,
   so the right-to-left pages (Arabic, Hebrew) mirror without a second set of rules. */
/* The language menu: one compact button with the current language by its own name, a list of the languages by their own names under it. A <details>
   element, so it works with no script; it sits at the top of the page, on the end side of the content. */
.about-opening--menu { padding-top: clamp(16px, 2vw, 28px); }
.about-language-row { display: flex; justify-content: flex-end; margin-bottom: clamp(12px, 2vw, 24px); }
.about-language-menu { position: relative; font: 500 15px/1.3 var(--font-ui, inherit); }
.about-language-menu summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 18px; list-style: none; cursor: pointer;
  border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; color: var(--accent-text); background: transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.about-language-menu summary::-webkit-details-marker { display: none; }
.about-language-menu summary::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease, margin .15s ease;
}
.about-language-menu[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.about-language-menu summary:hover, .about-language-menu[open] summary { border-color: var(--accent-text); background: var(--page-raised, transparent); }
.about-language-menu summary:focus-visible, .about-language-list a:focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 2px; }
.about-language-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; box-sizing: border-box; min-width: 230px; max-width: calc(100vw - 2 * var(--side-gutter, 20px));
  max-height: min(75vh, 620px, calc(100svh - 260px)); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--page-raised, #fffcf5); border: 1px solid var(--line); border-radius: var(--r-nest, 14px);
  box-shadow: 0 18px 40px -20px rgba(11, 35, 64, .35), 0 2px 8px -2px rgba(11, 35, 64, .12);
}
.about-language-list li { margin: 0; }
.about-language-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text, inherit); text-decoration: none;
}
.about-language-list a:hover { background: var(--page-deep, rgba(20, 29, 61, .06)); }
.about-language-list a[aria-current="page"] { font-weight: 700; background: var(--page-deep, rgba(20, 29, 61, .06)); }
@media (max-width: 700px) { .about-language-list a { min-height: 40px; } }

/* The photograph's credit on this page only: smaller and fainter, still readable on a close look (the house credit rules keep its ink and halo). */
.houses-preview.evening-ivory.catalog-about .about-opening .evening-credit { font-size: 11px; opacity: .45; }

.about-copy .about-list { display: grid; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; max-width: var(--text-max); }
.about-copy .about-list li { position: relative; padding-inline-start: 24px; color: var(--subtle); }
/* The text of an item is a paragraph, so it is set exactly as every other paragraph of the page. */
.about-copy .about-list li p { margin: 0; max-width: none; }
.about-copy .about-list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-text);
}
.about-copy .about-list strong { color: var(--text, inherit); }
.about-copy > p > strong { color: var(--text, inherit); }
/* The contact heading is a target of the menu's Contact link on a language page (/about/<lang>#contact). */
.about-copy h2[id] { scroll-margin-top: 96px; }

/* The house video (Ben 18-11): its figure rules live in house-video.css, shared with the landing pages; this page only sets its distance from the text. */
.about-copy .about-videos { display: grid; gap: 40px; margin: 44px 0 0; justify-items: center; }

/* R68: the languages again, open, as plain links at the end of the page (languageLinks in scripts/about-page.mjs). */
.about-language-links { margin: 36px auto 8px; text-align: center; }
.about-language-links p { margin: 0; font-size: 15px; line-height: 1.8; }
.about-language-links a { text-decoration: underline; text-underline-offset: .2em; }
.about-language-links a[aria-current="page"] { text-decoration: none; font-weight: 600; }

/* The text column stands in the middle of the page, under the heading and the photograph: every block of it has the same width and the same
   left edge. This rule is last in the file on purpose: it wins over the margins set above. */
.about-copy.reading-copy > * { width: min(100%, var(--text-max)); max-width: none; margin-inline: auto; }
