/*
 * Static chrome and layout for africanDRONE, after the old Squarespace
 * Bedford look: black header with the logo on the left and the menu on the
 * right, a photo banner with white text under it, a centred content column
 * of 1020px, a dark pre-footer with the social links and a darker footer.
 * Loaded before behavior.css (base.njk), which owns the runtime states
 * (page fade, lightbox, grid spacer).
 * Breakpoints: 932px (tablet, burger menu) and 540px (phone).
 */

/* ---------------------------------------------------------------------- *
 * Custom properties
 * ---------------------------------------------------------------------- */
:root {
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --c-header: #000000;
  --c-text: #1f1f1f;
  --c-dark: #1f1f1f;
  --c-mid: #777777;
  --c-hover: #555555;
  --c-link: #3d9991;
  --c-btn: #06bcb6;
  --c-btn-hover: #059b96;
  --c-prefooter: #333333;
  --c-footer: #1f1f1f;
  --max-content: 1020px;
  --max-text: 100%;
  /* Site styles (content/site/styles.yml) arrive as --s-bg, --s-text,
     --s-heading, --s-menu and --s-menu-active, and as new values of
     --c-btn, --c-btn-hover, --font-head, --font-body, --max-content and
     --max-text. Where a style is not set, the value written in this file
     applies. */
}

/* ---------------------------------------------------------------------- *
 * Reset / base
 * ---------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--s-bg, #fff);
  font: 400 16px/1.7 var(--font-body);
  color: var(--s-text, var(--c-text));
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  vertical-align: top;
  border: 0;
  max-width: 100%;
}
p {
  margin: 0;
}
a {
  color: var(--c-link);
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------------------------- *
 * Accessibility: skip link, focus rings, screen-reader text
 * ---------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #fff;
  color: var(--c-dark);
  padding: 14px 20px;
  font: 14px/1.4 var(--font-body);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-btn);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------- *
 * Header: logo left, menu right (Bedford)
 * ---------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--c-header);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
}
.logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.logo img {
  width: auto;
  height: 72px;
}
.wordmark {
  font: 700 22px/1 var(--font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 22px;
}
.nav .group {
  position: relative;
}
.nav a,
.nav .group-title {
  display: inline-flex;
  align-items: center;
  font: 400 13px/1.4 var(--font-head);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--s-menu, rgba(255, 255, 255, 0.85));
  padding: 8px 0;
}
.nav a:hover,
.nav a.active,
.nav .is-here > .group-title > a {
  color: var(--s-menu-active, #fff);
}
.nav a.active {
  box-shadow: inset 0 -1px 0 currentColor;
}
/* On wide screens a folder opens on hover or focus; its chevron is only
   for the burger menu. */
.nav .drop-toggle {
  display: none;
}
.nav .group-items {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 190px;
  padding: 10px 0;
  background: var(--c-header);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav .group:hover > .group-items,
.nav .group:focus-within > .group-items,
.nav .group.is-open > .group-items {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.nav .group-items a {
  display: block;
  padding: 7px 16px;
  white-space: nowrap;
}
.burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: #fff;
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}

/* ---------------------------------------------------------------------- *
 * Burger menu (932px and narrower)
 * ---------------------------------------------------------------------- */
.menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  background: var(--c-header);
  color: #fff;
  padding: 80px 32px 40px;
}
html.menu-open,
html.menu-open body {
  overflow: hidden;
}
html.menu-open .menu {
  display: block;
}
.menu-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.menu-close::after {
  transform: rotate(-45deg);
}
.menu-nav .nav-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.menu-nav a {
  display: block;
  font: 400 15px/1.4 var(--font-head);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 14px 0;
}
.menu-nav a.active {
  color: var(--c-btn);
}
.menu-nav .group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-nav .drop-toggle {
  width: 44px;
  height: 44px;
  position: relative;
}
.menu-nav .drop-toggle::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.menu-nav .group.is-open .drop-toggle::before {
  top: 20px;
  transform: rotate(-135deg);
}
.menu-nav .group-items {
  display: none;
  padding: 0 0 10px 16px;
}
.menu-nav .group.is-open .group-items {
  display: block;
}
.menu-nav .group-items a {
  font-size: 14px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 932px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-inner {
    padding: 14px 20px;
  }
  .logo img {
    height: 56px;
  }
}

