@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --bg: #f3f7f4;
    --bg-soft: #e6eef0;
    --ink: #172126;
    --muted: #58666b;
    --line: rgba(24, 36, 47, 0.18);
    --line-soft: rgba(24, 36, 47, 0.1);
    --brand: #c54d58;
    --brand-strong: #8f2835;
    --teal: #13766c;
    --teal-soft: rgba(19, 118, 108, 0.1);
    --danger: #a23636;
    --panel: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 42px rgba(23, 33, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: 0;
    line-height: 1.15;
}

h1 {
    font-size: 3.25rem;
    max-width: 22ch;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1rem;
}

.page-shell {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
    animation: page-enter 0.45s ease both;
}

.site-hero {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 3px double var(--line);
}

.admin-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 16px;
}

.frontend-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    margin-bottom: 26px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 238, 240, 0.88) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 26px,
            rgba(24, 36, 47, 0.03) 26px,
            rgba(24, 36, 47, 0.03) 27px
        );
    box-shadow: var(--shadow);
    border-bottom: 0;
}

.frontend-hero::after {
    display: none;
}

.index-hero {
    min-height: 390px;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    align-items: end;
    gap: 24px;
    padding: 42px;
    color: #fff;
    border: 0;
    background:
        linear-gradient(90deg, rgba(9, 28, 31, 0.88) 0%, rgba(9, 28, 31, 0.62) 54%, rgba(9, 28, 31, 0.42) 100%),
        url("/climaquest/assets/Biomass%20for%20Heating%20%26%20Power.png") center/cover no-repeat;
}

.index-hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.index-hero .eyebrow,
.index-hero .hero-copy,
.index-hero .hero-note {
    color: rgba(255, 255, 255, 0.82);
}

.index-hero .hero-copy {
    max-width: 58ch;
}

.hero-stat-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-note {
    margin: 2px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.hero-metrics {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-metrics li {
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    font-size: 0.92rem;
}

.index-hero .hero-metrics {
    display: grid;
    gap: 8px;
}

.index-hero .hero-metrics li {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-metrics strong {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1rem;
    margin-right: 6px;
    color: var(--brand-strong);
}

.index-hero .hero-metrics strong {
    color: #9ff0dd;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.eyebrow {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--teal);
}

.hero-copy,
.section-head p,
.question-item p,
.admin-meta,
.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.section-head.compact {
    margin-top: 8px;
}

.filter-strip {
    margin-bottom: 20px;
    padding: 18px 0 16px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.filter-buttons,
.form-actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-mobile-picker {
    display: none;
    margin-bottom: 12px;
}

.category-mobile-picker label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--muted);
}

.button-reset,
.filter-button,
.primary-link,
.secondary-link,
.ghost-link,
.danger-link {
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-button,
.ghost-link,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.primary-link,
.secondary-link,
.jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 8px;
    color: #fff;
}

.filter-button.is-active,
.primary-link,
.jump-link {
    border-color: transparent;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-strong) 100%);
    color: #fff;
}

.profile-card-strip {
    margin-top: 28px;
    padding: 0;
    border: 0;
}

/* ============================================
   Industry Leaders Carousel Section
   ============================================ */

.industry-leaders-section {
    margin: 14px 0 10px;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(230, 238, 240, 0.3) 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.leaders-header {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto 8px;
    padding: 0 0 4px;
}

.leaders-title-block {
    text-align: center;
}

.leaders-title-block .eyebrow {
    display: block;
    margin-bottom: 3px;
    font-size: 0.64rem;
}

.leaders-title-block h2 {
    margin: 0 0 5px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
}

.title-accent {
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%);
    margin: 0 auto;
    border-radius: 3px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 6px;
}

.carousel-scroll {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 5%,
        #000 95%,
        transparent 100%
    );
}

.carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    animation: slide-infinite 65s linear infinite;
    will-change: transform;
}

.carousel-scroll:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes slide-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

