/*
Theme Name: Blackhall Laws
Description: A refined, responsive legal publishing theme inspired by Blackhall Publishing and Laws of Botswana.
Version: 1.5.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: blackhall-laws
*/


:root {
  --blue: #69b5df;
  --ink: #17191b;
  --muted: #69747b;
  --line: #e6e8e9;
  --paper: #fff;
  --serif: Georgia,'Times New Roman',serif;
  --sans: Inter,Arial,Helvetica,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.topline {
  height: 8px;
  background: var(--blue);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e4e5;
}

.masthead {
  max-width: 1480px;
  margin: auto;
  min-height: 84px;
  padding: 9px 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand-image {
  display: block;
}

.brand .custom-logo {
  display: block;
  width: 139px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.brand:after {
  content: "";
  height: 60px;
  width: 1px;
  background: #d9dddf;
  margin-left: 18px;
}

.brand-logo {
  display: block;
  width: 139px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.masthead-search {
  margin-left: 0;
}

.login-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #65aeda;
  border-radius: 5px;
  color: #21475d;
  text-decoration: none;
  transition: background .2s,color .2s;
}

.login-icon svg {
  width: 21px;
  height: 21px;
}

.login-icon:hover {
  background: #eaf6fc;
  color: #15384d;
}
.member-header-action.member-account-action { color: #20834c; border-color: #8cc9a5; }
.member-header-action.member-account-action:hover { color: #17683b; background: #eff9f2; }
.member-header-action.member-subscription-action { color: #28647f; border-color: #9dc8dc; }
.member-header-action.member-subscription-action:hover { color: #174b64; background: #eff8fc; }
.member-header-action.member-logout-action { color: #bd3b37; border-color: #e2a6a3; }
.member-header-action.member-logout-action:hover { color: #982b27; background: #fff2f1; }

.nav-bar {
  border-top: 1px solid #f0f1f1;
}

.nav-inner {
  position: relative;
  max-width: 1480px;
  margin: auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 20px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px,2.3vw,36px);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
}

.nav-inner .primary-nav > li > a {
  height: 48px;
  display: flex;
  align-items: center;
  position: relative;
  color: #17191b;
  text-decoration: none;
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  white-space: nowrap;
  transition: color .18s;
}

.primary-nav a:hover,.primary-nav a:focus-visible,.primary-nav a.active,.primary-nav .current-menu-item > a,.primary-nav .current_page_item > a {
  color: #378fbe;
}

.primary-nav a.active:after,.primary-nav a:hover:after,.primary-nav .current-menu-item > a:after,.primary-nav .current_page_item > a:after {
  content: "";
  height: 2px;
  background: var(--blue);
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}

/* Nested WordPress menu items render as real, keyboard and touch-friendly dropdowns. */
.primary-nav .sub-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  display: none;
  min-width: 240px;
  max-width: min(360px, 82vw);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(23, 36, 45, .13);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-submenu-open > .sub-menu {
  display: block;
}

.primary-nav .sub-menu li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
}

.primary-nav .sub-menu a {
  height: auto;
  min-height: 42px;
  padding: 9px 16px;
  white-space: normal;
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35;
}

.primary-nav .sub-menu a:after {
  display: none;
}

.primary-nav .sub-menu li:hover > a,
.primary-nav .sub-menu li:focus-within > a {
  background: #f4f8fa;
}

.primary-nav .sub-menu .sub-menu {
  top: -9px;
  left: 100%;
}

/* Keep the wide Bulletin panel aligned to the navigation bar so both columns stay on-screen. */
.primary-nav > li:nth-child(4) {
  position: static;
}

.primary-nav > li:nth-child(4) > .sub-menu {
  top: 100%;
  display: none;
  right: 0;
  left: auto;
  width: min(1360px, calc(100vw - 40px));
  max-width: min(1360px, calc(100vw - 40px));
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0 18px;
  padding: 14px;
}

.primary-nav > li:nth-child(4):hover > .sub-menu,
.primary-nav > li:nth-child(4):focus-within > .sub-menu,
.primary-nav > li:nth-child(4).is-submenu-open > .sub-menu {
  display: grid;
}

.primary-nav > li:nth-child(4) > .sub-menu > li {
  display: block;
  align-self: start;
  border-bottom: 1px solid #edf1f3;
}

.primary-nav > li:nth-child(4) > .sub-menu > li > a {
  min-height: 42px;
  padding: 10px 12px;
  color: #274b60;
  font-weight: 400 !important;
  text-transform: none !important;
}

.primary-nav > li:nth-child(4) > .sub-menu > li > .sub-menu {
  position: static;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 9px 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.primary-nav > li:nth-child(4) > .sub-menu > li > .sub-menu a {
  min-height: 36px;
  padding: 7px 12px;
}

.submenu-toggle {
  display: none;
  border: 0;
  color: #547080;
  background: transparent;
  font: 600 18px/1 var(--sans);
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.masthead-search {
  height: 42px;
  width: 218px;
  display: flex;
  align-items: center;
  border: 1px solid #d9dfe2;
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s,box-shadow .2s;
}

.masthead-search:focus-within {
  border-color: #5ba8d5;
  box-shadow: 0 0 0 3px rgba(105,181,223,.16);
}

.masthead-search input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font: 13px var(--sans);
  outline: 0;
  color: var(--ink);
}

.masthead-search input::placeholder {
  color: #8b9499;
}

.masthead-search button {
  height: 100%;
  width: 42px;
  flex: 0 0 42px;
  border: 0;
  background: none;
  color: #317da7;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.masthead-search button:hover {
  background: #f2f9fc;
}

.masthead-search svg {
  width: 18px;
  height: 18px;
}

.login {
  height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #65aeda;
  border-radius: 5px;
  color: #21475d;
  text-decoration: none;
  font: 15px var(--serif);
  transition: background .2s,color .2s;
}

.login:hover {
  background: #eaf6fc;
  color: #15384d;
}

.member-page {
  width: min(1080px, calc(100% - 48px));
  margin: 56px auto 88px;
}
.member-panel,
.member-page-content {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 40, 52, .06);
}
.member-panel h1,
.member-page-content h1 { margin: 8px 0 12px; }
.member-panel h2 { margin: 34px 0 4px; font: 600 1.25rem var(--sans); }
.member-intro { color: var(--muted); }
.member-profile-form { margin-top: 28px; }
.member-profile-form p { margin: 0 0 20px; }
.member-profile-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.member-profile-form input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #cfd9de;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.member-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.member-message { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: #f1f8fb; }
.member-message-error { border-color: #b94b45; background: #fcf3f2; }
.member-logout { margin-left: 18px; }
@media (max-width: 640px) {
  .member-page { width: min(100% - 30px, 1080px); margin: 32px auto 56px; }
  .member-profile-grid { grid-template-columns: 1fr; gap: 0; }
  .member-logout { display: inline-block; margin: 18px 0 0; }
}

.menu-button {
  display: none;
  border: 1px solid #dce5e9;
  background: white;
  border-radius: 3px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #26333a;
  cursor: pointer;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: clamp(150px,20vw,170px);
  margin: 0 auto;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Laptop / wide view: use the full-width banner and its saved vertical offset. */
.hero:before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  background-image: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.7) 22%,rgba(255,255,255,0) 58%),var(--blackhall-hero-image,url('assets/images/botswana-banner-v2.webp'));
  background-repeat: no-repeat,no-repeat;
  background-size: auto, 60% auto;
  background-position: left center, 100% calc(10% - 20px);
  transition: filter 1.4s ease;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  transition: background 1.4s ease,opacity 1.4s ease;
  opacity: .6;
}

.hero[data-time="morning"]:after {
  background: linear-gradient(115deg,rgba(255,211,128,.14),rgba(255,172,82,.48) 74%,rgba(255,222,149,.58));
  mix-blend-mode: color;
  opacity: .82;
}

.hero[data-time="morning"]:before {
  filter: sepia(.16) saturate(1.25) brightness(1.08);
}

.hero[data-time="afternoon"]:after {
  background: linear-gradient(110deg,rgba(156,214,243,.22),rgba(244,246,204,.28) 68%,rgba(122,189,218,.32));
  mix-blend-mode: soft-light;
  opacity: .78;
}

.hero[data-time="afternoon"]:before {
  filter: saturate(1.18) brightness(1.1) contrast(1.04);
}

.hero[data-time="evening"]:after {
  background: linear-gradient(115deg,rgba(248,154,86,.32),rgba(225,91,76,.62) 70%,rgba(129,79,119,.46));
  mix-blend-mode: color;
  opacity: .9;
}

.hero[data-time="evening"]:before {
  filter: sepia(.24) saturate(1.55) hue-rotate(-11deg) brightness(.9);
  background-image: linear-gradient(90deg,rgba(249,236,226,.98) 0%,rgba(249,236,226,.94) 40%,rgba(249,236,226,0) 74%),var(--blackhall-hero-image,url('assets/images/botswana-banner-v2.webp'));
}

.hero[data-time="night"]:after {
  background: linear-gradient(115deg,rgba(31,57,97,.45),rgba(22,38,72,.82) 80%,rgba(18,34,68,.88));
  mix-blend-mode: multiply;
  opacity: .9;
}

.hero[data-time="night"]:before {
  filter: brightness(.58) saturate(.7) hue-rotate(14deg);
  background-image: linear-gradient(90deg,rgba(18,29,46,.98) 0%,rgba(18,29,46,.98) 40%,rgba(18,29,46,0) 78%),var(--blackhall-hero-image,url('assets/images/botswana-banner-v2.webp'));
}

.hero[data-time="night"] h1,
.hero[data-time="night"] .hero-tagline {
  color: #fff;
  text-shadow: 0 1px 4px rgba(8,15,24,.72);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1480px,100%);
  padding: 22px 42px;
  margin: auto;
}

.eyebrow {
  display: none;
}

.hero h1 {
  font-family: var(--serif) !important;
  font-size: clamp(32px,3.5vw,47px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em;
  text-transform: capitalize;
  margin: 0;
  color: #090a0b;
}

.title-rule {
  width: 86px;
  height: 6px;
  background: var(--blue);
  margin-top: 15px;
}

.legislation-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  color: #53636c;
  font: 500 13px/1.4 var(--sans);
}

.legislation-category {
  color: #28536a;
  font-weight: 600;
}

.legislation-date::before {
  content: "·";
  margin-right: 12px;
  color: #8c9ca4;
}

.hero-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.hero-tagline {
  color: #334850;
  font: 500 14px/1.35 var(--sans);
  letter-spacing: .015em;
  margin: 0;
}

.hero-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.hero-category a {
  color: inherit;
  text-decoration: none;
}

.hero-category a:hover,
.hero-category a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-date::before {
  content: "·";
  margin-right: 12px;
  color: #8c9ca4;
}

.hero-category + .hero-date::before {
  margin-left: 0;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 500 14px/1.3 var(--sans);
  white-space: nowrap;
  background: transparent;
  padding: 0;
}

.hero-greeting > span:first-child {
  color: #fff;
  font: italic 500 19px/1 var(--serif);
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(20,32,38,.8);
}

.hero-location {
  color: #fff;
  font: 500 11px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 2px 7px rgba(10,20,25,.95), 0 0 2px rgba(10,20,25,.75);
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.95);
}

.hero-greeting time {
  color: #fff;
  font: 500 14px/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-shadow: 0 2px 7px rgba(10,20,25,.95), 0 0 2px rgba(10,20,25,.75);
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.95);
}

.hero-art {
  display: none;
}

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  --sparkle: rgba(255,247,218,.95);
}

.hero-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sparkle);
  box-shadow: 0 0 5px 2px rgba(255,242,194,.42), 0 0 12px 4px rgba(255,255,255,.2);
  opacity: 0;
  animation: tree-sparkle 4.8s ease-in-out infinite;
}

