/*
 * Nibbly CMS - Component Styles
 * Styles for optional render components: pricing tables, FAQ accordions,
 * team grids, galleries, timelines, and more.
 * Include this file if you use renderPricingTable(), renderFaqAccordion(), etc.
 */

/* -- Comparison Table Section -- */
.showcase-comparison {
    padding: var(--spacing-lg) 0;
}

.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border-dark);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 37.5rem;
}

.comparison-table thead th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--color-text-on-dark-muted);
    background: var(--color-bg-dark-card);
    border-bottom: 1px solid var(--color-border-dark);
    white-space: nowrap;
}

.comparison-table thead th.comparison-table__highlight {
    color: var(--color-primary-light);
    background: rgba(97, 171, 205, 0.08);
}

.comparison-table thead th.comparison-table__label-col {
    text-align: left;
    min-width: 11.25rem;
}

.comparison-table tbody td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    color: var(--color-text-on-dark-muted);
    border-bottom: 1px solid var(--color-border-dark);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table__label {
    text-align: left !important;
    font-weight: 500;
    color: var(--color-text-on-dark) !important;
}

.comparison-table__highlight {
    background: rgba(97, 171, 205, 0.04);
}

.comparison-yes {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1em;
}

.comparison-no {
    color: #ef4444;
    font-weight: 700;
    font-size: 1em;
    opacity: 0.7;
}

.comparison-text {
    font-size: 0.85rem;
    white-space: nowrap;
}


/* -- FAQ Accordion Section -- */
.showcase-faq {
    padding: var(--spacing-lg) 0;
}

.faq-accordion {
    max-width: 50rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.faq-item {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.faq-item + .faq-item {
    margin-top: var(--spacing-sm);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: left;
    gap: var(--spacing-md);
    line-height: 1.4;
}

.faq-item__question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item__question:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: -2px;
    border-radius: var(--radius-card);
}

.faq-item__question-text {
    flex: 1;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__icon svg {
    width: 100%;
    height: 100%;
}

.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
}

.faq-item--open .faq-item__answer {
    opacity: 1;
}

.faq-item__answer-inner {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-item__answer-inner p {
    margin: 0;
    color: var(--color-text-on-dark-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* -- Pricing Table Section -- */
.showcase-pricing {
    padding: var(--spacing-lg) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.pricing-vat-note {
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    text-align: center;
    margin-top: var(--spacing-md);
    opacity: 0.7;
}

[data-theme="light"] .pricing-vat-note {
    color: var(--color-text-secondary);
}

.pricing-card {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.pricing-card--highlight {
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(96, 200, 205, 0.1);
}

.pricing-card--highlight:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.pricing-card__badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.1875rem 0.875rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 var(--spacing-sm);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-card__amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-card__period {
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted);
}

.pricing-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted);
    margin: 0 0 var(--spacing-md);
    line-height: 1.5;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-card__features li {
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.pricing-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.pricing-card__action {
    margin-top: auto;
}

.pricing-card__btn {
    display: block;
    text-align: center;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card__btn:hover {
    border-color: var(--color-primary);
    background: rgba(96, 200, 205, 0.08);
}

.pricing-card__btn:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.pricing-card__btn--highlight {
    background: var(--color-primary-btn);
    border-color: transparent;
    color: white;
}

.pricing-card__btn--highlight:hover {
    background: var(--color-primary-btn-hover);
    border-color: transparent;
}


/* -- Testimonials Section -- */
.showcase-testimonials {
    padding: var(--spacing-lg) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-inner .testimonial-card {
    border-left: 1px solid var(--color-border-dark);
    padding: var(--spacing-md);
    margin: 0;
    font-style: normal;
    color: inherit;
}

.testimonial-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.testimonial-card__quote-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

.testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-on-dark);
    margin: 0 0 var(--spacing-md);
    flex: 1;
}

.testimonial-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-card__author {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.testimonial-card__role {
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
}


/* -- Team Grid Section -- */
.showcase-team {
    padding: var(--spacing-lg) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.team-card {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.team-card__avatar {
    width: 5rem;
    height: 5rem;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border-dark);
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem;
}

.team-card__role {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.team-card__bio {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-on-dark-muted);
    margin: 0;
}


/* -- Feature Grid Section -- */
.showcase-features {
    padding: var(--spacing-lg) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.feature-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.feature-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-on-dark-muted);
    margin: 0;
}


/* -- Timeline Section -- */
.showcase-timeline {
    padding: var(--spacing-lg) 0;
}

.timeline {
    position: relative;
    max-width: 43.75rem;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.4375rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--color-border-dark);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-md);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item__marker {
    position: absolute;
    left: -2rem;
    top: 0.375rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--color-bg-dark-card);
    border: 2px solid var(--color-primary);
    z-index: 1;
}

.timeline-item--released .timeline-item__marker {
    background: var(--color-primary);
}

.timeline-item--upcoming .timeline-item__marker {
    border-style: dashed;
    background: transparent;
}

.timeline-item__content {
    padding-left: 0.5rem;
}

.timeline-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.timeline-item__date {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--color-text-on-dark-muted);
    letter-spacing: 0.02em;
}

.timeline-item__version {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(96, 200, 205, 0.1);
    padding: 2px 0.5rem;
    border-radius: 4px;
}

.timeline-item__badge--upcoming {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-item__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.35rem;
}

.timeline-item__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-on-dark-muted);
    margin: 0;
}


/* -- Stats Section -- */
.showcase-stats {
    padding: var(--spacing-lg) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stats-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
}

.stats-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
    margin-bottom: 0.35rem;
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-on-dark);
    margin-bottom: 0.35rem;
}

