/* =========================================================
   SITE 1994 brand layer, loaded after bootstrap-extra/style.css.
   ========================================================= */


/* =========================================================
   0. FONT SYSTEM
   ========================================================= */

:root {
  /* Screen edge gutter; fixed edge elements center within it. */
  --pro-edge: 4.5rem;

  /* Half the footer contact panel height, reserved by the block above. */
  --pro-panel-half: 3.25rem;

  /* Headings, menus and buttons use GIP. */
  --pro-font-head:  "GIP", Arial, sans-serif;
  /* Organization name font; Tinos is a metric-compatible Times New Roman fallback. */
  --pro-font-serif: "Times New Roman", Tinos, Georgia, serif;
}

/* Body text uses GIP. */
body {
  font-family: "GIP", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* Headings, buttons, badges and tabs use the heading font. */
h1, h2, h3, h4, h5, h6,
.btn,
.badge,
.item-badge,
.item-filter button {
  font-family: var(--pro-font-head);
}

/* Organization name always uses Times New Roman, per the brandbook. */
.navbar-brand-text {
  font-family: var(--pro-font-serif);
}


/* =========================================================
   1. BRAND TOKENS: light
   ========================================================= */

:root,
[data-bs-theme="light"] {
  /* Primary: deep brand blue. */
  --bs-primary:               #254a9f;
  --bs-primary-rgb:           37, 74, 159;
  --bs-primary-bg-subtle:     #d3dbec;
  --bs-primary-border-subtle: #a7b7d9;
  --bs-primary-text-emphasis: #0f1e40;

  /* Secondary: soft blue. */
  --bs-secondary:               #2ba5dc;
  --bs-secondary-rgb:           43, 165, 220;
  --bs-secondary-bg-subtle:     #d5edf8;
  --bs-secondary-border-subtle: #aadaf1;
  --bs-secondary-text-emphasis: #114258;

  /* Gold: brand accent for underlines, blockquotes and markers. */
  --bs-gold:     #e4ac24;
  --bs-gold-rgb: 228, 172, 36;

  --bs-link-color:            #254a9f;
  --bs-link-color-rgb:        37, 74, 159;
  --bs-link-hover-color:      #1e3e85;
  --bs-link-hover-color-rgb:  30, 62, 133;

  /* Fixed deep brand blue for dark surfaces, independent of theme. */
  --pro-brand-deep:     #254a9f;
  --pro-brand-deep-rgb: 37, 74, 159;
}


/* =========================================================
   2. BRAND TOKENS: dark
   ========================================================= */

[data-bs-theme="dark"] {
  --bs-primary:               #5b8ede;
  --bs-primary-rgb:           91, 142, 222;
  --bs-primary-bg-subtle:     #070f20;
  --bs-primary-border-subtle: #16294f;
  --bs-primary-text-emphasis: #adc4ee;

  --bs-secondary-bg-subtle:     #0a212c;
  --bs-secondary-border-subtle: #1a637f;
  --bs-secondary-text-emphasis: #9ad5ee;

  --bs-link-color:            #adc4ee;
  --bs-link-color-rgb:        173, 196, 238;
  --bs-link-hover-color:      #c5d6f3;
  --bs-link-hover-color-rgb:  197, 214, 243;
}


/* =========================================================
   3. BUTTONS
   ========================================================= */

.btn-primary {
  --bs-btn-bg: #254a9f;
  --bs-btn-border-color: #254a9f;
  --bs-btn-hover-bg: #1e3e85;
  --bs-btn-hover-border-color: #1e3e85;
  --bs-btn-active-bg: #1b3777;
  --bs-btn-active-border-color: #1b3777;
  --bs-btn-disabled-bg: #254a9f;
  --bs-btn-disabled-border-color: #254a9f;
}
.btn-outline-primary {
  --bs-btn-color: #254a9f;
  --bs-btn-border-color: #254a9f;
  --bs-btn-hover-bg: #254a9f;
  --bs-btn-hover-border-color: #254a9f;
  --bs-btn-active-bg: #254a9f;
  --bs-btn-active-border-color: #254a9f;
  --bs-btn-disabled-color: #254a9f;
  --bs-btn-disabled-border-color: #254a9f;
}

/* Secondary button: soft blue with white text. */
.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2ba5dc;
  --bs-btn-border-color: #2ba5dc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2490c0;
  --bs-btn-hover-border-color: #2490c0;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2087b4;
  --bs-btn-active-border-color: #2087b4;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #2ba5dc;
  --bs-btn-disabled-border-color: #2ba5dc;
}
.btn-outline-secondary {
  --bs-btn-color: #1a7ba6;
  --bs-btn-border-color: #2ba5dc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2ba5dc;
  --bs-btn-hover-border-color: #2ba5dc;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2ba5dc;
  --bs-btn-active-border-color: #2ba5dc;
  --bs-btn-disabled-color: #1a7ba6;
  --bs-btn-disabled-border-color: #2ba5dc;
}

















