/* Close button inside iframe */
.iframe-close-btn {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 1000;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    padding: 4px;
}

.iframe-close-btn:hover {
    opacity: 0.6;
}

.iframe-close-btn:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.iframe-close-btn svg {
    width: 24px;
    height: 24px;
}

/* Summary error message */
.summary-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d13438;
}

.summary-error-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.summary-error span {
    line-height: 1.5;
}

/* Main layout styles */
.main-scroll-container {
    padding: 16px;
    padding-bottom: 120px !important; /* Space for fixed bottom input - consistent across all screens */
    display: block;
    clear: both;
}

/* Hide content initially until first search - show only top search bar */
body:not(.has-content) .original-content,
body:not(.has-content) .main-scroll-container .original-content {
    display: none !important;
}

.original-content.show-original {
    display: block;
}

/* Disable scrolling when no content is shown */
body:not(.has-content) {
    overflow: hidden !important;
    height: 100vh;
}

body:not(.has-content) .main-scroll-container {
    overflow: hidden !important;
    height: auto;
}

/* Hide fixed bottom input initially */
body:not(.has-content) .fixed-bottom-input {
    display: none !important;
}

.chat-messages {
    display: block;
    padding: var(--spacing-md);
}

.chat-message {
    margin-bottom: var(--spacing-md);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    display: flex;
    justify-content: flex-end;
}

.chat-message.assistant {
    display: flex;
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 95%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 12px;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: #0078D4;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .chat-bubble {
    background: #F7F7F7;
    color: #000;
    border-bottom-left-radius: 4px;
}

.chat-message.assistant .chat-content {
    width: 100%;
}

/* Chat message skeleton loading */
.chat-message.loading .chat-bubble {
    min-width: 400px;
}

.chat-message.loading .chat-content {
    width: 100%;
}

.chat-message.loading .skeleton-line {
    display: block;
    height: 12px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.chat-message.loading .skeleton-line:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .chat-message.loading .chat-bubble {
        min-width: 280px;
    }
}

/* Fixed bottom input */
.fixed-bottom-input {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 32px 16px 16px !important;
    z-index: 9999 !important;
    background: linear-gradient(to top,
    white 0%,
    rgba(255, 255, 255, 0.9) 20%,
    rgba(255, 255, 255, 0) 80%) !important;
    pointer-events: auto !important;
}

/* Ensure the search form within stays visible */
.fixed-bottom-input .nlweb-searchForm {
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fixed-bottom-input .nlweb-searchForm {
    margin: 0 auto;
    max-width: var(--container-md);
    transition: box-shadow 0.15s ease-in, box-shadow 0.6s ease-out;
}

.fixed-bottom-input.scrolled .nlweb-searchForm {
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.15s ease-in;
}

/* Search container and annotation styles */
.search-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--container-md);
    margin: 50px auto 16px auto;
    padding: 0 16px 16px;
    clear: both;
}

