:root {
  /* Brand */
  --rcmp-red: #b50315;
  --rcmp-red-dark: #82373e;
  --rcmp-gold: #bea468;
  --rcmp-gold-warn: #ecb731;
  --rcmp-yellow: #f5d000;

  /* Neutrals */
  --rcmp-black: #0b0c0c;
  --rcmp-grey-dk: #505a5f;
  --rcmp-grey-md: #b1b4b6;
  --rcmp-grey-lt: #f3f2f1;
  --rcmp-charcoil: #363636;
  --rcmp-white: #fff;

  /* Focus */
  --rcmp-focus: #fd0;

  /* Community-news aliases (kept for backward compat with var(--cn-*) usage) */
  --cn-black: var(--rcmp-black);
  --cn-red: var(--rcmp-red);
  --cn-grey-lt: var(--rcmp-grey-lt);
  --cn-grey-md: var(--rcmp-grey-md);
  --cn-grey-dk: var(--rcmp-grey-dk);
  --rcmp-font-family: "Noto Sans", "Noto Sans Canadian Aboriginal", sans-serif;
}

body {
  font-family: var(--rcmp-font-family);
}

/* =============================================================================
   BASE — header, main, breadcrumb, footer
   ============================================================================= */
header {
  background-color: var(--rcmp-white);
}
header .brand {
  padding-top: 0;
}
#wb-srch,
.srchbox {
  --rcmp-header-search-height: 41px;
}
#wb-srch .submit,
.srchbox .submit {
  height: var(--rcmp-header-search-height);
  margin-bottom: 0;
  width: var(--rcmp-header-search-height);
}
#wb-srch input,
.srchbox input {
  height: var(--rcmp-header-search-height);
  min-height: var(--rcmp-header-search-height);
}
.page-type-ilp .app-bar h2 {
  margin-top: 5px;
}
#wb-srch button,
.srchbox button {
  align-items: center;
  background-color: var(--rcmp-red);
  border: 0;
  border-bottom: var(--rcmp-red) solid 1px;
  display: inline-flex;
  font-size: 17px;
  height: var(--rcmp-header-search-height);
  justify-content: center;
  line-height: 1;
  margin-left: 0;
  min-height: var(--rcmp-header-search-height);
  padding: 0;
  width: var(--rcmp-header-search-height);
}
#wb-srch button:active,
#wb-srch button:focus,
#wb-srch button:hover,
.srchbox button:active,
.srchbox button:focus,
.srchbox button:hover {
  background: #444;
  border-bottom: #444 solid 1px;
}
#wb-srch .glyphicon,
.srchbox .glyphicon {
  line-height: 1;
  top: 0;
  vertical-align: middle;
}

#wb-bc ol {
  margin-top: 5px;
}
h1#wb-cont,
hgroup#wb-cont h1 {
  border: 0;
}
h1#wb-cont {
  margin-top: 5px;
  margin-bottom: 10px;
}
hgroup#wb-cont h1 {
  margin-top: 0;
}
#wb-info .gc-main-footer {
  background: var(--rcmp-black);
}
#wb-info .gc-main-footer h4::before {
  border-bottom: 4px solid var(--rcmp-gold);
}
main {
  border-top: 5px solid var(--rcmp-red-dark);
  background-color: var(--rcmp-white);
  margin-bottom: 5rem;
}
#wb-bc,
body {
  background-color: var(--rcmp-grey-lt);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-family: inherit;
  font-weight: 700;
}
h1 {
  font-size: 1.9em;
  line-height: 1.17;
}
h2 {
  font-size: 1.8em;
  line-height: 1.23;
}
h3 {
  font-size: 1.2em;
  line-height: 1.37;
}
h4 {
  font-size: 1.1em;
  line-height: 1.33;
}
h5 {
  font-size: 1em;
  line-height: 1.33;
}
h6 {
  font-size: 0.95em;
  line-height: 1.45;
}
h1 small,
h1 .small,
h2 small,
h2 .small,
h3 small,
h3 .small {
  font-size: 65%;
}
h4 small,
h4 .small,
h5 small,
h5 .small,
h6 small,
h6 .small {
  font-size: 75%;
}
/* These are utility classes, need important to override default to be used as intended */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700!important;
}
.h1 {
  font-size: 1.9em!important;
  line-height: 1.17!important;
}
.h2 {
  font-size: 1.8em!important;
  line-height: 1.23!important;
}
.h3 {
  font-size: 1.2em!important;
  line-height: 1.37!important;
}
.h4 {
  font-size: 1.1em!important;
  line-height: 1.33!important;
}
.h5 {
  font-size: 1em!important;
  line-height: 1.33!important;
}
.h6 {
  font-size: 0.95em!important;
  line-height: 1.45!important;
}
.h1 small,
.h1 .small,
.h2 small,
.h2 .small,
.h3 small,
.h3 .small {
  font-size: 65%!important;
}
.h4 small,
.h4 .small,
.h5 small,
.h5 .small,
.h6 small,
.h6 .small {
  font-size: 75%!important;
}
/**/
#wb-info .gc-contextual {
  background-color: var(--rcmp-charcoil);
  color: var(--rcmp-white);
}

