﻿:root {
    --page-gutter: clamp(1rem, 3.5vw, 2.75rem);
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

body > nav.navbar.fixed-top {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* Consistent horizontal margin from the viewport; inner sections use full width here */
.body-content {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
    width: 100%;
}

/* --- Public homepage (banner + two text columns) --- */
.home-page {
    margin-top: 0.5rem;
}

.home-hero {
    background: linear-gradient(180deg, #f2f4f6 0%, #e6eaee 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    margin-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
}

.home-hero-inner {
    margin: 0;
    padding: 0;
    width: 100%;
}

.home-hero-link {
    display: block;
    width: 100%;
    text-decoration: none;
    line-height: 0;
}

.home-hero-link:hover {
    text-decoration: none;
}

/* Image spans full width of the hero band; height follows intrinsic aspect ratio */
.home-hero-picture {
    display: block;
    width: 100%;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.home-topics {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

.home-topic-row + .home-topic-row {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.home-topic-col {
    padding-top: 0.25rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .home-topic-col:first-child {
        padding-right: 1.75rem;
    }

    .home-topic-col:last-child:not(:only-child) {
        padding-left: 1.75rem;
        border-left: 1px solid #e9ecef;
    }
}

.home-topic-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.home-topic-body {
    line-height: 1.75;
    color: #343a40;
    margin-bottom: 1.25rem;
}

.home-topic-actions {
    margin-top: 0.5rem;
}

a.home-more-link,
a.home-more-link:visited {
    display: inline-block;
    padding: 0.2rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #5bc0de;
    color: #2390b0;
    background-color: rgba(91, 192, 222, 0.06);
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

a.home-more-link:hover {
    background-color: rgba(91, 192, 222, 0.18);
    color: #1a6f87;
    text-decoration: none;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

* {
    font-family: Tahoma, Helvetica, Arial, "Microsoft Yahei",微软雅黑, STXihei, 华文细黑, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.ui-datepicker {
    background: #333;
    border: 1px solid #555;
    color: #EEE;
}
