/* The Mom Centre weaning planner. Scoped under .tmcw so the theme is not affected. */
.tmcw {
  --teal: #2B8A94; --teal-dark: #1f6c74; --teal-soft: #e6f3f4;
  --orange: #F07B3F; --orange-dark: #c95a20; --orange-soft: #fdeee5;
  --navy: #1B2452; --navy-soft: #e8eaf3;
  --text: #24283b; --muted: #5d6275; --line: #dfe3ea; --bg: #fff; --bg2: #f6f8fa;
  --red: #b3261e; --red-soft: #fbe9e7; --green: #2e7d4f; --green-soft: #e7f4ec; --amber: #8a5300; --amber-soft: #fff3dc;
  font-family: inherit; color: var(--text); font-size: 16px; line-height: 1.55; max-width: 980px; margin: 0 auto;
}
.tmcw *, .tmcw *::before, .tmcw *::after { box-sizing: border-box; }
.tmcw h2, .tmcw h3, .tmcw h4 { color: var(--navy); margin: 0 0 .45em; line-height: 1.25; }
.tmcw h2 { font-size: 1.5em; } .tmcw h3 { font-size: 1.18em; } .tmcw h4 { font-size: 1em; }
.tmcw p { margin: 0 0 .7em; } .tmcw ul, .tmcw ol { margin: 0 0 .8em; padding-left: 1.3em; }
.tmcw-small { font-size: .87em; color: var(--muted); } .tmcw-muted { color: var(--muted); }
.tmcw-draft { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; font-size: .9em; }
.tmcw-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78em; font-weight: 700; color: var(--teal-dark); margin-bottom: .3em; }

