/* Part zl-legal: the Privacy Policy and Terms of Use, as zl-legal.php lays them out. The gl-lg classes exist only on
   those two pages. The plat-sheet style: navy ink on white, thin navy rules, no boxes. */

.gl-lg-nowrap { white-space: nowrap; }
.gl-lg-body > :first-child { margin-top: 0; }
.gl-lg-body h2 { scroll-margin-top: calc(var(--gl-sticky-top, 70px) + 24px); }
.gl-lg-body p, .gl-lg-body li { color: var(--gl-ink); }

/* The index: one list, ruled rows, the section being read in navy with a gold edge mark. */
.gl-lg .gl-lg-list { margin: 0; padding: 0; border-top: 1px solid var(--gl-navy); list-style: none; }
.gl-lg .gl-lg-list > li { margin: 0; border-bottom: 1px solid rgba(24, 42, 97, .3); }
.gl-lg .gl-lg-list a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 8px 8px 14px; color: var(--gl-ink); font-size: 15px; line-height: 1.35; text-decoration: none; transition: color var(--gl-fast), background-color var(--gl-fast); }
.gl-lg .gl-lg-list a::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 1px; background: transparent; transition: background-color var(--gl-fast); }
.gl-lg .gl-lg-list a[aria-current="true"] { color: var(--gl-navy); font-weight: 600; }
.gl-lg .gl-lg-list a[aria-current="true"]::before { background: var(--gl-accent, #c8952b); }
@media (hover: hover) {
  .gl-lg .gl-lg-list a:hover { color: var(--gl-navy); text-decoration: underline; text-underline-offset: 3px; }
}
.gl-lg-toc-title { margin: 0 0 12px; color: var(--gl-navy); font-size: 1.0625rem; font-weight: 700; }

/* Wide screens: the index in a sticky column on the left, the text on the right at the reading width. */
@media (min-width: 1000px) {
  .gl-lg { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .gl-lg-toc { position: sticky; top: calc(var(--gl-sticky-top, 70px) + 32px); max-height: calc(100vh - var(--gl-sticky-top, 70px) - 64px); overflow-y: auto; }
  .gl-lg-drop { display: none; }
}

/* Phones and tablets: the index opens from a ruled row at the top. */
@media (max-width: 999px) {
  .gl-lg-toc { display: none; }
  .gl-lg-drop { margin: 0 0 32px; border-top: 1px solid var(--gl-navy); border-bottom: 1px solid var(--gl-navy); }
  .gl-lg-drop > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--gl-navy); font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
  .gl-lg-drop > summary::-webkit-details-marker { display: none; }
  .gl-lg-drop > summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--gl-fast); }
  .gl-lg-drop[open] > summary::after { transform: rotate(225deg) translateY(-3px); }
  .gl-lg-drop .gl-lg-list { margin-bottom: 8px; border-top-color: rgba(24, 42, 97, .3); }
  .gl-lg-drop .gl-lg-list > li:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gl-lg .gl-lg-list a, .gl-lg .gl-lg-list a::before, .gl-lg-drop > summary::after { transition: none; }
}
@media print {
  .gl-lg-toc, .gl-lg-drop { display: none; }
  .gl-lg { display: block; }
}

/* The text: the site's reading width and size, and headings with room above them. */
.gl-lg-body > :is(p, ul, ol, h2, h3) { max-width: 40rem; }
.gl-lg-body p, .gl-lg-body li { font-size: 17px; line-height: 1.65; }
.gl-lg-body h2 { margin: 44px 0 12px; font-size: 1.5rem; }
