/* Fifth Quarter Advisory legal pages. Brand: Georgia Bold headings, Arial body.
   Palette: Deep Navy #031241, Heritage Blue #6F86A3, Ivory #F8F6EE, Charcoal #2E2E2E */
:root {
  --navy: #031241;
  --blue: #6F86A3;
  --ivory: #F8F6EE;
  --charcoal: #2E2E2E;
  --line: rgba(111, 134, 163, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 16px/1.6 Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: var(--navy); }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
.lg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.lg-header { background: var(--navy); }
.lg-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lg-logo img { height: 30px; width: auto; display: block; }
.lg-back { color: var(--ivory); font-size: 14px; text-decoration: none; opacity: 0.85; }
.lg-back:hover { color: var(--ivory); opacity: 1; text-decoration: underline; }

/* Title band */
.lg-hero { background: var(--navy); color: var(--ivory); padding: 20px 0 32px; border-top: 1px solid rgba(248, 246, 238, 0.12); }
.lg-hero h1 { color: var(--ivory); font-size: 40px; line-height: 1.15; margin: 4px 0 8px; }
.lg-eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue); }
.lg-meta { margin: 0; font-size: 14px; color: rgba(248, 246, 238, 0.75); }
.lg-meta:empty { display: none; }
.draft { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border: 1px solid var(--blue); border-radius: 4px; font-size: 13px; color: var(--ivory); }

/* Layout */
.lg-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 56px; }
.lg-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; font-size: 14px; }
.lg-toc summary { font-family: Georgia, serif; font-weight: 700; color: var(--navy); cursor: pointer; margin-bottom: 8px; list-style: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ul { list-style: none; margin: 0; padding: 0; }
.lg-toc ul ul { display: none; }
.lg-toc li a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--charcoal); text-decoration: none; line-height: 1.35; }
.lg-toc li a:hover { border-left-color: var(--navy); color: var(--navy); }

/* Document body */
.lg-doc { max-width: 760px; }
.lg-doc h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.lg-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-doc h3 { font-size: 17px; margin: 22px 0 6px; }
.lg-doc h4 { font-size: 16px; margin: 18px 0 6px; }
.lg-doc p { margin: 0 0 12px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 12px; padding-left: 22px; }
.lg-doc li { margin: 0 0 4px; }
.lg-doc li p { margin: 0; }
.lg-doc strong { color: var(--navy); }
.lg-doc hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.lg-doc table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
.lg-doc th, .lg-doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.lg-doc th { background: rgba(111, 134, 163, 0.12); color: var(--navy); }
.lg-doc .mark { background: none; }
.blank { display: inline-block; min-width: 220px; border-bottom: 1px solid var(--charcoal); height: 1.1em; vertical-align: bottom; }
.lg-print { margin-top: 32px; }
.lg-print button { font: 700 14px Arial, sans-serif; color: var(--navy); background: transparent; border: 1px solid var(--navy); border-radius: 4px; padding: 9px 16px; cursor: pointer; }
.lg-print button:hover { background: var(--navy); color: var(--ivory); }

/* Footer */
.lg-footer { background: var(--navy); color: rgba(248, 246, 238, 0.7); font-size: 13px; }
.lg-footer-inner { padding: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.lg-footer p { margin: 0; }
.lg-legal-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lg-legal-nav a { color: var(--ivory); text-decoration: none; }
.lg-legal-nav a:hover, .lg-legal-nav a[aria-current="page"] { text-decoration: underline; color: var(--ivory); }

/* Mobile */
@media (max-width: 860px) {
  .lg-main { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .lg-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #fff; }
  .lg-toc summary { margin-bottom: 0; }
  .lg-toc details[open] summary { margin-bottom: 8px; }
  .lg-hero h1 { font-size: 30px; }
  .lg-header-inner { height: 60px; }
  .lg-logo img { height: 24px; }
  .blank { min-width: 160px; }
}

/* Print */
@media print {
  body { background: #fff; font-size: 11pt; }
  .lg-header, .lg-toc, .lg-footer, .lg-print { display: none; }
  .lg-hero { background: #fff; color: #000; padding: 0 0 12px; border: 0; }
  .lg-hero h1 { color: var(--navy); }
  .lg-meta { color: #444; }
  .lg-main { display: block; padding: 0; }
  .lg-doc { max-width: none; }
  .lg-doc h2 { break-after: avoid; }
  a { color: inherit; }
}

/* Links to other Fifth Quarter policies (filled in from "[insert link]") */
.lg-doc a.doc-link {
  background: rgba(111, 134, 163, 0.22);
  color: var(--navy);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  word-break: break-word;
}
.lg-doc a.doc-link:hover { background: var(--navy); color: var(--ivory); text-decoration-color: var(--ivory); }
@media print { .lg-doc a.doc-link { background: none; padding: 0; } }
