/* WebStacks PRO V14.8 — consolidated CSNAVS presentation stylesheet.
   Source order preserved exactly from V14.7.1. Dynamic options remain inline.
   Original V12 CSS and WordPress/bootstrap styles remain independent. */

/* -------- ws-v14-refined.css -------- */
body.ws-v14 {
  color: var(--ws-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.ws-v14.io-black-mode {
}
body.ws-v14,
body.ws-v14 input,
body.ws-v14 button,
body.ws-v14 select,
body.ws-v14 textarea,
body.ws-v14 h1,
body.ws-v14 h2,
body.ws-v14 h3,
body.ws-v14 h4,
body.ws-v14 h5,
body.ws-v14 h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body.ws-v14 p { color: var(--ws-ink); word-break: normal; overflow-wrap: anywhere; }
body.ws-v14 a:not(.btn) { color: inherit; }
body.ws-v14 a:not(.btn):hover { color: var(--ws-accent); }
body.ws-v14 .text-muted,
body.ws-v14 .text-gray { color: var(--ws-muted) !important; }
body.ws-v14 a:focus-visible,
body.ws-v14 button:focus-visible,
body.ws-v14 input:focus-visible,
body.ws-v14 textarea:focus-visible,
body.ws-v14 select:focus-visible,
body.ws-v14 [tabindex]:focus-visible {
  outline: 2px solid var(--ws-accent) !important;
  outline-offset: 3px;
}
body.ws-v14 .main-content { min-width: 0; }
body.ws-v14 .main-content > #content,
body.ws-v14 .main-content > .content-site,
body.ws-v14 .content-site.customize-site { padding-top: 18px; }

/* V14.5: default WebStacks PRO navigation styles are supplied by css/style.css.
 * Do not restyle the sidebar, top navigation or menu typography here.
 * Other sections still use the V14 surface tokens. */
body.ws-v14 .border-color { border-color: var(--ws-line) !important; }

/* Home introduction: editorial text, no billboard, invented numbers or art. */
body.ws-v14 .ws-v14-intro {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}
body.ws-v14 .ws-v14-intro__label {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
  text-transform: uppercase;
}
body.ws-v14 .ws-v14-intro h1 {
  color: var(--ws-ink);
  margin: 0 0 15px;
}
body.ws-v14 .ws-v14-intro__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
body.ws-v14 .ws-v14-intro__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--ws-line-strong);
}
body.ws-v14 .ws-v14-intro__link:hover { color: var(--ws-accent) !important; border-color: var(--ws-accent); }
body.ws-v14 .ws-v14-intro__link svg { width: 17px; height: 17px; transition: transform .23s ease; }
body.ws-v14 .ws-v14-intro__link:hover svg { transform: translate(3px,-2px); }

