/* The page builder's sections and elements in the /atm site's look (APP-529), for the ATM1 template only
   (Templates/enterprise/ATM1.master links it). American True Merit's home page, About, Services and Careers are site pages
   (custom/10010_site_pages.sql) that these rules draw as Assets/atm/css/main.css and responsive.css draw the look (the /atm pages they first drew redirect to these pages since APP-2456): each rule
   below names the /atm rule it copies. When those change, change these too.
   Every rule starts html[data-template="ATM1"] #main, so it outweighs Assets/css/site-page.css, which p/Page links after this
   file and whose heading rules name #main. */

/* ---------- The page: /atm's text, spacing and gutters in place of the builder's own ---------- */

html[data-template="ATM1"] #main .site-page-body { line-height: inherit; overflow-wrap: normal; }
html[data-template="ATM1"] #main .site-element { margin-bottom: 0; min-height: 0; }
html[data-template="ATM1"] #main .site-section { --bs-gutter-x: 30px; }
/* Every paragraph, the last too; :where keeps the rule light, so the elements' own paragraph rules below win */
html[data-template="ATM1"] #main .site-page-body :where(p) { margin: 0 0 10px; line-height: inherit; }

/* Headings: main.css's h1 to h3 (montserratbold, 1.5px apart, 20px above and 10px below) */
html[data-template="ATM1"] #main .site-page-body h1,
html[data-template="ATM1"] #main .site-page-body h2,
html[data-template="ATM1"] #main .site-page-body h3 { line-height: 1.1; margin: 20px 0 10px; }
html[data-template="ATM1"] #main .site-page-body h1 { font-size: 36px; }
html[data-template="ATM1"] #main .site-page-body h2 { font-size: 30px; }
html[data-template="ATM1"] #main .site-page-body h3 { font-size: 24px; }

/* Lists: .bullet-list (round marks hung outside, 15px in) */
html[data-template="ATM1"] #main .site-page-body ul:not(.breadcrumb):not(.site-jobs) { list-style: disc outside; padding-left: 15px; }
html[data-template="ATM1"] #main .site-page-body ul > li { padding-left: 0; }
html[data-template="ATM1"] #main .site-page-body ul > li::before { content: none; }

/* ---------- Bands: .image-bg, .overlay, .section-padding ---------- */

html[data-template="ATM1"] #main .site-band-picture { background-color: transparent; }
html[data-template="ATM1"] #main .site-band-normal > .site-band-inner { padding-top: 75px; padding-bottom: 100px; }
/* .service-section.section-padding: the band of service tiles ends 80px down */
html[data-template="ATM1"] #main .site-band-normal.site-band-picture:has(.site-tile-card) > .site-band-inner { padding-bottom: 80px; }
/* .breadcrumb-section */
html[data-template="ATM1"] #main .site-band-small > .site-band-inner { padding-top: 30px; padding-bottom: 10px; }
/* .home-section .home-content: 800px tall, the slider 155px down, the tiles 150px under it (.services) */
html[data-template="ATM1"] #main .site-band-tall > .site-band-inner { padding-top: 155px; padding-bottom: 0; height: 800px; }
html[data-template="ATM1"] #main .site-band-tall .site-section + .site-section { margin-top: 150px; }
/* .service-row: each service's row 25px from the next */
html[data-template="ATM1"] #main .site-band .site-section:has(.site-text-large) { margin-bottom: 25px; }

/* ---------- Header: .section-title, .section-kicker, .about-section-content h2 ---------- */