.hero-sparkle:nth-child(1) { left: 73%; top: 31%; animation-delay: .2s; }
.hero-sparkle:nth-child(2) { left: 82%; top: 20%; width: 4px; height: 4px; animation-delay: 1.6s; }
.hero-sparkle:nth-child(3) { left: 88%; top: 39%; width: 3px; height: 3px; animation-delay: 2.8s; }
.hero-sparkle:nth-child(4) { left: 78%; top: 55%; width: 3px; height: 3px; animation-delay: 3.5s; }

.hero-bird-container {
  position: absolute;
  left: 47%;
  top: 15%;
  opacity: 0;
  animation: bird-cross 18s linear infinite;
}

.hero-bird-container--two {
  top: 40%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.hero-bird-container--three {
  top: 62%;
  animation-duration: 17s;
  animation-delay: -12s;
}

.hero-bird {
  display: block;
  width: 35px;
  height: 48px;
  background-image: url("assets/images/bird-cells-new.svg");
  background-repeat: no-repeat;
  background-size: auto 48px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(20,30,35,.72));
  animation: bird-flap .95s steps(10) infinite;
}

.hero[data-time="night"] .hero-effects {
  --sparkle: rgba(224,244,255,.98);
}

.hero[data-time="night"] .hero-bird-container {
  display: none;
}