main nav[aria-labelledby="on-this-page"] {
  padding-bottom: 2rem;
}

main nav[aria-labelledby="on-this-page"] + section > h2:first-child {
  margin-top: 0;
}

.gc-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gc-link-list li {
  border-bottom: 1px solid var(--color-border-tertiary);
}
.gc-link-list li:first-child {
  border-top: 1px solid var(--color-border-tertiary);
}
.gc-pdf-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  color: #284162;
  text-decoration: underline;
  line-height: 1.5;
  cursor: pointer;
}
.gc-pdf-link:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
.gc-pdf-link .fa-file-arrow-down {
  flex-shrink: 0;
  font-size: 28px;
  margin-top: 10px;
}
.gc-link-title {
  display: block;
}
.gc-link-meta {
  display: block;
  color: var(--color-text-secondary);
  font-weight: 400;
  text-decoration: none;
  margin-top: 2px;
}

/* =============================================================================
   1. Missing-person additions
   ============================================================================= */
#mp-photo-col figure {
  margin: 0;
  border: 1px solid var(--rcmp-grey-md);
}
#mp-photo-col figcaption {
  background: var(--rcmp-grey-lt);
  padding: 12px 14px;
  font-size: 0.95em;
  border-top: 1px solid var(--rcmp-grey-md);
}
#mp-photo-col figcaption strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 4px;
}
#mp-photo-col .file-number {
  color: var(--rcmp-grey-dk);
  font-size: 0.9em;
}

/* =============================================================================
   2. Wanted + Missing shared additions
   ============================================================================= */
#wp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--rcmp-grey-md);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
#wp-count,
#wp-sort {
  display: flex;
  align-items: center;
}
#wp-count {
  margin-bottom: 0;
}
#wp-sort {
  gap: 8px;
  flex-wrap: wrap;
}
#wp-sort label {
  margin: 0;
  white-space: nowrap;
}
#wp-sort select {
  padding: 5px 32px 5px 10px;
  border: 2px solid var(--rcmp-black);
  border-radius: 0;
  background: var(--rcmp-white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b0c0c' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
#mp-filters,
#wp-filters {
  border: 1px solid var(--rcmp-grey-md);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
#mp-filters-heading,
#wp-filters-heading {
  background: var(--rcmp-black);
  color: var(--rcmp-white);
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 14px;
  margin: 0;
}
#mp-no-results,
#wp-no-results {
  display: none;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--rcmp-grey-md);
  max-width: initial;
}
.wp-filter-group {
  overflow: visible;
  box-sizing: border-box;
  width: 100%;
}
.wp-filter-group:last-child {
  border-bottom: 0;
}
.wp-filter-group legend {
  border: 0;
  padding: 0;
  margin-bottom: 8px;
  width: 100%;
}
.wp-filter-group .checkbox {
  margin: 0;
}
.wp-filter-group .checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
}
.wp-filter-group .checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid var(--rcmp-black);
  background: var(--rcmp-white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.wp-filter-group .checkbox input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  left: 7px;
  width: 10px;
  height: 16px;
  border: solid var(--rcmp-black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.wp-filter-group summary {
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  padding: 0.5em 0;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  text-indent: 0;
}
.wp-filter-group summary:hover span {
  text-decoration: underline;
}
.wp-filter-group summary::-webkit-details-marker {
  display: none;
}
.wp-filter-chevron {
  font-size: 0.75em;
  margin: 0 8px;
  vertical-align: middle;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
details[open] .wp-filter-chevron {
  transform: rotate(180deg);
}
.wp-filter-group fieldset {
  border-top: 0;
  padding-top: 8px;
}
details.wp-filter-group {
  margin-bottom: 0;
}
details.wp-filter-group[open] {
  border: 0;
  border-radius: 0;
}
.wp-filter-badge {
  background: var(--rcmp-grey-lt);
  color: var(--rcmp-grey-dk);
  font-size: 0.78em;
  padding: 1px 6px;
  flex-shrink: 0;
}
.cb-text {
  flex: 1;
  padding-top: 6px;
}
#mp-active-filters,
#wp-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.wp-filter-showing-label {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--rcmp-black);
  white-space: nowrap;
}
.wp-filter-tag-sep {
  font-size: 0.9em;
  color: var(--rcmp-grey-dk);
  white-space: nowrap;
}
.wp-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rcmp-black);
  color: var(--rcmp-white);
  font-size: 0.78em;
  font-weight: 700;
  padding: 4px 10px 4px 12px;
}
.wp-filter-tag button {
  background: none;
  border: 0;
  color: var(--rcmp-white);
  font-size: 1em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.wp-filter-tag button:hover {
  opacity: 1;
}
.wp-filter-tag button:focus-visible {
  opacity: 1;
  outline: 2px solid var(--rcmp-focus);
  outline-offset: 2px;
}
.wp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rcmp-grey-md);
  text-decoration: none;
  color: inherit;
  background: var(--rcmp-white);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.wp-card:hover,
