/* 1.5.0. Scoped to Bridge-managed recipes and plugin-owned components. No global layout rules. */
body.tfp-recipe-page .tfp-recipe-details {
  font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; min-width: 0; max-width: 100%;
}
body.tfp-recipe-page .tfp-recipe-details h2 {
  font-size: clamp(23px, 2.1vw, 28px) !important;
  line-height: 1.25 !important; margin: 30px 0 14px !important;
  letter-spacing: -.02em !important; font-weight: 700;
}
body.tfp-recipe-page .tfp-recipe-details h3 {
  font-size: clamp(19px, 1.8vw, 22px) !important; line-height: 1.35;
}
body.tfp-recipe-page .tfp-recipe-details p { font-size: inherit; line-height: inherit; margin: 0 0 18px; }
body.tfp-recipe-page .tfp-recipe-details ul { padding-left: 22px; margin: 0 0 22px; }
body.tfp-recipe-page .tfp-recipe-details li { font-size: inherit; line-height: 1.65; margin-bottom: 7px; }
body.tfp-recipe-page .tfp-recipe-timebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb;
  padding: 14px 0; margin: 16px 0 20px; font-size: 15px; line-height: 1.5;
  max-width: 100%; color: #222;
}
body.tfp-recipe-page .tfp-time-item { display: flex; flex-wrap: wrap; gap: 5px; }
body.tfp-recipe-page .tfp-time-item strong { font-size: inherit; font-weight: 700; }
body.tfp-recipe-page .tfp-reference-note,
body.tfp-recipe-page .tfp-unit-guide { font-size: 14px !important; line-height: 1.65 !important; color: #53565c; }
body.tfp-recipe-page .tfp-unit-guide { border-left: 3px solid #d6d9dd; padding-left: 12px; margin: 12px 0 20px; }
body.tfp-recipe-page .tfp-unit-guide abbr { text-decoration: none; }
body.tfp-recipe-page .tfp-table-scroll { overflow-x: auto; max-width: 100%; margin-bottom: 26px; }
body.tfp-recipe-page table.tfp-measurement-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.6; }
body.tfp-recipe-page .tfp-measurement-table :is(th, td) { padding: 12px; border: 0; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
body.tfp-recipe-page .tfp-measurement-table thead { background: #f6f7f8; }
body.tfp-recipe-page .tfp-measurement-table tbody th { font-weight: 600; width: 44%; }
body.tfp-recipe-page .tfp-measurement-table small { display: block; font-weight: 400; font-size: 13px; line-height: 1.6; margin-top: 3px; color: #555; }
body.tfp-recipe-page .tfp-inline-measure { display: inline; font-weight: 400; font-size: .88em; white-space: normal; color: #53565c; }
body.tfp-recipe-page .tfp-inline-measure[hidden] { display: none !important; }
body.tfp-recipe-page .tfp-recipe-details .tfb-ai-note { font-size: 13px; line-height: 1.65; color: #53565c; border-top: 1px solid #e5e7eb; padding-top: 16px; }
body.tfp-recipe-page .tfp-recipe-details .tfb-ai-note small { font-size: inherit; }
@media (max-width: 600px) {
  body.tfp-recipe-page .tfp-recipe-details { font-size: 16px; }
  body.tfp-recipe-page .tfp-recipe-details h2 { margin-top: 26px !important; }
  body.tfp-recipe-page .tfp-recipe-timebar { gap: 8px 18px; font-size: 14px; }
  body.tfp-recipe-page .tfp-measurement-table :is(th, td) { padding: 10px 8px; }
  body.tfp-recipe-page .tfp-measurement-table { min-width: 330px; font-size: 14px; }
}
@media print {
  body.tfp-recipe-page .tfp-recipe-details { font-size: 11pt; }
  body.tfp-recipe-page .tfp-recipe-details h2 { font-size: 15pt !important; break-after: avoid; }
  body.tfp-recipe-page .tfp-table-scroll { overflow: visible; }
  body.tfp-recipe-page .tfp-measurement-table tr { break-inside: avoid; }
}

/* Two readable measurement columns on a narrow screen, instead of squeezed words. */
@media (max-width: 600px) {
  body.tfp-recipe-page table.tfp-measurement-table { min-width: 0; width: 100%; }
  body.tfp-recipe-page .tfp-measurement-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  body.tfp-recipe-page .tfp-measurement-table tbody { display: block; }
  body.tfp-recipe-page .tfp-measurement-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px; overflow: hidden;
  }
  body.tfp-recipe-page .tfp-measurement-table tbody th {
    grid-column: 1 / -1; width: auto; background: #f6f7f8;
    padding: 10px 12px; border-bottom: 1px solid #e5e7eb;
  }
  body.tfp-recipe-page .tfp-measurement-table tbody td {
    display: block; min-width: 0; padding: 10px 12px; border: 0;
    overflow-wrap: break-word;
  }
  body.tfp-recipe-page .tfp-measurement-table tbody td + td { border-left: 1px solid #e5e7eb; }
  body.tfp-recipe-page .tfp-measurement-table tbody td::before {
    display: block; color: #53565c; font-size: 12px; font-weight: 600; margin-bottom: 3px;
  }
  body.tfp-recipe-page .tfp-measurement-table tbody td:nth-child(2)::before { content: 'US amount'; }
  body.tfp-recipe-page .tfp-measurement-table tbody td:nth-child(3)::before { content: 'Metric equivalent'; }
}
/* 1.3.0 — compact, isolated ingredient component. Reset inherited theme spacing only here. */
body.tfp-recipe-page section.tfp-ingredients-panel {
  box-sizing: border-box; display: block; float: none !important; clear: both;
  width: 100% !important; min-width: 0; max-width: 100%; height: auto !important; min-height: 0 !important;
  margin: 12px 0 16px !important; padding: 14px 16px !important;
  border: 1px solid #e4e6e8; border-radius: 10px; background: #fff; color: #24272b;
  font: normal 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  word-break: normal !important; overflow-wrap: normal !important; text-transform: none !important;
  letter-spacing: normal !important;
}
body.tfp-recipe-page .tfp-ingredients-panel * { box-sizing: border-box; }
body.tfp-recipe-page .tfp-ingredients-panel :is(p,label,div,ul,li,span,details,summary) {
  text-transform: none !important; letter-spacing: normal !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-panel-top {
  display: flex !important; flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 12px; padding: 0 !important; margin: 0 0 7px !important;
}
body.tfp-recipe-page .tfp-ingredients-panel h2 {
  font: 700 20px/1.25 system-ui,sans-serif !important; text-transform: none !important;
  letter-spacing: -.02em !important; padding: 0 !important; margin: 0 !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions {
  display: flex !important; align-items: center; flex-wrap: nowrap; gap: 6px;
  padding: 0 !important; margin: 0 !important; font-size: 13px !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions label {
  display: flex !important; align-items: center; gap: 4px; float: none !important;
  width: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  font: 400 13px/1.3 system-ui,sans-serif !important; color: #30343a;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions button {
  all: unset; box-sizing: border-box; width: 34px; height: 34px; min-width: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d7dbe0; border-radius: 7px; cursor: pointer;
  font: 500 20px/1 system-ui,sans-serif; color: #24272b; background: #fff;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions input {
  all: unset; box-sizing: border-box; width: 34px; padding: 2px 0;
  border-bottom: 1px solid #c5cbd1; text-align: center; color: #15171a;
  font: 700 15px/1.5 system-ui,sans-serif; appearance: textfield;
}
body.tfp-recipe-page .tfp-portions input::-webkit-inner-spin-button,
body.tfp-recipe-page .tfp-portions input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.tfp-recipe-page .tfp-ingredients-panel [disabled] { opacity: .4; cursor: not-allowed; }
body.tfp-recipe-page .tfp-ingredients-panel :is(button,input,summary):focus-visible { outline: 2px solid #155f54; outline-offset: 3px; }
body.tfp-recipe-page .tfp-ingredients-panel ul.tfp-ingredient-cards {
  display: block !important; columns: auto; float: none !important; width: 100% !important;
  max-width: 100% !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important;
}
body.tfp-recipe-page .tfp-ingredients-panel li.tfp-ingredient-card {
  display: grid !important; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 8px;
  float: none !important; width: 100% !important; max-width: 100%; min-height: 0 !important; height: auto !important;
  padding: 9px 0 !important; margin: 0 !important; border: 0; border-bottom: 1px solid #eceeef;
  list-style: none !important; font-size: 15px !important; line-height: 1.45 !important; break-inside: avoid;
}
body.tfp-recipe-page .tfp-ingredients-panel li.tfp-ingredient-card::before,
body.tfp-recipe-page .tfp-ingredients-panel li.tfp-ingredient-card::after,
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions label::before,
body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions label::after,
body.tfp-recipe-page .tfp-ingredients-panel label.tfp-ingredient-name::before,
body.tfp-recipe-page .tfp-ingredients-panel label.tfp-ingredient-name::after { content: none !important; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-ingredient-check {
  all: revert; box-sizing: border-box; appearance: auto !important; position: static !important;
  display: inline-block !important; float: none !important; width: 17px !important; height: 17px !important;
  padding: 0 !important; margin: 2px 0 0 !important; opacity: 1 !important;
  visibility: visible !important; transform: none !important; accent-color: #155f54; cursor: pointer;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-card-body {
  display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1.45fr);
  align-items: baseline; gap: 3px 12px; min-width: 0; width: auto !important;
  margin: 0 !important; padding: 0 !important;
}
body.tfp-recipe-page .tfp-ingredients-panel label.tfp-ingredient-name {
  display: block !important; float: none !important; width: auto !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; color: #21262b;
  font: 600 15px/1.45 system-ui,sans-serif !important; cursor: pointer;
  word-break: normal !important; overflow-wrap: break-word !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-checked .tfp-ingredient-name { text-decoration: line-through; color: #606972 !important; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-amount-line {
  display: flex !important; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 1px 5px;
  min-width: 0; padding: 0 !important; margin: 0 !important;
  font: 400 14px/1.45 system-ui,sans-serif !important;
  word-break: normal !important; overflow-wrap: normal !important;
}
body.tfp-recipe-page .tfp-ingredients-panel [data-tfp-amount] { font: 550 14px/1.45 system-ui,sans-serif !important; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-scaled-metric {
  display: inline-block; font: 400 12px/1.45 system-ui,sans-serif !important;
  color: #606772; white-space: nowrap; padding: 0 !important; margin: 0 !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-ingredient-preparation {
  grid-column: 1/-1; padding: 0 !important; margin: 0 !important;
  font: 400 12px/1.5 system-ui,sans-serif !important; color: #606772;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-how-to {
  grid-column: 1/-1; width: 100%; padding: 0 !important; margin: 1px 0 0 !important;
  font: 400 12px/1.5 system-ui,sans-serif !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-how-to summary {
  display: list-item; width: fit-content; max-width: 100%; cursor: pointer;
  padding: 0 !important; margin: 0 !important; color: #155f54;
  font: 500 12px/1.5 system-ui,sans-serif !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-how-to p {
  padding: 6px 9px !important; margin: 5px 0 0 !important;
  border-radius: 5px; background: #f4f7f6; color: #46514e;
  font: 400 13px/1.5 system-ui,sans-serif !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-scaling-note,
body.tfp-recipe-page .tfp-ingredients-panel .tfp-placement-note {
  padding: 0 !important; margin: 9px 0 0 !important;
  font: 400 12px/1.5 system-ui,sans-serif !important; color: #5e636b;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-placement-note {
  border-left: 3px solid #b88428; padding-left: 9px !important; margin-bottom: 8px !important;
}
body.tfp-recipe-page .tfp-ingredients-panel .tfp-panel-bottom { display: flex; margin: 6px 0 0 !important; padding: 0 !important; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-reset {
  all: unset; font: 400 12px/1.5 system-ui,sans-serif; text-decoration: underline; color: #53615d; cursor: pointer;
}
body.tfp-recipe-page .tfp-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-unit-guide { padding: 0 0 0 9px !important; margin: 8px 0 0 !important; }
body.tfp-recipe-page .tfp-unit-guide summary { cursor: pointer; font-weight: 600; font-size: 13px; }
body.tfp-recipe-page .tfp-ingredients-panel .tfp-unit-guide > p { font: 400 12px/1.5 system-ui,sans-serif !important; margin: 7px 0 0 !important; }
body.tfp-recipe-page .tfp-native-replaced,
body.tfp-recipe-page .tfp-author-hidden,
body.tfp-recipe-page .tfp-ingredients-panel [hidden] { display: none !important; }
/* Applied only after script verified this is a dedicated author/icon-action toolbar. */
body.tfp-recipe-page .tfp-author-actions-row {
  min-height: 0 !important; height: auto !important; padding: 0 !important;
  margin-top: 0 !important; margin-bottom: 4px !important; border: 0 !important;
  display: flex; justify-content: flex-end; align-items: center;
}
/* Panel width, rather than only screen width, controls the compact row fallback. */
body.tfp-recipe-page .tfp-ingredients-panel.tfp-narrow .tfp-card-body { grid-template-columns: minmax(0,1fr); gap: 2px; }
body.tfp-recipe-page .tfp-ingredients-panel.tfp-narrow .tfp-amount-line { justify-content: flex-start; }
@media (max-width: 600px) {
  body.tfp-recipe-page section.tfp-ingredients-panel { padding: 12px !important; margin: 10px 0 14px !important; }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-card-body { grid-template-columns: minmax(0,1fr); gap: 2px; }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-amount-line { justify-content: flex-start; }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-portions button { width: 36px; height: 36px; }
}
@media print {
  body.tfp-recipe-page section.tfp-ingredients-panel { border: 0; padding: 0 !important; font-size: 11pt !important; }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-card-body { grid-template-columns: minmax(0,1fr) minmax(0,1.45fr); }
  body.tfp-recipe-page .tfp-ingredients-panel :is(.tfp-how-to,.tfp-panel-bottom,.tfp-unit-guide,.tfp-portions button) { display: none !important; }
  body.tfp-recipe-page .tfp-portions input { border: 0; }
  body.tfp-recipe-page :is(.tfp-native-replaced,.tfp-author-hidden) { display: none !important; }
}

/* 1.5.0: CSS handles the column width before first paint. No JavaScript layout jump. */
body.tfp-recipe-page .tfp-ingredients-panel { container-type: inline-size; container-name: tfp-ingredients; }
@container tfp-ingredients (max-width: 439px) {
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-card-body { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-amount-line { justify-content: flex-start; }
}
@supports not (container-type: inline-size) {
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-card-body { grid-template-columns: minmax(0,1fr); }
  body.tfp-recipe-page .tfp-ingredients-panel .tfp-amount-line { justify-content: flex-start; }
}

/* 1.5.0 managed recipe template. Avoid dependencies on guessed Platea selectors. */
body.tfp-recipe-page .tfp-owned-layout {max-width:1240px;margin:0 auto;padding:40px 24px;color:#202428;box-sizing:border-box;font:400 16px/1.65 system-ui,-apple-system,sans-serif;}
body.tfp-recipe-page .tfp-owned-layout * {box-sizing:border-box;}
body.tfp-recipe-page .tfp-owned-hero {display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:36px;align-items:start;}
body.tfp-recipe-page figure.tfp-owned-photo {margin:0;min-width:0;}
body.tfp-recipe-page .tfp-owned-photo img {display:block;width:100%;height:auto;max-height:600px;object-fit:cover;border-radius:12px;}
body.tfp-recipe-page .tfp-owned-overview {min-width:0;}
body.tfp-recipe-page .tfp-owned-overview h1 {font-size:clamp(27px,2.9vw,38px)!important;line-height:1.16!important;letter-spacing:-.03em;margin:10px 0 18px!important;text-transform:none!important;}
body.tfp-recipe-page .tfp-owned-categories {display:flex;flex-wrap:wrap;gap:12px;font-size:13px;font-weight:700;color:#cf3029;}
body.tfp-recipe-page .tfp-owned-meta {font-size:13px;color:#555b63;margin:0 0 10px;}
body.tfp-recipe-page .tfp-owned-actions {display:flex;gap:16px;align-items:center;margin:4px 0 14px;font-size:13px;}
body.tfp-recipe-page .tfp-owned-actions button {all:unset;font:inherit;color:inherit;text-decoration:underline;cursor:pointer;}
body.tfp-recipe-page .tfp-owned-actions button[hidden] {display:none!important;}
body.tfp-recipe-page .tfp-owned-below {display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:48px;margin-top:40px;align-items:start;}
body.tfp-recipe-page .tfp-owned-body, body.tfp-recipe-page .tfp-owned-sidebar {min-width:0;}
body.tfp-recipe-page .tfp-owned-directions h2 {font-size:26px;line-height:1.3;margin:0 0 20px;}
body.tfp-recipe-page .tfp-owned-directions ol {padding:0 0 0 24px;margin:0;}
body.tfp-recipe-page .tfp-owned-directions li {padding:0 0 22px 8px;}
body.tfp-recipe-page .tfp-owned-directions li::marker {font-weight:700;color:#cf3029;}
body.tfp-recipe-page .tfp-owned-directions h3 {font-size:18px;line-height:1.35;color:#cf3029;margin:0 0 10px;}
body.tfp-recipe-page .tfp-owned-directions p {font-size:16px;line-height:1.7;margin:0 0 10px;}
body.tfp-recipe-page .tfp-owned-gallery img {max-width:100%;height:auto;margin:12px 0;border-radius:10px;}
body.tfp-recipe-page .tfp-owned-sidebar:empty {display:none;}
@media(max-width:850px){body.tfp-recipe-page .tfp-owned-below {grid-template-columns:1fr;} body.tfp-recipe-page .tfp-owned-sidebar {display:none;}}
@media(max-width:650px){body.tfp-recipe-page .tfp-owned-layout{padding:22px 16px;}body.tfp-recipe-page .tfp-owned-hero{grid-template-columns:1fr;gap:22px;}body.tfp-recipe-page .tfp-owned-photo img{max-height:380px;}body.tfp-recipe-page .tfp-owned-overview h1{font-size:28px!important;}body.tfp-recipe-page .tfp-owned-below{margin-top:24px;}}
@media print{body.tfp-recipe-page .tfp-owned-sidebar,body.tfp-recipe-page .tfp-owned-actions{display:none!important;}body.tfp-recipe-page .tfp-owned-layout{padding:0;}body.tfp-recipe-page .tfp-owned-hero,body.tfp-recipe-page .tfp-owned-below{display:block;}body.tfp-recipe-page .tfp-owned-photo img{max-height:180px;width:auto;}body.tfp-recipe-page .tfp-owned-directions li{break-inside:avoid;}}

body.tfp-recipe-page .tfp-owned-actions button:disabled {opacity:.45;cursor:default;}
