/* ======================================================================
   PREMIUM CALORIE CALCULATOR
   Every rule below is scoped to .pcc so it cannot change the rest of a
   WordPress site. Layout: form column on the left, sticky results panel
   on the right; stacks to one column on tablets and phones.
   ====================================================================== */
.pcc {
  /* Palette: premium blue on a light grey ground */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --field: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dde4ee;
  --line-strong: #c3cedc;
  --accent: #1d4ed8;
  --accent-strong: #1e3a8a;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --accent-tint: #d6e2ff;
  --accent-text: #1e40af;
  --bar: #94a3b8;
  --tip-bg: #1e293b;
  --tip-ink: #f8fafc;
  --warn: #92400e;
  --warn-line: #f59e0b;
  --warn-soft: #fff7e8;
  --danger: #b91c1c;
  --danger-line: #ef4444;
  --danger-soft: #fef2f2;
  --m-protein: #1d4ed8;
  --m-carbs: #0d9488;
  --m-fat: #f59e0b;
  --bmi-under: #60a5fa;
  --bmi-normal: #16a34a;
  --bmi-over: #f59e0b;
  --bmi-obese: #dc2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(30, 64, 175, .07);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .08);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;

  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 20px;
}
.pcc, .pcc *, .pcc *::before, .pcc *::after { box-sizing: border-box; }
.pcc [hidden] { display: none !important; }

/* Neutralise common theme and Elementor styles inside the calculator only */
.pcc h1, .pcc h2, .pcc h3, .pcc p, .pcc ul, .pcc fieldset, .pcc legend { margin: 0; }
.pcc h1, .pcc h2, .pcc h3 { color: var(--ink); text-transform: none; line-height: 1.2; }
.pcc button, .pcc input, .pcc select, .pcc textarea {
  font-family: inherit; letter-spacing: normal; text-transform: none; margin: 0; box-shadow: none;
}
.pcc button { line-height: 1; }
.pcc img, .pcc svg { max-width: 100%; }

/* Header */
.pcc .pcc-head { display: grid; gap: 8px; max-width: 62ch; }
.pcc .pcc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pcc .pcc-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.pcc .pcc-head h1 span { color: var(--accent); }
.pcc .pcc-head p { color: var(--muted); font-size: 17px; }

/* Two-column shell */
.pcc .pcc-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .pcc .pcc-shell { grid-template-columns: minmax(0, 1fr); } }

.pcc .pcc-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: grid; gap: 22px; min-width: 0;
}
@media (max-width: 480px) { .pcc .pcc-panel { padding: 16px; } }

/* Form sections */
.pcc .pcc-section { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.pcc .pcc-section + .pcc-section { padding-top: 22px; border-top: 1px solid var(--line); }
.pcc .pcc-legend { float: left; width: 100%; }
.pcc .pcc-legend, .pcc .pcc-h2 {
  padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.pcc .pcc-step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-body); font-size: 13px; font-weight: 700;
}
.pcc .pcc-hint { font-size: 14px; color: var(--muted); }

