/*
Theme Name: InfluBid Blog
Theme URI: https://influbidapp.com/
Author: InfluBid
Description: Lightweight, fast, SEO-friendly classic WordPress theme for the InfluBid blog. Designed to match the InfluBid marketing website.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: influbid
Tags: blog, news, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

:root {
  --ib-ink: #10182d;
  --ib-text: #50627e;
  --ib-muted: #7183a0;
  --ib-blue: #2161ff;
  --ib-purple: #7c3aed;
  --ib-green: #10b981;
  --ib-border: #dfe6f0;
  --ib-soft: #f7f9fc;
  --ib-white: #fff;
  --ib-radius: 16px;
  --ib-container: 1120px;
  --ib-shadow: 0 8px 28px rgba(16, 24, 45, .07);
}

/*
 * Full-width site reset.
 * Prevents host/plugin/global WordPress CSS from turning the public site
 * into a narrow boxed layout. Content width is controlled only by .container.
 */
html,
body {
  width: 100%;
  min-width: 100%;
  max-width: none;
}

body {
  background: #fff;
}

#page,
.site,
.wp-site-blocks,
.site-content,
#content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ib-text);
  background: var(--ib-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ib-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--ib-container));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--ib-ink);
  display: block;
  height: auto;
  left: 8px;
  padding: 12px 16px;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* Announcement */
.ib-announcement {
  background: linear-gradient(90deg, #18b39b 0%, #167adf 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px 40px;
}
.ib-announcement a { color: #fff; text-decoration: underline; }
.ib-announcement__inner { position: relative; }
.ib-announcement__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--ib-border);
}
.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 34px; }
.site-title {
  color: var(--ib-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.7px;
}
.site-title:hover { text-decoration: none; }
.ib-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ib-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.ib-logo-mark {
  width: 28px;
  height: 32px;
  position: relative;
  display: inline-block;
}
.ib-logo-mark::before,
.ib-logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 7px;
}
.ib-logo-mark::before {
  width: 10px;
  height: 27px;
  left: 5px;
  top: 4px;
  background: var(--ib-ink);
}
.ib-logo-mark::after {
  width: 10px;
  height: 10px;
  left: 15px;
  top: 0;
  background: #7c3aed;
  border-radius: 50%;
}
.ib-logo-bid { color: #6d35ff; }

.primary-nav {
  margin-left: auto;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.primary-nav li { position: relative; }
.primary-nav a {
  color: #40516e;
  font-size: 15px;
  font-weight: 600;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--ib-ink);
  text-decoration: none;
}
.primary-nav .menu-item-has-children > a::after {
  content: "⌄";
  margin-left: 5px;
  font-size: 11px;
}
.primary-nav .sub-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  min-width: 230px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 14px;
  box-shadow: var(--ib-shadow);
  display: none;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li { margin: 0; }
.primary-nav .sub-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
}
.primary-nav .sub-menu a:hover {
  background: var(--ib-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-login {
  color: #30415f;
  font-weight: 600;
  font-size: 15px;
}
.ib-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ib-blue);
  color: #fff;
  border: 1px solid var(--ib-blue);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 5px 14px rgba(33,97,255,.18);
}
.ib-button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(.97);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ib-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ib-ink);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: auto;
  content: "";
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.ib-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 78px;
  background:
    radial-gradient(circle at 8% 25%, rgba(111,160,255,.22), transparent 31%),
    radial-gradient(circle at 90% 25%, rgba(177,105,255,.16), transparent 30%),
    #fff;
}
.ib-blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .4;
  background-image: radial-gradient(#ccd6e5 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}
.ib-blog-hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  color: var(--ib-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ib-blog-hero h1 {
  margin: 0;
  color: var(--ib-ink);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -2.8px;
  font-weight: 800;
}
.ib-gradient-text {
  background: linear-gradient(90deg, #2867ff, #8150ef, #10ad8c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ib-blog-hero p {
  max-width: 650px;
  margin: 22px auto 0;
  font-size: 18px;
  color: #5b6c88;
}

/* Main / cards */
.site-main { min-height: 400px; }
.ib-section { padding: 72px 0; }
.ib-section--soft { background: var(--ib-soft); }
.ib-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.ib-section-head h2 {
  margin: 0;
  color: var(--ib-ink);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.3px;
}
.ib-section-head p { margin: 5px 0 0; }

.ib-featured {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ib-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--ib-shadow);
}
.ib-featured__media {
  min-height: 390px;
  background: #edf2f9;
}
.ib-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ib-featured__body {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ib-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--ib-muted);
  font-size: 13px;
  font-weight: 600;
}
.ib-category {
  color: var(--ib-blue);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ib-featured h2 {
  margin: 12px 0 14px;
  color: var(--ib-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}
.ib-featured h2 a { color: inherit; }
.ib-featured h2 a:hover { text-decoration: none; color: var(--ib-blue); }
.ib-featured__excerpt { margin: 0 0 22px; }

.ib-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ib-post-card {
  overflow: hidden;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ib-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ib-shadow);
}
.ib-post-card__media {
  aspect-ratio: 16 / 9;
  background: #edf2f9;
  overflow: hidden;
}
.ib-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ib-post-card__body { padding: 22px; }
.ib-post-card h3 {
  margin: 9px 0 9px;
  color: var(--ib-ink);
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -.5px;
}
.ib-post-card h3 a { color: inherit; }
.ib-post-card h3 a:hover { color: var(--ib-blue); text-decoration: none; }
.ib-post-card__excerpt { font-size: 14px; }
.ib-read-more {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}

/* Article */
.ib-article-header {
  padding: 72px 0 42px;
  text-align: center;
}
.ib-article-header__inner { max-width: 900px; margin: 0 auto; }
.ib-article-title {
  margin: 12px 0 16px;
  color: var(--ib-ink);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -2.3px;
}
.ib-article-summary {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  color: #5b6c88;
}
.ib-article-featured {
  max-width: 1040px;
  margin: 0 auto 54px;
  border-radius: 20px;
  overflow: hidden;
  background: #edf2f9;
}
.ib-article-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.ib-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.entry-content {
  color: #334968;
  font-size: 17px;
}
.entry-content > * { max-width: 100%; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ib-ink);
  line-height: 1.25;
  letter-spacing: -.7px;
  margin-top: 42px;
}
.entry-content h2 { font-size: 31px; }
.entry-content h3 { font-size: 25px; }
.entry-content p { margin: 0 0 22px; }
.entry-content ul,
.entry-content ol { margin-bottom: 24px; padding-left: 24px; }
.entry-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--ib-blue);
  border-radius: 0 12px 12px 0;
  background: var(--ib-soft);
  color: var(--ib-ink);
  font-size: 19px;
}
.entry-content pre {
  overflow: auto;
  padding: 20px;
  border-radius: 12px;
  background: #10182d;
  color: #fff;
}
.entry-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f0f3f8;
}
.entry-content pre code { background: transparent; padding: 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}
.entry-content th,
.entry-content td {
  padding: 11px 13px;
  border: 1px solid var(--ib-border);
  text-align: left;
}
.wp-block-image img { border-radius: 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--ib-muted); font-size: 13px; }

