/**
 * Axadle editorial layer.
 *
 * Additive styling for the existing Publisher theme.
 */

:root {
  --ax-primary: #0099ff;
  --ax-primary-dark: #007acc;
  --ax-primary-soft: rgba(0, 153, 255, 0.1);
  --ax-ink: #101828;
  --ax-text: #1f2937;
  --ax-muted: #667085;
  --ax-border: #e5e7eb;
  --ax-border-strong: #d0d5dd;
  --ax-surface: #ffffff;
  --ax-surface-soft: #f8fafc;
  --ax-radius: 8px;
  --ax-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ax-container: 1240px;
}

body {
  color: var(--ax-text);
  background: #f3f6f9;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(0, 153, 255, 0.35);
  outline-offset: 2px;
}

/* Publisher manages its own container widths — we do not constrain outer wrappers.
   .content-wrap is a utility class reused in the nav, footer and header; setting a
   global background on it paints white boxes inside the blue nav/footer sections. */
.main-menu-wrapper .content-wrap,
.main-menu-inner  .content-wrap,
.site-footer      .content-wrap,
.footer-widgets   .content-wrap,
.copy-footer      .content-wrap {
  background: transparent;
}

.main-menu-wrapper {
  background: var(--ax-primary) !important;
}

.main-menu > li > a,
.main-menu.menu > li > a {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0;
}

.main-menu > li.current-menu-item > a,
.main-menu > li:hover > a,
.main-menu.menu > li.current-menu-item > a,
.main-menu.menu > li:hover > a {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.main-menu-wrapper {
  border-bottom: 4px solid #62d827 !important;
}

.site-header .logo,
.site-header .site-branding,
.site-header .header-inner {
  text-align: left !important;
}

.site-header .logo img,
.site-header .site-branding img {
  max-width: 270px;
  height: auto;
}

.footer-wrap,
.site-footer,
.footer-lower-wrapper {
  background: var(--ax-primary) !important;
  color: #fff !important;
}

.footer-wrap a,
.site-footer a,
.footer-lower-wrapper a {
  color: #fff !important;
}

.footer-wrap p,
.site-footer p,
.footer-lower-wrapper p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Breadcrumb — white bar + horizontal inline layout */
.bf-breadcrumb.bc-top-style {
  background: #ffffff;
  border-bottom: 1px solid var(--ax-border);
  padding: 6px 0 7px;
}

.bf-breadcrumb .bf-breadcrumb-items {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0;
  overflow: hidden;
}

.bf-breadcrumb .bf-breadcrumb-item {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 22px;
}

.bf-breadcrumb .bf-breadcrumb-item.bf-breadcrumb-end {
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.bf-breadcrumb .bf-breadcrumb-item:after {
  display: inline-block !important;
  position: relative;
  flex-shrink: 0;
}

/* Listing polish */
.listing.columns-1,
.listing.columns-2,
.listing.columns-3,
.listing.columns-4,
.listing.scolumns-2,
.listing.scolumns-3,
.listing.scolumns-4,
.listing.scolumns-5 {
  gap: 22px;
}

.listing-item {
  color: var(--ax-text);
}

.listing-item-grid-1,
.listing-item-grid-2,
.listing-item-blog-1,
.listing-item-blog-2,
.listing-item-blog-5,
.listing-item-classic-1,
.listing-item-classic-2 {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.listing-item-grid-1:hover,
.listing-item-grid-2:hover,
.listing-item-blog-1:hover,
.listing-item-blog-2:hover,
.listing-item-blog-5:hover {
  transform: translateY(-2px);
  box-shadow: var(--ax-shadow);
}

.listing-item .featured,
.listing-item .img-holder {
  position: relative;
  overflow: hidden;
  background: #eef2f6;
}

.listing-item .featured img,
.listing-item .img-holder img,
.listing-item .featured .img-cont,
.listing-item .img-holder .img-cont {
  transition: transform 0.45s ease;
}

.listing-item:hover .featured img,
.listing-item:hover .img-holder img,
.listing-item:hover .featured .img-cont,
.listing-item:hover .img-holder .img-cont {
  transform: scale(1.035);
}

.listing-item .title,
.listing-item .post-title,
.listing-item .title a,
.listing-item .post-title a {
  color: var(--ax-ink);
  font-weight: 800;
  line-height: 1.28;
}

.listing-item .title a:hover,
.listing-item .post-title a:hover {
  color: var(--ax-primary);
}

.listing-item .post-meta,
.listing-item .loop-post-meta,
.listing-item .post-summary {
  color: var(--ax-muted);
}

.listing-item .post-meta,
.listing-item .loop-post-meta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ax-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ax-new-badge,
.ax-format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ax-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  margin-right: 6px;
  text-transform: uppercase;
}

.ax-format-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  background: rgba(16, 24, 40, 0.85);
  margin: 0;
}

.ax-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.ax-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  animation: ax-live-pulse 1.35s ease-in-out infinite;
}

