/*
 * Exacting Clam — site-specific styles
 *
 * Extracted from the former customised bootstrap.css.
 * Loaded after stock bootstrap.css, before clambake.css.
 */

/* ── Typography ────────────────────────────────────── */

h1 {
  font-family: "Fanwood Text", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 26.4px;
  padding-bottom: 1rem;
}

h2 {
  color: black;
  font-family: "Fanwood Text", serif;
}

h3 {
  font-family: "Fanwood Text", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 15.4px;
}

h4 {
  font-family: "Fanwood Text", serif;
}

h5.card-title {
  font-family: "Fanwood Text", serif;
}

h4.category-label {
  font-family: "Fanwood Text", serif;
  color: rgb(255, 51, 51);
}

p {
  font-family: "Fanwood Text", serif;
  font-size: 20px;
  line-height: 30px;
}

blockquote {
  font-family: "Fanwood Text", serif;
  font-size: 21px;
  line-height: 30px;
}

label {
  font-family: 'Bitter', serif;
}

td {
  font-family: 'Bitter', serif;
}

th {
  font-family: 'Bitter', serif;
}

.form-control {
  font-family: 'Bitter', serif;
}

.btn {
  font-family: "Fanwood Text", serif;
}

button {
  border-radius: 0;
}

p.card-text {
  font-family: 'Fira Sans', sans-serif;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  color: #000;
}

.nav-link,
.btn,
footer a {
  text-decoration: none;
}

footer a {
  color: inherit;
}

a.black {
  text-decoration: none;
}

/* ── Button overrides ──────────────────────────────── */

.btn-primary {
  background-color: black;
  border-color: white;
}

.btn-primary:hover {
  color: black;
  background-color: white;
  border-color: black;
}

.btn-success {
  background-color: black;
  border-color: black;
}

.btn-success:hover {
  background-color: white;
  border-color: black;
  color: black;
}

.btn-outline-success {
  color: white;
  border-color: white;
  font-family: 'Bitter', serif;
}

.btn-outline-success:hover {
  color: black;
  background-color: white;
  border-color: black;
}

.btn-danger {
  background-color: rgb(255, 51, 51);
  border-color: rgb(255, 51, 51);
}

.btn-danger:hover {
  background-color: rgb(255, 51, 51);
  border-color: rgb(255, 51, 51);
}

/* ── Brand colour — red hr ─────────────────────────── */

hr.red {
  background-color: rgb(255, 51, 51);
}

/* ── Separator block (StreamField) ─────────────────── */

.separator-block {
  padding-top: 12px;
  padding-bottom: 26px;
}

/* ── Logo & strapline ──────────────────────────────── */

.logo {
  height: 60px;
  width: auto;
}

.logo img {
  height: 35px;
  padding: 6px;
  margin-left: 20px;
}

.logo2 {
  width: 80px;
  height: 50px;
}

.strapline {
  text-align: center;
  color: black;
  margin-top: 10px;
}

/* ── Navbar ─────────────────────────────────────────── */

nav.navbar.navbar-expand-lg.navbar-light.bg-white {
  padding-top: 5px;
}

#navbarSupportedContent {
  margin-right: 30px;
  padding-top: 5px;
}

.nav-item {
  font-family: "Fanwood Text", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 26.4px;
}

a.nav-link {
  color: black;
  font-family: "Fanwood Text", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 26.4px;
}

ul.nav.justify-content-center {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}

.navbar-light .navbar-nav .nav-link {
  color: black;
  background-color: white;
  text-align: center;
}

.navbar-light .navbar-toggler {
  background-color: white;
  padding-top: 0;
  text-align: center;
}

.navbar-light .navbar-brand {
  background-color: white;
  text-align: center;
}

/* ── Social media icons ────────────────────────────── */

.svg-icon path,
.svg-icon polygon,
.svg-icon rect,
.svg-icon circle {
  stroke: #4691f6;
  stroke-width: 1;
}

.svg-icon {
  width: 2.5em;
  height: 2.5em;
  padding-bottom: 0.4rem;
}

.svg-icon2 {
  width: 2.0em;
  height: 2.0em;
  padding-top: 0.3rem;
}

/* ── Flash logo ────────────────────────────────────── */

.flash-logo {
  height: 60px;
  border-radius: 8px;
  float: left;
  margin-right: 15px;
}

/* ── Article cards / items ─────────────────────────── */

.item-title {
  padding-top: 15px;
  padding-bottom: 15px;
  font-family: "Fanwood Text", serif;
  text-align: center;
}

.item-author {
  font-size: 25px;
  padding-bottom: 10px;
  padding-top: 10px;
  font-family: "Fanwood Text", serif;
  text-align: center;
}

h3.item-author {
  font-family: "Fanwood Text", serif;
}

/* ── Image hover overlays (#chuff) ─────────────────── */

.image {
  opacity: 1;
  display: inline-flex;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.image2 {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.image3 {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  object-fit: fill;
}

.image4 {
  opacity: 1;
  display: block;
  width: 250px;
  height: 250px;
  transition: .5s ease;
  backface-visibility: hidden;
  margin: 0 auto;
}

.image5 {
  opacity: 1;
  display: block;
  width: 90%;
  height: 90%;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 55%;
  left: 35%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.text2 {
  background-color: rgb(255, 51, 51);
  color: white;
  font-size: 16px;
  padding: 16px 32px;
  font-family: "Fanwood Text", serif;
  border-radius: 12%;
}

#chuff:hover .image {
  opacity: 0.3;
}

#chuff:hover .middle {
  opacity: 1;
}

#chuff2:hover .image {
  opacity: 0.3;
}

