/* cmsms stylesheet: Israac Stylesheet modified: Friday, October 16, 2026 6:07:20 PM */
/* Israac Stylesheet — site presentation, accessibility and CMS integration. */

/* Israac Website */
/* Israac local preview. Original layout styles for the Bootstrap rebuild. */

/* Poppins is the local stand-in for the live site's Century Gothic. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/uploads/israac/assets/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/uploads/israac/assets/fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/uploads/israac/assets/fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/uploads/israac/assets/fonts/poppins-700.woff2") format("woff2");
}

:root {
  --ink: #222320;
  --muted: #5c6158;
  --green: #75a86f;
  --green-deep: #4f7a49;
  --gold: #e4c04a;
  --orange: #f87e2e;
  --orange-deep: #e0681a;
  --black: #0b0b0b;
  --paper: #f7f6f2;
  --line: #e4e6df;
  --header: 7.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.6;
}

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

a {
  color: var(--green-deep);
}

a:hover {
  color: var(--orange-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

/* One button style for every call to action. */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(20, 32, 19, 0.12);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 1px 2px rgba(20, 32, 19, 0.08);
  color: #111;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-brand:hover,
.btn-brand:focus-visible {
  background: #f4e038;
  color: #111;
}

.btn-brand[aria-pressed="true"] {
  background: var(--orange);
  color: #111;
}

.btn-brand[aria-pressed="true"]:hover,
.btn-brand[aria-pressed="true"]:focus-visible {
  background: #f4e038;
  color: #111;
}

.btn-brand:focus-visible,
.nav-link:focus-visible,
.icon-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  border-color: var(--orange);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(241, 90, 34, 0.28);
}

/* Header */
.site-header {
  background: #fff;
  color: var(--ink);
  position: relative;
  z-index: 30;
  border-bottom: 0;
}

.brand {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0.35rem;
}

.brand img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  margin: 0 auto 0.8rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.7rem;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--green-deep);
}

.nav-link[aria-current="page"] {
  color: var(--muted);
  background: #eceee9;
  border-radius: 0.45rem;
}

.nav-link[aria-current="page"]:hover {
  color: var(--green-deep);
  background: transparent;
}

.nav-link .fa-chevron-down {
  font-size: 0.72rem;
}

.dropdown-menu {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  min-width: 16rem;
  padding: 0.45rem;
  margin-top: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}

.dropdown-menu a[aria-current="page"] {
  background: #eceee9;
  color: var(--muted);
}

.dropdown-menu a:hover {
  background: var(--green);
  color: #111;
}

@media (min-width: 992px) {
  .nav-list {
    padding: 0.2rem 1rem 1rem;
  }

  .nav-item.dropdown:hover > .dropdown-menu,
  .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.hero-band > * {
  position: relative;
  z-index: 1;
}

.info-bar {
  background: transparent;
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 3px solid #f4e038;
}

.info-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.7rem 0.75rem;
  font-size: 1.02rem;
}