@keyframes ax-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

/* Article reading experience */
#ax-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0;
  height: 3px;
  background: var(--ax-primary);
  pointer-events: none;
}

.single .entry-content {
  color: var(--ax-text);
  font-size: clamp(17px, 1vw, 19px);
  line-height: 1.82;
}

.single .entry-content.ax-text-sm {
  font-size: 16px;
}

.single .entry-content.ax-text-lg {
  font-size: 20px;
}

.single .entry-content > p {
  margin-bottom: 1.35em;
}

.single .entry-content > p:first-of-type {
  color: var(--ax-ink);
  font-size: 1.12em;
  line-height: 1.78;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
  color: var(--ax-ink);
  font-weight: 900;
  line-height: 1.2;
  margin: 2em 0 0.7em;
}

.single .entry-content > p a,
.single .entry-content > ul a,
.single .entry-content > ol a {
  color: var(--ax-primary-dark);
  text-decoration: underline;
}

.single .entry-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 22px 28px 22px 34px;
  border-left: 5px solid var(--ax-primary);
  background: var(--ax-surface-soft);
  color: var(--ax-ink);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.55;
}

.single .entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 10px;
  color: rgba(0, 153, 255, 0.22);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.single .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.single .entry-content figure {
  margin: 32px 0;
}

.single .entry-content figcaption,
.single .entry-content .wp-caption-text {
  max-width: 760px;
  margin: 9px auto 0;
  color: var(--ax-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.single .entry-content table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--ax-border);
  background: var(--ax-surface);
}

.single .entry-content th,
.single .entry-content td {
  min-width: 140px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ax-border);
  text-align: left;
}

.single .entry-content th {
  background: var(--ax-surface-soft);
  color: var(--ax-ink);
  font-weight: 800;
}

.single .entry-content img:not(.emoji):not(.avatar) {
  cursor: zoom-in;
}

.ax-article-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--ax-border);
  border-bottom: 1px solid var(--ax-border);
  color: var(--ax-muted);
  font-size: 13px;
}

.ax-ahm-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ax-ahm-item svg {
  color: var(--ax-primary);
  flex: 0 0 auto;
}

.ax-ahm-author a,
.ax-ahm-category a {
  color: var(--ax-ink);
  font-weight: 800;
  text-decoration: none;
}

.ax-ahm-category a {
  color: var(--ax-term-color, var(--ax-primary));
}

.ax-ahm-tools {
  margin-left: auto;
}

.ax-font-adjuster {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface);
}

.ax-font-btn {
  min-width: 31px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ax-muted);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.ax-font-sm {
  font-size: 12px;
}

.ax-font-base {
  font-size: 15px;
}

.ax-font-lg {
  font-size: 18px;
}

.ax-font-btn[aria-pressed="true"],
.ax-font-btn:hover {
  background: var(--ax-primary);
  color: #fff;
}

/* Archive and listing features */
.ax-archive-hero {
  margin: 0 0 26px;
  padding: 34px 32px;
  border-top: 5px solid var(--ax-term-color, var(--ax-primary));
  background:
    linear-gradient(135deg, rgba(0, 153, 255, 0.1), rgba(255, 255, 255, 0) 38%),
    var(--ax-surface);
  box-shadow: inset 0 -1px 0 var(--ax-border);
}

.ax-archive-hero-inner {
  max-width: 760px;
}

.ax-archive-hero-eyebrow {
  color: var(--ax-term-color, var(--ax-primary));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ax-archive-hero-title {
  margin: 7px 0 10px;
  color: var(--ax-ink);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 950;
  line-height: 1;
}

.ax-archive-hero-desc {
  color: var(--ax-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ax-archive-hero-desc p {
  margin: 0;
}

.ax-archive-hero-count {
  display: inline-flex;
  margin-top: 15px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ax-ink);
  background: var(--ax-surface);
  font-size: 12px;
  font-weight: 800;
}

.ax-trending-wrap {
  margin: 0 0 28px;
  border-block: 1px solid var(--ax-border);
  background: var(--ax-surface-soft);
}

.ax-trending-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 18px;
  cursor: grab;
  scrollbar-width: thin;
}

.ax-trending-strip.ax-dragging {
  cursor: grabbing;
}

.ax-trending-label {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ax-primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ax-trending-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 320px;
  color: var(--ax-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.ax-trending-item:hover {
  color: var(--ax-primary-dark);
}

.ax-trending-num {
  color: var(--ax-primary);
  font-size: 12px;
  font-weight: 950;
}

.tagcloud a,
.post-tags a,
.tags-links a,
.listing-tags a,
.bs-tag-cloud a,
.wp-block-tag-cloud a {
  display: inline-flex;
  align-items: center;
  margin: 4px 4px 4px 0;
  border: 1px solid var(--ax-border) !important;
  border-radius: 999px;
  background: var(--ax-surface) !important;
  color: var(--ax-ink) !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px !important;
  text-decoration: none !important;
}

.tagcloud a:hover,
.post-tags a:hover,
.tags-links a:hover,
.listing-tags a:hover,
.bs-tag-cloud a:hover,
.wp-block-tag-cloud a:hover {
  border-color: var(--ax-primary) !important;
  background: var(--ax-primary) !important;
  color: #fff !important;
}

/* Share, selected quote, lightbox, back-to-top */
#ax-tweet-popover {
  position: absolute;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ax-ink);
  color: #fff;
  box-shadow: var(--ax-shadow);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  padding: 0 13px;
  pointer-events: none;
  text-decoration: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

#ax-tweet-popover.ax-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-4px);
}

#ax-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.92);
  padding: 24px;
}