.wp-card:focus {
  border-color: var(--rcmp-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
}
.wp-card-stripe,
#wp-photo-col .wp-wanted-frame {
  background: repeating-linear-gradient(-45deg, var(--rcmp-yellow) 0px, var(--rcmp-yellow) 8px, var(--rcmp-black) 8px, var(--rcmp-black) 16px);
  padding: 6px;
}
#wp-photo-col .wp-wanted-frame {
  padding: 12px;
  background: repeating-linear-gradient(-45deg, var(--rcmp-yellow) 0px, var(--rcmp-yellow) 12px, var(--rcmp-black) 12px, var(--rcmp-black) 24px);
}
.wp-card-wanted-label,
#wp-photo-col .wp-wanted-label {
  background: var(--rcmp-black);
  color: var(--rcmp-yellow);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.28em;
  padding: 4px 0 3px;
  margin: 0;
}
.wp-card-wanted-label {
  font-size: 0.72em;
}
#wp-photo-col .wp-wanted-label {
  font-size: 1.5em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 0 4px;
}
.wp-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--rcmp-black);
}
.wp-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  border-top: 1px solid var(--rcmp-grey-md);
  background: var(--rcmp-grey-lt);
}
.wp-card-name {
  font-size: 0.92em;
  font-weight: 700;
  color: var(--rcmp-black);
  margin: 0 0 4px;
  line-height: 1.3;
}
.wp-card-meta {
  font-size: 0.78em;
  color: var(--rcmp-grey-dk);
  margin: 0 0 6px;
}
#wp-photo-col figure {
  margin: 0;
  border: none;
}
#wp-photo-col figcaption {
  background: var(--rcmp-grey-lt);
  padding: 12px 14px;
  font-size: 0.95em;
  border-top: 3px solid var(--rcmp-black);
}
#wp-photo-col figcaption strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 4px;
}
#wp-photo-col .file-number {
  color: var(--rcmp-grey-dk);
  font-size: 0.9em;
}
#wp-charges-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#wp-charges-list li {
  background: var(--rcmp-black);
  color: var(--rcmp-white);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
}

/* =============================================================================
   3. Community news additions
   ============================================================================= */