/* =========================================================
   3a. BUTTON SHAPE: pill sizes of 32, 40 and 50px.
   ========================================================= */

.btn {
  --bs-btn-padding-y: .5625rem;
  --bs-btn-padding-x: 1.375rem;
  --bs-btn-font-size: .875rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 50rem;
  --bs-btn-border-width: 1px;   /* extra: 2px; var(--bs-border-width) won't do — form-button.css sets it to 2px on .btn */
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
  /* Fixed height so links and icon buttons align with inputs. */
  min-height: 2.5rem;
  line-height: 1.4;
  letter-spacing: .01em;
  transition: color .4s ease-in-out, background-color .4s ease-in-out,
              border-color .4s ease-in-out, box-shadow .4s ease-in-out,
              transform .12s ease-in-out;
}

/* Press effect: nudge down 1px. */
.btn:active {
  transform: translateY(1px);
}

/* Button icons slightly smaller than the label. */
.btn > i,
.btn > .fa-solid,
.btn > .fa-brands {
  font-size: .875em;
}

/* Secondary buttons use a gold focus ring. */
.btn-secondary,
.btn-outline-secondary {
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-gold-rgb), .35);
}

/* Sizes: extra horizontal padding for the pill corners. */
.btn-lg {
  --bs-btn-padding-y: .8125rem;
  --bs-btn-padding-x: 2rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: 50rem;
  min-height: 3.125rem;
}
.btn-sm {
  --bs-btn-padding-y: .375rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: .75rem;
  --bs-btn-border-radius: 50rem;
  min-height: 2rem;
}

/* Circle buttons: sm/lg sizes and no arrow on text circles. */
.btn-sm.btn-circle {
  width: 2rem !important;
  height: 2rem !important;
}
.btn-lg.btn-circle {
  width: 3.125rem !important;
  height: 3.125rem !important;
}
.btn-circle.btn-text::after {
  content: none;
}

/* Round language buttons (MN · EN · MNG): one small size everywhere so 3 letters fit the circle */
.btn-circle.btn-text {
  --bs-btn-font-size: .625rem;
  --bs-btn-font-weight: 700;
  letter-spacing: .02em;
}

/* Text link button: underline on hover, arrow added via CSS. */
.btn-link {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-gold);
  --bs-btn-padding-x: 0;
  text-decoration: none;
}
.btn-link::after {
  content: "\f061";                        /* fa-arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .8em;
  display: inline-block;                   /* Keeps the hover underline off the arrow. */
  margin-left: .125rem;
  transition: transform .4s ease-in-out;
}
.btn-link:hover::after,
.btn-link:focus-visible::after {
  transform: translateX(.25rem);
}
.btn-link:hover,
.btn-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.btn:disabled,
.btn.disabled {
  opacity: .55;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}


/* =========================================================
   3b. FORMS
   ========================================================= */

/* All form fields match the 40px default button height. */
.form-control,
.form-select,
.input-group-text,
.form-option {
  --bs-border-width: 1px;   /* extra (form-button.css): 2px — same 1px as the buttons */
}

