/* =========================
   GLOBAL TWEAKABLES
========================= */
:root{
  /* Page shell */
  --kb-max: 1200px;   /* centered container width */
  --kb-pad: 20px;     /* side padding inside the shell */

  /* Article layout */
  --kb-sidebar-w: 320px; /* left column width on article pages */
  --kb-gap: 28px;        /* gap between sidebar and article */
  --kb-top: 320px;       /* sticky offset under header; tweak 160–240 */
  --kb-content-max: 1000px; /* max width of article body (set to none to fill) */
}


/* ============ HEADER ============ */
.Header__header {
  background: #fff !important;
  padding: 40px 20px;
  color: white; /* header text/icons; rails override to dark */
}
.Header__headerContainer { max-width: var(--kb-max); margin: 0 auto; }

/* Top row: logo + help center + back button */
.Header__topRow {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

/* Logo + Help Center text */
.Header__brandArea { display: flex; align-items: center; gap: 12px; }
.Header__brandLogoImg { height: 100px; max-height: 10rem; max-width: 10rem; }
.Header__brandName { font-size: 1.5rem; font-weight: 600; color: #111; }

/* Back to Sofalistic button */
.BackToSofalisticButton {
  background: #000; border-radius: 999px; padding: 10px 20px;
  color: #fff; font-weight: 600; text-decoration: none; font-size: .9rem;
  transition: background .2s ease; white-space: nowrap;
}
.BackToSofalisticButton:hover { background: #000; color: #fff; }

/* Header search row */
.Header__searchWrapper {
  margin-top: 30px; display: flex; justify-content: center; width: 100%;
}

/* White pill search with 1–2px grey border (desktop + mobile) */
.Header__searchWrapper input[type="search"],
.Header__searchWrapper input[type="text"],
.searchPanelSearchBox input {
  -webkit-appearance: none; appearance: none;
  background: #fff !important; color: #111 !important;
  border: 2px solid #d0d0d0 !important;
  border-radius: 100px !important;
  padding: 14px 20px !important; box-shadow: none !important;
}
.Header__searchWrapper input::placeholder,
.searchPanelSearchBox input::placeholder { color: #666 !important; opacity: 1; }
.Header__searchWrapper input[type="search"]:focus,
.Header__searchWrapper input[type="text"]:focus,
.searchPanelSearchBox input:focus { border-color: #bfbfbf !important; outline: none; }

/* Zoho mobile search panel resets */
.searchPanelActive .searchPanelSearchBox { background: transparent !important; }
.searchPanelSearchBox { background: transparent !important; height: 2.4rem; border-radius: .2rem; }

/* Responsive header bits */
@media (max-width: 768px) {
  .Header__topRow { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
  .BackToSofalisticButton { margin-top: 0; }
  .Header__brandArea { flex-shrink: 1; min-width: 0; }
  .Header__searchWrapper { margin-top: 20px; justify-content: flex-start; }
  .Header__searchWrapper input { width: 100%; }

  /* Expose inline search UI on mobile */
  .Search__searchIcon { display: none !important; }
  .Search__searchPanel {
    display: block !important; position: static !important;
    opacity: 1 !important; visibility: visible !important;
    background: transparent !important; max-height: none !important; padding: 0 !important;
  }
  .Search__searchPanelInner {
    display: flex !important; flex-direction: column !important;
    background: transparent !important; box-shadow: none !important;
  }
  .Search__searchPanelControls {
    display: flex !important; width: 80vw !important; max-width: 100vw !important;
    box-sizing: border-box; padding-right: 10px;
  }
  .searchPanelSearchBox {
    flex: 1; position: relative !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  }
  .searchPanelSearchBox input {
    all: unset; display: block; width: 100% !important;
    padding: 14px 20px; font-size: 1rem; border-radius: 0; color: #000 !important; box-sizing: border-box;
  }
  .searchPanelSearchBox input::placeholder { color: #666 !important; opacity: 1; }
  .Search__searchPanelIcon { display: inline-block !important; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); }
  .Search__searchPanelIcon svg { fill: #333 !important; width: 20px; height: 20px; }
  .Search__searchPanelClose, .searchPanelSections { display: none !important; }
}


/* ============ KB / DEFAULT PANELS ============ */
.KBArticleDetailLeftContainer__kbDetPral {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
}

/* Category grid (home) */
.KBArticleListLeftContainer__kbListMin {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: 1000px; margin: 0 auto; padding: 20px;
}
@media only screen and (min-width: 48.1em) {
  .KBArticleListLeftContainer__kbListMin { min-height: auto !important; }
}

/* Cards */
.CategoryList__articleCard {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 20px; transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none; color: inherit;
}
.CategoryList__articleCard:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.CategoryList__navItemTitle { font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; display: block; }
.CategoryList__description { color: #666; font-size: .95rem; margin-bottom: 10px; }
.CategoryList__categoryIcon svg { width: 40px; height: 40px; fill: #4a4a4a; margin-right: 15px; display: none; }

/* Per-section custom icons (keep your data-URIs) */
[data-id="kb_section_Buying"] .CategoryList__categoryIcon::before,
[data-id="kb_section_Selling"] .CategoryList__categoryIcon::before,
[data-id="kb_section_Collection_and_Delivery"] .CategoryList__categoryIcon::before,
[data-id="kb_section_About_Sofalistic"] .CategoryList__categoryIcon::before {
  content: ""; display: inline-block; width: 40px; height: 40px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* Misc links in article summaries */
.ArticlesCard__articleLink {
  display: block; background: #fff; padding: 5px; margin-bottom: 10px; border-radius: 8px;
}
.ArticlesCard__articleCard:last-child, .ArticlesCard__articleCard1:last-child { border-bottom: 0; }

/* Flatten shadowed wrapper panels */
.Feed__feedshadow1 { background: none !important; box-shadow: none !important; border: none !important; }

/* Default page layout shell */
.Layout__layout2 { display: none !important; }
.Layout__twoColumn { display: block !important; }
.Layout__layout1 { width: 100%; max-width: var(--kb-max); margin: 0 auto; padding: 20px; }

/* Stop any outer wrapper from widening page */
.Layout__layout1, .Layout__twoColumn { min-width: 0 !important; }
html, body { overflow-x: hidden; }


/* ============ RAILS (CAROUSEL) ============ */
.HC, .HC h1, .HC h2, .HC h3, .HC p, .HC a { color: #111 !important; }
.HC .HC__seeAll { color: #0f62fe !important; }

/* Page shell (toc + main) */
.HC {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: var(--kb-max) !important;
  margin: 24px auto 40px;
  padding: 0 20px;
  position: relative; z-index: 1;
}
.HC__toc {
  position: sticky; top: 24px; align-self: start;
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px;
}
.HC__toc h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.HC__toc ul { list-style: none; padding: 0; margin: 0; }
.HC__toc li { margin: 6px 0; }
.HC__toc a { text-decoration: none; color: #333; font-size: 14px; }
.HC__toc a:hover { text-decoration: underline; }
@media (max-width: 960px) { .HC { grid-template-columns: 1fr; } .HC__toc { position: static; order: 2; } }

/* Rail header */
.HC__rail { position: relative; margin-bottom: 28px; }
.HC__railHead { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.HC__railHead h2 { font-size: 18px; font-weight: 700; color: #111; margin: 0; }

/* Carousel: robust flex scroller */
.HC__carousel {
  display: flex !important; flex-wrap: nowrap !important; gap: 16px;
  overflow-x: auto !important; overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  padding: 4px 6px 12px;
}
.HC__carousel::-webkit-scrollbar { display: none; }
.HC__carousel { scrollbar-width: none; }

/* Cards */
.HC__card {
  flex: 0 0 320px !important; max-width: 320px !important; scroll-snap-align: start;
  display: block; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px;
  text-decoration: none; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.HC__card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,0.08); }
.HC__card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.HC__card p { margin: 0 0 10px; color: #555; font-size: 14px; line-height: 1.35; }
.HC__meta { display: inline-block; font-size: 12px; color: #7a7a7a; }

@media (max-width: 520px) {
  .HC__carousel { scroll-padding-left: 16px; }
  .HC__card { flex-basis: 86vw !important; max-width: 86vw !important; }
}

/* Faded edges — left removed, right kept */
.HC__rail--faded::before { display: none !important; }
.HC__rail--faded::after {
  content: ""; position: absolute; top: 32px; bottom: 6px; right: 0;
  width: 10px; pointer-events: none; z-index: 1;
  background: #F5F5F5; opacity:0.97;
}

/* Prevent layout blowouts */
.HC, .HC__main, .HC__rail, .HC__carousel { min-width: 0 !important; }

/* Divider */
.line-top {
  border: 4px solid #FF0088; border-radius: 100px;
  margin-top: 10px; margin-bottom: 30px; opacity: 1;
}


/* ============ SHOW RAILS ONLY ON HOME ============ */
#SofaRails { display: grid; }

/* Hide on ARTICLE detail pages */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaRails { display: none !important; }

/* Hide on CATEGORY/SECTION list pages (but not home) */
html:has(.ArticlesCard__articleCard):not(:has(.KBArticleListLeftContainer__kbListMin)) #SofaRails {
  display: none !important;
}

/* Optional: hide on search & case/ticket views */
html:has(.Search__searchResults) #SofaRails,
html:has(.TicketDetail__ticketDetailContainer) #SofaRails,
html:has(.Cases__caseDetailContainer) #SofaRails { display: none !important; }


/* ============ HOME ONLY: hide Zoho's default panels ============ */
html:has(.KBArticleListLeftContainer__kbListMin) .KBArticleListLeftContainer__kbListMin,
html:has(.KBArticleListLeftContainer__kbListMin) .CategoryList__categoryHeader,
html:has(.KBArticleListLeftContainer__kbListMin) .CategoryList__categoryTitle,
html:has(.KBArticleListLeftContainer__kbListMin) .CategoryList__articleCard,

/* “Recent/Popular articles” panels */
html:has(.KBArticleListLeftContainer__kbListMin) .ArticlesCard__articleCard,
html:has(.KBArticleListLeftContainer__kbListMin) .ArticlesCard__articleCard1,
html:has(.KBArticleListLeftContainer__kbListMin) .ArticlesCard__articleLink,

/* Any feed headers/strips some skins show */
html:has(.KBArticleListLeftContainer__kbListMin) .Feed__feedHeader {
  display: none !important;
}

/* Remove Zoho's main column entirely on home so it doesn't take height */
html:has(.KBArticleListLeftContainer__kbListMin) .Layout__layout1,
html:has(.KBArticleListLeftContainer__kbListMin) .Layout__twoColumn,
html:has(.KBArticleListLeftContainer__kbListMin) .Feed__feedshadow1 { display: none !important; }


/* ============ CATEGORY PAGES ONLY (styling) ============ */
html:has(.CategoryList__categoryHeader) .CategoryList__categoryHeader{
  background:#f7f7f8; border:1px solid #eee; border-radius:12px; padding:16px 18px; margin-bottom:16px;
}
html:has(.CategoryList__categoryHeader) .CategoryList__categoryTitle{
  margin:0; font-size:28px; line-height:1.2; font-weight:800; color:#111;
}
html:has(.CategoryList__categoryHeader) .CategoryList__categoryDesc{
  margin-top:6px; color:#555; font-size:15px;
}
html:has(.CategoryList__categoryHeader) .ArticlesCard__articleLink{
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; border:1px solid #eee; border-radius:12px; padding:12px 14px; margin-bottom:10px;
  text-decoration:none; color:#111;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
html:has(.CategoryList__categoryHeader) .ArticlesCard__articleLink:hover{
  transform:translateY(-2px); border-color:#e3e3e3; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
html:has(.CategoryList__categoryHeader) .ArticlesCard__articleLink .List__list{
  color:#7a7a7a; font-size:12px; margin-left:16px;
}


/* ============ ARTICLE PAGE: final 2-column grid (sidebar + article) ============ */

/* 0) Hide sidebar everywhere by default */
#SofaCategorySidebars { display: none !important; }

/* 1) Turn the centered shell into a grid only on ARTICLE pages */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  max-width: var(--kb-max);
  padding-left: var(--kb-pad);
  padding-right: var(--kb-pad);

  display: grid !important;
  grid-template-columns: var(--kb-sidebar-w) minmax(0,1fr);
  gap: var(--kb-gap);
  align-items: start;
  grid-auto-flow: dense;
}

/* 2) Sidebar column (left) */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important; width: auto !important; float: none !important;
}
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars .SofaSidebar{
  position: sticky; top: var(--kb-top); z-index: 5;
  background:#fff; border:1px solid #eee; border-radius:12px; padding:12px;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}
#SofaCategorySidebars .SofaSidebar h3{
  margin:4px 0 10px; font-size:16px; font-weight:800; color:#111;
}
#SofaCategorySidebars .SofaSidebar a{
  display:block; text-decoration:none; color:#111; font-size:14px;
  padding:10px 12px; border:1px solid #eee; border-radius:10px; margin-bottom:8px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
#SofaCategorySidebars .SofaSidebar a:hover{
  transform: translateY(-1px); border-color:#e3e3e3; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
#SofaCategorySidebars .SofaSidebar__seeAll{ font-weight:700; }

/* 3) Article column (right) */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important; clear: none !important; float: none !important;
  max-width: var(--kb-content-max);
  width: 100%; box-sizing: border-box;
}

/* 4) Show the correct sidebar list based on breadcrumb inside ARTICLE container */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars .SofaSidebar{ display:none; }

html:has(.KBArticleDetailLeftContainer__kbDetPral a[href*="/portal/en/kb/sofalistic/buying"])
  #SofaCategorySidebars .SofaSidebar--buying{ display:block; }
html:has(.KBArticleDetailLeftContainer__kbDetPral a[href*="/portal/en/kb/sofalistic/selling"])
  #SofaCategorySidebars .SofaSidebar--selling{ display:block; }
html:has(.KBArticleDetailLeftContainer__kbDetPral a[href*="/portal/en/kb/sofalistic/collection-and-delivery"])
  #SofaCategorySidebars .SofaSidebar--collection{ display:block; }
html:has(.KBArticleDetailLeftContainer__kbDetPral a[href*="/portal/en/kb/sofalistic/about-sofalistic"])
  #SofaCategorySidebars .SofaSidebar--about{ display:block; }

/* 5) Mobile: revert to single column */
@media (max-width: 1024px){
  html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
    display: block !important;
  }
  html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
    max-width: 100%;
  }
}

/* ===== CSS-ONLY FALLBACK: Sidebar outside the page shell ===== */
/* 1) Turn off the grid on article pages (it can’t affect an element outside) */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  display: block !important;
  max-width: var(--kb-max);
  padding-left: calc(var(--kb-pad) + var(--kb-sidebar-w) + var(--kb-gap)) !important; /* make room for the overlay */
  padding-right: var(--kb-pad);
  box-sizing: border-box;
}

/* 2) Overlay the sidebar at the left edge of the centered shell */
#SofaCategorySidebars{ display:none !important; } /* hide by default */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
  display: block !important;
  position: fixed;                         /* overlay so it doesn't push the article down */
  top: var(--kb-top);                      /* clear the header/search */
  left: calc((100vw - var(--kb-max))/2 + var(--kb-pad));
  width: var(--kb-sidebar-w);
  z-index: 100;                            /* clickable above content */
  pointer-events: auto;
  margin: 0 !important; float: none !important;
}

/* 3) Sidebar panel look */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars .SofaSidebar{
  position: static;                        /* fixed parent; no sticky needed */
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
#SofaCategorySidebars .SofaSidebar h3{ margin:4px 0 10px; font-size:16px; font-weight:800; color:#111; }
#SofaCategorySidebars .SofaSidebar a{
  display:block; text-decoration:none; color:#111; font-size:14px;
  padding:10px 12px; border:1px solid #eee; border-radius:10px; margin-bottom:8px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
#SofaCategorySidebars .SofaSidebar a:hover{
  transform: translateY(-1px); border-color:#e3e3e3; box-shadow:0 6px 18px rgba(0,0,0,.06);
}
#SofaCategorySidebars .SofaSidebar__seeAll{ font-weight:700; }

/* 4) Article body just uses the padding we added, so no overlap */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
  margin: 0 !important; max-width: var(--kb-content-max); width: 100%; box-sizing: border-box;
}

/* 5) Never show the sidebar on home/category/search */
html:has(.KBArticleListLeftContainer__kbListMin) #SofaCategorySidebars,
html:has(.ArticlesCard__articleCard) #SofaCategorySidebars,
html:has(.Search__searchResults) #SofaCategorySidebars{ display: none !important; }

/* 6) Mobile: drop the overlay & padding */
@media (max-width: 1024px){
  html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
    padding-left: var(--kb-pad) !important;
  }
  html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
    position: static !important; width: auto; margin: 16px 0 0 0 !important; left: auto; top: auto;
  }
}

:root{
  --kb-max: 1320px;
  --kb-content-max: none;  /* fill the right column */
  --kb-sidebar-w: 260px;
  --kb-gap: 24px;
}


/* =========================
   Disable Reader View + lock one width
   (paste at the very end)
========================= */

/* 1) Hide the Reader View toggle button(s) near the title */
html:has(.KBArticleDetailLeftContainer__kbDetPral)
  [title*="reader" i],
html:has(.KBArticleDetailLeftContainer__kbDetPral)
  [aria-label*="reader" i],
html:has(.KBArticleDetailLeftContainer__kbDetPral)
  [data-tooltip*="reader" i]{
  display:none !important;
}

/* 2) Force the article page to always use our 2-column grid */
:root{
  --kb-max: 1320px;         /* widen overall shell if you like (1200–1440) */
  --kb-pad: 20px;
  --kb-sidebar-w: 260px;    /* sidebar width */
  --kb-gap: 24px;           /* gap between columns */
  --kb-top: 340px;          /* sticky offset for sidebar */
  --kb-content-max: none;   /* one fixed behavior: fill right column
                               (or set to e.g. 1100px if you want a cap) */
}
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  max-width: var(--kb-max) !important;
  padding-left: var(--kb-pad) !important;
  padding-right: var(--kb-pad) !important;

  display: grid !important;
  grid-template-columns: var(--kb-sidebar-w) minmax(0,1fr) !important;
  gap: var(--kb-gap) !important;
  align-items: start !important;
  grid-auto-flow: dense !important;
}

/* 3) Sidebar stays in column 1 and is sticky */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
  display:block !important;
  grid-column:1 !important;
  grid-row:1 !important;
  margin:0 !important; width:auto !important; float:none !important;
}
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars .SofaSidebar{
  position: sticky; top: var(--kb-top) !important; z-index: 5;
}

/* 4) Article stays in column 2 at the same top line — regardless of reader mode */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
  grid-column:2 !important;
  grid-row:1 !important;
  margin:0 !important; clear:none !important; float:none !important;

  max-width: var(--kb-content-max) !important;
  width:100% !important;
  box-sizing:border-box !important;
}

/* 5) Extra belt-and-braces: if Zoho adds any “reader” class, ignore its layout changes */
html[class*="reader" i] .Layout__layout1,
body[class*="reader" i] .Layout__layout1{
  display: grid !important;
  grid-template-columns: var(--kb-sidebar-w) minmax(0,1fr) !important;
  gap: var(--kb-gap) !important;
}
html[class*="reader" i] .KBArticleDetailLeftContainer__kbDetPral{
  max-width: var(--kb-content-max) !important;
  width:100% !important;
  margin:0 !important;
}

/* 6) Make sure the sidebar never appears on home/category/search */
html:has(.KBArticleListLeftContainer__kbListMin) #SofaCategorySidebars,
html:has(.ArticlesCard__articleCard) #SofaCategorySidebars,
html:has(.Search__searchResults) #SofaCategorySidebars{
  display:none !important;
}


/* === Force wide article on ARTICLE pages, regardless of "reader" state === */
:root{
  --kb-max: 1400px;        /* widen whole page shell */
  --kb-sidebar-w: 240px;   /* slimmer sidebar -> more room for article */
  --kb-gap: 24px;
  --kb-content-max: none;  /* let article fill the right column */
}

/* Ensure the shell is a 2-col grid on article pages */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  max-width: var(--kb-max) !important;
  padding-left: var(--kb-pad) !important;
  padding-right: var(--kb-pad) !important;
  display: grid !important;
  grid-template-columns: var(--kb-sidebar-w) minmax(0,1fr) !important;
  gap: var(--kb-gap) !important;
  align-items: start !important;
}

/* Sidebar column */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
  display:block !important;
  grid-column:1 !important;
  grid-row:1 !important;
  margin:0 !important; width:auto !important; float:none !important;
  z-index: 3;
}

/* —— The important bit: remove ALL article caps Zoho applies —— */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral,
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral > *,
html:has(.KBArticleDetailLeftContainer__kbDetPral) [class*="kbDet"][class*="Container"],
html:has(.KBArticleDetailLeftContainer__kbDetPral) [class*="Article"][class*="Detail"],
html:has(.KBArticleDetailLeftContainer__kbDetPral) [class*="reader" i]{
  max-width: none !important;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Put the article in the right grid column */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
  grid-column:2 !important;
  grid-row:1 !important;
}

/* Keep images/content behaving nicely when we remove caps */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral img,
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral video{
  max-width: 100% !important;
  height: auto !important;
}

/* OPTIONAL: if the “overlay fallback” block is still present, neutralize its padding */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  padding-left: var(--kb-pad) !important;  /* undo overlay-left padding */
}

