:root {
    --primary-color: #202020;
    --secondary-color: #61DA28;
    --tertiary-color: #707070;
    --white: #FFFFFF;
    --black: #000000;
    --green: #49A31E;
}

@font-face {
    font-family: 'Korolev';
    src: url('/fonts/korolev_medium-webfont.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url("/assets/full-background.svg");
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 400;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: clamp(20px, 1.5vw, 24px);
    color: var(--primary-color);
}

h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

ol li::marker {
    font-weight: 700;
}

ol li p strong, ul li p strong {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: clamp(14px, 1.1vw, 17px);
    padding-left: 0;
}

ol li p, ul li p {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    padding-top: 0 !important;
    margin-top: 10px !important;
}

ul li::marker {
    content: '';
}

p strong {
    color: var(--green);
    font-size: clamp(20px, 1.4vw, 26px);
    font-weight: 400;
    padding-left: 30px;
}

p:has(> strong:first-child:only-child) + ul {
    background: #2020200A;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 60px;
    padding: 30px;
}

p:has(> strong:first-child:only-child) {
    background: #2020200A;
    border-radius: 16px 16px 0 0;
    padding-top: 30px;
    margin-top: 50px;
}

.container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 46px 46px 0 46px;
    display: grid;
    grid-template-rows: 0.4fr 1fr 1fr;
    justify-content: initial;
    align-items: center;
}

.container > :first-child {
    align-self: baseline;
}

.container > :last-child {
    align-self: end;
}

.welcome-text {
    font-family: 'Korolev', sans-serif;
    font-size: clamp(40px, 4vw, 60px);
    line-height: clamp(55px, 4.5vw, 77px);
    margin-bottom: clamp(20px, 2vw, 50px);
    font-weight: 500;
    margin-top: 0;
}

.header {
    text-align: left;
    padding-left: 45%;
    transition: padding-left 0.6s ease;
}

.header.left-align {
    padding-left: 0;
}

.braidr-logo {
    padding-left: 10px;
}

.search-container.scrolled {
    background: rgb(242, 245, 247);
    border-bottom: 1px solid #ffffff50;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-container div {
    max-width: clamp(770px, 60vw, 996px);
    position: relative;
    margin: auto;
    z-index: 9999;
}

.search-container div svg:hover circle {
    fill: #49A31E;
}

.search-input {
    width: 100%;
    padding: clamp(20px, 1.4vw, 30px) 100px clamp(20px, 1.4vw, 30px) 36px;
    border: 1px solid white;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(20px, 1.4vw, 26px);
    line-height: clamp(28px, 1.8vw, 34px);
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 23px 49px #20202033;
    cursor: auto;
}

.search-input:focus {
    box-shadow: 0 23px 49px #2020201A;
}

.search-input:hover {
    box-shadow: 0 23px 49px #2020201A;
}

.search-input::placeholder {
    color: #bdc3c7;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
    -webkit-box-shadow:
        0 0 0px 1000px white inset,   /* inner white background */
        0 23px 49px #20202033 !important; /* outer real shadow */
    box-shadow:
        0 0 0px 1000px white inset,
        0 23px 49px #2020201A !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.search-btn {
    position: absolute;
    right: 22px;
    top: clamp(10px, 0.9vw, 23px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:focus-visible {
    padding: 1.3rem 2rem;
    right: 0px;
    top: 0px;
    outline: none;
}

.example-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    margin-top: 20px;
    overflow: hidden;
    transition: height .5s ease, opacity .5s ease;
    height: auto;
    opacity: 1;
}

.example-questions.is-collapsed {
    height: 0;
    opacity: 0;
    margin: 0;
}

.question-button {
    font-family: Roboto, sans-serif;
    background: white;
    border: 1px solid white;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 130%;
}

.question-button:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    transform: translate(1px);
}

.question-button .highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.powered-by {
    font-size: clamp(17px, 1.2vw, 20px);
    color: var(--tertiary-color);
    margin-top: 8px;
}

#conversation {
    margin-top: 4vh;
    border-radius: 16px;
    max-width: clamp(770px, 60vw, 996px);
    max-height: 85vh;
    padding: 50px 30px 20px 30px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.modal-answer.styled #conversation {
    background: var(--white);
    box-shadow: 0px 23px 49px #20202033;
    min-height: 85vh;
}

p {
    margin-top: 10px;
}

ul, ol {
    margin: 1rem 0px;
    padding-left: 30px;
}

ul ul {
    margin-bottom: 0;
}

li {
    padding-bottom: 15px;
}

.related-questions li {
    padding: 0 4px 0 2px;
    line-height: clamp(30px, 2.5vw, 40px);
    color: var(--primary-color);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 400;
}

.related-questions ol {
    padding-left: 20px;
}

.metadata {
    font-size: 12px;
    margin-top: 15px;
    align-self: end;
}