.form-control,
.form-select,
.input-group-text {
  min-height: 2.5rem;
  padding: .5625rem 1.125rem;
  font-size: .875rem;
  line-height: 1.4;
  border-radius: 50rem;   /* Pill shape, same as buttons. */
  border-color: var(--bs-border-color);
  transition: border-color .4s ease-in-out, box-shadow .4s ease-in-out;
}

/* Room for the select arrow. */
.form-select {
  padding-right: 2rem;
}

.form-control:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
  border-color: rgba(var(--bs-primary-rgb), .45);
}

/* Focus: brand-colored ring. */
.form-control:focus,
.form-select:focus {
  border-color: rgb(var(--bs-primary-rgb));
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}

.form-control::placeholder {
  color: var(--bs-tertiary-color);
  opacity: 1;
}

/* Textarea: own height with soft corners instead of a pill. */
textarea.form-control {
  min-height: 8rem;
  line-height: 1.6;
  border-radius: .75rem;
}

/* File input: inner button matches the field rhythm. */
.form-control[type="file"] {
  padding-block: .4375rem;
}
.form-control[type="file"]::file-selector-button {
  padding: .5625rem .875rem;
  margin: -.4375rem .875rem -.4375rem -.875rem;
  font-size: .875rem;
  line-height: 1.4;
}

.form-label {
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--bs-body-color);
}
.form-text {
  font-size: .8125rem;
  color: var(--bs-secondary-color);
}

/* Checkbox / radio / switch */

.form-check-input {
  border-color: var(--bs-border-color);
  transition: background-color .4s ease-in-out, border-color .4s ease-in-out, box-shadow .4s ease-in-out;
}
.form-check-input:checked {
  background-color: rgb(var(--bs-primary-rgb));
  border-color: rgb(var(--bs-primary-rgb));
}
.form-check-input:focus {
  border-color: rgb(var(--bs-primary-rgb));
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}
.form-check-label {
  font-size: .9375rem;
}

/* Disabled and read-only fields. */

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: var(--bs-secondary-bg);
  opacity: 1;
  cursor: not-allowed;
}

/* Input group: focused field sits above its neighbours. */

.input-group > .form-control:focus,
.input-group > .form-select:focus {
  z-index: 3;
}
.input-group-text {
  border-radius: .375rem;
  border-color: var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .9375rem;
}

/* Validation states: focus ring matches the brand ring weight. */

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .15);
}
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus,
.form-select.is-valid:focus {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-success-rgb), .15);
}
.invalid-feedback,
.valid-feedback {
  font-size: .8125rem;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .form-control,
  .form-select,
  .form-check-input { transition: none; }
}




.container-fluid {
  max-width: 1624px;
}




/* HEADING ROW */

.heading-row h2 {
  text-transform: uppercase;
  font-weight: 600 !important;
  letter-spacing: .075rem; /* Tighter letter spacing for the condensed font. */
  font-size: 1.5rem !important;
}
/* Section headings use brand blue. */
.heading-row>.heading-main>h2 {
  color: var(--bs-primary);
}
/* Dark blocks keep the body color for headings. */
[data-bs-theme="dark"] .heading-row>.heading-main>h2 {
  color: var(--bs-body-color);
}
.heading-row .heading-desc p {
  font-size: .875rem !important;
}
/* Heading var-3 underline uses the gold accent. */
.heading-row.heading-var-3>.heading-main>h2::after {
  background: linear-gradient(90deg, rgb(var(--bs-gold-rgb)) 0%, rgba(var(--bs-gold-rgb), 0) 100%);
}

/* =========================================================
   BREADCRUMB BAND: gold-to-blue gradient matching the notice ticker.
   ========================================================= */

.post-page-breadcrumb {
  background-color: rgb(var(--pro-brand-deep-rgb)) !important;
  background-image: linear-gradient(90deg,
    var(--bs-gold) 0%,
    rgb(var(--pro-brand-deep-rgb)) 26%,
    rgb(var(--pro-brand-deep-rgb)) 55%,
    var(--bs-secondary) 100%);
  border-bottom-color: transparent !important;
}