.stats-card__desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-on-dark-muted);
    margin: 0;
}


/* -- News / Blog Section -- */
.showcase-news {
    padding: var(--spacing-lg) 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.news-card {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    border-color: rgba(97, 171, 205, 0.25);
    transform: translateY(-2px);
}

.news-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card__image img {
    transform: scale(1.03);
}



.news-post-page__hero--empty {
    min-height: 12.5rem;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.news-post-page__hero--empty img {
    width: 100%;
    height: auto;
    display: block;
}

.news-card__body {
    padding: var(--spacing-md);
}

.news-card__date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-on-dark);
    margin: 0 0 0.5rem;
}

.news-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-on-dark-muted);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__author {
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    font-style: italic;
}

.news-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card__link,
.news-card__link:hover,
.news-card__link:focus-visible,
.news-card__link * {
    text-decoration: none;
}

.content-inner .news-card__link,
.content-inner .news-card__link:hover,
.content-inner .news-card__link:focus-visible,
.content-inner .news-card__link * {
    text-decoration: none;
}

.news-card__link:hover .news-card__title {
    color: var(--color-accent);
}

.news-empty {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-text-on-dark-muted);
}

/* -- News meta: category chips on cards, chips on posts and archive pages -- */
.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}

.news-card__meta .news-card__date {
    margin-bottom: 0;
}

.news-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
}

.news-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.news-chip:hover,
.news-chip:focus-visible {
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-accent, var(--color-primary));
    text-decoration: none;
}

.news-chip--active {
    background: var(--color-accent, var(--color-primary));
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-text-on-accent, #fff);
}

.news-chip--active:hover,
.news-chip--active:focus-visible {
    color: var(--color-text-on-accent, #fff);
}

.news-post-page__categories,
.news-post-page__tags,
.news-archive__categories,
.content-inner .news-post-page__categories,
.content-inner .news-post-page__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-inner .news-post-page__categories li,
.content-inner .news-post-page__tags li,
.content-inner .pagination__item {
    margin: 0;
}

.news-post-page__categories {
    margin-top: 0.75rem;
}

.news-post-page__tags {
    margin-bottom: var(--spacing-md);
}

.news-archive__categories {
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

/* -- Pagination of news lists -- */
.pagination {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.pagination__list,
.content-inner .pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-border-dark);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-text-on-dark);
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pagination__link:hover,
.pagination__link:focus-visible {
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-accent, var(--color-primary));
    text-decoration: none;
}

.pagination__link--current {
    background: var(--color-accent, var(--color-primary));
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-text-on-accent, #fff);
}

.pagination__link--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination__item--gap {
    padding: 0 0.25rem;
    color: var(--color-text-on-dark-muted);
}

.pagination__summary {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted);
}

@media (max-width: 40rem) {
    .pagination__link--prev span,
    .pagination__link--next span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* -- News Overview Page -- */
.news-page {
    padding: var(--spacing-lg) 0;
}

.news-page__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.news-page__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--color-text-on-dark);
    margin: 0 0 0.5rem;
}

.news-page__intro {
    font-size: 1.1rem;
    color: var(--color-text-on-dark-muted);
    margin: 0;
}

/* -- News Single Post Page -- */
.news-post-page {
    max-width: 48.75rem;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.news-post-page__back {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
    transition: opacity 0.15s;
}

.news-post-page__back:hover {
    opacity: 0.8;
}

.news-post-page__hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.news-post-page__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.news-post-page__header {
    margin-bottom: var(--spacing-lg);
}

.news-post-page__date {
    display: block;
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-post-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--color-text-on-dark);
    margin: 0 0 0.5rem;
}

.news-post-page__author {
    font-size: 0.9rem;
    color: var(--color-text-on-dark-muted);
    font-style: italic;
}