html[data-template="ATM1"] #main .site-heading-title { margin-bottom: 80px; }
html[data-template="ATM1"] #main .site-page-body .site-heading-title h2 { margin-top: 0; letter-spacing: 2px; text-transform: uppercase; font-family: 'montserratbold'; }
html[data-template="ATM1"] #main .site-page-body .site-kicker { font-family: 'montserratbold'; font-weight: normal; font-size: 20px; line-height: 1.1; margin: 20px 0 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--atm-blue-dark); opacity: 1; }
/* .work-process .section-title: the Values band's white title and its large blue label */
html[data-template="ATM1"] #main .site-band-picture .site-heading-title { color: #fff; }
html[data-template="ATM1"] #main .site-page-body .site-band-picture .site-kicker { font-size: xx-large; color: var(--atm-blue); }
html[data-template="ATM1"] #main .site-column > .site-element-header > h2.site-heading { margin-bottom: 25px; }
/* .about-section-content h2 and the Services names: centred below 479px and left from 479px, as the old /atm page had it (APP-2456); Bootstrap's .text-center is important */
@media (min-width: 479px) { html[data-template="ATM1"] #main .site-column > .site-element-header > h2.site-heading.text-center { text-align: left !important; } }

/* ---------- Text: .about-section-content, .bullet-list-lg, the Careers page's list ---------- */

html[data-template="ATM1"] #main .site-element-text { line-height: 24px; }
html[data-template="ATM1"] #main .site-page-body .site-element-text p { margin-bottom: 20px; }
html[data-template="ATM1"] #main .site-text-large li { font-size: larger; }
html[data-template="ATM1"] #main .site-page-body .site-element-text h3 { margin-top: 25px; margin-bottom: 10px; }
html[data-template="ATM1"] #main .site-page-body .site-element-text:not(.site-text-large) ul { padding-left: 20px; }
html[data-template="ATM1"] #main .site-page-body .site-element-text ul + p { margin-top: 25px; }

/* ---------- Image: .about-us-image (78px down; 25px on the Services page) and .img-fluid ---------- */

/* Inline as .img-fluid is; the column's width as site-page.css has it (every /atm picture is wider than its column), so its
   width and height attributes keep its shape before it loads */
html[data-template="ATM1"] #main .site-image { display: inline; max-width: 100%; height: auto; }
/* Space above and below an element (APP-1791; it was the Image's own space above, 78px or 25px): the /atm steps */
html[data-template="ATM1"] #main .site-above-large { padding-top: 78px; }
html[data-template="ATM1"] #main .site-above-medium { padding-top: 50px; }
html[data-template="ATM1"] #main .site-above-small { padding-top: 25px; }
html[data-template="ATM1"] #main .site-below-large { padding-bottom: 78px; }
html[data-template="ATM1"] #main .site-below-medium { padding-bottom: 50px; }
html[data-template="ATM1"] #main .site-below-small { padding-bottom: 25px; }

/* ---------- Slider: #home-slider and its controls ---------- */

html[data-template="ATM1"] #main .site-slider { padding-bottom: 0; }
html[data-template="ATM1"] #main .site-page-body .site-slide-title {
    font-size: 48px; margin: 20px 0 20px; line-height: 1.1; text-transform: uppercase; font-family: 'montserratextra_bold'; font-weight: normal;
    letter-spacing: 7px; max-width: 870px; color: #fff;
}
html[data-template="ATM1"] #main .site-slide-title span { color: var(--atm-blue); font-size: larger; }
html[data-template="ATM1"] #main .site-slider .carousel-item .site-slide-title,
html[data-template="ATM1"] #main .site-slider .carousel-item .site-slide-title span,
html[data-template="ATM1"] #main .site-slider .carousel-item .btn-primary { opacity: 0; transform: scale(0.5); }
html[data-template="ATM1"] #main .site-slider .carousel-item.active .site-slide-title,
html[data-template="ATM1"] #main .site-slider .carousel-item.active .site-slide-title span,
html[data-template="ATM1"] #main .site-slider .carousel-item.active .btn-primary { opacity: 1; transform: scale(1); }
html[data-template="ATM1"] #main .site-slider .carousel-item .site-slide-title { transition: all 0.5s ease-in-out 0.30s; }
html[data-template="ATM1"] #main .site-slider .carousel-item .site-slide-title span { transition: all 0.5s ease-in-out 0.45s; }
html[data-template="ATM1"] #main .site-slider .carousel-item .btn-primary { transition: all 0.5s ease-in-out 0.65s; }

