/* The tools (Pages/Tools), on the site's Bootstrap 5 theme and the page sections layout (sections.css) */

/* a panel is a white card, like a page section */
.tool-panel {
    margin: 0 0 22px;
    padding: 22px 26px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.tool-panel h2 {
    margin-top: 0;
    font-size: 22px;
}

.tool-credit,
.weather-fetched {
    font-size: 12px;
    color: #666;
}

/* the /tools index: a section card per tool, side by side */
.tool-cards {
    --bs-gutter-x: 22px;
    --bs-gutter-y: 22px;
    margin-bottom: 22px;
}

.tool-cards .page-section {
    height: 100%;
    margin-bottom: 0;
}

/* the line under the live integration example */
.tool-more {
    padding: 16px 26px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* the place tabs: the active one underlined in the accent colour */
#weather-tabs .nav-link.active {
    color: #005280;
    border-color: transparent transparent #e39b2b;
    border-bottom-width: 3px;
    font-weight: 600;
}

#weather-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
}

/* weather */
.weather-now {
    overflow: hidden;
    margin-bottom: 20px;
}

.weather-now .weather-icon {
    float: left;
    font-size: 72px;
    line-height: 90px;
    margin-right: 25px;
}

.weather-now .weather-temp {
    font-size: 48px;
    line-height: 56px;
    font-weight: 300;
}

.weather-now .weather-temp span {
    font-size: 24px;
    vertical-align: top;
}

.weather-chart {
    position: relative;
    height: 220px;
}

/* the admin cost calculator */
.calculator .tool-panel {
    margin: 0;
}

.calculator legend {
    font-size: 20px;
    margin-bottom: 15px;
}

.calc-task {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.calc-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0 1.5em;
}

.calc-inputs .form-control#other-name {
    flex: 1 1 200px;
}

.calc-hours {
    width: 190px;
}

.calc-error {
    margin: 4px 0 0 1.5em;
    font-size: 13px;
    color: #c0392b;
}

.calc-rate {
    padding-top: 15px;
}

.calc-rate .input-group {
    width: 140px;
}

.calc-result {
    position: sticky;
    top: 90px;
}

/* the answer, in the facts strip's style */
#result-headline {
    font-size: 18px;
    line-height: 1.5;
    border-left: 3px solid #e39b2b;
    padding: 4px 0 4px 18px;
}

#result-tasks li {
    margin-bottom: 10px;
    font-size: 14px;
}

.calc-actions .btn {
    margin: 0 6px 6px 0;
}

.calc-small-print {
    margin: 10px 0 0;
    font-size: 12px;
    color: #666;
}

@media (max-width: 991px) {
    .calc-result {
        position: static;
    }
}

/* buttons: the site's charcoal with white text, blue on hover (as the navbar and footer) */
.tool-cards .btn,
.calc-actions .btn {
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-padding-y: 0.55rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: 4px;
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(33, 144, 219, 0.45);
    letter-spacing: 0.02em;
    transition: background-color .15s linear, border-color .15s linear, color .15s linear;
}

/* the theme colours every link in the content with !important, buttons included */
.tool-cards .btn,
.calc-actions .btn {
    color: var(--bs-btn-color) !important;
}

.tool-cards .btn:hover,
.tool-cards .btn:focus-visible,
.calc-actions .btn:hover,
.calc-actions .btn:focus-visible {
    color: var(--bs-btn-hover-color) !important;
}

.tool-cards .btn:active,
.calc-actions .btn:active {
    color: var(--bs-btn-active-color) !important;
}

.tool-cards .btn-primary,
.calc-actions .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #252528;
    --bs-btn-border-color: #252528;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2190db;
    --bs-btn-hover-border-color: #2190db;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1a73b0;
    --bs-btn-active-border-color: #1a73b0;
}

/* the call to contact us: amber, as the closing call to action on the content pages */
.calc-actions #book-call {
    --bs-btn-color: #1b1b1b;
    --bs-btn-bg: #e39b2b;
    --bs-btn-border-color: #e39b2b;
    --bs-btn-hover-color: #1b1b1b;
    --bs-btn-hover-bg: #f0ae47;
    --bs-btn-hover-border-color: #f0ae47;
    --bs-btn-active-color: #1b1b1b;
    --bs-btn-active-bg: #d08a1f;
    --bs-btn-active-border-color: #d08a1f;
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(227, 155, 43, 0.5);
}

.calc-actions .btn-outline-secondary {
    --bs-btn-color: #252528;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #252528;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #252528;
    --bs-btn-hover-border-color: #252528;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
}
