/* ==========================================================================
   Lirawi pages: small additions on top of /assets/css/site.css.

   Kept in its own file so the studio stylesheet stays untouched, and kept
   external rather than inline because the site's Content-Security-Policy
   (nginx/security-headers.conf, _headers) has no 'unsafe-inline' for styles,
   so style="" attributes and <style> blocks are dropped in production.
   ========================================================================== */

/* Document pages: a tighter hero, as the /toll/ legal pages intend. */
.hero--doc { padding-bottom: 2rem; }
.hero--doc h1 { max-width: 18ch; }

/* Let the four-link nav wrap rather than overflow at very large text sizes. */
.nav { flex-wrap: wrap; row-gap: 0.5rem; }

/* The footer title block is a real <dl> here, so reset its default margin. */
dl.titleblock__grid { margin: 0; }

/* --- Language versions on the legal pages ------------------------------- */

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.langs a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--hairline);
}
.langs a:hover,
.langs a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-block {
  margin-top: 3.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--hairline);
}

/* Licence notices quote full URLs and a 40-character commit hash; let them
   wrap on narrow screens instead of widening the page. */
.prose a,
.prose code { overflow-wrap: anywhere; }

/* Licence text quoted with its own (a)–(m) labels, so no list markers. */
.prose .plain { list-style: none; padding-left: 0; }

/* A compact multi-column list, used for the reading languages. */
.cols {
  columns: 4 11rem;
  column-gap: 2rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 1rem 0;
  border-block: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.84rem;
}
.cols li { break-inside: avoid; padding: 0.15rem 0; }

/* --- Arabic and right-to-left ------------------------------------------- */

/* Arabic letters join, so tracking breaks them: no letter-spacing, and a
   typeface that has the glyphs (Plex Sans Arabic, same family as the body). */
:lang(ar) {
  font-family: "IBM Plex Sans Arabic", var(--sans);
  letter-spacing: 0;
}
.prose :lang(ar) h2,
.prose :lang(ar) h3 {
  font-family: "IBM Plex Sans Arabic", var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.prose [dir="rtl"] p,
.prose [dir="rtl"] li { line-height: 1.9; }
.prose [dir="rtl"] ul { padding-left: 0; padding-right: 1.1rem; }
[dir="rtl"] .note {
  border-left: 1px solid var(--hairline);
  border-right: 2px solid var(--accent);
}
[dir="rtl"] th,
[dir="rtl"] td { text-align: right; }
