/* =========================================================
   Feeding Expert 101 – guide / editorial page layout (contents list + article).
   Used by /how-we-built-this/ and /choosing-a-formula/ (see FE101_GUIDE_PAGES in functions.php).
   Everything is scoped to .fe-hwb so it cannot affect the rest of the site.
   Fonts follow the site (Catamaran headings, Mulish text).
   ========================================================= */
.fe-hwb {
	--page: #ffffff; --cream: #fbf8f2; --sage: #eef3ea; --peach: #fce6d2;
	--green: #1f4d3a; --green-ink: #ffffff; --ink: #1a2420; --muted: #5a665f; --line: #e2e6df; --line-2: #cbd3c7;
	--card: #ffffff;
	--head: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--text: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	background: var(--page);
	color: var(--ink);
	font-family: var(--text);
	font-size: 16px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.fe-hwb *, .fe-hwb *::before, .fe-hwb *::after { box-sizing: border-box; }
.fe-hwb h1, .fe-hwb h2, .fe-hwb h3 { font-family: var(--head); color: var(--ink); }
.fe-hwb a { color: inherit; }
.fe-hwb a:hover { color: inherit; }
.fe-hwb :focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.fe-hwb__wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.fe-hwb .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 6px; }

/* buttons (overrides the theme's default pink button style) */
.fe-hwb .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 12px 24px; border: 1.5px solid var(--green); border-radius: 999px;
	font-family: var(--text); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.fe-hwb .btn.solid, .fe-hwb .btn.solid:hover, .fe-hwb .btn.solid:focus { background: var(--green); color: var(--green-ink); }
.fe-hwb .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31, 77, 58, .18); }

/* page head */
.fe-hwb .crumbs { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.fe-hwb .crumbs a { color: var(--muted); }
.fe-hwb .ahead { padding: 20px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.fe-hwb .ahead h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; margin: 6px 0 14px; max-width: 20ch; }
.fe-hwb .ahead .lede { font-size: 18px; max-width: 58ch; margin: 0 0 18px; }
.fe-hwb .meta { display: flex; gap: 10px 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.fe-hwb .meta b { color: var(--ink); font-weight: 700; }

/* layout: sticky contents list + article */
.fe-hwb .alayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; margin-bottom: 56px; }
.fe-hwb .toc { position: sticky; top: 120px; font-size: 14px; }
.fe-hwb .toc p { font-weight: 700; margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.fe-hwb .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.fe-hwb .toc a { display: block; padding: 6px 12px; text-decoration: none; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.fe-hwb .toc a:hover { color: var(--ink); border-left-color: var(--green); }

/* article text */
.fe-hwb .prose { max-width: 72ch; min-width: 0; }
.fe-hwb .prose section { scroll-margin-top: 120px; }
.fe-hwb .prose p, .fe-hwb .prose li, .fe-hwb .prose a { overflow-wrap: anywhere; }
.fe-hwb .prose h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 12px; line-height: 1.2; }
.fe-hwb .prose section:first-child h2 { margin-top: 0; }
.fe-hwb .prose h3 { font-size: 19px; font-weight: 700; margin: 24px 0 6px; }
.fe-hwb .prose p, .fe-hwb .prose li { font-size: 16.5px; line-height: 1.65; }
.fe-hwb .prose p { margin: 0 0 14px; }
.fe-hwb .prose ul, .fe-hwb .prose ol { padding-left: 22px; margin: 0 0 14px; }
.fe-hwb .prose li { margin: 4px 0; }
.fe-hwb .prose a { color: var(--green); text-underline-offset: 2px; }

/* info / warning callouts */
.fe-hwb .callout { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 20px 0; padding: 16px 18px; border-radius: 14px; background: var(--sage); }
.fe-hwb .callout svg { color: var(--green); margin-top: 2px; }
.fe-hwb .prose .callout p { margin: 0; font-size: 15.5px; }
.fe-hwb .callout.warn { background: var(--peach); }
.fe-hwb .callout.warn svg { color: var(--ink); }

/* label-term cards */
.fe-hwb .terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.fe-hwb .term { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.fe-hwb .prose .term h3 { margin: 0 0 4px; font-size: 17px; }
.fe-hwb .prose .term p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* sources list */
.fe-hwb .prose .sources li { font-size: 14.5px; color: var(--muted); }

/* "To confirm before launch" notes */
.fe-hwb .todo { border: 1.5px dashed #c9a227; background: #fff9e5; color: #5a4a10; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 14px 0; }
.fe-hwb .todo b { font-weight: 700; }

/* tables (overrides the theme's default table borders and stripes) */
.fe-hwb .twrap { overflow-x: auto; }
.fe-hwb table.dtable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 16px 0; font-size: 14.5px; }
.fe-hwb table.dtable th, .fe-hwb table.dtable td { padding: 12px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); background: transparent; line-height: 1.5; }
.fe-hwb table.dtable tbody tr:nth-child(odd) > td, .fe-hwb table.dtable tbody tr:nth-child(odd) > th,
.fe-hwb table.dtable tbody tr:hover > td, .fe-hwb table.dtable tbody tr:hover > th { background: transparent; }
.fe-hwb table.dtable thead th { background: var(--cream); font-weight: 700; font-size: 13.5px; }
.fe-hwb table.dtable tbody tr:last-child > * { border-bottom: 0; }
.fe-hwb table.dtable tbody th { font-weight: 700; }

/* report form */
.fe-hwb form.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 520px; margin: 12px 0; }
.fe-hwb form.report label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.fe-hwb form.report input, .fe-hwb form.report select, .fe-hwb form.report textarea {
	width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
	background: var(--card); color: var(--ink); font-family: var(--text); font-weight: 400; font-size: 16px;
}
.fe-hwb form.report .btn { justify-self: start; }
.fe-hwb form.report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fe-hwb .report-sent, .fe-hwb .report-failed { border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.fe-hwb .report-sent { background: var(--sage); color: var(--green); }
.fe-hwb .report-failed { background: var(--peach); }
.fe-hwb [hidden] { display: none !important; }

/* call to action + related */
.fe-hwb .cta { background: var(--green); color: var(--green-ink); border-radius: 20px; padding: 26px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 0; }
.fe-hwb .prose .cta h2 { margin: 0; font-size: 22px; color: inherit; }
.fe-hwb .prose .cta p { margin: 4px 0 0; opacity: .85; font-size: 15px; }
.fe-hwb .cta .btn, .fe-hwb .cta .btn:hover { background: var(--green-ink); color: var(--green); border-color: var(--green-ink); }
.fe-hwb .related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.fe-hwb .prose .related a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; background: var(--card); color: var(--ink); transition: border-color .2s ease; }
.fe-hwb .prose .related a:hover { border-color: var(--green); }
.fe-hwb .related b { display: block; font-size: 16px; margin-bottom: 4px; }
.fe-hwb .related span { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
	.fe-hwb .alayout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.fe-hwb .toc { position: static; margin-bottom: 24px; }
	.fe-hwb .related, .fe-hwb .terms { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
	.fe-hwb__wrap { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.fe-hwb .btn { transition: none; }
}