.results-container .content {
    font-size: 14px;
}

.result-card {
    margin-bottom: 6px;
    padding: 60px 15px 20px;
    background: #F6F6F6;
    border-radius: 12px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-content: space-between;
    position: relative;
}

.result-card:hover {
    background: var(--secondary-color);
}

.result-card:hover .cardAuthor {
    color: var(--white);
    background: var(--secondary-color);
}

.result-card:hover .content::before {
    background: transparent linear-gradient(0deg, #61DA2800 0%, #61DA28 100%) 0% 0% no-repeat padding-box;
}

.result-card:hover .content::after {
    background: transparent linear-gradient(0deg, #61DA28 0%, #61DA2800 100%) 0% 0% no-repeat padding-box;
}

.result-card a {
    color: var(--primary-color);
}

.result-card:hover a {
    color: var(--white);
}

.related-questions-container {
    border-bottom: 1px solid #20202020;
    border-top: 1px solid #20202020;
}

.related-questions {
    background: #2020200A;
    border-radius: 16px;
    margin: 60px auto;
    padding: 30px;
    font-size: 14px;
    color: var(--secondary-color);
    position: relative;
}

.user-question {
    background: white;
    border-radius: 6px;
    margin: 25px 0;
    padding: 20px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.user-question div {
    display: flex;
    width: 800px;
    margin: auto;
}

.related-questions h4 {
    margin-top: 12px;
    font-size: clamp(20px, 1.4vw, 26px);
    color: var(--green);
    font-weight: 400;
}

.related-questions ul {
    margin-bottom: 8px;
    margin-top: 8px;
    padding-left: 0;
}

.background-img {
    position: absolute;
    width: 13vw;
    right: 4vw;
    top: 0;
    bottom: 0;
    margin: auto;
}

.suggestion {
    cursor: pointer;
}

.suggestion:hover {
    color: var(--green);
    font-weight: 700;
}

.loader {
    position: relative;
    width:  48px;
    height: 48px;
    background: var(--secondary-color);
    transform: rotateX(65deg) rotate(45deg);
    color: var(--green);
    animation: layers1 1s linear infinite alternate;
    margin: auto;
}

.loader:after {
    content: '';
    position: absolute;
    inset: 0;
    background: #2020201A;
    animation: layerTr 1s linear infinite alternate;
}

@keyframes layers1 {
    0% { box-shadow: 0px 0px 0 0px  }
    90% , 100% { box-shadow: 20px 20px 0 -4px  }
}

@keyframes layerTr {
    0% { transform:  translate(0, 0) scale(1) }
    100% {  transform: translate(-25px, -25px) scale(1) }
}

.content-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

.content {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    vertical-align: middle;
    transition: max-height 0.3s ease;
    padding-bottom: 20px;
    padding-top: 10px;
    max-height: 198px;
    overflow-y: auto;
    scrollbar-width: none;
    overflow-wrap: break-word;
}

.content::before {
    content: "";
    position: absolute;
    top: 47px;
    left: 0;
    right: 0;
    height: 25px;
    pointer-events: none;
    background: transparent linear-gradient(0deg, #F6F6F600 0%, #F6F6F6 100%) 0% 0% no-repeat padding-box;
}

.content::after {
    content: "";
    position: absolute;
    bottom: 67px;
    left: 0;
    right: 0;
    height: 35px;
    pointer-events: none;
    background: transparent linear-gradient(0deg, #F6F6F6 0%, #F6F6F600 100%) 0% 0% no-repeat padding-box;
}

.content.expanded {
    white-space: normal;
    text-overflow: clip;
}

.arrow-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.arrow-btn.rotated {
    transform: rotateX(180deg);
}

.arrow-btn span {
    font-size: 18px !important;
}

.hidden {
    display: none;
}

.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.qa-block {
    border-radius: 16px;
    max-width: clamp(900px, 70vw, 1046px);
    max-height: 76vh;
    overflow-y: auto;
    padding: 15px 80px 0 0;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.modal-answer.styled .qa-block {
    background: var(--white);
}

.modal-answer {
    opacity: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.modal-answer.styled {
    opacity: 1;
}

.search-styled {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 10000;
}

.search-icon {
    width: 0.9rem;
    margin-right: 10px;
}

.question-mark {
    width: 2rem;
    margin-right: 6px;
}

.results-section {
    width: 100%;
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

#conversation .results-section {
    background-color: #ffffff;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.tribe-card {
    display: none;
    background: #fff;
    border-radius: 16px;
    width: 422px;
    margin: auto;
    text-align: left;
    padding: 40px;
    box-shadow: 0px 23px 49px #20202033;
    border-radius: 12px 12px 0px 0px;
    transition: opacity 0.5s ease;
}

.tribe-card.active {
    display: block;
}

.tribes-section h3 {
    color: var(--primary-color);
    font-family: 'Korolev', sans-serif;
    font-size: clamp(20px, 1.4vw, 26px);
    line-height: clamp(28px, 1.8vw, 34px);
    font-weight: 500;
    margin-bottom: 10px;
}

.tribe-card h4 {
    color: var(--secondary-color);
    font-family: 'Korolev', sans-serif;
    font-size: clamp(20px, 1.4vw, 26px);
    line-height: clamp(28px, 1.8vw, 34px);
    font-weight: 500;
    margin-bottom: 10px;
}

.tribe-card p {
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 25px;
    font-weight: 400;
    margin-bottom: 28px;
}

.icon-circle {
    margin-right: 25px;
    position: relative;
}

.icon-climate-tribes {
    position: absolute;
    top: -75px;
    bottom: 0;
    left: -80px;
}

/* Dots */
.dots {
    margin-top: 20px;
    display: flex;
    justify-content: left;
    gap: 10px;
    z-index: 999;
    position: absolute;
    right: 0;
    left: 80px;
    bottom: 0;
    margin-bottom: 37px;
    width: 417px;
    margin: 20px auto 37px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2020201A;
    transition: background 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--secondary-color);
}

.section-header {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Modal scroll bar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2020200D;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}

/* Hide scrollbar arrows */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.cardAuthor {
    font-weight: 700;
    color: var(--green);
    margin-bottom: 15px;
    display: block;
    position: absolute;
    left: 15px;
    top: 20px;
    background: #F6F6F6;
    width: -webkit-fill-available;
}

.expand-card {
    width: 22px;
    height: 22px;
}

.expand-card:active {
    width: 20px;
    height: 20px;
}

.platform {
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 99;
}

.answer-layout {
    padding: 46px 46px 0 46px;
}

.qa-menu {
    max-height: 76vh;
    overflow-y: auto;
    margin-top: 7vh;
    max-width: clamp(200px, 16vw, 280px);
    position: absolute;
}

.qa-chip {
    width: 100%;
    border: 0;
    gap: 10px;
    text-align: left;
    padding: 20px 30px;
    border-radius: 0px 46px 46px 46px;
    margin-bottom: 15px;
    transition: transform .05s ease, background .2s ease, color .2s ease;
    background: #2020201A;
    color: var(--primary-color);
    cursor: pointer;
}

.qa-chip:active { 
    transform: scale(0.99); 
}

.qa-chip.active {
    background: var(--secondary-color);
}

/* Trim long questions */
.qa-chip .label {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 400;
    line-height: clamp(20px, 1.5vw, 24px);
}

/* Fade swap animation when changing modal copy */
.fade-swap {
    opacity: 0;
    transition: opacity 220ms ease;
}
.fade-swap.show {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .welcome-text {
        font-size: 20px;
    }

    .example-questions {
        flex-direction: column;
        align-items: center;
    }

    .question-button {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .search-input {
        padding: 20px 80px 20px 26px;
    }

    .search-btn {
        right: 10px;
        top: 10px;
    }

    .dots {
        width: 380px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .tribe-card {
        padding: 30px;
        width: 360px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .icon-climate-tribes {
        top: -55px;
        left: -57px;
        width: 13vw;
    }

    .container {
        padding: 30px 30px 0 30px;
    }

    .related-questions {
        padding: 20px;
        margin: 40px auto;
    }

    p:has(> strong:first-child:only-child) + ul {
        margin: 0 auto 40px;
    }

    p:has(> strong:first-child:only-child) {
        margin-top: 30px;
    }

    .metadata {
        font-size: 11px;
        line-height: 18px;
        margin-top: 10px;
    }

    .results-section {
        padding: 40px 0 30px;
    }

    .answer-layout {
        padding: 30px 30px 0 30px;
    }

    .qa-chip {
        padding: 20px 15px;
    }
}

/* Branded separator between follow-up responses */
.response-separator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 24px;
}

.response-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0.12), rgba(0,0,0,0.06));
  transform: translateY(-50%);
}

/* Central bubble chip styled to match brand */
.separator-chip {
  position: relative;
  z-index: 1;
  background: #E8F7E8;            /* light green tint pairing with brand */
  color: #1E8B2E;                  /* readable green on light background */
  border: 1px solid #C7EBC7;       /* subtle border */
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* Left “tail” like the speech bubble in header */
.separator-chip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #E8F7E8;
  border: 1px solid #C7EBC7;
  border-right: none;
  border-top: none;
  transform: translateY(-50%) rotate(45deg);
  border-bottom-left-radius: 2px;
}

/* Optional icon circle to match brand’s rounded shapes */
.separator-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.separator-icon svg {
  width: 10px;
  height: 10px;
  fill: #fff;
  display: block;
}

/* Truncate long query text inside the separator chip */
.separator-text {
  display: inline-block;
  max-width: clamp(220px, 40vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Spacing helpers so separators have breathing room */
.answer-box + .response-separator { margin-top: 48px; }
.response-separator + .answer-box { margin-top: 0; }

/* Dark variant (if ever needed on darker surfaces) */
.response-separator.dark::before {
  background: linear-gradient(to right, rgba(255,255,255,0.08), rgba(255,255,255,0.14), rgba(255,255,255,0.08));
}
.separator-chip.dark {
  background: var(--secondary-color);
  color: #fff;
  border-color: #2EB10F;
}
.separator-chip.dark::before {
  background: var(--secondary-color);
  border-color: #2EB10F;
}

/* Answer formatting polish – scoped and safe */
.answer-box {
  /* Container and rhythm */
  max-width: 820px;
  width: 100%;
  margin: 16px auto;
  padding: 16px 4px;
  color: #1f2937; /* slate-800 */
  line-height: 1.65;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Reduce global spacing collisions; drive vertical rhythm via margins */
.answer-box > *:first-child { margin-top: 0 !important; }
.answer-box > *:last-child { margin-bottom: 0 !important; }

/* Headings */
.answer-box h1,
.answer-box h2,
.answer-box h3,
.answer-box h4,
.answer-box h5,
.answer-box h6 {
  color: #111827; /* near black */
  line-height: 1.3;
  margin: 1.4em 0 0.6em;
  font-weight: 700;
}

.answer-box h1 { font-size: 1.6rem; }
.answer-box h2 { font-size: 1.35rem; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 0.35em; }
.answer-box h3 { font-size: 1.2rem; }
.answer-box h4 { font-size: 1.05rem; }
.answer-box h5,
.answer-box h6 { font-size: 1rem; }

/* Paragraphs */
.answer-box p {
  margin: 0.85em 0;
  color: #1f2937;
}

/* Lists */
.answer-box ul,
.answer-box ol {
  margin: 0.8em 0 1em 1.25em;
  padding: 0;
}

.answer-box li { margin: 0.35em 0; }
.answer-box ul { list-style: disc outside; }
.answer-box ul ul { list-style: circle outside; }
.answer-box ul ul ul { list-style: square outside; }
.answer-box ol { list-style: decimal outside; }

.answer-box li > p {
  margin: 0.35em 0;
}

/* Blockquote */
.answer-box blockquote {
  margin: 1.1em 0;
  padding: 0.75em 1em;
  border-left: 4px solid #d1d5db; /* gray-300 */
  background: #f9fafb; /* gray-50 */
  color: #374151; /* gray-700 */
}

/* Code */
.answer-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: #f3f4f6; /* gray-100 */
  color: #1f2937;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.answer-box pre {
  background: #0f172a; /* slate-950 */
  color: #e5e7eb; /* gray-200 */
  padding: 0.9em 1em;
  border-radius: 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
}

.answer-box pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Horizontal rule */
.answer-box hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 1.4em 0;
}

/* Links */
.answer-box a {
  color: #2563eb; /* blue-600 */
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.35);
}
.answer-box a:hover,
.answer-box a:focus {
  border-bottom-color: rgba(37,99,235,0.7);
}

/* Tables */
.answer-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95rem;
}
.answer-box thead th {
  background: #f3f4f6; /* gray-100 */
  color: #111827;
  font-weight: 600;
}
.answer-box th,
.answer-box td {
  border: 1px solid #e5e7eb; /* gray-200 */
  padding: 0.6em 0.75em;
  vertical-align: top;
}
.answer-box tbody tr:nth-child(odd) {
  background: #fafafa;
}

/* Media */
.answer-box img,
.answer-box video,
.answer-box iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.8em 0;
  border-radius: 6px;
}

/* Superscripts/subscripts subtly smaller */
.answer-box sup,
.answer-box sub {
  font-size: 0.8em;
}

/* Long tokens (URLs, hashes, joined words) */
.answer-box p,
.answer-box li,
.answer-box td,
.answer-box th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Subtle callouts often emitted by LLMs using bold labels and colons */
.answer-box strong {
  font-weight: 700;
  color: #111827;
}

/* Related questions breathing room */
.related-questions-container {
  margin: 16px 0 8px;
}
.related-questions-container .related-questions {
  padding: 8px 0;
}
.related-questions-container .related-questions h4 {
  margin: 0 0 8px 0;
}
.related-questions-container ol {
  margin: 0.4em 0 0.8em 1.2em;
}
.related-questions-container .suggestion {
  margin: 0.25em 0;
}

/* Answer separators (chip) spacing reinforcement if present */
.response-separator {
  margin: 18px auto;
}

/* Results card content: avoid ultra-tight paragraphs when placed right below answers */
.results-section .result-card .content p {
  margin: 0.6em 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .answer-box *,
  .related-questions-container * {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
}
