/* Shared site header and footer. Keep page-specific redesigns out of this file. */
body .ts-site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #dce8f1;
  box-shadow: 0 8px 22px rgba(8, 55, 92, 0.04);
}

body .ts-contact-bar {
  position: relative;
  z-index: 2;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.2;
  color: #dcebf6;
  background: #064a83;
}

body .ts-contact-bar a {
  color: #fff !important;
  text-decoration: none;
}

body .ts-contact-bar a + a {
  margin-left: 14px;
}

body .ts-contact-bar-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body .ts-header-main {
  padding: 10px 0 8px;
  background: #fff;
}

body .ts-header-main-box {
  position: relative;
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 24px;
}

body .ts-header-logo {
  display: flex;
  flex: 0 0 330px;
  align-items: center;
  align-self: center;
  color: #064a83 !important;
  text-decoration: none !important;
}

body .ts-header-logo-img {
  flex: 0 0 auto;
  margin-right: 12px;
}

body .ts-header-logo-img img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}

body .ts-header-logo-text {
  display: block;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body .ts-header-logo-text h4 {
  margin: 0;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal;
}

body .ts-header-logo-text h4 * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

body .ts-header-logo-text p {
  margin: 5px 0 0;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #284f69;
  white-space: normal;
}

body .ts-header-logo-text p * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

body .ts-header-nav.header-top {
  position: static;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  box-shadow: none;
}

body .ts-header-nav .header-menu {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  gap: 6px;
}

body .ts-header-nav .header-menu > li {
  min-height: 0;
}

body .ts-header-nav .header-menu > li > a {
  height: auto;
  padding: 8px 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: #064a83 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body .ts-header-nav .header-menu > li > a:hover,
body .ts-header-nav .header-menu .current-menu-item > a {
  background: #eef6fb;
  border-radius: 6px;
}

body .ts-header-nav .header-menu > li > a:hover:after,
body .ts-header-nav .header-menu .current-menu-item > a:after {
  display: none;
}

body .ts-header-nav .header-submenu {
  background: #064a83;
}

body .ts-header-search {
  flex: 0 0 185px;
}

body .ts-header-search .header-search {
  position: relative;
  display: block;
  width: 100%;
  height: 42px;
}

body .ts-header-search .header-search input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border-radius: 8px;
  font-size: 15px;
  color: #233f54;
  background: #f5f9fc;
  cursor: text;
}

body .ts-header-search .header-search input::placeholder {
  color: #6b7f8d;
}

body .ts-header-search .header-search button {
  position: absolute;
  inset: 0;
  left: auto;
  width: 42px;
  height: 42px;
  color: #064a83;
  pointer-events: auto;
}

body .ts-header-main .header-menu-btn,
body .ts-header-nav .header-close-btn {
  display: none;
}

@media (max-width: 1399px) {
  body .ts-header-main-box { gap: 16px; }
  body .ts-header-logo { flex-basis: 300px; }
  body .ts-header-logo-text h4 { font-size: 14px; }
  body .ts-header-logo-text p { font-size: 12px; }
  body .ts-header-nav .header-menu { gap: 4px; }
  body .ts-header-nav .header-menu > li > a {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }
}

@media (max-width: 1279px) {
  body .ts-header-main-box { gap: 16px; }
  body .ts-header-logo { flex: 1 1 auto; }
  body .ts-header-nav.header-top {
    display: none;
    position: absolute;
    left: 15px;
    right: 15px;
    top: 100%;
    z-index: 30;
    padding: 16px;
    border-radius: 8px;
    background: #064a83;
    box-shadow: 0 16px 32px rgba(8, 55, 92, 0.18);
  }
  body .ts-header-nav.header-top.opened { display: block; }
  body .ts-header-nav .header-menu { display: block; }
  body .ts-header-nav .header-menu > li > a {
    justify-content: center;
    padding: 11px 8px;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff !important;
  }
  body .ts-header-nav .header-menu > li > a:hover,
  body .ts-header-nav .header-menu .current-menu-item > a {
    background: rgba(255, 255, 255, 0.12);
  }
  body .ts-header-main .header-menu-btn {
    display: flex !important;
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 24px;
    color: #064a83 !important;
    background: #eef6fb;
  }
  body .ts-header-nav .header-close-btn { display: block; }
}

@media (max-width: 1199px) {
  body .ts-header-main-box { gap: 14px; }
  body .ts-header-logo { flex-basis: 280px; }
  body .ts-header-search { flex-basis: 170px; }
  body .ts-header-search,
  body .ts-header-search .header-search,
  body .ts-header-search .header-search input,
  body .ts-header-search .header-search button { height: 42px; }
}

@media (max-width: 991px) {
  body .ts-header-main { padding: 8px 0; }
  body .ts-header-main-box { min-height: 70px; }
  body .ts-header-logo { flex: 1 1 auto; }
  body .ts-header-search { display: none; }
}

@media (max-width: 767px) {
  body .ts-contact-bar-box { display: block; }
  body .ts-contact-bar-box > span { display: block; }
  body .ts-contact-bar-box > span + span { margin-top: 3px; }
  body .ts-header-logo-text h4 { font-size: 13px; }
  body .ts-header-logo-text p {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
  }
}

/* Shared footer styling; content and column structure stay in footer.php. */
html { background-color: #064a83; }

body footer.ts-site-footer {
  padding: 0;
  background: #064a83;
  color: #fff;
}

body footer.ts-site-footer a {
  color: #fff !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

body .ts-site-footer .footer-box {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 2.7fr) minmax(220px, 1fr) minmax(160px, 0.75fr);
  gap: 16px;
  align-items: start;
  padding: 32px 0 24px;
}

body .ts-site-footer .footer-brand {
  display: flex;
  max-width: 300px;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}

body .ts-site-footer .footer-brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

body .ts-site-footer .footer-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body .ts-site-footer .footer-brand-copy {
  flex: 1 1 auto;
  max-width: 220px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
}

body .ts-site-footer .footer-brand-copy h4,
body .ts-site-footer .footer-brand-copy p {
  margin: 0 0 5px;
  color: #fff;
}

body .ts-site-footer .footer-brand-copy h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

body .ts-site-footer .footer-brand-copy p {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

body .ts-site-footer .footer-col { min-width: 0; padding: 0; }

body .ts-site-footer .footer-col-heading {
  margin: 0 0 10px;
  padding: 0 0 6px;
  border: 0;
  font-size: 15px;
  line-height: 1.25;
  text-transform: none;
}

body .ts-site-footer .footer-col-heading:after { display: none; }

body .ts-site-footer .footer-col-list {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

body .ts-site-footer .footer-col-list li { margin: 0 0 5px; }
body .ts-site-footer .footer-col-list a,
body .ts-site-footer .footer-col-list a:hover { text-decoration: none !important; }

body .ts-site-footer .footer-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

body .ts-site-footer .footer-nav-group { min-width: 0; }

body .ts-site-footer .footer-nav-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

body .ts-site-footer .footer-site-map {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .ts-site-footer .footer-site-map > li {
  display: block;
  min-width: 0;
  margin: 0 0 9px;
}

body .ts-site-footer .footer-site-map > li > a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

body .ts-site-footer .footer-site-map .sub-menu {
  display: block;
  margin-top: 5px;
  padding: 0;
  list-style: none;
}

body .ts-site-footer .footer-site-map .sub-menu li { margin: 0 0 4px; }

body .ts-site-footer .footer-site-map .sub-menu a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body .ts-site-footer .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

body .ts-site-footer .socials li { margin: 0; }

body .ts-site-footer .socials a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

body .ts-site-footer .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 20px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body .ts-site-footer .footer-col-text-c {
  margin: 0;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}

body .ts-site-footer .footer-bottom-copy { min-width: 0; }
body .ts-site-footer .footer-bottom-copy p { margin: 0 0 3px; }
body .ts-site-footer .footer-bottom-copy .footer-copyright { margin-top: 4px; }
body .ts-site-footer .footer-credit { margin: 0; text-align: right; white-space: nowrap; font-weight: 700; }

@media (max-width: 900px) {
  body .ts-site-footer .footer-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  body .ts-site-footer .footer-map { grid-column: 1 / -1; }
  body .ts-site-footer .footer-brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  body .ts-site-footer .footer-brand-copy h4 { font-size: 14px; }
  body .ts-site-footer .footer-brand {
    grid-column: 1 / -1;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  body .ts-site-footer .footer-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 24px 0 18px;
  }
  body .ts-site-footer .footer-brand { grid-column: 1 / -1; }
  body .ts-site-footer .footer-map { grid-column: 1 / -1; }
  body .ts-site-footer .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .ts-site-footer .footer-nav-group:first-child { grid-column: 1 / -1; }
  body .ts-site-footer .footer-nav-group:first-child .footer-site-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
  body .ts-site-footer .footer-bottom { grid-template-columns: minmax(0, 1fr); }
  body .ts-site-footer .footer-credit { text-align: left; white-space: normal; }
  body .ts-site-footer .footer-bottom { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  body .ts-site-footer .footer-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .ts-site-footer .footer-brand { grid-column: 1 / -1; }
  body .ts-site-footer .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .ts-site-footer .footer-nav-group:first-child .footer-site-map { gap: 0 10px; }
}

/* Shared internal-page sidebar. */
body .page-box { align-items: flex-start; }
body .page-box > .page-l {
  flex: 1 1 calc(100% - 340px);
  max-width: calc(100% - 340px);
  min-width: 0;
}
body .page-r.ts-sidebar-column {
  flex: 0 0 340px;
  width: 340px;
  padding: 0 0 0 24px;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  body .page-box:has(> .page-l > .bcrumbs) > .page-r.ts-sidebar-column {
    padding-top: 38px;
  }
}

body .ts-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body .ts-sidebar-contact {
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: #0b4f86;
}

body .ts-sidebar-contact h2,
body .ts-sidebar-links h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

body .ts-sidebar-contact h2 { color: #fff; }

body .ts-sidebar-contact p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

body .ts-sidebar-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

body .ts-sidebar-contact a + a { margin-top: 10px; }
body .ts-sidebar-contact a i { flex: 0 0 18px; padding-top: 3px; text-align: center; }

body .ts-sidebar-links h2 { margin: 0 0 10px; color: #064a83; }

body .ts-sidebar-links > a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d6e5f0;
  border-radius: 8px;
  color: #064a83 !important;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  transition: border-color 160ms ease, background-color 160ms ease;
}

body .ts-sidebar-links > a + a { margin-top: 8px; }
body .ts-sidebar-links > a:hover { border-color: #8db8d9; background: #f6fafd; }
body .ts-sidebar-arrow { flex: 0 0 auto; font-size: 20px; font-weight: 400; }

body .ts-sidebar-feed {
  padding-top: 4px;
  border-top: 1px solid #d6e5f0;
}

body .ts-sidebar-feed h2 {
  margin: 0 0 12px;
  color: #064a83;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

body .ts-sidebar-feed ul { margin: 0; padding: 0; list-style: none; }
body .ts-sidebar-feed li + li { margin-top: 9px; }

body .ts-sidebar-feed-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid #d6e5f0;
  border-radius: 8px;
  color: #064a83 !important;
  background: #fff;
  text-decoration: none !important;
}

body .ts-sidebar-feed-item:hover { border-color: #8db8d9; background: #f6fafd; }

body .ts-sidebar-feed-image {
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  color: #0b6ea8;
  background: #eaf3f9;
}

body .ts-sidebar-feed-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
body .ts-sidebar-feed-image i { font-size: 21px; }
body .ts-sidebar-feed-copy { display: block; min-width: 0; }

body .ts-sidebar-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-bottom: 4px;
  color: #6c879b;
  font-size: 12px;
  line-height: 1.3;
}

body .ts-sidebar-feed-title {
  display: -webkit-box;
  overflow: hidden;
  color: #064a83;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .ts-sidebar-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 4px;
  color: #6c879b;
  font-size: 14px;
  line-height: 1.45;
}

body .ts-sidebar-address i { flex: 0 0 16px; padding-top: 2px; color: #0b6ea8; text-align: center; }

@media (max-width: 1199px) {
  body .page-box > .page-l {
    flex-basis: 100%;
    max-width: 100%;
  }
  body .page-r.ts-sidebar-column {
    flex: 0 0 100%;
    width: 100%;
    padding: 28px 0 0;
  }
  body .ts-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  body .ts-sidebar-address { grid-column: 1 / -1; }
  body .vcs-box > .page-r.ts-sidebar-column {
    flex: 0 0 340px;
    width: 340px;
    padding: 0 0 0 24px;
  }
}

@media (max-width: 991px) {
  body .vcs-box > .page-r.ts-sidebar-column {
    flex: none;
    width: 100%;
    margin-top: 28px;
    padding: 0;
  }
}

@media (max-width: 600px) {
  body .ts-sidebar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body .page-r.ts-sidebar-column { padding-top: 22px; }
  body .ts-sidebar-contact { padding: 20px; }
  body .ts-sidebar-contact h2,
  body .ts-sidebar-links h2 { font-size: 19px; }
  body .ts-sidebar-links > a { min-height: 54px; font-size: 15px; }
  body .ts-sidebar-address { grid-column: auto; }
}

/* Shared visual foundations, based on the homepage reference design. */
:root {
  --ts-color-brand: #064a83;
  --ts-color-brand-hover: #0b5d96;
  --ts-color-accent: #0b6ea8;
  --ts-color-page: #f3f8fc;
  --ts-color-surface: #fff;
  --ts-color-surface-muted: #f5f9fc;
  --ts-color-text: #12324a;
  --ts-color-text-muted: #6c879b;
  --ts-color-border: #d6e5f0;
  --ts-color-border-strong: #8db8d9;
  --ts-focus-ring: rgba(11, 110, 168, 0.32);
}

body {
  background-color: var(--ts-color-page);
  color: var(--ts-color-text);
  font-family: "PT Sans", Arial, sans-serif;
}

body :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ts-color-brand);
  font-family: "PT Sans", Arial, sans-serif;
}

body a {
  color: var(--ts-color-brand);
}

body a:hover,
body a:focus-visible {
  color: var(--ts-color-brand-hover);
}

body :is(button, input, select, textarea) {
  font-family: inherit;
}

body :focus-visible {
  outline: 3px solid var(--ts-focus-ring);
  outline-offset: 2px;
}

/* Shared content typography and controls for internal pages. */
body .bcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  color: var(--ts-color-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

body .bcrumbs > li {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
}

body .bcrumbs > li > * {
  display: inline-block;
  min-width: 0;
  padding: 0;
}

body .bcrumbs > li:not(:last-child)::after {
  position: static;
  content: none;
}

body .bcrumbs > li + li::before {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 10px;
  content: "/";
  color: currentColor;
  opacity: 0.72;
}

body .bcrumbs > li.active > span {
  overflow-wrap: anywhere;
}

body .bcrumbs a {
  color: var(--ts-color-brand);
}

body .top-heading .bcrumbs,
body .top-heading .bcrumbs a {
  color: #fff;
}

body .page-title {
  color: #fff;
}

body :is(.entry-title, .npage-title) {
  color: var(--ts-color-brand);
}

body .npage {
  border-color: var(--ts-color-border);
  border-radius: 8px;
  color: var(--ts-color-text);
}

body .npage-info {
  color: var(--ts-color-text-muted);
}

body .npage-info a {
  color: var(--ts-color-brand) !important;
}

body .npage > p,
body .entry-content {
  color: var(--ts-color-text);
}

body .entry-content {
  line-height: 1.65;
}

body .npage > p a,
body .entry-content a {
  color: var(--ts-color-brand) !important;
}

body .npage > p a:after {
  border-top-color: var(--ts-color-brand);
}

body .npage blockquote {
  border-left-color: var(--ts-color-accent);
  color: var(--ts-color-text);
  background: var(--ts-color-surface-muted);
}

body .npage blockquote cite,
body .npage-bimg p {
  color: var(--ts-color-text-muted);
}

body .lwr-form {
  color: var(--ts-color-text);
}

body .lwr-form-tr input,
body .lwr-form-tr textarea {
  border: 1px solid var(--ts-color-border);
  border-radius: 6px;
  color: var(--ts-color-text);
  background: var(--ts-color-surface);
}

body .lwr-form-tr input::placeholder,
body .lwr-form-tr textarea::placeholder {
  color: var(--ts-color-text-muted);
}

body .lwr-form-tr :is(input, textarea):focus {
  border-color: var(--ts-color-border-strong);
}

/* Shared rule: section headings do not use the legacy square marker. */
body .page-title,
body .r-block-btitle,
body .r-block-title {
  padding-left: 0;
}

body .page-title::after,
body .r-block-btitle::before,
body .r-block-title::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 320px) {
  body {
    min-width: 0;
  }
}
