
:root {
  --primary: #1F2A44;   /* dark navy: headings + text */
  --secondary: #4F6E55; /* muted green: links + buttons */
  --white: #FFFFFF;
  --black: #1F2A44;

  --bg: #FAF7F2;        /* warm off-white */
  --bg-alt: #F2EDE4;    /* slightly deeper panel */
  --muted: #5B6478;     /* dates, captions */
  --line: #E3DCD0;

  --font: 'Inter', Arial, sans-serif;
  --headingfont: 'Inter', Arial, sans-serif;
}


*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{ 
  scroll-behavior: smooth; 
}

body{
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
}

img{
  border: 0;
  max-width:100%;
}

a{
  text-decoration: none;
  cursor:pointer;
  transition:.7s color, .7s background-color, .3s opacity;
  color: inherit;
}
a:focus{
  outline: none;
}
a:hover{
  transition:.3s color, .3s background-color, .3s opacity;
}


h1{
  font-family: var(--headingfont);
  color: var(--primary); 
  font-size: 3rem;
}
h2{
  font-family: var(--headingfont);
  color: var(--primary); 
  font-size: 2rem;
}
h3{
  font-family: var(--headingfont);
  color: var(--primary); 
  font-size: 1.5rem;
  margin: 30px 0 10px 0; 
}
h4{
  font-family: var(--headingfont);
  color: var(--primary); 
  font-size: 1.3rem;
  margin: 30px 0 10px 0; 
}
p{
  margin-bottom: 15px;
}
p:last-child{
  margin-bottom:0;
}

h3:first-child, h4:first-child, p:first-child{
  margin-top:0;
}



ul, ol{
  margin: 0 0 15px 30px;
}

.large{
  font-size: 1.2rem;
}
.small{
  font-size: 0.9rem;
}

.thin{ font-weight: 100; }
.light{ font-weight:300; }
.semi{ font-weight: 600; }
.bold{ font-weight: 700; }
.black{ font-weight: 900; }

.clear{ clear: both; }

.container{
  margin: 0 auto;
  width: 90%;
  max-width: 1180px;
  position:relative;
}
.container.med{
  max-width: 850px; 
}
.container.narrow{
  max-width: 600px;
}

.flex{
  display:flex;
}
.flex.wrap{
  flex-wrap:wrap;
}
.flex.end{
  align-items:flex-end;
}
.flex.vert{
  align-items:center;
}
.flex.gap{
  gap: 50px; 
}

.flex .full{ width: 100%; }
.flex .half{ width: 50%; }
.flex .third{ width: 33.33%; }
.flex .quarter{ width: 25%; }

.flex.swap{
  flex-direction: row-reverse;
}