#cn-kicker {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cn-red);
  margin-bottom: 10px;
}
#cn-deck {
  font-size: 1.15em;
  line-height: 1.65;
  color: #2c2c2c;
  border-left: 3px solid var(--cn-red);
  padding-left: 16px;
  margin-bottom: 20px;
}
#cn-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 0.82em;
  color: var(--cn-grey-dk);
  border-top: 1px solid var(--cn-grey-md);
  border-bottom: 1px solid var(--cn-grey-md);
  padding: 10px 0;
  margin-bottom: 28px;
}
#cn-byline .byline-author {
  font-weight: 700;
  color: var(--cn-black);
}
#cn-byline .byline-sep {
  color: var(--cn-grey-md);
}
#cn-hero {
  margin: 0 0 8px;
}
#cn-hero figcaption {
  font-size: 0.78em;
  color: var(--cn-grey-dk);
  background: var(--cn-grey-lt);
  padding: 8px 12px;
  border-top: 2px solid var(--cn-grey-md);
  line-height: 1.4;
}
#cn-hero figcaption strong {
  display: block;
  color: var(--cn-black);
  margin-bottom: 2px;
}
#cn-body {
  font-size: 1.05em;
  line-height: 1.8;
  color: #1a1a1a;
  max-width: 68ch;
}
#cn-body p {
  margin-bottom: 1.4em;
}
.cn-pullquote {
  margin: 28px 0;
  padding: 0 0 0 20px;
  border-left: 4px solid var(--cn-red);
  border-top: 0;
  border-bottom: 0;
}
.cn-pullquote p {
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cn-grey-dk);
  margin: 0 0 6px;
}
.cn-pullquote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--cn-grey-dk);
}
.cn-inline-figure {
  margin: 24px 0;
}
.cn-inline-figure img {
  width: 100%;
  display: block;
}
.cn-inline-figure figcaption {
  font-size: 0.78em;
  color: var(--cn-grey-dk);
  padding: 6px 0 0;
  border-top: 1px solid var(--cn-grey-md);
  line-height: 1.4;
}
.cn-infobox {
  background: var(--cn-grey-lt);
  border-left: 4px solid var(--cn-red);
  padding: 18px 20px;
  margin: 28px 0;
}
.cn-infobox h2 {
  color: var(--cn-red);
  margin: 0 0 10px;
}
.cn-infobox ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--cn-black);
  line-height: 1.7;
}
#cn-gallery {
  margin: 28px 0;
}
#cn-gallery h2 {
  margin-bottom: 12px;
}
#cn-gallery .list-inline > li {
  margin-bottom: 8px;
  padding-left: 0;
}
#cn-gallery .list-inline img {
  display: block;
  border: 1px solid var(--cn-grey-md);
}
#cn-related {
  border-top: 3px solid var(--cn-black);
  padding-top: 16px;
  margin-top: 36px;
  font-size: 0.95em;
}
#cn-related h2 {
  font-size: 1.1em;
  margin: 0 0 12px;
}
#cn-related ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
}
#cn-page a:focus {
  outline: 3px solid var(--rcmp-focus);
  outline-offset: 2px;
  background: var(--rcmp-focus);
  color: var(--cn-black);
}

/* =============================================================================
   4. Utilities — layout / grid
   ============================================================================= */