/* Hide any Reader toggle so users can’t switch widths */
html:has(.KBArticleDetailLeftContainer__kbDetPral) [title*="reader" i],
html:has(.KBArticleDetailLeftContainer__kbDetPral) [aria-label*="reader" i],
html:has(.KBArticleDetailLeftContainer__kbDetPral) [data-tooltip*="reader" i]{
  display:none !important;
}

/* Put this at the very end */

/* One dial for article-page width */
:root { --kb-article-max: 1300px; }   /* change to taste: 1320/1400/etc */

/* Article pages: widen the centered shell + keep grid */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  width: min(100%, var(--kb-article-max)) !important;  /* responsive width */
  max-width: none !important;                          /* beat Zoho caps */
  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: var(--kb-pad) !important;              /* undo any overlay padding */
  padding-right: var(--kb-pad) !important;

  display: grid !important;
  grid-template-columns: var(--kb-sidebar-w) minmax(0,1fr) !important;
  gap: var(--kb-gap) !important;
  align-items: start !important;
}

/* Ensure the article itself isn’t capped */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .KBArticleDetailLeftContainer__kbDetPral{
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile: drop back to single column */
@media (max-width: 1024px){
  html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
    display: block !important;
    width: 100% !important;
  }
}


/* =========================
   Hide PDF + Print on ARTICLE pages (robust)
========================= */

