/* Live chat dock. Theme tokens from style.css :root / data-kw-theme. */
.kw-chat.modal {
  padding: 0;
}
.kw-chat.modal.is-active {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.kw-chat-backdrop {
  background: rgba(11, 12, 20, .45);
}
.kw-chat-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f6f8f7;
  color: #0b1724;
}
.kw-chat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .85rem;
  border: 0;
  background: #0b1c2b;
  color: #fff;
}
.kw-chat-title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.kw-chat-title .icon { color: #48c774; }
#adminViewing { color: #48c774; }
.kw-chat-head-actions { display: flex; gap: .25rem; }
.kw-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: .45rem;
  background: #12663c;
  color: #fff;
  cursor: pointer;
}
.kw-chat-icon-btn:hover { background: #0c502e; color: #fff; }
.kw-chat-icon-btn .icon,
.kw-chat-icon-btn .fas {
  color: #fff !important;
}
.kw-chat-dock-tab {
  display: none;
  align-items: center;
  gap: .4rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.kw-chat .modal-card-body {
  flex: 1 1 auto;
  background: #f6f8f7;
  padding: .85rem;
}
#messagesPane {
  min-height: 12rem;
  background: #fff;
  border: 1px solid #dce5e1;
  border-radius: .85rem;
  box-shadow: none;
}
#messagesPane .media {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
#messagesPane .media + .media {
  margin-top: .35rem;
}
.kw-chat-typing {
  min-height: 1.6rem;
  margin: .35rem 0 0;
  color: #5e6c79;
  font-size: .85rem;
}
.kw-chat-typing.is-hidden { display: none; }
.kw-chat-foot {
  padding: .85rem;
  background: #fff;
  border-top: 1px solid #dce5e1;
}
.kw-chat-foot .help { color: #5e6c79; }
.kw-chat #chatSendBtn,
.kw-chat #chatNameSubmitBtn,
.kw-chat #chatCookieAcceptBtn {
  background: #12663c;
  border-color: #12663c;
  color: #fff;
}

@media screen and (min-width: 1025px) {
  .kw-chat.modal.is-active {
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
  }
  .kw-chat-backdrop { display: none; }
  .kw-chat-panel {
    pointer-events: auto;
    width: 24.5rem;
    height: min(38rem, calc(100vh - 5.5rem));
    margin: 0 1.1rem 1.1rem 0;
    border-radius: 1rem;
    box-shadow: 0 1.2rem 2.8rem rgba(22, 11, 36, .28);
  }
  .kw-chat-head-actions #chatMinBtn { display: inline-flex; }
  .kw-chat.is-minimized.modal.is-active {
    align-items: flex-end;
    justify-content: flex-end;
  }
  .kw-chat.is-minimized .kw-chat-panel {
    width: auto;
    height: auto;
    min-width: 12.5rem;
  }
  .kw-chat.is-minimized .modal-card-body,
  .kw-chat.is-minimized .kw-chat-foot,
  .kw-chat.is-minimized .kw-chat-title,
  .kw-chat.is-minimized .kw-chat-head-actions {
    display: none;
  }
  .kw-chat.is-minimized .kw-chat-dock-tab { display: inline-flex; }
}

@media screen and (max-width: 1024px) {
  .kw-chat-head-actions #chatMinBtn { display: none; }
  body.kw-chat-open { overflow: hidden; }
  .kw-chat.modal.is-active {
    align-items: stretch;
    justify-content: stretch;
  }
  .kw-chat-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .kw-chat-head { flex: 0 0 auto; }
  .kw-chat .modal-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #messagesPane {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .kw-chat-foot {
    flex: 0 0 auto;
  }
}

/* Floating RoboMo launcher */
.sticky-chat-icon {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: auto;
}
.sticky-chat-icon .container {
  width: auto;
  max-width: none;
  padding: 0 !important;
  margin: 0;
  text-align: right;
}
.sticky-chat-icon .chatLauncher,
.kw-robomo-help .chatLauncher {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid #12663c;
  background: #fff;
  box-shadow: 0 .7rem 1.6rem rgba(22, 11, 36, .24);
}
.sticky-chat-icon .chatLauncher .kw-chat-face,
.kw-robomo-help .chatLauncher .kw-chat-face,
.sticky-chat-icon .chatLauncher picture,
.kw-robomo-help .chatLauncher picture,
.sticky-chat-icon .chatLauncher .kw-chat-face-img,
.kw-robomo-help .chatLauncher .kw-chat-face-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
}
#chatHint {
  display: none;
}
.kw-theme-picker {
  display: none !important;
}