.grid {
  display: grid;
}
.inline-grid {
  display: inline-grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-none {
  grid-template-columns: none;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: start;
}
.justify-end {
  justify-content: end;
}
.gap-6px {
  gap: 6px;
}

/* =============================================================================
   5. Utilities — typography / text
   ============================================================================= */
.dl-horizontal dt {
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}
main dd {
  margin-bottom: 0.618em;
}

.pagedetails {
  margin: auto 15px;
}

.pagedetails.container  {
  margin: auto;
}

#wb-dtmd dd,
main dl dd:last-child {
  margin-bottom: 1rem;
}
.cnt-wdth-lmtd main h2,
main .cnt-wdth-lmtd h2 {
  max-width: 45ch;
}
.cnt-wdth-lmtd .lead {
  max-width: 55ch;
}
.lgnd-h4 {
  font-size: 0.8em;
}
.td-none {
  text-decoration: none;
}
.td-underline {
  text-decoration: underline;
}
.deploy-time {
  text-align: right;
}

/* =============================================================================
   6. Utilities — spacing
   ============================================================================= */
.pb-1 {
  padding-bottom: 0.5rem !important;
}
.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.pl-0 {
  padding-left: 0;
}
.brdr-tp-0 {
  border-top: none;
}
.pddng-tp-0 {
  padding-top: 0 !important;
}
.pddng-rght-0 {
  padding-right: 0 !important;
}
.pddng-bttm-0 {
  padding-bottom: 0 !important;
}
.pddng-lft-0 {
  padding-left: 0 !important;
}

/* =============================================================================
   7. Utilities — colour helpers
   ============================================================================= */
.wb-gld {
  color: var(--rcmp-gold);
}
.wb-chrcl {
  color: var(--rcmp-charcoil);
}
.wb-rd {
  color: var(--rcmp-red);
}

/* =============================================================================
   8. Grids — missing / wanted listing pages
   ============================================================================= */
#mp-grid,
#wp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* =============================================================================
   9. Component: Pagination
   ============================================================================= */
#rcmp-content-page {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rcmp-grey-md);
}
.rcmp-content-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: inherit;
}
.rcmp-content-page__prev {
  padding: 0;
}
.rcmp-content-page__next {
  padding: 0;
}
.rcmp-content-page--block:has(.rcmp-content-page__next[style*="block"]) .rcmp-content-page__prev {
  border-bottom: 1px solid var(--rcmp-grey-md);
}
.rcmp-content-page__link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-weight: 700;
  text-decoration: underline;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
}
.rcmp-content-page__link:hover,
.rcmp-content-page__link:focus {
  background: #e8e8e8;
  text-decoration: none;
}
.rcmp-content-page__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rcmp-content-page__icon {
  flex-shrink: 0;
  font-size: 1.1em;
}
.rcmp-content-page__link-title {
  display: block;
  font-size: 1em;
}
.rcmp-content-page__link-label {
  display: block;
  font-weight: 400;
  padding-left: 26px;
}
.rcmp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.rcmp-item-pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rcmp-grey-md);
  font-family: inherit;
}
.rcmp-item-pagination__prev,
.rcmp-item-pagination__next {
  flex: 0 0 auto !important;
  display: flex !important;
}
.rcmp-item-pagination__prev[style*="display:none"],
.rcmp-item-pagination__next[style*="display:none"],
.rcmp-item-pagination__prev[style*="display: none"],
.rcmp-item-pagination__next[style*="display: none"] {
  visibility: hidden !important;
  display: flex !important;
}
.rcmp-item-pagination__link {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--rcmp-black);
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.rcmp-item-pagination__link:hover,
.rcmp-item-pagination__link:focus {
  background: #e8e8e8;
  text-decoration: none;
  color: var(--rcmp-black);
}
.rcmp-item-pagination__icon {
  flex-shrink: 0;
  font-size: 0.85em;
}
.rcmp-item-pagination__link-title {
  font-size: 1em;
}
.rcmp-item-pagination__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto !important;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.rcmp-item-pagination__item {
  display: flex !important;
  flex: 0 0 auto;
}
.rcmp-item-pagination__item-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  font-weight: 700;
  color: var(--rcmp-black);
  text-decoration: underline;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.rcmp-item-pagination__item-link:hover,
.rcmp-item-pagination__item-link:focus {
  background: #e8e8e8;
  text-decoration: none;
  color: var(--rcmp-black);
}
.rcmp-item-pagination__item--current .rcmp-item-pagination__item-link {
  background: var(--rcmp-black);
  color: var(--rcmp-white);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.rcmp-item-pagination__item--ellipsis {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--rcmp-grey-dk);
  cursor: default;
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .rcmp-item-pagination {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  .rcmp-item-pagination__prev,
  .rcmp-item-pagination__next {
    width: 100%;
    justify-content: center;
  }
  .rcmp-item-pagination__list {
    flex-wrap: wrap !important;
    justify-content: center;
    flex: 0 0 auto !important;
    width: 100%;
  }
}

/* =============================================================================
   10. Component: Header / App bar
   ============================================================================= */
.app-bar {
  background: var(--rcmp-red);
  margin-top: 5px;
  color: var(--rcmp-white);
  font-size: 1.6em;
  padding: 5px;
}
@media screen and (min-width: 768px) {
  .app-bar .row {
    display: table;
    table-layout: fixed;
    width: calc(100% + 30px);
  }
  .app-bar .row > nav,
  .app-bar .row > section {
    display: table-cell;
    float: none;
    vertical-align: middle;
  }
}

/* =============================================================================
   11. Component: Breadcrumb
   ============================================================================= */
#wb-bc .breadcrumb li a {
  padding: 0;
}
.block-poweb-breadcrumbs nav.breadcrumb,
nav.block-menu ul.menu {
  padding: 0 2px;
}
.block-poweb-breadcrumbs nav.breadcrumb ol {
  padding-inline-start: 0;
}
/* =============================================================================
   12. Component: Home page hero banner
   ============================================================================= */