.KBArticleDetailLeftContainer__actionIcons {
    display: flex
;
    align-items: center;
    margin: .75rem 0 0;
    display: none;
}


.ArticleHeader__articleDetailHeader {
    font-weight: 600;
    font-size: 2.4rem;
    letter-spacing: 0;
    line-height: 1.14;
    padding-bottom: 30px;
  padding-top: 20px;
}

/* === LOCK SIDEBAR WIDTH ACROSS ALL ARTICLE SECTIONS (Buying/Selling/etc.) === */

/* Pick your final width ONCE here */
:root { --sofa-sidebar-w: 260px; }  /* change to 240/280 if you prefer */

/* Force the article page grid to use the same fixed column width */
html:has(.KBArticleDetailLeftContainer__kbDetPral) .Layout__layout1{
  grid-template-columns: var(--sofa-sidebar-w) minmax(0,1fr) !important;
}

/* Ensure the sidebar grid item itself never grows/shrinks */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars{
  width: var(--sofa-sidebar-w) !important;
  min-width: var(--sofa-sidebar-w) !important;
  max-width: var(--sofa-sidebar-w) !important;
  box-sizing: border-box !important;
}

/* The inner panel should not alter effective width due to padding/border */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars .SofaSidebar{
  box-sizing: border-box !important;
  width: 100% !important;   /* fill the fixed column */
}

/* If you still have the FIXED overlay fallback active anywhere, lock that too */
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars[style*="position: fixed"],
html:has(.KBArticleDetailLeftContainer__kbDetPral) #SofaCategorySidebars.position-fixed{
  width: var(--sofa-sidebar-w) !important;
  min-width: var(--sofa-sidebar-w) !important;
  max-width: var(--sofa-sidebar-w) !important;
}

/* Belt & braces: ignore any older --kb-sidebar-w values set earlier */
:root{
  --kb-sidebar-w: var(--sofa-sidebar-w) !important;
}

