/* Volunteer Jurists – mobile first. Colours from the logo (deep and light blue), sober and legal. */
:root {
	--ink: #16222c;
	--muted: #5b6b78;
	--navy: #0b3a55;
	--blue: #056791;
	--sky: #1aa3d9;
	--sky-l: #e6f4fb;
	--light: #f3f6f8;
	--line: #dbe4ea;
	--white: #fff;
	--accent: #d9a441;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(22, 34, 44, .06), 0 12px 32px rgba(22, 34, 44, .08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(800px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
.hp { position: absolute !important; left: -9999px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 34px; height: 34px; color: var(--sky); margin-bottom: 10px; }
.label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--sky); margin-bottom: .8em; }
.small { font-size: .88rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--navy); }
.intro { font-size: 1.15rem; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; white-space: nowrap; background: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-accent { background: var(--accent); color: #1d1606; }
.btn-accent:hover { background: #c79233; }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--sky-l); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.copy, [data-share] { position: relative; }
.copy { border: 0; background: none; padding: 0; font-weight: 700; cursor: copy; color: inherit; text-decoration: underline dotted; text-underline-offset: 4px; }
.is-copied::after { content: " ✓"; }

/* Header */
.top { background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand strong { display: block; white-space: nowrap; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.1; }
.brand small { display: block; white-space: nowrap; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px; font-weight: 700; cursor: pointer; color: var(--navy); }
.mainnav { display: none; }
.menu-open .mainnav { display: flex; flex-direction: column; position: fixed; inset: 73px 0 0; background: #fff; padding: 16px; gap: 6px; overflow: auto; z-index: 60; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav li a { display: block; padding: 14px 8px; font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.lang { font-weight: 700; text-decoration: none; color: var(--blue); padding: 12px 8px; }
.menu-open .top-cta { margin-top: 12px; }
@media (min-width: 1200px) {
	.menu-btn { display: none; }
	.mainnav { display: flex; align-items: center; gap: 14px; }
	.mainnav ul { display: flex; gap: 2px; }
	.mainnav li a { border: 0; font-size: .93rem; padding: 8px 9px; border-radius: 6px; white-space: nowrap; }
	.mainnav li a:hover, .mainnav li.is-active a { background: var(--sky-l); color: var(--navy); }
	.lang { font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
}

/* Hero and page heads */
.hero, .pagehead, .block-dark { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.hero::before, .pagehead::before, .block-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 58, 85, .96) 0%, rgba(11, 58, 85, .86) 45%, rgba(11, 58, 85, .55) 100%), var(--bg, none) center / cover no-repeat; }
.hero { padding: 72px 0 80px; }
@media (min-width: 900px) { .hero { padding: 120px 0 130px; } }
.hero h1, .pagehead h1, .block-dark h2 { color: #fff; max-width: 18ch; }
.hero .label, .pagehead .label, .block-dark .label { color: #8fd3f2; }
.hero .intro { opacity: .92; }
.pagehead { padding: 56px 0 48px; }
.pagehead h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 26ch; }
.pagehead .intro { opacity: .9; margin: 0; }

.facts { background: var(--light); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.facts-in > div { background: var(--light); padding: 22px 16px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.facts span { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) { .facts-in { grid-template-columns: repeat(4, 1fr); } }

/* Blocks */
.block { padding: 56px 0; }
@media (min-width: 900px) { .block { padding: 88px 0; } }
.block-light { background: var(--light); }
.block-dark { padding: 72px 0; }
.block-dark p { opacity: .92; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.block-head h2 { margin: 0; }
.block-head a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-mid { align-items: center; } .split-flip > :first-child { order: 2; } .split-article { grid-template-columns: 1fr 300px; } }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; max-height: 520px; object-fit: cover; }
.photo-wide img { aspect-ratio: 4 / 3; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--sky); font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }
.prose sup { font-size: .7em; }
.langnote { background: var(--sky-l); color: var(--navy); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card-blue { background: var(--sky-l); border-color: transparent; }
.card-blue h3 { display: flex; gap: 8px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { display: flex; gap: 10px; padding: 7px 0; }
.ticks .ic { color: var(--sky); margin-top: 3px; }
.facts-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: .95rem; }
.facts-dl dt { color: var(--muted); }
.facts-dl dd { margin: 0; font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0; }
.files a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.files a:hover { color: var(--blue); }
.files .ic { color: var(--sky); }
.files small { display: block; color: var(--muted); font-size: .8rem; }
.objects { counter-reset: o; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .objects { grid-template-columns: 1fr 1fr; } }
.objects li { counter-increment: o; background: #fff; border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; box-shadow: var(--shadow); }
.objects li::before { content: counter(o); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Areas */
.areas { display: grid; gap: 18px; }
@media (min-width: 860px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area .ic { width: 36px; height: 36px; color: var(--blue); margin-bottom: 14px; }
.area p { color: var(--muted); margin: 0; }

/* Publications */
.pubs { display: grid; gap: 16px; }
@media (min-width: 700px) { .pubs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pubs { grid-template-columns: repeat(3, 1fr); } }
.pub { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pub:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.pub[hidden] { display: none; }
.pub-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted); }
.pub-type { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.pub strong { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; color: var(--navy); flex: 1; }
.pub-foot { display: flex; justify-content: space-between; align-items: center; }
.langs { display: flex; gap: 4px; }
.langs i { font-style: normal; font-size: .72rem; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.pdf { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--blue); }
.pdf .ic { width: 16px; height: 16px; }
.pdf-view { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); }
.side .card { position: sticky; top: 96px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.filters select, .search input { min-height: 46px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; }
.search { position: relative; flex: 1 1 260px; display: flex; }
.search .ic { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.search input { width: 100%; padding-left: 40px; }
.count { margin: 0 0 0 auto; font-size: .85rem; color: var(--muted); }
.seg { display: inline-flex; background: var(--light); border-radius: 8px; padding: 4px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.empty { color: var(--muted); }

/* Library */
.library { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 800px) { .library { grid-template-columns: 1fr 1fr; } }
.library li[hidden] { display: none; }
.library a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.library a:hover { border-color: var(--sky); }
.library .ic { color: var(--sky); margin-top: 2px; }
.library small { display: block; color: var(--muted); font-size: .78rem; }

/* News */
.news-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.news-card:hover { border-color: var(--sky); }
.nc-photo { aspect-ratio: 16 / 10; background: var(--sky-l); display: grid; place-items: center; color: var(--blue); }
.nc-photo img { width: 100%; height: 100%; object-fit: cover; }
.nc-photo .ic { width: 40px; height: 40px; }
.nc-text { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.nc-text small { color: var(--muted); }
.nc-text strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.paging .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.paging .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.paging .current { background: var(--navy); color: #fff; }

/* Get involved */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--light); text-decoration: none; font-weight: 600; color: var(--navy); }
.tabs a:hover { background: var(--sky-l); }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.cta-cards a { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; transition: background .15s; }
.cta-cards a:hover { background: rgba(255, 255, 255, .18); }
.cta-cards .ic { width: 30px; height: 30px; color: #8fd3f2; }
.iban { font-size: 1.15rem; }

/* Forms */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .94rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400; }
.form textarea { min-height: 100px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--sky-l); }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
fieldset.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (min-width: 600px) { fieldset.checks { grid-template-columns: 1fr 1fr; } fieldset.checks legend { grid-column: 1 / -1; } }
fieldset.checks legend { font-weight: 600; font-size: .94rem; margin-bottom: 4px; }
.is-error input, .is-error select, .is-error textarea { border-color: #c0392b !important; }
.tick.is-error, fieldset.is-error legend { color: #c0392b; }
.form-result { border-radius: 10px; padding: 18px; }
.form-result.is-ok { background: var(--sky-l); }
.form-result.is-ok h3 { margin-top: 0; }
.is-fail { background: #fbeae8; color: #8a2119; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; }
.contact-list .ic { color: var(--sky); margin-top: 3px; }

/* Embed */
.embed { border-radius: var(--radius); background: var(--navy) url("../img/hero.jpg") center / cover; min-height: 232px; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.embed iframe { width: 100%; height: 232px; border: 0; }
.embed.is-loaded { background: none; }
.embed-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(11, 58, 85, .8); color: #fff; border: 0; border-radius: var(--radius); padding: 22px 30px; font-weight: 700; cursor: pointer; }
.embed-btn .ic { width: 52px; height: 52px; }

/* Footer */
.foot { background: #082b40; color: #c9d7e0; padding: 56px 0 0; }
.foot h3 { color: #fff; font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-logo { width: 150px; margin-bottom: 14px; }
.social { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social-dark a { border-color: var(--line); color: var(--navy); }
.social-dark a:hover { background: var(--sky-l); }
.foot-small { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding: 18px 0 24px; font-size: .85rem; color: #94aab8; }

@media print { .top, .foot, .side, .btns { display: none !important; } .pagehead { background: none; color: #000; padding: 0; } .pagehead::before { display: none; } .pagehead h1 { color: #000; } }