/* Hero/search layouts use the same neutral canvas, including image/canvas configurations. */
body.ws-v14 .header-big,
body.ws-v14 .header-big.css-img,
body.ws-v14 .header-big.css-bing,
body.ws-v14 .header-big.css-color,
body.ws-v14 .header-big.canvas-fx {
  margin-top: 0;
  padding: 10px 30px 19px;
  background-color: transparent !important;
  background-image: none !important;
  animation: none;
  min-height: 0;
}
body.ws-v14 .header-big.bg-gradual::before,
body.ws-v14 .header-big .canvas-bg { display: none !important; }
body.ws-v14 .header-big .s-search,
body.ws-v14 .header-big #bulletin_box,
body.ws-v14 .header-big .no-search { margin: 0; }
body.ws-v14 .header-big:not(.no-bg) #bulletin_box a,
body.ws-v14 .header-big:not(.no-bg) .text-muted { color: var(--ws-muted) !important; }
body.ws-v14 .content-site.customize-site.big { margin-top: 0; }
body.ws-v14 .content-site.customize-site.big .p-title { background: transparent; }
body.ws-v14 .ws-dual-search.s-search {
  width: 100%;
  max-width: 760px;
  margin: 12px 0 24px;
  font-family: inherit;
}
body.ws-v14 .header-big .ws-dual-search.s-search { margin: 3px 0 12px; }
body.ws-v14 .ws-dual-search .ws-search-modes {
  display: flex;
  justify-content: flex-start;
  padding: 0;
  margin: 0 0 13px;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.ws-v14 .ws-dual-search .ws-search-tab,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab {
  min-height: 35px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 580;
}
body.ws-v14 .ws-dual-search .ws-search-tab:hover,
body.ws-v14 .ws-dual-search .ws-search-tab.is-active,
body.ws-v14 .ws-dual-search .ws-search-tab.is-active:hover,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab.is-active {
  color: var(--ws-ink);
  background: var(--ws-surface);
  border-color: var(--ws-line);
  box-shadow: none;
}
body.ws-v14 .ws-dual-search .ws-google-g {
  background: none;
  color: var(--ws-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 16px;
  font-weight: 650;
}
body.ws-v14 .ws-dual-search .ws-search-form,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 61px;
  padding: 7px 8px 7px 20px;
  gap: 13px;
  border: 1px solid var(--ws-line-strong);
  border-radius: 12px;
  transition: border-color .22s ease, box-shadow .24s ease;
}
body.ws-v14 .ws-dual-search .ws-search-form::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--ws-pointer-x,50%) var(--ws-pointer-y,50%), var(--ws-spotlight), transparent 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 0;
}
body.ws-v14 .ws-dual-search .ws-search-form > * { position: relative; z-index: 1; }
body.ws-v14 .ws-dual-search .ws-search-form.ws-v14-pointer-active::before,
body.ws-v14 .ws-dual-search .ws-search-form:focus-within::before { opacity: 1; }
body.ws-v14 .ws-dual-search .ws-search-form:hover,
body.ws-v14 .ws-dual-search .ws-search-form:focus-within {
  border-color: var(--ws-accent);
  box-shadow: var(--ws-shadow-hover);
}
body.ws-v14 .ws-dual-search .ws-search-leading { color: var(--ws-muted); }
body.ws-v14 .ws-dual-search .ws-search-input,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-input {
  color: var(--ws-ink) !important;
  font-size: 15px;
  background: transparent !important;
}
body.ws-v14 .ws-dual-search .ws-search-input::placeholder { color: var(--ws-muted); opacity: .8; }
body.ws-v14 .ws-dual-search .ws-search-submit,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit {
  height: 45px;
  min-width: 113px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
body.ws-v14 .ws-dual-search .ws-search-submit:hover,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit:hover { color: #fff; background: #39596d; }
body.ws-v14 .search-modal .modal-content,
body.ws-v14 .modal-content { background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: 14px; }
body.ws-v14 .search-modal .ws-dual-search.s-search { max-width: none; }

/* Directory groups, cards, and feature modules all share one surface language. */
body.ws-v14 .card,
body.ws-v14 .block,
body.ws-v14.io-black-mode .card,
body.ws-v14.io-black-mode .block {
  color: var(--ws-ink);
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 11px;
  box-shadow: none;
}
body.ws-v14 .card-header,
body.ws-v14 .modal-header { border-bottom-color: var(--ws-line); }
body.ws-v14 .p-title,
body.ws-v14 .p-title.card { border-color: transparent; box-shadow: none; background: transparent; }
body.ws-v14 .p-title .card-body { padding: 10px 1px; }
body.ws-v14 :is(h4,h1).text-gray,
body.ws-v14 .p-title h1,
body.ws-v14 .p-title h4,
body.ws-v14 .site-name,
body.ws-v14 .entry-title {
  font-weight: 660;
  letter-spacing: -.025em;
  color: var(--ws-ink) !important;
}
body.ws-v14 :is(h4,h1).text-gray { font-size: 17px; margin-top: 21px; }
body.ws-v14 :is(h4,h1).text-gray > i.site-tag { color: var(--ws-muted); opacity: .75; }
body.ws-v14 .slider_menu[sliderTab] > .menu {
  background: var(--ws-surface-soft);
  border: 1px solid var(--ws-line);
  border-radius: 9px;
  padding: 3px;
}
body.ws-v14 .slider_menu[sliderTab] .anchor { background: var(--ws-accent); border-radius: 7px; }
body.ws-v14 .slider_menu[sliderTab] > .menu > li > a { color: var(--ws-muted); font-size: 13px; }
body.ws-v14 .slider_menu[sliderTab] > .menu > li > a:hover,
body.ws-v14 .slider_menu[sliderTab] > .menu > li > a.active { color: var(--ws-ink); }
body.ws-v14 .url-card .url-body,
body.ws-v14 .url-card .url-body:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  transition: none;
}
body.ws-v14 .url-card .url-body > a.card,
body.ws-v14 .url-card > .wspro-site-card.max,
body.ws-v14 .sidebar .url-card > .wspro-site-card.max {
  position: relative;
  border: 1px solid var(--ws-line);
  border-radius: 11px;
  background: var(--ws-surface);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
body.ws-v14 .url-card .url-body > a.card:hover,
body.ws-v14 .url-card > .wspro-site-card.max:hover,
body.ws-v14 .sidebar .url-card > .wspro-site-card.max:hover {
  border-color: var(--ws-line-strong);
  box-shadow: var(--ws-shadow-hover);
}
body.ws-v14 .url-card .url-body > a.card { overflow: hidden; }
body.ws-v14 .url-card .wspro-site-card.max > a.card {
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.ws-v14 .url-card .wspro-site-card.max > a.card:hover { border: 0; box-shadow: none; }
body.ws-v14 .url-card .url-img.rounded-circle {
  border: 1px solid var(--ws-line);
}
body.ws-v14 .url-card .url-img img {
  transition: transform .27s cubic-bezier(.2,.75,.3,1);
  will-change: auto;
}
body.ws-v14 .url-card .url-body > a.card .card-body { padding: 15px; }
body.ws-v14 .url-card .url-info strong { font-size: 13.5px; font-weight: 670; letter-spacing: -.01em; }
body.ws-v14 .url-card .wspro-site-card .wspro-site-description,
body.ws-v14.io-black-mode .url-card .wspro-site-card .wspro-site-description {
  color: var(--ws-muted) !important;
  font-size: 12.5px !important;
  font-weight: 450;
  line-height: 1.62;
  letter-spacing: 0;
}
body.ws-v14 .url-card .wspro-site-card.max .wspro-site-card-footer {
  border-top-color: var(--ws-line);
}
body.ws-v14 .url-card .wspro-site-card.max .wspro-site-card-footer a.togo {
  color: var(--ws-muted);
  background: var(--ws-surface-soft);
}
body.ws-v14 .url-card .wspro-site-card.max .tga a,
body.ws-v14 .card-app.card .tga a {
  color: var(--ws-muted);
  background: var(--ws-surface-soft);
  border-radius: 5px;
}
body.ws-v14 .url-card .wspro-site-card.max .tga a:hover,
body.ws-v14 .card-app.card .tga a:hover { color: var(--ws-ink); background: var(--ws-accent-soft); }
body.ws-v14 .card-app.default .media,
body.ws-v14 .card-app.card,
body.ws-v14 .card-book .media,
body.ws-v14 .card-post .media {
  position: relative;
  border: 1px solid var(--ws-line);
  border-radius: 11px;
  background: var(--ws-surface);
  box-shadow: none;
  transform: none;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
body.ws-v14 .card-app.default:hover .media,
body.ws-v14 .card-app.card:hover,
body.ws-v14 .card-book:hover .media,
body.ws-v14 .card-post:hover .media {
  transform: translateY(-2px);
  border-color: var(--ws-line-strong);
  box-shadow: var(--ws-shadow-hover);
}
body.ws-v14 .card-app .media-content,
body.ws-v14 .card-book .media-content,
body.ws-v14 .card-post .media-content { transition: transform .25s ease; }
body.ws-v14 .card-app:hover .media-content,
body.ws-v14 .card-book:hover .media-content,
body.ws-v14 .card-post:hover .media-content { transform: scale(1.02); }
body.ws-v14 .sidebar .card .card-header::after { background: var(--ws-accent); height: 1px; }

/* Consistent controls and editorial detail templates. */
body.ws-v14 .btn-light,
body.ws-v14 .btn-dark,
body.ws-v14 .btn-search.current,
body.ws-v14 .site-go .btn-arrow,
body.ws-v14 .btn-arrow {
  border-radius: 8px;
  background: #283b49;
  border-color: #283b49;
  color: #fff !important;
  box-shadow: none;
}
body.ws-v14 .btn-light:hover,
body.ws-v14 .btn-dark:hover,
body.ws-v14 .site-go .btn-arrow:hover,
body.ws-v14 .btn-arrow:hover {
  color: #fff !important;
  background: #39596d;
  border-color: #39596d;
  box-shadow: none;
}
body.ws-v14 .btn-search,
body.ws-v14 .btn-cat {
  border-radius: 7px;
  background: var(--ws-surface-soft);
  color: var(--ws-muted);
  box-shadow: none;
}
body.ws-v14 .btn-search.current::after { display: none; }
body.ws-v14 .btn-search:hover { background: var(--ws-accent-soft); color: var(--ws-ink); box-shadow: none; }
body.ws-v14 .form-control,
body.ws-v14.io-black-mode .form-control,
body.ws-v14 textarea,
body.ws-v14.io-black-mode textarea,
body.ws-v14 .sidebar .card .searchform input[type='text'] {
  color: var(--ws-ink);
  background: var(--ws-surface);
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease;
}
body.ws-v14 .form-control:focus,
body.ws-v14 textarea:focus,
body.ws-v14 .sidebar .card .searchform input[type='text']:focus { border-color: var(--ws-accent); box-shadow: none; }
body.ws-v14 .input-group-text { color: var(--ws-muted); background: var(--ws-surface-soft); border-color: var(--ws-line); }
body.ws-v14 .site-content,
body.ws-v14 .panel-body,
body.ws-v14 .site-body { color: var(--ws-ink); }
body.ws-v14 .site-content > .card-body { background: transparent; }
body.ws-v14 .siteico { background: var(--ws-surface); border-radius: 14px; }
body.ws-v14 .siteico .blur { opacity: .06; animation: none !important; }
body.ws-v14 .site-name { font-size: clamp(24px,2.4vw,33px); line-height: 1.2; }
body.ws-v14 .site-content .panel-body p { line-height: 1.8; }
body.ws-v14 .site-body .btn-cat { border: 1px solid var(--ws-line); }
body.ws-v14 .posts-nav .page-numbers,
body.ws-v14 #comments-navi > span,
body.ws-v14 #comments-navi > a,
body.ws-v14 .page-nav span:not(.current) {
  background: var(--ws-surface);
  color: var(--ws-muted);
  border: 1px solid var(--ws-line);
  border-radius: 7px;
}
body.ws-v14 .posts-nav .page-numbers.current,
body.ws-v14 .posts-nav .page-numbers:not(.dots):hover,
body.ws-v14 #comments-navi > a:hover,
body.ws-v14 #comments-navi > .current,
body.ws-v14 .page-nav > a:hover span,
body.ws-v14 .page-nav > .current span {
  color: #fff !important;
  background: #283b49;
  border-color: #283b49;
  box-shadow: none;
}
body.ws-v14 .nothing { color: var(--ws-muted); background: var(--ws-surface-soft); border: 1px solid var(--ws-line); border-radius: 9px; }
body.ws-v14 footer.main-footer { margin-top: 24px; padding: 23px 30px; border-top: 1px solid var(--ws-line); color: var(--ws-muted); }
body.ws-v14 footer.main-footer a { color: var(--ws-muted); }
body.ws-v14 #footer-tools .btn,
body.ws-v14.io-black-mode #footer-tools .btn {
  background: var(--ws-surface);
  color: var(--ws-muted);
  border: 1px solid var(--ws-line);
  box-shadow: var(--ws-shadow);
  border-radius: 9px !important;
  transition: color .2s, border-color .2s, transform .2s, background-color .2s;
}
body.ws-v14 #footer-tools .btn:hover { color: var(--ws-ink); border-color: var(--ws-line-strong); }

/* Mouse tracking: subtle depth and a localized light response, not neon glow. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card,
  body.ws-v14.ws-v14-pointer-enabled .card-app.default .media,
  body.ws-v14.ws-v14-pointer-enabled .card-book .media,
  body.ws-v14.ws-v14-pointer-enabled .card-post .media {
    --ws-tilt-x: 0deg;
    --ws-tilt-y: 0deg;
    --ws-pointer-x: 50%;
    --ws-pointer-y: 50%;
    transform: perspective(1250px) rotateX(var(--ws-tilt-x)) rotateY(var(--ws-tilt-y));
    will-change: auto;
    transition: transform .24s ease-out, border-color .23s, box-shadow .27s;
  }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card::before,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(215px circle at var(--ws-pointer-x) var(--ws-pointer-y), var(--ws-spotlight), transparent 78%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 0;
  }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card > .card-body,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card > .card-body { position: relative; z-index: 1; }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card.ws-v14-pointer-active::before,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card.ws-v14-pointer-active::before { opacity: 1; }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card.ws-v14-pointer-active,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card.ws-v14-pointer-active,
  body.ws-v14.ws-v14-pointer-enabled .card-app.default .media.ws-v14-pointer-active,
  body.ws-v14.ws-v14-pointer-enabled .card-book .media.ws-v14-pointer-active,
  body.ws-v14.ws-v14-pointer-enabled .card-post .media.ws-v14-pointer-active {
    transform: perspective(1250px) translateY(-2px) rotateX(var(--ws-tilt-x)) rotateY(var(--ws-tilt-y));
  }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body a.card.ws-v14-pointer-active .url-img img {
    transform: translate3d(var(--ws-icon-x, 0px), var(--ws-icon-y, 0px), 0) scale(1.035);
  }
  body.ws-v14.ws-v14-pointer-enabled .ws-v14-magnetic {
    transform: translate3d(var(--ws-magnet-x,0px),var(--ws-magnet-y,0px),0);
    transition: transform .18s ease-out, background-color .2s, color .2s;
  }
  body.ws-v14.ws-v14-pointer-enabled .ws-v14-magnetic:active { transform: translateY(1px) scale(.99); }
}
@media (max-width: 767.98px) {
  body.ws-v14 .ws-v14-intro { padding: 31px 15px 18px; align-items: start; flex-direction: column; gap: 15px; }
  body.ws-v14 .ws-v14-intro h1 { font-size: clamp(27px,7vw,36px); }
  body.ws-v14 .ws-v14-intro__link { padding: 6px 0; }
  body.ws-v14 .header-big { padding: 9px 15px 13px; }
  body.ws-v14 .ws-dual-search.s-search { margin-top: 12px; }
  body.ws-v14 .ws-dual-search .ws-search-form { min-height: 54px; padding: 5px 5px 5px 12px; }
  body.ws-v14 .ws-dual-search .ws-search-submit { height: 42px; }
  body.ws-v14 footer.main-footer { padding: 20px 15px; }
  body.ws-v14 .sidebar-nav { border-right: 0; }
}
@media (max-width: 420px) {
  body.ws-v14 .ws-dual-search .ws-search-submit { min-width: 44px; width: 44px; padding: 0; }
  body.ws-v14 .ws-v14-intro__description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  body.ws-v14 .url-card .url-body,
  body.ws-v14 .url-card .url-body > a.card,
  body.ws-v14 .card-app .media,
  body.ws-v14 .card-book .media,
  body.ws-v14 .card-post .media,
  body.ws-v14 .ws-search-form,
  body.ws-v14 .sidebar-menu-inner a { animation: none !important; transform: none !important; }
  body.ws-v14 .ws-v14-intro__link svg { transition: none; }
}

/* V14.1: stable English search feedback, independent of the visitor's browser locale. */
body.ws-v14 .ws-dual-search .ws-search-feedback {
  margin: 8px 2px 0;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #a34848;
  text-align: left;
}
body.ws-v14 .ws-dual-search .ws-search-feedback[hidden] { display: none !important; }
body.ws-v14.io-black-mode .ws-dual-search .ws-search-feedback { color: #f1aeae; }


/* V14.2 - Front-end polish from real production screenshot. */
body.ws-v14 {
  --ws-layout-width: 1200px;
  --ws-layout-gutter: 30px;
}
/* Align intro, hero/search and actual content to one centered column. */
body.ws-v14 .ws-v14-intro,
body.ws-v14 .content-site.customize-site,
body.ws-v14 .header-big {
  width: 100%;
  max-width: var(--ws-layout-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ws-layout-gutter);
  padding-right: var(--ws-layout-gutter);
}
body.ws-v14 .ws-v14-intro { padding-top: 38px; padding-bottom: 10px; gap: 24px; }
body.ws-v14 .ws-v14-intro h1 { font-size: clamp(28px, 3vw, 39px); }
body.ws-v14 .ws-v14-intro__description { max-width: 620px; }
body.ws-v14 .header-big,
body.ws-v14 .header-big.css-img,
body.ws-v14 .header-big.css-bing,
body.ws-v14 .header-big.css-color,
body.ws-v14 .header-big.canvas-fx { padding-top: 10px; padding-bottom: 12px; }
body.ws-v14 .header-big .ws-dual-search.s-search,
body.ws-v14 .ws-dual-search.s-search { max-width: 760px; margin-left: 0; margin-right: auto; }
body.ws-v14 .content-site.customize-site { padding-top: 24px; }
body.ws-v14 .content-site.customize-site > .row { margin-top: 0; }
/* Search: keep keyboard focus on the unified outer control, not a black rectangle on input. */
body.ws-v14 .ws-dual-search .ws-search-input:focus-visible,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
body.ws-v14 .ws-dual-search .ws-search-form:focus-within {
}
body.ws-v14 .ws-dual-search .ws-search-form { border-radius: 10px; min-height: 57px; }
body.ws-v14 .ws-dual-search .ws-search-submit { height: 41px; }
/* Render branded text ONLY when theme defaults are selected. User logos always win. */
body.ws-v14 .sidebar-logo .ws-v142-wordmark,
body.ws-v14 .navbar-brand .ws-v142-wordmark {
  color: var(--ws-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  transition: color .18s ease, letter-spacing .18s ease;
}
body.ws-v14 .sidebar-logo a:hover .ws-v142-wordmark,
body.ws-v14 .navbar-brand:hover .ws-v142-wordmark {
  color: var(--ws-accent);
  letter-spacing: -.04em;
}
body.ws-v14 .sidebar-logo .ws-v142-wordmark--compact { font-size: 14px; letter-spacing: -.04em; }
body.ws-v14 footer.main-footer { margin-top: 40px; }
body.ws-v14 footer.main-footer .ws-v142-footer-note,
body.ws-v14 footer.main-footer .ws-v142-footer-credit { margin-left: 16px; }
body.ws-v14 footer.main-footer .ws-v142-footer-credit { opacity: .8; }
/* Functional directory cards keep compact grids instead of stretching a lone entry. */
body.ws-v14 .content-site.customize-site .url-card { min-width: 0; }
@media (max-width: 767.98px) {
  body.ws-v14 { --ws-layout-gutter: 16px; }
  body.ws-v14 .ws-v14-intro { padding-top: 28px; padding-bottom: 4px; }
  body.ws-v14 .ws-v14-intro__link { margin-top: 0; }
  body.ws-v14 .header-big { padding-top: 9px; }
  body.ws-v14 footer.main-footer .ws-v142-footer-note,
  body.ws-v14 footer.main-footer .ws-v142-footer-credit { display: inline-block; margin-left: 0; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ws-v14 .ws-v142-wordmark { transition: none !important; }
}

/* -------- ws-v14-3-balance.css -------- */
/* Neutral product surfaces with a distinct blue action color and a small warm accent. */
body.ws-v14 {
}
body.ws-v14.io-black-mode {
}

/* V14.5: main and sidebar menu presentation uses original WebStacks PRO CSS.
 * Do not apply V14 color/hover/grouping overrides to menus. */

/* Calm editorial hero instead of an empty grey expanse or decorative gaming art. */
body.ws-v14 .ws-v14-intro {
  align-items: center;
  gap: 30px;
  margin-top: 26px;
  margin-bottom: 17px;
  padding: 37px 35px 36px;
  border: 1px solid #d6e4f4;
  border-radius: 18px;
}
body.ws-v14.io-black-mode .ws-v14-intro {
  border-color: var(--ws-line);
}
body.ws-v14 .ws-v14-intro__label {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .105em;
  margin-bottom: 11px;
}
body.ws-v14 .ws-v14-intro__label::before {
  content: '';
  width: 19px;
  height: 3px;
  border-radius: 2px;
  background: var(--ws-warm);
  flex: 0 0 auto;
}
body.ws-v14 .ws-v14-intro h1 {
  font-weight: 740;
  letter-spacing: -.045em;
  margin-bottom: 12px;
}
body.ws-v14 .ws-v14-intro__description { color: var(--ws-muted); }
body.ws-v14 .ws-v14-intro__link {
  border: 1px solid var(--ws-line-strong);
  border-radius: 10px;
  padding: 10px 15px;
  color: var(--ws-accent) !important;
  background: var(--ws-surface);
  box-shadow: 0 2px 8px rgba(30, 64, 110, .04);
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.ws-v14 .ws-v14-intro__link:hover {
  border-color: var(--ws-accent);
  background: var(--ws-accent-soft);
  box-shadow: var(--ws-shadow);
  transform: translateY(-2px);
}
body.ws-v14 .ws-v14-intro__link:focus-visible { outline-offset: 4px; }

/* Search inherits the same material and uses a clearly identifiable primary button. */
body.ws-v14 .header-big,
body.ws-v14 .header-big.css-color,
body.ws-v14 .header-big.css-img,
body.ws-v14 .header-big.css-bing,
body.ws-v14 .header-big.canvas-fx { padding-top: 8px; padding-bottom: 4px; }
body.ws-v14 .ws-dual-search .ws-search-tab.is-active,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab.is-active {
  color: var(--ws-accent);
  background: var(--ws-accent-soft);
  border-color: #cfe0f9;
}
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab.is-active { border-color: var(--ws-line-strong); }
body.ws-v14 .ws-dual-search .ws-search-form,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-form {
}
body.ws-v14 .ws-dual-search .ws-search-form:focus-within {
  border-color: var(--ws-accent);
}
body.ws-v14 .ws-dual-search .ws-search-submit,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit {
  color: #fff;
  box-shadow: 0 2px 8px rgba(36, 87, 181, .12);
}
body.ws-v14 .ws-dual-search .ws-search-submit:hover,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit:hover {
  color: #fff;
}

/* Headings and information cards get a little color, not extra UI modules. */
body.ws-v14 .content-site.customize-site { padding-top: 22px; }
body.ws-v14 :is(h4,h1).text-gray { display: inline-flex; align-items: center; gap: 8px; color: var(--ws-ink) !important; }
body.ws-v14 :is(h4,h1).text-gray::before {
  content: '';
  flex: 0 0 4px;
  width: 4px;
  height: 19px;
  margin-right: 2px;
  border-radius: 4px;
  background: var(--ws-warm);
}
body.ws-v14 .url-card .url-body > a.card,
body.ws-v14 .url-card > .wspro-site-card.max,
body.ws-v14 .sidebar .url-card > .wspro-site-card.max,
body.ws-v14 .card-app.card,
body.ws-v14 .card-app.default .media,
body.ws-v14 .card-book .media,
body.ws-v14 .card-post .media {
  border-radius: 13px;
}
body.ws-v14 .url-card .url-body > a.card:hover,
body.ws-v14 .url-card > .wspro-site-card.max:hover,
body.ws-v14 .card-app.card:hover,
body.ws-v14 .card-app.default .media:hover,
body.ws-v14 .card-book .media:hover,
body.ws-v14 .card-post .media:hover {
}
body.ws-v14.io-black-mode .url-card .url-body > a.card:hover,
body.ws-v14.io-black-mode .url-card > .wspro-site-card.max:hover { border-color: var(--ws-line-strong); }
body.ws-v14 .url-card .url-body > a.card .card-body { padding: 16px; }
body.ws-v14 .url-card .url-img.rounded-circle {
  background: var(--ws-accent-soft);
  border-color: var(--ws-line);
  border-radius: 10px !important;
}
body.ws-v14 .url-card .url-info strong { font-size: 14px; }
body.ws-v14 .url-card .wspro-site-card .wspro-site-description {
  font-size: 12.75px !important;
  line-height: 1.65;
  color: var(--ws-muted) !important;
}
body.ws-v14 .url-card .wspro-site-card.max .wspro-site-card-footer,
body.ws-v14 .url-card .url-body > a.card + a.togo { border-color: var(--ws-line); }
body.ws-v14 .url-card .url-body a.togo:hover,
body.ws-v14 .url-card .wspro-site-card.max a.togo:hover { color: var(--ws-accent) !important; }
body.ws-v14 .site-go .btn,
body.ws-v14 .btn-primary {
  border-radius: 9px;
}
body.ws-v14 footer.main-footer { border-top: 1px solid var(--ws-line); }

/* CRITICAL: V14.2 accidentally mixed a capped 1200px content area with
 * get_columns()'s 6/10-column layouts. At >=1680px, .col-xxl-10a
 * made real cards as narrow as 110-120px. Force readable 3/2/1 columns for
 * actual WordPress site-card wrappers; sidebar widgets and other cards
 * retain the theme's existing layout. Applies to home AND listing pages. */
body.ws-v14 .main-content .row > .url-card:has(> .wspro-site-card) {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  min-width: 0;
}
@media (min-width: 1100px) {
  body.ws-v14 .main-content .row > .url-card:has(> .wspro-site-card) {
    flex-basis: 33.333333% !important;
    max-width: 33.333333% !important;
  }
}
@media (min-width: 576px) and (max-width: 1099.98px) {
  body.ws-v14 .main-content .row > .url-card:has(> .wspro-site-card) {
    flex-basis: 50% !important;
    max-width: 50% !important;
  }
}
/* At 768-799px the side rail is still present, leaving <600px for cards.
 * One comfortably readable card beats two squeezed cards. */
@media (min-width: 768px) and (max-width: 799.98px) {
  body.ws-v14 .main-content .row > .url-card:has(> .wspro-site-card) {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 575.98px) {
  body.ws-v14 .main-content .row > .url-card:has(> .wspro-site-card) {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* Deliberate mouse feedback without competing with the existing V14 JS. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body > a.card.ws-v14-pointer-active,
  body.ws-v14.ws-v14-pointer-enabled .card-app.card.ws-v14-pointer-active {
    border-color: var(--ws-accent);
    box-shadow: 0 16px 35px rgba(29, 83, 167, .15);
  }
  body.ws-v14.ws-v14-pointer-enabled .url-card .url-body a.card.ws-v14-pointer-active .url-img {
    border-color: var(--ws-line-strong);
  }
}

@media (max-width: 767.98px) {
  body.ws-v14 .ws-v14-intro { margin-top: 14px; margin-bottom: 9px; padding: 26px 21px; gap: 18px; }
  body.ws-v14 .ws-v14-intro h1 { font-size: clamp(29px, 7vw, 35px); }
  body.ws-v14 .ws-v14-intro__link { padding: 9px 13px; }
  body.ws-v14 .content-site.customize-site { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ws-v14 .ws-v14-intro__link { transition: none !important; transform: none !important; }
}

/* -------- ws-v14-4-news-cards.css -------- */
/* Fix the upstream col-xxl-3 (25%) rule when content is capped at 1200px:
 * three readable news cards per row on desktop; two where the content area permits; one on tablets and phones.
 * Includes category-driven homepage sections, tab AJAX loads and tools-post.
 */
body.ws-v14 .main-content .row > .ws-v144-post-cell {
    display: flex;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    min-width: 0;
}
@media (min-width: 960px) and (max-width: 1199.98px) {
    body.ws-v14 .main-content .row > .ws-v144-post-cell {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 959.98px) {
    body.ws-v14 .main-content .row > .ws-v144-post-cell {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* V14.14: top-image/bottom-text editorial cards. Preserve the uncropped
 * responsive <img> and the V14.13 stable homepage/footer layout. One fixed
 * ratio per card avoids varying heights when images load; object-fit:contain
 * shows the entire landscape/logo/portrait without stretching or cropping. */
body.ws-v14 .ws-v144-news-card {
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--ws-line);
    background: var(--ws-surface);
    box-shadow: var(--ws-shadow);
    transition: border-color .2s ease, box-shadow .23s ease, transform .23s ease;
}
body.ws-v14 .ws-v144-news-card__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}
body.ws-v14 .ws-v144-news-card__visual { min-width: 0; }
body.ws-v14 .ws-v144-news-card__visual .media {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 190px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--ws-surface-soft);
}
/* The original media-4x3 pseudo-element would otherwise create extra height. */
body.ws-v14 .ws-v144-news-card__visual .media::after { content: none; display: none; }
body.ws-v14 .ws-v144-news-card__visual .media-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    transform: none;
}
body.ws-v14 .ws-v144-news-card__visual .ws-v1412-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    transform: none;
}
body.ws-v14 .ws-v144-news-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 82px;
    gap: 8px;
    padding: 11px 14px 12px;
}
body.ws-v14 .ws-v144-news-card__title {
    display: -webkit-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    line-height: 1.4;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.012em;
    color: var(--ws-ink) !important;
}
body.ws-v14 .ws-v144-news-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.35;
    color: var(--ws-muted);
}
body.ws-v14 .ws-v144-news-card__category {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 5px;
    color: var(--ws-muted) !important;
    white-space: nowrap;
}
body.ws-v14 .ws-v144-news-card__category .iconfont { flex: 0 0 auto; opacity: .85; }
body.ws-v14 .ws-v144-news-card__category-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.ws-v14 .ws-v144-news-card__time {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--ws-muted);
}
body.ws-v14 .ws-v144-news-card:hover {
    border-color: var(--ws-line-strong);
    box-shadow: var(--ws-shadow-hover);
}
body.ws-v14 .ws-v144-news-card:hover .ws-v144-news-card__title,
body.ws-v14 .ws-v144-news-card__title:focus-visible,
body.ws-v14 .ws-v144-news-card__category:hover { color: var(--ws-accent) !important; }
body.ws-v14 .ws-v144-news-card:hover .media-content { transform: none; }

/* One-column news rows stay stacked, but cap image height to avoid turning
 * an extra-wide desktop/tablet card into a giant billboard. */
@media (min-width: 576px) and (max-width: 959.98px) {
    body.ws-v14 .ws-v144-news-card__visual .media { max-height: 205px; }
}
@media (max-width: 420px) {
    body.ws-v14 .ws-v144-news-card__content { padding: 11px 13px 12px; }
    body.ws-v14 .ws-v144-news-card__title { font-size: 13px; }
}
/* Existing delegated mouse handling still tilts the entire card. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.ws-v14.ws-v14-pointer-enabled .ws-v144-news-card {
        --ws-tilt-x: 0deg;
        --ws-tilt-y: 0deg;
        --ws-pointer-x: 50%;
        --ws-pointer-y: 50%;
        transform: perspective(1250px) rotateX(var(--ws-tilt-x)) rotateY(var(--ws-tilt-y));
    }
    body.ws-v14.ws-v14-pointer-enabled .ws-v144-news-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(190px circle at var(--ws-pointer-x) var(--ws-pointer-y), var(--ws-spotlight), transparent 80%);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    body.ws-v14.ws-v14-pointer-enabled .ws-v144-news-card.ws-v14-pointer-active {
        transform: perspective(1250px) translateY(-2px) rotateX(var(--ws-tilt-x)) rotateY(var(--ws-tilt-y));
        border-color: var(--ws-line-strong);
    }
    body.ws-v14.ws-v14-pointer-enabled .ws-v144-news-card.ws-v14-pointer-active::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    body.ws-v14 .ws-v144-news-card,
    body.ws-v14 .ws-v144-news-card .media-content {
        transform: none !important;
        transition: none !important;
    }
}

/* -------- ws-v14-5-default-menu.css -------- */
body.ws-v14 .sidebar-nav a:not(.btn) { color: #b2b8be; }
body.ws-v14 .sidebar-nav a:not(.btn):hover,
body.ws-v14 .sidebar-nav .sidebar-show > a:not(.btn) { color: #fff; }
body.ws-v14.io-grey-mode .sidebar-nav a:not(.btn) { color: #515c6b; }
body.ws-v14.io-grey-mode .sidebar-nav a:not(.btn):hover,
body.ws-v14.io-grey-mode .sidebar-nav .sidebar-show > a:not(.btn) { color: #f1404b; }
body.ws-v14 .sidebar-nav .border-color { border-color: rgba(129,129,129,.15) !important; }
body.ws-v14.io-grey-mode .sidebar-nav .border-color { border-color: transparent !important; }
body.ws-v14 .page-header .navbar-nav li > a:hover { color: #f1404b; }

/* Keep the user's CSNAVS wordmark readable on the original dark sidebar.
 * Any uploaded logo image continues to take priority over this wordmark. */
body.ws-v14 .sidebar-logo .ws-v142-wordmark,
body.ws-v14 .sidebar-logo a:hover .ws-v142-wordmark { color: #eef1f4; }
body.ws-v14.io-grey-mode .sidebar-logo .ws-v142-wordmark { color: #26364b; }
body.ws-v14.io-grey-mode .sidebar-logo a:hover .ws-v142-wordmark { color: #f1404b; }

/* -------- ws-v14-6-footer-sidebar.css -------- */
/* 1. Compact footer: keep the sticky-footer script's margin-top calculation,
 * but make the visible surface align with the existing 1200px content area. */
body.ws-v14 footer.main-footer,
body.ws-v14.io-black-mode footer.main-footer {
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--ws-layout-gutter, 30px) 22px;
  margin-top: 32px;
  border: 0 !important;
  background: transparent;
  color: var(--ws-muted);
}
body.ws-v14 footer.main-footer .ws-v146-footer-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: min(var(--ws-layout-width, 1200px), var(--ws-footer-width, 1080px));
  padding: 17px 25px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--ws-line);
}
body.ws-v14.io-black-mode footer.main-footer .ws-v146-footer-inner {
  box-shadow: 0 8px 23px rgba(0, 0, 0, .09);
}
body.ws-v14 .ws-v146-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 25px;
}
body.ws-v14 .ws-v146-footer-identity { flex: 0 1 auto; min-width: 0; }
body.ws-v14 .ws-v146-copyright {
  font-size: 12px;
  font-weight: 560;
  line-height: 1.65;
  color: var(--ws-ink);
}
body.ws-v14 .ws-v146-copyright > p { margin: 0; color: inherit; }
body.ws-v14 .ws-v146-footer-inner :where(.ws-v146-tagline, .ws-v146-icp) {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 2px;
  color: var(--ws-muted);
}
body.ws-v14 .ws-v146-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}
body.ws-v14 .ws-v146-footer-links a:not(.btn) {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 520;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
body.ws-v14 .ws-v146-footer-links a:not(.btn):hover,
body.ws-v14 .ws-v146-footer-links a:not(.btn):focus-visible {
  color: var(--ws-accent);
  transform: translateY(-1px);
}
body.ws-v14 .ws-v146-footer-extra,
body.ws-v14 .ws-v146-footer-widgets {
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--ws-line);
  color: var(--ws-ink);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.ws-v14 .ws-v146-footer-extra > :last-child,
body.ws-v14 .ws-v146-footer-widget > :last-child { margin-bottom: 0; }
body.ws-v14 .ws-v146-footer-extra :where(p, ul, ol) { margin-bottom: 8px; }
body.ws-v14 .ws-v146-footer-extra a:not(.btn),
body.ws-v14 .ws-v146-footer-widgets a:not(.btn) { color: var(--ws-accent); text-decoration: none; }
body.ws-v14 .ws-v146-footer-extra img { max-width: 100%; height: auto; border-radius: 6px; }
body.ws-v14 .ws-v146-footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  column-gap: 32px;
  row-gap: 17px;
  list-style: none;
}
body.ws-v14 .ws-v146-footer-widget-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--ws-ink);
  margin: 0 0 8px;
}
body.ws-v14 .ws-v146-footer-widget ul { padding: 0; margin: 0; list-style: none; }
body.ws-v14 .ws-v146-footer-widget li { margin: 0 0 4px; }

/* 2. Sidebar background options: original mode is untouched; match uses
 * existing light/dark page tokens. Custom values are safe inline CSS vars. */
body.ws-v14.ws-v146-sidebar-match {
  --ws-sidebar-bg: var(--ws-bg);
  --ws-sidebar-ink: var(--ws-ink);
  --ws-sidebar-muted: var(--ws-muted);
  --ws-sidebar-accent: var(--ws-accent);
  --ws-sidebar-hover: var(--ws-accent-soft);
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-nav-inner,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-logo,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) .sidebar-popup div,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) .sidebar-popup.sidebar-menu-inner ul li {
  background: var(--ws-sidebar-bg) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar {
  border-right: 1px solid var(--ws-line);
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-logo .ws-v142-wordmark,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-logo a:hover .ws-v142-wordmark {
  color: var(--ws-sidebar-ink) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar a:not(.btn),
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-menu-inner a,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) .sidebar-popup a {
  color: var(--ws-sidebar-muted) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-item > a:hover,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-show > a,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .flex-bottom a:hover,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) .sidebar-popup a:hover {
  background: var(--ws-sidebar-hover) !important;
  color: var(--ws-sidebar-accent) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-item > a:hover span,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-show > a span,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .flex-bottom a:hover span {
  color: var(--ws-sidebar-accent) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .sidebar-item ul {
  background: transparent;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .border-color,
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar .border-bottom {
  border-color: var(--ws-line) !important;
}
body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) .sidebar-popup::before {
  border-right-color: var(--ws-sidebar-bg);
}
@media (max-width: 767.98px) {
  body.ws-v14 footer.main-footer { padding: 0 15px 18px; }
  body.ws-v14 footer.main-footer .ws-v146-footer-inner { padding: 16px 18px; border-radius: 12px; }
  body.ws-v14 .ws-v146-footer-row { gap: 13px; }
  body.ws-v14 .ws-v146-footer-identity, body.ws-v14 .ws-v146-footer-links { width: 100%; text-align: left; }
  body.ws-v14 .ws-v146-footer-links { column-gap: 18px; }
  /* The offcanvas backdrop remains transparent; only its inner panel gets a surface. */
  body.ws-v14:is(.ws-v146-sidebar-match, .ws-v146-sidebar-custom) #sidebar.sidebar-nav {
    background: transparent !important;
    border-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ws-v14 .ws-v146-footer-links a:not(.btn) { transition: none; transform: none !important; }
}

/* -------- ws-v14-7-home-refresh.css -------- */
body.ws-v14 {
  --ws-bg: #edf4fb;
  --ws-surface: #ffffff;
  --ws-surface-soft: #f6faff;
  --ws-surface-tint: #eef5ff;
  --ws-ink: #1e2f47;
  --ws-muted: #6f8098;
  --ws-line: #dbe7f4;
  --ws-line-strong: #bfd2e8;
  --ws-accent: #376fd2;
  --ws-accent-hover: #2759b2;
  --ws-accent-soft: #eaf2ff;
  --ws-warm: #efb463;
  --ws-shadow: 0 10px 30px rgba(34, 71, 126, .07);
  --ws-shadow-hover: 0 20px 42px rgba(34, 71, 126, .14);
  --ws-spotlight: rgba(67, 122, 221, .16);
  background:
    radial-gradient(circle at top right, rgba(138, 184, 255, .17), transparent 31%),
    radial-gradient(circle at top left, rgba(237, 180, 99, .08), transparent 22%),
    linear-gradient(180deg, #fbfdff 0px, #f4f8fd 220px, #edf4fb 100%);
}

body.ws-v14.io-black-mode {
  --ws-bg: #121d2d;
  --ws-surface: #1a283d;
  --ws-surface-soft: #203047;
  --ws-surface-tint: #223652;
  --ws-ink: #eef5ff;
  --ws-muted: #a7b9d0;
  --ws-line: #31455f;
  --ws-line-strong: #496583;
  --ws-accent: #8fbbff;
  --ws-accent-hover: #bed8ff;
  --ws-accent-soft: #273c59;
  --ws-warm: #efb463;
  --ws-shadow: 0 14px 32px rgba(0, 0, 0, .18);
  --ws-shadow-hover: 0 24px 46px rgba(0, 0, 0, .3);
  --ws-spotlight: rgba(143, 187, 255, .14);
  background:
    radial-gradient(circle at top right, rgba(70, 110, 176, .16), transparent 31%),
    linear-gradient(180deg, #182538 0px, #122032 260px, #121d2d 100%);
}

body.ws-v14 .page-container,
body.ws-v14 .main-content,
body.ws-v14 .content-site,
body.ws-v14 .content-site.customize-site,
body.ws-v14 .content-site.customize-site.big {
  background: transparent;
}

/* Unify the top header with the homepage background instead of a detached
 * solid-white slab. */
body.ws-v14 .page-header,
body.ws-v14 .page-header.big,
body.ws-v14.io-grey-mode .page-header,
body.ws-v14.io-black-mode .page-header,
body.ws-v14.io-black-mode .page-header.big {
  background: rgba(249, 252, 255, .78);
  border-bottom: 1px solid rgba(191, 210, 232, .7);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
body.ws-v14.io-black-mode .page-header,
body.ws-v14.io-black-mode .page-header.big {
  background: rgba(22, 33, 49, .78);
  border-bottom-color: rgba(73, 101, 131, .7);
}
body.ws-v14 .navbar .navbar-nav li > a,
body.ws-v14 .navbar-menu a,
body.ws-v14 .mobile-menu a,
body.ws-v14 .page-header .text-sm,
body.ws-v14 .page-header .text-xs {
  color: var(--ws-muted);
}
body.ws-v14 .navbar .navbar-nav li > a:hover,
body.ws-v14 .navbar-menu a:hover,
body.ws-v14 .mobile-menu a:hover,
body.ws-v14 .page-header .navbar-nav li > a:hover {
  color: var(--ws-accent);
}
body.ws-v14 .header-mini-btn path { stroke: #71839a; }
body.ws-v14 .header-mini-btn label:hover path { stroke: var(--ws-accent); }
body.ws-v14 .header-big,
body.ws-v14 .header-big.css-color,
body.ws-v14 .header-big.css-img,
body.ws-v14 .header-big.css-bing,
body.ws-v14 .header-big.canvas-fx {
  padding-top: 16px;
}

/* V14.7.1: subtle sidebar edge only. No overlay strip, gradient pseudo-
 * element, positioning change, or second shadow layer. The WebStacks menu
 * markup and sticky/off-canvas positioning remain owned by the original CSS. */
body.ws-v14 #sidebar.sidebar-nav {
  box-shadow: 3px 0 13px rgba(42, 67, 103, .055);
}
body.ws-v14.io-black-mode #sidebar.sidebar-nav {
  box-shadow: 3px 0 13px rgba(0, 0, 0, .14);
}
body.ws-v14 #sidebar.sidebar-nav::after {
  content: none;
  display: none;
}

/* Refine the hero/search so the page feels cleaner and less flat grey. */
body.ws-v14 .ws-v14-intro {
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(244,249,255,.98) 64%, rgba(236,246,247,.97) 100%);
  border-color: #d7e5f5;
  box-shadow: 0 12px 32px rgba(27, 62, 110, .08);
}
body.ws-v14.io-black-mode .ws-v14-intro {
  background: linear-gradient(135deg, #1d2c43 0%, #233853 65%, #1f4146 100%);
}
body.ws-v14 .ws-v14-intro__label {
  color: var(--ws-accent);
}
body.ws-v14 .ws-v14-intro__description {
  color: var(--ws-muted);
}
body.ws-v14 .ws-dual-search .ws-search-tab,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab {
  color: var(--ws-muted);
}
body.ws-v14 .ws-dual-search .ws-search-tab.is-active,
body.ws-v14 .ws-dual-search .ws-search-tab:hover,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-tab.is-active {
  color: var(--ws-accent);
  background: rgba(255,255,255,.75);
  border-color: #d4e2f5;
  box-shadow: 0 2px 8px rgba(42, 85, 157, .05);
}
body.ws-v14 .ws-dual-search .ws-search-form,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-form {
  background: rgba(255,255,255,.92);
  border-color: #d6e4f4;
  box-shadow: 0 10px 28px rgba(25, 56, 106, .08);
}
body.ws-v14.io-black-mode .ws-dual-search .ws-search-form {
  background: rgba(26, 40, 61, .92);
}
body.ws-v14 .ws-dual-search .ws-search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(55, 111, 210, .12), 0 12px 30px rgba(25, 56, 106, .1);
}
body.ws-v14 .ws-dual-search .ws-search-submit,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit {
  background: linear-gradient(180deg, #4379df 0%, #3469cd 100%);
}
body.ws-v14 .ws-dual-search .ws-search-submit:hover,
body.ws-v14.io-black-mode .ws-dual-search .ws-search-submit:hover {
  background: linear-gradient(180deg, #376fd2 0%, #2759b2 100%);
}

/* Cards and section headings: slightly more premium, less chalky. */
body.ws-v14 :is(h4,h1).text-gray {
  color: var(--ws-ink) !important;
}
body.ws-v14 .url-card .url-body > a.card,
body.ws-v14 .url-card > .wspro-site-card.max,
body.ws-v14 .sidebar .url-card > .wspro-site-card.max,
body.ws-v14 .card-app.card,
body.ws-v14 .card-app.default .media,
body.ws-v14 .card-book .media,
body.ws-v14 .card-post .media {
  background: rgba(255,255,255,.94);
  border-color: #dce7f4;
  box-shadow: var(--ws-shadow);
}
body.ws-v14 .url-card .url-body > a.card:hover,
body.ws-v14 .url-card > .wspro-site-card.max:hover,
body.ws-v14 .card-app.card:hover,
body.ws-v14 .card-app.default .media:hover,
body.ws-v14 .card-book .media:hover,
body.ws-v14 .card-post .media:hover {
  border-color: #a7c1ea;
  box-shadow: var(--ws-shadow-hover);
}
body.ws-v14 .url-card .url-img.rounded-circle,
body.ws-v14 .card-app.card .media img,
body.ws-v14 .card-post .media img {
  background: linear-gradient(180deg, #f2f7ff 0%, #e7f0ff 100%);
}
body.ws-v14 .url-card .wspro-site-card .wspro-site-description,
body.ws-v14 .url-card .excerpt,
body.ws-v14 .excerpt {
  color: var(--ws-muted) !important;
}

body.ws-v14 footer.main-footer .ws-v146-footer-inner {
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(28, 62, 110, .07);
}
body.ws-v14.io-black-mode footer.main-footer .ws-v146-footer-inner {
  background: rgba(26, 40, 61, .95);
}

@media (max-width: 767.98px) {
  body.ws-v14 .page-header,
  body.ws-v14 .page-header.big {
    background: rgba(249, 252, 255, .92);
  }
  body.ws-v14 #sidebar.sidebar-nav,
  body.ws-v14.io-black-mode #sidebar.sidebar-nav {
    box-shadow: none;
  }
  body.ws-v14 .header-big,
  body.ws-v14 .header-big.css-color,
  body.ws-v14 .header-big.css-img,
  body.ws-v14 .header-big.css-bing,
  body.ws-v14 .header-big.canvas-fx {
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ws-v14 .ws-dual-search .ws-search-submit {
    transition: none;
  }
}

/* V14.8: compact, accessible 404 state using the established design tokens. */
body.ws-v14 .ws-v148-notfound {
  max-width: 680px;
  margin: clamp(70px, 12vh, 160px) auto;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  background: var(--ws-surface);
  color: var(--ws-ink);
}
body.ws-v14 .ws-v148-notfound h1 { font-size: clamp(27px, 4vw, 40px); font-weight: 700; }
body.ws-v14 .ws-v148-notfound p { color: var(--ws-muted); }
body.ws-v14 .ws-v148-notfound a { display: inline-block; margin-top: 12px; color: var(--ws-accent); font-weight: 650; }


/* V14.9: longer English H1 + coherent h2 category headings. Existing cards,
 * menu, cursor interactions and responsive layout rules are unchanged. */
body.ws-v14 .ws-v14-intro h1 {
  font-size: clamp(25px, 2.45vw, 35px);
  line-height: 1.22;
  overflow-wrap: normal;
  text-wrap: balance;
}
body.ws-v14 .ws-v14-intro__copy { min-width: 0; }
body.ws-v14 h2.ws-v149-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ws-ink) !important;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}
body.ws-v14 h2.ws-v149-section-heading::before {
  content: '';
  flex: 0 0 4px;
  width: 4px;
  height: 19px;
  margin-right: 2px;
  border-radius: 4px;
  background: var(--ws-warm);
}
@media (max-width: 767.98px) {
  body.ws-v14 .ws-v14-intro h1 { font-size: clamp(24px, 6vw, 32px); }
  body.ws-v14 .ws-v14-intro__link { align-self: flex-start; }
}

/* V14.10: optional per-category homepage summaries below their H2 headings. */
body.ws-v14 .ws-v1410-section-description {
  max-width: 80ch;
  margin: -7px 0 18px;
  color: var(--ws-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
@media (max-width: 767.98px) {
  body.ws-v14 .ws-v1410-section-description { margin-top: -3px; font-size: 12.5px; }
}

/* V14.11: section controls align without an empty flex-spacer node. */
body.ws-v14 .ws-v1411-section-head > .btn-move { margin-left: auto; flex-shrink: 0; }
body.ws-v14 .ws-v1411-breadcrumb-separator { color: var(--ws-accent); }

/* V14.13: homepage height/background/footer stability. The legacy theme
 * assigns body height:100% and the gradient may repeat below it when cards
 * cause the page to overflow; use one full-height, non-repeating canvas.
 * Let the homepage's own flex layout place the footer instead of allowing
 * the old sticky-footer script to inject a fragile inline margin. */
body.ws-v14 {
    height: auto;
    min-height: 100vh;
    background-color: var(--ws-bg);
    background-repeat: no-repeat;
}
body.ws-v14 .ws-home-experience { min-height: 100vh; }
body.ws-v14 .ws-home-experience > footer.main-footer {
    margin-top: auto !important;
    padding-top: clamp(32px, 4vw, 48px);
}

/* V14.24: restrained, consistent archive H1 and visible introduction.
 * Scoped to favorites archives; other page types and homepage H2 are unchanged. */
body.ws-v14 .ws-v1424-archive-heading h1 {
  display: block;
  font-size: clamp(19px, 1.75vw, 25px);
  line-height: 1.35;
  margin-top: 0;
  overflow-wrap: anywhere;
}
body.ws-v14 .ws-v1424-archive-heading--leaf h1 > .site-tag {
  font-size: .85em;
  color: var(--ws-muted);
}
body.ws-v14 .ws-v1424-archive-heading--leaf {
  padding-top: 6px;
}
body.ws-v14 .ws-v1424-archive-heading--parent .card-body {
  padding: 10px 1px 12px;
}
body.ws-v14 .ws-v1424-archive-heading__intro {
  margin: 8px 0 0;
  max-width: 850px;
  color: var(--ws-muted);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
