/* ==========================================================================================================
   INNER pages (practices, generic pages, Services landing, search, 404). OWNER: inner work area.
   The old theme CSS (app.css) styles .hero, .breadcrumbs, .social-links, .sidebar. What the old site got from the WPBakery plugin CSS
   (js_composer.min.css: grid rows/columns, separators, buttons) is NOT in app.css, so the few rules that are needed are rebuilt here,
   scoped under .alc-vc so they cannot touch other work areas.
   ========================================================================================================== */

/* ---- WPBakery grid emulation (scoped) ---- */
.alc-vc .vc_row { margin-left: -15px; margin-right: -15px; }
.alc-vc .vc_row::before, .alc-vc .vc_row::after { content: " "; display: table; }
.alc-vc .vc_row::after { clear: both; }
.alc-vc .vc_column_container { box-sizing: border-box; position: relative; min-height: 1px; width: 100%; padding-left: 0; padding-right: 0; }
.alc-vc .vc_column_container > .vc_column-inner { box-sizing: border-box; padding-left: 15px; padding-right: 15px; width: 100%; }
.alc-vc .vc_row-flex { display: flex; flex-wrap: wrap; }
.alc-vc .vc_row-flex > .vc_column_container { display: flex; }
.alc-vc .vc_row-flex > .vc_column_container > .vc_column-inner { flex-grow: 1; display: flex; flex-direction: column; }
.alc-vc .vc_row-o-content-top > .vc_column_container > .vc_column-inner { justify-content: flex-start; }
.alc-vc .wpb_content_element { margin-bottom: 35px; }
.alc-vc .wpb_text_column > .wpb_wrapper > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .alc-vc .vc_col-sm-3 { float: left; width: 25%; }
  .alc-vc .vc_col-sm-4 { float: left; width: 33.33333333%; }
  .alc-vc .vc_col-sm-6 { float: left; width: 50%; }
  .alc-vc .vc_col-sm-8 { float: left; width: 66.66666667%; }
  .alc-vc .vc_col-sm-9 { float: left; width: 75%; }
  .alc-vc .vc_col-sm-12 { float: left; width: 100%; }
  .alc-vc .vc_row-flex > .vc_col-sm-3, .alc-vc .vc_row-flex > .vc_col-sm-9 { float: none; }
}

