/* ==========================================================================
   Turkey & Big-Roast Timeline Planner
   Editorial dossier, input grid, vertical timeline with icon dots, Pro
   oven schedule / portions / leftovers / printable fridge sheet.
   ========================================================================== */

/* ---- Editorial ---------------------------------------------------------- */
.ttp-ed { display: grid; grid-template-columns: 104px 1fr; gap: 1.5rem; align-items: start; }
.ttp-ed-art { display: flex; flex-direction: column; align-items: center; color: var(--cluster-dark, #114F8D); }
.ttp-ed-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 0.6rem; opacity: 0.65; border: 1px solid currentColor;
  padding: 0.15rem 0.45rem; border-radius: 2px;
}
.ttp-ed-head { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.ttp-ed-head h2 { font-weight: 600; letter-spacing: -0.01em; }
.ttp-ed-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; background: var(--cluster-dark, #114F8D); color: #fff; border-radius: 2px;
}
.ttp-ed p { margin: 0 0 0.7rem 0; }
.ttp-ed-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem 1.4rem; padding-top: 0.8rem; font-size: 0.78rem;
  border-top: 1px dashed color-mix(in srgb, var(--cluster-dark, #114F8D) 35%, transparent);
}
.ttp-ed-meta span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.6; display: block; margin-bottom: 0.1rem;
}
@media (max-width: 575.98px) {
  .ttp-ed { grid-template-columns: 1fr; gap: 1rem; }
  .ttp-ed-art { flex-direction: row; gap: 0.8rem; align-items: center; }
  .ttp-ed-code { margin-top: 0; }
}

/* ---- Inputs ------------------------------------------------------------- */
.ttp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .ttp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ttp-grid { grid-template-columns: 1fr; } }

/* ---- Results ------------------------------------------------------------ */
.ttp-results { display: none; }
.ttp-results.show { display: block; }
.ttp-hero-sub {
  font-size: 0.88rem; line-height: 1.6; margin-top: 0.5rem;
  color: var(--evvy-text-secondary, #6C757D); max-width: 62ch; margin-inline: auto;
}
.ttp-note { font-size: 0.74rem; line-height: 1.45; margin-top: 0.35rem; color: var(--evvy-text-secondary, #6C757D); }
.ttp-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767.98px) { .ttp-row-3 { grid-template-columns: 1fr; } }

.ttp-panel {
  border: 1px solid var(--evvy-border-color, #DEE2E6); border-radius: var(--evvy-radius-lg, 12px);
  padding: 1.1rem 1.2rem; margin-top: 1.25rem; background: var(--bs-body-bg, #fff);
}
[data-bs-theme="dark"] .ttp-panel { background: var(--evvy-gray-100, #1E1E1E); }
.ttp-panel-title {
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.45rem; color: var(--cluster-dark, #114F8D);
}
.ttp-muted { font-size: 0.78rem; color: var(--evvy-text-secondary, #6C757D); line-height: 1.55; }

/* ---- Timeline ----------------------------------------------------------- */
.ttp-ev {
  display: grid; grid-template-columns: 130px 34px 1fr; gap: 0.7rem; align-items: flex-start;
  position: relative; padding-bottom: 1.1rem;
}
.ttp-ev::before {
  content: ''; position: absolute; left: calc(130px + 0.7rem + 16px); top: 30px; bottom: -4px;
  width: 2px; background: color-mix(in srgb, var(--cluster-dark, #114F8D) 25%, transparent);
}
.ttp-ev:last-child { padding-bottom: 0; }
.ttp-ev:last-child::before { display: none; }
.ttp-ev-time {
  font-size: 0.8rem; font-weight: 700; text-align: right; padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.ttp-ev-dot {
  width: 34px; height: 34px; border-radius: 50%; z-index: 1;
  background: color-mix(in srgb, var(--cluster-dark, #114F8D) 12%, var(--bs-body-bg, #fff));
  border: 2px solid var(--cluster-dark, #114F8D); color: var(--cluster-dark, #114F8D);
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.ttp-ev-label { font-weight: 600; font-size: 0.92rem; padding-top: 0.3rem; }
.ttp-ev-note { font-size: 0.78rem; color: var(--evvy-text-secondary, #6C757D); line-height: 1.5; margin-top: 0.15rem; }
@media (max-width: 575.98px) {
  .ttp-ev { grid-template-columns: 34px 1fr; }
  .ttp-ev::before { left: 16px; }
  .ttp-ev-time { grid-column: 2; text-align: left; padding-top: 0; order: -1; font-size: 0.74rem; color: var(--cluster-dark, #114F8D); }
  .ttp-ev-dot { grid-row: span 2; }
}

/* ---- Pro: dishes -------------------------------------------------------- */
.ttp-dish-row {
  display: grid; grid-template-columns: 1.2fr auto auto 1.6fr auto; gap: 0.7rem; align-items: center;
  font-size: 0.84rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--evvy-border-color, #DEE2E6);
}
.ttp-dish-row:last-child { border-bottom: none; }
.ttp-dish-name { font-weight: 600; }
.ttp-dish-min { color: var(--evvy-text-secondary, #6C757D); white-space: nowrap; }
.ttp-dish-start { white-space: nowrap; }
.ttp-dish-note { font-size: 0.74rem; color: var(--evvy-text-secondary, #6C757D); }
.ttp-mini-del {
  border: none; background: transparent; color: var(--evvy-text-secondary, #6C757D);
  font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 0.3rem;
}
.ttp-mini-del:hover { color: #C0392B; }
@media (max-width: 767.98px) {
  .ttp-dish-row { grid-template-columns: 1fr auto auto; }
  .ttp-dish-note { grid-column: 1 / -1; }
}
.ttp-dish-add { display: grid; grid-template-columns: 1fr 120px auto; gap: 0.6rem; margin-top: 0.8rem; }
@media (max-width: 575.98px) { .ttp-dish-add { grid-template-columns: 1fr; } }

/* ---- Pro: portions / leftovers ------------------------------------------ */
.ttp-portion-row { display: grid; grid-template-columns: auto 110px 1fr; gap: 0.9rem; align-items: center; }
@media (max-width: 767.98px) { .ttp-portion-row { grid-template-columns: 1fr; } }
.ttp-portion-row .evvy-input-label { margin: 0; }
.ttp-portion-out { font-size: 0.9rem; line-height: 1.55; }
.ttp-lo-row {
  display: grid; grid-template-columns: 1.6fr auto 1.4fr; gap: 0.8rem; align-items: baseline;
  font-size: 0.86rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--evvy-border-color, #DEE2E6);
}
.ttp-lo-row:last-child { border-bottom: none; }
.ttp-lo-row span { color: var(--evvy-text-secondary, #6C757D); }
.ttp-lo-row strong { white-space: nowrap; }
.ttp-lo-row em { font-style: normal; font-size: 0.74rem; color: var(--evvy-text-secondary, #6C757D); }
@media (max-width: 575.98px) { .ttp-lo-row { grid-template-columns: 1fr; gap: 0.1rem; } }

.ttp-outline-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--cluster-dark, #114F8D); background: transparent;
  color: var(--cluster-dark, #114F8D); border-radius: 999px;
  padding: 0.35rem 0.95rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ttp-outline-btn:hover { background: var(--cluster-dark, #114F8D); color: var(--cluster-text, #fff); }

/* ---- Print -------------------------------------------------------------- */
.ttp-print-area { display: none; }
@media print {
  body.ttp-printing .evvy-tool-ui > :not(.ttp-print-area),
  body.ttp-printing .evvy-tool-content, body.ttp-printing header, body.ttp-printing footer,
  body.ttp-printing .evvy-tool-header, body.ttp-printing .evvy-ad-leaderboard { display: none !important; }
  body.ttp-printing .ttp-print-area { display: block !important; }
  .ttp-sheet h1 { font-size: 14pt; margin: 0 0 8pt; }
  .ttp-sheet table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .ttp-sheet td { border-top: 1px solid #999; padding: 5pt 4pt; vertical-align: top; }
  .ttp-sheet td:first-child { white-space: nowrap; font-weight: 700; width: 1.6in; }
  .ttp-sheet small { color: #444; }
  .ttp-sheet-f { font-size: 7.5pt; color: #555; margin-top: 8pt; }
}

.ttp-disclaimer {
  font-size: 0.78rem; line-height: 1.6; color: var(--evvy-text-secondary, #6C757D);
  padding: 0.8rem 1rem; border-radius: var(--evvy-radius-lg, 12px);
  background: color-mix(in srgb, var(--evvy-text-secondary, #6C757D) 8%, transparent);
}