html[data-template="ATM1"] #main .site-slider-prev,
html[data-template="ATM1"] #main .site-slider-pause,
html[data-template="ATM1"] #main .site-slider-next {
    bottom: 0; width: 50px; height: 50px; border-radius: 5px; font-size: 32px; line-height: 50px; text-align: center;
    background-color: rgba(0,0,0,0.25); transition: all 0.4s ease-in-out;
}
html[data-template="ATM1"] #main .site-slider-pause { right: 60px; font-size: 18px; }
html[data-template="ATM1"] #main .site-slider-prev { right: 120px; }
html[data-template="ATM1"] #main .site-slider-next { right: 0; }
html[data-template="ATM1"] #main .site-slider-prev:hover,
html[data-template="ATM1"] #main .site-slider-pause:hover,
html[data-template="ATM1"] #main .site-slider-next:hover { background-color: var(--atm-blue-darker); }

@media (min-width: 1400px) {
    html[data-template="ATM1"] #main .site-slider-prev,
    html[data-template="ATM1"] #main .site-slider-next { top: 50%; bottom: auto; margin-top: -25px; }
    html[data-template="ATM1"] #main .site-slider-prev { left: -100px; right: auto; }
    html[data-template="ATM1"] #main .site-slider-next { right: -100px; }
    html[data-template="ATM1"] #main .site-slider-pause { right: 0; }
}

@media (min-width: 1400px) and (hover: hover) {
    html[data-template="ATM1"] #main .site-slider-prev,
    html[data-template="ATM1"] #main .site-slider-pause,
    html[data-template="ATM1"] #main .site-slider-next { opacity: 0; }
    html[data-template="ATM1"] #main .site-band:hover .site-slider-prev,
    html[data-template="ATM1"] #main .site-band:hover .site-slider-pause,
    html[data-template="ATM1"] #main .site-band:hover .site-slider-next,
    html[data-template="ATM1"] #main .site-slider:focus-within .site-slider-prev,
    html[data-template="ATM1"] #main .site-slider:focus-within .site-slider-pause,
    html[data-template="ATM1"] #main .site-slider:focus-within .site-slider-next { opacity: 1; }
}

/* ---------- Tile, Card: .services .service, .service-tile, .box-title, .image-box, .tile-more ---------- */

/* overflow visible: /atm's tile doesn't hold its floated icon, so a tall icon hangs past a short tile as it does there */
html[data-template="ATM1"] #main .site-tile-card { padding: 15px 24px; font-size: 13px; font-family: 'montserratregular'; min-height: 165px; border-radius: 0; height: auto; overflow: visible; }
html[data-template="ATM1"] #main .site-tile-veil { background-color: var(--atm-blue-dark); transition: all 0.4s ease-in-out; filter: none; }
html[data-template="ATM1"] #main a.site-tile-link:hover .site-tile-veil { background-color: var(--atm-blue-darker); filter: none; }
html[data-template="ATM1"] #main .site-tile-card .site-tile-icon { float: left; margin: 20px 20px 0 0; min-height: 100px; max-width: none; position: relative; }
html[data-template="ATM1"] #main .site-tile-corner .site-tile-icon { margin: 0; }
html[data-template="ATM1"] #main .site-tile-corner .site-tile-image { margin-right: 15px; }
html[data-template="ATM1"] #main .site-tile-image { display: inline; max-width: 100%; height: auto; }
html[data-template="ATM1"] #main .site-page-body .site-tile-card .site-tile-title { font-size: 18px; text-transform: uppercase; color: #fff; margin: 15px 0 35px; position: relative; line-height: 1.1; }
html[data-template="ATM1"] #main .site-tile-card .site-tile-list li { color: #fff; }
html[data-template="ATM1"] #main .site-page-body .site-tile-more { color: #fff; text-align: center; padding-top: 20px; margin: 0 0 10px; font-size: inherit; letter-spacing: normal; }

