/* ================================================================
   MS SEO GUIDE — category-seo-guide.css
   Scoped entirely to .ms-seo-guide. Loaded only on category pages
   where Model.CurrentCategory.NewSEOVersion == true.

   Rules marked !important beat the global .description__content
   overrides in articles3.css / category-rfq-cro.min.css that would
   otherwise force list-style and display back to unwanted values.
   ================================================================ */

.ms-seo-guide {
  --ms-cyan: #01b4c8;
  --bgcolor-theme: #01b4c8;
  --ms-cyan-soft: rgba(1,180,200,0.12);
  --text: #434343;
  --text-soft: #6a6a6a;
  --stone-blue-light: #e1f6f8;
  --rule: #e8e6e1;
  --rule-soft: #efeee9;
  --sans: "Inter","Proxima Nova",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  width: 100%;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.ms-seo-guide *,
.ms-seo-guide *::before,
.ms-seo-guide *::after { box-sizing: border-box; }

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.ms-seo-guide__layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.ms-seo-guide__content {
  flex: 1;
  min-width: 0;
  padding-right: 32px;
}

/* ================================================================
   TOC COLUMN
   ================================================================ */
.ms-seo-guide .ms-toc-col {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 15px;
  align-self: flex-start;
  padding: 23px 10px 80px 28px;
}

/* TOC card */
.ms-seo-guide .ms-toc {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--rule);
}

/* TOC title row */
.ms-seo-guide .ms-toc__title {
  font-weight: bold;
  font-size: 14px;
  color: #222;
  padding: 12px 14px 10px;
  line-height: 1.35em;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

/* Scrollable list area */
.ms-seo-guide .ms-toc__scroll {
  max-height: 340px;
  overflow-y: auto;
  padding: 10px 14px 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.ms-seo-guide .ms-toc__scroll::-webkit-scrollbar { width: 4px; }
.ms-seo-guide .ms-toc__scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* Vertical rule list
   list-style: none !important beats global rules that re-enable
   ::marker bullets inside .description__content */
.ms-seo-guide .ms-toc__list {
  list-style: none !important;
  margin: 0 0 0 14px !important;
  padding: 0 0 0 26px !important;
  border-left: 2px solid #e0e0e0;
}
.ms-seo-guide .ms-toc__item {
  margin-bottom: 12px;
  position: relative;
}
.ms-seo-guide .ms-toc__item:last-child { margin-bottom: 0; }

/* TOC link — flex so bullet + text align correctly */
.ms-seo-guide .ms-toc__link {
  color: #555 !important;
  font-size: 13px;
  line-height: 1.35em;
  text-decoration: none !important;
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.2s;
}
.ms-seo-guide .ms-toc__link:hover,
.ms-seo-guide .ms-toc__link.active {
  color: var(--bgcolor-theme, #01b4c8) !important;
}

/* Bullet dot — sits on the border-left line */
.ms-seo-guide .ms-toc__bullet {
  width: 7px;
  height: 7px;
  min-width: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #ccc;
  margin-top: 4px;
  margin-left: -30px;
  transition: background-color 0.2s;
}
.ms-seo-guide .ms-toc__link:hover .ms-toc__bullet,
.ms-seo-guide .ms-toc__link.active .ms-toc__bullet {
  background-color: var(--bgcolor-theme, #01b4c8);
}

/* ================================================================
   GQ WIDGET
   ================================================================ */
.ms-seo-guide .ms-toc-gq {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 16px 14px;
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: auto;
}
.ms-seo-guide .ms-toc-gq > * { margin: 0 !important; }

.ms-seo-guide .ms-toc-gq__title {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.35em;
  color: #222;
  text-align: center;
}

/* Delivery location dropdown */
.ms-seo-guide .ms-toc-dd { position: relative; width: 100%; }
.ms-seo-guide .ms-toc-dd__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 36px 0 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #fff;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  outline: none;
  position: relative;
  font-family: var(--sans);
}
.ms-seo-guide .ms-toc-dd__icon { flex-shrink: 0; display: block; }
.ms-seo-guide .ms-toc-dd__label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-seo-guide .ms-toc-dd__caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid #666;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  pointer-events: none;
}

/* !important ensures global .description__content ul rules
   cannot override display:none on the dropdown list */
.ms-seo-guide .ms-toc-dd__list {
  display: none !important;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ms-seo-guide .ms-toc-dd--open .ms-toc-dd__list { display: block !important; }
.ms-seo-guide .ms-toc-dd__item { padding: 8px 14px; font-size: 13px; color: #444; cursor: pointer; list-style: none !important; }
.ms-seo-guide .ms-toc-dd__item:hover { background-color: #f5f5f5; color: var(--bgcolor-theme, #01b4c8); }

/* Get Quotes button */
.ms-seo-guide .ms-toc-gq__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background-color: var(--bgcolor-theme, #01b4c8);
  color: #434343;
  border-radius: 20px;
  padding: 11px 0;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity 0.15s;
}
.ms-seo-guide .ms-toc-gq__btn:hover { opacity: 0.88; color: #434343; text-decoration: none; }

/* Buyers row */
.ms-seo-guide .ms-toc-gq__buyers { display: flex; align-items: center; gap: 10px; }
.ms-seo-guide .ms-toc-gq__avatars { display: flex; flex-shrink: 0; }
.ms-seo-guide .ms-toc-gq__avatars img { height: 32px; width: auto; display: block; }
.ms-seo-guide .ms-toc-gq__buyers-text { font-style: italic; font-size: 12px; color: #666; line-height: 1.3em; }

/* ================================================================
   SECTIONS & HEADINGS
   ================================================================ */
.ms-seo-guide .section { margin-bottom: 52px; scroll-margin-top: 32px; }
.ms-seo-guide .section:last-child { margin-bottom: 0; }

.ms-seo-guide h2.section-h {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 18px;
}
.ms-seo-guide .section-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 22px;
}
.ms-seo-guide .section-lead strong { font-weight: 700; }

/* ================================================================
   PROSE
   ================================================================ */
.ms-seo-guide .prose p { font-size: 17px; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.ms-seo-guide .prose p:last-child { margin-bottom: 0; }
.ms-seo-guide .prose p strong { font-weight: 700; color: var(--text); }
.ms-seo-guide .prose ul { list-style: none !important; padding: 0 !important; margin: 0 0 16px !important; }
.ms-seo-guide .prose ul li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  list-style: none !important;
}
.ms-seo-guide .prose ul li::marker { display: none; content: ""; }
.ms-seo-guide .prose ul li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--ms-cyan);
  border-radius: 50%;
}
.ms-seo-guide .prose ul li strong { font-weight: 700; color: var(--text); }

/* ================================================================
   CALLOUT
   ================================================================ */
.ms-seo-guide .callout {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ms-cyan);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0 0;
}
.ms-seo-guide .callout-h {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}
.ms-seo-guide .callout-body { font-size: 15.5px; line-height: 1.55; color: var(--text); }
.ms-seo-guide .callout-body strong { font-weight: 700; }

/* ================================================================
   DATA TABLE
   ================================================================ */
.ms-seo-guide .data-table-wrap {
  margin: 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow-x: auto;
}
.ms-seo-guide .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 360px;
}
.ms-seo-guide .data-table th {
  font-weight: 700;
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border-bottom: 2px solid var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.ms-seo-guide .data-table th .th-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 3px;
  white-space: normal;
}
.ms-seo-guide .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--text-soft);
  font-size: 14.5px;
}
.ms-seo-guide .data-table td:first-child { font-weight: 700; color: var(--text); }
.ms-seo-guide .data-table td strong { color: var(--text); font-weight: 700; }
.ms-seo-guide .data-table tr.highlight td { background: var(--stone-blue-light); color: var(--text); }
.ms-seo-guide .data-table tr.highlight td strong { color: var(--text); }
.ms-seo-guide .data-table tr:last-child td { border-bottom: none; }