@media (min-width: 992px) {
  .info-bar-inner {
    justify-content: flex-start;
    max-width: 960px;
  }

  .info-bar-inner .search-form {
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .info-bar-inner {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .info-bar-inner {
    max-width: 1320px;
  }
}

.info-bar a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.info-bar a:hover {
  color: #fff;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.info-item i {
  color: var(--gold);
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-left: auto;
}

.search-form input {
  border: 0;
  width: 9.5rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  background: transparent;
}

.search-form button {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 2.4rem;
  height: 2.2rem;
}

/* Language toggle */
.lang-bar {
  background: #f3f4f2;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

/* Breathing room between home carousel and language toggle */
.hero + .lang-bar {
  margin-top: 1.15rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.lang-side {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b6f68;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.lang-side i {
  font-size: 1rem;
  color: #8a8f87;
}

.lang-side.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang-side.is-active i {
  color: var(--muted);
}

.lang-switch {
  position: relative;
  width: 3.4rem;
  height: 1.85rem;
  padding: 0;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-knob {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  transition: left 0.2s ease;
}

.lang-bar.is-somali .lang-knob {
  left: calc(100% - 1.5rem);
}

.lang-switch:focus-visible,
.lang-side:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Heroes */
.hero {
  position: relative;
  color: #fff;
  padding: 1.25rem 0 0;
}

.hero-carousel {
  overflow: hidden;
  border-radius: 0.9rem;
  background: #111;
}

.hero-carousel .carousel-item {
  height: 520px;
  background: #111;
}

.hero-carousel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-carousel .is-poster {
  object-fit: contain;
  background: #f3efe6;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3rem 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-caption h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 16ch;
}

.hero-caption p {
  max-width: 42rem;
  margin-bottom: 1.1rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  bottom: auto;
  margin: 0 1rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

.page-hero {
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 3.2rem 1.2rem 2.8rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
}

.page-hero .eyebrow {
  color: var(--gold);
}

/* Layout */
.section {
  padding: 4.5rem 0;
}

/* Scroll fade-in for content sections */
.section.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
  will-change: opacity, transform;
}

.section.reveal.is-inview {
  opacity: 1;
  transform: none;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-dark {
  background: var(--green);
  color: #142013;
}

.section-paper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.team-people.is-grey {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.section-paper::before,
.team-people.is-grey::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center 55%;
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.section-paper::after,
.team-people.is-grey::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-paper::after {
  background: linear-gradient(
    180deg,
    rgba(247, 246, 242, 0.35) 0%,
    rgba(247, 246, 242, 0.12) 45%,
    rgba(247, 246, 242, 0.3) 100%
  );
}

.team-people.is-grey::after {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.35) 0%,
    rgba(245, 245, 245, 0.12) 45%,
    rgba(245, 245, 245, 0.3) 100%
  );
}

.section-paper > *,
.team-people.is-grey > * {
  position: relative;
  z-index: 1;
}

.section-green {
  background: var(--green);
  color: #142013;
}

.lead-text {
  font-size: 1.15rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-heading::before,
.section-heading::after {
  content: "";
  height: 2px;
  background: currentColor;
  flex: 1;
}

.section-heading.align-start::before {
  display: none;
}

h3.group-label {
  margin: -0.4rem 0 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .btn-brand {
  margin-top: auto;
  align-self: flex-start;
}

.card-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 28rem);
}

.prose {
  max-width: 46rem;
}

.prose h2,
.split-copy h2,
.block-title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-dark .prose h2,
.section-dark .block-title,
.section-dark .section-heading,
.section-dark .kicker {
  color: #142013;
}

.kicker {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split img,
.frame img {
  width: 100%;
  border-radius: 1.1rem;
  object-fit: cover;
}

.frame img {
  aspect-ratio: 4 / 3;
}

.frame-tilt-right,
.frame-tilt-left {
  display: block;
  padding: 0.65rem;
}

/* PageSectionsPlus pictures share this shadow whether Tilt picture is on or off. */
.israac-page-section .frame img,
.frame-tilt-right img,
.frame-tilt-left img {
  box-shadow:
    0 18px 40px rgba(20, 32, 19, 0.22),
    0 6px 14px rgba(20, 32, 19, 0.14);
}

.frame-tilt-right img {
  transform: rotate(6deg);
  transform-origin: center center;
}

.frame-tilt-left img {
  transform: rotate(-6deg);
  transform-origin: center center;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.event-card[hidden] {
  display: none;
}

.event-card,
.info-card,
.price-card,
.quote-card,
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card {
  background: #f5f5f5;
  border: 1px solid rgba(20, 32, 19, 0.12);
  border-radius: 1.7rem;
  padding: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-shadow: 0 1px 4px rgba(20, 32, 19, 0.06);
  transition: background-color 0.2s ease, scale 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-card:hover {
  background: var(--green);
  border-color: rgba(20, 32, 19, 0.08);
  scale: 1.05;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(20, 32, 19, 0.1);
}

.event-card-media {
  position: relative;
  display: block;
  overflow: visible;
  background: #e7eee4;
  border-radius: 1.15rem;
}

.media-fallback {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: #e7eee4;
  color: var(--green-deep);
  font-size: 2rem;
}

.event-card-media img,
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-card-media img,
.event-card .media-fallback {
  border-radius: 1.15rem;
  aspect-ratio: 4 / 3;
}

.schedule {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  transform: translateY(50%);
  padding: 0.45rem 0.95rem;
  border-radius: 0 999px 999px 999px;
  background: #ffe14a;
  color: #161616;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.event-card-body,
.info-card,
.price-card,
.quote-card,
.news-card-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  padding: 1.65rem 0 0;
}

.event-card h3,
.news-card h3,
.price-card h3,
.info-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.event-card h3,
.event-card h3 a {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}

.event-card:hover h3,
.event-card:hover h3 a {
  color: #fff;
}

.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.event-card h3 a:hover,
.news-card h3 a:hover {
  color: var(--orange-deep);
}

.event-card .btn-brand,
.news-card .btn-brand {
  margin-top: auto;
  align-self: flex-start;
}

.event-card:hover .btn-brand {
  background: #f4e038;
  color: #111;
}

.service-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.5rem;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: scale 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  scale: 1.05;
  z-index: 2;
  box-shadow: 0 14px 34px rgba(20, 32, 19, 0.12);
}

.service-card i {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef6eb;
  color: var(--green-deep);
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.team-banner {
  background: transparent;
  padding: 2rem 1.25rem 0;
  margin-bottom: 0;
}

.team-banner .section-heading {
  margin: 0 0 2.5rem;
  color: var(--green);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  gap: 1.6rem;
}

.team-banner + .team-people .group-label {
  padding-top: 2.5rem;
}

.team-people:has(+ .team-banner) .person-grid {
  padding-bottom: 3.2rem;
}

.team-people {
  background: #fff;
  padding: 0 1rem 1rem;
}

.team-people.is-grey {
  background: #f5f5f5;
}

.team-people .group-label {
  margin: 0 0 2.5rem;
  padding: 4rem 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: 0.18em;
}

.team-people.is-grey .group-label {
  padding-top: 4rem;
}

.person-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6.2rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5.5rem 0 3.2rem;
}

.team-banner + .team-people > .person-grid {
  padding-top: 5.5rem;
}

.person-grid.cols-2 .person-card {
  flex: 0 1 calc(50% - 1.25rem);
  max-width: 32rem;
}

.person-grid.cols-3 {
  max-width: 90rem;
  justify-content: space-evenly;
}

.person-grid.cols-3 .person-card {
  flex: 0 1 calc(33.333% - 1.5rem);
  max-width: 28rem;
}

.person-card {
  position: relative;
  flex: 1 1 18rem;
  max-width: 32rem;
  background: var(--green);
  border: 0;
  border-radius: 19px;
  overflow: visible;
  text-align: center;
  padding: 4.5rem 1.4rem 1.6rem;
  box-shadow: 0 8px 22px rgba(20, 32, 19, 0.28);
  isolation: isolate;
}

.person-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.person-card > * {
  position: relative;
  z-index: 1;
}

.person-card img,
.person-card .person-fallback {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -55%);
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: #d7e3d3;
  transition: transform 0.2s ease;
}

.person-card:hover img,
.person-card:hover .person-fallback {
  transform: translate(-50%, -55%) scale(1.12);
}

.person-card:hover img[src*="yasin-hersi"] {
  transform: translate(-50%, -55%) scale(1.12) rotate(360deg);
  transition: transform 0.7s ease;
}

.person-fallback {
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 2rem;
  font-weight: 700;
}

.person-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
}

.person-card p {
  margin: 0.15rem 0 0;
  color: #f4e038;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.team-people.is-grey .person-card {
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 32, 19, 0.14);
}

.team-people.is-grey .person-card::before {
  display: none;
}

.team-people.is-grey .person-card h3 {
  color: var(--ink);
}

.team-people.is-grey .person-card p {
  color: var(--green);
  font-weight: 500;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.logo-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 1rem;
  transition: scale 0.2s ease;
}

.logo-grid figure:hover {
  scale: 1.05;
}

.logo-grid .funder-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 108px;
  text-decoration: none;
  color: inherit;
}

.logo-grid img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
}

.logo-grid figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.filter-bar .btn-brand {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  background: var(--orange);
  color: #111;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-bar .btn-brand:hover,
.filter-bar .btn-brand:focus-visible,
.filter-bar .btn-brand[aria-pressed="true"]:hover,
.filter-bar .btn-brand[aria-pressed="true"]:focus-visible {
  background: #f4e038;
  color: #111;
}

.filter-bar .btn-brand[aria-pressed="true"] {
  background: #f4e038;
  color: #111;
}

.events-more-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 2.4rem 0 0;
}

.events-more-wrap[hidden] {
  display: none;
}

.events-more-wrap hr {
  margin: 0;
  border: 0;
  border-top: 3px solid var(--green);
  width: 100%;
}

.events-more-wrap .btn-brand {
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

table.timetable {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.timetable th,
.timetable td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.timetable th {
  background: #f3f7f1;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timetable a {
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--muted);
}

.quote-card {
  border-left: 5px solid var(--green);
}

.quote-card p {
  margin-bottom: 0.8rem;
}

.quote-card footer {
  color: var(--muted);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.detail-photo {
  width: 100%;
  border-radius: 1.1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7eee4;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #eef6eb;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.form-panel,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.3rem;
}

.form-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.form-panel > * {
  position: relative;
  z-index: 1;
}

.form-aside {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-card > .btn-brand {
  margin-top: 0.9rem;
}

.contact-card > p:last-of-type {
  margin-bottom: 0;
}

.bus-routes .bus-route + .bus-route {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.bus-routes .bus-stop {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.bus-routes .bus-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.bus-routes .bus-numbers li {
  padding: 0;
}

.bus-routes .bus-numbers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.45rem;
  background: #eef4ec;
  color: #1f2d1c;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bus-routes .bus-numbers a:hover,
.bus-routes .bus-numbers a:focus-visible {
  background: var(--green);
  color: #142013;
}

.bus-routes .bus-note {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a5247;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.field {
  margin-bottom: 0.9rem;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--green-deep);
  cursor: pointer;
}

.check-field span {
  line-height: 1.4;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #b42318;
}

.brand-time input.is-invalid,
.brand-date input.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #b42318;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid #cfd3cb;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  accent-color: var(--green);
}

.booking-slot + .booking-slot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.booking-slot-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.slot-add,
.slot-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0;
}

.slot-add:hover,
.slot-remove:hover {
  color: var(--orange);
}

.brand-time,
.brand-date {
  position: relative;
}

.brand-time input,
.brand-date input {
  padding-right: 2.55rem;
}

.brand-field-icon {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.brand-time-popup,
.brand-date-popup {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 32, 19, 0.12);
}

.brand-time-popup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 11rem;
  padding: 0.55rem;
}

.brand-date-popup {
  width: 17.5rem;
  padding: 0.75rem;
}

.brand-time-popup[hidden],
.brand-date-popup[hidden] {
  display: none;
}

.brand-time-sep {
  align-self: center;
  font-weight: 700;
  color: var(--muted);
}

.brand-time-col {
  --time-item-h: 2.25rem;
  max-height: calc(var(--time-item-h) * 5);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: calc(var(--time-item-h) * 2);
  padding: calc(var(--time-item-h) * 2) 0.15rem;
  border: 0;
  scrollbar-width: thin;
}

.brand-time-col button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--time-item-h);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-date-grid button {
  display: block;
  width: 100%;
  margin: 0.1rem 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.brand-time-col button:hover,
.brand-date-grid button:hover:not(:disabled) {
  background: #eef4ec;
}

.brand-time-col button.is-selected,
.brand-date-grid button.is-selected {
  background: var(--green);
  color: #142013;
}

.brand-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.brand-date-nav strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-date-nav button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.45rem;
  background: #eef4ec;
  color: #142013;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.brand-date-nav button:hover {
  background: var(--green);
}

.brand-date-weekdays,
.brand-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.brand-date-weekdays span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 0.2rem 0 0.45rem;
}

.brand-date-grid button {
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.brand-date-grid button.is-outside {
  color: #a0a69b;
}

.brand-date-grid button.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px var(--green);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  background: #eef6eb;
  color: var(--green-deep);
  font-weight: 600;
}

.social-list {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.social-list a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
}

.social-list a:hover {
  background: var(--orange);
  color: #fff;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.follow-card {
  display: block;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 1rem;
  padding: 1.1rem;
  min-height: 100%;
}

.follow-card:hover {
  color: var(--ink);
  background: #f4f8f2;
}

.follow-card i {
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--green);
  color: #142013;
  margin-top: calc(4.5rem - 18px);
  padding: 0 0 1.4rem;
  overflow: visible;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/uploads/israac/assets/images/pages/future-visual.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer h2 {
  color: #142013;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #142013;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: -60px 0 1.6rem;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  position: relative;
  top: -52px;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(20, 32, 19, 0.2);
}

.site-footer .row {
  margin-top: -4.25rem;
}

@media (max-width: 575px) {
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 32, 19, 0.28);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: #142013;
}

.legal > :first-child {
  justify-self: start;
}

.legal > :nth-child(2) {
  justify-self: center;
  text-align: center;
}

.legal > :last-child {
  justify-self: end;
}

@media (max-width: 680px) {
  .legal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .legal > :first-child,
  .legal > :nth-child(2),
  .legal > :last-child {
    justify-self: center;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  min-height: 180px;
}

@media (max-width: 991px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.45rem 1.1rem 0.45rem 0.85rem;
    border-bottom: 1px solid #ececec;
  }

  .site-header:has(.site-nav.is-open) {
    border-bottom: 0;
  }

  .brand {
    padding: 0;
    justify-content: flex-start;
  }

  .brand img {
    width: 86px;
    height: 86px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--green);
    border-radius: 0;
    min-height: 0;
    padding: 0.35rem;
    font-size: 0;
  }

  .nav-toggle i {
    font-size: 2.15rem;
    line-height: 1;
  }

  .site-nav {
    display: none;
    padding-top: 0.4rem;
  }

  .site-nav.is-open {
    display: block;
    flex: 1 0 100%;
    margin-left: -0.85rem;
    margin-right: -1.1rem;
    padding: 0.45rem 0.75rem 0.6rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .nav-item {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0.15rem 0 0.7rem;
    padding: 0.5rem;
    background: #fff;
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.85rem 1rem;
    border-radius: 0.55rem;
    color: #2b2b2b;
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
  }

  .dropdown-menu a[aria-current="page"] {
    background: #eceee9;
    color: var(--muted);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus,
  .dropdown-menu a:active {
    background: var(--green);
    color: #1c1c1c;
  }

  /* Info bar lives in .hero-band; show it with the open menu like before */
  .hero-band > .info-bar {
    display: none;
  }

  .site-header:has(.site-nav.is-open) + .hero-band > .info-bar {
    display: block;
    margin: 0;
  }

  .site-header:has(.site-nav.is-open) {
    margin-bottom: 0;
  }

  .site-nav.is-open {
    padding-bottom: 0.35rem;
  }

  .info-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 1.1rem 1.15rem;
  }

  .search-form {
    margin-left: 0;
    width: 100%;
  }

  .search-form input {
    width: 100%;
  }

  .split,
  .detail-layout,
  .card-grid,
  .logo-grid,
  .follow-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-carousel .carousel-item,
  .hero-carousel img {
    height: 400px;
  }
}

@media (max-width: 680px) {
  .card-grid,
  .logo-grid,
  .follow-grid,
  .split,
  .detail-layout,
  .gallery {
    grid-template-columns: 1fr;
  }

  /* About us: image first, copy underneath on small screens */
  .split-media-first .frame {
    order: -1;
  }

  .hero-carousel .carousel-item,
  .hero-carousel img {
    height: 320px;
  }

  .hero-caption {
    padding: 2.2rem 1.1rem 1.2rem;
  }

  .hero-caption h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .hero-caption p {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .person-card {
    flex-basis: 100%;
    max-width: 24rem;
  }
}

@media (max-width: 570px) {
  .person-grid {
    /* Photo hangs ~82px above each card — keep clear air between stacks */
    gap: 7.5rem 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .person-grid.cols-2 .person-card,
  .person-grid.cols-3 .person-card,
  .person-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 24rem;
  }
}

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

  .section.reveal,
  .section.reveal.is-inview {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .frame-tilt-right img,
  .frame-tilt-left img {
    transform: none;
  }

  .event-card,
  .event-card:hover,
  .service-card,
  .service-card:hover,
  .logo-grid figure,
  .logo-grid figure:hover {
    scale: 1;
    transition: none;
  }

  .person-card img,
  .person-card:hover img,
  .person-card .person-fallback,
  .person-card:hover .person-fallback,
  .person-card:hover img[src*="yasin-hersi"] {
    transform: translate(-50%, -55%);
    transition: none;
  }

  .carousel {
    scroll-behavior: auto;
  }
}

/* Accessibility panel: Motion Off — same as reduced-motion */
html.ctc-motion-off {
  scroll-behavior: auto;
}

html.ctc-motion-off .section.reveal,
html.ctc-motion-off .section.reveal.is-inview {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

html.ctc-motion-off .event-card,
html.ctc-motion-off .event-card:hover,
html.ctc-motion-off .service-card,
html.ctc-motion-off .service-card:hover,
html.ctc-motion-off .logo-grid figure,
html.ctc-motion-off .logo-grid figure:hover {
  scale: 1;
  transition: none;
}

html.ctc-motion-off .person-card img,
html.ctc-motion-off .person-card:hover img,
html.ctc-motion-off .person-card .person-fallback,
html.ctc-motion-off .person-card:hover .person-fallback,
html.ctc-motion-off .person-card:hover img[src*="yasin-hersi"] {
  transform: translate(-50%, -55%);
  transition: none;
}

html.ctc-motion-off .carousel {
  scroll-behavior: auto;
}

/* Israac Accessibility */
/* Accessibility controls — copied from Chance to Choose (main.js / site CSS) */

:root {
  /* Israac green accents for accessibility controls */
  --ctc-accent: #75a86f;
  --ctc-accent-hover: #4f7a49;
  --ctc-accent-active: #3f633b;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/uploads/israac/assets/fonts/accessibility/OpenDyslexic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/uploads/israac/assets/fonts/accessibility/OpenDyslexic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/uploads/israac/assets/fonts/accessibility/OpenDyslexic-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('/uploads/israac/assets/fonts/accessibility/OpenDyslexic-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* Standalone back-to-top (from Chance to Choose) */
#backToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--ctc-accent, #75a86f);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.35rem 1rem rgba(20, 32, 19, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease;
    cursor: pointer;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover,
#backToTop:focus-visible {
    background: var(--ctc-accent-hover, #4f7a49);
}

#backToTop:focus-visible {
    outline: 3px solid var(--ctc-accent, #75a86f);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    #backToTop {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
}

html.ctc-motion-off #backToTop {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #backToTop {
        transition: none;
    }
}

.tts-player {
    position: fixed;
    left: 1.25rem;
    right: auto;
    bottom: 1.25rem;

    width: min(390px, calc(100% - 2rem));

    background: var(--bs-white);
    color: var(--bs-dark);

    border: 2px solid var(--bs-gray-800);
    border-radius: 0.75rem;

    box-shadow: 0 0.75rem 2rem rgba(var(--bs-black-rgb), 0.20);

    z-index: 1080;

    overflow: hidden;
}


/* ==================================================
   PLAYER HEADER
   ================================================== */

.tts-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 0.8rem 0.9rem;

    background: var(--bs-gray-800);
    color: var(--bs-white);
}

.tts-player-header strong {
    display: flex;
    align-items: center;

    gap: 0.55rem;

    font-size: 1.15rem;
}


/* ==================================================
   MINIMISE BUTTON
   ================================================== */



/* Accessibility header buttons */

.tts-player-header-actions {
    display: flex;
    align-items: center;

    gap: 0.4rem;

    margin-left: auto;
}

.tts-top-button {
    flex: 0 0 auto;
}

.tts-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    padding: 0;

    border: 2px solid rgba(var(--bs-white-rgb), 0.5) !important;
    border-radius: 0.55rem;

    background: transparent;
    color: var(--bs-white);

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.tts-icon-button:hover {
    background: var(--bs-white);
    color: var(--bs-dark);

    border-color: var(--bs-white);
}

.tts-icon-button:focus-visible {
    outline: 3px solid var(--ctc-accent);
    outline-offset: 2px;
}


/* ==================================================
   SPEECH BUTTON AREA
   ================================================== */

.tts-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.35rem;

    padding: 0.6rem;

    background: var(--bs-white);
}


/* ==================================================
   READ ALOUD TITLE
   ================================================== */

.tts-read-aloud-title {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;

    gap: 0.4rem;

    margin-bottom: 0.15rem;

    color: var(--bs-dark);

    font-size: 0.95rem;
    font-weight: 700;
}

.tts-read-aloud-title i {
    font-size: 1rem;
    line-height: 1;
}


/* ==================================================
   SPEECH BUTTONS
   ================================================== */

.tts-button {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.35rem;

    width: 100%;

    height: 58px;
    min-height: 58px;
    max-height: 58px;

    padding: 0.3rem;

    border: 2px solid var(--bs-secondary);
    border-radius: 0.5rem;

    background: var(--bs-white);
    color: var(--bs-dark);

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.tts-button i {
    font-size: 1.05rem;
    line-height: 1;
}

.tts-button span {
    font-size: 0.78rem;
    line-height: 1.1;
}


/* Orange hover */

.tts-button:hover {
    background: var(--ctc-accent-hover);
    color: var(--bs-white);

    border-color: var(--ctc-accent-hover);
}


/* Active speech control */

.tts-button.tts-active {
    background: var(--ctc-accent);
    color: var(--bs-white);

    border-color: var(--ctc-accent);

    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--ctc-accent) 20%, transparent);
}

