/*
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
*/
a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
  background: none;
  padding-right: 0;
}

body ul {
  list-style-type: square;
}

#downloadbox {
  float: right;
  margin-left: 2em;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 1em;
  border: 1px solid #999;
  background-color: #eee;
  width: 17.5em;
}

#downloadbox h5 {
  color: #000;
  margin: 0;
  border-bottom: 1px solid #aaaaaa;
  font-size: smaller;
  padding: 0;
  margin-top: 1em;
}

#downloadbox p {
  margin-top: 1em;
  margin-bottom: 0;
}

#downloadbox li {
  text-indent: inherit;
}

.bordered {
  border: 1px solid black;
  background-color: #ffffff;
}

.grey {
  background-color: #f9f9f9;
}

/* ---- Home page (index.md.vm) ----
   Plain CSS grid so the layout does not depend on the skin's Bootstrap version. */

.mh-hero {
  margin: 0.5em 0 1.5em;
}

.mh-lead {
  font-size: 1.35em;
  line-height: 1.45;
  max-width: 36em;
  color: #333;
}

.mh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
}

a.mh-btn,
a.mh-btn:visited {
  display: inline-block;
  padding: 0.55em 1.1em;
  border: 1px solid #c5c5c5;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

a.mh-btn:hover,
a.mh-btn:focus {
  border-color: #0088cc;
  color: #0088cc;
  text-decoration: none;
}

a.mh-btn-primary,
a.mh-btn-primary:visited {
  background: #006da3;
  border-color: #005a87;
  color: #fff;
}

a.mh-btn-primary:hover,
a.mh-btn-primary:focus {
  background: #005a87;
  color: #fff;
}

.mh-callout {
  border-left: 4px solid #d6573a; /* Maven feather orange */
  background: #fdf3ef;
  padding: 0.75em 1em;
  margin: 0 0 2em;
}

.mh-callout p {
  margin: 0;
}

h2.mh-group {
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.3em;
  margin: 1.8em 0 0.9em;
}

.mh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
  gap: 1em;
}

.mh-card {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 0.9em 1em;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mh-card:hover {
  border-color: #0088cc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mh-card-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 0.35em;
  line-height: 1.3;
}

.mh-card p:not(.mh-card-title) {
  margin: 0;
  color: #555;
}

.mh-grid-compact .mh-card {
  background: #fafafa;
}

.mh-note {
  margin-top: 1.5em;
  color: #555;
}

.mh-asf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid #e5e5e5;
  color: #666;
  font-size: 0.95em;
}

.mh-asf p {
  flex: 1 1 20em;
  margin: 0;
}

/* Links inside running text need more than colour to stand out from the grey text around them (WCAG 1.4.1). */
.mh-callout a,
.mh-card p:not(.mh-card-title) a,
.mh-note a,
.mh-asf p a {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .mh-lead {
    font-size: 1.15em;
  }
  .mh-actions a.mh-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}