/**
 * @file
 * Code of Conduct — self-contained styles.
 *
 * Mirrors the About-Us layout pattern from about.less but adapted for the
 * Code of Conduct page with `coc-*` class prefix. Simpler page: no carousel,
 * no timeline, no leadership card, no cornerstones, no tech cards.
 *
 * Design tokens (var(--al-navy)…), the `.al-btn` button and `.container`
 * still come from the global general.css.
 *
 * Mirrors the static design reference
 * design-review/code_of_conduct/code_of_conduct.html.
 */
/**
 * @file
 * Shared LESS variables — imported by general.less and component files.
 *
 * Breakpoint variables used in @media queries across the theme.
 */
/* =========================================================================
   Design tokens supplement (extend those from general.less)
   ========================================================================= */
:root {
  --border-2: var(--al-gray-100);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --fs-5xl: 48px;
  --fs-6xl: 60px;
  --container-narrow: 720px;
  --container-md: 960px;
  --container-lg: 1140px;
  --container-xl: 1280px;
}
/* =========================================================================
   HERO
   ========================================================================= */
/* Hide Drupal's default page title — the hero supplies its own h1 */
.node--type-code-of-conduct .block-page-title-block {
  display: none;
}
.coc-hero {
  background: var(--al-navy);
  color: #fff;
  position: relative;
  overflow: clip;
  overflow-clip-margin: 20px;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.coc-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -110px;
  width: 480px;
  height: 270px;
  border: 2px solid rgba(224, 144, 48, 0.3);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.coc-hero::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 1.5px solid rgba(224, 144, 48, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.coc-hero .container {
  position: relative;
}
.coc-hero__figure {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 380px;
  z-index: 1;
  pointer-events: none;
}
.coc-hero__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1080px) {
  .coc-hero__figure {
    display: none;
  }
}
.coc-hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 60px;
  max-width: 880px;
}
.coc-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 80px 0 0;
  text-wrap: balance;
}
.coc-hero__title .accent {
  color: var(--al-orange);
}
.coc-hero__standfirst {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: #cfe0ec;
  max-width: 62ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.coc-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.coc-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.coc-hero .breadcrumb a:hover {
  color: #fff;
}
.coc-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}
.coc-hero .breadcrumb__current {
  color: var(--al-orange-300);
  font-weight: 600;
}
.coc-hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
}
.coc-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: background 0.14s, border-color 0.14s;
}
.coc-hero__ghost svg {
  width: 17px;
  height: 17px;
  transition: transform 0.14s;
}
.coc-hero__ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.coc-hero__ghost:hover svg {
  transform: translateX(3px);
}
/* Lead paragraph between standfirst and CTAs (coc only) */
.coc-hero__lead {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: #b8d0df;
  max-width: 62ch;
  margin: 16px 0 0;
  text-wrap: pretty;
}
/* =========================================================================
   BODY SHELL — two-column grid (sidebar left)
   ========================================================================= */
.coc-body {
  background: var(--bg-page);
  padding: 54px 0 6px;
}
.coc-grid-main {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.coc-article {
  min-width: 0;
}
/* article typography */
.coc-article .blog-lead {
  font-family: var(--font-sans);
  font-size: 25px;
  line-height: 1.62;
  color: var(--fg-1);
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 740px;
}
.coc-article p {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.78;
  color: var(--fg-2);
  margin: 0 0 18px;
  max-width: 740px;
}
.coc-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.25;
  color: var(--al-navy);
  margin: 64px 0 14px;
  scroll-margin-top: 100px;
  max-width: 740px;
}
.coc-article strong {
  color: var(--al-navy);
  font-weight: 700;
}
/* =========================================================================
   SIDEBAR — TOC card + CTA card
   ========================================================================= */
.coc-side {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.coc-toc-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.coc-toc-card__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-1);
}
.coc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  max-height: 40vh;
}
.coc-toc::-webkit-scrollbar {
  width: 4px;
}
.coc-toc::-webkit-scrollbar-track {
  background: transparent;
}
.coc-toc::-webkit-scrollbar-thumb {
  background: var(--border-1);
  border-radius: 2px;
}
.coc-toc a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg-2);
  text-decoration: none;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.coc-toc a:hover {
  background: var(--bg-alt);
  color: var(--al-navy);
}
.coc-toc a.is-active {
  color: var(--al-orange-700);
  border-left-color: var(--al-orange);
  background: #fff6ec;
  font-weight: 600;
}
.coc-cta-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--al-navy);
  color: #fff;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.coc-cta-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 170px;
  height: 110px;
  border: 2px solid rgba(224, 144, 48, 0.34);
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}
.coc-cta-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.coc-cta-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: #bcd6e7;
  margin: 0 0 16px;
  position: relative;
}
.coc-cta-card .al-btn {
  width: 100%;
  justify-content: center;
  position: relative;
}
/* =========================================================================
   PRINCIPLES CARD GRID (3 columns)
   ========================================================================= */