.ib-article-footer { margin-top: 48px; }
.ib-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ib-tag {
  padding: 6px 10px;
  border: 1px solid var(--ib-border);
  border-radius: 999px;
  color: var(--ib-muted);
  font-size: 13px;
}
.ib-tag:hover { background: var(--ib-soft); text-decoration: none; }

/* CTA */
.ib-cta {
  margin: 72px 0;
  padding: 58px 30px;
  border-radius: 20px;
  background: #10182d;
  color: #d6deeb;
  text-align: center;
}
.ib-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.ib-cta p { max-width: 650px; margin: 0 auto 25px; }
.ib-cta .ib-button { margin: 0 4px; }
.ib-cta .ib-button--outline {
  background: transparent;
  border-color: #6c7d98;
  box-shadow: none;
}

/* Pagination / search / archive */
.ib-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}
.ib-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ib-border);
  border-radius: 9px;
  color: var(--ib-ink);
  font-weight: 700;
}
.ib-pagination .current {
  background: var(--ib-blue);
  color: #fff;
  border-color: var(--ib-blue);
}
.ib-archive-header {
  padding: 64px 0 30px;
}
.ib-archive-header h1 {
  margin: 0;
  color: var(--ib-ink);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.8px;
}
.ib-search-form {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 28px 0 0;
}
.ib-search-form input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ib-border);
  border-radius: 10px;
  outline: none;
}
.ib-search-form input:focus { border-color: var(--ib-blue); box-shadow: 0 0 0 3px rgba(33,97,255,.10); }

