/* Base stylesheet — simple, dependency-free, no external fonts/CDNs.
   Per-site colour variables are set at the top of this file by the build script. */

@font-face{
  font-family:'Source Sans Pro';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('_source-sans-pro-300.woff2') format('woff2');
}
@font-face{
  font-family:'Source Sans Pro';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('_source-sans-pro-400.woff2') format('woff2');
}
@font-face{
  font-family:'Source Sans Pro';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('_source-sans-pro-700.woff2') format('woff2');
}

:root{
  --bg:#ffffff;
  --bg-alt:#f4f4f2;
  --text:#212121;
  --text-dim:#5a5a5a;
  --accent:#016dff;
  --accent-text:#ffffff;
  --border:#dddddd;
  --max-width:760px;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-weight:300;
  line-height:1.2;
  font-size:20px;
}
img{max-width:100%;display:block;height:auto;border-radius:4px;}
hr{border:none;border-top:1px solid var(--border);margin:2.5rem 0;}
a{color:var(--accent);text-decoration:none;}
a:hover,a:focus{text-decoration:underline;}

h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:300;line-height:1.2;color:var(--text);}
h1{font-size:2.1rem;margin:0 0 .5rem;}
h2{font-size:28px;margin:2rem 0 .75rem;}
h3{font-size:1.2rem;margin:1.5rem 0 .5rem;color:var(--text-dim);font-style:italic;}
h4,h5{font-size:22px;font-weight:600;margin:0 0 8px;}
p{margin:0 0 8px;}

ul,ol{padding-left:1.3rem;}
li h4{margin:0 0 .4rem;}

.skip-link{
  position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-text);
  padding:.5rem 1rem;z-index:100;
}
.skip-link:focus{left:0;}

/* ---------- Header ---------- */
.site-header{
  background:var(--bg);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:20;
}
.site-header-inner{
  max-width:980px;margin:0 auto;display:flex;align-items:center;
  justify-content:space-between;padding:1.1rem 1.25rem;
}
.brand{display:flex;align-items:center;gap:.6rem;}
.brand img{margin:0;border-radius:0;height:60px;width:auto;}
.brand-name{font-family:var(--font-heading);font-size:1.3rem;color:var(--text);}

.nav-toggle{
  display:none;background:none;border:1px solid var(--border);color:var(--text);
  font-size:1.3rem;line-height:1;padding:.3rem .6rem;border-radius:4px;cursor:pointer;
}
nav.main-nav ul{
  display:flex;gap:1.4rem;list-style:none;margin:0;padding:0;flex-wrap:wrap;
}
nav.main-nav a{
  color:var(--text-dim);font-size:.95rem;letter-spacing:.02em;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"]{color:var(--accent);text-decoration:none;}

@media (max-width: 700px){
  .nav-toggle{display:inline-block;}
  nav.main-nav{
    display:none;width:100%;
  }
  nav.main-nav.open{display:block;}
  nav.main-nav ul{flex-direction:column;gap:.9rem;padding:1rem 0 0;}
  .site-header-inner{flex-wrap:wrap;}
  .brand img{height:46px;}
}

/* ---------- Hero ---------- */
.hero{max-width:980px;margin:0 auto;}
.hero figure{margin:0;}
.hero img{border-radius:0;width:100%;display:block;}
.hero figcaption, .hero h3{
  text-align:right;font-size:.85rem;color:var(--text-dim);
  max-width:var(--max-width);margin:.4rem auto 0;padding:0 1.25rem;
}

.quicklinks{
  background:var(--bg-alt);border-bottom:1px solid var(--border);
}
.quicklinks-inner{
  max-width:980px;margin:0 auto;padding:.75rem 1.25rem;font-size:.9rem;
  display:flex;gap:1.2rem;flex-wrap:wrap;align-items:center;
}
.quicklinks hr{display:none;}
.quicklinks strong{font-weight:600;}

/* ---------- Main content ---------- */
main{
  max-width:var(--max-width);margin:0 auto;padding:2.5rem 1.25rem 4rem;
}
main figure{margin:1.75rem 0;}

/* Images fill the text column width by default (rule: image as wide as body column) */
main img{width:100%;max-width:100%;margin:0 auto;}

/* Vertical/portrait images are the exception — sized to their own
   proportions instead of stretched to the full column width. */
main img.portrait{width:auto;max-width:100%;max-height:80vh;}

main figcaption{
  text-align:right;font-size:.85rem;color:var(--text-dim);
  margin:.4rem 0 0;
}

main iframe{
  width:100%;aspect-ratio:16/9;border:0;border-radius:4px;display:block;margin:1.75rem 0;
}
main figure iframe{margin:0;}

.page-title{
  max-width:var(--max-width);margin:2rem auto 0;padding:0 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);background:var(--bg-alt);
  padding:2rem 1.25rem;text-align:center;color:var(--text-dim);font-size:.9rem;
}
.site-footer a{color:var(--text-dim);}
.site-footer a:hover{color:var(--accent);}
.social-list{list-style:none;display:flex;justify-content:center;gap:1rem;margin:0 0 1rem;padding:0;}
.footer-sites{margin-top:.75rem;font-size:.85rem;}