.party-main { max-width: 1180px; margin: auto; padding: 36px 24px 72px; }
.party-hero { position: relative; padding: 4px 0 26px; max-width: 850px; }
.party-kicker { color: #a52a4e; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 12px; }
.party-hero h1 { font-family: var(--display-font); font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.03; letter-spacing: -.035em; max-width: 16ch; margin: 0 0 18px; text-wrap: balance; }
.party-hero h1 span { color: #a52a4e; }
.party-hero > p:last-child { font-size: 1.1rem; max-width: 65ch; margin: 0; color: var(--muted); }
.party-workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.party-card { border: 2px solid var(--ink); border-radius: 16px; padding: clamp(20px, 3vw, 30px); background: white; }
.party-card h2, .party-content h2, .party-cta h2 { font-family: var(--display-font); line-height: 1.15; margin: 0 0 12px; font-size: 1.7rem; }
.step-label { display: inline-block; color: #a52a4e; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.party-card > p { margin: 0 0 22px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.party-field { min-width: 0; }
.party-field > label { display: block; font-weight: 750; margin-bottom: 6px; }
.party-field input, .party-field select, #copy-text { width: 100%; min-height: 48px; border: 1px solid #8b7b84; border-radius: 8px; background: var(--paper); color: var(--ink); padding: 10px 12px; font: inherit; }
.party-field select { padding-right: 24px; }
.field-help { font-size: .82rem; color: var(--muted); margin: 7px 0 0; }
.field-error { color: #a11736; font-size: .86rem; font-weight: 650; margin: 5px 0 0; }
.field-error:empty { display: none; }
.party-main [aria-invalid="true"] { border: 2px solid #a11736; }
.party-main :is(a, input, select, button, summary, textarea):focus-visible { outline: 3px solid #a52a4e; outline-offset: 4px; }
.party-main button { font: inherit; cursor: pointer; }
.party-main button:disabled { cursor: not-allowed; opacity: .5; }
.party-options { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.party-options summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.party-options .field-grid { margin-top: 14px; }
.topping-toggle { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-weight: 750; cursor: pointer; }
.topping-toggle input, .shopping-list input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #a52a4e; }
#grams-field { max-width: 260px; }
.party-reset { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); padding: 12px; }
.result-card { background: #fff0f4; box-shadow: 6px 6px 0 #f4b3c5; }
.result-heading { display: flex; align-items: center; justify-content: space-between; }
.result-heading svg { width: 54px; height: 54px; flex: 0 0 auto; }
.result-big { margin: 12px 0 22px; line-height: 1; font-family: var(--display-font); font-size: clamp(2.5rem, 4vw, 3.3rem); }
.result-big strong { font-size: 1.55em; font-weight: 900; }
.result-big small { display: block; font: 600 .9rem/1.5 Inter, system-ui, sans-serif; color: var(--muted); margin-top: 10px; }
.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid #e6bbc4; border-bottom: 1px solid #e6bbc4; padding: 18px 0; margin: 0; }
.result-metrics dt { font-size: .82rem; color: var(--muted); }
.result-metrics dd { margin: 4px 0 0; font-weight: 800; font-size: 1.35rem; }
.result-metrics small { font-size: .8rem; font-weight: 500; display: block; }
.result-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.cost-box { margin-top: 20px; border-radius: 8px; background: #fffdf9; padding: 16px; }
.cost-box h3 { font-size: .9rem; margin: 0 0 6px; }
.cost-box strong { font-size: 1.6rem; margin-right: 10px; }
.cost-box p { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.assumptions { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.assumptions p { margin: 8px 0; }
.shopping-card { margin: 30px 0; background: #f1f6ed; }
.shopping-intro { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.shopping-intro p { margin: 0 0 18px; color: var(--muted); }
.shopping-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; list-style: none; padding: 0; margin: 8px 0 28px; }
.shopping-list label { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.shopping-list input { margin: 2px 0 0; }
.shopping-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.party-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.party-actions .home-button { font-size: .9rem; }
.party-status { color: #a52a4e; font-weight: 700; margin: 16px 0 0; }
.party-status:empty { display: none; }
#copy-fallback { margin-top: 18px; }
#copy-fallback label { display: block; font-weight: 700; margin-bottom: 8px; }
#copy-text { min-height: 130px; }
#url-warning, #validation-summary { color: #a11736; font-weight: 700; }
#url-warning:empty, #validation-summary:empty { display: none; }
.party-content { margin-top: 50px; }
.party-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.party-content h3 { font-size: 1.13rem; margin: 0 0 10px; }
.party-content p { color: var(--muted); margin: 10px 0; }
.conversion-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.conversion-table th, .conversion-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.conversion-table thead { background: #fff0f4; }
.party-faq { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 30px; }
.party-faq article { margin-top: 22px; }
.party-cta { margin-top: 36px; padding: 28px; background: #fff1de; border-radius: 16px; }
.party-cta p { max-width: 75ch; }
.party-cta .party-actions { margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .party-main { padding: 26px 16px 44px; }
  .party-workspace, .party-guide-grid, .shopping-list { grid-template-columns: 1fr; }
  .party-hero h1 { max-width: 17ch; }
  .party-card { padding: 22px 18px; }
  .field-grid { gap: 16px 12px; }
  .party-field > label { font-size: .9rem; }
  .party-field select { font-size: .9rem; }
  .party-actions .home-button { flex: 1 1 180px; }
}
@media (max-width: 380px) { .field-grid { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 14mm; }
  body { background: white; font-size: 10pt; }
  body::before, .home-topbar, .home-footer, .skip-link, #party-form, .party-content, .party-cta, .party-actions, #share-output, #copy-fallback, .party-status, .party-reset, #url-warning, .result-heading svg { display: none !important; }
  .party-main { padding: 0; max-width: none; }
  .party-hero { padding: 0 0 14px; }
  .party-hero h1 { font-size: 24pt; max-width: none; }
  .party-hero > p:last-child { font-size: 10pt; }
  .party-workspace { display: block; }
  .party-card { padding: 14px; border: 1px solid #555; border-radius: 0; box-shadow: none; background: white; break-inside: avoid; }
  .result-big { font-size: 20pt; margin: 8px 0 12px; }
  .result-big strong { font-size: 30pt; }
  .result-metrics { padding: 10px 0; }
  .cost-box { padding: 0; margin-top: 12px; }
  .shopping-card { margin: 16px 0; }
  .shopping-list { grid-template-columns: 1fr; gap: 10px; margin-bottom: 0; }
  .shopping-list label { font-size: 10pt; }
  .shopping-list input { appearance: none; border: 1px solid #555; border-radius: 2px; width: 12px; height: 12px; flex-basis: 12px; }
  .shopping-list input:checked::after { content: '✓'; display: block; line-height: 10px; }
}

/* Keep the site's coral palette readable on this tool's action controls. */
.ice-cream-page .home-button.primary { background: #b62e55; border-color: #b62e55; color: white; }
.ice-cream-page .home-nav .is-current { color: #a52a4e; }
@media (max-width: 760px) {
  .ice-cream-page .sweet-chat-launcher > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ice-cream-page .sweet-chat-launcher { padding: 8px; min-width: 44px; }
}
@media (max-width: 520px) {
  .field-grid { grid-template-columns: 1fr; }
  .party-field select { font-size: 1rem; }
}
/* Compact paper layout fits an ordinary plan and its checklist on one sheet. */
@media print {
  body { font-size: 9pt; line-height: 1.3; }
  .party-hero { padding-bottom: 8px; }
  .party-hero h1 { font-size: 21pt; margin-bottom: 6px; }
  .party-hero > p:last-child, .party-kicker, .step-label, .shopping-intro p { display: none; }
  .party-card { padding: 10px 12px; }
  .party-card h2 { font-size: 16pt; margin-bottom: 8px; }
  .result-big { font-size: 17pt; margin: 4px 0 8px; }
  .result-big strong { font-size: 24pt; }
  .result-big small { font-size: 8pt; margin-top: 5px; }
  .result-metrics { gap: 10px; padding: 8px 0; }
  .result-metrics dd { font-size: 12pt; }
  .result-metrics dt, .result-metrics small, .result-note, .cost-box p, .assumptions { font-size: 8pt; }
  .result-note, .cost-box, .assumptions { margin-top: 8px; }
  .assumptions p { margin: 5px 0; }
  .cost-box strong { font-size: 14pt; }
  .shopping-card { margin: 12px 0 0; }
  .shopping-list { gap: 8px; }
  .shopping-list label { font-size: 9pt; }
}
.ice-cream-page .nav-menu-link { background: #b62e55; border-color: #b62e55; }
.ice-cream-page :focus-visible { outline: 3px solid #a52a4e; outline-offset: 4px; }
/* Keep the mobile helper beside the wordmark, clear of calculator controls. */
@media (max-width: 760px) {
  .ice-cream-page .sweet-chat { position: absolute; top: 12px; right: 12px; bottom: auto; }
}

.weight-card { margin: 30px 0; background: #fff7ec; scroll-margin-top: 140px; }
.weight-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.weight-heading p:last-child { max-width: 65ch; margin: 0; color: var(--muted); }
.weight-rate { flex: 0 0 auto; text-align: center; font-family: var(--display-font); font-size: 2.1rem; line-height: 1.1; color: #a52a4e; background: white; border: 1px solid #e5ba9b; border-radius: 12px; padding: 16px; }
.weight-rate span { display: block; font: 650 .8rem/1.5 system-ui, sans-serif; margin-top: 6px; }
.weight-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.weight-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.weight-results { padding: 22px; border-radius: 12px; background: white; border: 1px solid #e5ba9b; }
.weight-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.weight-metrics dt { font-size: .82rem; color: var(--muted); }
.weight-metrics dd { margin: 6px 0 0; font-family: var(--display-font); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; }
.weight-per-guest { font-weight: 800; margin: 12px 0 0; }
.weight-note { color: var(--muted); font-size: .85rem; margin: 24px 0; }
#weight-copy-fallback { margin-top: 18px; }
#weight-copy-fallback label { display: block; font-weight: 700; }
#weight-copy-text { width: 100%; min-height: 150px; padding: 12px; font: inherit; border: 1px solid #8b7b84; border-radius: 8px; }
#weight-validation:empty, #weight-url-warning:empty { display: none; }
@media (max-width: 760px) { .weight-layout { grid-template-columns: 1fr; } .weight-card { scroll-margin-top: 16px; } }
@media (max-width: 520px) { .weight-heading { flex-wrap: wrap; } .weight-rate { font-size: 1.7rem; padding: 12px 18px; } .weight-results { padding: 18px; } }
@media print {
  #weight-form, .weight-rate, #weight-action-status, #weight-url-warning, #weight-copy-fallback, #weight-share-output { display: none !important; }
  .weight-card { break-inside: avoid; margin: 12px 0; }
  .weight-layout { display: block; }
  .weight-heading { margin-bottom: 8px; }
  .weight-heading p:last-child, .weight-note { font-size: 9pt; }
  .weight-results { padding: 12px; }
  .weight-metrics dd { font-size: 18pt; }
  .weight-per-guest { margin-top: 8px; }
  body[data-print-plan="containers"] .weight-card { display: none !important; }
  body[data-print-plan="weights"] :is(.party-hero, .party-workspace, #shopping-plan) { display: none !important; }
}