/* ---------------------------------------------------------------------- *
 * Banner (Bedford banner-thumbnail): photo behind white text
 * ---------------------------------------------------------------------- */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  background: #222;
  color: #fff;
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.banner-text {
  position: relative;
  max-width: 1020px;
  padding: 96px 32px;
  text-align: center;
}
.banner .banner-text p {
  font: 400 26px/1.5 var(--font-body);
  color: #fff;
  text-align: center;
  padding: 0 0 16px;
}
.banner .banner-text p:last-child {
  padding-bottom: 0;
}
.banner .banner-text strong {
  display: block;
  font: 700 68px/1.1 var(--font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.banner .banner-text a {
  color: #fff;
  text-decoration: underline;
}
/* The last link of the banner text is a button, as on the old site. */
.banner .banner-text p:last-child > a:only-child {
  display: inline-block;
  margin-top: 12px;
  padding: 18px 30px;
  border-radius: 300px;
  background: var(--c-btn);
  font: 600 15px/1 var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.banner .banner-text p:last-child > a:only-child:hover {
  background: var(--c-btn-hover);
}
@media (max-width: 932px) {
  .banner {
    min-height: 260px;
  }
  .banner-text {
    padding: 64px 20px;
  }
  .banner .banner-text p {
    font-size: 19px;
  }
  .banner .banner-text strong {
    font-size: 40px;
  }
}
@media (max-width: 540px) {
  .banner .banner-text strong {
    font-size: 30px;
    letter-spacing: 1px;
  }
  .banner .banner-text p {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------------------- *
 * Page column and headings
 * ---------------------------------------------------------------------- */
.page {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 96px 32px;
}
.page-head,
.post-head {
  text-align: center;
  padding-bottom: 40px;
}
.page-title {
  margin: 0;
  font: 400 34px/1.25 var(--font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--s-heading, #000);
}
@media (max-width: 932px) {
  .page {
    padding: 40px 20px;
  }
  .page-title {
    font-size: 26px;
  }
}

/* ---------------------------------------------------------------------- *
 * Rich text
 * ---------------------------------------------------------------------- */
.rich {
  font: 400 16px/1.7 var(--font-body);
  color: var(--s-text, var(--c-text));
  text-align: var(--align, left);
}
.rich p {
  padding: 0 0 1.2em;
}
.rich > :last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}
.rich h1,
.rich h2,
.rich h3,
.rich h4 {
  color: var(--s-heading, #000);
  font-family: var(--font-head);
  margin: 0;
  padding: 0.6em 0 0.8em;
}
.rich h1 {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.25;
  text-transform: uppercase;
}
.rich h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}
.rich h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}
.rich h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.rich > h1:first-child,
.rich > h2:first-child,
.rich > h3:first-child {
  padding-top: 0;
}
.rich ul,
.rich ol {
  margin: 0;
  padding: 0 0 1.2em 1.4em;
}
.rich ul {
  list-style: disc;
}
.rich li {
  padding-bottom: 0.3em;
}
.rich li p {
  padding: 0;
}
.rich blockquote {
  margin: 0 0 1.2em;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--c-btn);
  font-style: italic;
}
.rich a {
  color: var(--c-link);
}
.rich a:hover {
  text-decoration: underline;
}
.rich strong,
.rich b {
  font-weight: 700;
}
.rich em {
  font-style: italic;
}
.caption {
  font: 400 14px/1.5 var(--font-body);
  color: var(--c-mid);
  text-align: center;
  padding-top: 10px;
}
.caption p {
  padding: 0;
}

/* ---------------------------------------------------------------------- *
 * Blocks
 * ---------------------------------------------------------------------- */
.blocks {
  overflow: visible;
}
/* Photo */
figure {
  margin: 0;
}
.block.photo {
  margin: 0 auto;
  padding-bottom: 40px;
  max-width: 100%;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.03);
}
.photo .shot {
  display: block;
  position: relative;
}
.photo .js-zoom {
  cursor: zoom-in;
}

@media (max-width: 932px) {
  .block.photo {
    padding-bottom: 20px;
  }
}
@media (max-width: 540px) {
  .block.photo {
    padding-bottom: 18px;
  }
}

/* Text */
.block.text {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 20px 0 40px;
}
@media (max-width: 932px) {
  .block.text {
    max-width: none;
    padding: 14px 5% 20px;
  }
}
@media (max-width: 540px) {
  .block.text {
    padding: 13px 5% 18px;
  }
}

/* Button */
.block.button {
  text-align: center;
  padding: 20px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  color: #ffffff;
  background-color: var(--c-btn);
  font: 700 18px var(--font-body);
  line-height: 40px;
  padding: 0 30px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--c-btn-hover) !important;
}
@media (max-width: 932px) {
  .block.button {
    padding: 14px 5%;
  }
  .btn {
    font-size: 14px;
    line-height: 38px;
    padding: 0 29px;
  }
}
@media (max-width: 540px) {
  .btn {
    line-height: 35px;
    padding: 0 26px;
  }
}

/* Embed */
.block.embed {
  margin: 0 auto;
  padding-bottom: 40px;
  max-width: 100%;
}
.embed-size {
  margin: 0 auto;
}
.embed-box {
  position: relative;
}
/* A pasted iframe in an html block, wrapped in .embed-box by the build. */
.rich .embed-box {
  margin: 0 0 20px;
}
/* Native video in text, blocks and embeds never runs wider than its column. */
.rich video,
.block video,
.embed-box video {
  display: block;
  max-width: 100%;
  height: auto;
}
.embed-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 932px) {
  .block.embed {
    padding-bottom: 20px;
  }
}
@media (max-width: 540px) {
  .block.embed {
    padding-bottom: 18px;
  }
}