.post-page-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .55);
  --bs-breadcrumb-item-active-color: var(--bs-white);
  color: var(--bs-white);
}
.post-page-breadcrumb .breadcrumb-item,
.post-page-breadcrumb .breadcrumb-item a {
  color: var(--bs-white);
}
.post-page-breadcrumb .breadcrumb-item a:hover {
  color: rgba(255, 255, 255, .75);
}

/* =========================================================
   SUBPAGE SIDEBAR — 1990 markup (col-sidebar, widget-category), 1994 card look
   ========================================================= */

/* Section menu widget: white card with soft shadow instead of the 1990 border */
.col-sidebar .widget-category {
  background-color: var(--bs-body-bg);
  border-color: transparent !important;
  box-shadow: var(--bs-box-shadow);
}

.col-sidebar .widget-category .widget-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

.col-sidebar .widget-category a {
  transition: all .4s ease-in-out;
}

.col-sidebar .widget-category a:hover {
  color: rgb(var(--pro-brand-deep-rgb)) !important;
}

/* Group toggle chevron: points right when closed */
.col-sidebar .cat-icon {
  font-size: .65rem;
  transform: rotate(-90deg);
  transition: all .4s ease-in-out;
}

.col-sidebar [data-bs-toggle="collapse"]:not(.collapsed) .cat-icon {
  transform: rotate(0deg);
}

.col-sidebar .widget-links .item-title {
  font-size: .875rem;
}

/* =========================================================
   SUBPAGE QUICK LINKS: solid colored tiles cycling through seven colors.
   ========================================================= */

.col-sidebar .widget-links .col-item                { --pro-tile: 188, 136, 15; }   /* gold */
.col-sidebar .widget-links .col-item:nth-child(7n+2){ --pro-tile: 27, 135, 188; }   /* sky blue */
.col-sidebar .widget-links .col-item:nth-child(7n+3){ --pro-tile: 22, 150, 92; }    /* green */
.col-sidebar .widget-links .col-item:nth-child(7n+4){ --pro-tile: 208, 70, 58; }    /* red */
.col-sidebar .widget-links .col-item:nth-child(7n+5){ --pro-tile: 109, 91, 208; }   /* violet */
.col-sidebar .widget-links .col-item:nth-child(7n+6){ --pro-tile: 11, 140, 152; }   /* teal */
.col-sidebar .widget-links .col-item:nth-child(7n+7){ --pro-tile: 224, 106, 27; }   /* orange */

.col-sidebar .widget-links .feature-item {
  /* 4:3 tile: icon at top, title bottom-left. */
  aspect-ratio: 4 / 3;
  background-color: rgb(var(--pro-tile));
  /* Subtle diagonal sheen, darker at the bottom for text contrast. */
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(0, 0, 0, .16) 100%);
}
/* Hover: brighter, flatter sheen. */
.col-sidebar .widget-links .feature-item:hover {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(0, 0, 0, .06) 100%);
}
.col-sidebar .widget-links .item-image i,
.col-sidebar .widget-links .item-title a {
  color: var(--bs-white);
}

/* =========================================================
   OVERLAYS: plain black in every theme.
   ========================================================= */

.bg-overlay {
  background: rgba(0, 0, 0, .25);
}

.card-item.item-var-3 .item-overlay,
.post-item.item-var-3 .item-overlay,
.product-item.item-var-3 .item-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 100%);
}

.person-item .item-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);
}