#home-page .hero-bnr {
  min-height: 500px;
  height: 500px;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}
#home-page .hero-bnr img {
  background-color: var(--rcmp-white);
  min-height: 500px;
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#home-page .hero-bnr .hero-txt {
  padding: 0 25px;
  background-color: rgba(0, 0, 0, 0.5);
}
#home-page .hero-bnr .hero-txt .hero-ttl {
  border-bottom: 3px solid var(--rcmp-gold-warn);
}

/* =============================================================================
   13. Component: Navigation misc
   ============================================================================= */
[dir="ltr"] .contextual .trigger::before {
  transform: translate(-50%, -50%) scale(2) !important;
}
.contextual-region .form-item .label {
  color: inherit;
}
.contextual-region .form-item .label:after {
  content: ":";
}
.provisional.gc-topic-bg img {
  height: 200px;
  object-fit: cover;
  object-position: left;
}

/* =============================================================================
   14. Component: Follow-us social icons
   ============================================================================= */
.gc-followus ul.list-inline li {
  display: inline-block;
  padding-right: 0;
  margin-bottom: 21px;
}
.gc-followus ul.list-inline li a {
  height: 38px;
  width: 38px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-decoration: none;
}
.gc-followus .facebook::before {
  background-image: url(/themes/custom/poweb/assets/gc-follow-us/facebook.svg);
}
.gc-followus .x::before {
  background-image: url(/themes/custom/poweb/assets/gc-follow-us/x.svg);
}
.gc-followus .youtube::before {
  background-image: url(/themes/custom/poweb/assets/gc-follow-us/youtube.svg);
}
.gc-followus .instagram::before {
  background-image: url(/themes/custom/poweb/assets/gc-follow-us/instagram.svg);
}
.gc-followus .linkedin::before {
  background-image: url(/themes/custom/poweb/assets/gc-follow-us/linkedin.svg);
}
.gc-followus .facebook::before,
.gc-followus .x::before,
.gc-followus .youtube::before,
.gc-followus .instagram::before,
.gc-followus .linkedin::before {
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  height: 38px;
  margin-right: 10px;
  min-width: 38px;
}

/* =============================================================================
   15. Component: Unilingual banner
   ============================================================================= */
.unilingual-wrapper {
  background-color: var(--rcmp-grey-lt);
}
.unilingual-container details,
.unilingual-container summary,
.unilingual-container summary:hover,
.unilingual-container summary:focus {
  background-color: var(--rcmp-white);
}
.unilingual-container #unilingual {
  margin-top: 15px;
  margin-bottom: 0;
}
.unilingual-container p.h2 {
  margin-bottom: 15px;
}
#unilingual-bnr {
  background: #f9f4d4;
}
#unilingual-bnr p {
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
#unilingual-bnr a {
  color: #000;
  display: block;
  font-weight: 700;
  padding: 0.75em 44px;
  text-decoration: underline;
}
#unilingual-bnr .overlay-close {
  color: #000;
  background-color: transparent;
}
#unilingual-bnr .overlay-close:hover {
  border: solid 1px #000;
}
#unilingual-bnr.wb-overlay.open {
  position: absolute;
}

/* =============================================================================
   16. Component: Topic pills (#tp-*)
   ============================================================================= */
#tp-1,
p.tp-1 {
  --color: #99b186;
}
#tp-2,
p.tp-2 {
  --color: #90b6b0;
}
#tp-3,
p.tp-3 {
  --color: #b9db6b;
}
#tp-4,
p.tp-4 {
  --color: #eb8990;
}
#tp-5,
p.tp-5 {
  --color: #f98900;
}
#tp-6,
p.tp-6 {
  --color: #f7c5b4;
}
#tp-7,
p.tp-7 {
  --color: #97b0bf;
}
#tp-8,
p.tp-8 {
  --color: #d1a9b3;
}
#tp-9,
p.tp-9 {
  --color: #76c6f0;
}
#tp-10,
p.tp-10 {
  --color: #b59b8c;
}
#tp-11,
p.tp-11 {
  --color: #9f8ec7;
}
#tp-12,
p.tp-12 {
  --color: #f3dd8c;
}