.g1{ display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
.g2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g5{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.g6{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.g7{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.g8{ display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; }
.g9{ display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px; }
.g10{ display: grid; grid-template-columns: repeat(10, 1fr); gap: 20px; }
.g11{ display: grid; grid-template-columns: repeat(11, 1fr); gap: 20px; }
.g12{ display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.s1{ grid-column: span 1; }
.s2{ grid-column: span 2; }
.s3{ grid-column: span 3; }
.s4{ grid-column: span 4; }
.s5{ grid-column: span 5; }
.s6{ grid-column: span 6; }
.s7{ grid-column: span 7; }
.s8{ grid-column: span 8; }
.s9{ grid-column: span 9; }
.s10{ grid-column: span 10; }
.s11{ grid-column: span 11; }
.s12{ grid-column: span 12; }


.grid-gap{
  gap: 50px !important;
}
.grid-tight{
  gap: 10px !important;
}

.grid-vert{
  align-items: center;
}

.grid-swap div:first-child{
  order: 2;
}
.grid-swap div:last-child{
  order:1;
}


.margined{ margin: 100px auto; }
.margined-med{ margin: 50px auto; }
.margined-small{ margin: 25px auto; }
.margined-tiny{ margin: 5px auto; }

.topmargin{ margin-top: 100px; }
.topmargin-med{ margin-top: 50px; }
.topmargin-small{ margin-top: 25px; }
.topmargin-tiny{ margin-top: 5px; }

.bottommargin{ margin-bottom: 100px; }
.bottommargin-med{ margin-bottom: 50px; }
.bottommargin-small{ margin-bottom: 25px; }
.bottommargin-tiny{ margin-bottom: 5px; }


.padded{  padding: 100px; }
.padded-med{ padding: 50px; }
.padded-small{ padding: 25px; }
.padded-tiny{ padding: 5px; }

.vpadded{  padding: 100px 0; }
.vpadded-med{ padding: 50px 0; }
.vpadded-small{ padding: 25px 0; }
.vpadded-tiny{ padding: 5px 0; }


.left{ text-align:left; }
.center{ text-align:center; }
.right{ text-align:right; }

.relative{ position:relative; }
.absolute{ position:absolute; }
.fixed{ position:fixed; }

.inline{ display:inline; }
.inlineblock{ display:inline-block; }
.block{ display: block; }


.label{
  display:block;
  margin: 20px 0 5px 0; 
  font-size: .8rem;
}
.input{
  display:block;
  width:100%;
  padding: 8px 15px;
  font-family: var(--font);
  color: var(--primary); 
  font-size: 1rem; 
  border: 1px solid #CCCCCC;
  background-color: #FFFFFF;
  transition: .3s border-color; 
}
.input:focus{
  outline: none;
  border-color: var(--primary);
  transition: .3s border-color; 
}


.buttons{
  display:flex;
  gap: 20px; 
}
.buttons.center{
  justify-content: center;
}

.button{
  display: inline-block;
  border-radius: 15px;
  background-color: var(--secondary);
  color:var(--white);
  padding: 10px 25px;
  cursor:pointer; 
  transition: .7s transform;
  font-family: var(--font); 
  font-size: 1.1rem; 
}
.button:hover{
  background-color: var(--primary);
  color:var(--white);
  transform: scale(1.05);
  transition: .3s transform;
  text-decoration: none; 
}


.v50{ height: 50vh; }
.v75{ height: 75vh; }
.v100{ height: 100vh; }

img.block{
  width:100%;
}
.bgcover{
  background-size:cover;
  background-position: center center;
  background-repeat: no-repeat;
}

img.aspect{ object-fit: cover; }
.aspect-square{ aspect-ratio: 1/1; }
.aspect-video{ aspect-ratio: 16/9; }
.aspect-photo{ aspect-ratio: 4/3; }
.round{ aspect-ratio: 1/1; border-radius: 50%; }

.bg-primary{ background-color: var(--primary); }
.bg-secondary{ background-color: var(--secondary); }
.bg-white{ background-color: var(--white); }
.bg-dark{ background-color: var(--dark); }

.text-primary{ color: var(--primary); }
.text-secondary{ color: var(--secondary); }
.text-black{ color: var(--black); }
.text-white{ color: var(--white); }

.dev-error{
  border: 2px solid #BF312F;
  background-color: #FCDFDF;
  padding: 10px;
  margin: 20px auto;
  font-size: 13px;
  line-height: 15px;
}

.hover-zoom{
  transition: .7s transform, .7s background-color;
}
.hover-zoom:hover{
  transform: scale(1.05);
  transition: .3s transform, .3s background-color;
}


.xscroll{
  width: 100%;
  overflow-x:auto;
}

.gone{ display:none; }
.here{ display: block; }


/* ==========================================================
   Ryan Weir additions
   ========================================================== */

body{ background-color: var(--bg); }
h1, h2{ letter-spacing: -0.02em; line-height: 1.15; }
h2{ margin-bottom: 20px; }
a:focus-visible, button:focus-visible{ outline: 3px solid var(--secondary); outline-offset: 3px; }

.bg-alt{ background-color: var(--bg-alt); }
.text-muted{ color: var(--muted); }
.link{ color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.link:hover{ color: var(--primary); }
.eyebrow{ display:block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }

/* site header + footer */
.site-header{ padding: 25px 0; }
.site-header a{ font-weight: 700; color: var(--primary); }
.site-footer{ padding: 40px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer a{ color: var(--muted); }
.site-footer a:hover{ color: var(--secondary); }

/* hero */
.hero-photo{ width: 100%; max-width: 420px; border-radius: 20px; }
.hero-lede{ font-size: 1.35rem; line-height: 1.5; margin-top: 15px; }

/* photos with captions */
.photo{ margin: 0; }
.photo img{ display:block; width:100%; height:auto; border-radius: 14px; }
.photo figcaption{ font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.photo.tall img{ aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; }

/* click-to-load YouTube (data-video-id on .video) */
.video{ position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--primary); }
.video img, .video iframe{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; border:0; }
.video-play{ position:absolute; inset:0; width:100%; height:100%; border:0; background: transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.video-play span{ width: 88px; height: 88px; border-radius: 50%; background: var(--secondary); box-shadow: 0 6px 24px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; transition: .3s transform, .3s background-color; }
.video-play span::after{ content:''; margin-left: 6px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--white); }
.video-play:hover span{ transform: scale(1.08); background: var(--primary); }
.video-caption{ font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* transcript toggle */
.transcript{ margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.transcript summary{ cursor:pointer; font-weight: 600; color: var(--secondary); }
.transcript[open] summary{ margin-bottom: 15px; }

/* monthly updates */
.update-date{ display:block; font-size: .9rem; color: var(--muted); margin-bottom: 5px; }
.update-list{ list-style: none; margin: 0; }
.update-list li{ padding: 15px 0; border-bottom: 1px solid var(--line); }
.update-list li:first-child{ border-top: 1px solid var(--line); }
.update-list a{ font-weight: 600; color: var(--primary); }
.update-list a:hover{ color: var(--secondary); }
.writeup p{ font-size: 1.1rem; }

/* as featured in */
.featured-logos{ display:flex; flex-wrap: wrap; justify-content:center; align-items:center; gap: 20px 50px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-logos img{ height: 32px; width: auto; opacity: .75; filter: grayscale(1); }
.featured-logos .logo-placeholder{ font-weight: 700; font-size: 1.15rem; color: var(--muted); }
.media-item{ padding: 25px 0; border-bottom: 1px solid var(--line); }
.media-item h3{ margin: 5px 0 8px 0; font-size: 1.2rem; }
.media-item h3 a:hover{ color: var(--secondary); }

/* contact */
.contact-links{ display:flex; flex-wrap: wrap; justify-content:center; gap: 15px 40px; font-size: 1.35rem; font-weight: 600; }
.contact-links a{ color: var(--primary); border-bottom: 2px solid var(--secondary); }
.contact-links a:hover{ color: var(--secondary); }
.button.outline{ background: transparent; color: var(--secondary); box-shadow: inset 0 0 0 2px var(--secondary); }
.button.outline:hover{ background: var(--secondary); color: var(--white); }

/* contact block on navy */
.contact-dark a{ color: var(--bg); border-bottom-color: #8FB096; }
.contact-dark a:hover{ color: #B9D3BE; }
.bg-primary .button:hover{ background-color: var(--bg); color: var(--primary); }

picture img, .photo img, .hero-photo{ height: auto; }
.site-footer p{ margin: 0; }

/* green hero header */
.hero{ position: relative; overflow: hidden; background-color: var(--secondary); color: var(--white); padding: 90px 0 170px 0; }
.hero::before, .hero::after{ content:''; position:absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events:none; }
.hero::before{ width: 620px; height: 620px; top: -260px; right: -180px; }
.hero::after{ width: 380px; height: 380px; bottom: -220px; left: -120px; background: rgba(31,42,68,.12); }
.hero .container{ z-index: 1; }
.hero h1{ color: var(--white); font-size: 4rem; }
.hero .hero-lede{ color: rgba(255,255,255,.92); }
.hero-eyebrow{ display:block; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.hero .hero-photo{ border: 6px solid rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.video-overlap{ position: relative; z-index: 2; margin-top: -120px; padding-bottom: 25px; }
.video-overlap .video{ box-shadow: 0 20px 50px rgba(31,42,68,.25); }

/* sub-page header to match */
.site-header{ background-color: var(--secondary); }
.site-header a{ color: var(--white); }

/* green header on sub-pages (monthly updates) */
.hero-page{ padding: 40px 0 160px 0; }
.hero-page.hero-short{ padding-bottom: 80px; }
.hero-page h1{ font-size: 3rem; max-width: 800px; }
.hero-home{ display:inline-block; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 50px; }
.hero-home:hover{ color: rgba(255,255,255,.75); }
.hero-crumb{ display:block; font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.hero-crumb:hover{ color: var(--white); text-decoration: underline; }
.hero-page .hero-eyebrow time{ font-weight: 600; }

/* monthly update cards */
.update-grid{ gap: 30px; }
.update-card a{ display:flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(31,42,68,.06); transition: .5s transform, .5s box-shadow; }
.update-card a:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,42,68,.14); transition: .3s transform, .3s box-shadow; }
.update-card-thumb{ position: relative; aspect-ratio: 16/9; background: var(--primary); }
.update-card-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.update-card-play{ position:absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--secondary); box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: .3s background-color; }
.update-card-play::after{ content:''; position:absolute; left: 21px; top: 17px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--white); }
.update-card a:hover .update-card-play{ background: var(--primary); }
.update-card-body{ padding: 20px 22px 24px 22px; }
.update-card-body h3{ margin: 0 0 8px 0; font-size: 1.15rem; line-height: 1.3; }
.update-card a:hover h3{ color: var(--secondary); }
.update-card-body p{ font-size: .95rem; color: var(--muted); }
.bg-alt .update-card a{ box-shadow: none; }

/* hero "Get in touch" link */
.hero-cta{ display:inline-block; margin-top: 20px; font-weight: 600; color: var(--white); border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.hero-cta span{ display:inline-block; transition: .3s transform; }
.hero-cta:hover{ color: var(--white); border-bottom-color: var(--white); }
.hero-cta:hover span{ transform: translateX(4px); }

/* logo row: 4 outlets */
.featured-logos{ gap: 20px 56px; }
.featured-logos img{ height: 36px; max-width: 150px; object-fit: contain; }

/* logos in full colour, optically balanced */
.featured-logos img{ filter: none; opacity: 1; width: auto; max-width: none; }
.featured-logos .logo-newstalk-zb{ height: 26px; }
.featured-logos .logo-stuff{ height: 34px; }
.featured-logos .logo-the-post{ height: 38px; }
.featured-logos .logo-today-fm{ height: 40px; }
.featured-logos .logo-newstalk-zb{ height: 34px; }
.featured-logos .logo-the-post{ height: 36px; }