/* Text on a black overlay is white in every theme */
.card-item.item-var-3 .item-title a,
.card-item.item-var-3 .item-desc,
.card-item.item-var-3 .item-info,
.card-item.item-var-3 .item-list,
.card-item.item-var-3 .item-details a:not(.btn),
.card-item.item-var-3 .item-details small,
.card-item.item-var-3 .item-action .btn-link,
.post-item.item-var-3 .item-title a,
.post-item.item-var-3 .item-desc,
.post-item.item-var-3 .item-info,
.post-item.item-var-3 .item-details a:not(.btn),
.post-item.item-var-3 .item-details small,
.post-item.item-var-3 .item-action .btn-link,
.product-item.item-var-3 .item-title a,
.product-item.item-var-3 .item-desc,
.product-item.item-var-3 .item-info,
.product-item.item-var-3 .item-details a:not(.btn),
.product-item.item-var-3 .item-details small,
.product-item.item-var-3 .item-action .btn-link {
  color: var(--bs-white) !important;
}

/* =========================================================
   ITEM META: date, category and badge rows.
   ========================================================= */

.item-meta > * {
  font-size: .75rem;
}

/* ITEM SPEC LIST: label and value pairs in registry cards. */

.item-spec-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
}
.item-spec-list > li {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
}
.item-spec-list > li > span:first-child {
  color: var(--bs-secondary-color);
}
/* Colon after each label. */
.item-spec-list > li > span:first-child::after {
  content: ":";
}
.item-spec-list > li > span:last-child {
  font-weight: 600;
  color: var(--bs-body-color);
}

/* =========================================================
   RICH TEXT (.typography): styles for CMS editor content.
   ========================================================= */

.typography h1 { font-size: 1.25rem; }
.typography h2 { font-size: 1.125rem; }
.typography h3 { font-size: 1.0625rem; }
.typography h4,
.typography h5,
.typography h6 { font-size: 1rem; }

.typography h1,
.typography h2,
.typography h3,
.typography h4,
.typography h5,
.typography h6 {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

/* Justify long text; inline editor alignment still wins. */
.typography p,
.typography li {
  text-align: justify;
}

/* Extra space above headings except the first. */
.typography > :is(h1, h2, h3, h4, h5, h6):not(:first-child) {
  margin-top: .5rem;
}

.typography strong,
.typography b {
  font-weight: 600;
  color: var(--bs-emphasis-color);
}

/* Blockquote: rounded gradient card with decorative quote marks. */
.typography blockquote {
  position: relative;
  margin: .5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3.75rem;
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(var(--bs-primary-rgb), .12) 0%, rgba(var(--bs-secondary-rgb), .12) 100%),
    var(--bs-body-bg);
  overflow: hidden;
}
.typography blockquote::before,
.typography blockquote::after {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.typography blockquote::before {
  content: "\201C";
  left: .875rem;
  top: .75rem;
  font-size: 4rem;
  color: var(--bs-gold);
}
.typography blockquote::after {
  content: "\201D";
  right: 1rem;
  bottom: -1.25rem;
  font-size: 6rem;
  color: rgba(var(--bs-primary-rgb), .1);
}
.typography blockquote p {
  position: relative;
  font-style: italic;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--bs-emphasis-color);
}
.typography blockquote > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .typography blockquote { padding: 1.75rem 2.25rem 1.75rem 4.75rem; }
  .typography blockquote::before { left: 1.25rem; top: 1rem; font-size: 4.5rem; }
}

/* Images keep their natural width, capped at the column. */
.typography img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.typography figure {
  margin: 0;
  text-align: center;
}
.typography figure iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .75rem;
}
/* Vertical 9:16 embeds such as Shorts and reels, centered. */
.typography figure iframe.is-vertical {
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}
/* PDF viewer with a portrait A4 ratio. */
.typography iframe[src*=".pdf"] {
  aspect-ratio: 3 / 4;
  border: var(--bs-border-width) solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
}
.typography figcaption {
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--bs-secondary-color);
}

/* Lists: gold markers and slight item spacing. */
.typography ul,
.typography ol { padding-left: 1.25rem; }
.typography li::marker { color: var(--bs-gold); }
.typography li + li { margin-top: .25rem; }

.typography a {
  color: rgb(var(--pro-brand-deep-rgb));
  text-decoration: underline;
  text-underline-offset: .2em;
}
.typography a:hover { color: var(--bs-gold); }