/* ---- old social icons: app.css points to ../../assets/img/... which does not exist in the plugin; the files live in theme/img/social-icons ---- */
.social-links li.facebook a { background: url(../../theme/img/social-icons/facebook.png) no-repeat; }
.social-links li.twitter a { background: url(../../theme/img/social-icons/square-x-twitter-white.png) no-repeat; background-size: 14px auto; }
.social-links li.linkedin a { background: url(../../theme/img/social-icons/linkedin.png) no-repeat; }
.social-links li.email a { background: url(../../theme/img/social-icons/email.png) no-repeat; }
.social-links li.print a { background: url(../../theme/img/social-icons/print.png) no-repeat; }
.social-links.alc-share .alc-share__list { display: inline; margin: 0; padding: 0; list-style: none; }
.social-links.alc-share li { margin-bottom: 0; line-height: 1; }
.social-links.alc-share .share-label { margin: 0; vertical-align: top; color: #fff; line-height: 1.5rem; }
.hero { background-image: url(../../theme/img/placeholders/slider-inner.jpg); }

/* ---- hero + page frame ---- */
.alc-inner .hero h1 { margin-bottom: 0; }
.alc-inner .hero { overflow: visible; top: 0; } /* app.css shifts the hero down (top: 1.5rem / 4rem) to clear the old fixed header: here it would overlap the text */
.alc-inner .entry-content.row { padding: 2rem 20px 2rem; }
.alc-inner .entry-content.row::after { content: ""; display: table; clear: both; }
.alc-inner .hero + .entry-content.row { padding-top: 1.5rem; }

/* ---- left sidebar (SERVICES / SOLUTIONS): the old rules for .sidebar live in app.css, nothing but list resets here ---- */
.alc-inner .alc-side { margin-top: 0.6rem; margin-bottom: 1.5rem; }
.alc-inner .alc-side .sidebar-subtitle > a.alc-side__head { cursor: default; }
.alc-inner .alc-side ul { list-style: none; margin-left: 0; }
.alc-inner .alc-side .sub-menu { margin: 0; padding: 0; }
@media screen and (max-width: 39.9375em) {
  .alc-inner .alc-col-side { display: none !important; } /* like the old site: the left menu is not shown on phones */
}

/* ---- text column ---- */
.alc-inner .alc-text h2, .alc-inner .alc-text h3, .alc-inner .alc-text h4 { margin: 1.6rem 0 0.9rem; color: #243444; }
.alc-inner .alc-text > .wpb_wrapper > :first-child { margin-top: 0; }
.alc-inner .alc-text figure { margin: 0 0 1.5rem; }
.alc-inner .alc-text img { max-width: 100%; height: auto; }
.alc-inner .alc-text.alc-wide figure img { max-width: min(100%, 520px); }
.alc-inner .alc-text hr { border: 0; border-top: 1px solid #ebebeb; margin: 1.5rem 0; }
.alc-inner .alc-text a:not(.button) { color: #ab0e1e; }
.alc-inner .alc-text a.button { display: inline-block; border: 2px solid #ab0e1e; background: #ab0e1e; color: #fff; border-radius: 3px; padding: 0.8rem 1.6rem; font-size: 0.8125rem; line-height: 1.2; text-decoration: none; text-transform: uppercase; margin: 0; }
.alc-inner .alc-text a.button:hover { background: #fff; color: #ab0e1e; }
.alc-inner .alc-text p:has(> a.button:only-child) { text-align: center; margin: 1.5rem 0; }
.alc-inner .alc-text table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }

/* ---- right rail (covers, downloads, white papers) ---- */
.alc-inner .alc-rail { padding-top: 0.2rem; }
.alc-inner .alc-rail h2, .alc-inner .alc-rail h3, .alc-inner .alc-rail h4, .alc-inner .alc-rail h5 {
  font: 400 0.875rem/2.0625rem Roboto, Arial, sans-serif; text-align: center; margin: 0 0 1rem; letter-spacing: 0; text-transform: none; color: #243444; }
.alc-inner .alc-rail figure { margin: 0 0 1.5rem; text-align: center; }
.alc-inner .alc-rail img { max-width: 100%; height: auto; border: 1px solid #ebebeb; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.alc-inner .alc-rail a:not(.button) { color: #243444; }
.alc-inner .alc-rail p { text-align: center; margin-bottom: 1.2rem; }
.alc-inner .alc-rail hr { border: 0; border-top: 1px solid #ebebeb; margin: 1.5rem 0; }
.alc-inner .alc-rail ul { list-style: none; margin: 0 0 1.5rem; padding: 0; text-align: center; }
.alc-inner .alc-rail li { margin-bottom: 0.7rem; }
.alc-inner .alc-rail a.button, .alc-inner .alc-rail p > a:only-child:not(:has(img)) {
  display: inline-block; border: 2px solid #ab0e1e; background: #ab0e1e; color: #fff; border-radius: 3px; padding: 0.95rem 1.6rem; font-size: 1rem; line-height: 1.2; text-decoration: none; margin: 0 0 0.5rem; }
.alc-inner .alc-rail a.button:hover, .alc-inner .alc-rail p > a:only-child:not(:has(img)):hover { background: #fff; color: #ab0e1e; }
@media screen and (max-width: 767px) {
  .alc-inner .alc-rail { margin-top: 1.5rem; }
}

/* ---- Related news (old: WPBakery post grid, 4 per page, rounded dark pagination) ---- */
.alc-inner .alc-inrel { margin-top: 0; }
.alc-inner .alc-inrel__title { text-align: center; margin: 0 0 1.6rem; color: #0a0a0a; }
.alc-rn__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.alc-rn__item { min-width: 0; }
.alc-rn__img { display: block; aspect-ratio: 3 / 2; background: #f4f4f4; overflow: hidden; } /* light grey: transparent PNG thumbnails must not show a red frame, a still-loading lazy image is not a white hole */
.alc-rn__img--none { background: #8d0c18; }
.alc-rn__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.alc-rn__date { margin: 0.95rem 0 1rem; padding: 0 10px; font-size: 0.875rem; line-height: 1.4; color: #0a0a0a; }
.alc-rn__title { font: 400 1.3125rem/1.25 Roboto, Arial, sans-serif; margin: 0 0 1.1rem; padding: 0 10px; }
.main-content .alc-rn__title a { color: #ab0e1e; text-decoration: none; }
.main-content .alc-rn__title a:hover { color: #ab0e1e; text-decoration: underline; }
.main-content .alc-rn__more { display: inline-block; margin: 0 10px; border: 2px solid #243444; border-radius: 4px; padding: 0.6rem 1.1rem; min-height: 2.25rem; box-sizing: border-box; font-size: 0.6875rem; line-height: 1.1; color: #243444; text-decoration: none; background: transparent; }
.main-content .alc-rn__more:hover { background: #243444; color: #fff; }
.alc-rn__pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 2rem 0 0; padding: 0; }
.alc-rn__pager li { margin: 0; }
.alc-rn__pager button { width: 24px; height: 24px; padding: 0; border: 1px solid #b4b9bd; border-radius: 50%; background: #fff; color: #555; font: 400 0.625rem/1 Roboto, Arial, sans-serif; cursor: pointer; }
.alc-rn__pager button:hover { border-color: #243444; }
.alc-rn__pager button[aria-current="true"] { background: #fff; border-color: #243444; color: #000; }
.alc-rn__pager button[disabled] { opacity: 0.4; cursor: default; }
.alc-rn.is-js .alc-rn__item[hidden] { display: none; }
@media screen and (max-width: 63.9375em) { .alc-rn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 39.9375em) {
  .alc-rn__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .alc-rn__pager { gap: 3px; }
  .alc-rn__pager button { width: 34px; height: 34px; font-size: 0.8125rem; } /* 9 buttons (prev, 1-6, next, last) must fit one row at 390 px (350 px wide) */
  .main-content .alc-rn__more, .alc-cards .alc-cards__more { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Services landing (cards) ---- */
.alc-cards .page-intro { text-align: center; }
.alc-cards .alc-cards__lead { font: 400 1.3125rem/2.0625rem Roboto, Arial, sans-serif; color: #243444; text-align: center; margin: 0 auto 1.4rem; max-width: 52rem; }
.alc-cards .alc-cards__sep { border: 0; border-top: 1px solid #ebebeb; width: 80%; margin: 0 auto 2rem; }
.alc-cards .alc-cards__group { text-align: center; text-transform: uppercase; font: 400 2.25rem/2.625rem Roboto, Arial, sans-serif; color: #243444; margin: 1.2rem 0 1rem; }
.alc-cards .alc-cards__row { margin-bottom: 0.6rem; }
.alc-cards .alc-cards__img { display: block; width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #8d0c18; margin-bottom: 1rem; }
.alc-cards .alc-cards__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alc-cards .alc-cards__title { font: 400 1.6875rem/2.0625rem Roboto, Arial, sans-serif; text-transform: uppercase; color: #243444; margin: 0 0 0.6rem; }
.alc-cards .alc-cards__title a { color: inherit; text-decoration: none; }
.alc-cards .alc-cards__text { margin-bottom: 1.1rem; }
.alc-cards .alc-cards__more { display: inline-block; border: 2px solid #243444; border-radius: 4px; padding: 0.6rem 1.1rem; font-size: 0.6875rem; line-height: 1.1; min-height: 2.25rem; box-sizing: border-box; color: #243444; text-decoration: none; }
.alc-cards .alc-cards__more:hover { background: #243444; color: #fff; }
.alc-cards .alc-cards__item { margin-bottom: 1.4rem; }
@media screen and (min-width: 768px) and (max-width: 63.9375em) {
  .alc-cards .vc_col-sm-6.alc-cards__item { float: none; width: 100%; } /* one card per row on tablets: two columns of 200px photo + text are too narrow */
  .alc-cards .alc-cards__title { overflow-wrap: anywhere; }
}
@media screen and (max-width: 767px) {
  .alc-cards .alc-cards__img { max-width: 160px; margin-left: auto; margin-right: auto; }
  .alc-cards .alc-cards__title { font-size: 1.375rem; line-height: 1.7rem; text-align: center; }
  .alc-cards .alc-cards__text { text-align: center; }
  .alc-cards .alc-cards__more { display: block; text-align: center; margin: 0 auto 1rem; max-width: 12rem; }
  .alc-cards .alc-cards__group { font-size: 1.875rem; line-height: 2.2rem; }
}

/* ---- Search results ---- */
.alc-search .hero h1 span { color: #fff; }
.alc-search .news-items ul { list-style: none; margin: 0; padding: 0; }
.alc-search .news-items li.row { margin-bottom: 2.75rem; }
.alc-search .search-img img { width: 100%; height: auto; display: block; }
.alc-search .search-img .alc-search__noimg { display: block; aspect-ratio: 3 / 2; background: #8d0c18; }
.alc-search .search-cats { font-size: 0.75rem; line-height: 1.5; margin-top: 0.4rem; color: #243444; }
.alc-search .search-cats a, .alc-search .entry-meta a { color: #ab0e1e; text-decoration: none; }
.alc-search .search-cats span { display: block; }
.alc-search .entry-meta { font-size: 0.875rem; color: #243444; margin-bottom: 0.35rem; }
.alc-search .news-items h2 { font-size: 22px; line-height: 1.4; margin: 0 0 0.6rem; }
.alc-search .news-items h2 a { color: #ab0e1e; text-decoration: none; }
.alc-search .news-items h2 a:hover { text-decoration: underline; }
.alc-search .news-items .excerpt p { font-size: 1rem; line-height: 1.6875rem; }
.alc-search .button.cta.red { background: #ab0e1e; color: #fff; border-radius: 3px; padding: 0.75rem 1.1rem; font-size: 0.75rem; line-height: 1; margin: 0.3rem 0 0; min-height: 2.5rem; box-sizing: border-box; }
.alc-search .button.cta.red:hover { background: #8d0c18; }
.alc-search .alc-search__nav { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 2rem; font-size: 0.9375rem; }
.alc-search .alc-search__nav a { color: #ab0e1e; text-decoration: none; }
.alc-search .alc-search__none { padding: 2rem 0 3rem; }
.alc-search .entry-content.row { padding-top: 2.5rem; padding-bottom: 1.5rem; }
@media screen and (max-width: 39.9375em) {
  .alc-search .search-img { max-width: 22rem; }
  .alc-search .news-items li.row { margin-bottom: 2.2rem; }
}

/* ---- 404 ---- */
.alc-404 .error-404 { padding: 3rem 0.9375rem 3rem; max-width: 75rem; margin: 0 auto; }
.alc-404 .page-title { font: 400 3rem/3.375rem Roboto, Arial, sans-serif; color: #243444; margin: 0 0 1.5rem; }
.alc-404 .search-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 1.5rem 0 2.5rem; }
.alc-404 .search-form label { flex: 1; margin: 0; }
.alc-404 .search-field { width: 100%; height: 2.75rem; margin: 0; padding: 0 0.75rem; border: 1px solid #cacaca; border-radius: 0; box-sizing: border-box; font-size: 1rem; }
.alc-404 .search-submit { height: 2.75rem; margin: 0; padding: 0 1.25rem; border: 0; background: #ab0e1e; color: #fff; cursor: pointer; font-size: 0.875rem; }
.alc-404 .search-submit:hover { background: #8d0c18; }
.alc-404 .widget { margin-bottom: 2.25rem; }
.alc-404 .widget h2 { font: 400 1.6875rem/2.0625rem Roboto, Arial, sans-serif; color: #243444; margin: 0 0 0.8rem; }
.alc-404 .widget ul { margin: 0 0 0 1.25rem; }
.alc-404 .widget li { margin-bottom: 0.6rem; }
.alc-404 .widget a { color: #ab0e1e; }
.alc-404 .widget select { max-width: 22rem; }
@media screen and (max-width: 39.9375em) {
  .alc-404 .page-title { font-size: 2.25rem; line-height: 2.6rem; }
  .alc-404 .search-form { flex-direction: column; }
}

/* ---- print ---- */
@media print {
  .alc-inner .alc-col-side, .alc-inner .alc-inrel, .alc-inner .social-links { display: none !important; }
}

/* ---- shared small things ---- */
.alc-inner .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.alc-search .search-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 1.5rem 0 0; }
.alc-search .search-form label { flex: 1; margin: 0; }
.alc-search .search-field { width: 100%; height: 2.75rem; margin: 0; padding: 0 0.75rem; border: 1px solid #cacaca; border-radius: 0; box-sizing: border-box; font-size: 1rem; }
.alc-search .search-submit { height: 2.75rem; margin: 0; padding: 0 1.25rem; border: 0; background: #ab0e1e; color: #fff; cursor: pointer; font-size: 0.875rem; }

/* keyboard focus */
.alc-inner a:focus-visible, .alc-inner button:focus-visible, .alc-inner select:focus-visible, .alc-inner input:focus-visible { outline: 2px solid #243444; outline-offset: 2px; }

/* share icons are 16 px glyphs: give them a 24 px hit area (WCAG 2.5.8) without changing the look */
.social-links.alc-share li a { position: relative; }
.social-links.alc-share li a::after { content: ""; position: absolute; inset: -4px; }

/* search results on phones: like the old page the text column is flush with the picture (no extra column padding) and the category/tag lines are small */
.alc-search .search-cats .cat-links, .alc-search .search-cats .tags-links { font-size: 0.75rem; line-height: 1.5; }
@media screen and (max-width: 39.9375em) {
  .alc-search .news-items li.row > .column { padding-left: 0; padding-right: 0; }
}
