/* Indian Brachytherapy Society - archive rebuild
   Palette and type taken from the society's 2015 stylesheet. */

:root {
  --blue-900: #184775;
  --blue-700: #2b5d92;
  --blue-600: #33669d;
  --blue-500: #356aa0;
  --blue-300: #8cb8d3;
  --blue-050: #e4f5fc;
  --red: #c42f2f;
  --ink: #2f3a44;
  --ink-soft: #55606a;
  --rule: #cfdde9;
  --white: #fff;
  --shell: 1040px;
  --font-body: "Open Sans", Verdana, Geneva, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, .footer-title {
  font-family: var(--font-body);
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue-900);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: block;
  position: relative;
  z-index: 60;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  display: block;
  width: 340px;
  max-width: 100%;
  height: auto;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  margin-left: auto;
  width: 46px; height: 40px;
  padding: 0;
  border: 1px solid var(--blue-500);
  border-radius: 4px;
  background: var(--blue-500);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--white);
  content: "";
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-900);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: linear-gradient(to bottom, var(--blue-300) 0%, var(--blue-700) 100%);
  color: var(--white);
}

/* ---------- hero ---------- */

.hero {
  padding: 48px 0 40px;
  background: linear-gradient(to bottom, var(--blue-600) 0%, var(--blue-900) 100%);
  color: var(--white);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 46px);
}

.hero-reg {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--blue-050);
}

.hero-note {
  max-width: 760px;
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--blue-300);
  background: rgba(255, 255, 255, .12);
  font-size: 15px;
}

/* ---------- bands ---------- */

.band { padding: 48px 0; }
.band-alt { background: var(--blue-050); }

.band h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-300);
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--blue-500);
}

.band h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  color: var(--blue-900);
}

.lead {
  max-width: 78ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.band ul { padding-left: 20px; }
.band li { margin-bottom: .5em; }

.ticks { list-style: square; }

.fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- split with figure ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.split > * { min-width: 0; }

.figure {
  margin: 28px 0 0;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--white);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- messages ---------- */

.message {
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

.message + .message { margin-bottom: 0; }

.message-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.message-head > div { min-width: 0; }

.message-head img {
  width: 140px;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.message h3 { margin: 0; }

.byline {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
}

.message blockquote {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--blue-300);
  font-size: 15px;
  color: var(--ink-soft);
}

.message blockquote p:last-child { margin-bottom: 0; }

.signatories {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.signatories li {
  flex: 1 1 200px;
  margin: 0;
  font-size: 14px;
}

.signatories span {
  display: block;
  color: var(--ink-soft);
}

/* ---------- definition lists ---------- */

.bearers, .categories { margin: 0; }

.bearers > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.bearers dt {
  flex: 0 0 180px;
  font-weight: 700;
  color: var(--blue-900);
}

.bearers dd { margin: 0; }

.categories > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.categories dt {
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--blue-900);
}

.categories dd {
  margin: 0;
  color: var(--ink-soft);
}

.members {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
}

/* ---------- tables ---------- */

.table {
  width: 100%;
  margin-bottom: 12px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}

.table caption {
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.table th, .table td {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  text-align: left;
}

.table thead th {
  background: var(--blue-500);
  color: var(--white);
  font-stretch: 75%;
}

/* ---------- contact ---------- */

.contact-card {
  display: inline-block;
  padding: 18px 22px;
  border-left: 4px solid var(--blue-500);
  background: var(--white);
  font-style: normal;
  line-height: 1.8;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 36px 0 28px;
  background: var(--blue-500);
  color: var(--white);
}

.footer-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.site-footer p {
  max-width: 82ch;
  font-size: 14px;
}

.copyright {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px;
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .figure { max-width: 320px; }
  .members { columns: 1; }

  .nav-toggle { display: block; }

  .primary-nav {
    display: none;
    flex: 1 0 100%;
    margin-left: 0;
    padding-top: 10px;
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul { flex-direction: column; gap: 0; }

  .primary-nav a {
    padding: 12px 6px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    font-size: 16px;
  }

  .bearers dt { flex: 0 0 100%; }
  .message { padding: 16px; }
  .message-head img { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