.coc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 6px;
}
.coc-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.coc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.coc-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--al-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}
.coc-card__icon svg {
  width: 24px;
  height: 24px;
}
.coc-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--al-navy);
  line-height: 1.2;
  margin: 0;
}
.coc-card p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
/* =========================================================================
   BROCHURE / DOWNLOAD CTA
   ========================================================================= */
.coc-brochure {
  margin: 35px 0 60px;
}
/* Mockup renders this download button as a solid-navy secondary. The global
   .al-btn--secondary is an orange outline (used elsewhere), so override only here. */
.coc-brochure .al-btn--secondary {
  background: var(--al-navy);
  color: #fff;
  border-color: var(--al-navy);
}
.coc-brochure .al-btn--secondary:hover {
  background: var(--al-navy-700);
  border-color: var(--al-navy-700);
  color: #fff;
}
/* =========================================================================
   NEWSLETTER BAND
   ========================================================================= */
.coc-newsband {
  background: var(--al-navy);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.coc-newsband::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 330px;
  height: 190px;
  border: 2px solid rgba(224, 144, 48, 0.28);
  border-radius: 50%;
  transform: rotate(14deg);
  pointer-events: none;
}
.coc-newsband__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: 46px 0;
}
.coc-newsband h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 17ch;
}
.coc-newsband p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #bcd6e7;
  margin: 9px 0 0;
  max-width: 46ch;
}
.coc-newsband form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.coc-newsband input {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  min-width: 250px;
}
.coc-newsband input::-moz-placeholder {
  color: #8fb1c8;
}
.coc-newsband input::placeholder {
  color: #8fb1c8;
}
.coc-newsband input:focus {
  outline: none;
  border-color: var(--al-orange);
  background: rgba(255, 255, 255, 0.12);
}
/* =========================================================================
   FINAL CTA
   ========================================================================= */
.coc-finalcta {
  background: var(--al-navy-900);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.coc-finalcta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 2px solid var(--al-orange);
  border-radius: 50%;
  transform: rotate(-15deg) scale(1, 0.34);
  opacity: 0.22;
  pointer-events: none;
}
.coc-finalcta::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid var(--al-orange);
  border-radius: 50%;
  transform: rotate(28deg) scale(1, 0.4);
  opacity: 0.14;
  pointer-events: none;
}
.coc-finalcta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.coc-finalcta__inner.with-form {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.coc-finalcta__copy {
  padding-top: 8px;
}
.coc-finalcta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.15vw, 50px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 16ch;
  text-wrap: balance;
}
.coc-finalcta p {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
  max-width: 60ch;
}
.coc-finalcta .coc-finalcta__microcopy {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
}
/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .coc-grid-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .coc-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .coc-cta-card {
    flex: 1;
    min-width: 260px;
  }
  .coc-finalcta__inner,
  .coc-finalcta__inner.with-form {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 680px) {
  .coc-grid {
    grid-template-columns: 1fr;
  }
  .coc-newsband__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
/* =========================================================================
   DARK MODE
   ========================================================================= */
body.dark .coc-body {
  background: var(--al-navy);
}
body.dark .blog-lead {
  color: rgba(255, 255, 255, 0.92);
}
body.dark .coc-article p {
  color: rgba(255, 255, 255, 0.78);
}
body.dark .coc-article h2 {
  color: #fff;
}
body.dark .coc-article strong {
  color: #fff;
}
body.dark .coc-toc-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark .coc-toc-card__h {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.dark .coc-toc a {
  color: rgba(255, 255, 255, 0.72);
}
body.dark .coc-toc a:hover {
  background: var(--al-navy-700);
  color: #fff;
}
body.dark .coc-toc a.is-active {
  color: var(--al-orange-300);
  background: rgba(224, 144, 48, 0.14);
  border-left-color: var(--al-orange);
}
body.dark .coc-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}
body.dark .coc-card {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
body.dark .coc-card h3 {
  color: #fff;
}
body.dark .coc-card p {
  color: rgba(255, 255, 255, 0.78);
}
body.dark .coc-card__icon {
  background: var(--al-navy-600);
}