p.tp-1,
p.tp-2,
p.tp-3,
p.tp-4,
p.tp-5,
p.tp-6,
p.tp-7,
p.tp-8,
p.tp-9,
p.tp-10,
p.tp-11,
p.tp-12 {
  display: block;
  width: max-content;
  color: #000;
  background: var(--color);
  padding: 10px;
  font-weight: bold;
}
#tp-1,
#tp-2,
#tp-3,
#tp-4,
#tp-5,
#tp-6,
#tp-7,
#tp-8,
#tp-9,
#tp-10,
#tp-11,
#tp-12 {
  color: #000;
  background: var(--color);
  border-color: var(--color);
}
#tp-1:focus,
#tp-2:focus,
#tp-3:focus,
#tp-4:focus,
#tp-5:focus,
#tp-6:focus,
#tp-7:focus,
#tp-8:focus,
#tp-9:focus,
#tp-10:focus,
#tp-11:focus,
#tp-12:focus,
#tp-1:hover,
#tp-2:hover,
#tp-3:hover,
#tp-4:hover,
#tp-5:hover,
#tp-6:hover,
#tp-7:hover,
#tp-8:hover,
#tp-9:hover,
#tp-10:hover,
#tp-11:hover,
#tp-12:hover {
  color: #000;
  background-color: var(--rcmp-white);
  border-color: var(--color);
}
#gazette-home #s2 .list-unstyled > li {
  margin-bottom: 30px;
}

/* =============================================================================
   17. Component: Gazette label
   ============================================================================= */
.label-gazette,
.label-gazette[href]:active,
.label-gazette[href]:focus,
.label-gazette[href]:hover {
  background: #ccc;
  border-color: var(--rcmp-red);
  color: #000;
}

/* =============================================================================
   19. Component: PIA table
   ============================================================================= */
.table.pia h2 {
  margin-top: 15px;
}
.pia-date {
  text-align: left;
}

/* =============================================================================
   20. Component: Recruiting event grid
   ============================================================================= */
.table tbody.recruiting-event-grid tr td {
  padding: 0;
}
.recruiting-event-grid .event-item .category-text-align,
.recruiting-event-grid .event-item .type-text-align {
  text-align: left;
}

/* =============================================================================
   21. Component: Contact / signature
   ============================================================================= */
.contact-signature {
  margin-bottom: 3rem;
}
.signature-link-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.signature-link-grid .signature-link-subgrid {
  display: grid;
  grid-auto-columns: auto;
  grid-auto-flow: column;
  column-gap: 1rem;
  justify-content: flex-start;
}
.signature-link-grid .signature-link-subgrid div:first-child {
  min-width: 2.75rem;
}
.contact-signature svg.svg-inline--fa.fa-link,
.contact-signature svg.svg-inline--fa.fa-x-twitter,
.contact-signature svg.svg-inline--fa.fa-instagram {
  color: #000;
}
.contact-signature svg.svg-inline--fa.fa-square-facebook {
  color: #3c5a99;
}
.contact-signature svg.svg-inline--fa.fa-youtube {
  color: #d92632;
}

/* =============================================================================
   22. Component: Button
   ============================================================================= */
body .btn-primary,
.btn-primary {
  background-color: var(--rcmp-red);
  border-color: var(--rcmp-red);
  color: var(--rcmp-white);
}
body .btn-primary:focus,
body .btn-primary:hover,
.btn-primary:focus,
.btn-primary:hover {
  background-color: #444;
  border-color: #444;
  color: var(--rcmp-white);
}
body .btn-primary:active,
body .btn-primary.active,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
  background-color: #8f0311;
  border-color: #000;
  color: var(--rcmp-white);
}
body .btn-default,
.btn-default {
  background-color: #eaebed;
  border-color: #dcdee1;
  color: #335075;
}
body .btn-default:focus,
body .btn-default:hover,
.btn-default:focus,
.btn-default:hover {
  background-color: #cfd1d5;
  border-color: #bbbfc5;
  color: #335075;
}
body .btn-default:active,
body .btn-default.active,
.btn-default:active,
.btn-default.active,
.open > .btn-default.dropdown-toggle {
  background-color: #cfd1d5;
  border-color: #bbbfc5;
  color: #335075;
}
.btn-all-services {
  border: 2px solid #26374a;
  color: #26374a;
  font-size: 1.1em;
  font-weight: 700;
  padding: 0.65em 1.1em;
}

