/* Brand colors - kept in sync with css/style.css's :root block. Duplicated
   here (rather than @import) since this file is only ever loaded standalone
   on the FAQ/legal pages. */
:root {
    --brand-dark-blue: #0c3c60;
    --brand-dark-blue-hover: #145183;
    --brand-light-blue: #d1e0eb;
}

/* Top/bottom full-width blue bars, matching css/style.css's #referencelink/
   #sitefooter on index.html (duplicated here, not @import'd, since this
   file is only ever loaded standalone on the FAQ/legal pages) - keeps
   in-app navigation (diagnostics link, language switcher, FAQ/legal
   footer links) consistent across the map and these static pages. 3-column
   grid (spacer / link / switcher) keeps the diagnostics link centered
   regardless of the language switcher's width - same reasoning as
   css/style.css. On legal.html (no per-language variant) the switcher
   column is just another empty spacer, so the link stays centered there too. */
#referencelink {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 8px;
    text-align: center;
    background-color: var(--brand-dark-blue);
    color: var(--brand-light-blue);
    font-family: sans-serif;
    font-size: 13px;
    line-height: 16px;
    padding: 3px 10px;
    white-space: normal;
    box-sizing: border-box;
}

#referencelink .ref-spacer {
    min-width: 0;
}

#referencelink a {
    color: var(--brand-light-blue);
    text-decoration: underline;
}

#referencelink a:hover {
    color: #fff;
}

.lang-switch {
    min-width: 0;
    justify-self: end;
    white-space: nowrap;
}

.lang-switch-select {
    display: inline-block;
    background-color: var(--brand-dark-blue);
    color: var(--brand-light-blue);
    border: 1px solid var(--brand-light-blue);
    border-radius: 3px;
    font-size: 12px;
    line-height: 14px;
    padding: 1px 3px;
}

.lang-switch-links {
    display: none;
}

#sitefooter {
    text-align: center;
    background-color: var(--brand-dark-blue);
    color: var(--brand-light-blue);
    font-family: sans-serif;
    font-size: 13px;
    line-height: 16px;
    padding: 3px 10px;
    box-sizing: border-box;
}

#sitefooter a {
    color: var(--brand-light-blue);
    text-decoration: underline;
}

#sitefooter a:hover {
    color: #fff;
}

.footer-links-nowrap {
    white-space: nowrap;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: #222;
    background-color: #fff;
}

.static-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    line-height: 1.6;
}

.static-back a {
    color: var(--brand-dark-blue);
    text-decoration: none;
    font-size: 14px;
}

.static-back a:hover {
    text-decoration: underline;
}

.static-og-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 12px 0 24px;
}

.faq-table caption {
    font-size: 0.9em;
    margin-bottom: 0.4em;
}

.faq-table-wrapper {
    overflow-x: auto;
    margin: 1em 0;
}
.faq-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.faq-table col:nth-child(1) { width: 27%; }
.faq-table col:nth-child(2) { width: 26%; }
.faq-table col:nth-child(3) { width: 15%; }
.faq-table col:nth-child(4) { width: 33%; }
.faq-table th, .faq-table td {
    border: 1px solid #ccc;
    padding: 0.4em 0.6em;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    font-size: 0.8em;
}
.faq-table td:nth-child(3) { text-align: center; }

h1 {
    color: var(--brand-dark-blue);
}

section {
    margin-top: 32px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

section h2 {
    color: var(--brand-dark-blue);
}