/* Video block: a video file in the same wrapper as an embed. The player
   keeps the shape of the video and runs the full width of the column. */
.video-box video {
  width: 100%;
  background: #000;
}

/* A video block whose file is missing at build time, and a slideshow with
   no photo left, render an empty wrapper: hidden here, outlined in edit
   mode (editor.css) so the block can still be picked and fixed. */
.block.video:not(:has(video)),
.block.slideshow:not(:has(.slideshow-frame)) {
  display: none;
}

/* Spacer block: empty space only. */
.block.spacer {
  padding: 0;
}
.spacer-small {
  height: 1.5rem;
}
.spacer-medium {
  height: 3rem;
}
.spacer-large {
  height: 6rem;
}

/* Rule (line) block. A narrow line is a third of the column, at least 80px. */
.block.rule-block {
  padding-bottom: 40px;
}
.rule {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--c-mid);
}
.rule-narrow {
  width: 33%;
  min-width: 80px;
}
.rule-narrow.rule-center {
  margin-left: auto;
  margin-right: auto;
}
.rule-narrow.rule-right {
  margin-left: auto;
}

/* Slideshow block: a strip that snaps to one photo at a time and scrolls
   without JavaScript. site.js shows the buttons, counter and caption line
   and adds .is-live, which hides the per-photo captions. */
