
/* Wrapper to harmonise with WP themes */
.phicon-bc-wrap { max-width: 1200px; margin-left:auto; margin-right:auto; }
.phicon-bc-wrap * { box-sizing: border-box; }
.phicon-bc-wrap h1, .phicon-bc-wrap h2, .phicon-bc-wrap h3, .phicon-bc-wrap h4 { font-size: 14pt !important; line-height: 1.3; margin: .6rem 0 .4rem; }
.phicon-bc-wrap input, .phicon-bc-wrap select, .phicon-bc-wrap textarea, .phicon-bc-wrap button { font-size: 10pt !important; }
.phicon-bc-wrap .table-container { overflow-x: auto; }


/* === v78 embedded styles === */

    :root { --brand:#b59e87; --muted:#666; }
    body { font-family: Inter, Roboto, Arial, sans-serif; max-width: 1200px; margin: 24px auto; padding: 24px; color:#111; }
    h1,h2,h3,h4{ color: var(--brand); margin: 1.2rem 0 .6rem; }
    table{ width:100%; border-collapse: collapse; margin: 12px 0; }
    th,td{ border:1px solid #e3e3e3; padding:8px; text-align:left; vertical-align: top; }
    th{ background:#f7f7f7; }
    .toolbar{ display:flex; gap:12px; margin: 12px 0 20px; flex-wrap: wrap; align-items:center; }
    .btn{ background: var(--brand); color:#fff; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; }
    .btn.secondary{ background:#555; }
    select.btn{ color:#fff; }
    .grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
    .grid-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:20px; }
    .boxed{ border:1px solid #ececec; background:#fafafa; padding:12px; border-radius:8px; }
    .logo-row{ display:flex; align-items:center; gap:12px; }
    .logo-img{ width:48px; height:48px; }
    .note{ color:#444; font-size: .95rem; }
    input[type="text"]{ width:98%; max-width:none; box-sizing:border-box; padding:6px; border:1px solid #ddd; border-radius:6px; }
    input[type="number"]{ width:90%; max-width: 180px; box-sizing:border-box; padding:6px; border:1px solid #ddd; border-radius:6px; }
    table.title-block input[type="text"]{ width:98% !important; max-width:none; }
    caption{ text-align:left; font-weight:600; padding:6px 0; color:#333; }
    #calc_status{ color:#666; font-size:.9rem; }
    @media print{
      .toolbar{ display:flex; gap:12px; align-items:center; }
      .toolbar button.btn{ display:none; }
      .toolbar select.btn{ display:inline-block; }
      #calc_status{ display:none; }
      a{ color:#000; text-decoration:none; } body{ padding:0; }
    }
    .subtle{ color:#666; font-size:.9rem; }
  
    .eq-block{border:1px solid #ececec;background:#fff;padding:12px;border-radius:8px;margin:10px 0;}
    .eq-title{font-weight:600;margin-bottom:6px;color:#333;}
    .eq-num{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; color:#222; background:#f7f7f7; padding:8px; border-radius:6px; margin-top:6px; white-space:pre-wrap;}
    
    textarea{ width:98%; max-width:none; box-sizing:border-box; padding:6px; border:1px solid #ddd; border-radius:6px; min-height:96px; }
    

/* Title + Schematic layout (updated for smaller image) */
.title-and-figure{display:flex; gap:16px; align-items:flex-start; margin: 10px 0 16px;}
.title-and-figure .title-block{flex:0 1 70%; width:auto !important;}
.title-and-figure .title-figure{flex:0 1 30%; display:flex; align-items:center; justify-content:center;}
.title-and-figure .title-figure img{max-width:90%; height:auto; border:1px solid #ddd; border-radius:10px;}
@media (max-width: 900px){
  .title-and-figure{flex-direction:column;}
  .title-and-figure .title-block, .title-and-figure .title-figure{flex:1 1 100%;}
}

.title-and-figure .title-block{flex:0 1 52%; width:auto !important;}
.title-and-figure .title-figure{flex:1 1 48%; display:flex; align-items:center; justify-content:center;}
.title-and-figure .title-figure img{max-width:100%; height:auto; border:1px solid #ddd; border-radius:10px;}
@media (max-width: 900px){
  .title-and-figure{flex-direction:column;}
  .title-and-figure .title-block, .title-and-figure .title-figure{flex:1 1 100%;}
}




/* Force Project Details to full width on PDF/print */
.title-and-figure{display:block !important; gap:0 !important;}
.title-and-figure .title-block{flex:none !important; width:100% !important; max-width:100% !important;}
.title-and-figure .title-figure{flex:none !important; width:100% !important; max-width:100% !important; margin-top:10mm !important; text-align:center !important;}
.title-and-figure .title-figure img{max-width:65% !important; height:auto !important;}

table.title-block{width:100% !important; max-width:100% !important; table-layout:auto !important; border-collapse:collapse !important;}
table.title-block th, table.title-block td{width:auto !important; white-space:normal !important;}



/* v78: Normalize all main headers to 14pt */
h1, h2, h3, h4,
.section-title, .section-heading, .main-title, .calc-title, .title {
  font-size: 14pt !important;
  line-height: 1.3 !important;
  font-weight: 600;
}
