/* ===== Justice 4 Rohingya: colours and fonts =====
   Change a colour here and it changes on every page. */
:root {
  --ink: #1b2320;          /* main text */
  --heading: #1e3f35;      /* dark green, from the latest statement */
  --muted: #4c5a55;
  --paper: #ffffff;
  --mist: #e8f1ee;         /* pale green boxes */
  --line: #cfdcd6;
  --field-line: #85958f;
  --green: #1e3f35;
  --gold: #e3a92b;         /* the gold of the old buttons */
  --link: #1d5c48;
  --button: #1e3f35;
  --donate: #9a2a1f;
  --accent: #1e3f35;
  --alert: #e3a92b;
  --alert-bg: #fdf5e3;
  --focus: #1d4ed8;
  --focus-soft: rgba(29, 78, 216, 0.25);
  --header-bg: #ffffff;
  --nav-bg: #1e3f35;
  --nav-text: #ffffff;
  --nav-current: #e3a92b;
  --footer-bg: #13291f;
  --footer-text: #ffffff;
  --head-font: "Newsreader", Georgia, "Times New Roman", serif;
  --head-weight: 700;
  --body-font: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  --logo-height: 64px;
  --logo-height-small: 44px;
}


/* ===== Layout and parts shared by every page. Colours and fonts are set at the top of this file. ===== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.1875rem;
  line-height: 1.6;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--head-font);
  color: var(--heading);
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
  font-weight: var(--head-weight, 700);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ----- buttons ----- */
.button {
  display: inline-block;
  padding: 0.7em 1.3em;
  border: 2px solid var(--button);
  border-radius: var(--radius-button, 6px);
  background: var(--button);
  color: #fff;
  font: 700 1.05rem/1.2 var(--body-font);
  text-decoration: none;
  cursor: pointer;
  margin: 0 0.4rem 0.6rem 0;
}
.button:hover { filter: brightness(1.12); }
.button-quiet { background: transparent; color: var(--button); }
.button-quiet:hover { background: var(--mist); filter: none; }
.button-donate { background: var(--donate); border-color: var(--donate); }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }

/* ----- header ----- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.brand { margin-right: auto; display: block; }
.brand img { height: var(--logo-height, 72px); width: auto; }
.header-row .button { margin: 0; }
.menu-button {
  display: none;
  font: 700 1.05rem/1 var(--body-font);
  padding: 0.75em 1em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.site-nav { background: var(--nav-bg); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; padding: 0; margin-block: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.85rem 0.8rem;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--nav-current); }

@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .brand img { height: var(--logo-height-small, 56px); }
  .js .menu-button { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-block: 0.5rem; }
  .site-nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.15); text-decoration: underline; text-decoration-thickness: 3px; }
  .header-row .button-donate { padding: 0.65em 0.9em; }
}

/* ----- page bodies ----- */
main { display: block; padding-bottom: 3rem; }
.prose { max-width: 46rem; padding-top: 1.5rem; }
.prose figure, .story figure { margin: 1.5rem 0; }
.prose figure img { border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.lead { font-size: 1.3rem; line-height: 1.55; }
.page-date { color: var(--muted); font-weight: 700; margin-top: -0.2em; }
.lead-image img { width: 100%; }
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--accent);
  background: var(--mist);
}
blockquote p:last-child { margin-bottom: 0; }
.quote-by { font-weight: 700; }
.quote-by::before { content: "\2014\00a0"; }
.alert {
  border-left: 6px solid var(--alert);
  background: var(--alert-bg);
  padding: 0.9rem 1.1rem;
  font-size: 1.2rem;
}
.more { margin-top: 1.5rem; }
.small, .source { font-size: 0.95rem; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: #1b1b1b; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video { width: 100%; margin: 1.5rem 0; background: #000; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; }
td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; vertical-align: top; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.gallery a, .gallery > img { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.prose .gallery { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }

.band { background: var(--mist); padding-block: 2.5rem; margin-block: 2.5rem; }
.section-title { margin-top: 1.4em; }
.band .section-title:first-child, .band h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); margin: 0; }
.link-list a { display: block; padding: 0.7rem 0; font-weight: 700; }

