/* ==========================================================================
   Grey Sky Capital: regulatory pages
   (statutory-disclosures.html, investor-complaints-data.html,
    privacy-policy.html, terms-conditions.html)
   --------------------------------------------------------------------------
   Technical Summary
   - One paper section under the shared nav: mono eyebrow, display title, a
     short lede or the document's own "last updated" line, then a row of
     links between the four regulatory pages (the current one marked).
   - Statutory disclosures: a ruled list, one row per document, with a mono
     tag for what it opens (PDF, page on this site, outside site) and an
     arrow that moves on hover.
   - Long documents (privacy, terms): a readable measure, numbered section
     heads in display type, lettered sub-heads, ruled tables and plain lists.
   - Complaints data: SEBI's tables as ruled tables in a horizontal scroller,
     the total row in bold; notes in legal type.
   - Colour and type from tokens.css only. No motion beyond link hovers.
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lg { background: var(--paper-100); padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 var(--space-chapter); }
.lg__head { display: grid; gap: 14px; max-width: 900px; }
.lg__title { margin: 0 0 0 -0.03em; color: var(--ink-head); font-size: var(--d1-size); line-height: var(--d1-lh); letter-spacing: var(--d1-tr); font-weight: 700; }
.lg__lede { margin: 0; max-width: 62ch; font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--ink-body); }
.lg__date { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-muted); }

/* The four regulatory pages, one row */
.lg-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(28px, 4vw, 44px) 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; }
.lg-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--paper-300);
  font-family: var(--font-mono); font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tr); text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lg-nav a:hover { color: var(--ink-head); border-color: var(--ink-head); }
.lg-nav a[aria-current="page"] { background: var(--ink-head); border-color: var(--ink-head); color: var(--paper-100); }
.lg-nav a:focus-visible { outline: 3px solid var(--azure-ink); outline-offset: 2px; }

/* Statutory disclosures: one ruled row per document */
.lg-docs { list-style: none; margin: 0; padding: 0; max-width: 960px; border-top: 1px solid var(--ink-head); }
.lg-docs li { border-bottom: 1px solid var(--paper-300); }
.lg-doc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px;
  padding: 22px 0; color: var(--ink-body); text-decoration: none;
}
.lg-doc__name { display: block; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.lg-doc__text { display: block; margin-top: 6px; color: var(--ink-muted); }
.lg-doc__kind { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); border: 1px solid var(--paper-300); padding: 3px 8px; white-space: nowrap; }
.lg-doc__go { font-size: 20px; color: var(--ink-muted); transition: transform .25s var(--ease), color .25s var(--ease); }
.lg-doc:hover .lg-doc__name { color: var(--rust); }
.lg-doc:hover .lg-doc__go { transform: translateX(4px); color: var(--rust); }
.lg-doc:focus-visible { outline: 3px solid var(--azure-ink); outline-offset: 4px; }
.lg-docs + .lg-note { margin-top: 28px; }

/* Long documents */
.lg-doc-body { max-width: 76ch; color: var(--ink-body); overflow-wrap: break-word; }   /* long web addresses break instead of widening the page on a phone */
.lg-doc-body > * + * { margin-top: 16px; }
.lg-doc-body h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--paper-300); font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.lg-doc-body h3 { margin-top: 28px; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink-head); }
.lg-doc-body h2 + *, .lg-doc-body h3 + * { margin-top: 10px; }
.lg-doc-body p, .lg-doc-body li { margin-bottom: 0; line-height: 1.65; }
.lg-doc-body ul { margin-bottom: 0; padding-left: 20px; display: grid; gap: 8px; }
.lg-doc-body ul ul { margin-top: 8px; }
.lg-doc-body strong { color: var(--ink-head); font-weight: 600; }
.lg-doc-body a { color: var(--rust); text-underline-offset: 3px; }

/* Tables (privacy summary and the complaints data) */
.lg-tablewrap { overflow-x: auto; margin-top: 14px; }
.lg-tablewrap:focus-visible { outline: 3px solid var(--azure-ink); outline-offset: 2px; }   /* focusable so a wide table scrolls by keyboard */
.lg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lg-table th, .lg-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--paper-300); }
.lg-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--ink-head); }
.lg-table tbody th { font-weight: 600; color: var(--ink-head); }
.lg-table tr.is-total td, .lg-table tr.is-total th { font-weight: 700; color: var(--ink-head); border-bottom-color: var(--ink-head); }
.lg-table td.is-num, .lg-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Complaints data */
.lg-cmp { max-width: 1100px; }
.lg-cmp + .lg-cmp { margin-top: var(--space-continue); }
.lg-cmp__title { margin: 0; font-size: var(--d2-size); line-height: var(--d2-lh); letter-spacing: var(--d2-tr); font-weight: 700; color: var(--ink-head); }
.lg-cmp__sub { margin: 28px 0 0; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.lg-note { margin: 12px 0 0; max-width: 90ch; font-size: var(--legal-size); line-height: var(--legal-lh); color: var(--ink-muted); }
.lg-foot { margin-top: var(--space-continue); padding-top: 24px; border-top: 1px solid var(--paper-300); max-width: 90ch; font-size: var(--legal-size); line-height: var(--legal-lh); color: var(--ink-muted); }
.lg-foot a { color: var(--rust); text-underline-offset: 3px; }

@media (max-width: 620px) {
  .lg { padding-top: calc(var(--nav-h) + 40px); }
  .lg-doc { grid-template-columns: minmax(0, 1fr) auto; }
  .lg-doc__kind { grid-column: 1; grid-row: 2; justify-self: start; }
  .lg-doc__go { grid-column: 2; grid-row: 1 / span 2; }
  .lg-doc-body h2 { margin-top: 36px; }
}

/* The site map (sitemap.html): groups of plain links in a grid, three across on a laptop */
.smap { display: grid; gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: clamp(32px, 5vw, 56px); }
.smap__group h2 { margin: 0 0 12px; }
.smap__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.smap__group a { color: var(--ink-head); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--paper-300); }
.smap__group a:hover { border-bottom-color: currentColor; }
.smap__group a:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* The CMS copy (cms-page.js): Ghost's own markup, held to the same rules */
.lg-cms[data-complaints] { max-width: none; }
.lg-cms h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-cms table { margin: 0; }
.lg-cms .lg-table thead th, .lg-cms .lg-table th { text-align: left; }
.lg-cms[data-complaints] .lg-table tbody tr:last-child td { font-weight: 600; color: var(--ink-head); }
.lg-cms ol { margin-bottom: 0; padding-left: 22px; display: grid; gap: 8px; }
.lg-cms code { font-family: var(--font-mono); font-size: .9em; }