.block.slideshow {
  padding-bottom: 40px;
  margin: 0 auto;
  max-width: 100%;
}
.slideshow-frame {
  position: relative;
}
.slideshow-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slideshow-track::-webkit-scrollbar {
  display: none;
}
.slideshow-track:focus-visible {
  outline: 2px solid var(--c-btn);
  outline-offset: 2px;
}
.slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.slide-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide-caption,
.slideshow-bar {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-mid);
  padding-top: 8px;
}
.slideshow.is-live .slide-caption {
  display: none;
}
.slideshow-bar {
  display: flex;
  gap: 14px;
}
.slideshow-bar[hidden] {
  display: none;
}
.slideshow-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--c-dark);
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}
.slideshow-btn[hidden] {
  display: none;
}
.slideshow-btn:hover {
  background: #fff;
}
.slideshow-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.slideshow-prev {
  left: 10px;
}
.slideshow-next {
  right: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .slideshow-track {
    scroll-behavior: auto;
  }
}
@media (max-width: 932px) {
  .block.slideshow,
  .block.rule-block {
    padding-bottom: 20px;
  }
}
@media (max-width: 540px) {
  .block.slideshow,
  .block.rule-block {
    padding-bottom: 18px;
  }
  .slideshow-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 32px;
  }
}

/* Row (flex "tree"). All cells are as tall as the tallest one and their
   content starts at the top, as on the live site. */
.block.row {
  display: flex;
}
.cell {
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  /* Same space below as a photo or video outside a row. */
  padding-bottom: 40px;
}
.cell:first-child {
  border-left: 0;
}
.cell:last-child {
  border-right: 0;
}
.cell img {
  display: block;
  width: 100%;
  height: auto;
}
.cell .rich {
  padding-bottom: 0;
}

@media (max-width: 932px) {
  .cell {
    padding-bottom: 20px;
  }
}
@media (max-width: 540px) {
  .block.row {
    display: block;
  }
  .cell {
    flex: none !important;
    border: 0;
    padding-bottom: 18px;
  }
  /* Logos and other small images in a row: never taller than a phone screen's
     third when the row stacks. */
  .cell .photo img {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Grid (justified gallery) */
.block.grid {
  padding-bottom: 40px;
  overflow: hidden;
}
.grid-main {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}
.tile {
  /* The width set on a tile is the width of the photo; borders come on top. */
  box-sizing: content-box;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 8px solid transparent;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.tile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.filler {
  display: block;
  width: 100%;
}
.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px 15px 10px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4) 20px, rgba(0, 0, 0, 0.5));
  color: #fff;
  font: 400 14px/17px var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tile:hover .tile-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- *
 * Gallery covers (home, /projects, and "related")
 * ---------------------------------------------------------------------- */
.covers {
  display: flex;
  flex-wrap: wrap;
  padding: 3px 0 14px;
}
.cover {
  display: block;
  position: relative;
  width: 49.25%;
  margin-right: 1.5%;
  margin-bottom: 3%;
  overflow: hidden;
}
.cover:nth-child(2n) {
  margin-right: 0;
}
.cover-box {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.cover-img {
  position: absolute;
  inset: 0;
}
.cover-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.cover-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cover:hover .cover-img::after {
  opacity: 0.3;
}
.cover-info {
  position: absolute;
  inset: 0;
  width: 91%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5% 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cover:hover .cover-info {
  opacity: 1;
}
.cover-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}
.cover-text {
  width: 90%;
  text-align: center;
}
.cover-date {
  font: 400 20px/20px var(--font-head);
  text-transform: uppercase;
  color: var(--c-mid);
  padding-bottom: 20px;
}
.cover-title {
  font: 400 50px/50px var(--font-head);
  text-transform: uppercase;
  color: var(--s-heading, var(--c-dark));
}

@media (max-width: 932px) {
  .covers {
    padding: 5px 0 11px;
  }
  .cover {
    margin-bottom: 5%;
  }
  .cover-date {
    font-size: 17px;
    line-height: 17px;
    padding-bottom: 14px;
  }
  .cover-title {
    font-size: 31px;
    line-height: 31px;
  }
}
@media (max-width: 540px) {
  .covers {
    padding: 4px 0 10px;
  }
  .cover,
  .cover:nth-child(2n) {
    width: 100%;
    margin-right: 0;
    margin-bottom: 4%;
  }
  .cover-date {
    font-size: 14px;
    line-height: 14px;
    padding-bottom: 13px;
  }
  .cover-title {
    font-size: 25px;
    line-height: 25px;
  }
}

/* ---------------------------------------------------------------------- *
 * Cards block (project cards, e.g. /ai)
 * The grid is the gallery .covers / .cover layout (two columns, one on
 * phones); only the heading, the label under each box and the static
 * variant are added here. The label type follows .home-section-label.
 * ---------------------------------------------------------------------- */
.block.cards {
  padding-bottom: 40px;
}
.cards-heading {
  max-width: var(--max-text);
  margin: 0 auto 40px;
  font: 700 24px/24px var(--font-head);
  text-transform: uppercase;
  color: var(--s-heading, var(--c-dark));
  text-align: center;
}
.cards-grid .cover-box {
  padding-bottom: 62.5%;
}
.card-static .card-label {
  padding-top: 0;
}
a.card:focus-visible {
  outline: 2px solid var(--s-heading, var(--c-dark));
  outline-offset: -2px;
}
.card-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 0;
}
.card-title {
  margin: 0;
  font: 700 14px/14px var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-heading, var(--c-dark));
}
.card-text {
  font: 400 15px/22px var(--font-body);
  color: #666;
}
.card-url {
  font: 400 12px/12px var(--font-head);
  letter-spacing: 0.1em;
  color: var(--c-mid);
}
a.card:hover .card-title {
  color: var(--c-hover);
}
.card-static {
  cursor: default;
}
.card-static:hover .cover-img::after {
  opacity: 0;
}
@media (max-width: 932px) {
  .block.cards {
    padding-bottom: 20px;
  }
  .cards-heading {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 20px;
    padding: 0 5%;
  }
  .card-label {
    padding: 10px 5% 0;
  }
}
@media (max-width: 540px) {
  .block.cards {
    padding-bottom: 18px;
  }
  .cards-heading {
    font-size: 15px;
    line-height: 15px;
    margin-bottom: 18px;
  }
}

