/* Messen Labs: Resource Center "Explore" page (Knowledge Base home). See _ml_explore.html.erb */
/* Compact banner on the Explore page only, so topics and filters are visible without scrolling */
body:has(.ml-explore) .header .search { padding: 16px 0 22px !important; }
body:has(.ml-explore) .search::before { font-size: 24px !important; margin-bottom: 12px !important; }
body:has(.ml-explore) .search .search-field input[type='search'] { height: 46px !important; font-size: 15px !important; }
.main.ml-explore { margin-top: 0 !important; padding-top: 22px !important; }
.ml-explore .container { max-width: 1240px; }
.ml-x-h { margin: 0 0 10px; font-size: 21px; font-weight: 700; color: #0d1b33; }
.ml-x-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ml-x-hint { font-size: 13px; color: #667085; }
.ml-x-n { color: #98a2b3; font-weight: 600; }
.ml-x-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ml-x-topic { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; -moz-column-gap: 12px; column-gap: 12px; align-items: center; text-align: left; min-height: 68px; padding: 12px 14px;
  background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; cursor: pointer; font: inherit; color: #1f3a68;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ml-x-topic:hover { transform: translateY(-2px); border-color: #3CC8C0; }
.ml-x-topic.is-on { border: 2px solid #3CC8C0; box-shadow: 0 0 0 4px rgba(60,200,192,0.15); }
.ml-x-ticon { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: #eef1f6; color: #1f3a68; }
.ml-x-ticon svg { width: 22px; height: 22px; fill: currentColor; }
.ml-x-ticon--all { background: #0d1b33; color: #fff; }
.ml-x-ticon--all svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ml-x-topic.is-on .ml-x-ticon:not(.ml-x-ticon--all) { background: rgba(60,200,192,0.18); }
.ml-x-tname { align-self: end; font-size: 15px; font-weight: 700; line-height: 1.2; }
.ml-x-tcount { align-self: start; font-size: 12.5px; font-weight: 600; color: #98a2b3; }
.ml-x-subs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 12px 16px; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; }
.ml-x-subs[hidden], .ml-x-upcoming[hidden], .ml-x-pills[hidden], .ml-x-menu[hidden], .ml-x-empty[hidden], .ml-x-grid > li[hidden], .ml-x-opt[hidden], .ml-x-none[hidden], #ml-x-more[hidden], #ml-x-ddn[hidden] { display: none !important; }
.ml-x-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #667085; margin-right: 6px; }
.ml-x-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid #d0d5dd; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: #344054; cursor: pointer; }
.ml-x-chip em { font-style: normal; font-weight: 500; color: #98a2b3; margin-left: 3px; }
.ml-x-chip.is-on { background: #0d1b33; border-color: #0d1b33; color: #fff; }
.ml-x-chip.is-on em { color: #9fb0cc; }
.ml-x-upcoming { margin-bottom: 18px; }
.ml-x-upcoming .ml-wcard-media { display: none; }
.ml-x-upcoming .ml-wcard-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-x-upcoming .ml-wcard-body { padding: 16px 18px; gap: 8px; }
.ml-x-upcoming .ml-wcard-link { border-left: 4px solid #3CC8C0; }
.ml-x-bar { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; }
.ml-x-dd { position: relative; flex: 0 0 300px; }
.ml-x-ddbtn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #344054; cursor: pointer; }
.ml-x-ddbtn.is-on { border-color: #3CC8C0; box-shadow: 0 0 0 3px rgba(60,200,192,0.15); }
.ml-x-ddbtn b { margin-left: 6px; padding: 0 7px; border-radius: 9px; background: #0d1b33; color: #fff; font-size: 12px; }
.ml-x-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 340px; max-width: 90vw; padding: 10px; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; box-shadow: 0 18px 40px rgba(16,24,40,0.18); }
.ml-x-msearch, .ml-x-q, .ml-x-sort { font: inherit; font-size: 14px; color: #101828; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 14px; background: #fff; }
.ml-x-msearch { width: 100%; margin-bottom: 6px; border-color: #3CC8C0; }
.ml-x-opts { max-height: 300px; overflow-y: auto; }
.ml-x-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; font-size: 14px; color: #344054; cursor: pointer; margin: 0; font-weight: 400; }
.ml-x-opt:hover { background: #f2f4f7; }
.ml-x-opt input { width: 16px; height: 16px; accent-color: #17a69e; margin: 0; }
.ml-x-opt em { margin-left: auto; font-style: normal; font-size: 12.5px; color: #98a2b3; }
.ml-x-none { padding: 10px 8px; font-size: 13.5px; color: #667085; }
.ml-x-mfoot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef1f4; }
.ml-x-mfoot button, .ml-x-clear, .ml-x-empty button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #667085; cursor: pointer; padding: 4px 6px; }
.ml-x-mfoot .ml-x-primary, .ml-x-clear, .ml-x-empty button { color: #17a69e; }
.ml-x-q { flex: 1; min-width: 0; }
.ml-x-sort { font-weight: 600; color: #344054; cursor: pointer; }
.ml-x-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: #475467; }
.ml-x-pill { padding: 5px 11px; border: 0; border-radius: 999px; background: #0d1b33; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ml-x-empty { padding: 34px; border: 1px dashed #d0d5dd; border-radius: 14px; text-align: center; color: #475467; background: #fff; }
.ml-x-more { text-align: center; margin-top: 22px; }
#ml-x-more { padding: 10px 26px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #344054; cursor: pointer; }
.ml-x-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.ml-tag { padding: 3px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: #fff3f2; color: #c0392b; }
@media (max-width: 760px) {
  .ml-x-topics { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .ml-x-topic { flex: 0 0 190px; min-height: 60px; }
  .ml-x-bar { flex-direction: column; align-items: stretch; }
  .ml-x-dd { flex: none; }
  .ml-x-grid { grid-template-columns: 1fr; }
  .ml-x-hint { display: none; }
}
/* Messen Labs: Knowledge Base attachments need a sign-in; how locked files look to visitors */
.ml-att-locked { opacity: .9; }
.ml-att-locked .attachment-name { text-decoration: none; }
.ml-att-lock { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  background: rgba(33,59,105,0.10); color: #213B69; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ml-att-lock::before { content: ""; width: 10px; height: 12px; border-radius: 2px;
  background: linear-gradient(#213B69,#213B69) bottom/10px 7px no-repeat, radial-gradient(circle at 50% 100%, transparent 3px, #213B69 3px, #213B69 4.5px, transparent 4.5px) top/10px 7px no-repeat; }
.ml-att-note { flex-basis: 100%; margin: 10px 0 0; font-size: 13.5px; color: #475467; }
.ml-att-note a { color: #17a69e; font-weight: 700; }
body { background: #f4f6f9 !important; }
.header {
  background: radial-gradient(circle at 88% 0%, rgba(60,200,192,0.28), transparent 45%), linear-gradient(135deg, #0d1b33 0%, #132a4f 70%, #0f2240 100%) !important;
  border-bottom: 3px solid #3CC8C0 !important;
  padding: 18px 0 0 !important;
}
.header .logo a { display: block; width: 230px; height: 34px; background: url(/assets/images/messen-wordmark-white.png) left center / contain no-repeat; }
.header .logo img { visibility: hidden; }
.header .menu .menu-item { color: rgba(255,255,255,0.82) !important; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.header .menu .menu-item:hover { background: rgba(255,255,255,0.10); color: #fff !important; }
.search { position: relative; text-align: center; padding: 30px 0 40px !important; margin: 0 auto !important; background: transparent !important; }
.search::before { content: 'How can we help you?'; display: block; font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.search .search-field { max-width: 720px; margin: 0 auto; }
.search .search-field input[type='search'] { height: 54px !important; border-radius: 27px !important; border: 0 !important; padding-left: 52px !important; font-size: 16px !important; box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important; background: #fff !important; color: #101828 !important; }
.search .search-field .icon { left: 20px !important; color: #3CC8C0 !important; fill: #3CC8C0 !important; }
.search .search-results { border-radius: 12px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,0.2); text-align: left; }
.sections { margin-top: 30px !important; }
.main h1 { color: #0d1b33; font-weight: 700; }
a { color: #17a69e; }
.sections--grid .section-inner { border-radius: 14px !important; border: 1px solid #e3e8ee !important; background: #fff !important; box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 4px 14px rgba(16,24,40,0.05) !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sections--grid .section > a:hover .section-inner { transform: translateY(-3px); border-color: #3CC8C0 !important; box-shadow: 0 2px 4px rgba(16,24,40,0.06), 0 14px 30px rgba(16,24,40,0.12) !important; }
.section-inner .icon, .section-inner [data-font] { color: #3CC8C0 !important; fill: #3CC8C0 !important; }
.sections--grid .section-inner [data-font], .sections--grid .section-inner .icon { background: rgba(60,200,192,0.12); border-radius: 16px; padding: 14px; width: auto !important; }
.section-inner .title { color: #0d1b33; font-weight: 600; font-size: 16px; }
.sections--list .section-inner { border-radius: 10px !important; }
.sections--list .section > a:hover .section-inner { border-color: #3CC8C0 !important; }
.footer { background: #fff !important; border-top: 1px solid #e3e8ee !important; }
.header { position: relative; }
.header .logo { position: absolute; left: 32px; top: 18px; margin: 0 !important; }
.main .container, .footer .container { max-width: 1200px !important; }
.sections--grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
.header > .container:first-child { max-width: none !important; width: 100% !important; padding: 0 32px !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; }
.header .logo { position: static !important; margin: 0 28px 0 0 !important; }
.header .menu { display: flex; gap: 4px; }
.ml-kb-user { margin-left: auto; position: relative; }
.ml-kb-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #3CC8C0; color: #0d1b33 !important; font-weight: 700; font-size: 14px; text-decoration: none !important; border: 2px solid rgba(255,255,255,0.5); }
.ml-kb-login { color: #0d1b33 !important; background: #3CC8C0; padding: 8px 18px; border-radius: 8px; font-weight: 600; text-decoration: none !important; }
.ml-kb-menu { display: none; position: absolute; right: 0; top: 100%; padding-top: 8px; min-width: 200px; z-index: 50; }
.ml-kb-user:hover .ml-kb-menu { display: block; }
.ml-kb-menu > * { display: block; background: #fff; padding: 10px 16px; color: #101828 !important; text-decoration: none !important; font-size: 14px; }
.ml-kb-menu > *:first-child { border-radius: 10px 10px 0 0; font-weight: 700; border-bottom: 1px solid #e3e8ee; }
.ml-kb-menu > *:last-child { border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(0,0,0,0.18); }
.ml-kb-menu a:hover { background: #f0fbfa; }
/* === Portal-style top bar + separate hero (overrides earlier header rules) === */
.header { background: none !important; border: 0 !important; padding: 0 !important; }
.header > .container:first-child {
  height: 84px !important; max-width: none !important; width: 100% !important; margin: 0 !important;
  padding: 0 32px !important; box-sizing: border-box; display: flex !important; align-items: center !important;
  background: linear-gradient(90deg, #0d1b33 0%, #10213f 60%, #132a4f 100%) !important;
  border-bottom: 3px solid #3CC8C0 !important;
}
.header .logo { position: static !important; margin: 0 28px 0 0 !important; }
.header .logo a { width: 190px !important; height: 38px !important; }
.header .menu { display: flex !important; gap: 6px; margin: 0 !important; }
.header .menu .menu-item { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; padding: 9px 14px !important; border-radius: 8px !important; }
.header .menu .menu-item:hover { background: rgba(255,255,255,0.08) !important; }
.header .menu .menu-item[href$="/help"], .header .menu .menu-item[href$="/help/"] { background: rgba(60,200,192,0.16) !important; color: #3CC8C0 !important; }
.ml-kb-user { margin-left: auto !important; }

.header > .container:first-child + .container {
  max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 16px !important; box-sizing: border-box;
  background: radial-gradient(circle at 85% 0%, rgba(60,200,192,0.25), transparent 45%), linear-gradient(135deg, #0d1b33 0%, #132a4f 70%, #0f2240 100%) !important;
}
.header .search { padding: 40px 0 48px !important; }
/* Fine-tune to match portal bar exactly */
.header > .container:first-child { padding: 0 28px !important; }
.header .logo { margin: 0 5px 0 0 !important; padding: 0 !important; }
.header .menu { gap: 4px !important; padding: 0 !important; }
.header .menu .menu-item { margin: 0 !important; padding: 7px 14px !important; line-height: 24px !important; font-size: 15px !important; color: rgba(255,255,255,0.85) !important; }
.header .menu .menu-item[href$="/help"], .header .menu .menu-item[href$="/help/"] { color: #3CC8C0 !important; }
/* === Phones: logo and profile on one row, menu below === */
@media (max-width: 767px) {
  .header > .container:first-child { height: auto !important; padding: 12px 16px !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; row-gap: 10px; }
  .header .logo { order: 1; margin: 0 !important; }
  .header .logo a { width: 150px !important; height: 30px !important; }
  .ml-kb-user { order: 2; margin-left: auto !important; position: relative !important; top: auto !important; right: auto !important; }
  .header .menu { order: 3; flex: 0 0 100%; justify-content: flex-start !important; flex-wrap: nowrap; }
  .header .menu .menu-item { font-size: 14px !important; padding: 6px 10px !important; white-space: nowrap; }
  .ml-kb-login { display: inline-block; padding: 6px 14px; font-size: 14px; line-height: 20px; }
  .ml-kb-avatar { width: 34px; height: 34px; font-size: 13px; }
  .header .search { padding: 24px 0 32px !important; }
  .search::before { font-size: 24px; margin-bottom: 14px; }
  .search .search-field input[type='search'] { height: 48px !important; text-overflow: ellipsis; }
}
/* === Logo colours: blue #213B69 and red #F9423A, matching the customer portal === */
.header > .container:first-child { background: linear-gradient(90deg, #213B69 0%, #213B69 55%, #5a3a68 85%, #a83d54 100%) !important; border-bottom: 3px solid !important; -o-border-image: linear-gradient(90deg, #213B69, #F9423A) 1 !important; border-image: linear-gradient(90deg, #213B69, #F9423A) 1 !important; }
.header > .container:first-child + .container { background: linear-gradient(115deg, #213B69 0%, #213B69 45%, #5a3a68 75%, #F9423A 118%) !important; }
.header .menu .menu-item[href$="/help"], .header .menu .menu-item[href$="/help/"] { background: rgba(255,255,255,0.14) !important; color: #fff !important; box-shadow: inset 0 -2px 0 #F9423A; }
.ml-kb-login { background: linear-gradient(115deg, #F9423A 0%, #c9374f 100%); color: #fff !important; }
.ml-kb-avatar { background: #F9423A; color: #fff !important; }
.ml-kb-menu a:hover { background: rgba(33,59,105,0.08); }
.search .search-field .icon { color: #213B69 !important; fill: #213B69 !important; }
.main h1, .section-inner .title { color: #213B69; }
a { color: #213B69; }
.sections--grid .section > a:hover .section-inner, .sections--list .section > a:hover .section-inner { border-color: #F9423A !important; }
.section-inner .icon, .section-inner [data-font] { color: #213B69 !important; fill: #213B69 !important; }
.sections--grid .section-inner [data-font], .sections--grid .section-inner .icon { background: rgba(33,59,105,0.10); }
/* Messen Labs: the Resources top bar (logo, Home, New Ticket, Resources, profile) stays at the top while scrolling.
   The header box is dissolved so the bar sticks within the whole page wrapper; the banner and page scroll under it.
   Agents' green editor strip above it still scrolls away, so its Edit button stays reachable. */
.header { display: contents !important; }
.header > .container:first-child { position: sticky !important; top: 0; z-index: 100; box-shadow: 0 6px 18px rgba(13,27,51,0.18); }
/* Messen Labs: webinar cards on Knowledge Base category pages (see zz_custom_webinars.rb) */
.sections--list:has(.ml-wcard) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.sections--list .ml-wcard { margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
.ml-wcard-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: #fff;
  border: 1px solid #e3e8ee; box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 4px 14px rgba(16,24,40,0.05);
  color: #101828 !important; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ml-wcard-link:hover { transform: translateY(-3px); border-color: #3CC8C0; box-shadow: 0 2px 4px rgba(16,24,40,0.06), 0 14px 30px rgba(16,24,40,0.12); }
.ml-wcard-media { display: block; aspect-ratio: 16 / 7; background: #0d1b33; overflow: hidden; }
.ml-wcard-media img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; }
.ml-wcard-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.ml-wcard-top { display: flex; align-items: center; gap: 8px; }
.ml-wcard-chip { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(60,200,192,0.16); color: #0f8f88; }
.ml-wcard--recorded .ml-wcard-chip { background: rgba(33,59,105,0.10); color: #213B69; }
.ml-wcard--ended .ml-wcard-chip { background: rgba(138,148,163,0.16); color: #5b6573; }
.ml-wcard-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: #0d1b33; }
.ml-wcard-when { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 600; color: #213B69; }
.ml-wcard-date, .ml-wcard-time { display: inline-flex; align-items: center; gap: 7px; }
.ml-wcard-when svg { width: 18px; height: 18px; fill: none; stroke: #3CC8C0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ml-wcard-summary { font-size: 14px; line-height: 1.5; color: #475467; }
.ml-wcard-cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: #17a69e; }
.ml-wcard--ended .ml-wcard-link { opacity: .85; }
@media (max-width: 700px) { .sections--list:has(.ml-wcard) { grid-template-columns: 1fr; } }
.ml-wcard-media--none { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(circle at 85% 0%, rgba(60,200,192,0.35), transparent 50%), linear-gradient(135deg, #0d1b33, #213B69); }
.ml-wcard-media--none b { font-size: 46px; line-height: 1; font-weight: 700; }
.ml-wcard-media--none small { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #3CC8C0; }

/* Messen Labs: article cards in every other Knowledge Base category */
.sections--list:has(.ml-acard) { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ml-acard-media { aspect-ratio: 16 / 6; }
.ml-acard-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(60,200,192,0.14); }
.ml-acard-icon svg { width: 18px; height: 18px; fill: none; stroke: #17a69e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ml-acard-title { font-size: 17.5px; }
.ml-acard-meta { font-size: 12.5px; color: #667085; }
.ml-acard .ml-wcard-body { gap: 9px; }
.ml-wcard .badge, .ml-wcard-top > span:not([class]) { font-size: 11.5px; }
/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.

*/