/* .service-section: the tiles of a row as tall as each other, 30px apart, their titles two lines tall on a laptop */
html[data-template="ATM1"] #main .site-band-normal .site-section-grid > .site-column > .site-element { display: flex; flex-direction: column; }
html[data-template="ATM1"] #main .site-band-normal .site-tile-card { margin-bottom: 30px; flex: 1; transition: all 0.5s ease-in-out; }
html[data-template="ATM1"] #main .site-band-normal .site-tile-veil { transition: all 0.5s ease-in-out; }
html[data-template="ATM1"] #main .site-band-normal a.site-tile-link:hover .site-tile-veil { background-color: var(--atm-blue-dark); }
html[data-template="ATM1"] #main .site-band-tall .site-section-grid > .site-column > .site-element { flex: 0 0 auto; }
@media (min-width: 992px) {
    html[data-template="ATM1"] #main .site-page-body .site-band-normal .site-tile-card .site-tile-title { min-height: 2.2em; }
}

/* ---------- Tile, Feature: .work-proces, .process-icon, .process-info ---------- */

html[data-template="ATM1"] #main .site-tile-feature { padding: 0 35px; overflow: visible; }
html[data-template="ATM1"] #main .site-tile-feature .site-tile-icon { float: left; margin: 35px 30px 0 0; max-width: none; }
html[data-template="ATM1"] #main .site-tile-right .site-tile-icon { float: right; margin: 35px 0 0 35px; }
html[data-template="ATM1"] #main .site-tile-feature .site-tile-body { color: #fff; padding-top: 20px; padding-bottom: 15px; overflow: hidden; }
html[data-template="ATM1"] #main .site-page-body .site-tile-feature .site-tile-title { font-family: 'montserratsemi_bold'; font-size: 18px; margin-top: 10px; text-transform: none; }
html[data-template="ATM1"] #main .site-tile-text { margin: 0 0 10px; }

/* ---------- Page Title: .breadcrumb-section, .breadcrumb-content, .breadcrumb ---------- */

html[data-template="ATM1"] #main .site-page-title { display: flow-root; color: #fff; font-size: 15px; }
html[data-template="ATM1"] #main .site-page-body .site-page-title-text { margin-top: 0; text-transform: uppercase; font-family: 'montserratsemi_bold'; letter-spacing: 2px; float: left; font-size: 36px; }
html[data-template="ATM1"] #main .site-trail {
    background-color: transparent; float: right; padding: 8px 15px; margin-bottom: 20px;
    --bs-breadcrumb-item-padding-x: 5px; --bs-breadcrumb-divider-color: #ccc; --bs-breadcrumb-item-active-color: #aaa;
}
html[data-template="ATM1"] #main .site-trail a { color: #fff; }
html[data-template="ATM1"] #main .site-trail a:hover { color: var(--atm-blue); }

/* ---------- responsive.css ---------- */

/* md */
@media (min-width: 992px) and (max-width: 1199px) {
    html[data-template="ATM1"] #main .site-page-body .site-band-normal .site-tile-card .site-tile-title { font-size: 15px; letter-spacing: 0.5px; }
    html[data-template="ATM1"] #main .site-tile-card,
    html[data-template="ATM1"] #main .site-band-normal .site-tile-card { padding: 5px; height: 175px; }
}

/* sm */
@media (min-width: 768px) and (max-width: 991px) {
    html[data-template="ATM1"] #main .site-page-body .site-slide-title { font-size: 45px; }
    html[data-template="ATM1"] #main .site-band-tall > .site-band-inner { padding-top: 100px; height: auto; padding-bottom: 50px; }
    html[data-template="ATM1"] #main .site-band-tall .site-section + .site-section { margin-top: 100px; }
    html[data-template="ATM1"] #main .site-tile-card,
    html[data-template="ATM1"] #main .site-band-normal .site-tile-card { margin-bottom: 25px; min-height: 150px; }
    html[data-template="ATM1"] #main .site-tile-card .site-tile-icon { margin-top: 0; }
}