.tts-button:hover i,
.tts-button.tts-active i {
    color: var(--bs-white);
}

.tts-button:focus-visible {
    outline: 3px solid var(--ctc-accent);
    outline-offset: 2px;
}


/* ==================================================
   READING COLOUR SECTION
   ================================================== */

.tts-colour-controls {
    padding: 0.6rem;

    border-top: 1px solid var(--bs-gray-500);

    background: var(--bs-white);
    color: var(--bs-dark);
}

.tts-colour-title {
    display: flex;
    align-items: center;

    gap: 0.4rem;

    margin-bottom: 0.65rem;

    font-size: 1rem;
    font-weight: 700;
}

.tts-colour-title i {
    margin: 0;
}


/* ==================================================
   READING COLOUR BUTTON GRID
   ================================================== */

.tts-colour-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.35rem;
}


/* ==================================================
   READING COLOUR BUTTONS
   ================================================== */

.tts-colour-button {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.35rem;

    width: 100%;

    height: 58px;
    min-height: 58px;
    max-height: 58px;

    padding: 0.3rem;

    border: 2px solid var(--bs-secondary);
    border-radius: 0.5rem;

    background: var(--bs-white);
    color: var(--bs-dark);

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


/* Orange hover */

.tts-colour-button:hover {
    background: var(--ctc-accent-hover);
    color: var(--bs-white);

    border-color: var(--ctc-accent-hover);
}


/* Selected colour */

.tts-colour-button.active {
    background: var(--bs-white);
    color: var(--bs-dark);

    border-color: var(--ctc-accent);

    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--ctc-accent) 22%, transparent);
}

