/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   
/* color palette:
brand-secondary-cobalt: #102D75 // Header Surface, Content Text
brand-secondary-blue-20: #CFD9FC // Sidebar Links, Header sub
brand-text-secondary-dark-grey: #333F48 // Dates, sidebar subs, footer text
brand-cerulean-blue: #0044FF // Sidebar Product Description 
brand-reverse: #ffffff // Sidebar Product Text, Header Text and links
*/

body {
  margin: 0;
  color: #fff;
  font-family: 'Segoe UI', Arial, Helvetica, Tahoma, Geneva, Verdana, sans-serif;
} 
.wrapper {
  min-height: 100vh;
  background: #fff;
}
.header {
  background-color: #102D75;
  padding: 32px;
}

.title .lockup,
.title p {
  margin: 0;
}

.title p {
  color: #CFD9FC;
  height: 24px;
}

.lockup {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding: 0;
  height: 64px;
}

.lockup h1 {
  font-size: 44px;
}

sup {
  font-weight: 100;
}

.lockup img {
  padding-top: 8px;
  padding-right: 8px;
  padding-bottom: 14px;
}

.lockup img,
.lockup h1 {
  margin-bottom: 0;
}

.header .links {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.14px;
}

a:link, a:visited {
  text-decoration: none;
  text-underline-offset: 0.24em;
}
a:hover, a:active {
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 0.16em;
}

.header a:link,
.header a:visited {
    color:#fff;
  }

.header a:hover, 
.header a:active {
  color:#b3d4fc;
}

.cards {
  border-radius: 16px;
  padding: 24px 16px;
}

h3 span {
  font-weight: 100;
}

.content {
 padding: 0;
 margin: 0;
}

.columns {
  padding: 0;
  margin: 0;
}
.main {
  padding: 24px 32px;
  background: #fff;
  color: #102D75;
}
.main h2 {
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 100% */
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.main h3 {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.36px;
  margin-bottom: 0;
}
.main h4 {
  color: #333F48;
  font-size: 24px;
  font-style: normal;
  font-weight: 350;
  line-height: normal;
  letter-spacing: -0.36px;
  margin-bottom: 0;
  display: inline;
}

.main p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 24px;
}

.main li {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 8px;
}

.main ol, 
.main ul {
  margin: 24px 0;
}

.main img + p, 
div.image-pair + p {
  margin-top: 40px;
}

.main p:first-of-type {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
}

.main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin-bottom: 16px;
}

.inline-code {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}

.sidebar {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 360px;
}

.product-description {
  color: #fff;
  background:#0044FF;
}

.product-description .lockup {
  height: 48px;
}

.product-description a:link,
.product-description a:visited {
    color:#fff;
  }

.product-description a:hover, 
.product-description a:active {
  color:#b3d4fc;
}

.product-description p {
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 155.556% */
  letter-spacing: -0.18px;
}

.downloads {
  color: #102D75;
  background-color: #CFD9FC;
  padding-top: 0;
}

.downloads a:link,
.downloads a:visited {
  color: #102D75;
}

.downloads a:hover, 
.downloads a:active {
  color:#0044FF;
}

.downloads h4 {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 20px */
  letter-spacing: -0.2px;
  margin-bottom: 0;
}
.downloads h5,
.downloads h4.name {
  color: #333F48;
  margin-top: 4px;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.cgi-list ul li::before {
  content: "";
  background-image:url('sm-brand-chevron.png');
  background-size: 100% 100%;
  display: inline-block;
  height: 32px;
  width: 32px;
  position:relative;
  top: 10px;
  left: 0px;
}

.cgi-list ul {
  padding-left: 48px;
}

.cgi-list ul li {
  list-style:none;
  margin-left: -32px;
}

.cgi-list ul a.doc-links { 
  margin-bottom: 4px;
  display: inline-block;
}

span.versions {
  font-weight: 600;
  display: inline-block;
  margin-top:8px;
}

a.os-dl {
  display: inline-block;
  margin-right:2px;
  margin-bottom: 4px;
}


.footer {
  color: #102D75;
  background: #fff;
  padding: 80px 24px;
}

.footer a:link,
.footer a:visited {
  color: #102D75;
}

.footer a:hover, 
.footer a:active {
  color:#0044FF;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 72em) {
  /* Style adjustments for viewports that meet the condition */

  .wrapper{
    display: flex;
    flex-direction: column;
  }
  .header {
    padding: 48px 68px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
    justify-content: space-between;
  }

  .header .links {
    height: 88px;
  }
  .header .links .header-link {
    display: inline-block;
    margin-top: 52px;
  }
  .content {
    display: flex;
    flex: 1;
  }
  .columns {
    display: flex;
    width: 100vw;
    padding: 24px 40px;
  }
  .main {
    flex: 3;
    order: 3; 
  }
  .main h3 {
    display: inline;
  }
  .main h4 {
    display: inline;
  }
  .main h4::before {
    content: ' | ';
  }
  .main img {
    margin-bottom: 32px;
  }
  .main .image-pair {
    display: inline-flex;
    justify-content: space-around;
  }
  .main img.pair {
    flex-direction: row;
    width: 49%;
  }

  .main img.make-narrow-3 {
    width: 35%;
  }

  .main img.make-narrow-5 {
    width: 47%;
  }
  
  .main img.make-narrow-7 {
    width: 70%;
  }

  .sidebar {
     flex:1;
     order: 2;
     display: flex;
     max-width: 460px; 
  }
  .footer {
    padding: 48px 68px;
  }

}

@media only screen and (min-width: 96em) {
  .header {
    padding: 48px 108px 72px;
  }
  .columns {
    padding: 24px 80px;
  }
  .footer {
    padding: 48px 108px 72px;
  }
}


@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

