/* Styles are confined to the calculator iframe; the WordPress theme is untouched. */
html.p4-embedded { overflow-x: hidden; }
.p4-embedded body { margin: 0; }
.p4-embedded .shell { max-width: 1240px; padding: 0 26px; }
.p4-embedded .intro { padding-top: 20px; }
.p4-embedded .intro h2 { font-size: clamp(32px,4vw,48px); letter-spacing: -1.8px; line-height: 1.05; font-weight: 850; margin-bottom: 18px; }
.p4-embedded.p4-no-header .topbar { background: transparent; border: 0; color: var(--ink); }
.p4-embedded.p4-no-header .topbar-inner { padding: 16px 26px 0; justify-content: flex-end; }
.p4-embedded.p4-no-header .brand, .p4-embedded.p4-no-header .header-caption { display: none; }
.p4-embedded.p4-no-header .languages { background: #e8e8e8; margin-left:auto; }
.p4-embedded.p4-no-header .languages button { color: #5c5c5c; }
.p4-embedded.p4-no-header .languages button[aria-pressed=true] { color: #222; }
.p4-embedded .summary { position: static; }
/* The iframe grows with its document: its viewport is not the browser viewport. */
.p4-embedded #toast { position: absolute; bottom: 12px; max-width: calc(100% - 32px); }
@media(max-width:780px) {
  .p4-embedded .shell { padding: 0 18px; }
  .p4-embedded.p4-no-header .topbar-inner { padding-right:18px; padding-left:18px; }
  .p4-embedded .intro h2 { font-size: 36px; }
}
@media print { .p4-embedded .topbar { display:none; } }