/* Download links get a file-type icon by extension. */
.typography a[href$=".pdf"]::before,
.typography a[href$=".doc"]::before,
.typography a[href$=".docx"]::before,
.typography a[href$=".xls"]::before,
.typography a[href$=".xlsx"]::before,
.typography a[href$=".ppt"]::before,
.typography a[href$=".pptx"]::before,
.typography a[href$=".zip"]::before,
.typography a[href$=".rar"]::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: .375rem;
  color: var(--bs-gold);
}
.typography a[href$=".pdf"]::before  { content: "\f1c1"; }   /* file-pdf */
.typography a[href$=".doc"]::before,
.typography a[href$=".docx"]::before { content: "\f1c2"; }   /* file-word */
.typography a[href$=".xls"]::before,
.typography a[href$=".xlsx"]::before { content: "\f1c3"; }   /* file-excel */
.typography a[href$=".ppt"]::before,
.typography a[href$=".pptx"]::before { content: "\f1c4"; }   /* file-powerpoint */
.typography a[href$=".zip"]::before,
.typography a[href$=".rar"]::before  { content: "\f1c6"; }   /* file-zipper */

/* External links: small arrow icon. */
.typography a[target="_blank"]::after {
  content: "\f08e";                        /* arrow-up-right-from-square */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .75em;
  margin-left: .3em;
  opacity: .6;
  text-decoration: none;
}

.typography hr {
  height: 1px;
  margin: .5rem 0;
  border: 0;
  opacity: 1;
  background: linear-gradient(90deg, rgb(var(--bs-gold-rgb)) 0%, rgba(var(--bs-gold-rgb), 0) 100%);
}

.typography mark {
  padding: 0 .2em;
  border-radius: .2em;
  background-color: rgba(var(--bs-gold-rgb), .25);
  color: inherit;
}

/* Tables scroll horizontally when wider than the column. */
.typography table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .875rem;
}
.typography table th,
.typography table td {
  padding: .5rem .75rem;
  border: 1px solid var(--bs-border-color);
  vertical-align: top;
}
.typography table th {
  font-weight: 600;
  background-color: var(--bs-tertiary-bg);
  text-align: left;
}
/* Zebra striping and row hover. */
.typography table tr:nth-child(even) > td {
  background-color: rgba(var(--bs-emphasis-color-rgb), .025);
}
.typography table tr:hover > td {
  background-color: rgba(var(--bs-gold-rgb), .07);
}

/* Allow long headings to wrap. */

.heading-row.heading-var-3>.heading-main>h2 {
  flex-wrap: wrap;
  white-space: normal;
}




/* =========================================================
   POST ITEM SPACING: shared gaps for column and row layouts.
   ========================================================= */
.post-item.item-var-1.item-element { gap: .5rem; }
.post-item.item-var-4.item-element { gap: 1rem; }
.post-item.item-var-1 .item-details,
.post-item.item-var-4 .item-details { gap: .25rem; }

/* Item media images have no shadow. */
.item-element .item-image { box-shadow: none; }


/* =========================================================
   ITEM HOVER: feedback for news items and cards.
   ========================================================= */

/* News card images zoom and darken on hover. */
.post-item .item-image img {
  transition: transform .4s ease-in-out, filter .4s ease-in-out;
}
.post-item:hover .item-image img {
  transform: scale(1.06);
  filter: brightness(.82);
}

/* Title turns brand color on hover, gold on dark surfaces. */
.post-item:hover .item-title > a,
.card-item:hover .item-title > a {
  color: rgb(var(--pro-brand-deep-rgb));
}
[data-bs-theme="dark"] .post-item:hover .item-title > a,
[data-bs-theme="dark"] .card-item:hover .item-title > a {
  color: var(--bs-gold);
}