/* tabs */
.tmcw-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--bg2); border-radius: 14px; margin-bottom: 16px; scrollbar-width: thin; }
.tmcw-tab { flex: 0 0 auto; border: 0; background: transparent; color: var(--navy); padding: 10px 14px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .92em; cursor: pointer; white-space: nowrap; }
.tmcw-tab.is-on { background: var(--navy); color: #fff; }
.tmcw-tab:focus-visible, .tmcw button:focus-visible, .tmcw a:focus-visible { outline: 3px solid rgba(43,138,148,.45); outline-offset: 2px; }

/* cards and buttons */
.tmcw-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 16px; }
.tmcw-start { border-top: 5px solid var(--teal); }
.tmcw-hero { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; border-radius: 18px; padding: 26px 22px; margin-bottom: 16px; }
.tmcw-hero h2 { color: #fff; font-size: 1.7em; } .tmcw-hero .tmcw-eyebrow { color: #cdeef0; }
.tmcw-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.tmcw-btn { display: inline-block; background: var(--orange); color: #fff !important; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; line-height: 1.3; }
.tmcw-btn:hover { background: var(--orange-dark); } .tmcw-btn[disabled] { opacity: .6; cursor: wait; }
.tmcw-btn-ghost { background: transparent; color: var(--teal-dark) !important; border: 2px solid var(--teal); }
.tmcw-btn-ghost:hover { background: var(--teal-soft); }
.tmcw-btn-red { background: var(--red); }
.tmcw-link { background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.tmcw-err { color: var(--red); font-weight: 600; }
.tmcw label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: .94em; }
.tmcw input[type=text], .tmcw input[type=date], .tmcw select { width: 100%; padding: 10px 12px; border: 1px solid #b9c0cc; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
.tmcw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }

/* graphics */
.tmcw-energy, .tmcw-macro { display: grid; gap: 10px; margin: 12px 0; }
.tmcw-ebar { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.tmcw-elabel { font-weight: 600; font-size: .9em; color: var(--navy); }
.tmcw-etrack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-size: .8em; font-weight: 700; color: #fff; }
.tmcw-etrack span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.tmcw-emilk { background: #8fb9be; color: var(--navy) !important; } .tmcw-efood { background: var(--orange); }
.m-fat { background: #7a5cc2; } .m-carb { background: #c88a12; } .m-pro { background: #8e3b46; }
@media (max-width: 560px) { .tmcw-ebar { grid-template-columns: 1fr; gap: 4px; } }

.tmcw-build { display: grid; gap: 3px; overflow-x: auto; margin: 12px 0; }
.tmcw-build-head, .tmcw-build-row { display: grid; grid-template-columns: 150px repeat(12, minmax(18px, 1fr)); gap: 3px; align-items: center; min-width: 420px; }
.tmcw-build-head span { text-align: center; font-size: .75em; font-weight: 700; padding: 2px 0; border-radius: 4px; color: #fff; }
.tmcw-build-head span:first-child { background: none; }
.tmcw-build-name { font-size: .82em; font-weight: 600; color: var(--navy); }
.tmcw-cell { height: 22px; border-radius: 4px; background: var(--bg2); }
.tmcw-cell.on { background: var(--c); opacity: .55; } .tmcw-cell.first { opacity: 1; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.tmcw-acell { display: flex; align-items: center; justify-content: center; }
.tmcw-acell i { font-style: normal; background: var(--orange); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: .72em; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tmcw .s1 { --s: var(--teal); } .tmcw .s2 { --s: var(--orange); } .tmcw .s3 { --s: var(--navy); }
.tmcw-build-head span.s1, .tmcw-build-head span.s2, .tmcw-build-head span.s3 { background: var(--s); }
.tmcw-stagekey { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82em; }
.tmcw-stagekey span { border-left: 6px solid var(--s); padding: 2px 8px; background: var(--bg2); border-radius: 4px; }

.tmcw-iron { border-left: 6px solid #8e3b46; }
.tmcw-ironmark { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; background: #8e3b46; color: #fff; font-size: .74em; font-weight: 800; }
.tmcw-ironmark.off { background: var(--amber-soft); color: var(--amber); }
.tmcw-steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.tmcw-steps li { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; font-size: .9em; }
.tmcw-steps li:nth-child(n+3) { background: var(--orange-soft); } .tmcw-steps li:nth-child(n+4) { background: var(--navy-soft); }

.tmcw-tablewrap { overflow-x: auto; }
.tmcw-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.tmcw-table th, .tmcw-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.tmcw-table thead th { background: var(--bg2); color: var(--navy); }
.tmcw-table tr.s1 > th, .tmcw-table tr.s2 > th, .tmcw-table tr.s3 > th { border-left: 6px solid var(--s); }

.tmcw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .tmcw-two { grid-template-columns: 1fr; } }
.tmcw-gag { background: var(--green-soft); border-radius: 12px; padding: 14px; }
.tmcw-choke { background: var(--red-soft); border-radius: 12px; padding: 14px; }
.tmcw-gag h4 { color: var(--green); } .tmcw-choke h4 { color: var(--red); }
.tmcw-allergy { border-left: 6px solid var(--orange); }
.tmcw-amber { background: var(--amber-soft); color: var(--amber); padding: 10px 12px; border-radius: 10px; }
.tmcw-red { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.tmcw-avoid { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; }
.tmcw-avoid dt { font-weight: 700; color: var(--red); } .tmcw-avoid dd { margin: 0; }
@media (max-width: 560px) { .tmcw-avoid { grid-template-columns: 1fr; } .tmcw-avoid dd { margin-bottom: 8px; } }

/* screening */
.tmcw-q { border: 1px solid var(--line); }
.tmcw-q legend { font-weight: 700; color: var(--navy); padding: 0; display: flex; gap: 10px; align-items: flex-start; float: left; width: 100%; margin-bottom: 10px; }
.tmcw-q legend + * { clear: both; }
.tmcw-qn { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85em; }
.tmcw-yn { display: flex; gap: 8px; flex-wrap: wrap; clear: both; }
.tmcw-pill { border: 2px solid var(--teal); background: #fff; color: var(--teal-dark); border-radius: 999px; padding: 8px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.tmcw-pill.is-on { background: var(--teal); color: #fff; }
.tmcw-ready { clear: both; }
.tmcw-result-stop { border-top: 6px solid var(--red); background: #fffafa; }
.tmcw-result-wait { border-top: 6px solid var(--amber); }
.tmcw-result-ok { border-top: 6px solid var(--green); background: #fbfffc; }

/* plan */
.tmcw-trialbar { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.tmcw-trialbar a { color: #ffd2b8; }
.tmcw-weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
@media (max-width: 620px) { .tmcw-weeks { grid-template-columns: repeat(4, 1fr); } }
.tmcw-wk { border: 2px solid var(--s); background: #fff; color: var(--navy); border-radius: 10px; padding: 8px 4px; font: inherit; font-size: .85em; font-weight: 700; cursor: pointer; }
.tmcw-wk.is-on { background: var(--s); color: #fff; }
.tmcw-weekhead { border-top: 6px solid var(--s); }
.tmcw-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 14px; }
.tmcw-facts div { background: var(--bg2); border-radius: 10px; padding: 10px 12px; font-size: .9em; }
.tmcw-facts b { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 620px) { .tmcw-facts { grid-template-columns: 1fr; } }
.tmcw-milk { background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; }
.tmcw-milk b { color: var(--teal-dark); }
.tmcw-milk p { margin: 4px 0; }
.tmcw-growth { background: var(--navy-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .92em; }
.tmcw-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tmcw-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tmcw-day.has-intro { border: 2px solid var(--orange); }
.tmcw-day header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tmcw-day h4 { margin: 0; }
.tmcw-intro { background: var(--orange-soft); color: #8a3a10; border-radius: 8px; padding: 6px 10px; font-size: .86em; }
.tmcw-meal { border-top: 1px dashed var(--line); padding: 8px 0 6px; }
.tmcw-meal.is-done .tmcw-recipe-link { text-decoration: line-through; color: var(--muted); }
.tmcw-check { display: flex !important; align-items: center; gap: 6px; margin: 0 0 2px !important; font-weight: 600; }
.tmcw-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.tmcw-slot { font-size: .76em; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tmcw-recipe-link { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(27,36,82,.25); text-underline-offset: 3px; }
.tmcw-hi { display: block; font-weight: 400; font-size: .88em; color: var(--muted); }
.tmcw-dots { display: flex; gap: 4px; margin-top: 4px; align-items: center; }
.tmcw-dots i, .tmcw-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; }
.tmcw-dots em, .tmcw-legend em { font-style: normal; font-size: .68em; font-weight: 800; background: var(--orange); color: #fff; border-radius: 4px; padding: 0 4px; }
.tmcw-pud { font-size: .86em; color: var(--muted); margin-top: 4px; }
.tmcw-pud .tmcw-recipe-link { font-weight: 500; }
.tmcw-legend div { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86em; }
.tmcw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tmcw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tmcw-chip { border: 1px solid var(--c); color: var(--c); border-radius: 999px; padding: 2px 10px; font-size: .8em; font-weight: 700; }
.tmcw-atag { display: inline-block; background: var(--orange-soft); color: #8a3a10; border-radius: 6px; padding: 3px 8px; font-size: .82em; font-weight: 600; margin: 4px 0; }
.tmcw-tip { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; }
.tmcw-pay { border: 2px solid var(--orange); background: linear-gradient(180deg, #fff 0%, var(--orange-soft) 100%); }
.tmcw-ticks { list-style: none; padding: 0; } .tmcw-ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.tmcw-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* modal */
.tmcw-modal { position: fixed; inset: 0; background: rgba(27,36,82,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tmcw-modal-box { background: #fff; border-radius: 16px; padding: 22px; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; position: relative; }
.tmcw-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }

/* tracker */
.tmcw-flag { background: var(--red-soft); color: var(--red); border-radius: 6px; padding: 1px 6px; font-size: .75em; }
.tmcw-log { list-style: none; padding: 0; } .tmcw-log li { border-left: 5px solid var(--amber); background: var(--bg2); padding: 8px 12px; border-radius: 6px; margin-bottom: 8px; }
.tmcw-log li.sev-severe { border-color: var(--red); }
.tmcw-addreact summary { cursor: pointer; font-weight: 700; color: var(--teal-dark); margin: 8px 0; }
.tmcw-symptoms { border: 0; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tmcw-symptoms legend { font-weight: 600; } .tmcw-symptoms label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.tmcw-foods { display: flex; flex-wrap: wrap; gap: 6px; } .tmcw-foods span { background: var(--teal-soft); border-radius: 999px; padding: 3px 10px; font-size: .86em; }
.tmcw-sumgrid { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; } .tmcw-sumgrid dt { font-weight: 700; } .tmcw-sumgrid dd { margin: 0; }

@media print {
  .tmcw-tabs, .tmcw-noprint, .tmcw-setup, .tmcw-weeks, .tmcw-pay, .tmcw-trialbar, .tmcw-draft { display: none !important; }
  .tmcw-card, .tmcw-day { break-inside: avoid; border-color: #bbb; }
  .tmcw-days { grid-template-columns: repeat(2, 1fr); }
  .tmcw * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