.section-nav { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: 6px; }
.section-nav h2 { margin-top: 0; font-size: 1.3rem; }
.section-nav ul { list-style: none; padding: 0; margin: 0; columns: 2 16rem; }
.section-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* lists of posts and guides */
.post-list, .guide-list { list-style: none; padding: 0; }
.post-card { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.post-card h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.post-card h2 a { color: var(--heading); }
.post-card p { margin-bottom: 0.4rem; }
.post-card .page-date { margin: 0 0 0.2rem; font-size: 0.95rem; }
.post-card:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.guide-list strong { font-size: 1.2rem; }
.guide-list span { color: var(--muted); }

/* people (team, patrons) */
.person { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.person figure { margin: 0; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 6px; }
.person h2 { margin: 0; font-size: 1.45rem; }
.person-role { color: var(--muted); font-weight: 700; margin: 0.2rem 0 0.6rem; }
@media (max-width: 560px) { .person { grid-template-columns: 6.5rem 1fr; gap: 1rem; } .person h2 { font-size: 1.25rem; } }
.document { aspect-ratio: 3 / 4; max-height: 85vh; margin: 1.5rem 0 0.5rem; }
.document iframe { width: 100%; height: 100%; border: 1px solid var(--line); }

/* videos */
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 900px) {
  .hero-inner:has(.hero-video) { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-inner:has(.hero-video) > :not(.hero-video) { grid-column: 1; }
  .hero-inner > .hero-video { grid-column: 2; grid-row: 1 / span 6; }
}
.hero-video { margin: 1.75rem 0 0; }
.hero-video .video, .hero-video video { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.hero-video figcaption { font-size: 0.95rem; margin-top: 0.5rem; opacity: 0.9; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.video-pair .video, .video-grid .video { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .video-pair { grid-template-columns: 1fr; } }

/* contact boxes */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.contact-cards section { border: 2px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; }
.contact-cards h2, .contact-cards h3 { margin-top: 0; font-size: 1.25rem; }
.contact-cards ul { padding-left: 1.1em; margin: 0; }
.contact-cards p:last-child { margin-bottom: 0; }
.contact-cards a { overflow-wrap: anywhere; }

/* forms */
.site-form { background: var(--mist); padding: 1.25rem 1.5rem; border-radius: 6px; }
.site-form h2 { margin-top: 0; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--field-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--focus-soft); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.site-form .button { width: 100%; margin: 0.25rem 0 0.75rem; font-size: 1.1rem; padding: 0.85em; }
.form-and-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.form-and-contact h2 { margin-top: 0; }
@media (max-width: 760px) { .form-and-contact { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 2.5rem; font-size: 1.05rem; }
.site-footer a { color: inherit; }
.site-footer h2 { color: inherit; font-size: 1.15rem; margin: 0 0 0.6rem; font-family: var(--body-font); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.footer-name { font-weight: 700; font-size: 1.2rem; }
.footer-small { border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 1rem 0 1.5rem; margin-top: 1.5rem; font-size: 0.95rem; opacity: 0.85; }
.site-footer img { background: #fff; padding: 6px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-nav, .help-band, .menu-button, .site-footer, .button-donate { display: none !important; } }

/* ===== this site only ===== */
.button-gold { background: var(--gold); border-color: var(--gold); color: #1b2320; }
.hero { background: var(--green); color: #fff; padding: 3.5rem 0 3rem; border-bottom: 6px solid var(--gold); }
.hero h1 { color: #fff; max-width: 20ch; margin: 0 0 1rem; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.6rem); }
.hero .lead { max-width: 42rem; }
.volunteers { font-weight: 700; color: #f3d48c; }
.hero-buttons { margin: 1.5rem 0 0; }

.statement { max-width: 56rem; padding-top: 2.5rem; }
.statement-from { font-weight: 700; color: var(--muted); margin: 0; }
.statement h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: 0.2em 0 0.3em; }
.statement figure { margin: 1.5rem 0; }
.statement figcaption { background: var(--mist); padding: 0.6rem 1rem; font-size: 0.95rem; color: var(--muted); }
.statement-text { max-width: 44rem; }

.two-col h2:first-child { margin-top: 0; }
.signup { margin-top: 0; }
.prose:has(.form-and-contact) { max-width: 60rem; }