/* xs */
@media (max-width: 767px) {
    html[data-template="ATM1"] #main .site-page-body h1 { font-size: 24px; }
    html[data-template="ATM1"] #main .site-page-body h2 { font-size: 20px; }
    html[data-template="ATM1"] #main .site-page-body h3 { font-size: 16px; }
    html[data-template="ATM1"] #main .site-heading-title { margin-bottom: 50px; }
    html[data-template="ATM1"] #main .site-page-body .site-kicker { font-size: 15px; }
    html[data-template="ATM1"] #main .site-band-normal > .site-band-inner { padding-top: 35px; padding-bottom: 50px; }
    html[data-template="ATM1"] #main .site-band-normal.site-band-picture:has(.site-tile-card) > .site-band-inner { padding-bottom: 50px; }
    html[data-template="ATM1"] #main .site-band-tall > .site-band-inner { padding-top: 40px; height: auto; padding-bottom: 50px; }
    html[data-template="ATM1"] #main .site-page-body .site-slide-title { font-size: 36px; }
    html[data-template="ATM1"] #main .site-band-tall .site-section + .site-section { margin-top: 50px; }
    html[data-template="ATM1"] #main .site-tile-card,
    html[data-template="ATM1"] #main .site-band-normal .site-tile-card { margin-bottom: 20px; }
    html[data-template="ATM1"] #main .site-page-body .site-tile-card .site-tile-title { font-size: 16px; }
    html[data-template="ATM1"] #main .site-tile-card .site-tile-icon { min-width: 80px; }
    html[data-template="ATM1"] #main .site-band-small > .site-band-inner { padding-top: 20px; padding-bottom: 12px; }
    /* .about-us-section: the content band of a page with a title band starts 10px down, its title 30px above the content */
    html[data-template="ATM1"] #main .site-band-normal:not(.site-band-picture) > .site-band-inner { padding-top: 10px; }
    html[data-template="ATM1"] #main .site-band-normal:not(.site-band-picture) .site-heading-title { margin-bottom: 30px; }
    html[data-template="ATM1"] #main .site-above-large { padding-top: 45px; }
    html[data-template="ATM1"] #main .site-above-medium { padding-top: 35px; }
    html[data-template="ATM1"] #main .site-below-large { padding-bottom: 45px; }
    html[data-template="ATM1"] #main .site-below-medium { padding-bottom: 35px; }
    html[data-template="ATM1"] #main .site-page-body .site-page-title-text { text-align: center; float: none; margin-bottom: 0; font-size: 24px; }
    html[data-template="ATM1"] #main .site-trail { float: none; justify-content: center; padding-top: 4px; padding-bottom: 4px; margin-bottom: 0; }
}

/* XS Portrait */
@media (max-width: 479px) {
    html[data-template="ATM1"] #main .site-tile-card .site-tile-icon { min-width: 60px; }
    html[data-template="ATM1"] #main .site-band-tall > .site-band-inner { height: auto; padding-bottom: 30px; }
    html[data-template="ATM1"] #main .site-slider { padding-bottom: 60px; }
    html[data-template="ATM1"] #main .site-tile-feature .site-tile-icon,
    html[data-template="ATM1"] #main .site-tile-right .site-tile-icon,
    html[data-template="ATM1"] #main .site-tile-feature .site-tile-body { float: none; margin-left: 0; text-align: center; }
    html[data-template="ATM1"] #main .site-tile-card { padding: 15px 10px; }
    html[data-template="ATM1"] #main .site-tile-feature .site-tile-image { display: inline-block; }
    html[data-template="ATM1"] #main .site-element-text { text-align: center; }
}

/* A required field's label (class="required"): the same red asterisk as ui.css item 7, which the public templates do not load (APP-993) */
.required::after {
    content: " *";
    color: #B02A37;   /* 6.5:1 on white (APP-2385); lightcoral was 2.6:1 */
}

/* The careers pages (APP-2144): their marks and hover in the /atm teal */
html[data-template="ATM1"] :is(.careers-page, .careers-others, .careers-share) { --careers-accent: var(--atm-blue-dark); }
html[data-template="ATM1"] .careers-job-more { color: var(--atm-blue-dark); }