.hero[data-time="evening"] .hero-effects {
  --sparkle: rgba(255,235,200,.98);
}

@keyframes tree-sparkle {
  0%,100% { opacity: 0; transform: scale(.55); }
  35%,60% { opacity: .9; transform: scale(1); }
}

@keyframes bird-flap {
  to { background-position: -338px 0; }
}

@keyframes bird-cross {
  0% { opacity: 0; transform: translate3d(-45px,12px,0) scale(.38); }
  10% { opacity: .72; transform: translate3d(0,0,0) scale(.48); }
  48% { opacity: .78; transform: translate3d(19vw,-8px,0) scale(.58); }
  78% { opacity: .72; transform: translate3d(33vw,3px,0) scale(.56); }
  100% { opacity: 0; transform: translate3d(43vw,-7px,0) scale(.62); }
}

.content {
  max-width: 1396px;
  margin: 36px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(250px,25%) minmax(0,1fr);
  gap: 22px;
}

.content.content-single {
  grid-template-columns: minmax(0,1fr);
}

.content.content-single > .content-card {
  grid-column: 1;
  grid-row: 1;
}

.archive-entry + .archive-entry {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8eef1;
}

.archive-entry h2 {
  margin: 0 0 8px;
  font: 400 24px/1.25 var(--serif);
}

.archive-entry h2 a {
  color: #172832;
  text-decoration: none;
}

.archive-entry h2 a:hover {
  color: #317da4;
}

.content-card,.contents-card {
  background: #fff;
  border: 1px solid #e7ecef;
  padding: 26px 29px;
}

.content h2 {
  font: 400 24px var(--serif);
  margin: 0 0 10px;
}

.content-card > p {
  color: #707b82;
  line-height: 1.65;
  margin: 0;
  font-size: 14px;
}

.act-source-card {
  padding: 28px 34px;
}

/* Refine the Membership Manager Pro digital-copy button to match the theme. */
.act-source-card .wpmm-dc-wrap {
  margin: 2px auto 30px;
}

.act-source-card .wpmm-dc-btn.wpmm-dc-s-glow {
  width: min(100%, 560px);
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid #c6e3f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fbfe 0%, #e6f4fb 100%);
  box-shadow: 0 5px 16px rgba(42, 111, 145, .12);
  color: #245c78;
  font-size: 18px;
  line-height: 1.35;
}

