:root {
    --background: #FDFBF7;
    --card-background: #F5F2EB;
    --primary-text: #1C231F;
    --secondary-text: #5C6460;
    --accent: #D96B43;
    --border-color: #E6E1D6;
    --hover-state: #EAE5D8;
    --input-background: #FFFFFF;
    --badge-background: #E8E3D9;
    --accent-muted: #F3EAE3;
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Instrument Sans', Inter, sans-serif;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    background-color: var(--background);
    color: var(--primary-text);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.text-muted {
    color: var(--secondary-text) !important;
}

/* ===== header ===== */
.fieldbook-header {
    font-family: 'Instrument Sans', sans-serif;
}

.fieldbook-header .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== hero ===== */
.meal-hero {
    font-family: 'Instrument Sans', sans-serif;
}

.meal-hero h1,
.meal-hero h3 {
    font-family: 'Playfair Display', serif;
}

.meal-hero video {
    object-fit: cover;
}

/* ===== main_materials ===== */

/* ===== featured_exercise ===== */
.featured-exercise-section {
    font-family: 'Instrument Sans', Inter, sans-serif;
}

.featured-exercise-section h2,
.featured-exercise-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.featured-exercise-section .custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #E6E1D6;
    outline: none;
    transition: background 0.2s;
}

.featured-exercise-section .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #1C231F;
    border: 2px solid #D96B43;
    cursor: pointer;
    transition: background-color 0.2s;
}

.featured-exercise-section .custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #1C231F;
    border: 2px solid #D96B43;
    cursor: pointer;
    transition: background-color 0.2s;
}

.featured-exercise-section .active-card {
    border-color: #D96B43 !important;
    background-color: #F3EAE3 !important;
}

/* ===== review_questions ===== */
.meal-review-questions {
    font-family: 'Instrument Sans', sans-serif;
}

.meal-review-questions h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

.meal-review-questions .js-question-item {
    border-radius: 0px;
}

.meal-review-questions textarea {
    border-radius: 0px;
}