.tts-colour-button:focus-visible {
    outline: 3px solid var(--ctc-accent);
    outline-offset: 2px;
}

.tts-colour-button i {
    font-size: 1.05rem;
    line-height: 1;
}

.tts-colour-button:hover i {
    color: var(--bs-white);
}


/* ==================================================
   COLOUR PREVIEW CIRCLES
   ================================================== */

.tts-colour-swatch {
    display: block;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    border: 2px solid var(--bs-gray-700);
    border-radius: 50%;
}


/* Dark */

.tts-colour-dark .tts-colour-swatch {
    background: var(--bs-dark);
}


/* Blue */

.tts-colour-blue .tts-colour-swatch {
    background: var(--bs-primary-bg-subtle);
}


/* Green */

.tts-colour-green .tts-colour-swatch {
    background: var(--bs-success-bg-subtle);
}


/* Keep preview circles clear on orange hover */

.tts-colour-button:hover .tts-colour-swatch {
    border-color: var(--bs-white);
}


/* ==================================================
   ZOOM SECTION
   ================================================== */

.tts-zoom-controls {
    padding: 0.6rem;

    border-top: 1px solid var(--bs-gray-500);

    background: var(--bs-white);
    color: var(--bs-dark);
}

.tts-zoom-title {
    display: flex;
    align-items: center;

    gap: 0.4rem;

    margin-bottom: 0.65rem;

    font-size: 1rem;
    font-weight: 700;
}

.tts-zoom-title i {
    margin: 0;
}


/* ==================================================
   ZOOM BUTTON GRID
   ================================================== */

.tts-zoom-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.35rem;
}


/* ==================================================
   ZOOM BUTTONS
   ================================================== */

.tts-zoom-button {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.25rem;

    width: 100%;

    height: 58px;
    min-height: 58px;
    max-height: 58px;

    padding: 0.3rem;

    border: 2px solid var(--bs-secondary);
    border-radius: 0.5rem;

    background: var(--bs-white);
    color: var(--bs-dark);

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.tts-zoom-button:hover {
    background: var(--ctc-accent-hover);
    color: var(--bs-white);

    border-color: var(--ctc-accent-hover);
}

.tts-zoom-button.active {
    background: var(--bs-white);
    color: var(--bs-dark);

    border-color: var(--ctc-accent);

    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--ctc-accent) 22%, transparent);
}

.tts-zoom-button:focus-visible {
    outline: 3px solid var(--ctc-accent);
    outline-offset: 2px;
}

.tts-zoom-button i {
    font-size: 1.05rem;
    line-height: 1;
}

.tts-zoom-button:hover i {
    color: var(--bs-white);
}

.tts-zoom-example {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 20px;

    font-weight: 800;
    line-height: 1;
}

.tts-zoom-example-normal {
    font-size: 0.85rem;
}

.tts-zoom-example-large {
    font-size: 1.05rem;
}

.tts-zoom-example-massive {
    font-size: 1.3rem;
}


/* ==================================================
   PAGE ZOOM LEVELS
   ==================================================

   Uses CSS page zoom so images, cards, controls, spacing
   and text enlarge together, similar to browser Cmd/Ctrl +.
   ================================================== */

html.ctc-zoom-large body {
    zoom: 1.5;
}

html.ctc-zoom-massive body {
    zoom: 2.5;
}


/*
 * Keep the Accessibility panel at its normal/original size.
 *
 * The rest of the page behaves like page zoom, but the floating
 * Accessibility control keeps the same collapsed/open appearance
 * it had before Zoom was added.
 */

html.ctc-zoom-large #ttsPlayer {
    zoom: 0.6666667;
}

html.ctc-zoom-massive #ttsPlayer {
    zoom: 0.4;
}








/* ==================================================
   iPHONE / iPAD TEXT ZOOM
   ==================================================

   iOS Safari can behave inconsistently with CSS zoom.

   On iPhone/iPad we therefore leave the page layout and
   Accessibility panel at their normal physical size and enlarge
   the page TEXT using Safari's text-size-adjust support.

   Large   = 150%
   Massive = 250%

   The Accessibility player is explicitly kept at 100%.
   ================================================== */

@supports (-webkit-touch-callout: none) {

    /* Disable whole-page CSS zoom on iPhone/iPad. */
    html.ctc-zoom-large body,
    html.ctc-zoom-massive body {
        zoom: 1 !important;
    }

    /* Large text */
    html.ctc-zoom-large body {
        -webkit-text-size-adjust: 150% !important;
        text-size-adjust: 150% !important;
    }

    /* Massive text */
    html.ctc-zoom-massive body {
        -webkit-text-size-adjust: 250% !important;
        text-size-adjust: 250% !important;
    }

    /*
     * Keep the floating Accessibility box completely normal size.
     * This overrides the inherited iPhone text enlargement.
     */
    html.ctc-zoom-large #ttsPlayer,
    html.ctc-zoom-large #ttsPlayer *,
    html.ctc-zoom-massive #ttsPlayer,
    html.ctc-zoom-massive #ttsPlayer * {
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    /*
     * Do not apply inverse CSS zoom to the Accessibility box on iOS,
     * because the page itself is no longer CSS-zoomed.
     */
    html.ctc-zoom-large #ttsPlayer,
    html.ctc-zoom-massive #ttsPlayer {
        zoom: 1 !important;
        transform: none !important;
    }

    /* Keep the reading guide/mask at its normal physical size too. */
    html.ctc-zoom-large #ctcReadingAid,
    html.ctc-zoom-massive #ctcReadingAid {
        zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
}