.act-source-card .wpmm-dc-btn.wpmm-dc-s-glow:hover {
  transform: translateY(-2px);
  border-color: #8dc9e8;
  background: linear-gradient(135deg, #edf8fd 0%, #d9eef9 100%);
  box-shadow: 0 8px 20px rgba(42, 111, 145, .18);
  filter: none;
}

.act-source-card .wpmm-dc-btn.wpmm-dc-s-glow:focus-visible {
  outline: 3px solid rgba(105, 181, 223, .5);
  outline-offset: 3px;
}

.act-source-card .wpmm-dc-btn.wpmm-dc-s-glow .wpmm-dc-end {
  width: 40px;
  height: 40px;
  background: #69b5df;
  color: #fff;
}

.act-source-card .com-content-article__body p {
  margin: 0 0 12px;
  color: #36454c;
}

.act-source-card .com-content-article__body p.title,
.act-source-card .com-content-article__body h1.title,
.act-source-card .com-content-article__body li.title,
.act-source-card .com-content-article__body div.title {
  margin: 24px 0 28px;
  padding: 12px;
  border: 0;
  color: #111;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
}

.act-source-card .com-content-article__body .act-title-chapter {
  display: inline-block;
  margin-bottom: 8px;
  color: #36454c;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
}

.act-source-card .com-content-article__body .act-display-title {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
}

/* Typography classes retained in legislation imported from the former site. */
.act-source-card .com-content-article__body .toc-head,
.act-source-card .com-content-article__body .tochead,
.act-source-card .com-content-article__body .toc-sub-head1,
.act-source-card .com-content-article__body .toc-sub-head2,
.act-source-card .com-content-article__body .toc-sub-head5,
.act-source-card .com-content-article__body .toc-head2,
.act-source-card .com-content-article__body .toc-head6,
.act-source-card .com-content-article__body .tocsubhead,
.act-source-card .com-content-article__body .toc-sub-head,
.act-source-card .com-content-article__body .toc-sub-head3 {
  color: #172832;
  font-family: var(--sans);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.act-source-card .com-content-article__body .toc-head,
.act-source-card .com-content-article__body .tochead,
.act-source-card .com-content-article__body .toc-sub-head5,
.act-source-card .com-content-article__body .toc-sub-head1,
.act-source-card .com-content-article__body .toc-sub-head2,
.act-source-card .com-content-article__body .toc-head2 {
  font-weight: 700;
}

.act-source-card .com-content-article__body p.tochead,
.act-source-card .com-content-article__body p.toc-head {
  margin: 12px 0 2px;
  font-size: 14px;
}

.act-source-card .com-content-article__body p.tocsubhead,
.act-source-card .com-content-article__body p.toc-sub-head,
.act-source-card .com-content-article__body p.toc-sub-head3,
.act-source-card .com-content-article__body p.toc-head6,
.act-source-card .com-content-article__body p.toc-head2 {
  margin: 0 0 12px;
  font-size: 13px;
}

.act-source-card .com-content-article__body p.toc,
.act-source-card .com-content-article__body p.text-center,
.act-source-card .com-content-article__body li.toc,
.act-source-card .com-content-article__body div.toc {
  margin: 3px 0 0 24px;
  text-align: justify;
  text-indent: -24px;
  line-height: 1.3;
}

.act-source-card .com-content-article__body p.NL1,
.act-source-card .com-content-article__body li.NL1,
.act-source-card .com-content-article__body div.NL1,
.act-source-card .com-content-article__body p.NL2,
.act-source-card .com-content-article__body li.NL2,
.act-source-card .com-content-article__body div.NL2,
.act-source-card .com-content-article__body p.NL3,
.act-source-card .com-content-article__body li.NL3,
.act-source-card .com-content-article__body div.NL3,
.act-source-card .com-content-article__body p.NL4,
.act-source-card .com-content-article__body li.NL4,
.act-source-card .com-content-article__body div.NL4 {
  margin-top: 3px;
  margin-bottom: 0;
  text-align: justify;
  line-height: 1.3;
  font-size: 14px;
}

.act-source-card .com-content-article__body p.NL1,
.act-source-card .com-content-article__body li.NL1,
.act-source-card .com-content-article__body div.NL1 { text-indent: 12px; }
.act-source-card .com-content-article__body p.NL2,
.act-source-card .com-content-article__body li.NL2,
.act-source-card .com-content-article__body div.NL2 { margin-left: 20px; text-indent: -20px; }
.act-source-card .com-content-article__body p.NL3,
.act-source-card .com-content-article__body li.NL3,
.act-source-card .com-content-article__body div.NL3 { margin-left: 40px; text-indent: -20px; }
.act-source-card .com-content-article__body p.NL4,
.act-source-card .com-content-article__body li.NL4,
.act-source-card .com-content-article__body div.NL4 { margin-left: 64px; text-indent: -24px; }

.act-source-card .com-content-article__body p.righttext,
.act-source-card .com-content-article__body li.righttext,
.act-source-card .com-content-article__body div.righttext,
.act-source-card .com-content-article__body p.right-text,
.act-source-card .com-content-article__body li.right-text,
.act-source-card .com-content-article__body div.right-text,
.act-source-card .com-content-article__body p.textright { text-align: right; }

.act-source-card .com-content-article__body p.centertext,
.act-source-card .com-content-article__body li.centertext,
.act-source-card .com-content-article__body div.centertext,
.act-source-card .com-content-article__body p.center-text,
.act-source-card .com-content-article__body p.center-text2,
.act-source-card .com-content-article__body li.center-text2,
.act-source-card .com-content-article__body div.center-text2 { text-align: center; }

.act-source-card .com-content-article__body p.MsoNormal,
.act-source-card .com-content-article__body li.MsoNormal,
.act-source-card .com-content-article__body div.MsoNormal,
.act-source-card .com-content-article__body p.NoParagraphStyle,
.act-source-card .com-content-article__body li.NoParagraphStyle,
.act-source-card .com-content-article__body div.NoParagraphStyle,
.act-source-card .com-content-article__body p.text,
.act-source-card .com-content-article__body li.text,
.act-source-card .com-content-article__body div.text,
.act-source-card .com-content-article__body p.text-center,
.act-source-card .com-content-article__body p.content,
.act-source-card .com-content-article__body li.content,
.act-source-card .com-content-article__body div.content {
  color: #25353d;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.act-source-card .com-content-article__body p.MsoNormal,
.act-source-card .com-content-article__body li.MsoNormal,
.act-source-card .com-content-article__body div.MsoNormal { margin: 0; }

.act-source-card .com-content-article__body p.content,
.act-source-card .com-content-article__body li.content,
.act-source-card .com-content-article__body div.content {
  margin: 4px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.act-source-card .com-content-article__body p.boldtext,
.act-source-card .com-content-article__body li.boldtext,
.act-source-card .com-content-article__body div.boldtext,
.act-source-card .com-content-article__body p.boldtext1,
.act-source-card .com-content-article__body li.boldtext1,
.act-source-card .com-content-article__body div.boldtext1,
.act-source-card .com-content-article__body .bold { font-weight: 700; }

.act-source-card .com-content-article__body span.italic,
.act-source-card .com-content-article__body .char-style-override-3 { font-style: italic; }
.act-source-card .com-content-article__body span.msoIns { text-decoration: underline; }
.act-source-card .com-content-article__body span.msoDel { color: #a63d38; text-decoration: line-through; }
.act-source-card .com-content-article__body ins { text-decoration: none; }

/* Legacy statutory-document paragraph classes absent from Cassiopeia custom.css. */
.act-source-card .com-content-article__body .aos-body p.QT-I,
.act-source-card .com-content-article__body .aos-body p.QT-TI,
.act-source-card .com-content-article__body .aos-body p.QT-TRI,
.act-source-card .com-content-article__body .aos-body p.TRI,
.act-source-card .com-content-article__body .aos-body p.QT-Table,
.act-source-card .com-content-article__body .aos-body p.QT-Centered {
  margin-top: 3pt;
  margin-right: 0;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  text-autospace: none;
}

.act-source-card .com-content-article__body .aos-body p.QT-I,
.act-source-card .com-content-article__body .aos-body p.QT-TI,
.act-source-card .com-content-article__body .aos-body p.QT-TRI,
.act-source-card .com-content-article__body .aos-body p.TRI,
.act-source-card .com-content-article__body .aos-body p.QT-Table {
  text-align: justify;
}

/* Map the legacy hanging indents to the NL1–NL3 rules in the old stylesheet. */
.act-source-card .com-content-article__body .aos-body p.QT-I {
  text-indent: 9pt;
}

.act-source-card .com-content-article__body .aos-body p.QT-TI {
  margin-left: 15pt;
  text-indent: -15pt;
}

.act-source-card .com-content-article__body .aos-body p.QT-TRI,
.act-source-card .com-content-article__body .aos-body p.TRI {
  margin-left: 30pt;
  text-indent: -15pt;
}

.act-source-card .com-content-article__body .aos-body p.QT-Table {
  line-height: 1.4;
}

.act-source-card .com-content-article__body .aos-body p.QT-Centered {
  text-align: center;
}

.act-source-card .com-content-article__body .aos-body .folio-heading {
  font-weight: 700;
}

.act-source-card .com-content-article__body p.ListingCentered {
  margin: 18px 0 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: #f2f8fb;
  color: #1d4357;
  text-align: center;
}

.act-source-card .com-content-article__body p.ListingRI {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid #edf1f3;
}

.act-source-card .com-content-article__body p.ListingRI a {
  color: #317da4;
  text-decoration: none;
}

.act-source-card .com-content-article__body p.ListingRI a:hover {
  text-decoration: underline;
}

.act-source-card .com-content-article__body p.textright {
  color: #71818a;
  text-align: right;
}

.act-source-card .com-content-article__body p.Level-Centeredblue {
  margin: 26px 0 12px;
  padding: 13px 12px;
  border-left: 3px solid var(--blue);
  background: #edf7fb;
  color: #1b4357;
  text-align: center;
}

.act-source-card .com-content-article__body .aos-body h2.Level-Centeredblue {
  display: block;
  margin: 26px 0 12px !important;
  padding: 13px 12px !important;
  border-left: 3px solid var(--blue) !important;
  background: #edf7fb !important;
  color: #1b4357 !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-transform: none !important;
}

.act-source-card .com-content-article__body p.Level-Iblue {
  margin: 18px 0 8px;
  padding: 10px 12px;
  border-left: 2px solid #a9d8ee;
  background: #f7fafb;
  color: #233d4a;
}

.act-source-card .com-content-article__body p.T0 {
  margin: 10px 0;
}

.act-source-card .com-content-article__body p.TI {
  margin: 6px 0;
  padding-left: 15px;
}

.act-source-card #restricted_info {
  margin: 18px 0 26px;
  padding: 22px 24px;
  border: 1px solid #d2e7f0;
  border-left: 5px solid var(--blue);
  border-radius: 5px;
  background: linear-gradient(115deg,#eef8fc 0%,#f8fbfd 68%,#fff 100%);
  box-shadow: 0 10px 26px rgba(27,74,96,.09);
}

.act-source-card #restricted_info p {
  margin: 0;
}

.act-source-card #restricted_info .subscription-title {
  color: #183b4e;
  font: 600 17px/1.35 var(--sans);
}

.act-source-card #restricted_info .subscription-copy {
  max-width: 66ch;
  margin-top: 8px;
  color: #4a606b;
  line-height: 1.6;
}

.act-source-card #restricted_info .subscription-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 10px 15px;
  border: 1px solid #2e83aa;
  border-radius: 4px;
  background: #2e83aa;
  color: #fff;
  font: 600 12px/1.35 var(--sans);
  text-decoration: none;
  transition: background .2s,border-color .2s;
}

.act-source-card #restricted_info .subscription-link:hover {
  border-color: #1c6689;
  background: #1c6689;
}