.meal-review-questions button {
    border-radius: 0px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.meal-review-questions .js-toggle-btn:focus {
    outline: none;
}

.meal-review-questions .rotate-180 {
    transform: rotate(180deg);
}

/* ===== payment_terms ===== */
.mealtradeoff-payment-terms {
    font-family: 'Instrument Sans', sans-serif;
}

.mealtradeoff-payment-terms h2,
.mealtradeoff-payment-terms h3,
.mealtradeoff-payment-terms h4 {
    font-family: 'Playfair Display', serif;
}

.mealtradeoff-payment-terms .custom-input {
    background-color: #FFFFFF;
    border: 1px solid #E6E1D6;
    color: #1C231F;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.mealtradeoff-payment-terms .custom-input:focus {
    outline: none;
    border-color: #D96B43;
}

.mealtradeoff-payment-terms ::placeholder {
    color: #5C6460 !important;
    opacity: 0.7;
}

/* ===== after_start ===== */
.after-start-section {
    font-family: 'Instrument Sans', sans-serif;
}

.after-start-section h2,
.after-start-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.after-start-section .js-timeline-item {
    border-radius: 0px;
}

/* ===== interactive_tour ===== */
.meal-tour-section {
    font-family: 'Instrument Sans', sans-serif;
}

.meal-tour-section h2,
.meal-tour-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.meal-tour-section .step-card {
    border: 1px solid #E6E1D6;
    background-color: #FFFFFF;
    transition: border-color 0.2s, background-color 0.2s;
}

.meal-tour-section .step-card:hover {
    background-color: #F5F2EB;
}

.meal-tour-section .step-card.is-active {
    border-color: #D96B43;
    background-color: #F3EAE3;
}

.meal-tour-section .step-card .bi-check-circle-fill {
    display: none;
}

.meal-tour-section .step-card.is-active .bi-check-circle-fill {
    display: block;
}

/* ===== stages ===== */
.meal-stages .stage-tab-btn {
    background-color: transparent;
    border-color: #E6E1D6;
    transition: all 0.2s ease-in-out;
}

.meal-stages .stage-tab-btn.is-active {
    border-color: #D96B43;
    background-color: #F5F2EB;
}

.meal-stages .stage-tab-btn:hover:not(.is-active) {
    background-color: #EAE5D8;
}

.meal-stages .stage-tab-btn .js-stage-label {
    color: #5C6460;
    transition: color 0.2s ease-in-out;
}

.meal-stages .stage-tab-btn.is-active .js-stage-label {
    color: #D96B43;
}

.meal-stages .stage-detail-panel {
    display: none;
}

.meal-stages .stage-detail-panel.is-active {
    display: block;
}

/* ===== qualification ===== */
.mtf-qualification {
    font-family: 'Instrument Sans', sans-serif;
}

.mtf-qualification h2,
.mtf-qualification h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.mtf-qualification .js-tab-btn {
    transition: all 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .mtf-qualification .js-qualify-card.hidden {
        display: none !important;
    }
}

/* ===== texture_grid ===== */
.texture-balance-grid {
    font-family: 'Instrument Sans', Inter, sans-serif;
}

.texture-balance-grid h2,
.texture-balance-grid h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.texture-balance-grid .js-filter-btn {
    border-radius: 0px;
}

.texture-balance-grid .js-grid-item {
    border-radius: 0px;
}

/* ===== ingredient_grid ===== */
.ingredient-guide-grid .search-input::placeholder {
    color: #5C6460;
    opacity: 0.8;
}

.ingredient-guide-grid .js-filter-btn {
    transition: all 0.2s ease;
}

.ingredient-guide-grid .js-filter-btn.active {
    background-color: #1C231F;
    border-color: #1C231F;
    color: #FDFBF7;
}

/* ===== footer ===== */
.mealtradeoff-footer a {
    text-decoration: none;
}

.mealtradeoff-footer a:hover {
    text-decoration: underline;
}

.fieldbook-header {
    font-family: 'Instrument Sans', sans-serif;
}

.fieldbook-header .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.mealtradeoff-footer a {
    text-decoration: none;
}

.mealtradeoff-footer a:hover {
    text-decoration: underline;
}

.preference-vocab-block {
    background-color: #FDFBF7;
    color: #1C231F;
    font-family: 'Instrument Sans', Inter, sans-serif;
}

.preference-vocab-block .hero-section {
    background-color: #F3EAE3;
    border-bottom: 1px solid #E6E1D6;
}

.preference-vocab-block .hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #1C231F;
}

@media (min-width: 768px) {
    .preference-vocab-block .hero-title {
        font-size: 42px;
    }
}

.preference-vocab-block .section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1C231F;
}

@media (min-width: 768px) {
    .preference-vocab-block .section-title {
        font-size: 32px;
    }
}

.preference-vocab-block .card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1C231F;
}

@media (min-width: 768px) {
    .preference-vocab-block .card-title {
        font-size: 24px;
    }
}

.preference-vocab-block .badge-tag {
    background-color: #E8E3D9;
    color: #1C231F;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 8px;
    display: inline-block;
}

.preference-vocab-block .card-container {
    background-color: #F5F2EB;
    border: 1px solid #E6E1D6;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.20s ease, background-color 0.20s ease;
}

.preference-vocab-block .card-container:hover {
    border-color: #D96B43;
    background-color: #EAE5D8;
}

.preference-vocab-block .btn-secondary {
    background-color: transparent;
    color: #1C231F;
    border: 1px solid #1C231F;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    padding: 12px 24px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preference-vocab-block .btn-secondary:hover {
    background-color: #F5F2EB;
}

.preference-vocab-block .meta-text {
    font-size: 12px;
    color: #5C6460;
    letter-spacing: 0.05em;
}

.preference-vocab-block .body-text {
    font-size: 15px;
    line-height: 1.6;
    color: #5C6460;
}

.preference-vocab-block .search-input {
    background-color: #FFFFFF;
    border: 1px solid #E6E1D6;
    color: #1C231F;
    padding: 10px 16px 10px 40px;
    font-size: 14px;
}

