/* GRTPA public site */
:root {
  --navy: #0b2a4a;
  --navy-2: #12385f;
  --blue: #1f6fb5;
  --green: #1f9a48;
  --red: #d71920;
  --ink: #1d2733;
  --muted: #5a6573;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 74, .06), 0 6px 18px rgba(11, 42, 74, .07);
  --font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-head: "Lato", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 8px; }

/* Admin bar (signed-in users only) */
.adminbar { background: #111827; color: #d1d5db; font-size: 14px; }
.adminbar .container { display: flex; gap: 18px; align-items: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.adminbar a { color: #fff; }

/* Header */
.site-header { background: #fff; position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; height: 64px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; line-height: 1.15; }
.brand-tag { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.social { display: flex; align-items: center; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--navy); }
.social a:hover { background: var(--navy); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font: 600 16px var(--font); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

.site-nav { background: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: 14px 14px; font-weight: 600; font-size: 16px; border-bottom: 3px solid transparent; }
.site-nav a:hover { background: var(--navy-2); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); background: var(--navy-2); }
.flag-stripe { height: 6px; background: linear-gradient(to bottom, var(--blue) 0 50%, var(--green) 50% 100%); }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .brand-name { font-size: 1rem; }
  .brand img { width: 52px; height: 52px; }
  .brand-tag { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle-label { display: none; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 6px 0; }
  .site-nav a { border-bottom: 0; border-left: 4px solid transparent; }
  .site-nav a[aria-current="page"] { border-left-color: var(--red); }
}
@media (max-width: 420px) {
  .social a { width: 36px; height: 36px; }
  .brand-name { font-size: .92rem; }
}

/* Main */
.site-main { padding: 36px 0 48px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: minmax(0, 1fr); } }
.sidebar { position: sticky; top: 16px; }
@media (max-width: 960px) { .sidebar { position: static; } }

.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose blockquote { margin: 0 0 1em; padding: 10px 18px; border-left: 4px solid var(--green); background: var(--bg-soft); }
.prose iframe { max-width: 100%; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 1em; }
.prose .gallery img { width: 100%; height: 180px; object-fit: cover; cursor: zoom-in; }

.hero { text-align: center; }
.hero .prose img { margin: 0 auto; border-radius: 0; }

.crumbs { font-size: .95rem; margin-bottom: 10px; }
.crumbs a::before { content: "← "; }

.btn { display: inline-block; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 10px 20px; font: 700 16px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* News cards */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-img img.placeholder { object-fit: contain; padding: 18px; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: .97rem; margin: 0 0 12px; flex: 1; }
.card .more { font-weight: 700; }

.latest { background: var(--bg-soft); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.home-fb { margin-top: 44px; max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }
.more-news { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.more-news ul { padding-left: 1.2em; }

/* Facebook */
.fb-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.fb-frame { min-height: 200px; display: flex; justify-content: center; }
.fb-frame iframe { border: 0; max-width: 100%; }
.fb-link { display: block; text-align: center; padding: 8px 0 2px; font-weight: 700; font-size: .95rem; }

/* Notices */
.notice { border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid; }
.notice p { margin: 0; }
.notice.ok { background: #ecfdf3; border-color: #9fdcb8; color: #0f5132; }
.notice.error { background: #fef2f2; border-color: #f3b0b0; color: #8a1c1c; }
.notice.warn { background: #fff8e6; border-color: #f2d28b; color: #7a5300; }

/* Forms */
.req { color: var(--red); }
.req-note { color: var(--muted); font-size: .95rem; }
.cms-form { margin-top: 8px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid #b9c2cd; border-radius: 8px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 111, 181, .2); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field-error { color: #b4161b; margin: 6px 0 0; font-size: .95rem; font-weight: 600; }
.yesno { display: flex; gap: 10px; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #b9c2cd; border-radius: 8px; cursor: pointer; font-weight: 600; }
.radio input { width: 18px; height: 18px; accent-color: var(--navy); }
.radio:has(input:checked) { border-color: var(--navy); background: #eef3f9; }
.form-html h3 { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-note { background: var(--bg-soft); padding: 10px 14px; border-radius: 8px; text-align: center; }
.form-agree { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[data-show-if][hidden] { display: none; }
.g-recaptcha { margin: 10px 0 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #d7e0ea; padding: 30px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner > div { display: flex; align-items: center; gap: 14px; }
.footer-inner p { margin: 0; }
.footer-logo { border-radius: 50%; }
.footer-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.credit img { background: #fff; padding: 4px 8px; border-radius: 6px; display: block; }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #111827; color: #fff; border-radius: 10px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 50; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .95rem; flex: 1; }
.cookie button { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 8px 18px; font: 700 15px var(--font); cursor: pointer; }

/* Lightbox for galleries */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 200; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 4px; }

/* Content blocks (usable from the editor via the div classes) */
.prose .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
@media (max-width: 640px) { .prose .stats { grid-template-columns: minmax(0, 1fr); } }
.prose .stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 18px; position: relative; overflow: hidden; }
.prose .stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(to right, var(--blue), var(--green)); }
.prose .stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.prose .stat span { display: block; font-size: .98rem; color: #d7e0ea; line-height: 1.4; }
.prose .regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.prose .region { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 14px 18px 8px; box-shadow: var(--shadow); }
.prose .region:nth-child(even) { border-top-color: var(--green); }
.prose .region h3 { font-size: 1.05rem; margin: 0 0 8px; }
.prose .region ul { list-style: none; padding: 0; margin: 0; }
.prose .region li { padding: 6px 0 6px 22px; border-top: 1px solid var(--line); position: relative; font-size: .98rem; margin: 0; }
.prose .region li:first-child { border-top: 0; }
.prose .region li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.prose .callout { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 8px 0 20px; }
.prose .callout h2 { color: #fff; margin-top: 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .button, .prose a.button { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 8px; }
.prose .button:hover { background: #17803b; color: #fff; }