.news-post-page__content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-on-dark);
}

.news-post-page__content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    color: var(--color-text-on-dark);
}

.news-post-page__content p {
    margin: 0 0 var(--spacing-sm);
}

.news-post-page__content ul,
.news-post-page__content ol {
    margin: 0 0 var(--spacing-sm);
    padding-left: 1.5em;
}

.news-post-page__content li {
    margin-bottom: 0.35em;
}

.news-post-page__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(96, 200, 205, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

.news-post-page__content a:hover {
    text-decoration-color: var(--color-accent);
}

.news-post-page__content code {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 0.375rem;
    border-radius: 4px;
}

.news-post-page__content strong {
    color: var(--color-text);
    font-weight: 600;
}

[data-theme="dark"] .news-post-page__content strong {
    color: var(--color-text-on-dark);
}

.news-post-page__footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-dark);
}

/* Kicker (field "subtitle"): a small line above the title, in cards, the timeline and the post */
.news-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    line-height: 1.3;
}

.news-kicker + .news-card__title,
.news-kicker + .news-timeline__title {
    margin-top: 0;
}

.news-post-page__kicker {
    margin: 0 0 0.5rem;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1.3;
}

.news-post-page__kicker:empty {
    display: none;
}

/* Logged-in editors see the empty kicker to fill it */
body.edit-mode-active .news-post-page__kicker:empty {
    display: block;
    min-height: 1.2em;
}

body.edit-mode-active .news-post-page__kicker:empty::before {
    content: attr(data-placeholder);
    opacity: 0.6;
}

/* Photo credit for the whole post (field "photoCredit"), below the body */
.news-post-page__photo-credit {
    margin: var(--spacing-md) 0 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.news-post-page__photo-credit-label {
    font-weight: 600;
}

/* Empty: only in edit mode, to fill it in place */
.news-post-page__photo-credit--empty {
    display: none;
}

body.edit-mode-active .news-post-page__photo-credit--empty {
    display: block;
}

/* Title image inside the post: column (floats right, the text flows around), full width, hidden */
.news-post-page__hero--hidden {
    display: none;
}

.news-post-page__hero figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-on-dark-muted);
}

.news-post-page__content {
    /* flow-root: an image column longer than the text stays inside the body */
    display: flow-root;
}

@media (min-width: 40rem) {
    .news-post-page__hero--column {
        float: right;
        clear: right;
        width: clamp(12rem, 38%, 18rem);
        margin: 0.35em 0 1.25em 1.75em;
    }

    .news-post-page__hero--column img {
        max-height: none;
    }

    .news-post-page__content h2,
    .news-post-page__content h3 {
        clear: none;
    }

    /* Reduced image widths float inside a post; "half" is 45 % of the column */
    .news-post-page__content .block-image--half,
    .news-post-page__content .block-image--medium,
    .news-post-page__content .block-image--small {
        float: right;
        clear: right;
        margin: 0.35em 0 1.25em 1.75em;
    }

    .news-post-page__content .block-image--half {
        max-width: 45%;
    }

    .news-post-page__content .block-image--medium {
        max-width: 24rem;
    }

    .news-post-page__content .block-image--small {
        max-width: 14rem;
    }

    .news-post-page__content .block-image--left {
        float: left;
        clear: left;
        margin: 0.35em 1.75em 1.25em 0;
    }

    .news-post-page__content .block-image--center {
        float: none;
        clear: both;
        margin: var(--spacing-md) auto;
    }

    /* Gallery "column": a right-hand image column the text flows around */
    .news-post-page__content .block-gallery--column {
        float: right;
        clear: right;
        width: clamp(12rem, 38%, 18rem);
        margin: 0.35em 0 1.25em 1.75em;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .news-post-page__content .block-gallery--column .block-gallery__item > a {
        aspect-ratio: auto;
    }

    .news-post-page__content .block-gallery--column .block-gallery__item img {
        height: auto;
        object-fit: contain;
    }

    .news-post-page__content .block-gallery--grid,
    .news-post-page__content .block-gallery--full {
        clear: both;
    }
}

@media (max-width: 39.99rem) {
    /* On phones the image column becomes a swipeable strip */
    .news-post-page__content .block-gallery--column {
        display: flex;
        align-items: flex-start;
        gap: 1.25rem;
        padding-bottom: 0.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .news-post-page__content .block-gallery--column .block-gallery__item {
        flex: 0 0 auto;
        min-width: 8rem;
        max-width: 85%;
        scroll-snap-align: start;
    }

    .news-post-page__content .block-gallery--column .block-gallery__item > a {
        aspect-ratio: auto;
        width: max-content;
        max-width: 100%;
        height: 11rem;
    }

    .news-post-page__content .block-gallery--column .block-gallery__item img {
        width: auto;
        max-width: 100%;
        height: 11rem;
        object-fit: contain;
    }

    .news-post-page__content .block-gallery--column figcaption {
        width: 0;
        min-width: 100%;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        overflow: hidden;
    }

    .news-post-page__content .block-gallery--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Sidebar (cover, excerpt, "aside" blocks): below the header on narrow screens, a sticky right
   column from 64rem; the post grows to make room */
.news-post-page--aside {
    max-width: 70rem;
}

.news-post-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--spacing-md);
}

.news-post-page__aside {
    display: grid;
    grid-template-columns: minmax(7.2rem, 9.6rem) minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
}

.news-post-page__cover {
    margin: 0;
}

.news-post-page__cover a {
    display: block;
}

.news-post-page__cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
}