.preference-vocab-block .search-input::placeholder {
    color: #5C6460;
    opacity: 0.8;
}

.preference-vocab-block .sort-select {
    background-color: #FFFFFF;
    border: 1px solid #E6E1D6;
    color: #1C231F;
    padding: 10px 16px;
    font-size: 14px;
}


/* ===== PAGE: chipotle ===== */
.chipotle-review-section {
  font-family: 'Instrument Sans', sans-serif;
}

.chipotle-review-section h1,
.chipotle-review-section h2,
.chipotle-review-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

.chipotle-review-section .js-base-option.active,
.chipotle-review-section .js-priority-option.active,
.chipotle-review-section .js-familiarity-option.active {
  background-color: #1C231F !important;
  color: #FDFBF7 !important;
  border-color: #1C231F !important;
}

.chipotle-review-section input[type="checkbox"]:checked {
  background-color: #D96B43;
  border-color: #D96B43;
}

/* ===== PAGE: choice-comparisons ===== */
.choice-comparisons-block {
  font-family: 'Instrument Sans', sans-serif;
}
.choice-comparisons-block h1,
.choice-comparisons-block h2,
.choice-comparisons-block h3,
.choice-comparisons-block h4 {
  font-family: 'Playfair Display', Georgia, serif;
}
.choice-comparisons-block select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%25231C231F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25em auto;
  padding-right: 2.5rem;
}
.choice-comparisons-block select:focus {
  outline: none;
}

/* ===== PAGE: portion-preferences ===== */
.portion-guide-section .active-tab {
  background-color: #1C231F !important;
  color: #FDFBF7 !important;
  border-color: #1C231F !important;
}
.portion-guide-section select {
  border-radius: 0px !important;
}
.portion-guide-section input::placeholder {
  color: #5C6460 !important;
  opacity: 0.8;
}

/* ===== PAGE: repeat-decisions ===== */
.repeat-decisions-section {
  background-color: #FDFBF7;
  color: #1C231F;
}
.repeat-decisions-section .custom-border {
  border-color: #E6E1D6;
}
.repeat-decisions-section .bg-card {
  background-color: #F5F2EB;
}
.repeat-decisions-section .btn-editorial-primary {
  background-color: #1C231F;
  color: #FDFBF7;
  border: 1px solid #1C231F;
  font-weight: 500;
  transition: background-color 200ms, border-color 200ms;
}
.repeat-decisions-section .btn-editorial-primary:hover {
  background-color: #D96B43;
  border-color: #D96B43;
}
.repeat-decisions-section .btn-editorial-secondary {
  background-color: transparent;
  color: #1C231F;
  border: 1px solid #1C231F;
  font-weight: 500;
  transition: background-color 200ms;
}
.repeat-decisions-section .btn-editorial-secondary:hover {
  background-color: #EAE5D8;
}
.repeat-decisions-section .tab-btn {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: #5C6460;
  transition: color 200ms, border-color 200ms;
}
.repeat-decisions-section .tab-btn.active {
  color: #1C231F;
  border-bottom-color: #D96B43;
  font-weight: 600;
}
.repeat-decisions-section .pill-badge {
  background-color: #E8E3D9;
  color: #1C231F;
}
.repeat-decisions-section .calculator-wrapper {
  background-color: #F5F2EB;
  border: 1px solid #E6E1D6;
}
.repeat-decisions-section select {
  background-color: #FFFFFF;
  border: 1px solid #E6E1D6;
  color: #1C231F;
  font-size: 14px;
}
.repeat-decisions-section select:focus {
  outline: none;
  border-color: #D96B43;
}
.repeat-decisions-section .card-transition {
  transition: opacity 200ms ease, transform 200ms ease;
}

/* ===== PAGE: visit-exercises ===== */
.visit-exercises-block select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231C231F' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
}

.visit-exercises-block select:focus {
  outline: none;
}

.visit-exercises-block .js-exercise-card {
  min-height: 420px;
}