#ax-lightbox.ax-open {
  display: flex;
}

.ax-lightbox-lock {
  overflow: hidden;
}

#ax-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  background: #000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

#ax-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 44px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

#ax-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

#ax-share-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow);
  opacity: 0;
  padding: 7px;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#ax-share-bar.ax-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ax-share-bar-title {
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 900;
  padding-left: 8px;
  text-transform: uppercase;
}

.ax-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ax-surface-soft);
  color: var(--ax-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.ax-share-x {
  background: #111827;
  color: #fff;
}

.ax-share-fb {
  background: #1877f2;
  color: #fff;
}

.ax-share-wa {
  background: #25d366;
  color: #063b1a;
}

.ax-share-copy:hover,
.ax-share-btn:hover {
  filter: brightness(0.95);
}

.back-top,
#ax-back-top {
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease !important;
}

#ax-back-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 9980;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ax-primary);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#ax-back-top.ax-visible,
.back-top.ax-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover,
#ax-back-top:hover {
  background: var(--ax-primary-dark) !important;
  transform: translateY(-2px) !important;
}

/* Sidebar, newsletter and 404 */
@media (min-width: 1024px) {
  .bs-vc-sidebar-column,
  .sidebar-column,
  .primary-sidebar-column,
  aside.sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
  }

  #ax-share-bar {
    right: auto;
    left: max(16px, calc((100vw - var(--ax-container)) / 2 - 72px));
    top: 34vh;
    bottom: auto;
    flex-direction: column;
    border-radius: 999px;
    padding: 8px;
  }

  .ax-share-bar-title {
    writing-mode: vertical-rl;
    padding: 0;
  }
}

.bs-newsletter-pack,
.newsletter,
.widget_mc4wp_form_widget,
.mc4wp-form {
  border-radius: 0;
}

.ax-404-wrap {
  max-width: 760px;
  margin: 58px auto 70px;
  padding: 0 22px;
  text-align: center;
}

.ax-404-code {
  display: block;
  color: var(--ax-primary);
  font-size: clamp(68px, 15vw, 148px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.ax-404-title {
  margin: 10px 0;
  color: var(--ax-ink);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.05;
}

.ax-404-text {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--ax-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ax-404-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 32px;
  border: 2px solid var(--ax-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ax-surface);
}

.ax-404-search:focus-within {
  border-color: var(--ax-primary);
}

.ax-404-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ax-ink);
  font-size: 15px;
  padding: 14px 18px;
}

.ax-404-search button {
  border: 0;
  background: var(--ax-primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 0 22px;
}

.ax-404-popular {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: left;
}

.ax-404-popular-title {
  margin: 0 0 14px;
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ax-404-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ax-404-popular-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ax-border);
}

.ax-404-popular-num {
  color: var(--ax-primary);
  font-size: 12px;
  font-weight: 950;
}

.ax-404-popular-list a {
  color: var(--ax-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.ax-404-popular-list a:hover {
  color: var(--ax-primary-dark);
}

.ax-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.ax-404-links a {
  border: 1px solid var(--ax-border);
  border-radius: 999px;
  background: var(--ax-surface);
  color: var(--ax-ink);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 15px;
  text-decoration: none;
}

.ax-404-links a:hover {
  border-color: var(--ax-primary);
  background: var(--ax-primary);
  color: #fff;
}

.ax-admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.ax-admin-check + p {
  margin: 8px 0 0;
  color: #646970;
  font-size: 12px;
}

/* Responsive guardrails */
@media (max-width: 768px) {
  :root {
    --ax-container: 100%;
  }

  .site-header .logo img,
  .site-header .site-branding img {
    max-width: 220px;
  }

  .ax-article-header-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ax-ahm-tools {
    margin-left: 0;
  }

  .ax-archive-hero {
    padding: 28px 20px;
  }

  #ax-share-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
    border-radius: 18px;
  }

  .ax-share-bar-title {
    display: none;
  }

  #ax-back-top {
    bottom: 74px;
  }

  .single .entry-content {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #ax-progress,
  #ax-share-bar,
  #ax-tweet-popover,
  #ax-back-top,
  .back-top {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