/* Ensure header and search are always visible */
header[role="banner"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-container .nlweb-searchForm {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.search-annotation {
    margin-top: 8px;
    opacity: 0;
    height: 20px; /* Reserve space to prevent layout shift */
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.search-annotation.show {
    opacity: 1;
}

.search-annotation-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}


:root {
    /* Responsive spacing */
    --spacing-xs: clamp(8px, 2vw, 12px);
    --spacing-sm: clamp(12px, 2.5vw, 16px);
    --spacing-md: clamp(16px, 3vw, 24px);
    --spacing-lg: clamp(24px, 4vw, 32px);
    --spacing-xl: clamp(32px, 5vw, 48px);
    --spacing-2xl: clamp(48px, 6vw, 64px);

    /* Responsive typography */
    --font-xs: clamp(10px, 2vw, 11px);
    --font-sm: clamp(12px, 2.2vw, 14px);
    --font-base: clamp(14px, 2.5vw, 16px);
    --font-lg: clamp(16px, 3vw, 18px);
    --font-xl: clamp(20px, 3.5vw, 24px);
    --font-2xl: clamp(24px, 4vw, 28px);
    --font-3xl: clamp(28px, 5vw, 36px);

    /* Container widths */
    --container-xs: 100%;
    --container-sm: 640px;
    --container-md: 1024px;
    --container-lg: 1366px;
    --container-xl: 1600px;

    /* Grid gaps */
    --grid-gap: clamp(16px, 3vw, 40px);

    /* Easings */
    --alias-easeOut: cubic-bezier(0.43, 0.195, 0.02, 1);
    --alias-easeIn: cubic-bezier(0.98, 0, 0.57, 0);
    --alias-easeOutQuint: cubic-bezier(0.23, 1, 0.32, 1);
    --alias-easeOut2: cubic-bezier(0.9, 0.1, 0.15, 1.05);
    --alias-easeOut3: cubic-bezier(0.63, 0.195, 0.01, 1);
    --alias-easeOutSlow: cubic-bezier(0.43, 0.195, 0.02, 1);
    --alias-easeOutSnap: cubic-bezier(0.835, 0.085, 0.005, 1);
    --alias-easeOutUnspun: cubic-bezier(0.745, 0.065, 0.17, 1);
    --alias-easeOutCubic: cubic-bezier(0.215, 0.61, 0.355, 1);
}

@font-face {
    font-family: "Segoe UI";
    src: url(../fonts/SegoeUI.eot);
    src: url(../fonts/SegoeUI.eot?#iefix) format("embedded-opentype"),
        url(../fonts/SegoeUI.woff2) format("woff2"),
        url(../fonts/SegoeUI.woff) format("woff"),
        url(../fonts/SegoeUI.ttf) format("truetype"),
        url(../fonts/SegoeUI.svg#SegoeUI) format("svg");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Segoe UI";
    src: url(../fonts/SegoeUI-Bold.eot);
    src: url(../fonts/SegoeUI-Bold.eot?#iefix) format("embedded-opentype"),
        url(../fonts/SegoeUI-Bold.woff2) format("woff2"),
        url(../fonts/SegoeUI-Bold.woff) format("woff"),
        url(../fonts/SegoeUI-Bold.ttf) format("truetype"),
        url(../fonts/SegoeUI-Bold.svg#SegoeUI-Bold) format("svg");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MWF-MDL2";
    src: url(../fonts/MWFMDL2.ttf) format("truetype"),
        url(../fonts/MWFMDL2.woff) format("woff"),
        url(../fonts/MWFMDL2.svg) format("svg");
}

/* Base Styles */
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overscroll-behavior: contain;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #fff;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: var(--font-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

h1,h2,h3,h4,h5,h6,p {
    margin-top: 0;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
}

*, *:before, *:after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

.icon-font {
    font-family: "MWF-MDL2";
}

/* Mobile First: Base styles for mobile */
body {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-xs);
    margin: 0 auto;
}

/* Layout */
.leftCol {
    width: 100%;
    padding-bottom: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.rightCol {
    width: 100%;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

/* Scrollable container responsive layout */
.main-scroll-container .original-content {
    display: block;
    padding: var(--spacing-md);
}

.main-scroll-container .original-content .leftCol {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.main-scroll-container .original-content .rightCol {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.rightCol section {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.rightCol section .line {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    display:  block;
    transform: translateY(10vh) scaleX(0);
    transform-origin: 0 0;
}

.in-view .rightCol section .line {
    transform: translateY(0)  scaleX(1);
    transition: all 1.3s var(--alias-easeOut);
}

/* Related Questions */
.related-questions {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 16px;
}

.related-questions .question {
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #F7F7F7;
    border: solid 1px #fff;
    flex: 0 1 400px;
    min-width: 250px;
    max-width: 400px;
    scroll-snap-align: start;
    white-space: normal;
    font-size: var(--font-sm);
    cursor: pointer;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-questions .question:hover {
    border: solid 1px #D0D0D0;
}

.related-questions .question .question-text {
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.related-questions .question .plus {
    position: relative;
    height: 10px; width: 10px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
}

.related-questions .question .plus:before,
.related-questions .question .plus:after {
    content: "";
    display: inline-block;
    height: 1px;
    width: 10.5px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
}

.related-questions .question .plus:after{
    transform: translate(-50%, -50%) rotate(90deg);
}


/* Typography */
/* H2 section headings - more prominent than H3 */
.h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* H3 article titles - less prominent than H2 */
.h3 {
    font-size: var(--font-base);
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

section {
    margin-bottom: var(--spacing-sm);
}

section.is-large {
    margin-bottom: var(--spacing-xl);
}

section.is-xlarge {
    margin-bottom: var(--spacing-2xl);
}

p.lead {
    font-size: var(--font-xl);
    width: 100%;
    max-width: 100%;
    line-height: 1.4;
}

/* Grid */
.grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    justify-content: center;
    min-width: 0;
    overflow: visible; /* Changed from hidden to allow focus outlines to show */
    padding: 4px; /* Add padding to prevent outline clipping */
    margin: -4px; /* Negative margin to offset the padding */
}

/* Cards */
.clickarea {
    position: relative;
}

.clickarea__link:before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card__image {
    border-radius: 8px;
    display: block;
    background: #f5f5f5;
    width: 100%;
    aspect-ratio: 16 / 10;
    opacity: 1;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    position: relative;
}

.card__image img {
    height: 100%; width: 100%;
    object-fit: cover;
}

.nlweb-image {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nlweb-image.is-loaded {
    opacity: 1;
}

.card__tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.card__tag {
    display: inline-block;
    font-size: 10px;
    background: #F2F2F2;
    border-radius: 4px;
    padding: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
    color: #666;
}

/* People */
.peoples {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.people {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px;
    margin: 8px 0;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.people:hover {
    background: #F7F7F7;
    cursor: pointer;
}

.people__avatar {
    height: 32px; width: 32px;
    border-radius: 100%; background: grey;
    object-fit: cover;
}

.people__meta {
    font-size: var(--font-sm);
    flex: 1;
    min-width: 0;
}

.people__meta h3 {
    margin: 0;
    margin-bottom: 0.3em;
    font-size: var(--font-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.people__meta p {
    margin: 0;
    color: #666666;
    font-size: var(--font-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filters */
.filters {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter {
    font-size: var(--font-sm);
    line-height: 1.2;
    border-radius: 8px;
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: #F7F7F7;
    color: #666666;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

.filter:hover {
    color: #000000;
    background: #EFEFEF;
}
.filter.active {
    background: #0078D4;
    color: #FFFFFF;
}
.filter.active:hover {
    background: #106EBE;
    color: #FFFFFF;
}

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.large {
    height: 20px;
}

.skeleton-text.small {
    height: 12px;
}

.skeleton-card {
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.skeleton-timeline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.skeleton-timeline-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-timeline-content {
    flex: 1;
}

.skeleton-person {
    margin-bottom: var(--spacing-md);
}

/* Posts loading container should behave like grid when active */
.posts-loading.active {
    display: grid !important;
    grid-template-columns: inherit;
    gap: inherit;
}

/* Utilities */
.text-small {
    font-size: var(--font-xs);
}

.text-light {
    color: #666666;
}

.card__headline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--font-xs);
}

.card__headline span:nth-child(2) {
    font-weight: 600;
}

.card__headline img {
    width: 16px; height: 16px;
    object-fit: cover;
    border-radius: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    padding-left: 0;
    width: 100%;
    overflow-x: visible; /* Changed from hidden to allow focus outlines to show */
    padding: 4px; /* Add padding to prevent outline clipping */
    margin: -4px; /* Negative margin to offset the padding */
}

.timeline__entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    overflow: visible; /* Changed from hidden to allow focus outlines to show */
}

.timeline__entry:before {
    content: "";
    font-size: 0;
    height: 9px;
    width: 9px;
    flex-shrink: 0;
    display: inline-block;
    margin-top: 4px;
    background: #EEEEEE;
    border-radius: 100%;
}

.timeline__entry:not(:last-child):after {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 0; left: 3.5px;
    width: 2px;
    display: block;
    background: #EEEEEE;
}

.timeline__entry .date {
    font-size: var(--font-xs);
    margin-left: var(--spacing-xs);
    min-width: 50px;
    flex-shrink: 0;
}

.timeline__entry img {
    margin-left: var(--spacing-sm);
    height: 32px;
    width: 32px;
    border-radius: 4px;
    background: grey;
    object-fit: cover;
    flex-shrink: 0;
}

.timeline__entry-link {
    border-radius: 8px;
    padding: 8px 0;
    transition: background-color 0.15s ease;
}

.timeline__entry-link:hover {
    background: #F7F7F7;
}

.timeline__entry .meta {
    margin-left: var(--spacing-sm);
    font-size: var(--font-sm);
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline__entry .meta h3 {
    margin: 0;
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: 1.3;
}

.link {
    font-size: 12px;
    text-decoration: underline;
}

.summary-loading {
    display: none;
}

.summary-loading.active {
    display: flex;
}

.posts-loading {
    display: none;
    grid-column: 1 / -1;
}

.posts-loading.active {
    display: flex;
}

/* Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D0D0D0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-dropdown.active {
    display: block;
}

.search-disclaimer {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 4px;
}

.search-disclaimer a {
    color: #0067B8 !important;
}

/* Multiline text */
.has-js split-text {
  opacity: 0;
}
.has-js split-text.ready {
  opacity: 1;
}
split-text a,
split-text a * {
  text-decoration: underline;
}

split-text strong,
split-text b {
  line-height: inherit;
  font-size: inherit;
}

split-text u,
split-text u * {
  text-decoration: underline;
}

/* Multiline Masked title */
split-text[mask] [data-word] {
  position: relative;
}
split-text[mask] [data-word] > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) translateZ(0);
  will-change: transform;
  position: relative;
}
.is-ready .in-view split-text[mask] [data-word] > span,
.is-ready split-text[mask].in-view  [data-word] > span {
  opacity: 1;
  transform: translateY(0%) translateZ(0);
  transition: all 1.3s calc( var(--all-word-index) * 0.03s + var(--delay) * 1s) var(--alias-easeOut);
}
split-text[mask] [data-word-index] {
  overflow: hidden;
  position: relative;
  top: 0.1em;
}
split-text[mask] [data-word-index] span {
  position: relative;
  top: -0.1em;
}

/* Multiline stripped text */
split-text[by=lines] [data-line-wrapper] {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  margin-bottom: 0.1em;
}
.is-ready .in-view split-text[by=lines] [data-line-wrapper],
.is-ready split-text[by=lines].in-view  [data-line-wrapper] {
  clip-path: inset(0 0 0 0);
  transition: all 1.3s calc( var(--line-index) * 0.07s + var(--delay) * 1s) var(--alias-easeOut);
}
split-text[by=lines] [data-line] {
  display: inline-block;
  background-image: linear-gradient(var(--stripeColor), var(--stripeColor));
}

.masked-text [data-word] {
  transition: all 1.6s var(--alias-easeOut);
  opacity: 0;
}
.is-ready .in-view .masked-text [data-word] {
  opacity: 1;
}

/* Response Feedback Buttons */
.response-feedback {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    border-top: 1px solid #E5E5E5;
}

.feedback-label {
    font-size: var(--font-sm);
    color: #666666;
}

.feedback-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    border-color: #CCCCCC;
    background: #F7F7F7;
}

.feedback-btn:focus-visible {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}

/* Icon visibility states */
.feedback-btn .icon-filled {
    display: none;
}

.feedback-btn .icon-outline {
    display: block;
}

/* Selected state - thumbs up */
.feedback-btn.feedback-up.selected {
    border-color: #107C10;
    background: #DFF6DD;
    color: #107C10;
}

.feedback-btn.feedback-up.selected .icon-filled {
    display: block;
}

.feedback-btn.feedback-up.selected .icon-outline {
    display: none;
}

/* Selected state - thumbs down */
.feedback-btn.feedback-down.selected {
    border-color: #D13438;
    background: #FDE7E9;
    color: #D13438;
}

.feedback-btn.feedback-down.selected .icon-filled {
    display: block;
}

.feedback-btn.feedback-down.selected .icon-outline {
    display: none;
}

/* Hover states when selected */
.feedback-btn.feedback-up.selected:hover {
    background: #C8E6C9;
}

.feedback-btn.feedback-down.selected:hover {
    background: #FFCDD2;
}

/* Thank you message */
.feedback-thanks {
    font-size: var(--font-sm);
    color: #107C10;
    margin-left: var(--spacing-xs);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-thanks:not(:empty) {
    opacity: 1;
}

/* Responsive Design - Desktop and larger screens */
@media (min-width: 1024px) {
    /* Container adjustments for larger screens */
    .container {
        max-width: var(--container-md);
    }

    /* Enable side-by-side layout within scrollable container */
    .main-scroll-container .original-content,
    .main-scroll-container .original-content.show-original {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--grid-gap);
        padding: var(--spacing-md);
    }

    .main-scroll-container .original-content .leftCol {
        flex: 2;
        width: auto;
        margin-bottom: 0;
        padding-bottom: 0;
        padding-right: var(--spacing-lg);
    }

    .main-scroll-container .original-content .rightCol {
        flex: 1;
        margin-top: 0;
        padding-top: 0;
        padding-left: var(--spacing-lg);
        border-top: none;
    }

    /* Grid adjustments for larger screens */
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1366px) {
    .container {
        max-width: var(--container-lg);
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}