/* ===== PAGE: about ===== */
.about-page-block {
  background-color: #FDFBF7;
  font-family: 'Instrument Sans', sans-serif;
}
.about-page-block .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}
.about-page-block .custom-input::placeholder {
  color: #8C9490;
  opacity: 1;
}

/* ===== PAGE: contact ===== */
.fieldbook-contact ::placeholder {
  color: #5C6460 !important;
  opacity: 0.6;
}

.fieldbook-contact select {
  background-image: none;
}

.fieldbook-contact input[type="checkbox"] {
  accent-color: #D96B43;
}

.fieldbook-contact input:focus,
.fieldbook-contact select:focus,
.fieldbook-contact textarea:focus {
  border-color: #D96B43 !important;
  box-shadow: none !important;
}

/* ===== PAGE: privacy ===== */
.privacy-fieldbook-content .js-tab-btn.active {
  background-color: #1C231F !important;
  color: #FDFBF7 !important;
}
.privacy-fieldbook-content .js-policy-section {
  transition: opacity 0.2s ease-in-out;
}

/* ===== PAGE: terms ===== */
.terms-section input::placeholder {
  color: #8C9490;
  opacity: 1;
}
.terms-section .active-filter {
  background-color: #1C231F !important;
  color: #FDFBF7 !important;
  border-color: #1C231F !important;
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-block .js-tab-btn {
  transition: all 0.2s ease-in-out;
}
.disclaimer-block .js-tab-content {
  transition: opacity 0.2s ease-in-out;
}

.editorial-comment-card {
    font-family: 'Instrument Sans', Inter, sans-serif;
    border-radius: 0px;
}

.editorial-comment-card .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.editorial-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}

.editorial-reply-card {
    font-family: 'Instrument Sans', Inter, sans-serif;
    border-radius: 0px;
}

.editorial-reply-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}


/* ===== PAGE TEMPLATE: texture-balance ===== */
.fieldbook-header {
    font-family: 'Instrument Sans', sans-serif;
}

.fieldbook-header .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.mealtradeoff-footer a {
    text-decoration: none;
}

.mealtradeoff-footer a:hover {
    text-decoration: underline;
}

.mealtradeoff-detail-body .placeholder-custom::placeholder {
    color: #5C6460;
    opacity: 0.7;
}

.mealtradeoff-detail-body .content-markdown p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 15px;
    color: #5C6460;
}

.mealtradeoff-detail-body .content-markdown strong {
    color: #1C231F;
    font-weight: 600;
}

.mealtradeoff-detail-body .content-markdown blockquote {
    border-left: 3px solid #D96B43;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1C231F;
}

.mealtradeoff-detail-body .content-markdown ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.mealtradeoff-detail-body .content-markdown ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 15px;
    color: #5C6460;
}

.mealtradeoff-detail-body .content-markdown ul li::before {
    content: "•";
    color: #D96B43;
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
    position: absolute;
}

/* ===== PAGE TEMPLATE: ingredient-guide ===== */
.fieldbook-header {
    font-family: 'Instrument Sans', sans-serif;
}

.fieldbook-header .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.mealtradeoff-footer a {
    text-decoration: none;
}

.mealtradeoff-footer a:hover {
    text-decoration: underline;
}

.mealtradeoff-detail-body .placeholder-custom::placeholder {
    color: #5C6460;
    opacity: 0.7;
}

.mealtradeoff-detail-body .content-markdown p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 15px;
    color: #5C6460;
}

.mealtradeoff-detail-body .content-markdown strong {
    color: #1C231F;
    font-weight: 600;
}

.mealtradeoff-detail-body .content-markdown blockquote {
    border-left: 3px solid #D96B43;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1C231F;
}

.mealtradeoff-detail-body .content-markdown ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.mealtradeoff-detail-body .content-markdown ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 15px;
    color: #5C6460;
}

.mealtradeoff-detail-body .content-markdown ul li::before {
    content: "•";
    color: #D96B43;
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
    position: absolute;
}