/* ================================================================
   USE-CASE TILES
   ================================================================ */
.ms-seo-guide .usecase-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.ms-seo-guide .usecase-tile {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  border-top: 3px solid var(--ms-cyan);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.ms-seo-guide .usecase-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.ms-seo-guide .usecase-tile.default { background: var(--stone-blue-light); }
.ms-seo-guide .default-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--ms-cyan);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.ms-seo-guide .usecase-tile-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text);
}
.ms-seo-guide .usecase-tile-icon svg { width: 32px; height: 32px; }
.ms-seo-guide .usecase-tile-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; margin-bottom: 5px; }
.ms-seo-guide .usecase-tile-fit { font-size: 14px; color: var(--text-soft); font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.ms-seo-guide .usecase-tile-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.ms-seo-guide .usecase-tile-price small { font-size: 11.5px; font-weight: 500; color: var(--text-soft); display: block; margin-top: 3px; }
.ms-seo-guide .usecase-tile-detail { margin-bottom: 7px; font-size: 13px; line-height: 1.45; }
.ms-seo-guide .usecase-tile-detail:last-child { margin-bottom: 0; }
.ms-seo-guide .usecase-tile-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.ms-seo-guide .usecase-tile-value { color: var(--text); font-weight: 500; }
.ms-seo-guide .usecase-tile-value strong { font-weight: 700; }

/* ================================================================
   PROS / CONS
   ================================================================ */
.ms-seo-guide .proscons-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 16px;
}
.ms-seo-guide .proscons-col + .proscons-col { border-left: 1px solid var(--rule); }
.ms-seo-guide .proscons-head {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 2px solid var(--text);
  background: #fff;
}
.ms-seo-guide .proscons-list { padding: 4px 16px 12px; list-style: none !important; }
.ms-seo-guide .proscons-list-item {
  padding: 9px 0 9px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  border-bottom: 1px solid var(--rule);
  position: relative;
  list-style: none !important;
}
.ms-seo-guide .proscons-list-item:last-child { border-bottom: none; }
.ms-seo-guide .proscons-list-item::marker { display: none; content: ""; }
.ms-seo-guide .proscons-list-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 15px;
  height: 15px;
  background: var(--text-soft);
}
.ms-seo-guide .proscons-list-item.pro:before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' stroke='%23000' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' stroke='%23000' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}
.ms-seo-guide .proscons-list-item.con:before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>") no-repeat center / contain;
}
.ms-seo-guide .proscons-list-item strong { color: var(--text); font-weight: 700; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.ms-seo-guide .faq-list { margin-top: 8px; }
.ms-seo-guide .faq-item { border-top: 1px solid var(--rule); }
.ms-seo-guide .faq-item:last-of-type { border-bottom: 1px solid var(--rule); }
.ms-seo-guide .faq-q-btn {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-family: var(--sans);
}
.ms-seo-guide .faq-q-text { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.45; flex: 1; }
.ms-seo-guide .faq-chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ms-cyan);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s;
}
.ms-seo-guide .faq-item.open .faq-chev { transform: rotate(45deg); }
.ms-seo-guide .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.ms-seo-guide .faq-item.open .faq-a { max-height: 600px; padding: 0 0 18px; }
.ms-seo-guide .faq-a p { margin-bottom: 10px; }
.ms-seo-guide .faq-a p:last-child { margin-bottom: 0; }
.ms-seo-guide .faq-a strong { color: var(--text); font-weight: 700; }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.ms-seo-guide .how-wrap {
  background: var(--stone-blue-light);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 36px 32px 32px;
  margin-top: 8px;
}
.ms-seo-guide .how-wrap .section-h { text-align: center; margin-bottom: 8px; }
.ms-seo-guide .how-wrap .section-lead { text-align: center; margin: 0 auto 28px; color: var(--text-soft); }
.ms-seo-guide .how-cards { display: flex; flex-direction: column; gap: 12px; }
.ms-seo-guide .how-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ms-cyan);
  border-radius: 8px;
  padding: 20px 24px 20px 20px;
}
.ms-seo-guide .how-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--rule);
  padding-right: 10px;
  align-self: stretch;
}
.ms-seo-guide .how-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ms-cyan); line-height: 1; }
.ms-seo-guide .how-icon { width: 22px; height: 22px; color: var(--ms-cyan); flex-shrink: 0; }
.ms-seo-guide .how-icon svg { width: 100%; height: 100%; }
.ms-seo-guide .how-body { padding-top: 3px; }
.ms-seo-guide .how-h { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.005em; line-height: 1.3; margin-bottom: 5px; }
.ms-seo-guide .how-text { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
.ms-seo-guide .how-text strong { color: var(--text); font-weight: 700; }
.ms-seo-guide .how-foot {
  margin-top: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ms-seo-guide .how-foot-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--ms-cyan-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-cyan);
}
.ms-seo-guide .how-foot-badge svg { width: 15px; height: 15px; }
.ms-seo-guide .how-foot strong { color: var(--text); font-weight: 700; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .ms-seo-guide h2.section-h { font-size: 23px; }
  .ms-seo-guide .usecase-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ms-seo-guide .usecase-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .ms-seo-guide .ms-toc-col { display: none; }
  .ms-seo-guide__layout { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .ms-seo-guide { font-size: 16px; }
  .ms-seo-guide .section { margin-bottom: 38px; }
  .ms-seo-guide h2.section-h { font-size: 21px; margin-bottom: 13px; }
  .ms-seo-guide .section-lead { font-size: 15px; }
  .ms-seo-guide .prose p,
  .ms-seo-guide .prose ul li { font-size: 15px; }
  .ms-seo-guide .data-table th,
  .ms-seo-guide .data-table td { padding: 10px 11px; font-size: 13.5px; }
  .ms-seo-guide .callout { padding: 12px 14px; }
  .ms-seo-guide .callout-body { font-size: 14.5px; }
  .ms-seo-guide .proscons-wrap { grid-template-columns: 1fr; }
  .ms-seo-guide .proscons-col + .proscons-col { border-left: none; border-top: 1px solid var(--rule); }
  .ms-seo-guide .faq-q-text { font-size: 15px; }
  .ms-seo-guide .faq-q-btn { padding: 14px 0; }
  .ms-seo-guide .how-wrap { padding: 26px 16px 22px; }
  .ms-seo-guide .how-card { grid-template-columns: 1fr; gap: 0; padding: 18px; }
  .ms-seo-guide .how-marker {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    align-self: auto;
  }
  .ms-seo-guide .how-num { font-size: 22px; }
  .ms-seo-guide .how-foot { flex-wrap: wrap; }
}