.contents-card {
  padding: 22px 24px;
}

.contents-card h3 {
  font: 600 11px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64717a;
  margin: 0 0 13px;
}

.contents-card a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf1f3;
  text-decoration: none;
  color: #303a40;
  font: 13px var(--sans);
}

.contents-card a span:last-child {
  color: #9aabb4;
}

.contents-card a:hover {
  color: #2779a8;
}

.act-kicker {
  color: #4987a5!important;
  font: 600 10px/1.4 var(--sans)!important;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px!important;
}

.act-commencement {
  margin-top: 17px!important;
  padding-top: 12px;
  border-top: 1px solid #e8eef1;
  font-size: 12px!important;
}

.act-copy-card {
  padding: 24px;
}

.act-copy-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.act-copy-heading h2 {
  margin: 0;
}

.act-copy-heading a {
  color: #317da4;
  font: 600 11px/1.4 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.act-copy-heading a:hover {
  text-decoration: underline;
}

.act-copy-frame {
  display: block;
  width: 100%;
  height: 1800px;
  border: 1px solid #e6ecef;
  background: #f6f8f9;
}

.act-copy-fallback {
  margin: 11px 0 0!important;
  color: #76838a!important;
  font-size: 11px!important;
}

.act-placeholder-label {
  margin: 0 0 14px!important;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: #f3f9fc;
  color: #53636b!important;
  font: 500 11px/1.5 var(--sans)!important;
}

.act-section-preview {
  display: grid;
  gap: 0;
}

.act-section-preview section {
  padding: 16px 0;
  border-top: 1px solid #e8eef1;
}

.act-section-preview h3 {
  margin: 0 0 7px;
  color: #1b3440;
  font: 400 18px/1.3 var(--serif);
}

.act-section-preview h3 span {
  display: inline-block;
  margin-right: 9px;
  color: #5599bb;
  font: 600 10px/1.4 var(--sans);
  letter-spacing: .12em;
  vertical-align: .15em;
}

.act-section-preview p {
  margin: 0;
  color: #68767d;
  font: 400 13px/1.75 var(--sans);
}

.arrangement-card {
  padding: 24px 25px;
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* Match the live Arrangement of Sections plugin to the approved Index layout. */
.aos-layout:not(.aos-single) {
  grid-template-columns: minmax(250px,25%) minmax(0,1fr) !important;
  gap: 22px !important;
  align-items: start;
}

.aos-card {
  padding: 24px 25px !important;
  font-family: var(--sans) !important;
}

.aos-title {
  display: block;
  margin: 0 0 14px;
  color: #172832;
  font-family: var(--serif) !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.aos-colhead {
  margin: 0 !important;
  padding: 8px 0 5px !important;
  color: #87969d !important;
  font-family: var(--sans) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
  border-top: 1px solid #e8eef1 !important;
}

.aos-list a,
.aos-nolink {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.aos-list a .aos-n {
  flex: 0 0 auto;
  color: #9aabb4 !important;
  font-family: var(--sans) !important;
  white-space: nowrap;
}

.content-card {
  grid-column: 2;
  grid-row: 1;
}

.arrangement-chapter {
  margin: 0 0 7px;
  color: #6c8793;
  font: 600 10px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.arrangement-card h2,.arrangement-card h3 {
  color: #172832;
  font: 400 20px/1.2 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 14px;
}

.arrangement-section-label {
  margin: 0;
  padding: 8px 0 5px;
  color: #87969d;
  font: 600 9px/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  border-top: 1px solid #e8eef1;
}

.arrangement-part h3,.arrangement-part h4 {
  margin: 13px 0 0;
  padding-top: 10px;
  color: #2b5367;
  border-top: 1px solid #e8eef1;
  font: 600 10px/1.45 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.arrangement-part h3 span,.arrangement-part h4 span {
  display: block;
  margin-top: 2px;
  color: #74838a;
  font: 400 12px/1.45 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}

.arrangement-part a {
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 0;
  align-items: center;
}

.arrangement-part a span:first-child {
  min-width: 0;
}

.arrangement-part a span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media(max-width:1200px) {

  .masthead {
    padding: 8px 28px;
    min-height: 74px;
    gap: 22px;
  }

  .nav-inner {
    padding: 0 28px;
    gap: 12px;
    min-height: 42px;
  }

  .primary-nav {
    gap: clamp(11px,1.65vw,20px);
  }

  .primary-nav a {
    font-size: 15px !important;
  }

  .primary-nav .sub-menu a {
    font-size: 15px !important;
  }

  .masthead-search {
    width: 170px;
  }

  .header-actions {
    gap: 9px;
  }

}

@media(max-width:980px) {

  .masthead {
    flex-wrap: wrap;
    min-height: 74px;
  }

  .brand-logo {
    width: 120px;
    max-height: 52px;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 28px 4px;
    gap: 0;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .primary-nav a {
    height: 40px;
    font-size: 15px;
  }

  .primary-nav > li:nth-child(4) {
    position: relative;
  }

  .primary-nav > li:nth-child(4) > .sub-menu {
    top: 100%;
    right: 0;
    left: auto;
    width: min(720px, calc(100vw - 56px));
    max-width: min(720px, calc(100vw - 56px));
  }

  .primary-nav > li.menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
  }

  .primary-nav .submenu-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    min-height: 38px;
  }

  .primary-nav .sub-menu .submenu-toggle {
    min-height: 38px;
  }

  .primary-nav > li:nth-child(4) > .sub-menu > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .primary-nav > li:nth-child(4) > .sub-menu > li > .sub-menu {
    grid-column: 1 / -1;
  }

  .primary-nav a.active:after,.primary-nav a:hover:after {
    bottom: 4px;
  }

  .hero {
    height: 250px;
  }

  /* Tablet: center the image in the shorter banner. */
  .hero:before {
    background-size: auto, cover;
    background-position: left center, right center;
  }

}

@media(max-width:640px) {

  .aos-layout:not(.aos-single) {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 13px !important;
  }

  .aos-card {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    grid-row: 1;
  }

  .topline {
    height: 6px;
  }

  .masthead {
    padding: 12px 18px;
    min-height: 0;
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 44px;
    grid-template-areas: "brand menu" "actions actions";
  }

  .brand {
    grid-area: brand;
  }

  .brand:after {
    height: 48px;
    margin-left: 12px;
  }

  .brand-logo {
    width: min(120px,40vw);
    max-height: 52px;
  }

  .header-actions {
    grid-area: actions;
    width: 100%;
    margin: 12px 0 0;
    gap: 10px;
  }

  .masthead-search {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .menu-button {
    grid-area: menu;
    display: grid;
  }

  .nav-bar {
    display: none;
    border-top: 1px solid var(--line);
  }

  .nav-bar.open {
    display: block;
  }

  .nav-inner {
    padding: 4px 18px 16px;
    display: block;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0 15px;
  }

  .primary-nav > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
  }

  .primary-nav > li > a {
    min-width: 0;
    white-space: normal;
  }

  .primary-nav .submenu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    min-height: 44px;
    border-bottom: 1px solid #edf1f3;
  }

  .primary-nav li.is-submenu-open > .submenu-toggle span {
    transform: rotate(180deg);
  }

  .primary-nav .submenu-toggle span {
    transition: transform .18s ease;
  }

  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    background: #fbfcfd;
  }

  .primary-nav > li:nth-child(4) > .sub-menu {
    display: none;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0 4px 12px;
  }

  .primary-nav > li:nth-child(4).is-submenu-open > .sub-menu {
    display: block;
  }

  .primary-nav > li:nth-child(4) > .sub-menu > li > .sub-menu {
    display: none;
  }

  .primary-nav > li:nth-child(4) > .sub-menu > li.is-submenu-open > .sub-menu {
    display: block;
  }

  .primary-nav .sub-menu a {
    min-height: 40px;
    padding: 9px 12px;
  }

  .primary-nav .sub-menu .submenu-toggle {
    min-height: 40px;
  }

  .primary-nav li:hover > .sub-menu {
    display: none;
  }

  .primary-nav li.is-submenu-open > .sub-menu {
    display: block;
  }

  .primary-nav a {
    height: auto;
    min-height: 46px;
    border-bottom: 1px solid #edf1f3;
    font-size: 15px;
  }

  .primary-nav a:after {
    display: none!important;
  }

  .hero {
    height: 230px;
  }

  .hero {
    width: 100%;
  }

  /* Portrait phone: keep the tree on the right and lower it slightly. */
  .hero:before {
    width: 100%;
    background-size: auto, cover;
    /* Negative right offset moves the banner image (and tree) to the right. */
    background-position: left center, right -50px center;
  }

  .hero:after {
    width: 100%;
  }

  .hero-copy {
    padding: 18px 22px;
  }

  .hero h1 {
    max-width: 320px;
    font-size: clamp(27px,7.5vw,34px) !important;
    line-height: 1.02 !important;
  }

  .title-rule {
    width: 64px;
    height: 5px;
    margin-top: 11px;
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
  }

  .hero-tagline {
    font-size: 12px;
  }

  .content {
    margin: 20px auto 50px;
    padding: 0 14px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .content-card,
  .arrangement-card {
    grid-column: 1;
    grid-row: auto;
  }

  .arrangement-card {
    position: static;
    max-height: none;
    overflow: visible;
    grid-row: 1;
  }

  .content-card {
    grid-row: 2;
  }

  .act-copy-frame {
    height: 1200px;
  }

  .act-source-card {
    padding: 22px;
  }

  .content-card,.contents-card {
    padding: 22px;
  }

}

/* Contact Us page */
.contact-page {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) 42px clamp(48px, 6vw, 86px);
}

.contact-page.content {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.55fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.contact-details-card,
.contact-form-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 38px rgba(29, 49, 61, .055);
}

.contact-details-card {
  padding: clamp(24px, 3vw, 38px);
  border-top: 3px solid var(--blue);
}

.contact-eyebrow {
  margin: 0 0 10px;
  color: #66808d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-details-card h2,
.contact-form-heading h2 {
  margin: 0;
  color: #1e2c33;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
}

.contact-detail-group {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-detail-group h3 {
  margin: 0 0 8px;
  color: #385b6d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
}

.contact-detail-group address,
.contact-detail-group a {
  color: #58656c;
  font-size: 15px;
  font-style: normal;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-detail-group a:hover,
.contact-detail-group a:focus-visible {
  color: #287da7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-card {
  padding: clamp(25px, 4vw, 48px);
}

.contact-form-heading {
  margin-bottom: 28px;
}

.blackhall-contact-form {
  display: grid;
  gap: 19px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label,
.contact-captcha-label {
  margin: 0;
  color: #34444d;
  font-size: 13px;
  font-weight: 650;
}

.contact-field label span,
.contact-captcha-label span {
  color: #b14e47;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7dfe3;
  border-radius: 3px;
  background: #fff;
  color: #20282c;
  font: 400 15px/1.5 var(--sans);
  transition: border-color .18s, box-shadow .18s;
}

.contact-field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 0;
  border-color: #65acd0;
  box-shadow: 0 0 0 3px rgba(105, 181, 223, .16);
}

.contact-captcha {
  display: grid;
  gap: 10px;
}

.contact-config-note,
.contact-privacy-note {
  margin: 0;
  color: #6b777d;
  font-size: 12px;
  line-height: 1.65;
}

.contact-privacy-note {
  max-width: 760px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.contact-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  justify-self: start;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid #286f91;
  border-radius: 3px;
  background: #285b73;
  color: #fff;
  cursor: pointer;
  font: 600 14px/1 var(--sans);
  transition: background .18s, transform .18s;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #1e485d;
  transform: translateY(-1px);
}

.contact-submit span {
  font-size: 18px;
}

.contact-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid #527f63;
  background: #f1f7f2;
  color: #304b38;
  font-size: 14px;
  line-height: 1.55;
}

.contact-notice--error {
  border-color: #b14e47;
  background: #fbf3f2;
  color: #713d39;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .contact-page {
    padding: 28px 18px 48px;
  }

  .contact-page.content {
    margin: 20px auto 50px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .contact-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .contact-details-card,
  .contact-form-card {
    padding: 23px 20px;
  }

  .contact-details-card h2,
  .contact-form-heading h2 {
    font-size: 26px;
  }

  .g-recaptcha {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* WordPress navigation, editor content and accessibility helpers. */
.primary-nav-wrapper,
.nav-inner nav {
  flex: 1 1 auto;
  min-width: 0;
}

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

.footer-links li {
  list-style: none;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  color: #17384b;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

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

.theme-setup-note {
  margin: 0;
  color: #65747c;
  line-height: 1.7;
}

.arrangement-card {
  scroll-margin-top: 20px;
}

@media(max-width:980px) {
  .brand .custom-logo {
    width: 120px;
    max-height: 52px;
  }
}

@media(max-width:640px) {
  .brand .custom-logo {
    width: min(120px,40vw);
  }

  .act-source-card #restricted_info {
    padding: 18px 17px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }

}

@media(min-width:981px) {
  .hero {
    max-width: none;
    width: 100%;
  }

  .hero:before {
    animation: tree-drift 32s ease-in-out infinite alternate;
  }

  .hero-copy {
    min-height: 100%;
  }

  .hero-greeting {
    position: absolute;
    right: 12px;
    bottom: 14px;
  }
}

@keyframes tree-drift {
  from {
    background-position: left center, 100% calc(10% - 20px);
  }
  to {
    background-position: left center, 100% calc(10% - 23px);
  }
}

.site-footer {
  border-top: 3px solid var(--blue);
  background: #172832;
  color: rgba(255,255,255,.78);
  padding: 30px 40px 18px;
}

.footer-inner {
  width: min(1440px,100%);
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 17px;
  color: #fff;
  font: 400 19px/1.2 var(--serif);
  letter-spacing: .025em;
}

.footer-brand span {
  color: var(--blue);
  font: italic 12px/1 var(--serif);
  letter-spacing: .28em;
  margin-left: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.footer-links a {
  color: #fff !important;
  background: transparent !important;
  text-decoration: none;
  font: 500 12px/1.5 var(--sans);
  letter-spacing: .045em;
  padding: 3px 16px;
  border-right: 1px solid rgba(255,255,255,.28);
  transition: color .2s ease;
}

.footer-links a:first-child {
  padding-left: 0;
}

.footer-links a:last-child {
  border-right: 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #9edcf8 !important;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 15px;
  color: rgba(255,255,255,.68);
  font: 400 11px/1.6 var(--sans);
  letter-spacing: .025em;
}

.footer-legal p {
  margin: 0;
}

/* Algolia InstantSearch results page */
.algolia-search-page {
  width: 100%;
}

.algolia-page-heading {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

.algolia-heading-kicker {
  margin: 0 0 7px;
  color: #557080;
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.algolia-page-heading h1 {
  color: #090a0b;
}

.algolia-page-heading .algolia-query-line {
  margin: 10px 0 0;
  color: #53636c;
  font: 400 14px/1.5 var(--sans);
}

.algolia-page-heading .title-rule {
  margin-top: 13px;
}

#main-content #ais-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  grid-template-areas: "results browse";
  align-items: start;
  gap: 28px;
  width: min(1440px, calc(100% - 48px));
  margin: 36px auto 64px;
}

#ais-main {
  grid-area: results;
  min-width: 0;
}

.search-browse {
  grid-area: browse;
  padding: 21px 20px 15px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 36, 45, .06);
}

#ais-wrapper .search-browse h2 {
  white-space: nowrap;
  margin: 0 0 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font: 600 15px/1.4 var(--sans);
  letter-spacing: .035em;
}

.search-browse h2 a {
  color: #294b5c;
  text-decoration: none;
}

.search-browse ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-browse li + li {
  border-top: 1px solid #edf1f3;
}

.search-browse li a {
  display: block;
  padding: 11px 1px;
  color: #27343b;
  font: 400 14px/1.45 var(--sans);
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

.search-browse li a:hover,
.search-browse li a:focus-visible {
  padding-left: 5px;
  color: #247da9;
}

.search-browse .ais-HierarchicalMenu-list--child {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e6edf0;
}

.search-browse .ais-HierarchicalMenu-count {
  margin-left: 7px;
  color: #8a9ba4;
  font-size: 12px;
}

#ais-main .algolia-search-box-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  grid-auto-rows: min-content;
  gap: 12px 18px;
  height: auto;
  min-height: 0;
  padding: 18px 20px 0;
  border: 1px solid var(--line);
  background: #fff;
}

#algolia-search-box {
  grid-column: 1 / -1;
  min-width: 0;
}

#algolia-search-box .ais-SearchBox-form {
  position: relative;
  display: flex;
  align-items: center;
}

#algolia-search-box .ais-SearchBox-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  border: 1px solid #d6dfe4;
  border-radius: 3px;
  color: var(--ink);
  font: 400 15px/1.4 var(--sans);
  box-shadow: none;
}

#algolia-search-box .ais-SearchBox-reset {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  line-height: 1;
  z-index: 2;
}

.algolia-search-box-wrapper > .search-icon {
  display: none;
}

#algolia-stats {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  color: var(--muted);
  font: 400 13px/1.4 var(--sans);
  white-space: nowrap;
  margin-top: 8px;
}

#algolia-powered-by {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

#algolia-hits {
  margin-top: 0;
}