/* Comments */
.comments-area {
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid var(--ib-border);
}
.comments-title { color: var(--ib-ink); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--ib-border);
}
.comment-meta { font-size: 13px; }
.comment-content { color: var(--ib-text); }
.comment-respond { margin-top: 34px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--ib-border);
  border-radius: 10px;
  padding: 11px 13px;
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit {
  background: var(--ib-blue);
  color: #fff;
  border: 1px solid var(--ib-blue);
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--ib-border);
  background: #fff;
}
.ib-footer-main { padding: 58px 0 46px; }
.ib-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 38px;
}
.ib-footer-brand p {
  max-width: 270px;
  margin: 15px 0 0;
  color: var(--ib-muted);
  font-size: 14px;
}
.ib-footer-col h3 {
  margin: 0 0 12px;
  color: var(--ib-ink);
  font-size: 14px;
}
.ib-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ib-footer-col li { margin: 7px 0; }
.ib-footer-col a {
  color: #687b98;
  font-size: 14px;
}
.ib-footer-col a:hover { color: var(--ib-blue); }
.ib-footer-bottom {
  border-top: 1px solid var(--ib-border);
  padding: 18px 0;
}
.ib-footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #8292aa;
  font-size: 13px;
}
.ib-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.ib-footer-legal a { color: #7183a0; }
.ib-footer-social { display: flex; gap: 8px; }
.ib-footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ib-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #647792;
  font-weight: 700;
}
.ib-footer-social a:hover { text-decoration: none; color: var(--ib-blue); border-color: #b9c8dd; }

/* WordPress core alignment */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.wp-block-button__link { border-radius: 10px; }
.wp-block-separator { border-color: var(--ib-border); }
.gallery { display: grid; gap: 16px; }
.sticky { outline: none; }
.bypostauthor { outline: none; }

/* Responsive */
@media (max-width: 1020px) {
  .primary-nav { order: 5; width: 100%; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
  .primary-nav a { display: block; padding: 10px 4px; }
  .primary-nav .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
  }
  .site-header__inner { flex-wrap: wrap; gap: 12px 18px; padding: 10px 0; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-login { display: none; }
  .site-header .ib-button { min-height: 40px; padding: 0 14px; }
  .ib-featured { grid-template-columns: 1fr; }
  .ib-featured__media { min-height: 300px; }
  .ib-post-grid { grid-template-columns: repeat(2, 1fr); }
  .ib-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .ib-footer-brand { grid-column: span 3; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--ib-container)); }
  .ib-announcement { padding-inline: 34px; }
  .ib-blog-hero { padding: 62px 0 58px; }
  .ib-blog-hero h1 { letter-spacing: -1.8px; }
  .ib-section { padding: 54px 0; }
  .ib-section-head { display: block; }
  .ib-section-head h2 { font-size: 29px; }
  .ib-post-grid { grid-template-columns: 1fr; }
  .ib-featured__body { padding: 28px; }
  .ib-article-header { padding: 52px 0 28px; }
  .ib-article-title { letter-spacing: -1.5px; }
  .ib-article-featured { border-radius: 14px; margin-bottom: 34px; }
  .entry-content { font-size: 16px; }
  .ib-cta { padding: 42px 20px; margin: 52px 0; }
  .ib-cta .ib-button { width: 100%; margin: 4px 0; }
  .ib-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .ib-footer-brand { grid-column: span 2; }
  .ib-footer-bottom__inner { display: block; }
  .ib-footer-social { margin-top: 16px; }
}


/* Public site shell: never inherit a boxed canvas from a plugin/theme wrapper. */
body > .site,
body > #page,
body > .wp-site-blocks {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  box-shadow: none;
}

/* Keep the marketing-site visual rhythm on common WordPress generated elements. */
.site-header,
.site-main,
.site-footer {
  width: 100%;
}

.site-header .container,
.site-footer .container,
.site-main .container {
  box-sizing: border-box;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
  max-width: 100%;
}

/*
 * v1.4 public canvas hardening.
 * The theme owns the public page canvas; content width is controlled only
 * by .container. These rules intentionally avoid changing wp-admin.
 */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

#page,
#page.site,
.site,
.site-content,
.site-main,
#content,
.wp-site-blocks,
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > .wp-block-template-part {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#page,
#page.site,
.site,
.wp-site-blocks {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

/* Footer menu columns may contain nested WordPress menus. */
.ib-footer-col .menu,
.ib-footer-col .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ib-footer-col .sub-menu {
  padding-left: 14px;
}


/* v1.5: compact desktop header, matching InfluBid marketing site */
@media (min-width: 781px) {
  .site-header__inner {
    min-height: 64px !important;
    height: 64px;
  }

  .custom-logo {
    max-height: 34px;
  }

  .ib-logo-fallback {
    font-size: 24px;
    line-height: 1;
  }

  .ib-logo-mark {
    width: 26px;
    height: 30px;
  }

  .header-actions {
    height: 64px;
  }

  .header-login {
    line-height: 36px;
  }

  .site-header .ib-button {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 16px !important;
    line-height: 1;
  }
}


/* v1.6: exact InfluBid header alignment
 * Zone 1 = logo/brand (left)
 * Zone 2 = WordPress primary menu (center)
 * Zone 3 = login / CTA / theme toggle (right)
 */
@media (min-width: 781px) {
  .site-header .site-header__inner {
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px !important;
    min-height: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
    align-items: center !important;
    column-gap: 24px !important;
  }

  .site-header .site-branding {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
  }

  .site-header .primary-nav {
    grid-column: 2;
    justify-self: center;
    min-width: max-content;
  }

  .site-header .header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    height: 64px !important;
    min-width: 0;
  }

  .site-header .primary-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .site-header .primary-nav > ul > li {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) and (min-width: 781px) {
  .site-header .site-header__inner {
    width: calc(100% - 32px);
    column-gap: 14px !important;
  }

  .site-header .primary-nav > ul {
    gap: 18px;
  }
}

@media (min-width: 781px) {
  .site-header .ib-theme-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ib-border);
    color: var(--ib-text);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
  }
}
