/* Shared decorative styles for the prose pages (index.html, context.html).
   comparison.html and map.html have their own page-specific stylesheets —
   those aren't duplicated anywhere else, so they stay inline in those pages. */
html { scroll-behavior: smooth; }
.grid-lines {
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 48px 48px;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Typography for pandoc-converted primary-source agreement pages
   (sources/*.html) — plain readable styling for raw legal text in its
   original language, matching the site's ink/accent palette. */
.source-doc { color: #000; line-height: 1.7; font-size: 15px; }
.source-doc h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1rem; }
.source-doc h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin: 2.5rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid rgba(17,17,17,0.1); scroll-margin-top: 5.5rem; }
.source-doc h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.6rem; scroll-margin-top: 5.5rem; }
.source-doc h4 { font-size: 0.95rem; font-weight: 600; margin: 1.4rem 0 0.5rem; }
.source-doc p { margin: 0 0 1rem; }
.source-doc ul, .source-doc ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.source-doc li { margin: 0.25rem 0; }
.source-doc li > ul, .source-doc li > ol { margin: 0.25rem 0 0.25rem; }
.source-doc strong { font-weight: 600; color: #000; }
.source-doc blockquote { margin: 1rem 0; padding: 0.1rem 1rem; border-left: 2px solid #b3341c; color: #000; font-size: 0.93em; }
.source-doc hr { border: none; border-top: 1px solid rgba(17,17,17,0.1); margin: 2rem 0; }
.source-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9em; }
.source-doc th, .source-doc td { border: 1px solid rgba(17,17,17,0.15); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.source-doc th { background: #f4f4f2; font-weight: 600; }
.source-doc code { background: #f4f4f2; padding: 0.1em 0.35em; font-size: 0.9em; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.source-doc a { color: #b3341c; text-decoration: underline; text-underline-offset: 2px; }

/* Table-of-contents sidebar on source agreement pages (sources/*.html). */
.toc-link { border-left: 2px solid transparent; margin-left: -1px; padding-left: 0.75rem; }
.toc-link.toc-active { border-left-color: #b3341c; color: #000; font-weight: 600; }

/* Country cards on sources.html: teal fill on hover and when selected */
.country-card:hover, .country-card.is-selected { background: #1f7f74 !important; }
.country-card:hover *, .country-card.is-selected * { color: #fff !important; }

/* Text links: colour on hover (set per link by shared-chrome.js) */
a.text-link-hover { transition: color 0.15s; }
a.text-link-hover:hover, a.text-link-hover:focus-visible { color: var(--hc) !important; }