.pcc .pcc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .pcc .pcc-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.pcc .pcc-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.pcc .pcc-label { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink); }
.pcc .pcc-label small { font-weight: 500; color: var(--muted); font-size: 13px; }
.pcc .pcc-label-row { display: flex; align-items: center; gap: 6px; }
.pcc .pcc-input-wrap { position: relative; display: flex; }
.pcc input.pcc-input {
  width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 52px 11px 14px; min-height: 48px; height: auto; line-height: 1.4;
}
.pcc input.pcc-input::placeholder { color: #64748b; opacity: 1; }
.pcc input.pcc-input:hover { border-color: #94a3b8; }
.pcc input.pcc-input:focus { outline: none; }
.pcc input.pcc-input:focus-visible { outline: 3px solid var(--accent-tint); border-color: var(--accent); background: var(--surface); outline-offset: 0; }
.pcc .pcc-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.pcc .pcc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pcc .pcc-field.is-error input.pcc-input { border-color: var(--danger); background: var(--danger-soft); }
.pcc .pcc-error { display: none; font-size: 14px; color: var(--danger); font-weight: 500; }
.pcc .pcc-error::before { content: "! "; font-weight: 700; }
.pcc .pcc-field.is-error .pcc-error { display: block; }

/* Info tooltip */
.pcc button.pcc-info {
  display: inline-grid; place-items: center; width: 20px; height: 20px; min-height: 0; border-radius: 50%;
  border: 1.5px solid currentColor; color: var(--muted); background: transparent;
  font: 700 12px/1 var(--font-body); cursor: help; padding: 0; position: relative; flex: none;
}
.pcc button.pcc-info:hover { color: var(--accent); background: transparent; }
.pcc button.pcc-info:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcc .pcc-info .pcc-tip {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: 230px; max-width: 70vw; padding: 10px 12px; border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink);
  font: 400 13px/1.45 var(--font-body); text-align: left; z-index: 5; box-shadow: var(--shadow); white-space: normal;
}
.pcc .pcc-info:hover .pcc-tip, .pcc .pcc-info:focus .pcc-tip { display: block; }

/* Unit selectors: weight and height side by side, stacked on phones */
.pcc .pcc-unit-rows { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; }
@media (max-width: 640px) { .pcc .pcc-unit-rows { grid-template-columns: minmax(0, 1fr); } }

/* Segmented controls (units, sex, goal, macro split) */
.pcc .pcc-seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; max-width: 100%;
}
.pcc .pcc-seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pcc .pcc-seg label {
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2;
  padding: 9px 12px; min-height: 40px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted);
}
.pcc .pcc-seg label:hover { color: var(--ink); }
.pcc .pcc-seg input:checked + label { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.pcc .pcc-seg input:focus-visible + label { outline: 3px solid var(--accent-tint); outline-offset: 1px; }
.pcc .pcc-seg--wide { display: grid; }
@media (max-width: 420px) { .pcc .pcc-seg label { padding: 8px 6px; font-size: 14px; } }

/* Choice cards (activity, pace, formula) */
.pcc .pcc-cards { display: grid; gap: 10px; }
.pcc .pcc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .pcc .pcc-cards--3 { grid-template-columns: minmax(0, 1fr); } }
.pcc .pcc-card-opt { position: relative; }
.pcc .pcc-card-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pcc .pcc-card-opt label {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); min-height: 56px; color: var(--ink);
}
.pcc .pcc-card-opt label:hover { border-color: #93b0f5; background: #fafcff; }
.pcc .pcc-card-opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pcc .pcc-card-opt input:focus-visible + label { outline: 3px solid var(--accent-tint); outline-offset: 2px; }
.pcc .pcc-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #94a3b8; display: grid; place-items: center; background: var(--surface); }
.pcc .pcc-card-opt input:checked + label .pcc-dot { border-color: var(--accent); }
.pcc .pcc-card-opt input:checked + label .pcc-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pcc .pcc-opt-title { font-weight: 600; display: block; }
.pcc .pcc-opt-desc { font-size: 14px; color: var(--muted); display: block; }
.pcc .pcc-opt-tag { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcc .pcc-card-opt input:checked + label .pcc-opt-tag { color: var(--accent-text); }
.pcc .pcc-cards--3 .pcc-card-opt label { grid-template-columns: auto 1fr; align-items: start; }

/* Activity meter bars */
.pcc .pcc-meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.pcc .pcc-meter i { width: 4px; border-radius: 2px; background: var(--line-strong); }
.pcc .pcc-meter i:nth-child(1) { height: 6px; } .pcc .pcc-meter i:nth-child(2) { height: 9px; } .pcc .pcc-meter i:nth-child(3) { height: 12px; }
.pcc .pcc-meter i:nth-child(4) { height: 15px; } .pcc .pcc-meter i:nth-child(5) { height: 18px; }
.pcc .pcc-meter i.on { background: var(--accent); }

/* Advanced options */
.pcc .pcc-adv { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.pcc .pcc-adv summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.pcc .pcc-adv summary::-webkit-details-marker { display: none; }
.pcc .pcc-adv summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--accent); line-height: 1; }
.pcc .pcc-adv[open] summary::after { content: "\2212"; }
.pcc .pcc-adv summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.pcc .pcc-adv-body { padding: 0 16px 16px; display: grid; gap: 18px; }
.pcc .pcc-subhead { font-weight: 600; font-size: 15px; }

/* Custom macro inputs */
.pcc .pcc-custom { display: grid; gap: 10px; }
.pcc .pcc-custom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .pcc .pcc-custom-grid { grid-template-columns: minmax(0, 1fr); } }
.pcc .pcc-custom-grid input.pcc-input { padding-right: 34px; }
.pcc .pcc-total { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcc .pcc-total.is-ok { color: #15803d; }
.pcc .pcc-total.is-bad { color: var(--danger); }

/* Buttons */
.pcc .pcc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pcc button.pcc-btn {
  font: 600 16px/1.2 var(--font-body); border-radius: 12px; padding: 14px 22px; cursor: pointer;
  border: 1.5px solid transparent; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; width: auto;
}
.pcc button.pcc-btn:focus-visible { outline: 3px solid var(--accent-tint); outline-offset: 2px; }
.pcc button.pcc-btn--primary { background: var(--accent); color: var(--accent-ink); flex: 1 1 220px; box-shadow: 0 6px 16px rgba(29, 78, 216, .25); }
.pcc button.pcc-btn--primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.pcc button.pcc-btn--ghost { background: var(--surface); color: var(--accent-text); border-color: var(--line-strong); }
.pcc button.pcc-btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.pcc button.pcc-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pcc button.pcc-btn:disabled:hover { background: var(--surface); border-color: var(--line-strong); }
.pcc button.pcc-btn--primary:disabled:hover { background: var(--accent); }
.pcc .pcc-btn svg { width: 16px; height: 16px; flex: none; }

/* Results */
.pcc .pcc-results { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .pcc .pcc-results { position: static; } }
.pcc .pcc-results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcc .pcc-badge {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-tint);
}
.pcc .pcc-results-body { display: grid; gap: 22px; min-width: 0; }

.pcc .pcc-empty {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 28px 20px; text-align: center;
  display: grid; gap: 6px; justify-items: center; color: var(--muted); background: var(--surface-2);
}
.pcc .pcc-empty strong { color: var(--ink); font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.pcc .pcc-empty-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.pcc .pcc-empty-icon svg { width: 22px; height: 22px; }

.pcc .pcc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcc .pcc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.pcc .pcc-stat-label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; letter-spacing: .04em; }
.pcc .pcc-stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--accent-text); }
.pcc .pcc-stat-unit { font-size: 13px; color: var(--muted); }
.pcc .pcc-stat--accent { background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 55%, #2563eb 100%); border-color: transparent; color: var(--accent-ink); }
.pcc .pcc-stat--accent .pcc-stat-value { color: var(--accent-ink); }
.pcc .pcc-stat--accent .pcc-stat-label, .pcc .pcc-stat--accent .pcc-stat-unit { color: #ffffff; }
.pcc .pcc-stat--accent button.pcc-info { color: #ffffff; }
.pcc .pcc-stat--accent button.pcc-info:hover { color: #ffffff; }

.pcc .pcc-block { display: grid; gap: 12px; }
.pcc .pcc-block-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }

/* Calorie targets list with bars drawn to scale */
.pcc .pcc-targets { list-style: none; padding: 0; display: grid; gap: 8px; }
.pcc .pcc-target {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface);
}
.pcc .pcc-target.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.pcc .pcc-target.is-suppressed { background: var(--surface-2); border-style: dashed; }
.pcc .pcc-target.is-suppressed.is-selected { border-color: var(--danger-line); background: var(--danger-soft); }
.pcc .pcc-target-name { font-weight: 600; font-size: 15px; }
.pcc .pcc-target-sub { font-size: 13px; color: var(--muted); }
.pcc .pcc-target-kcal { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.pcc .pcc-target.is-selected .pcc-target-kcal { color: var(--accent-text); }
.pcc .pcc-target-kcal small { font-weight: 500; color: var(--muted); font-size: 12px; }
.pcc .pcc-target.is-suppressed .pcc-target-kcal { color: var(--danger); font-size: 14px; }
.pcc .pcc-flag { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--warn); }
.pcc .pcc-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e7ecf3; overflow: hidden; }
.pcc .pcc-bar span { display: block; height: 100%; border-radius: 3px; background: var(--bar); }
.pcc .pcc-target.is-selected .pcc-bar span { background: var(--accent); }
.pcc .pcc-note { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* BMI scale */
.pcc .pcc-bmi-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcc .pcc-bmi-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.pcc .pcc-pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); }
.pcc .pcc-pill--under { border-color: var(--bmi-under); background: #eff6ff; color: #1e40af; }
.pcc .pcc-pill--normal { border-color: var(--bmi-normal); background: #f0fdf4; color: #166534; }
.pcc .pcc-pill--over { border-color: var(--bmi-over); background: #fffbeb; color: #92400e; }
.pcc .pcc-pill--obese { border-color: var(--bmi-obese); background: #fef2f2; color: #991b1b; }
.pcc .pcc-scale { position: relative; padding-top: 14px; }
.pcc .pcc-scale-track { display: grid; grid-template-columns: 3.5fr 6.5fr 5fr 10fr; height: 10px; border-radius: 5px; overflow: hidden; }
.pcc .pcc-scale-track i:nth-child(1) { background: var(--bmi-under); }
.pcc .pcc-scale-track i:nth-child(2) { background: var(--bmi-normal); }
.pcc .pcc-scale-track i:nth-child(3) { background: var(--bmi-over); }
.pcc .pcc-scale-track i:nth-child(4) { background: var(--bmi-obese); }
.pcc .pcc-scale-marker {
  position: absolute; top: 0; width: 0; height: 0; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--ink);
}
.pcc .pcc-scale-labels { position: relative; height: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.pcc .pcc-scale-labels span { position: absolute; transform: translateX(-50%); }
.pcc .pcc-scale-labels span:first-child { transform: none; }
.pcc .pcc-scale-labels span:last-child { transform: translateX(-100%); }
.pcc .pcc-legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pcc .pcc-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.pcc .pcc-legend-row i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Macro donut */
.pcc .pcc-macros { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 380px) { .pcc .pcc-macros { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.pcc .pcc-donut { width: 132px; height: 132px; border-radius: 50%; position: relative; max-width: 100%; background: var(--surface-2); }
.pcc .pcc-donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.pcc .pcc-donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
.pcc .pcc-donut-center strong { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.pcc .pcc-donut-center span { font-size: 12px; color: var(--muted); }
.pcc .pcc-macro-list { list-style: none; padding: 0; display: grid; gap: 10px; width: 100%; }
.pcc .pcc-macro-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pcc .pcc-macro-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pcc .pcc-macro-list i { width: 12px; height: 12px; border-radius: 3px; }
.pcc .pcc-macro-list b { font-variant-numeric: tabular-nums; }
.pcc .pcc-macro-list small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Estimates (extras) */
.pcc .pcc-estimates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .pcc .pcc-estimates { grid-template-columns: minmax(0, 1fr); } }
.pcc .pcc-est { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.pcc .pcc-est-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.pcc .pcc-est-value { font-weight: 700; font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.pcc .pcc-est-note { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pcc .pcc-tag-est { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }

/* Notices */
.pcc .pcc-notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; color: var(--ink); }
.pcc .pcc-notice strong { font-size: 15px; }
.pcc .pcc-notice--warn { background: var(--warn-soft); border: 1px solid #fde3b0; border-left: 4px solid var(--warn-line); }
.pcc .pcc-notice--warn strong { color: var(--warn); }
.pcc .pcc-notice--info { background: var(--accent-soft); border: 1px solid var(--accent-tint); border-left: 4px solid var(--accent); }
.pcc .pcc-notice--error { background: var(--danger-soft); border: 1px solid #fecaca; border-left: 4px solid var(--danger-line); }
.pcc .pcc-notice--error strong { color: var(--danger); }
.pcc .pcc-notice ul { padding-left: 18px; display: grid; gap: 2px; }

.pcc .pcc-result-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pcc button.pcc-btn--sm { padding: 10px 14px; min-height: 42px; font-size: 14px; }
.pcc .pcc-disclaimer { font-size: 13px; color: var(--muted); }
.pcc .pcc-tool-msg { font-size: 14px; color: var(--accent-text); flex-basis: 100%; }
.pcc .pcc-tool-msg:empty { display: none; }
.pcc textarea.pcc-copy-fallback { width: 100%; min-height: 150px; font: 13px/1.45 var(--font-body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px; resize: vertical; }

/* SEO content placeholder area */
.pcc .pcc-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; box-shadow: var(--shadow-sm); }
.pcc .pcc-article h2 { font-family: var(--font-display); font-size: 22px; }
.pcc .pcc-article p { color: var(--muted); max-width: 65ch; }

.pcc .pcc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pcc .pcc-print-only { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .pcc .pcc-bar span, .pcc .pcc-scale-marker { transition: width .4s ease, left .4s ease; }
}

/* ======================================================================
   PRINT AND SAVE AS PDF
   Shows a clean one-column report of the results only.
   ====================================================================== */
@media print {
  @page { margin: 14mm; }
  .pcc { max-width: none; padding: 0; background: #ffffff; gap: 12px; font-size: 12pt; }
  .pcc .pcc-head, .pcc form, .pcc .pcc-article, .pcc .pcc-result-tools,
  .pcc .pcc-info, .pcc .pcc-empty, .pcc #results-status { display: none !important; }
  .pcc .pcc-print-only { display: block; }
  .pcc .pcc-print-head { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 2px solid #1d4ed8; }
  .pcc .pcc-print-head h1 { font-family: var(--font-display); font-size: 20pt; color: #0f172a; }
  .pcc .pcc-print-head p { font-size: 10.5pt; color: #334155; }
  .pcc .pcc-shell { display: block; }
  .pcc .pcc-panel { box-shadow: none; border: 0; padding: 0; position: static; }
  .pcc .pcc-block, .pcc .pcc-hero, .pcc .pcc-notice, .pcc .pcc-est, .pcc .pcc-target { break-inside: avoid; page-break-inside: avoid; }
  .pcc .pcc-stat, .pcc .pcc-est, .pcc .pcc-target { background: #ffffff !important; border: 1px solid #cbd5e1; }
  .pcc .pcc-stat--accent { border: 2px solid #1d4ed8; color: #0f172a; }
  .pcc .pcc-stat--accent .pcc-stat-value { color: #1d4ed8; }
  .pcc .pcc-stat--accent .pcc-stat-label, .pcc .pcc-stat--accent .pcc-stat-unit { color: #334155; }
  .pcc .pcc-target.is-selected { border: 2px solid #1d4ed8; }
  .pcc .pcc-donut, .pcc .pcc-bar, .pcc .pcc-bar span, .pcc .pcc-scale-track, .pcc .pcc-scale-track i,
  .pcc .pcc-legend-row i, .pcc .pcc-macro-list i, .pcc .pcc-scale-marker, .pcc .pcc-notice {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .pcc .pcc-estimates { grid-template-columns: repeat(3, 1fr); }
  .pcc .pcc-hero { grid-template-columns: 1fr 1fr; }
}