/* ==================================================
   DARK READING MODE
   ================================================== */

body.ctc-colour-dark main {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

body.ctc-colour-dark main section,
body.ctc-colour-dark main .ctc-toggle-bar {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

body.ctc-colour-dark main .card {
    background-color: var(--bs-gray-900) !important;
    color: var(--bs-light) !important;

    border-color: var(--bs-secondary) !important;
}

body.ctc-colour-dark main h1,
body.ctc-colour-dark main h2,
body.ctc-colour-dark main h3,
body.ctc-colour-dark main h4,
body.ctc-colour-dark main h5,
body.ctc-colour-dark main h6,
body.ctc-colour-dark main p,
body.ctc-colour-dark main li,
body.ctc-colour-dark main label,
body.ctc-colour-dark main blockquote {
    color: var(--bs-light);
}

/* Bootstrap text-muted uses !important, so dark mode must override it explicitly. */
body.ctc-colour-dark main .text-muted,
body.ctc-colour-dark main .text-secondary,
body.ctc-colour-dark main .text-body-secondary {
    color: var(--bs-gray-400) !important;
}

body.ctc-colour-dark main a:not(.btn) {
    color: var(--bs-info-bg-subtle);
}

body.ctc-colour-dark main a:not(.btn):hover,
body.ctc-colour-dark main a:not(.btn):focus {
    color: var(--bs-primary-bg-subtle);
}


/* Dark forms */

body.ctc-colour-dark main .form-control,
body.ctc-colour-dark main .form-select,
body.ctc-colour-dark main textarea {
    background-color: var(--bs-gray-900);
    color: var(--bs-white);

    border-color: var(--bs-secondary);
}

body.ctc-colour-dark main .form-control::placeholder,
body.ctc-colour-dark main textarea::placeholder {
    color: var(--bs-gray-400);
}

body.ctc-colour-dark main .form-check-label {
    color: var(--bs-light);
}


/* Dark tables */

body.ctc-colour-dark main .table {
    --bs-table-bg: var(--bs-gray-900);
    --bs-table-color: var(--bs-light);
    --bs-table-border-color: var(--bs-secondary);
}


/* Dark Easy Read */

body.ctc-colour-dark main .ctc-easy-read-item,
body.ctc-colour-dark main .ctc-easy-read-text {
    color: var(--bs-light);
}


/* ==================================================
   BLUE READING MODE
   ================================================== */

body.ctc-colour-blue main {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-dark);
}

body.ctc-colour-blue main section,
body.ctc-colour-blue main .ctc-toggle-bar {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

body.ctc-colour-blue main .card {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

body.ctc-colour-blue main h1,
body.ctc-colour-blue main h2,
body.ctc-colour-blue main h3,
body.ctc-colour-blue main h4,
body.ctc-colour-blue main h5,
body.ctc-colour-blue main h6,
body.ctc-colour-blue main p,
body.ctc-colour-blue main li,
body.ctc-colour-blue main label,
body.ctc-colour-blue main blockquote {
    color: var(--bs-dark);
}

body.ctc-colour-blue main .text-secondary,
body.ctc-colour-blue main .text-body-secondary {
    color: var(--bs-gray-800) !important;
}


/* ==================================================
   GREEN READING MODE
   ================================================== */

body.ctc-colour-green main {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-dark);
}

body.ctc-colour-green main section,
body.ctc-colour-green main .ctc-toggle-bar {
    background-color: var(--bs-success-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

body.ctc-colour-green main .card {
    background-color: var(--bs-success-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

body.ctc-colour-green main h1,
body.ctc-colour-green main h2,
body.ctc-colour-green main h3,
body.ctc-colour-green main h4,
body.ctc-colour-green main h5,
body.ctc-colour-green main h6,
body.ctc-colour-green main p,
body.ctc-colour-green main li,
body.ctc-colour-green main label,
body.ctc-colour-green main blockquote {
    color: var(--bs-dark);
}

body.ctc-colour-green main .text-secondary,
body.ctc-colour-green main .text-body-secondary {
    color: var(--bs-gray-800) !important;
}


/* Keep tertiary sections subtly distinct from the reading-mode page.
   These selectors also override the general section backgrounds above. */
body.ctc-colour-dark main .bg-body-tertiary {
    background-color: var(--bs-gray-800) !important;
    color: var(--bs-light) !important;
}

body.ctc-colour-blue main .bg-body-tertiary {
    background-color: color-mix(in srgb, var(--bs-primary-bg-subtle) 94%, var(--bs-primary)) !important;
    color: var(--bs-dark) !important;
}

body.ctc-colour-green main .bg-body-tertiary {
    background-color: color-mix(in srgb, var(--bs-success-bg-subtle) 94%, var(--bs-success)) !important;
    color: var(--bs-dark) !important;
}


/* Easy Read / Full Detailed: selected text must contrast with reading mode. */
body.ctc-colour-dark .ctc-toggle-label {
    color: color-mix(in srgb, var(--bs-gray-500) 5%, var(--bs-gray-600));
}

body.ctc-colour-dark .ctc-toggle-label.active {
    color: var(--bs-light);
}

body.ctc-colour-blue .ctc-toggle-label,
body.ctc-colour-green .ctc-toggle-label {
    color: var(--bs-gray-700);
}

body.ctc-colour-blue .ctc-toggle-label.active,
body.ctc-colour-green .ctc-toggle-label.active {
    color: var(--bs-dark);
}

body:is(.ctc-colour-dark, .ctc-colour-blue, .ctc-colour-green) .ctc-toggle-label i {
    color: inherit;
}


/* ==================================================
   LINKS IN READING MODES
   ================================================== */

body.ctc-colour-dark main a,
body.ctc-colour-blue main a,
body.ctc-colour-green main a {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}


/* ==================================================
   TEXT TO SPEECH WORDS
   ================================================== */

.tts-word {
    border-radius: 0.15rem;
}

.tts-word-active {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-black);

    outline: 2px solid var(--bs-success);
    outline-offset: 1px;
}


/* Strong spoken-word highlight in reading modes */

body.ctc-colour-dark .tts-word-active,
body.ctc-colour-blue .tts-word-active,
body.ctc-colour-green .tts-word-active {
    background: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-black) !important;

    outline: 3px solid var(--bs-black);
    outline-offset: 2px;
}


/* ==================================================
   MINIMISED PLAYER
   ================================================== */

/*
 * Collapsed state keeps the normal Accessibility header visible:
 *
 * [ universal-access icon  Accessibility                 + ]
 *
 * Only the Read Aloud, Reading colours and Zoom sections are hidden.
 */

.tts-player.tts-minimised {
    width: auto;
    min-width: 205px;
    height: auto;

    border-radius: 0.75rem;

    overflow: hidden;
}


/* Keep the Accessibility icon and title visible */

.tts-player.tts-minimised .tts-player-header strong {
    display: flex;
    align-items: center;

    gap: 0.55rem;

    white-space: nowrap;
    line-height: 1;
}


/* Hide the content sections only */

.tts-player.tts-minimised .tts-controls,
.tts-player.tts-minimised .tts-colour-controls,
.tts-player.tts-minimised .tts-zoom-controls {
    display: none !important;
}


/* Keep the header looking like the normal Accessibility header */

.tts-player.tts-minimised .tts-player-header {
    width: 100%;
    height: auto;
    min-height: 0;

    padding: 0.4rem 0.4rem 0.4rem 0.85rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 0.65rem;

    background: var(--bs-gray-800);
    color: var(--bs-white);
    box-sizing: border-box;
}


/* Universal-access icon stays visible */

.tts-player.tts-minimised .tts-player-header strong i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    color: var(--bs-white);

    font-size: 1.1rem;
    line-height: 1;
    width: 1.15em;
    height: 1.15em;
}


/* Accessibility text stays visible */

.tts-player.tts-minimised .tts-header-text {
    display: inline;
    line-height: 1;
}




/* Back-to-top button is only shown while the panel is open */

.tts-player.tts-minimised .tts-top-button {
    display: none !important;
}




.tts-player.tts-minimised .tts-player-header-actions {
    display: flex;
    align-items: center;

    margin-left: auto;
}


/* Plus button on the right — evenly padded and vertically centred */

.tts-player.tts-minimised .tts-icon-button {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;
    align-self: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    margin: 0;
    padding: 0;

    border: 1.5px solid rgba(var(--bs-white-rgb), 0.55);
    border-radius: 0.45rem;

    background: transparent;
    color: var(--bs-white);

    font-size: 1rem;
    line-height: 1;
    box-sizing: border-box;
}


/* Plus icon */

.tts-player.tts-minimised .tts-icon-button i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    color: var(--bs-white);

    font-size: 0.95rem;
    line-height: 1;
    width: 1em;
    height: 1em;
}


/* Green hover — keep the + control visible (never white-on-white) */

.tts-player.tts-minimised .tts-icon-button:hover {
    background: var(--ctc-accent-hover, #4f7a49) !important;
    color: #fff !important;
    border-color: var(--ctc-accent-hover, #4f7a49) !important;
}

.tts-player.tts-minimised .tts-icon-button:hover i {
    color: #fff !important;
}

/* Open-panel header +/- control */
.tts-player:not(.tts-minimised) .tts-icon-button:hover {
    background: var(--ctc-accent-hover, #4f7a49) !important;
    color: #fff !important;
    border-color: var(--ctc-accent-hover, #4f7a49) !important;
}

.tts-player:not(.tts-minimised) .tts-icon-button:hover i {
    color: #fff !important;
}

/* Active / pressed control buttons use Israac green */
.tts-button.tts-active,
.tts-button:hover,
.tts-zoom-button.active,
.tts-zoom-button:hover {
    background: var(--ctc-accent, #75a86f) !important;
    border-color: var(--ctc-accent, #75a86f) !important;
    color: #fff !important;
}

.tts-button.tts-active i,
.tts-button:hover i,
.tts-zoom-button.active i,
.tts-zoom-button:hover i {
    color: #fff !important;
}

.tts-colour-button:hover,
.tts-colour-button.active {
    border-color: var(--ctc-accent, #75a86f) !important;
}

.tts-credit {
    margin: 0;
    padding: 0.35rem 0.65rem 0.5rem;
    border-top: 1px solid rgba(20, 32, 19, 0.12);
    font-size: 0.62rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #6b7368;
    text-align: center;
}

.tts-credit a {
    color: inherit;
    text-decoration: none;
}

.tts-credit a:hover,
.tts-credit a:focus-visible {
    color: var(--ctc-accent-hover, #4f7a49);
    text-decoration: underline;
}

.tts-player.tts-minimised .tts-credit {
    display: none !important;
}


/* Keyboard focus */

.tts-player.tts-minimised .tts-icon-button:focus-visible {
    outline: 3px solid var(--ctc-accent);
    outline-offset: 2px;
}


/* ==================================================
   COLLAPSED ICON ONLY
   Mobile (always): only the universal-access icon.
   Desktop: full [ icon | Accessibility | + ] for 1 minute,
   then .tts-icon-compact (same icon-only look) for 1 day.
   #ttsMinimise stays as an invisible full-size tap target.
   ================================================== */

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    overflow: hidden !important;
    border-radius: 12px !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) .tts-player-header {
    position: relative !important;

    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    padding: 0 !important;
    gap: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) .tts-player-header strong {
    width: 50px !important;
    height: 50px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    pointer-events: none !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) .tts-player-header strong i {
    display: inline-block !important;
    margin: 0 !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) .tts-header-text {
    display: none !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) #ttsMinimise {
    position: absolute !important;
    inset: 0 !important;

    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    z-index: 5 !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) #ttsMinimise i {
    opacity: 0 !important;
    visibility: hidden !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) #ttsMinimise:hover,
:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) #ttsMinimise:active {
    background: transparent !important;
    border-color: transparent !important;
}

:is(
    html.ctc-a11y-narrow #ttsPlayer.tts-minimised,
    #ttsPlayer.tts-minimised.tts-icon-compact
) #ttsMinimise:focus-visible {
    outline: 3px solid var(--ctc-accent, #75a86f) !important;
    outline-offset: -3px !important;
    border-radius: 10px !important;
}

/* Mobile open-panel: restore normal +/- control sizing */
@media (max-width: 767.98px) {

    #ttsPlayer:not(.tts-minimised) #ttsMinimise {
        position: static !important;
        inset: auto !important;

        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;

        opacity: 1 !important;
    }

    #ttsPlayer:not(.tts-minimised) #ttsMinimise i {
        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 575.98px) {

    .tts-player:not(.tts-minimised) {
        left: 0.5rem;
        right: auto;
        bottom: 0.5rem;

        width: calc(100% - 1rem);
        max-width: 390px;
    }

    /*
     * Keep all three Accessibility button groups consistent on mobile.
     * Read Aloud, Reading colours and Zoom all become a 2-column grid.
     */
    .tts-controls,
    .tts-colour-buttons,
    .tts-zoom-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    /*
     * Match the Zoom buttons to the same mobile height as the
     * Read Aloud and Reading colour buttons.
     */
    .tts-button,
    .tts-colour-button,
    .tts-zoom-button {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
    }

    .tts-button span,
    .tts-colour-button span,
    .tts-zoom-button span {
        font-size: 0.76rem;
    }

    .tts-player-header {
        padding: 0.65rem 0.75rem;
    }
}


/* ==================================================
   VERY SMALL SCREENS
   ================================================== */

@media (max-width: 360px) {

    .tts-controls,
    .tts-colour-buttons,
    .tts-zoom-buttons {
        gap: 0.35rem;
    }

    .tts-controls,
    .tts-colour-controls,
    .tts-zoom-controls {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .tts-button,
    .tts-colour-button,
    .tts-zoom-button,
    .tts-icon-button {
        transition: none;
    }
}


.tts-extra-controls {
    padding: 0.6rem;
    border-top: 1px solid var(--bs-gray-500, #adb5bd);
    background: var(--bs-white, #fff);
    color: var(--bs-dark, #212529);
}
.tts-extra-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.tts-extra-buttons-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tts-extra-controls .tts-zoom-button { white-space: normal; line-height: 1.2; }
.tts-option-note { margin: 0.5rem 0 0; font-size: 0.8rem; line-height: 1.45; }
.tts-player.tts-minimised .tts-extra-controls { display: none !important; }
.tts-extra-controls button:disabled { opacity: 0.55; cursor: not-allowed; }
/* Use the locally hosted OpenDyslexic font only in dyslexia mode. */
html.ctc-dyslexia-friendly body :is(main, header, nav, footer, .footer-section),
html.ctc-dyslexia-friendly body :is(main, header, nav, footer, .footer-section) :not(i):not(svg):not(path):not([class*="fa-"]) {
    font-family: 'OpenDyslexic', Arial, Verdana, sans-serif !important;
    letter-spacing: 0.06em;
    word-spacing: 0.12em;
    line-height: 1.65;
}
/* Keep image layout and image links intact while removing visual pictures. */
html.ctc-hide-pictures body img,
html.ctc-hide-pictures body picture { opacity: 0 !important; }
html.ctc-hide-pictures body :is(main, header, footer, .footer-section),
html.ctc-hide-pictures body :is(main, header, footer, .footer-section) * {
    background-image: none !important;
}
#ctcReadingAid {
    position: fixed; inset: 0; pointer-events: none;
    z-index: 1070; overflow: hidden;
}
#ctcReadingAid[hidden] { display: none !important; }
#ctcReadingAid .ctc-reading-band {
    position: absolute; left: 0; right: 0;
    top: var(--ctc-reading-y, 50vh); transform: translateY(-50%);
}
#ctcReadingAid[data-mode="mask"] .ctc-reading-band {
    height: 120px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.65);
}
/* Reading ruler: black bar, yellow outline and a pointer that follows the mouse. */
#ctcReadingAid[data-mode="guide"] .ctc-reading-band {
    box-sizing: border-box;
    left: 12px; right: 12px;
    height: 24px;
    background: #000;
    border: 6px solid #ffff00;
    border-radius: 12px;
}
#ctcReadingAid[data-mode="guide"] .ctc-reading-band::before,
#ctcReadingAid[data-mode="guide"] .ctc-reading-band::after {
    content: "";
    position: absolute;
    /* Convert viewport X into the bar's inner coordinates and keep the
       triangle inside its rounded ends. */
    left: clamp(34px, calc(var(--ctc-reading-x, 50vw) - 18px), calc(100% - 34px));
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
#ctcReadingAid[data-mode="guide"] .ctc-reading-band::before {
    top: -34px; width: 68px; height: 36px;
    background: #ffff00;
}
#ctcReadingAid[data-mode="guide"] .ctc-reading-band::after {
    top: -28px; width: 56px; height: 30px;
    background: #000;
}
html.ctc-zoom-large #ctcReadingAid { zoom: 0.6666667; }
html.ctc-zoom-massive #ctcReadingAid { zoom: 0.4; }
@media (max-width: 575.98px) {
    .tts-player:not(.tts-minimised) { max-height: calc(100dvh - 1rem); }
    .tts-extra-buttons-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tts-extra-buttons-three > :last-child { grid-column: 1 / -1; }
}
@media print {
    #ctcReadingAid, #ttsPlayer { display: none !important; }
}



/* Israac chrome under reading colours */
body.ctc-colour-dark .site-header,
body.ctc-colour-dark .lang-bar,
body.ctc-colour-dark .hero-band,
body.ctc-colour-dark .site-footer {
  background: #111 !important;
  color: #f2f2f2 !important;
}
body.ctc-colour-dark .site-header a,
body.ctc-colour-dark .lang-bar,
body.ctc-colour-dark .site-footer,
body.ctc-colour-dark .site-footer a,
body.ctc-colour-dark .info-bar,
body.ctc-colour-dark .info-bar a,
body.ctc-colour-dark .page-hero {
  color: #f2f2f2 !important;
}
body.ctc-colour-blue .site-header,
body.ctc-colour-blue .lang-bar,
body.ctc-colour-blue .hero-band,
body.ctc-colour-blue .site-footer {
  background: #d9e8f5 !important;
  color: #10233a !important;
}
body.ctc-colour-green .site-header,
body.ctc-colour-green .lang-bar,
body.ctc-colour-green .hero-band,
body.ctc-colour-green .site-footer {
  background: #dff0d8 !important;
  color: #143019 !important;
}

/* Israac CMS Integration */
.info-bar-inner > form {margin-left:auto;}
.info-bar-inner > form .search-form {margin-left:0;}
.israac-single {grid-template-columns:1fr;}
.israac-booking .erh-front {max-width:none;margin:0;}
.israac-booking .erh-panel {box-shadow:none;border:0;padding:0;}
.israac-booking input,.israac-booking select,.israac-booking textarea {font:inherit;max-width:100%;}
.israac-booking button.erh-button {background:var(--brand,#7da572);border-radius:999px;border:0;color:#fff;padding:.75rem 1.25rem;}
@media(max-width:767px){.info-bar-inner > form {margin-left:0;width:100%;}.info-bar-inner > form .search-form {width:100%;}}
/* Room hire: module-fed spaces, prices and supporting information. */
.israac-hire {--hire-ink:#263a2c;--hire-soft:#edf3e9;}
.israac-hire .hire-section-intro {max-width:42rem;margin:-.25rem 0 2rem;color:#586154;font-size:1.05rem;line-height:1.6;}
.israac-hire .hire-spaces {align-items:stretch;}
.israac-hire .hire-space-card {height:100%;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dfe6da;border-radius:1.35rem;box-shadow:0 8px 28px rgba(30,57,35,.045);}
.israac-hire .hire-space-media {position:relative;aspect-ratio:16/9;overflow:hidden;background:#e6ede1;}
.israac-hire .hire-space-media img {width:100%;height:100%;object-fit:cover;object-position:center 62%;display:block;}
.israac-hire .hire-space-placeholder {height:100%;display:grid;place-items:center;color:var(--green-deep);font-size:3rem;}
.israac-hire .hire-capacity {position:absolute;bottom:1rem;left:1rem;display:inline-flex;align-items:center;gap:.55rem;padding:.5rem .85rem;border-radius:2rem;background:#fff;color:var(--hire-ink);font-size:.85rem;font-weight:700;box-shadow:0 2px 12px #00000012;}
.israac-hire .hire-capacity i {color:var(--green-deep);}
.israac-hire .hire-space-content {display:flex;flex-direction:column;flex:1;padding:1.65rem 1.8rem 1.8rem;}
.israac-hire .hire-space-content > h3 {margin:0 0 .85rem;color:var(--hire-ink);font-size:1.85rem;line-height:1.15;font-weight:700;}
.israac-hire .hire-space-description {margin-bottom:1.4rem;min-height:5.6rem;}
.israac-hire .hire-space-description h3 {font-size:.97rem;font-weight:700;line-height:1.5;color:var(--green-deep);margin:0 0 .35rem;}
.israac-hire .hire-space-description p {font-size:.96rem;line-height:1.55;margin:0;color:#576052;}
.israac-hire .hire-rate-heading {display:flex;justify-content:space-between;padding:0 0 .65rem;border-bottom:2px solid #dfe7d9;color:#5c6e53;font-size:.71rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;}
.israac-hire .hire-rates {margin:0 0 1.6rem;}
.israac-hire .hire-rate {display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.8rem 0;border-bottom:1px solid #e9ece5;}
.israac-hire .hire-rate dt {font-size:.97rem;line-height:1.4;font-weight:600;color:var(--hire-ink);min-width:0;}
.israac-hire .hire-rate small {display:block;color:#697063;font-size:.8rem;line-height:1.45;font-weight:400;margin-top:.2rem;}
.israac-hire .hire-rate dd {margin:0;flex-shrink:0;font-size:1.04rem;font-weight:700;line-height:1.4;color:var(--hire-ink);font-variant-numeric:tabular-nums;white-space:nowrap;}
.israac-hire .hire-enquire {align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:1rem;}
.israac-hire .hire-extras {margin-top:2rem;}
.israac-hire .hire-extra {display:flex;gap:1rem;align-items:flex-start;padding:.8rem .2rem;}
.israac-hire .hire-extra-icon {flex-shrink:0;width:2.8rem;height:2.8rem;border-radius:50%;background:#e6eddf;display:grid;place-items:center;color:#507648;font-size:1.1rem;}
.israac-hire .hire-extra h3 {font-size:1.1rem;color:var(--hire-ink);line-height:1.35;margin:0 0 .55rem;}
.israac-hire .hire-extra p {margin:0;line-height:1.65;font-size:.94rem;color:#576052;}
.israac-hire .hire-conditions {margin-top:2.4rem;padding:1.8rem 2rem 2rem;border:1px solid #dce7d5;background:#eef3e9;border-radius:1.2rem;}
.israac-hire .hire-conditions-heading {display:flex;align-items:center;gap:1rem;margin-bottom:1.2rem;}
.israac-hire .hire-eyebrow {text-transform:uppercase;letter-spacing:.13em;font-size:.68rem;font-weight:700;color:#64775b;margin:0 0 .2rem;}
.israac-hire .hire-conditions h3 {font-size:1.35rem;line-height:1.3;color:var(--hire-ink);margin:0;}
.israac-hire .hire-conditions ul {padding:0;list-style:none;margin-bottom:0;}
.israac-hire .hire-conditions li {display:flex;gap:.7rem;align-items:flex-start;font-size:.88rem;line-height:1.6;color:#56624e;}
.israac-hire .hire-conditions li > i {color:#618458;font-size:.85rem;margin-top:.34rem;flex-shrink:0;}
.israac-hire .hire-conditions strong {display:block;color:var(--hire-ink);font-weight:700;margin-bottom:.15rem;}
#room-enquiry {scroll-margin-top:2rem;}
@media (max-width:767px) {
 .israac-hire .hire-section-intro {font-size:1rem;margin-bottom:1.5rem;}
 .israac-hire .hire-space-content {padding:1.4rem;}
 .israac-hire .hire-space-content > h3 {font-size:1.65rem;}
 .israac-hire .hire-space-description {min-height:0;}
 .israac-hire .hire-rate {padding:.75rem 0;}
 .israac-hire .hire-rates {margin-bottom:1.25rem;}
 .israac-hire .hire-enquire {width:100%;}
 .israac-hire .hire-conditions {padding:1.4rem;}
 .israac-hire .hire-extras {margin-top:1.3rem;}
}

.israac-hire .hire-price-enquiry {display:flex;align-items:center;gap:.65rem;margin:0 0 1.4rem;padding:.85rem 1rem;border-radius:.65rem;background:var(--hire-soft);color:#4f6745;font-size:.95rem;}
@media (min-width:768px) {
 .israac-hire .hire-room-column:first-child:nth-last-child(odd) {width:100%;flex-basis:100%;}
 .israac-hire .hire-room-column:first-child:nth-last-child(odd) .hire-space-card {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
 .israac-hire .hire-room-column:first-child:nth-last-child(odd) .hire-space-media {aspect-ratio:auto;min-height:19rem;}
 .israac-hire .hire-room-column:first-child:nth-last-child(odd) .hire-space-description {min-height:0;}
}
.israac-room-carousel {position:relative;border-radius:1.2rem;overflow:hidden;background:#e7eee1;box-shadow:0 10px 28px #263a2c0a;}
.israac-room-carousel .carousel-item {position:relative;}
.israac-room-carousel .carousel-item > img {height:24rem;object-fit:cover;object-position:center 62%;}
.israac-room-carousel .hire-carousel-caption {position:absolute;left:1rem;top:1rem;padding:.45rem .85rem;background:#fff;color:#263a2c;border-radius:2rem;font-size:.86rem;font-weight:700;box-shadow:0 2px 12px #00000015;}
.israac-room-carousel .hire-carousel-controls {display:flex;align-items:center;justify-content:center;gap:1.2rem;padding:.7rem 1rem;background:#fff;}
.israac-room-carousel .hire-carousel-controls > button {width:2.5rem;height:2.5rem;border-radius:50%;border:1px solid #dfe6da;background:#fff;color:#4f7a49;display:grid;place-items:center;}
.israac-room-carousel .hire-carousel-controls > button:hover {background:#edf3e9;}
.israac-room-carousel .carousel-indicators {position:static;margin:0;gap:.5rem;align-items:center;}
.israac-room-carousel .carousel-indicators [data-bs-target] {width:.55rem;height:.55rem;border:0;border-radius:50%;margin:0;background:#cad6c1;opacity:1;}
.israac-room-carousel .carousel-indicators .active {background:#4f7a49;}
@media(max-width:767px) {.israac-room-carousel .carousel-item > img {height:16rem;}}
/* Home carousel: GMS captions use the existing home hero styling. */
.israac-home-carousel .carousel-control-prev,.israac-home-carousel .carousel-control-next {z-index:3;}
@media(hover:hover) and (pointer:fine) {
 .israac-home-carousel .carousel-control-prev,.israac-home-carousel .carousel-control-next {opacity:0;pointer-events:none;}
 .israac-home-carousel:hover .carousel-control-prev,.israac-home-carousel:hover .carousel-control-next,
 .israac-home-carousel:focus-within .carousel-control-prev,.israac-home-carousel:focus-within .carousel-control-next {opacity:.8;pointer-events:auto;}
 .israac-home-carousel .carousel-control-prev:focus-visible,.israac-home-carousel .carousel-control-next:focus-visible {opacity:1;}
}
.israac-home-carousel .hero-caption h2 {margin:0 0 .6rem;font-size:clamp(2.2rem,5vw,4.2rem);font-weight:600;line-height:1.05;max-width:16ch;color:inherit;}
.israac-home-carousel .hero-caption .eyebrow {margin-bottom:.35rem;}
@media(max-width:680px) {
 .israac-home-carousel .hero-caption h2 {font-size:clamp(1.7rem,7vw,2.4rem);}
 .israac-home-carousel .carousel-item,.israac-home-carousel img {height:400px;}
}
/* PageSectionsPlus keeps the Israac split layout and editor choices. */
.israac-page-section .israac-section-column {min-width:0;}
.israac-page-section .israac-section-panel {padding:1.4rem;border-radius:1rem;}
.israac-page-section .text-white h2,.israac-page-section .text-white .kicker {color:inherit;}
.israac-page-section .israac-single .israac-section-image .frame {display:inline-block;width:min(100%,46rem);}
@media(max-width:680px) {.israac-page-section .split-media-first .israac-section-image {order:-1;}}
/* Israac video showcase: YouTubeCatalog players with the site's existing palette. */
.israac-video-page .video-intro {max-width:48rem;margin:0 auto 2rem;text-align:center;color:#596354;line-height:1.7;}
.israac-video-page .video-jump-links {display:flex;justify-content:center;flex-wrap:wrap;gap:.7rem;margin:0;}
.israac-video-page .video-jump-links a {padding:.55rem 1rem;border:1px solid #d9e3d2;background:#fff;border-radius:2rem;font-size:.92rem;font-weight:600;color:#45663d;text-decoration:none;}
.israac-video-page .video-jump-links a:hover,.israac-video-page .video-jump-links a:focus-visible {background:#edf3e9;border-color:#799f6e;}
.israac-video-page .video-feature-layout {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:2.5rem;}
.israac-video-page .video-feature-layout h2 {font-weight:700;letter-spacing:-.02em;font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.15;}
.israac-video-page .video-feature-layout p:not(.kicker) {color:#596354;line-height:1.7;}
.israac-video-page .video-section-intro {max-width:44rem;color:#596354;margin:-.4rem auto 2rem;line-height:1.6;text-align:center;}
.israac-video-page .israac-video-card {display:flex;flex-direction:column;background:#fff;border:1px solid #e1e6dd;border-radius:1.2rem;overflow:hidden;box-shadow:0 8px 25px #263a2c08;}
.israac-video-page .israac-video-copy {display:flex;flex-direction:column;flex:1;padding:1.4rem 1.5rem 1.5rem;}
.israac-video-page .israac-video-copy .kicker {font-size:.7rem;letter-spacing:.09em;margin:0 0 .5rem;}
.israac-video-page .israac-video-copy h3 {font-size:1.25rem;font-weight:700;line-height:1.3;margin:0 0 .7rem;}
.israac-video-page .israac-video-description {font-size:.95rem;line-height:1.6;color:#646b60;margin:0 0 1.25rem;}
.israac-video-page .israac-video-source {margin-top:auto;align-self:flex-start;font-size:.86rem;font-weight:700;color:#4d7543;text-decoration:none;display:inline-flex;align-items:center;gap:.6rem;}
.israac-video-page .israac-video-source:hover {color:#c95d19;text-decoration:underline;}
.israac-video-page .israac-featured-video {overflow:hidden;border:1px solid #dfe5da;border-radius:1.2rem;background:#fff;box-shadow:0 12px 30px #263a2c0b;}
.israac-video-page .israac-featured-caption {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.2rem;font-size:.8rem;color:#64725b;}
.israac-video-page .israac-featured-caption a {color:#486d3f;font-weight:700;text-decoration:none;}
.israac-video-page .ytc-video-play-button {background:#f5822a;box-shadow:0 4px 20px #0003;}
.israac-video-page .ytc-video-play-button:hover,.israac-video-page .ytc-video-play-button:focus-visible {background:#d86c20;}
.israac-video-page .ytc-fullscreen-trigger:hover,.israac-video-page .ytc-fullscreen-trigger:focus-visible {background:#4e7845;}
.israac-video-page .section[id] {scroll-margin-top:1rem;}
@media(max-width:767px) {.israac-video-page .video-feature-layout {grid-template-columns:1fr;gap:1.5rem;}.israac-video-page .israac-video-copy {padding:1.3rem;}.israac-video-page .israac-featured-caption {flex-wrap:wrap;gap:.4rem;}}
/* Legal information stays on the final line of the shared footer. */
.site-footer .legal {grid-template-columns:1fr 1fr;}
.site-footer .legal > :nth-child(2) {justify-self:end;text-align:right;}
.site-footer .footer-legal-links {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.55rem .8rem;padding-top:1.2rem;font-size:.88rem;}
.site-footer .footer-legal-links a {color:inherit;text-underline-offset:.2em;}
.site-footer .footer-legal-links a:hover,.site-footer .footer-legal-links a:focus-visible {text-decoration:underline;}
@media(max-width:680px) {
 .site-footer .legal {grid-template-columns:1fr;}
 .site-footer .legal > :nth-child(2) {justify-self:center;text-align:center;}
 .site-footer .footer-legal-links {gap:.4rem .55rem;line-height:1.7;}
}