#chuff2:hover .middle {
  opacity: 1;
}

#chuff3:hover .image {
  opacity: 0.3;
}

#chuff3:hover .middle {
  opacity: 1;
}

/* ── Featured / readme article styles ──────────────── */

p.featured {
  font-size: 25px;
  line-height: 30px;
}

.featured-read {
  font-size: 25px;
  line-height: 30px;
  margin-left: 25px;
  margin-right: 25px;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.readme {
  font-family: "Fanwood Text", serif;
  font-size: 25px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 30px;
}

.readme blockquote {
  margin: 0 2rem 1rem 2rem;
}

/* ── Card colour overrides (brand red) ─────────────── */

.card.text-white.bg-info.mb-3 {
  background-color: rgb(255, 51, 51);
  color: rgb(255, 51, 51);
}

.card.bg-light.mb-3 {
  background-color: rgb(255, 51, 51);
}

div.card-header.redface {
  background-color: rgb(255, 51, 51);
}

div.card-body.redface {
  background-color: rgb(255, 51, 51);
}

.card-header {
  padding-top: 10px;
}

/* ── Colour utility classes ────────────────────────── */

.black {
  color: black;
}

#redhead {
  color: rgb(255, 51, 51);
  text-align: center;
  font-size: 24px;
  padding-top: 20px;
}

#redface {
  background-color: rgb(255, 51, 51);
}

#white {
  background-color: white;
}

/* ── Carousel ──────────────────────────────────────── */

.card {
  border: 1px solid white;
  margin: auto;
}

#MiCarousel {
  margin-top: 30px;
  margin-bottom: 40px;
}

.carousel-indicators {
  margin: 5px;
  padding-bottom: 5px;
}

.carousel-title {
  font-size: 80px;
  font-weight: bold;
  margin-left: 20px;
  margin-top: 20px;
}

.carousel-pagination {
  background-color: rgb(255, 51, 51);
  width: 15px;
  height: 15px;
  border-radius: 100%;
  position: relative;
  bottom: -50px;
  opacity: 0.5;
}

.carousel-img {
  background-color: red;
  color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  -webkit-clip-path: polygon(0 0, 96% 0, 100% 100%, 0% 100%);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  opacity: 0.8;
}

img.d-block.w-50 {
  height: auto;
}

/* ── Slider ────────────────────────────────────────── */

.slider {
  width: auto;
  text-align: center;
  overflow: hidden;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slides::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.slides::-webkit-scrollbar-thumb {
  background: rgb(255, 51, 51);
  border-radius: 10px;
}

.slides::-webkit-scrollbar-track {
  background: transparent;
}

.slides > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 1110px;
  height: 350px;
  margin-right: 0;
  border-radius: 0;
  background: white;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.author-info {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.75rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}

.author-info a {
  color: white;
}

.imgslide {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgb(255, 51, 51);
  color: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
  margin-top: 15px;
  margin-bottom: 15px;
}

.slider > a:active {
  top: 1px;
}

.slider > a:focus {
  background: white;
}

/* ── Dropcap (Wagtail rich text feature) ───────────── */

.has-dropcap:first-letter {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  float: left;
  font-size: 6rem;
  line-height: 0.65;
  margin: 0.1em 0.1em 0.2em 0;
  margin-bottom: 1em;
}

.dropcap {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  background: rgb(255, 51, 51);
  color: #FDF9F2;
  float: left;
  font-size: 6rem;
  line-height: 1;
  margin: 0.1em 0.1em 0.2em 0;
  padding-bottom: 0.1em;
  padding-left: 0.1em;
  padding-right: 0.1em;
  padding-top: 0.2em;
}

.dropcap:before,
.dropcap:after {
  content: "";
  display: block;
}

.dropcap:before {
  margin-top: -0.2em;
}

.dropcap:after {
  margin-bottom: -0.15em;
}

.dropcap-sm {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  background: rgb(255, 51, 51);
  color: #FDF9F2;
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0.05em 0.1em 0.1em 0;
  padding: 0.1em 0.1em 0.1em;
}

.dropcap-sm:before,
.dropcap-sm:after {
  content: "";
  display: block;
}

.dropcap-sm:before {
  margin-top: -0.15em;
}

.dropcap-sm:after {
  margin-bottom: -0.2em;
}

/* ── Footer ────────────────────────────────────────── */

footer .list-unstyled li {
  display: inline;
  padding: 5px;
}

.bottom-link {
  color: white;
}

.bottom-link a:focus {
  background: rgb(255, 51, 51);
}

.bottom-link a:hover {
  background: rgb(255, 51, 51);
}

footer .container-fluid {
  padding-top: 15px;
  background-color: #343a40;
  color: white;
  font-family: "Fanwood Text", serif;
}

.footer-copyright {
  background-color: #343a40;
  font-family: 'Bitter', serif;
  color: white;
}

/* ── Misc layout ───────────────────────────────────── */

.presstitle {
  margin-left: 35px;
}

#padding {
  padding-left: 120px;
  padding-right: 120px;
}

.left {
  margin-left: 88px;
}

/* ── PDF viewer ──────────────────────────────────── */

.pdf-viewer {
  margin-top: 2rem;
}

.pdf-viewer embed {
  width: 100%;
  height: 80vh;
  border: 1px solid #ddd;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-family: "Fanwood Text", serif;
  font-size: 18px;
}

/* ── Paywall notice ───────────────────────────────── */

.paywall-notice {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid #ddd;
}

.paywall-notice p {
  font-family: "Fanwood Text", serif;
  font-size: 18px;
}
