/* CalcSolver Tools Suite 1.1.0: shared styles for the 9 tool calculators.
   Collapsible "Show the steps" and table panels, matching the navy
   cards and teal accent. Not loaded on the homepage calculator. */
.cs-more{margin-top:12px;border:1px solid #475569;border-radius:12px;background:#1e293b;overflow:hidden}
.cs-more[hidden]{display:none}
.cs-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;font-size:14px;font-weight:700;color:#e2e8f0;user-select:none}
.cs-more>summary::-webkit-details-marker{display:none}
.cs-more>summary::after{content:"";flex:0 0 auto;width:8px;height:8px;margin-right:4px;border-right:2px solid #2dd4bf;border-bottom:2px solid #2dd4bf;transform:rotate(45deg);transition:transform .15s ease}
.cs-more[open]>summary::after{transform:rotate(-135deg)}
.cs-more>summary:hover{background:#273449}
.cs-more>summary:focus-visible{outline:2px solid #14b8a6;outline-offset:-2px}
.cs-more .cs-count{margin-left:6px;color:#94a3b8;font-weight:600}
.cs-more-body{padding:0 12px 12px}
.cs-more-steps .cs-more-body ol{margin:0 !important}
.cs-more-steps .cs-more-body li:last-child{margin-bottom:0}
.cs-more-table{background:#0f172a}
.cs-more-table .cs-more-body>div{margin-top:0 !important}
.cs-pretty sup{font-size:.72em;line-height:0;vertical-align:baseline;position:relative;top:-.45em}

/* 1.1.2: form fixes for the 9 tools (not the homepage calculator).
   1. One input style. Each tool is designed with dark inputs, but the
      theme paints number inputs light grey, so number boxes were light
      while dropdowns stayed dark. Inputs, dropdowns and the textarea now
      all use the dark style the tools were built with.
   2. Inputs line up. When one label wraps to two lines (Annual interest
      rate (%), Prior credits (optional)), its box dropped lower than the
      box beside it. Each field now pushes its box to the bottom, so boxes
      in a row always sit on one line.
   3. No spinner arrows inside number boxes.
   4. Clear button matches the dark card instead of a white pill. */
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) :is(input[type="number"],input[type="text"],select,textarea){background-color:#0f172a !important;color:#ffffff !important;border:1px solid #475569 !important;box-shadow:none !important}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) :is(input,textarea)::placeholder{color:#64748b !important;opacity:1}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) :is(input,select,textarea):focus{outline:2px solid #14b8a6 !important;outline-offset:0;border-color:#14b8a6 !important}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) select{appearance:none;-webkit-appearance:none;padding-right:30px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 10px center !important;background-size:14px 14px !important}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) select option{background:#0f172a;color:#ffffff}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) input[type="number"]{-moz-appearance:textfield;appearance:textfield}
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) input[type="number"]::-webkit-outer-spin-button,
:is(.cf-wrap,.cp-wrap,.cg-wrap,.cm-wrap,.ci-wrap,.sl-wrap,.sn-wrap,.csd-wrap) input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
:is(.cp-field,.cg-field,.cm-field,.ci-field,.sl-field,.sn-field,.csd-field){display:flex !important;flex-direction:column;justify-content:flex-end}
:is(.cp-field,.cg-field,.cm-field,.ci-field,.sl-field,.sn-field,.csd-field)>span{line-height:1.35}
:is(.cf-clear,.cp-clear,.cg-clear,.cm-clear,.ci-clear,.sl-clear,.sn-clear,.csd-clear){background:transparent !important;border:1px solid #475569 !important;color:#fca5a5 !important}
:is(.cf-clear,.cp-clear,.cg-clear,.cm-clear,.ci-clear,.sl-clear,.sn-clear,.csd-clear):hover{background:#273449 !important;border-color:#64748b !important;color:#fecaca !important}
