/* OPC – Ovulation & Pregnancy Calculator */
.opc-card{
  --opc-bg:#fff;--opc-fg:#111;--opc-muted:#666;--opc-accent:#db2777;--opc-border:#e5e7eb;
  --opc-radius:18px;
  background:var(--opc-bg); color:var(--opc-fg);
  border:1px solid var(--opc-border); border-radius:var(--opc-radius);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  padding:20px; max-width:860px; margin:20px auto;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
}
.opc-header h2{ margin:0 0 6px; font-size:26px; }
.opc-sub{ color:var(--opc-muted); margin:0 0 14px; }
.opc-tabs{ display:flex; gap:8px; border-bottom:1px dashed var(--opc-border); margin:8px 0 16px; }
.opc-tab{
  background:#fafafa; border:1px solid var(--opc-border); border-bottom:none; border-radius:12px 12px 0 0;
  padding:10px 14px; cursor:pointer; font-weight:700;
}
.opc-tab.is-active{ background:#fff; color:var(--opc-accent); }
.opc-panel{ display:none; }
.opc-panel.is-active{ display:block; }

.opc-form{ margin-top:8px; }
.opc-row{ display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.opc-label{ font-weight:700; color:#333; }
.opc-input{ border:1px solid var(--opc-border); border-radius:10px; padding:10px 12px; min-height:40px; font-size:15px; }
.opc-details{ margin:8px 0; }
.opc-hint{ color:var(--opc-muted); font-size:13px; }

.opc-actions{ margin-top:10px; }
.opc-btn{ background:var(--opc-accent); color:#fff; border:none; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer; }
.opc-btn:hover{ filter:brightness(.95); }

.opc-results{ margin-top:16px; border-top:1px dashed var(--opc-border); padding-top:12px; }
.opc-title{ margin:0 0 10px; }
.opc-columns{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.opc-emph{ font-size:22px; font-weight:800; }
.opc-note{ color:var(--opc-muted); font-size:13px; margin-top:8px; }
.opc-next-list{ margin-top:8px; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; }
.opc-chip{ border:1px solid var(--opc-border); border-radius:12px; padding:8px 10px; background:#fafafa; }

.opc-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.opc-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.opc-fieldset{ border:1px solid var(--opc-border); border-radius:12px; padding:10px; margin-top:8px; }
.opc-or{ text-align:center; margin:12px 0; position:relative; }
.opc-or span{ background:#fff; padding:0 8px; color:var(--opc-muted); }
@media (max-width:720px){
  .opc-grid-2,.opc-grid-3{ grid-template-columns:1fr; }
}