#algolia-hits .ais-Hits-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#algolia-hits .ais-Hits-item {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.search-result-card {
  display: flex;
  gap: 18px;
  min-height: 100px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-result-card:hover {
  border-color: #c9dce6;
  box-shadow: 0 5px 18px rgba(23, 36, 45, .06);
}

.search-result-image {
  flex: 0 0 94px;
  width: 94px;
  height: 78px;
  overflow: hidden;
  background: #f2f5f6;
}

.search-result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy h2 {
  margin: 0 0 7px;
  font: 600 17px/1.4 var(--sans);
  letter-spacing: -.01em;
}

.search-result-copy h2 a {
  color: #244b61;
  text-decoration: none;
}

.search-result-copy h2 a:hover,
.search-result-copy h2 a:focus-visible {
  color: #1684b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-result-excerpt,
.algolia-no-results {
  margin: 0;
  color: #59666e;
  font: 400 14px/1.6 var(--sans);
}

.search-result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.search-result-excerpt em {
  color: #172d3a;
  background: #fff1c8;
  font-style: normal;
}

#algolia-pagination {
  margin-top: 22px;
  text-align: center;
}

#algolia-pagination .ais-Pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

#algolia-pagination .ais-Pagination-item {
  margin: 0;
}

#algolia-pagination .ais-Pagination-link {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid #d6e0e5;
  border-radius: 2px;
  background: #fff;
  color: #294b5c;
  font: 500 14px/1 var(--sans);
  text-decoration: none;
  box-shadow: none;
}

