
        :root{
            /* New yellow design tokens */
            --accent: #fad56f;          /* primary yellow */
            --accent-hover: #e3a800;    /* darker yellow for hover */
            --accent-soft: #fad56f;     /* pale yellow backgrounds */
            --accent-soft-2: #ffe08a;   /* borders/highlights */
            --accent-text: #7a5600;     /* warm brown text on yellow */
            --ink: #111;
            --muted: #666;
            --muted-2: #858585;
            --bg: #f4f4f8;
            --card: #ffffff;
            --border: #e0e0e0;
            --shadow: 0 10px 25px rgba(0,0,0,0.10);
        }

        /* For mobile devices */
        @media (max-width: 768px) {
            .tab {
                font-size: 150%;  /* Larger size for mobile */
                padding: 12px 15px;  /* Slightly adjusted padding for better touch targets */
            }

            .how-to-content img {
                max-width: 100%;
                height: auto;
            }
            label, .episode-list-button {
                font-size: 60%;
            }

            input[type=radio] {
                width: 10px;
                height: 10px;
            }

            .site-header{
                padding: 14px 14px;
            }
            .site-header .brand{
                font-size: 18px;
            }
            .site-header .nav a{
                padding: 8px 10px;
                font-size: 14px;
            }
        }

        /* For even smaller screens like phones */
        @media (max-width: 480px) {
            .tab {
                font-size: 175%;  /* Even larger for phones */
            }

            label, .episode-list-button {
                font-size: 60%;
            }

            input[type=radio] {
                width: 10px;
                height: 10px;
            }

            .how-to-content img {
                max-width: 100%;
                height: auto;
            }

            .site-header{
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .site-header .nav{
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
        }

        body {
            font-family: 'Inter', Arial, sans-serif;
            background-color: var(--bg);
            margin: 0;
            padding: 0; /* header is full-width; container will create spacing */
            line-height: 1.6;
            color: var(--ink);
        }

        /* ===== New top header (yellow) ===== */
        .site-header{
            width: 100%;
            background: var(--accent);
            color: var(--ink);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 22px;
            box-sizing: border-box;
        }
        .site-header .brand{
            font-weight: 300;
            letter-spacing: 0.2px;
            font-size: 20px;
            line-height: 1.2;
            white-space: nowrap;
        }
        .site-header .nav{
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .site-header .nav a{
            color: var(--ink);
            text-decoration: none;
            font-weight: 600;
            padding: 8px 12px;
            border-radius: 8px;
            transition: background-color 0.2s ease, opacity 0.2s ease;
        }
        .site-header .nav a:hover{
            background-color: rgba(255,255,255,0.35);
        }

        /* Page wrapper spacing below header */
        .page-pad{
            padding: 20px;
        }

		a {
            color: #000000;
        }

		a:hover {
            color: #FF0004;
        }

        .intro-content {
            color: var(--muted-2);
        }

        .intro-content:hover {
            color: #FF0004;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: var(--card);
            padding: 20px 30px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
        }

        .chat-type-selector {
    		padding: 10px;
            font-size: 100%;
    		border: 1px solid var(--border);
    		border-radius: 10px;
    		background-color: var(--accent-soft);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .episode-range {
    		display: none;
    		margin-bottom: 20px;
    		margin-top: 10px;
        }

        .episode-range.visible {
    		display: block;
    		gap: 15px;
    		padding-top: 10px;
    		padding-left: 60px;
    		padding-bottom: 10px;
    		background-color: #fff9e6; /* slightly different soft yellow */
    		padding-right: 10px;
			border: 1px solid var(--border);
    		border-radius: 10px;
        }

        .general-chat.visible {
            display:block;
            margin-left: 40px;
            gap: 15px;
        }
        .general-chat {
            display: none;
            margin-bottom: 20px;
        }

        .keyword-search {
        	display: none;
        	margin-left: 40px;
        	gap: 15px;
        }

        .keyword-search.visible {
        	display: block;
        }

        .tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 2px solid var(--border);
            padding-bottom: 10px;
        }

        .tab {
            padding: 10px 20px;
            font-size: 100%;
            cursor: pointer;
            color: var(--muted);
            font-weight: 600;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        .tab:hover {
            color: var(--accent-text);
        }

        .tab.active {
            color: var(--accent-text);
            border-bottom-color: var(--accent);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .conversation-history, .query-results {
            display: flex;
            flex-direction: column;
            gap: 15px;
            padding-right: 15px;
        }

        .user-message, .ai-message {
            max-width: 90%;
            padding: 15px;
            border-radius: 10px;
            position: relative;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .user-message {
            background-color: #e6f3ff;
            align-self: flex-start;
            margin-right: auto;
            border-bottom-left-radius: 0;
        }

        .ai-message {
            background-color: #f0f0f0;
            align-self: flex-end;
            margin-left: auto;
            border-bottom-right-radius: 0;
        }

        .ai-message p, .user-message p {
        		margin: 0;
        		white-space: pre-wrap;
        		word-wrap: break-word;
        }

        /* Add styles for markdown content */
        .ai-message p code, .user-message p code {
            background-color: #f8f8f8;
            padding: 2px 4px;
            border-radius: 4px;
            font-family: monospace;
        }

        .ai-message p pre, .user-message p pre {
            background-color: #f8f8f8;
            padding: 15px;
            border-radius: 6px;
            overflow-x: auto;
            margin: 10px 0;
        }

        .ai-message p pre code, .user-message p pre code {
            padding: 0;
            background-color: transparent;
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .conversation-container, .episode-query-container {
            flex-grow: 1;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: 6px;
            margin-bottom: 15px;
            padding: 15px;
        }

        .conversation-history, .query-results {
            height: 100%;
            overflow-y: auto;
            padding-right: 10px;
            scroll-behavior: smooth;
        }

		.headerStyle {
            display:block;
        }
        
        .footerStyle {
            width: 90%;
            text-align: right;
            margin: 0 auto;

        }

        textarea, #query-input, #episode-number {
    		width: 97%;
    		padding: 12px;
    		border: 1px solid #ddd;
    		border-radius: 6px;
    		margin-bottom: 15px;
    		transition: border-color 0.3s ease;
        }

        #episode-number::placeholder,
        #query-input::placeholder,
        textarea::placeholder {
            color: #666;
            opacity: 0.7;
        }

        textarea:focus, #query-input:focus, #episode-number:focus {
            outline: none;
            border-color: var(--accent);
        }

        button {
            background-color: var(--accent);
            color: #111;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.2s ease, transform 0.02s ease;
            font-weight: 700;
        }

        button:hover {
            background-color: var(--accent-hover);
        }

        button:active{
            transform: translateY(1px);
        }

        button:disabled {
            background-color: #cccccc;
            color: brown;
            cursor: not-allowed;
            animation: pulse 1.5s infinite;
        }

        .chat-input-form, .episode-query-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .query-results h3 {
            color: var(--accent-text);
            margin-top: 0;
            overflow-y: auto;
        }

        .markdown-content code {
            background-color: #f8f8f8;
            padding: 2px 4px;
            border-radius: 4px;
            font-family: monospace;
        }

        .markdown-content pre {
            background-color: #f8f8f8;
            padding: 15px;
            border-radius: 6px;
            overflow-x: auto;
            margin: 10px 0;
        }

        .approx-cost {
            grid-column: 1 / -1;
            font-size: 90%;
            color: #4953ff;
            margin-top: -10px;
        }

		.selection-type {
            margin-left: 30px;
        }

		h1 {
			font: 200% Verdana, Arial, Helvetica, sans-serif;
			font-weight:bold;
			color:#000000;
			display: inline;
		}

		h2 {
			font: 200% Verdana, Arial, Helvetica, sans-serif;
			font-weight:normal;
			color:#000000;
			display: inline;
		}

		h3 {
			font: 200% Verdana, Arial, Helvetica, sans-serif;
			font-weight:normal;
			color: var(--muted-2);
			display: inline;
		}

        h3 a { color: var(--muted-2); text-decoration:none;}
        h3 a:hover { color:#ff0000;}

/* CTA style for Episode Guest List link */
.episode-list-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #2b1a00;
    background: linear-gradient(135deg, #ffd86b, #f3b300);
    text-decoration: none;

    font-weight: 800;
    padding: 8px 16px;
    margin-left: 10px;
    margin-right: 20px;

    border: 1px solid rgba(122, 83, 0, 0.35);
    border-radius: 999px;

    box-shadow:
        0 3px 8px rgba(122, 83, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.episode-list-button::after {
    content: "→";
    font-weight: 900;
    transition: transform 0.18s ease;
}

.episode-list-button:hover {
    background: linear-gradient(135deg, #ffe28a, #ffc107);
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(122, 83, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.episode-list-button:hover::after {
    transform: translateX(3px);
}

.episode-list-button:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(122, 83, 0, 0.25),
        inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.episode-list-button:focus-visible {
    outline: 3px solid rgba(243, 179, 0, 0.45);
    outline-offset: 3px;
}

        .episode-list-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .episode-list-content {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .episode-list-header {
			padding: 20px;
    		border: 1px solid var(--border);
    		border-radius: 10px;
    		background-color: var(--accent-soft);
        }

        .episode-search-container {
            margin-top: 15px;
        }

        .episode-search-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 14px;
            box-sizing: border-box;
        }

        .episode-search-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .episode-list-header h2 {
            margin: 0;
            color: #333;
        }

        .episode-list-close {
            font-size: 200%;
            cursor: pointer;
            color: #666;
            padding: 5px 10px;
            border-radius: 8px;
            transition: background-color 0.2s;
        }

        .episode-list-close:hover {
            background-color: rgba(0,0,0,0.06);
        }

        #episodeListContent {
            padding: 0px 20px 20px 20px;
            overflow-y: auto;
            flex-grow: 1;
        }

        .episode-list-table {
            width: 100%;
            border-collapse: collapse;
        }

        .episode-list-table th,
        .episode-list-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .episode-list-table th {
            background-color: #f5f5f5;
            position: sticky;
            top: 0;
            z-index: 1;
            font-weight: 700;
        }

        .episode-list-table tr:hover {
            background-color: #f9f9f9;
        }

        .episode-list-table tbody tr {
            cursor: pointer;
        }

        .episode-list-table tbody td {
            transition: color 0.2s;
        }

        .episode-list-table tbody tr:hover td {
            color: var(--accent-text);
        }

        .episode-list-loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }

        div {
            font-size: 100%;
        }

        /* Example styles */
        .examples-content {
            padding: 20px;
        }

        .example-link {
            margin-bottom: 30px;
            cursor: pointer;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .example-link:hover {
            background-color: #f5f5f5;
            border-color: var(--accent);
        }

        .example-link h3 {
            color: var(--accent-text);
            margin-bottom: 10px;
            font-size: 120%;
            display: block;
        }

        .example-link p {
            color: #666;
            margin: 0;
        }

        .example-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .example-overlay-content {
            position: relative;
            background-color: white;
            padding: 20px;
            border-radius: 12px;
            max-width: calc(600px + 40px);
            max-height: 90vh;
            overflow: auto;
        }

        .example-overlay img {
            width: 600px;
            height: auto;
            display: block;
        }

        .example-close {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 8px;
            background-color: white;
        }

        .example-close:hover {
            color: #333;
            background-color: #f0f0f0;
        }

        @keyframes pulse {
            0% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.05);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Step numbering (design-only) */
        .step-row {
            display: grid;
            grid-template-columns: 36px 1fr;
            gap: 14px;
            align-items: flex-start;
            margin-bottom: 14px;
        }

        .step-num {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 90%;
            color: var(--accent-text);
            background-color: var(--accent-soft);
            border: 1px solid var(--accent-soft-2);
            box-shadow: 0 2px 4px rgba(0,0,0,0.06);
            margin-top: 6px;
        }

        .step-content {
            min-width: 0;
        }

        /* Ensure inputs/textareas fill within the step grid */
        .step-content textarea,
        .step-content input[type="text"],
        .step-content input[type="number"] {
            box-sizing: border-box;
        }

        @media (max-width: 480px) {
            .step-row {
                grid-template-columns: 32px 1fr;
                gap: 10px;
            }
            .step-num {
                width: 26px;
                height: 26px;
                margin-top: 4px;
            }
        }

        /* === Mobile responsiveness overrides (keeps desktop unchanged) === */
        @media (max-width: 768px) {
            .page-pad{ padding: 12px; }
            .container{ max-width: 100%; padding: 16px 16px; border-radius: 12px; }
            .tabs{ flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
            .tab{
                flex: 1 1 auto;
                text-align: center;
                padding: 12px 10px;
                font-size: 16px; /* override earlier scaling for better balance */
                border-bottom-width: 3px;
            }

            /* Make header/content media scale */
            iframe{ width: 100% !important; max-width: 100%; aspect-ratio: 16/9; height: auto; }

            /* Forms and inputs */
            textarea, #query-input, #episode-number{ width: 100%; box-sizing: border-box; }
            #episode-select{ width: 100% !important; box-sizing: border-box; }
            #episode-start, #episode-end{ box-sizing: border-box; }

            /* Step layout + selector */
            .chat-type-selector{ flex-wrap: wrap; gap: 10px; }
            .chat-type-selector label{
                display: inline-flex;
                align-items: center;
                gap: 6px;
                margin: 4px 0;
            }
            label, .episode-list-button{ font-size: 14px; } /* override tiny 60% */
            input[type=radio]{ width: 16px; height: 16px; }

            .episode-range.visible{
                padding-left: 14px;
                padding-right: 14px;
            }
            .selection-type{ margin-left: 0; }

            /* Range selection wraps nicely */
            #rangeSelection{
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                align-items: center;
            }
            #rangeSelection strong{ display: none; }

            /* Chat bubbles use full width on small screens */
            .user-message, .ai-message{ max-width: 100%; }

            /* Overlays */
            .episode-list-content{ width: 95%; max-height: 90vh; }
            #episodeListContent{ overflow: auto; }
            .example-overlay-content{ max-width: 95vw; }
            .example-overlay img{ width: 100%; max-width: 600px; height: auto; }
        }

        @media (max-width: 480px) {
            .container{ padding: 12px 12px; }
            .conversation-container, .episode-query-container{ padding: 12px; }
            .conversation-history, .query-results{ padding-right: 0; }
            .tab{ font-size: 15px; padding: 12px 8px; }

            /* Make episode list table readable */
            .episode-list-table th, .episode-list-table td{ padding: 10px 12px; }

            /* Reduce left padding in step components */
            .episode-range.visible{ padding-left: 12px; }

            /* Improve touch target for close buttons */
            .episode-list-close{ padding: 10px 12px; }
        }

    
        /* === Intro header: text + video side-by-side on desktop, stacked on mobile === */
        /* Put this at the very end of the <style> block so it overrides earlier rules. */
        @media (min-width: 769px) {
            /* The top intro block (the one containing the two <p> tags + the iframe wrapper <div>) */
            #header.headerStyle{
                display: flex !important;
                align-items: flex-start;
                gap: 24px;
            }
            /* Make the text column take remaining space */
            #header.headerStyle > p{
                flex: 1 1 0;
                margin-top: 0;
            }
            /* Push the iframe wrapper to the right */
            #header.headerStyle > div{
                flex: 0 0 auto;
                margin-left: auto;
            }
            #header.headerStyle iframe{
                display: block;
                width: 400px;
                height: 225px;
            }
        }

        @media (max-width: 768px) {
            #header.headerStyle{
                display: block !important;
            }
            /* keep your existing mobile iframe rule (100% width) */
        }


/* Content search: distinct episode cards and explicit result groups. */
.search-results { width: 100%; min-width: 0; }
.search-summary { margin: 0 0 20px; font-size: 1.1rem; }
.search-notice { padding: 12px 16px; background: #fff5d6; border-left: 4px solid #b47b00; }
.search-group { margin: 28px 0 36px; }
.search-group > h2 { font-size: 1.15rem; color: #4e3a0a; margin: 0 0 16px; }
.search-result { background: #fff; border: 2px solid #b9b9c3; border-radius: 10px;
    overflow: hidden; margin: 0 0 24px; box-shadow: 0 3px 8px rgba(0,0,0,.06); }
.search-result-heading { padding: 16px 20px; background: #fff2c9;
    border-bottom: 2px solid #d4af4d; border-left: 6px solid var(--accent-hover, #b47b00); }
.search-result-heading h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.5;
    color: var(--ink, #111); font-weight: 700; overflow-wrap: anywhere; }
.search-result-heading h3 span { display: block; font-weight: 600; }
.search-match-label { display: inline-block; font-size: .8rem; font-weight: 700;
    color: #584007; background: #fff; border: 1px solid #c4a34c; padding: 2px 8px; border-radius: 4px; }
.search-result-body { padding: 16px 20px; overflow-wrap: anywhere; }
.search-result-body p { margin: 0 0 14px; }
.search-result-body h4 { margin: 18px 0 8px; font-size: .95rem; }
.search-excerpts { margin: 0; padding-left: 22px; }
.search-excerpts li { margin-bottom: 12px; }
.search-excerpts li:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
    .search-result-heading, .search-result-body { padding: 12px; }
    .search-result-heading h3 { font-size: 1.05rem; }
}