.speaker-card {
    flex: 0 0 140px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(23, 33, 38, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.speaker-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(23, 33, 38, 0.16);
}

.speaker-image {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(19, 118, 108, 0.12),
        rgba(197, 77, 88, 0.12)
    );
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.08);
}

.speaker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7px 7px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(243, 247, 244, 0.8) 100%
    );
}

.speaker-name {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.speaker-company {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.25;
}

.profile-card-strip .section-head {
    margin-bottom: 12px;
}

.profile-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.profile-card {
    position: relative;
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(24, 36, 47, 0.12);
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 33, 38, 0.11);
    color: var(--ink);
    cursor: default;
}

.profile-card.is-active {
    background: #fff;
    color: var(--ink);
    border-color: rgba(197, 77, 88, 0.42);
}

.profile-card-link {
    display: grid;
    grid-template-rows: auto 1fr;
    text-decoration: none;
    color: inherit;
}

.profile-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    min-height: 0;
    background: linear-gradient(135deg, rgba(19, 118, 108, 0.12), rgba(197, 77, 88, 0.16));
}

.profile-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.profile-card:hover .profile-card-media img {
    transform: scale(1.04);
}

.profile-card-media-fallback {
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--teal);
}

.profile-card-body {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 10px 11px 8px;
    min-height: 0;
}

.profile-card-title {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-card-meta {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-card > .profile-card-meta {
    display: block;
    padding: 0 11px 10px;
}

.secondary-link {
    border-color: transparent;
    background: linear-gradient(140deg, var(--teal) 0%, #0b5056 100%);
}

.ghost-link:hover,
.danger-link:hover,
.filter-button:hover,
.primary-link:hover,
.secondary-link:hover,
.jump-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(28, 27, 21, 0.18);
}

.danger-link {
    color: var(--danger);
    border-color: rgba(154, 54, 40, 0.36);
    background: rgba(154, 54, 40, 0.08);
}

.catalog-stream {
    display: grid;
    gap: 26px;
}

.category-chapter {
    position: relative;
    padding-left: 24px;
}

.category-chapter::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(194, 79, 43, 0.45) 0%, rgba(15, 106, 115, 0.35) 100%);
    border-radius: 6px;
}

.category-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.chapter-meta {
    margin: 0;
    font-weight: 700;
    color: var(--brand-strong);
}

.video-list,
.question-list,
.video-log,
.saved-question-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-list,
.video-log,
.saved-question-list {
    display: grid;
    gap: 14px;
}

.video-entry,
.video-record {
    padding: 16px 18px;
    border: 1px solid var(--line-soft);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.video-entry-header,
.video-record-header {
    display: grid;
    gap: 5px;
}

.video-label {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--teal);
}

.video-actions {
    margin: 12px 0 0;
}