/* Boxed cards lift slightly on hover. */
.post-item.item-var-2,
.card-item.item-var-2 {
  transition: transform .4s ease-in-out, box-shadow .4s ease-in-out;
}
.post-item.item-var-2:hover,
.card-item.item-var-2:hover {
  transform: translateY(-.25rem);
  box-shadow: var(--bs-box-shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .post-item .item-image img,
  .card-item .item-image img,
  .post-item.item-var-2,
  .card-item.item-var-2 {
    transition: none;
  }
  .post-item:hover .item-image img,
  .card-item:hover .item-image img,
  .post-item.item-var-2:hover,
  .card-item.item-var-2:hover {
    transform: none;
  }
}


/* =========================================================
   MONGOLIAN SCRIPT: brush calligraphy mask tinted with a color.
   ========================================================= */

.bichig-art {
  --bichig-color: rgb(var(--pro-brand-deep-rgb));
  position: relative;
  aspect-ratio: 192 / 2046;   /* Source image aspect ratio. */
}
/* Solid tinted calligraphy layer. */
.bichig-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bichig-color);
  -webkit-mask: url("/pro/mongol-bichig.png") center / contain no-repeat;
          mask: url("/pro/mongol-bichig.png") center / contain no-repeat;
}
/* =========================================================
   PAGE H1: heading var-3 styles repeated for h1.
   ========================================================= */
.heading-row.heading-var-3>.heading-main>h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  white-space: normal;
  text-transform: uppercase;
  font-weight: 600 !important;
  letter-spacing: .075rem;
  font-size: 1.5rem !important;
  color: var(--bs-primary);
}
.heading-row.heading-var-3>.heading-main>h1::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--bs-gold-rgb)) 0%, rgba(var(--bs-gold-rgb), 0) 100%);
}
[data-bs-theme="dark"] .heading-row.heading-var-3>.heading-main>h1 {
  color: var(--bs-body-color);
}
@media (min-width: 768px) {
  .heading-row.heading-var-3>.heading-main>h1 {
    gap: .75rem;
  }
}

/* =========================================================
   ACCESSIBILITY MODES: html.a11y-* classes.
   ========================================================= */

/* High contrast: muted text uses the main color, borders get stronger. */
html.a11y-contrast,
html.a11y-contrast [data-bs-theme] {
  --bs-body-color: var(--bs-emphasis-color);
  --bs-secondary-color: var(--bs-emphasis-color);
  --bs-tertiary-color: var(--bs-emphasis-color);
  --bs-border-color: rgba(var(--bs-emphasis-color-rgb), .55);
}

/* Grayscale filter on the root only, so fixed elements keep working. */
html.a11y-gray {
  filter: grayscale(1);
}

/* Inverted colors, with media inverted back to true color. */
html.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
  background-color: #fff;
}
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert iframe,
html.a11y-invert picture {
  filter: invert(1) hue-rotate(180deg);
}

/* Underline text links and highlight links in body copy. */
html.a11y-links a:not(.btn):not(.btn-circle):not(.item-media):not(.social-link):not(.topbar-social):not(.navbar-brand):not(.visually-hidden-focusable) {
  text-decoration: underline !important;
  text-decoration-thickness: .125em !important;
  text-underline-offset: .2em !important;
}
html.a11y-links .typography a {
  background-color: rgba(var(--bs-gold-rgb), .25);
}

/* Reduced motion: jump animations and transitions to their end state. */
html.a11y-still *,
html.a11y-still *::before,
html.a11y-still *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* ---------------------------------------------------------
   ZOOM LEVELS: break long words only when they overflow.
   --------------------------------------------------------- */
html.a11y-zoom-115 :is(h1, h2, h3, h4, h5, h6, .item-title, .item-title a, .dropdown-item, .footer-link),
html.a11y-zoom-130 :is(h1, h2, h3, h4, h5, h6, .item-title, .item-title a, .dropdown-item, .footer-link) {
  overflow-wrap: anywhere;
}
/* Tighter sidebar widget padding at 130% zoom on narrow columns. */
@media (min-width: 992px) {
  html.a11y-zoom-130 .col-sidebar .widget-category {
    padding: 1rem !important;
  }
}

/* =========================================================
   TRANSITIONS: unified .4s duration.
   ========================================================= */