/* ---------------------------------------------------------------------- *
 * Blocks, africanDRONE adjustments (after the shared block rules)
 * ---------------------------------------------------------------------- */
.block.text {
  padding: 0 0 32px;
}
.block.photo,
.block.embed,
.block.slideshow,
.block.grid,
.block.cards,
.block.row {
  padding-bottom: 32px;
}
@media (max-width: 932px) {
  .block.text {
    padding: 0 0 24px;
  }
}
/* Buttons: teal pill, white uppercase text (Bedford). */
.block.button {
  padding: 8px 0 32px;
}
.btn {
  display: inline-block;
  border-radius: 300px;
  background-color: var(--c-btn);
  color: #fff;
  font: 600 15px/1.3 var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  padding: 21px 34px;
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--c-btn-hover) !important;
}
@media (max-width: 932px) {
  .block.button {
    padding: 4px 0 24px;
  }
  .btn {
    font-size: 14px;
    line-height: 1.3;
    padding: 16px 26px;
  }
}
/* Buttons without a link (the member opportunities on the home page) sit
   side by side, centred, as on the old site. */
.btn-label {
  cursor: default;
}
.btn-label:hover {
  background: var(--c-btn) !important;
}
.blocks:has(> .block.button.is-label) {
  text-align: center;
}
.block.button.is-label {
  display: inline-block;
  padding: 0 6px 14px;
}
.block.button.is-label .btn {
  padding: 16px 26px;
}
/* An embed with a fixed height (the World Drone Map), optionally as wide as
   the window. */
.embed-fixed {
  position: relative;
  width: 100%;
}
.embed-fixed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.block.embed.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
@media (max-width: 540px) {
  .embed-fixed {
    height: 520px !important;
  }
}
.rule {
  border-top-color: #ddd;
}
.cell {
  border-left-width: 16px;
  border-right-width: 16px;
}
.cell:first-child {
  border-left: 0;
}
.cell:last-child {
  border-right: 0;
}
/* Cards that come from the old image cards: title, text and links. */
.card-static .cover-img::after {
  display: none;
}
.card-body.rich,
.card-body.rich p {
  font-size: 15px;
  line-height: 1.6;
}
.card-label {
  padding-top: 14px;
}
.card-title {
  font: 700 15px/1.4 var(--font-head);
  letter-spacing: 1px;
  color: #000;
}