.question-list {
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.question-item {
    padding: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(42, 30, 14, 0.08);
    display: grid;
    gap: 12px;
    align-content: space-between;
}

.question-item:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.question-item h4 {
    line-height: 1.35;
    font-size: 0.96rem;
    margin: 0;
    transition: color 0.2s ease;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.question-header:hover h4 {
    color: var(--brand);
}

.question-header .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.question-header:hover .arrow-icon {
    opacity: 1;
    transform: translateX(4px) scale(1.1);
}

.question-speaker {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.question-speaker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
}

.keyword-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 6px 10px;
    background: rgba(194, 79, 43, 0.14);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1.5px solid var(--brand);
    box-shadow: 0 2px 4px rgba(194, 79, 43, 0.16);
    text-transform: uppercase;
    letter-spacing: 0;
}

.question-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.question-item .jump-link {
    width: 100%;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
}

.editor-panel {
    max-width: 1250px;
}

.editor-panel,
.log-panel,
.flash-message,
.empty-state {
    border: 1px solid var(--line-soft);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.video-form,
.field-grid,
.form-field {
    display: grid;
    gap: 12px;
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
    border: 1px dashed var(--line);
    padding: 14px;
    margin: 0;
}

.field-group legend {
    padding: 0 8px;
    color: var(--muted);
    font-weight: 700;
}

.form-field span,
.toggle-field span {
    font-weight: 700;
    font-size: 0.9rem;
}

.field-note {
    margin-top: -2px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: #fffdf9;
    font: inherit;
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(194, 79, 43, 0.9);
    outline: 2px solid rgba(194, 79, 43, 0.2);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field.full-span {
    grid-column: 1 / -1;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-field input,
.hide-cell input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fffdf9;
}

.checkbox-option input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.question-category-strip,
.video-form .field-group .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    max-width: 100%;
    align-items: stretch;
}

.video-form .field-group .category-grid {
    list-style: none;
    margin: 0;
}

.video-form .field-group .category-grid-item {
    margin: 0;
    padding: 0;
}

.question-category-option,
.video-form .field-group .category-grid .question-category-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    cursor: pointer;
}

.question-category-option input,
.video-form .field-group .category-grid .question-category-option input {
    position: static;
    display: inline-block;
    appearance: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
    margin: 0;
    flex: 0 0 18px;
    accent-color: var(--brand-strong);
}

.question-category-option span,
.video-form .field-group .category-grid .question-category-option span {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-category-option input:focus {
    outline: 2px solid rgba(194, 79, 43, 0.25);
    outline-offset: 1px;
}

.question-category-option input:checked + span {
    color: var(--brand-strong);
}

.question-category-option:has(input:checked) {
    border-color: rgba(194, 79, 43, 0.45);
    background: rgba(194, 79, 43, 0.08);
}

.question-category-option input:focus-visible {
    outline: 2px solid rgba(194, 79, 43, 0.25);
    outline-offset: 2px;
}

/* Category checkbox grid styling */
.category-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.category-checkbox-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.category-checkbox-option input {
    position: static;
    display: inline-block;
    appearance: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
    margin: 0;
    flex: 0 0 18px;
    accent-color: var(--brand-strong);
    cursor: pointer;
}

.category-checkbox-option span {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.category-checkbox-option input:focus {
    outline: 2px solid rgba(194, 79, 43, 0.25);
    outline-offset: 1px;
}

.category-checkbox-option input:checked + span {
    color: var(--brand-strong);
    font-weight: 600;
}

.category-checkbox-option:has(input:checked) {
    border-color: rgba(194, 79, 43, 0.45);
    background: rgba(194, 79, 43, 0.08);
}

.category-checkbox-option input:focus-visible {
    outline: 2px solid rgba(194, 79, 43, 0.25);
    outline-offset: 2px;
}

/* Multi-select dropdown styles with Select2 */
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--line);
    background: #fffdf9;
    border-radius: 4px;
    min-height: 46px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(194, 79, 43, 0.9);
    outline: 2px solid rgba(194, 79, 43, 0.2);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(15, 106, 115, 0.1);
    border: 1px solid rgba(15, 106, 115, 0.2);
    color: var(--teal);
    padding: 4px 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--teal);
    margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--brand-strong);
}

.select2-dropdown {
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 0.95rem;
}

.select2-results__option--highlighted {
    background: rgba(15, 106, 115, 0.1);
}

.select2-results__option[aria-selected=true] {
    background: rgba(194, 79, 43, 0.05);
    color: var(--brand-strong);
}

.select2-search__field {
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
}