#algolia-pagination .ais-Pagination-item--selected .ais-Pagination-link {
  border-color: var(--blue);
  background: #edf7fb;
  color: #173f55;
}

#algolia-pagination .ais-Pagination-item--disabled .ais-Pagination-link {
  color: #a2adb3;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  #main-content #ais-wrapper {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "browse" "results";
    gap: 18px;
    width: calc(100% - 32px);
    margin: 18px auto 40px;
  }

  .algolia-page-heading {
    width: 100%;
    margin: 0 auto;
  }

  .algolia-page-heading h1 {
    font-size: clamp(27px, 7.5vw, 34px) !important;
  }

  .algolia-page-heading .title-rule {
    margin-top: 11px;
  }

  .search-browse {
    padding: 17px 16px 10px;
  }

  .search-browse ul {
    display: block;
  }

  #ais-main .algolia-search-box-wrapper {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 14px 0;
  }

  #algolia-stats {
    grid-column: 1;
    grid-row: auto;
  }

  #algolia-powered-by {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .search-result-card {
    gap: 12px;
    padding: 14px;
  }

  .search-result-image {
    flex-basis: 70px;
    width: 70px;
    height: 64px;
  }

  .search-result-copy h2 {
    font-size: 15px;
  }

  .search-result-excerpt {
    font-size: 13px;
  }
}

@media(max-width:640px) {
  .site-footer {
    padding: 25px 20px 17px;
  }

  .footer-links {
    gap: 5px 0;
    padding-bottom: 16px;
  }

  .footer-links a {
    padding: 3px 10px;
    font-size: 11px;
  }

  .footer-links a:first-child {
    padding-left: 0;
  }

  .footer-legal {
    flex-direction: column;
    gap: 4px;
  }
}