.btn,
.nav-link,
.dropdown-item,
.page-link,
.form-control,
.form-select,
.form-check-input,
.accordion-button,
.btn-close,
.list-group-item {
  transition-duration: .4s;
  transition-timing-function: ease-in-out;
}

/* Header dropdowns fade and slide in at xl and up. */
@media (min-width: 1200px) {
  .header-v3 .dropdown-menu {
    transition: opacity .4s ease-in-out, transform .4s ease-in-out, visibility 0s linear .4s;
  }
  .header-v3 .nav-item.dropdown:hover > .dropdown-menu,
  .header-v3 .nav-item.dropdown.is-open > .dropdown-menu {
    transition-delay: 0s;
  }
}


/* Accessibility: tertiary text color meets WCAG AA contrast. */
:root, [data-bs-theme="light"] { --bs-tertiary-color: rgba(33, 37, 41, .7); }
[data-bs-theme="dark"] { --bs-tertiary-color: rgba(222, 226, 230, .7); }


/* Modal backdrop: darker with a background blur. */
.modal-backdrop {
  --bs-backdrop-opacity: .8;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}


/* Phones: one step smaller heading and card title sizes. */
@media (max-width: 767.98px) {
  .heading-row h2 {
    font-size: 1.25rem !important;
    letter-spacing: .05rem;
  }
  .items-text-sm .item-title {
    font-size: .9375rem;
    line-height: 1.35;
  }
  .items-text-sm .item-var-4 .item-title {
    font-size: .875rem;
  }
  .items-text-md .item-title {
    font-size: 1rem;
    line-height: 1.35;
  }
  .items-text-lg .item-title {
    font-size: 1.0625rem;
    line-height: 1.35;
  }
}


/* Greeting: prosecutor figure with a speech bubble, bottom-left corner. */
.greeting {
  z-index: 1020;
  gap: .25rem;
  padding: 0 0 0 .5rem;
  max-width: calc(100vw - 4.5rem);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
  pointer-events: none;
}
.greeting.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* Figure cropped with negative margins and mirrored into the corner. */
.greeting-figure {
  width: 22.25rem;
  height: 12.5rem;
  margin: 0 -7.5rem -.25rem -7.5rem;
}
.greeting-figure svg {
  transform: scaleX(-1);
}
.greeting-bubble {
  max-width: 16rem;
  margin-bottom: 5.5rem;
  padding: 1rem 1.375rem 1.125rem;
  border-radius: 2rem;
  background-color: #fff;
  color: rgb(var(--pro-brand-deep-rgb));
  font-family: var(--pro-font-head);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  /* Drop-shadow also shades the bubble puffs. */
  filter: drop-shadow(0 .5rem 1.25rem rgba(var(--pro-brand-deep-rgb), .18));
}
/* Top bumps of the cloud bubble. */
.greeting-bubble::before,
.greeting-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: inherit;
}
.greeting-bubble::before {
  top: -1.125rem;
  left: 1.5rem;
  width: 3.75rem;
  height: 3.75rem;
}
.greeting-bubble::after {
  top: -.75rem;
  left: 4.5rem;
  width: 2.75rem;
  height: 2.75rem;
}
/* Small thought puffs leading to the figure. */
.greeting-puff {
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
}
.greeting-puff-1 {
  left: -.625rem;
  bottom: .875rem;
  width: .875rem;
  height: .875rem;
}
.greeting-puff-2 {
  left: -1.375rem;
  bottom: .25rem;
  width: .5rem;
  height: .5rem;
}
@media (max-width: 767.98px) {
  .greeting-figure {
    width: 16.875rem;
    height: 9.5rem;
    margin: 0 -5.75rem -.2rem -5.75rem;
  }
  .greeting-bubble {
    max-width: 13.5rem;
    margin-bottom: 3.75rem;
    padding: .875rem 1.125rem 1rem;
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .greeting { transition: none; transform: none; }
}
html.a11y-still .greeting {
  transition: none;
  transform: none;
}