.question-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.question-table th,
.question-table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.question-table thead th {
    background: rgba(15, 106, 115, 0.08);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.question-table tbody th {
    width: 48px;
    color: var(--teal);
}

.question-table td input {
    min-height: 40px;
}

.question-table th:nth-child(2),
.question-table td:nth-child(2) {
    min-width: 280px;
}

.question-table th:nth-child(3),
.question-table td:nth-child(3),
.question-table th:nth-child(4),
.question-table td:nth-child(4),
.question-table th:nth-child(5),
.question-table td:nth-child(5) {
    min-width: 190px;
}

.question-table th:nth-child(6),
.question-table td:nth-child(6) {
    min-width: 140px;
}

.question-table th:nth-child(7),
.question-table td:nth-child(7) {
    width: 74px;
}

.hide-cell {
    text-align: center;
}

.form-actions {
    margin-top: 4px;
}

.video-log-item {
    counter-increment: record;
}

.video-record {
    border-left: 4px solid rgba(15, 106, 115, 0.4);
}

.admin-meta {
    font-size: 0.94rem;
}

.admin-actions {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.saved-question-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
}

.saved-question-item:last-child {
    border-bottom: 0;
}

.timestamp-chip,
.speaker-chip,
.hidden-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.timestamp-chip {
    padding: 5px 9px;
    color: var(--teal);
    background: var(--teal-soft);
}

.speaker-chip {
    padding: 5px 9px;
    color: var(--ink);
    background: rgba(24, 36, 47, 0.08);
}

.speaker-domain-chip {
    color: var(--teal);
    background: rgba(15, 106, 115, 0.12);
}

.speaker-company-chip {
    color: var(--brand-strong);
    background: rgba(194, 79, 43, 0.12);
}

.hidden-tag {
    padding: 5px 9px;
    color: var(--danger);
    background: rgba(154, 54, 40, 0.1);
}

.flash-message {
    margin: 0 0 20px;
    font-weight: 700;
    border-left: 4px solid transparent;
}

.flash-success {
    color: #114f59;
    border-left-color: var(--teal);
}

.flash-error {
    color: var(--danger);
    border-left-color: var(--danger);
}

.empty-state {
    text-align: center;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: 2.55rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .question-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .index-hero {
        min-height: 340px;
        grid-template-columns: 1fr;
        align-items: end;
        padding: 32px;
    }

    .hero-stat-panel {
        max-width: 420px;
    }

    .profile-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .question-category-strip,
    .video-form .field-group .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-checkbox-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .industry-leaders-section {
        padding: 9px 0;
    }

    .leaders-title-block h2 {
        font-size: 1.3rem;
    }

    .speaker-card {
        flex: 0 0 128px;
    }

}

@media (max-width: 640px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .page-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 18px;
        padding-bottom: 40px;
    }

    .filter-button,
    .ghost-link,
    .danger-link,
    .primary-link,
    .secondary-link,
    .jump-link {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .question-category-strip,
    .video-form .field-group .category-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-mobile-picker {
        display: block;
    }

    .category-link-grid {
        display: none;
    }

    .hero-metrics {
        gap: 8px;
    }

    .hero-metrics li {
        width: 100%;
    }

    .video-entry,
    .video-record,
    .editor-panel,
    .log-panel,
    .flash-message,
    .empty-state {
        padding: 14px;
    }

    .frontend-hero {
        padding: 20px;
    }

    .index-hero {
        min-height: 440px;
        padding: 24px;
        background-position: center;
    }

    .hero-stat-panel {
        max-width: none;
    }

    .profile-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-card {
        min-height: 0;
    }

    .question-list {
        grid-template-columns: 1fr;
    }

    .industry-leaders-section {
        padding: 8px 0;
        margin: 12px 0 10px;
    }

    .leaders-header {
        margin: 0 auto 6px;
    }

    .leaders-title-block h2 {
        font-size: 1.08rem;
        margin-bottom: 4px;
    }

    .speaker-card {
        flex: 0 0 108px;
        scroll-snap-align: start;
    }

    .carousel-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        mask-image: none;
        -webkit-mask-image: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-track {
        animation: none;
        padding-bottom: 2px;
    }

    .speaker-name {
        font-size: 0.72rem;
    }

    .speaker-company {
        font-size: 0.64rem;
    }
}