/* =============================================================================
   25. Component: HRCSODA
   ============================================================================= */
.hrcsoda-grid-wrapper {
  margin: -1rem 0 -1rem 0;
  padding: 1rem;
}
.hrcsoda-grid-wrapper .thumbnail {
  margin-bottom: 1rem;
}
.hrcsoda-image-placeholder {
  width: 240px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #4b4b4b;
  background-color: #f8f8f8;
}

/* =============================================================================
   26. Component: Divisional-missing width override
   ============================================================================= */
.cnt-wdth-lmtd #divisional-missing .dl-horizontal,
.cnt-wdth-lmtd main #divisional-missing dd,
.cnt-wdth-lmtd main #divisional-missing dt,
.cnt-wdth-lmtd main #divisional-missing h5,
.cnt-wdth-lmtd main #divisional-missing h6,
.cnt-wdth-lmtd main #divisional-missing p,
main #divisional-missing .cnt-wdth-lmtd dd,
main #divisional-missing .cnt-wdth-lmtd dt,
main #divisional-missing .cnt-wdth-lmtd h5,
main #divisional-missing .cnt-wdth-lmtd h6,
main #divisional-missing .cnt-wdth-lmtd p {
  max-width: unset;
}

/* =============================================================================
   404 page
   ============================================================================= */
#page-404 {
  background-color: var(--rcmp-white);
}
#page-404 main {
  border: 0;
}
#page-404 .btn-primary {
  background-color: var(--rcmp-red);
  border-color: var(--rcmp-red);
  color: var(--rcmp-white);
}
#page-404 .btn-primary:hover {
  background-color: #444;
  border-color: #444;
}

/* =============================================================================
   500 page
   ============================================================================= */
#page-500 {
  background-color: var(--rcmp-white);
}
#page-500 main {
  border: 0;
  padding-top: 30px;
  padding-bottom: 40px;
}
#page-500 .error-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
#page-500 .error-col-img,
#page-500 .error-col-text {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
}
#page-500 .error-col-img {
  padding-right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-500 .error-col-text {
  padding-left: 32px;
  border-left: 1px solid var(--rcmp-grey-md);
}
#page-500 .error-illustration {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
  filter: none;
  mix-blend-mode: multiply;
  background: var(--rcmp-white);
}
#page-500 .error-lang-divider {
  border: 0;
  border-top: 1px solid var(--rcmp-grey-md);
  margin: 24px 0;
}
@media (max-width: 767px) {
  #page-500 .error-col-img,
  #page-500 .error-col-text {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
  }
  #page-500 .error-col-img {
    margin-bottom: 24px;
  }
  #page-500 .error-illustration {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* =============================================================================
   MEDIA QUERIES — consolidated, ascending breakpoint order
   ============================================================================= */
@media screen and (max-width: 767px) {
  header .brand img {
    margin-top: 10px;
  }
  header .brand img,
  header .brand object {
    max-height: 40px;
  }
  #mp-grid,
  #wp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #cn-body {
    max-width: 100%;
  }
  #cn-page h1#wb-cont {
    font-size: 1.6em;
  }
  .cn-pullquote p {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  #mp-grid,
  #wp-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 991px) {
  header .brand img {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 976px) {
  header .brand img {
    margin-bottom: 0;
    max-height: 80px;
  }
  .hrcsoda-exposed-form--landing-page {
    padding-left: 0;
  }
}

@media screen and (min-width: 992px) {
  #wb-srch,
  .srchbox {
    padding-top: 22px;
  }
  #wb-srch .submit,
  .srchbox .submit {
    top: 22px;
  }
  .table.pia h2 {
    margin-top: 0;
  }
  .pia-date {
    text-align: right;
  }
  .recruiting-event-grid .event-item .category-text-align,
  .recruiting-event-grid .event-item .type-text-align {
    text-align: right;
  }
  .hrcsoda-image-placeholder {
    justify-self: center;
  }
}

a {
    color: #284162;
}

a {
    text-decoration: underline;
}