/* ---------------------------------------------------------------------- *
 * Forms
 * ---------------------------------------------------------------------- */
.block.form {
  padding-bottom: 32px;
}
.site-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-field {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}
.form-field label,
.form-field legend {
  display: block;
  font: 400 14px/1.4 var(--font-body);
  color: var(--c-text);
  padding-bottom: 6px;
}
.form-field .req {
  color: var(--c-mid);
  font-size: 12px;
}
.form-help {
  font-size: 13px;
  color: var(--c-mid);
  padding-bottom: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font-body);
  color: var(--c-text);
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 12px;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-check {
  display: block;
  padding: 4px 0;
}
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile {
  margin: 0 0 20px;
}
.site-form .block.button {
  text-align: left;
  padding: 0;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  display: none;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--c-btn);
  background: #f2fbfa;
}
.form-error {
  border-left-color: #b3261e;
  background: #fdf3f2;
}
.form-status:target,
.form-status.is-shown {
  display: block;
}
.form-live {
  padding-top: 14px;
  font-size: 15px;
  color: var(--c-link);
}
.form-live.is-error {
  color: #b3261e;
}

/* ---------------------------------------------------------------------- *
 * Country notes (bottom of /regulations)
 * ---------------------------------------------------------------------- */
.country-notes {
  padding-top: 24px;
  text-align: center;
}
.country-notes h2 {
  margin: 0 0 20px;
  font: 400 22px/1.4 var(--font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
}
.country-notes ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.country-notes a {
  font: 400 14px/1.4 var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.country-notes a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- *
 * Blog index and posts
 * ---------------------------------------------------------------------- */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-item {
  display: flex;
  gap: 32px;
  padding: 0 0 40px;
  margin: 0 0 40px;
  border-bottom: 1px solid #e5e5e5;
}
.post-item:last-child {
  border-bottom: 0;
}
.post-item-img {
  flex: 0 0 320px;
  display: block;
}
.post-item-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.post-item-text {
  flex: 1 1 auto;
  min-width: 0;
}
.post-meta {
  font: 400 13px/1.4 var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-mid);
  padding-bottom: 8px;
}
.post-author::before {
  content: "\00b7";
  padding: 0 6px 0 2px;
}
.post-item-title {
  margin: 0 0 12px;
  font: 700 20px/1.35 var(--font-head);
}
.post-item-title a {
  color: #000;
}
.post-item-title a:hover {
  color: var(--c-link);
}
.post-item-excerpt {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-item-more a {
  font: 600 13px/1.4 var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.post-kicker {
  font: 400 13px/1.4 var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 12px;
}
.post .page-title {
  font-size: 30px;
  text-transform: none;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
}
.post .blocks {
  max-width: 760px;
  margin: 0 auto;
}
.post-tags {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 16px;
  font-size: 14px;
  color: var(--c-mid);
}
.post-back {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 24px;
}
@media (max-width: 700px) {
  .post-item {
    display: block;
  }
  .post-item-img {
    margin-bottom: 16px;
  }
  .post .page-title {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------------------- *
 * Pre-footer (social links, Contact Us) and footer
 * ---------------------------------------------------------------------- */
.prefooter {
  background: var(--c-prefooter);
  color: rgba(255, 255, 255, 0.7);
}
.prefooter-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
}
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 28px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}
.social a:hover {
  color: #fff;
}
.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.prefooter .block.button {
  padding: 0;
}
.site-footer {
  background: var(--c-footer);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  font-size: 13px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding-bottom: 18px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-rights {
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 932px) {
  .prefooter-inner {
    padding: 40px 20px;
  }
  .footer-inner {
    padding: 32px 20px;
  }
}