/* Cookie banner — green Kilowatts bar, keep js-* hooks */
.cookie-bar.kw-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: auto;
  max-height: none;
  color: #0b1724;
  background: #fff;
  border-top: 1px solid #dce5e1;
  box-shadow: 0 -10px 28px rgba(11, 23, 36, .12);
}
.cookie-bar.kw-cookie .cookie-bar-inner.kw-cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.15rem 5.75rem 1.15rem 1.35rem;
}
.kw-cookie .cookie-bar-content { max-width: none; }
.kw-cookie-copy { flex: 1 1 16rem; min-width: 0; }
.kw-cookie-kicker {
  margin: 0 0 .3rem;
  color: #12663c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kw-cookie-lead {
  margin: 0;
  color: #5e6c79;
  font-size: .95rem;
  line-height: 1.45;
  max-width: 38rem;
}
.kw-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
}
.kw-cookie-btn {
  margin: 0 !important;
  border: 1px solid #dce5e1 !important;
  background: #fff !important;
  color: #0b1724 !important;
  font-weight: 800;
  border-radius: .65rem !important;
}
.kw-cookie-btn--gold {
  background: #12663c !important;
  border-color: #12663c !important;
  color: #fff !important;
}
.kw-cookie-btn--gold:hover,
.kw-cookie .js-save:hover {
  background: #0f5530 !important;
  border-color: #0f5530 !important;
  color: #fff !important;
}
.kw-cookie-more {
  border-top: 1px solid #dce5e1;
  background: #f6f8f7;
  max-height: 45vh;
  overflow-y: auto;
}
.kw-cookie-more-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.35rem 1.25rem;
  color: #5e6c79;
}
.kw-cookie-more-inner a { color: #12663c; font-weight: 800; }
.kw-cookie-policy { font-size: .85rem; }
.kw-cookie .js-cookie-consent-progress { color: #5e6c79; }
.kw-cookie .table-container {
  overflow-x: auto;
  border: 1px solid #dce5e1;
  border-radius: .85rem;
  background: #fff;
}
.kw-cookie .table,
.kw-cookie-table {
  width: 100%;
  margin: 0;
  background: #fff;
  color: #0b1724;
  border-collapse: collapse;
  border: 0 !important;
}
.kw-cookie .table th,
.kw-cookie .table td,
.kw-cookie-table th,
.kw-cookie-table td {
  border-color: #dce5e1 !important;
  color: #0b1724;
  vertical-align: top;
  padding: .7rem .85rem;
}
.kw-cookie .table thead th,
.kw-cookie-table thead th {
  background: #edf5ef !important;
  color: #12663c !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid #dce5e1 !important;
}
.kw-cookie .table tbody tr:nth-child(even) td,
.kw-cookie-table tbody tr:nth-child(even) td {
  background: #f6f8f7;
}
.kw-cookie .table tbody tr:hover td,
.kw-cookie-table tbody tr:hover td {
  background: #e7f4ec;
}
.kw-cookie .table code,
.kw-cookie-table code {
  display: inline-block;
  padding: .12rem .4rem;
  border-radius: .4rem;
  background: #edf5ef;
  color: #0b1724;
  font-size: .82rem;
  font-weight: 700;
}
.kw-cookie .cookie-slider-svg {
  display: inline-flex;
  cursor: pointer;
  line-height: 0;
}
.kw-cookie-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.kw-cookie .js-save,
.kw-cookie .button.js-save {
  margin: 0 !important;
  border: 1px solid #12663c !important;
  background: #12663c !important;
  color: #fff !important;
  font-weight: 800;
  border-radius: .65rem !important;
}
.kw-cookie .js-save .icon,
.kw-cookie .js-save strong {
  color: #fff !important;
}
@media (max-width: 700px) {
  body:has(#cookie-consent-banner) .sticky-chat-icon {
    display: none !important;
  }
  .cookie-bar.kw-cookie {
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-bottom, 0px)));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border: 0;
    border-top: 1px solid #dce5e1;
    border-radius: 0;
  }
  .cookie-bar.kw-cookie .cookie-bar-inner.kw-cookie-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: .75rem;
    max-width: none;
    padding: .95rem 1rem .75rem;
  }
  .kw-cookie-copy {
    flex: 0 0 auto;
    width: 100%;
  }
  .kw-cookie-kicker { margin: 0 0 .25rem; }
  .kw-cookie-lead {
    max-width: none;
    font-size: .9rem;
    line-height: 1.4;
  }
  .kw-cookie-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    width: 100%;
    margin: 0 !important;
    padding: 0;
  }
  .kw-cookie-actions .kw-cookie-btn--gold {
    grid-column: auto;
  }
  .kw-cookie .cookie-bar-actions .button,
  .kw-cookie-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.7rem !important;
    min-height: 2.7rem;
    margin: 0 !important;
    padding: 0 .5rem !important;
    font-size: .8rem !important;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
  .kw-cookie-more {
    display: block;
    max-height: none;
    overflow: visible;
  }
  .kw-cookie-more.is-hidden { display: none; }
  .kw-cookie-more-inner {
    display: block;
    padding: .85rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .kw-cookie .table-container {
    overflow: visible;
  }
  .kw-cookie .mnw640 { min-width: 0 !important; }
  .kw-cookie-save-row {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    margin: .75rem 0 0;
  }
  .kw-cookie-save-row .js-save,
  .kw-cookie .js-save {
    width: 100%;
    height: 2.7rem !important;
    min-height: 2.7rem;
  }
  .kw-cookie .table th,
  .kw-cookie .table td,
  .kw-cookie-table th,
  .kw-cookie-table td {
    padding: .5rem .45rem;
    font-size: .78rem;
  }
}

