/* Per Person Calculator (US): identity layer over the shared style.css, loaded only by
   templates/en_us/header.php. Navy and pumpkin on a cool light gray, sans-serif reading text,
   serif headings: deliberately different from the French sister site. Colour carries meaning:
   the answer zone, the calculator result and the edible-share levels. */
:root {
	--fond: #f6f7f9;
	--encre: #1c2430;
	--sourdine: #5a6472;
	--olive: #1f4e79;          /* links, buttons */
	--olive-fonce: #16324f;    /* header, footer */
	--safran: #d9822b;
	--safran-clair: #f6c992;
	--carte: #ffffff;
	--filet: #dfe3e8;
	--info-doux: #eaf1f8;  --info-filet: #c3d5e8;
	--ok: #1f6a40;         --ok-doux: #e8f4ec;    --ok-filet: #b8dcc5;
	--moyen: #8a4f00;      --moyen-doux: #fdf2e2; --moyen-filet: #f0cf9c;
	--faible: #9b3326;     --faible-doux: #fbeceb; --faible-filet: #ecbcb5;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 18px; line-height: 1.62; }
h1, h2, h3, .marque-texte { font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; }
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
h1 { font-size: 36px; }
h2 { font-size: 26px; margin: 46px 0 12px; }

/* Native elements in the brand colours. */
::selection { background: var(--safran-clair); color: var(--encre); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 3px; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
input, select { accent-color: var(--olive); }

/* Header and footer. */
.marque-texte small { color: #c9d4e2; }
.menu a { color: #ffffff; }
.pied { color: #c9d4e2; }
.attribution { color: #c9d4e2; }
.pied a { color: #ffffff; }

/* The answer: the page's verdict gets its own tinted zone. */
.reponse { background: var(--info-doux); border: 1px solid var(--info-filet); border-radius: 12px; padding: 16px 20px; margin: 8px 0 22px; }
.reponse p { margin: 0; }
.reponse strong { color: var(--olive-fonce); }
.intro { font-size: 18.5px; }

/* Calculators (food pages and party calculator). */
.calc { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; padding: 18px 22px 20px; margin: 26px 0; box-shadow: 0 2px 10px rgba(22, 50, 79, 0.06); }
.calc h2 { margin: 0 0 12px; font-size: 23px; }
.calc-form > label { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 18px 12px 0; font-weight: 600; font-size: 15.5px; }
.calc-form input[type=number], .calc-form input[type=date] { font: inherit; font-size: 17px; font-weight: 400; width: 9em; padding: 7px 10px; border: 1px solid #b9c2cd; border-radius: 8px; background: #fff; color: var(--encre); }
.calc-form input[type=number]:focus, .calc-form input[type=date]:focus { border-color: var(--olive); outline: 3px solid var(--info-filet); outline-offset: 0; }
.calc-style { border: 0; padding: 0; margin: 4px 0 16px; }
.calc-style legend { font-weight: 600; font-size: 15.5px; padding: 0; margin-bottom: 2px; }
.calc-style label { display: flex; align-items: baseline; gap: 0.45em; margin: 6px 0; font-size: 16.5px; }
.calc-style label input { flex: none; }
.calc-style .note { color: var(--sourdine); font-size: 15px; }
.calc-style:has(input[type=checkbox]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); column-gap: 12px; }
.calc-style:has(input[type=checkbox]) label { margin: 3px 0; }
#c-result:not(:empty), #m-result:not(:empty) { background: var(--ok-doux); border-radius: 10px; padding: 12px 16px; margin-top: 6px; }
#c-result p, #m-result p { margin: 6px 0; }
#c-result strong { color: var(--ok); }
#m-result table { background: transparent; border: 0; border-radius: 0; }
#m-result th { background: transparent; border-bottom: 1px solid var(--ok-filet); }
#m-result td { border-bottom: 1px solid var(--ok-filet); }

/* Tables and cards. */
th { background: #eef1f5; }
.carte { border-top: 1px solid var(--filet); }
.carte:hover { border-color: var(--info-filet); box-shadow: 0 6px 16px rgba(22, 50, 79, 0.1); }
.carte strong { color: var(--olive-fonce); }
.sources { background: #eef1f5; }

/* Edible share after cooking (meat comparison): the level reads at a glance. */
td.part { font-weight: 600; white-space: nowrap; }
td.part-faible { background: var(--faible-doux); color: var(--faible); }
td.part-moyen { background: var(--moyen-doux); color: var(--moyen); }
td.part-haut { background: var(--ok-doux); color: var(--ok); }

/* FAQ. */
.faq details { background: var(--carte); border: 1px solid var(--filet); border-radius: 10px; padding: 10px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 6px; }
.faq details p { margin: 4px 0 6px; }

@media (max-width: 640px) {
	body { font-size: 17px; }
	h1 { font-size: 29px; }
	h2 { font-size: 23px; }
	.calc { padding: 14px 16px 16px; }
	.calc-form > label { margin-right: 12px; }
	.calc-form input[type=number] { width: 7em; }
	th, td { padding: 8px 9px; }
	th { font-size: 12.5px; letter-spacing: 0.03em; }
	table { font-size: 15.5px; }
}