.news-post-page__cover--empty img {
    opacity: 0.5;
}

.news-post-page__cover figcaption {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.news-post-page__aside-excerpt {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--color-text-on-dark-muted);
}

.news-post-page__aside-excerpt p {
    margin: 0 0 0.6rem;
}

.news-post-page__aside-excerpt p:last-child {
    margin-bottom: 0;
}

.news-post-page__aside-blocks {
    grid-column: 1 / -1;
    margin-top: var(--spacing-md);
    font-size: 0.98rem;
    color: var(--color-text-on-dark);
}

/* Nothing floats inside the sidebar */
.news-post-page__aside .block-image,
.news-post-page__aside .block-gallery {
    float: none;
    clear: both;
    width: auto;
    max-width: 100%;
    margin: 1.25em 0;
}

@media (min-width: 64rem) {
    .news-post-page--aside .news-post-page__layout {
        grid-template-columns: minmax(0, 48.75rem) 13rem;
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        align-items: start;
    }

    .news-post-page__main {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .news-post-page__aside {
        grid-column: 2;
        grid-row: 1;
        display: block;
        position: sticky;
        top: 1.5rem;
    }

    .news-post-page__aside-excerpt {
        margin-top: var(--spacing-md);
    }
}

/* Lightbox (js/lightbox.js): caption and previous/next */
.gallery-lightbox__figure {
    margin: 0;
    max-width: 90vw;
    text-align: center;
}

.gallery-lightbox__caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-lightbox__caption[hidden] {
    display: none;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    padding: 0.5rem 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 1;
}

.gallery-lightbox__nav:hover {
    opacity: 1;
}

.gallery-lightbox__nav--prev {
    left: 0.5rem;
}

.gallery-lightbox__nav--next {
    right: 0.5rem;
}

.gallery-lightbox__nav[hidden] {
    display: none;
}

[data-theme="light"] .news-post-page__hero figcaption,
[data-theme="light"] .news-post-page__aside-excerpt {
    color: var(--color-text-secondary);
}

[data-theme="light"] .news-post-page__aside-blocks {
    color: var(--color-text);
}

[data-theme="light"] .news-post-page__cover img {
    border-color: var(--color-border);
}


/* -- Gallery Section -- */
.showcase-gallery {
    padding: var(--spacing-lg) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item__link {
    display: block;
    cursor: zoom-in;
}

.gallery-item__img {
    width: 100%;
    height: 12.5rem;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item__link:hover .gallery-item__img {
    transform: scale(1.03);
    opacity: 0.85;
}

.gallery-item__caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    background: var(--color-bg-dark-card);
}

/* Gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.gallery-lightbox:not([hidden]) {
    display: flex;
}

.gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 1;
}

.gallery-lightbox__close:hover {
    opacity: 1;
}

.gallery-lightbox__close:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.gallery-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ============================================
   COMPONENT LIGHT THEME OVERRIDES
   ============================================ */
/* Comparison table — light theme */

[data-theme="light"] .comparison-table-wrap {
    border-color: var(--color-border);
}

[data-theme="light"] .comparison-table thead th {
    color: var(--color-text-secondary);
    background: var(--color-background-card);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .comparison-table thead th.comparison-table__highlight {
    color: var(--color-primary);
    background: rgba(46, 149, 210, 0.06);
}

[data-theme="light"] .comparison-table tbody td {
    color: var(--color-text-secondary);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .comparison-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .comparison-table__label {
    color: var(--color-text) !important;
}

[data-theme="light"] .comparison-table__highlight {
    background: rgba(46, 149, 210, 0.03);
}

[data-theme="light"] .comparison-yes {
    color: #16a34a;
}

[data-theme="light"] .comparison-no {
    color: #dc2626;
}


/* FAQ accordion — light theme */

[data-theme="light"] .faq-item {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .faq-item:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .faq-item__question {
    color: var(--color-text);
}

[data-theme="light"] .faq-item__question:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .faq-item__icon {
    color: var(--color-primary);
}

[data-theme="light"] .faq-item__answer-inner p {
    color: var(--color-text-secondary);
}


/* Pricing — light theme */

[data-theme="light"] .pricing-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .pricing-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .pricing-card--highlight {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(96, 200, 205, 0.08);
}

[data-theme="light"] .pricing-card__name {
    color: var(--color-text);
}

[data-theme="light"] .pricing-card__amount {
    color: var(--color-text);
}

[data-theme="light"] .pricing-card__period,
[data-theme="light"] .pricing-card__desc {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-card__features li {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-card__features li::before {
    color: var(--color-primary);
}

[data-theme="light"] .pricing-card__btn {
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="light"] .pricing-card__btn:hover {
    border-color: var(--color-primary);
    background: rgba(96, 200, 205, 0.06);
}


/* Testimonials — light theme */

[data-theme="light"] .testimonial-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .testimonial-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .testimonial-card__text {
    color: var(--color-text);
}

[data-theme="light"] .testimonial-card__author {
    color: var(--color-text);
}

[data-theme="light"] .testimonial-card__role {
    color: var(--color-text-secondary);
}


/* Team — light theme */

[data-theme="light"] .team-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .team-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .team-card__avatar {
    border-color: var(--color-border);
}

[data-theme="light"] .team-card__name {
    color: var(--color-text);
}

[data-theme="light"] .team-card__bio {
    color: var(--color-text-secondary);
}


/* Feature grid — light theme */

[data-theme="light"] .feature-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .feature-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .feature-card__title {
    color: var(--color-text);
}

[data-theme="light"] .feature-card__desc {
    color: var(--color-text-secondary);
}


/* Timeline — light theme */

[data-theme="light"] .timeline::before {
    background: var(--color-border);
}

[data-theme="light"] .timeline-item__marker {
    background: var(--color-background-card);
    border-color: var(--color-primary);
}

[data-theme="light"] .timeline-item--released .timeline-item__marker {
    background: var(--color-primary);
}

[data-theme="light"] .timeline-item__date {
    color: var(--color-text-secondary);
}

[data-theme="light"] .timeline-item__title {
    color: var(--color-text);
}

[data-theme="light"] .timeline-item__desc {
    color: var(--color-text-secondary);
}


/* Stats — light theme */

[data-theme="light"] .stats-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .stats-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .stats-card__value {
    color: var(--color-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

[data-theme="light"] .stats-card__label {
    color: var(--color-text);
}

[data-theme="light"] .stats-card__desc {
    color: var(--color-text-secondary);
}


/* News — light theme */

[data-theme="light"] .news-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .news-card:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .news-card__title {
    color: var(--color-text);
}

[data-theme="light"] .news-card__excerpt,
[data-theme="light"] .news-card__author {
    color: var(--color-text-secondary);
}

[data-theme="light"] .news-page__title,
[data-theme="light"] .news-post-page__title {
    color: var(--color-text);
}

[data-theme="light"] .news-page__intro,
[data-theme="light"] .news-post-page__author {
    color: var(--color-text-secondary);
}

[data-theme="light"] .news-chip,
[data-theme="light"] .pagination__link {
    border-color: var(--color-border);
    color: var(--color-text);
}

[data-theme="light"] .news-chip--active,
[data-theme="light"] .pagination__link--current {
    background: var(--color-accent, var(--color-primary));
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-text-on-accent, #fff);
}

[data-theme="light"] .news-card__category,
[data-theme="light"] .pagination__summary,
[data-theme="light"] .pagination__item--gap {
    color: var(--color-text-secondary);
}

[data-theme="light"] .news-post-page__content {
    color: var(--color-text);
}

[data-theme="light"] .news-post-page__content h3 {
    color: var(--color-text);
}

[data-theme="light"] .news-post-page__content code {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .news-post-page__footer {
    border-top-color: var(--color-border);
}


/* Gallery — light theme */

[data-theme="light"] .gallery-item__caption {
    color: var(--color-text-secondary);
    background: var(--color-background-card);
}


@media (min-width: 768px) and (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================
   COMPONENT RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .faq-item__question {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .faq-item__answer-inner {
        padding: 0 var(--spacing-md) var(--spacing-sm);
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: var(--spacing-sm) 0.75rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 22.5rem;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item__img {
        height: 9.375rem;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    margin-bottom: var(--spacing-md);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: '/';
    margin: 0 0.5rem;
    opacity: 0.4;
}

.breadcrumb__item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
    color: var(--color-primary);
}

.breadcrumb__item a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb__item--current {
    color: var(--color-text);
}

[data-theme="dark"] .breadcrumb__item a {
    color: var(--color-text-on-dark-muted);
}

[data-theme="dark"] .breadcrumb__item--current {
    color: var(--color-text-on-dark);
}

/* Components page demo sections — extra breathing room between component
   showcases so each <section class="demo-section"> reads as its own block. */
.demo-section {
    padding-block: var(--spacing-lg);
}

.demo-section + .demo-section {
    border-top: 1px solid var(--color-border);
}

.demo-section > h2 {
    margin-top: 0;
}

/* Buttons demo group (components page) */
.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.demo-buttons > a:not([class]) {
    padding: 0 var(--spacing-sm);
}

.demo-buttons .btn,
.demo-buttons .btn:hover {
    text-decoration: none;
}

/* ============================================================
   AI DISCLOSURE LABELS (EU AI Act, Art. 50)
   Label in the bottom-right corner of AI-generated or AI-modified images,
   rendered by nibblyAiLabelHtml(). Hidden at rest (screen readers get the alt
   text); shown when a visitor lingers: 600 ms hover, or on touch devices
   js/ai-labels.js (.is-revealed). Adapt with --nb-ai-label-height,
   --nb-ai-label-inset, --nb-ai-label-rest (e.g. 0.25 for a subtle label at rest)
   and --nb-ai-label-filter (e.g. invert(1) for a light label on dark images).
   ============================================================ */
.nb-ai-media {
    position: relative;
    display: block;
}

:where(:has(> .nb-ai-label)) {
    position: relative;
}

.nb-ai-label {
    position: absolute;
    z-index: 2;
    right: var(--nb-ai-label-inset, 1.25rem);
    bottom: var(--nb-ai-label-inset, 1.25rem);
    line-height: 0;
    opacity: var(--nb-ai-label-rest, 0);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nb-ai-label > img.nb-ai-label__badge {
    display: block;
    width: auto;
    max-width: none;
    height: var(--nb-ai-label-height, 1.375rem);
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    object-fit: contain;
    filter: var(--nb-ai-label-filter, none);
}

:hover > .nb-ai-label,
.nb-ai-label.is-revealed {
    opacity: 1;
    transition: opacity 2s ease 0.6s;
}

/* People / Team: shared profiles, inheriting the site's typography and colour. */
.people-grid{display:grid;gap:var(--spacing-lg,2rem);grid-template-columns:repeat(3,minmax(0,1fr))}
.people-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.people-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.person-card{min-width:0;overflow-wrap:anywhere}.person-card__portrait{margin:0 0 1rem}.person-card__portrait img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.person-card__portrait figcaption{font-size:.8em;margin-top:.25rem}.person-card__role{font-weight:600}.person-card__contact{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.person-card__body>h3{margin-top:0}.person-card__biography:empty{display:none}.person-card__body blockquote{margin-inline:0;padding-inline-start:1rem;border-inline-start:2px solid currentColor}
@media(max-width:800px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.people-grid{grid-template-columns:1fr}}

.person-card:has(>.person-card__portrait){display:grid;grid-template-columns:minmax(140px,260px) minmax(0,1fr);gap:var(--spacing-lg,2rem)}
.people-grid .person-card:has(>.person-card__portrait){display:block}
@media(max-width:600px){.person-card:has(>.person-card__portrait){display:block}}
.person-card__body>h3 a{color:inherit;text-decoration:none}.person-card__body>h3 a:hover{text-decoration:underline}

/* Person page (includes/person-page.php): portrait beside the text, stacked on small screens */
.person-page__layout{display:grid;grid-template-columns:minmax(160px,280px) minmax(0,1fr);gap:var(--spacing-lg,2rem);align-items:start}
.person-page__layout:not(:has(.person-page__portrait)){grid-template-columns:minmax(0,1fr)}
.person-page__portrait{margin:0}.person-page__portrait img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
.person-page__portrait figcaption{font-size:.8rem;margin-top:.35rem;opacity:.75}
.person-page__summary{font-weight:600}
.person-page__quote{margin:1.5rem 0;padding-inline-start:1rem;border-inline-start:2px solid currentColor;font-style:italic}
@media(max-width:640px){.person-page__layout{grid-template-columns:minmax(0,1fr)}.person-page__portrait{max-width:280px}}

/* ============================================
   SITE SEARCH (includes/search-helper.php, includes/search.php)
   ============================================ */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
}

.search-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-background);
}

.search-form__input:focus {
    outline: 2px solid var(--color-accent, var(--color-primary));
    outline-offset: 1px;
}

.search-form__button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--color-accent, var(--color-primary));
    border-radius: 0 999px 999px 0;
    background: var(--color-accent, var(--color-primary));
    color: var(--color-text-on-accent, #fff);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.search-form__button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

/* Header variant: compact, icon only */
.search-form--header {
    margin-left: 0.75rem;
}

.search-form--header .search-form__input {
    width: 9rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.search-form--header .search-form__button {
    padding: 0.4rem 0.7rem;
}

.search-form--header .search-form__button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mobile-nav-search {
    margin-top: var(--spacing-md);
}

.search-form--mobile {
    width: min(100%, 26rem);
    margin: 0 auto;
}

.search-form--page {
    width: min(100%, 36rem);
    margin: var(--spacing-sm) auto 0;
}

.search-form--page .search-form__input {
    font-size: 1.05rem;
    padding: 0.75rem 1.1rem;
}

/* Results */
.search-page {
    padding: var(--spacing-lg) 0;
}

.search-page__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.search-page__status,
.search-page__empty {
    text-align: center;
    color: var(--color-text-secondary);
}

.search-results,
.content-inner .search-results {
    list-style: none;
    margin: var(--spacing-md) 0 0;
    padding: 0;
}

.search-result,
.content-inner .search-result {
    margin: 0;
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--color-border);
}

.search-result:last-child {
    border-bottom: 1px solid var(--color-border);
}

.search-result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.search-result__title,
.content-inner .search-result__title {
    font-size: 1.2rem;
    margin: 0.25rem 0 0.35rem;
}

.search-result__snippet {
    margin: 0;
    color: var(--color-text-secondary);
}

.search-result mark,
.search-page mark {
    background: color-mix(in srgb, var(--color-accent, var(--color-primary)) 18%, transparent);
    color: inherit;
    padding: 0 0.1em;
    border-radius: 2px;
}

/* ============================================
   NEWS TIMELINE (renderNewsTimeline())
   ============================================ */
.news-timeline__jump {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 5;
    margin: 0 0 var(--spacing-md);
    padding: 0.5rem 0;
    background: var(--color-background);
}

.news-timeline__jump-list,
.content-inner .news-timeline__jump-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-inner .news-timeline__jump-list li {
    margin: 0;
}

.news-timeline__jump-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

.news-timeline__jump-link:hover,
.news-timeline__jump-link:focus-visible {
    border-color: var(--color-accent, var(--color-primary));
    color: var(--color-accent, var(--color-primary));
}

.news-timeline,
.content-inner .news-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.25rem;
}

.news-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.6rem;
    width: 2px;
    background: var(--color-accent, var(--color-primary));
    opacity: 0.35;
}

.news-timeline__group,
.content-inner .news-timeline__group {
    position: relative;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    scroll-margin-top: calc(var(--header-height) + 4rem);
}

.news-timeline__group:first-child {
    margin-top: 0;
}

.news-timeline__group-title,
.content-inner .news-timeline__group-title {
    display: inline-block;
    margin: 0 0 0 -2.25rem;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: var(--color-accent, var(--color-primary));
    color: var(--color-text-on-accent, #fff);
    font-size: 1rem;
    font-weight: 700;
}

.news-timeline__item,
.content-inner .news-timeline__item {
    position: relative;
    margin: 0 0 var(--spacing-md);
    scroll-margin-top: calc(var(--header-height) + 4rem);
}

.news-timeline__marker {
    position: absolute;
    left: -2.25rem;
    top: 0.45rem;
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.2rem;
    border-radius: 50%;
    background: var(--color-background);
    border: 2px solid var(--color-accent, var(--color-primary));
}

.news-timeline__date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.news-timeline__title,
.content-inner .news-timeline__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0.2rem 0 0.6rem;
}

.news-timeline__title a {
    text-decoration: none;
    color: inherit;
}

.news-timeline__title a:hover,
.news-timeline__title a:focus-visible {
    color: var(--color-accent, var(--color-primary));
}

.news-timeline__figure,
.content-inner .news-timeline__figure {
    margin: 0 0 0.75rem;
    max-width: 36rem;
}

.news-timeline__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-timeline__caption,
.news-timeline__gallery figcaption {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.35rem;
}

.news-timeline__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    max-width: 36rem;
}

.news-timeline__gallery-item,
.content-inner .news-timeline__gallery-item {
    margin: 0;
}

.news-timeline__gallery-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}

.news-timeline__gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-timeline__text p:last-child,
.news-timeline__content > :last-child {
    margin-bottom: 0.5rem;
}

.news-timeline__link {
    font-size: 0.9rem;
    font-weight: 600;
}

.news-timeline__empty {
    color: var(--color-text-secondary);
}

@media (max-width: 40rem) {
    .search-form--header {
        display: none;
    }
}

/* ==========================================================================
   COMMENTS AND GUESTBOOK (includes/comments.php)
   ========================================================================== */
.nb-comments { margin: 2.5rem 0 0; }
.nb-comments__count { font-weight: 400; color: var(--color-text-secondary, #666); font-size: 0.8em; }
.nb-comments__list { list-style: none; margin: 0; padding: 0; }
.nb-comments__list--level-1 > .nb-comment + .nb-comment { border-top: 1px solid var(--color-border, #e5e7eb); }
.nb-comments__list--level-2, .nb-comments__list--level-3, .nb-comments__list--level-4 { margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--color-border, #e5e7eb); }
.nb-comment { padding: 1rem 0; }
.nb-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-bottom: 0.4rem; font-size: 0.9rem; }
.nb-comment__author { font-weight: 700; }
.nb-comment__badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1em 0.5em; border-radius: 999px; background: var(--color-primary, #333); color: #fff; }
.nb-comment__date { color: var(--color-text-secondary, #666); }
.nb-comment__text p { margin: 0 0 0.75em; }
.nb-comment__actions { margin: 0; }
.nb-comment__reply, .nb-comments__cancel-reply { background: none; border: 0; padding: 0; font: inherit; font-size: 0.875rem; color: var(--color-primary, #333); cursor: pointer; text-decoration: underline; }
.nb-comments__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nb-comments__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nb-comments__field--wide, .nb-comments__field--check { grid-column: 1 / -1; }
.nb-comments__field label { display: block; margin-bottom: 0.3rem; }
.nb-comments__field input, .nb-comments__field textarea { width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem; }
.nb-comments__field small { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--color-text-secondary, #666); }
.nb-comments__privacy { font-size: 0.85rem; color: var(--color-text-secondary, #666); }
.nb-comments__replying { font-size: 0.9rem; }
@media (max-width: 40rem) { .nb-comments__grid { grid-template-columns: 1fr; } }

/* ============================================
   FOOTNOTES
   <span class="footnote">Text</span> in running text. js/footnotes.js turns it into a superscript
   number with a tooltip (hover, focus, tap). While the inline editor is active the text stays in
   the sentence, marked, so it can be edited.
   ============================================ */
.footnote--ready {
    position: relative;
    display: inline-block;
}

.footnote__mark {
    display: inline-block;
    vertical-align: super;
    min-width: 1.5em;
    margin-left: 0.15em;
    padding: 0.1em 0.4em;
    border: 0;
    border-radius: 999px;
    background: rgba(96, 200, 205, 0.15);
    color: var(--color-accent);
    font: inherit;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.footnote--ready:hover .footnote__mark,
.footnote--open .footnote__mark,
.footnote__mark:focus-visible {
    background: var(--color-accent);
    color: var(--color-background);
}

.footnote__mark:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.footnote__text {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    z-index: 30;
    width: max-content;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-background);
    color: var(--color-text);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.footnote--ready:hover .footnote__text,
.footnote--ready:focus-within .footnote__text,
.footnote--open .footnote__text {
    opacity: 1;
    visibility: visible;
}

/* In the visual editor (edit mode and field dialog) the footnote text stays editable in the sentence */
body.edit-mode-active .footnote:not(.footnote--ready),
.editor-wysiwyg .footnote {
    padding: 0 0.25em;
    border-bottom: 1px dashed var(--color-accent);
    background: rgba(96, 200, 205, 0.15);
    font-size: 0.85em;
}

body.edit-mode-active .footnote:not(.footnote--ready)::before,
.editor-wysiwyg .footnote::before {
    content: "\2731\00a0";
    color: var(--color-accent);
    font-weight: 700;
}

/* Newsletter sign-up form (includes/newsletter.php, nibblyNewsletterForm()) */
.nibbly-newsletter-form{display:grid;gap:var(--spacing-sm,.75rem);max-width:28rem}
.nibbly-newsletter-form p{margin:0}
.nibbly-newsletter-field label{display:block;margin-bottom:.25rem;font-weight:600}
.nibbly-newsletter-field input{width:100%;padding:.6rem .75rem;border:1px solid var(--color-border,#d1d5db);border-radius:var(--radius,.5rem);font:inherit;background:var(--color-bg,#fff);color:inherit;box-sizing:border-box}
.nibbly-newsletter-consent label{display:flex;gap:.5rem;align-items:flex-start;font-size:.9em;line-height:1.45}
.nibbly-newsletter-consent input{margin-top:.2em;flex:none}
.nibbly-newsletter-actions button{padding:.65rem 1.4rem;border:0;border-radius:var(--radius,.5rem);background:var(--color-primary,#3858e9);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.nibbly-newsletter-actions button:disabled{opacity:.6;cursor:default}
.nibbly-newsletter-message:empty{display:none}
.nibbly-newsletter-message.is-success{color:var(--color-success,#15803d)}
.nibbly-newsletter-message.is-error{color:var(--color-danger,#b91c1c)}