/* Live help band above the footer */
#chattoussection.kw-robomo-help,
.kw-robomo-help {
  padding: 2.75rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(72, 199, 116, .24), transparent 22rem),
    linear-gradient(135deg, #07121e 0%, #0b1c2b 70%, #102a35 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.kw-robomo-help .container {
  max-width: 64rem;
  margin: 0 auto;
}
#chattoussection .kw-robomo-help-card,
.kw-robomo-help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.2rem;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  text-align: left;
}
.kw-robomo-help-copy { min-width: 0; }
#chattoussection .kw-robomo-help-kicker,
.kw-robomo-help-kicker {
  margin: 0 0 .4rem;
  color: #48c774;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#chattoussection h3,
.kw-robomo-help-card h3 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
#chattoussection .kw-robomo-help-copy > p:not(.kw-robomo-help-kicker),
.kw-robomo-help-copy > p:not(.kw-robomo-help-kicker) {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  line-height: 1.5;
}
#chattoussection .chatbuttonstatic.button {
  justify-self: end;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 2px solid #12663c;
  background: #fff;
  box-shadow: 0 .7rem 1.6rem rgba(11, 23, 36, .24);
}
@media (max-width: 700px) {
  #chattoussection .kw-robomo-help-card,
  .kw-robomo-help-card { grid-template-columns: 1fr; }
  #chattoussection .chatbuttonstatic.button { justify-self: start; }
}

/* Author banner: replica style.css paints .section white over the hero. */
.kw-authors-page .section:not(.kw-authors-hero) {
  padding: 3rem 1.5rem;
  background: #fff;
}
.kw-authors-page .section.kw-authors-hero,
.kw-authors-hero {
  padding: 3.5rem 1.5rem 3rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(72, 199, 116, .24), transparent 28rem),
    linear-gradient(135deg, #07121e 0%, #0b1c2b 58%, #102a35 100%);
}
.kw-authors-page .kw-authors-hero .title,
.kw-authors-page .kw-authors-hero h1,
.kw-authors-hero .title,
.kw-authors-hero h1 { color: #fff; }
.kw-authors-page .kw-authors-hero .subtitle,
.kw-authors-page .kw-authors-hero p,
.kw-authors-hero .subtitle,
.kw-authors-hero p { color: rgba(255, 255, 255, .82); }
.kw-authors-page .kw-authors-hero a,
.kw-authors-hero a { color: #91d8a8; }
.kw-authors-page .kw-authors-hero .has-text-dark { color: #91d8a8 !important; }
.kw-authors-page .kw-authors-hero .box,
.kw-authors-hero .box {
  background: rgba(255, 255, 255, .07);
  border: 0;
  box-shadow: none;
}
.kw-authors-page .box.has-background-success-light {
  background: #edf5ef !important;
  color: #0b1724 !important;
}
.kw-authors-page .box.has-background-success-light p,
.kw-authors-page .box.has-background-success-light .has-text-weight-semibold,
.kw-authors-page .box.has-background-success-light .is-size-6 {
  color: #0b1724 !important;
}

/* Write-for-us band (used on many pages) */
.kw-write-feature {
  padding: 3.25rem 1.25rem;
  background: var(--kw-mint);
  color: var(--kw-ink);
}
.kw-write-feature .container {
  max-width: 64rem;
  margin: 0 auto;
}
.kw-write-feature-kicker {
  margin: 0 0 .55rem;
  color: var(--kw-forest);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kw-write-feature h2 {
  margin: 0 0 .75rem;
  max-width: 22ch;
  color: var(--kw-ink);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.kw-write-feature > .container > p {
  max-width: 40rem;
  margin: 0 0 1.4rem;
  color: var(--kw-muted);
  line-height: 1.6;
}
.kw-write-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.kw-write-feature .kw-write-card {
  height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--kw-border);
  border-radius: 1rem;
  background: #fff;
}
.kw-write-feature .kw-write-card h3 {
  margin: 0 0 .4rem;
  color: var(--kw-ink);
  font-size: 1.05rem;
  font-weight: 800;
}
.kw-write-feature .kw-write-card p {
  margin: 0;
  color: var(--kw-muted);
  line-height: 1.5;
}
.kw-write-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  align-items: center;
  margin: 0;
}
.kw-write-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.15rem;
  border-radius: .7rem;
  background: #12663c;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.kw-write-button .icon,
.kw-write-button span,
.kw-write-button i {
  color: #fff !important;
}
.kw-write-cta .kw-write-button {
  background: #12663c;
  color: #fff !important;
}
.kw-write-link {
  color: var(--kw-forest);
  font-weight: 800;
}
@media (max-width: 800px) {
  .kw-write-feature-grid { grid-template-columns: 1fr; }
  .kw-write-feature h2 { max-width: none; }
}

