/* ===== New calculator pages (Overtime Pay, Hourly to Salary) ===== */
.cx-intro{background:#fff;border-bottom:1px solid #E2E8F0;padding:22px 24px}
.cx-intro-inner{max-width:1000px;margin:0 auto;display:flex;gap:16px;align-items:flex-start}
.cx-intro-icon{flex:0 0 40px;height:40px;border-radius:12px;background:#E6F6F3;color:#0E9B8A;display:flex;align-items:center;justify-content:center;font-size:22px}
.cx-intro h2{font-family:'DM Sans','Inter',sans-serif;font-size:16px;font-weight:700;color:#0F2044;margin-bottom:4px}
.cx-intro p{font-size:15px;line-height:1.65;color:#334155}
.cx-tool{background:#F7F9FC;padding:40px 24px 56px}
.cx-grid{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px;align-items:start}
.cx-card{background:#fff;border:1px solid #E2E8F0;border-radius:18px;padding:22px;box-shadow:0 6px 24px rgba(15,32,68,.05)}
.cx-card h2{font-family:'DM Sans','Inter',sans-serif;font-size:18px;font-weight:700;color:#0F2044;margin-bottom:16px}
.cx-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cx-field{margin-bottom:16px}
.cx-label{display:block;font-size:13px;font-weight:600;color:#0F2044;margin-bottom:6px}
.cx-hint{display:block;font-size:12px;color:#64748B;margin-top:5px;line-height:1.5}
.cx-input,.cx-select{width:100%;height:44px;border:1.5px solid #CBD5E1;border-radius:12px;padding:0 12px;font-size:15px;font-family:'Inter',sans-serif;color:#0F2044;background:#fff}
.cx-input:focus,.cx-select:focus{outline:none;border-color:#0E9B8A;box-shadow:0 0 0 3px rgba(14,155,138,.18)}
.cx-money{position:relative}
.cx-money span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#64748B;font-weight:600}
.cx-money .cx-input{padding-left:28px}
.cx-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#EEF2F7;border-radius:13px;padding:5px}
.cx-seg input{position:absolute;opacity:0;pointer-events:none}
.cx-seg label{text-align:center;padding:10px 8px;border-radius:9px;font-size:13px;font-weight:600;color:#475569;cursor:pointer;line-height:1.3}
.cx-seg input:checked+label{background:#0F2044;color:#fff;box-shadow:0 2px 8px rgba(15,32,68,.25)}
.cx-seg input:focus-visible+label{outline:2px solid #0E9B8A;outline-offset:2px}
.cx-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cx-day{background:#F8FAFC;border:1.5px solid #E2E8F0;border-radius:13px;padding:8px 6px;text-align:center}
.cx-day.is-weekend{background:#FFF8EB;border-color:#FDE7B8}
.cx-day label{display:block;font-size:12px;font-weight:700;color:#0F2044;margin-bottom:6px}
.cx-day input{width:100%;height:40px;text-align:center;border:1.5px solid #CBD5E1;border-radius:10px;font-size:15px;font-family:'Inter',sans-serif;color:#0F2044;background:#fff;padding:0 2px}
.cx-day input:focus{outline:none;border-color:#0E9B8A;box-shadow:0 0 0 3px rgba(14,155,138,.18)}
.cx-quick{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}
.cx-chip{border:1.5px solid #CBD5E1;background:#fff;color:#0F2044;border-radius:999px;padding:7px 13px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:'Inter',sans-serif}
.cx-chip:hover{border-color:#0E9B8A;color:#0E9B8A}
.cx-more{border:1px dashed #CBD5E1;border-radius:14px;padding:4px 14px;margin-bottom:6px;background:#FCFDFE}
.cx-more summary{cursor:pointer;font-weight:700;font-size:14px;color:#0F2044;padding:10px 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
.cx-more summary::-webkit-details-marker{display:none}
.cx-more summary:after{content:'+';font-size:20px;color:#0E9B8A;font-weight:600}
.cx-more[open] summary:after{content:'\2212'}
.cx-more-body{padding:4px 0 10px}
.cx-error{display:none;background:#FEF2F2;border:1px solid #FECACA;color:#B91C1C;font-size:13px;border-radius:10px;padding:10px 12px;margin-top:10px}
.cx-error.show{display:block}
.cx-result{position:sticky;top:84px}
.cx-total{background:linear-gradient(135deg,#0F2044,#162a57);border-radius:16px;padding:20px;color:#fff;margin-bottom:16px}
.cx-total small{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#94A3B8;font-weight:600}
.cx-total strong{display:block;font-family:'DM Sans','Inter',sans-serif;font-size:36px;line-height:1.15;margin:4px 0 2px;color:#fff}
.cx-total em{font-style:normal;font-size:13px;color:#5EEAD4}
.cx-empty{color:#64748B;font-size:14px;line-height:1.6;background:#F8FAFC;border-radius:12px;padding:16px;text-align:center}
.cx-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.cx-stat{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:12px}
.cx-stat span{display:block;font-size:12px;color:#64748B;margin-bottom:2px}
.cx-stat b{font-family:'DM Sans','Inter',sans-serif;font-size:18px;color:#0F2044}
.cx-stat.is-accent{background:#E6F6F3;border-color:#B7E5DD}
.cx-chart{display:flex;align-items:flex-end;gap:7px;height:130px;padding:6px 2px 0;border-bottom:2px solid #E2E8F0;margin-bottom:6px}
.cx-bar{flex:1;display:flex;flex-direction:column-reverse;justify-content:flex-start;height:100%}
.cx-bar i{display:block;width:100%}
.cx-bar .b-reg{background:#0E9B8A}
.cx-bar .b-ot{background:#F59E0B}
.cx-bar .b-dt{background:#DC2626}
.cx-bar i:first-child{border-radius:0 0 4px 4px}
.cx-bar i:last-child{border-radius:4px 4px 0 0}
.cx-axis{display:flex;gap:7px;font-size:11px;color:#64748B;text-align:center;margin-bottom:12px}
.cx-axis span{flex:1}
.cx-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:#475569;margin-bottom:14px}
.cx-legend b{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.cx-break{width:100%;border-collapse:collapse;font-size:14px}
.cx-break td{padding:9px 2px;border-bottom:1px solid #EEF2F7;color:#334155}
.cx-break td:last-child{text-align:right;font-weight:700;color:#0F2044}
.cx-break tr:last-child td{border-bottom:none;font-weight:800}
.cx-note{font-size:12.5px;color:#64748B;line-height:1.6;margin-top:12px}
.cx-ladder{list-style:none;margin:0 0 16px;padding:0}
.cx-ladder li{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:11px;font-size:14px;color:#334155}
.cx-ladder li:nth-child(odd){background:#F8FAFC}
.cx-ladder li b{font-family:'DM Sans','Inter',sans-serif;color:#0F2044;font-size:16px}
.cx-ladder li small{display:block;font-size:11.5px;color:#64748B}
.cx-stack{display:flex;height:16px;border-radius:999px;overflow:hidden;background:#E2E8F0;margin:8px 0 10px}
.cx-stack i{display:block;height:100%}
.cx-copy{width:100%;margin-top:14px;height:44px;border:none;border-radius:12px;background:#0E9B8A;color:#fff;font-weight:700;font-size:14px;cursor:pointer;font-family:'Inter',sans-serif}
.cx-copy:hover{background:#0b857a}
/* content */
.cx-article{background:#fff;padding:56px 24px}
.cx-article-inner{max-width:800px;margin:0 auto}
.cx-article h2{font-family:'DM Sans','Inter',sans-serif;font-size:26px;color:#0F2044;margin:44px 0 12px;line-height:1.25}
.cx-article h2:first-child{margin-top:0}
.cx-article h3{font-family:'DM Sans','Inter',sans-serif;font-size:18px;color:#0F2044;margin:26px 0 8px}
.cx-article p{font-size:16px;line-height:1.75;color:#334155;margin-bottom:14px}
.cx-article ul,.cx-article ol{margin:0 0 16px 22px;color:#334155;font-size:16px;line-height:1.75}
.cx-article li{margin-bottom:6px}
.cx-article a{color:#0E9B8A;text-decoration:underline}
.cx-formula{background:#0F2044;color:#E2E8F0;border-radius:14px;padding:16px 18px;font-family:'Courier New',monospace;font-size:15px;line-height:1.7;margin:14px 0 18px;overflow-x:auto}
.cx-formula b{color:#5EEAD4}
.cx-table-wrap{overflow-x:auto;margin:14px 0 20px;border:1px solid #E2E8F0;border-radius:14px}
.cx-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:420px}
.cx-table th{background:#F1F5F9;color:#0F2044;text-align:left;padding:11px 14px;font-weight:700}
.cx-table td{padding:11px 14px;border-top:1px solid #EEF2F7;color:#334155}
.cx-example{border-left:4px solid #0E9B8A;background:#F0FAF8;border-radius:0 12px 12px 0;padding:14px 18px;margin:14px 0 18px}
.cx-example p{margin-bottom:6px;font-size:15.5px}
.cx-example p:last-child{margin-bottom:0}
.cx-steps{counter-reset:s;list-style:none;margin:0 0 18px;padding:0}
.cx-steps li{counter-increment:s;position:relative;padding:4px 0 12px 46px;margin:0}
.cx-steps li:before{content:counter(s);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:#0E9B8A;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:15px}
.cx-sources{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:14px;padding:16px 20px;margin-top:30px}
.cx-sources h2{font-size:17px;margin:0 0 8px}
.cx-sources ul{margin-bottom:0;font-size:15px}
.cx-meta{font-size:13px;color:#64748B;margin-bottom:22px}
.cx-related{background:#F7F9FC;padding:48px 24px}
.cx-related-grid{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cx-related h2{max-width:1000px;margin:0 auto 18px;font-family:'DM Sans','Inter',sans-serif;font-size:22px;color:#0F2044}
.cx-rel{display:block;background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:16px;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s,border-color .18s}
.cx-rel:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,32,68,.1);border-color:#0E9B8A}
.cx-rel b{display:block;color:#0F2044;font-size:15px;margin-bottom:4px}
.cx-rel span{font-size:13px;color:#64748B;line-height:1.55}
@media (max-width:860px){
  .cx-grid{grid-template-columns:1fr}
  .cx-result{position:static}
  .cx-related-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .cx-days{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cx-row{grid-template-columns:1fr}
  .cx-total strong{font-size:30px}
  .cx-intro-inner{flex-direction:column}
}
