a[href="/terms.htm"],
a[href$="/terms.htm"] {
    text-decoration: underline;
}

#visibleControls #startValue,
#visibleControls #startval {
    box-sizing: border-box;
    height: 30px;
    margin-top: 0;
    margin-bottom: 0;
}

/* The Calculators type's menu icon (types.icon = "calculator", docs/CALCULATOR-PAGES.md): the calculator glyph the
   site already draws for .calcIcon, so it exists on every server. */
.calculator {
    background-image: url(/img/calc.png);
}

/* The list of calculator pages on a hub page with no units (type.blade.php #typeToolLinks: the Health and Calculators
   hubs, docs/CALCULATOR-PAGES.md): a grid of buttons in the side-menu style, each with the calculator glyph. The
   global li / ul rules of the site stylesheets are undone here. The buttons take the grey the side menu items turn
   on hover (#413f3f, main stylesheet) rather than the menu teal, so the hub does not read as one wall of blue. */
#typeToolLinks {
    padding: 16px 0 4px;
}
#typeToolLinks ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
#typeToolLinks li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
#typeToolLinks a {
    display: block;
    min-height: 50px;
    box-sizing: border-box;
    padding: 14px 14px 14px 56px;
    background: #413f3f url(/img/calc.png) no-repeat 8px center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
    border-radius: 4px;
}
#typeToolLinks a:hover,
#typeToolLinks a:focus {
    background-color: #2b2929;
    text-decoration: none;
}
@media (max-width: 1023.98px) {
    #typeToolLinks { padding: 12px 8px 4px; }
    #typeToolLinks ul { grid-template-columns: 1fr; }
}

/* Group headings on the Calculators hub (type.blade.php, config/calculators.php): a small label above each grid. The
   global h2 rules of the site stylesheets are undone inside #typeToolLinks only. */
#typeToolLinks h2.calcGroup {
    margin: 18px 0 8px;
    padding: 0;
    border: 0;
    background: none;
    width: auto;
    float: none;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
#typeToolLinks h2.calcGroup:first-child {
    margin-top: 0;
}
#typeToolLinks ul + h2.calcGroup {
    margin-top: 22px;
}
@media (max-width: 1023.98px) {
    #typeToolLinks h2.calcGroup { font-size: 13px; margin: 14px 0 6px; }
    #typeToolLinks h2.calcGroup:first-child { margin-top: 0; }
    #typeToolLinks ul + h2.calcGroup { margin-top: 18px; }
}
