/* Shared styles for the transcript pages of ifyouwereincharge.com.
   Colours and type follow icanpeacework.org, matching the main site. */

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

:root {
  --blue: #0071C1;
  --navy: #204183;
  --sky: #02ABDC;
  --sun: #FDB913;
  --ink: #101010;
  --text: #212529;
  --muted: #4D4F52;
  --line: #CDCDD5;
  --rule: #E6E6EA;
  --paper: #F6F6F4;
  --gradient: linear-gradient(90deg, #204183, #02ABDC);
  --font: Avenir, "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --header: 92px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 18px; font-weight: 500; line-height: 1.6; letter-spacing: 0.01em;
  color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
strong { font-weight: 800; color: var(--ink); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand .wordmark { height: 46px; width: auto; }
.brand .brand-rule { width: 1px; height: 42px; background: var(--line); }
.brand .ican { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 0 6px; border-bottom: 2px solid transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; font: 500 0.95rem var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px 10px;
  border: 1px solid var(--blue); border-radius: 2px; background: transparent;
  font: 500 0.95rem/1.2 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Page head */
.page-head {
  padding: 64px 0 56px;
  background:
    radial-gradient(640px 420px at 100% 0%, rgba(253, 185, 19, 0.16), transparent 70%),
    radial-gradient(560px 460px at 0% 100%, rgba(2, 171, 220, 0.10), transparent 70%),
    var(--paper);
}
.page-head .wrap { max-width: 820px; }
.kicker { font-size: 0.95rem; color: var(--blue); margin-bottom: 12px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; color: var(--ink); text-wrap: balance; }
.page-head.index-head h1 { color: var(--blue); font-size: clamp(2.3rem, 4.4vw, 3.2rem); letter-spacing: 0.02em; }
.standfirst { margin-top: 16px; font-size: 1.15rem; max-width: 40em; }
.band { height: 12px; background: var(--gradient); }

/* Transcript */
main { padding: 48px 0 96px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 0.95rem; }
.note { margin-bottom: 40px; padding: 14px 18px; border-left: 3px solid var(--sun); background: var(--paper); font-size: 0.9rem; color: var(--muted); }
.turn { margin-bottom: 22px; }
.speaker { display: block; margin-bottom: 2px; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; color: var(--blue); }
.cont { margin-top: -10px; }

/* Transcripts list */
.eplist a { display: block; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.eplist a:first-child { border-top: 1px solid var(--rule); }
.eplist .n { font-size: 0.85rem; color: var(--muted); }
.eplist .t { margin-top: 2px; font-size: 1.15rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.eplist a:hover .t { color: var(--blue); }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--rule); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand .wordmark { height: 42px; width: auto; }
.footer-brand .brand-rule { width: 1px; height: 38px; background: var(--line); }
.footer-brand .ican { height: 48px; width: auto; }
.footer-about { margin-top: 20px; max-width: 34em; font-size: 0.95rem; color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: 0.95rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }

/* Narrow tablet: the menu links no longer fit beside the two logos */
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 8px 32px 16px;
    box-shadow: 0 12px 24px rgba(16, 16, 16, 0.08);
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-links.open a[aria-current="page"] { border-bottom-color: var(--rule); }
}

@media (max-width: 760px) {
  :root { --header: 72px; }
  body { font-size: 17px; }
  .wrap, .container { padding: 0 16px; }
  .brand { gap: 12px; }
  .brand .wordmark { height: 36px; }
  .brand .brand-rule { height: 32px; }
  .brand .ican { height: 26px; }
  .nav-links.open { padding: 8px 16px 16px; }
  .page-head { padding: 44px 0 40px; }
  main { padding: 36px 0 72px; }
  .footer-brand .wordmark { height: 36px; }
  .footer-brand .ican { height: 40px; }
}

@media (max-width: 380px) {
  .brand .brand-rule { display: none; }
  .brand .wordmark { height: 32px; }
  .brand .ican { height: 22px; }
  .menu-btn { padding: 9px 10px; }
}
