/*
Theme Name: US-Mint
Theme URI: https://github.com/grayghostvisuals/WP-Flex
Description: The theme for the US Mint's homepage (usmint.gov)

Author: Mario Hendricks, Lockheed Martin

Version: 1.4#

License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license entitled "GNU Free Documentation License" can be
found at http://www.gnu.org/licenses/fdl-1.3-standalone.html

This stylesheet contains styles that should be used when the width of the viewport
Is between 920 and 1000
*/

/*
* The Wordpress CSS Codex
* http://codex.wordpress.org/CSS_Coding_Standards
* http://make.wordpress.org/core/handbook/coding-standards/css/
*
* REMINDERS
* -Use lowercase and separate words with hyphens when naming selectors. Avoid camelcase and underscores
* -Prefixed vendor-specific properties pairs should appear directly before the generic property they refer to
*
*/

/* =============================================================================
   Responsive Embedded Media
   ========================================================================== */

img,
object,
video {
  max-width: 100%;
  height: auto;
}


/* =============================================================================
  Required WordPress Styles
  * @since 1.0.6
  * Generated Core Classes
  * Each Theme should have these or similar styles in its style.css file
  * in order to display images and captions properly.
  * http://codex.wordpress.org/CSS#WordPress_Generated_Classes
  ========================================================================== */

.sticky {}

.alignnone {
  clear: both;
  margin: 5px 20px 20px 0;
}

.aligncenter, div.aligncenter {
  display:block;
  margin: 5px auto 5px auto;
}

.alignright {
  float:right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float:left;
  margin: 5px 20px 20px 0;
}

.aligncenter {
  clear: both;
  display: block;
  margin: 5px auto 5px auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin:0;
  max-width: 98.5%;
  padding:0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size:11px;
  line-height:17px;
  margin:0;
  padding:0 4px 5px;
}

.gallery-caption {}

/*
* stops multiple categories from breaking the layout
*/
.entry-tags-list li,
.entry-categories-list li {
  display: inline-block;
}

/* by post author styling */
.bypostauthor {}


/* =============================================================================
   WordPress Generated - Extra Styling Classes for Authors
   ========================================================================== */

/* Fluid Images For Wordpress */
img[class*="align"],
img[class*="wp-image-"] {
  height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}

.wp-caption,
.wp-caption img {
  max-width: 100%;
}

img.size-full {
  max-width: 100%;
  width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}

/* WP Breadcrumb Styles */
.cat-item {}
.cat-item.current-cat {}

.cat-item a:hover {}
.cat-item.current-cat a:hover {}

.cat-item a {}
.cat-item.current-cat a {}

/* WP Smiley */
.entry-content img.wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* WP widget styling */
.widget {}

/* WP Footer Search Widget Input */
#s {
  width: 100%;
}

/* WP Post Thumbnails */
.wp-post-image {}
.attachment-thumbnail {}
.attachment-medium {}
.attachment-large {}
.attachment-full {}

/* WP 404 Errors */
.error404 {}

/* WP Page Content */
.more-link {}
.posttitle {}


/* =============================================================================
   US Mint Custom Styles - General, site-wide styles
   ========================================================================== */

.press-release-image {
  float: right;
  margin-top: 16px;  /* This gives the image the same top margin as the p next to it. */
  max-width: 45%;    /* This is in relation to the parent container */
}

/* =============================================================================
   US Mint Custom Styles
   ========================================================================== */

/* The rules here should probably be in large (or medium) screen.css and then the deltas go here. */

#skipNav {
  background-color: #aaa;
  border: 3px solid #000;
  display: block;
  font-family: 'Montserrat', arial, helvetica, sans-serif;
  font-weight: bold;
  line-height: 25px;
  margin: 15px;
  padding: 25px;
  position: absolute;
  top: -100px;
  z-index: 9999;
}

#main-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

#skipNav:focus {
  left: 25px;
  top: 15px;
}

/* new stylesheet for min-width 768px */
.global-header .mobile {
  display: none;
}
.global-header .tablet {
  display: block;
}

#header .logo-box {
  width: 50%;
  max-width: 406px;
}
#header .logo-box img.mobile {
  display: none;
}
#header .logo-box img.tablet {
  display: block;
}

#header .promo-box {
   display: none;
}
#navigation .menu-icon-container {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: auto;
}
#navigation .menu-icon-container .icon-text {
  padding: 0 12px 0;
  line-height: 0;
}
#navigation .nav-search {
  width: 50%;
  -webkit-box-flex: 0;
  -ms-flex-positive: 0;
  flex-grow: 0;
}
#navigation .nav-wrapper {
  width: 50%;
}
#navigation .level-a::after, #navigation .level-a::before {
  left: 26px;
}

/* Footer */
#footer .email-social {
  padding: 12px 45px;
}

#footer .email-signup .esformfooter{
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 450px;
  margin: 0 auto;
}
#footer .email-signup .esformfooter input[type="email"], #footer .email-signup .esformfooter input[type="tel"] {
  border-radius: 2px 0 0 2px;
  float: left;
  margin: 0;
}

#footer span.exp-col::after{display:none}

#footer .email-social>div{
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#footer .email-signup{
  -webkit-box-ordinal-group: 1;
  -ms-flex-order: 0;
  order: 0;
  flex-basis: 50%;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  padding-top: 0;
  padding-right: 55px;
  font-size: 1em;
  border-right: 1px solid rgba(11, 68, 116, 0.5);
}
#footer .contacts-social {
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
  padding: 0 45px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-bottom: 0;
}

#footer .contacts {
  padding-bottom: .7em;
  text-align: center;
}
#footer .contacts .tel { font-size: 1.3em; }
#footer .contacts a { color: #0b4470; }
#footer .footer-list{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-top:0;padding-bottom:20px}

#footer .footer-list>dif{
  max-width: 150px;
}
#footer .footer-list ul{
  display: block !important;
  max-width: 150px;
  padding: 0;
  margin: 0;
}

#footer .footer-list li{
  list-style: none;
  padding: 0 0  .9em;
  font-size: .688em;
  line-height: 1.5;
}

#footer .footer-list span{
  font-size: .875em;
  border: 0;
  padding: 28px 0 30px 0;
  cursor: default;
}

#footer .footer-bottom-links {
  text-transform: uppercase;
  border-bottom: 0;
}

#footer .footer-bottom-links span{
  display: none;
}

#footer .footer-bottom-links>div{
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, .3);
}

#footer .footer-bottom-links ul{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;list-style:none;padding:0;margin:0}
.responsive-padding {
  padding-left: 30px;
  padding-right: 30px;
}

#legal-footer-wrapper .legal-footer>div{
      -webkit-box-orient:horizontal;
      -webkit-box-direction:normal;
      -ms-flex-direction:row;
      flex-direction:row;
  }

  #legal-footer-wrapper .legal-footer ul{
    padding: 0;
    text-align: left;
  }

  #legal-footer-wrapper .legal-footer li {
    display: inline;
    padding: 0 1.25em 0 0;
  }

  #legal-footer-wrapper .legal-footer p {
    background-position: right center;
    background-size: 42px;
    padding: 16px 92px 16px 0;
    margin: 0 22px 0 0;
  }

.nav-ribbon-menu .shop, .nav-ribbon-menu .product-schedule, .nav-ribbon-menu .customer-service {
  display: list-item;
}
/* new stylesheet for min-width 768px */

@media screen and (max-width: 1023px){

  #menu-sidebar {
    display: block;
    width: 18%;
    float: left;
    font-weight: bold;
    margin: 0;
    padding: 10px 10px 10px 10px;
    line-height: 100%;
    box-sizing: border-box;
  }
}

#show-menu {
  display: none;
}

#show-search {
  display: none;
}

#navigation .menu-navigation-container {
  display: block;
  width: 100%;
  max-width: 1180px;
  z-index: 3;
  top: 10px;
}

nav ul.level-1 {
  background: #0b4470;
  border-radius: 4px 4px 0 0;
  float: left;
  padding: 0;
  height: 49px;
  position: relative;
  box-shadow: none;
}

/* This is needed to reset the base style so that the absolute positioning of the Level 2 elements is in relation
   To the Level-1 UL and not the specific list item. */
nav ul.level-1>li {
  position: static;
}
/* Sets the spacing between each level 1 menu item */
ul.level-1 li {
  float: left;
  height: 100%;
  padding: 17px 1.7% 0 1.7%;
}

/* Indents the first level 1 menu item */
ul.level-1>li:first-child {
  margin-left: 35px;
  padding-left: 0;
}

ul.level-1>li:first-child>a {
 /*color: #fde8a2;*/
}
.active {
    color: #fde8a2;
}
ul.level-1>li>a {
  border: none;
  padding: 0;
}

/* Shows the white arrow for the Level 2 menu */
ul.level-1>li>.arrow {
  background: url(/wordpress/wp-content/themes/us-mint/img/white-arrow.png) no-repeat;
  margin: 0 auto -6px;
  position: relative;
  top: 10px;
  width: 14px;
  height: 6px;
  display: block;
}

.level-1>li>.show-sub-menu {
  display: none;
}

ul.level-1>li>ul.level-2 {
  display: block;
  z-index: 2;
  box-shadow: 0 3px 5px -3px #111;
  border-radius: 0 0 4px 4px;
  margin: 0;
  position: absolute;
  left: 0;
  top: 49px;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* This hides the Level-2 menus for Learn, Newsroom, and About */
ul.level-1>li>ul.hidden-menu {
  display: none;
}

/* Formatting for level 2 menu items. We need the second rule to override a rule in base-styles.css */
ul.level-1>li>ul.level-2>li, ul.level-1>li>ul.level-2>li.shop-by-menu {
  float: left;
  height: 100%;
  padding: 0;
  border-bottom: none;
}

/* Extra left-padding for the first Level 2 sub-menu item */
ul.level-1>li>ul.level-2>li:first-of-type {
  padding-left: 16px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+1) {
  width: 70px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+2) {
  width: 110px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+3) {
  width: 65px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+4) {
  width: 145px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+5) {
  width: 140px;
}

ul.level-1 ul.level-2>li:nth-of-type(10n+6) {
  width: 65px;
}

ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
  width: 20px;
}

@media screen and (max-width: 1000px) and (min-width: 991px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 70px;
  }
}

@media screen and (max-width: 990px) and (min-width: 981px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 60px;
  }
}

@media screen and (max-width: 980px) and (min-width: 971px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 50px;
  }
}

@media screen and (max-width: 970px) and (min-width: 961px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 40px;
  }
}

@media screen and (max-width: 960px) and (min-width: 951px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 30px;
  }
}

@media screen and (max-width: 950px) and (min-width: 931px) {
  ul.level-1 ul.level-2 li:nth-of-type(10n+7) {
    width: 15px;
  }
}

ul.level-1 ul.level-2 li:nth-of-type(10n+9) {
  margin-left: 1%;
  width: 130px;
}

ul.level-1 ul.level-2 li:nth-of-type(10n+10) {
  width: 120px;
}

ul.level-1>li>ul.level-2>li>a {
  color: #000;
  font-size: 12px;
  line-height: 50px;
  padding: 0 8px;
  text-align: center;
}

/* This rule colors the background and changes the font color of the currently selected Level 2 Menu */
ul.level-1>li>ul.level-2>li>a:hover, ul.level-1>li>ul.level-2>li:hover>a,
ul.level-1>li>ul.level-2>li>a:focus {
  background: #d8e7f3;
  color: #0b4470;
  text-decoration: none;
}

/* This rule shows the level 3 menu and corresponding arrow on hover and focus */
ul.level-1 ul.level-2>li:hover ul.level-3, ul.level-1 ul.level-2>li:hover .arrow,
ul.level-1 ul.level-2>li>a:focus~.level-3, ul.level-1 ul.level-2>li>a:focus+.arrow {
  display: block;
}

ul.level-2 li .arrow {
  background: url(/wordpress/wp-content/themes/us-mint/img/blue-arrow.png) no-repeat;
  margin: 0 auto -6px;
  position: relative;
  top: -6px;
  width: 13px;
  height: 6px;
  z-index: 1000;
  display: none;
}

ul.nav-menu1 ul.nav-menu>li:nth-of-type(10n+1) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/menu1.png);
}

ul.level-1 ul.level-2>li:nth-of-type(10n+2) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/menu2.png);
}

ul.level-1 ul.level-2>li:nth-of-type(10n+3) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/medals-menu.jpg);
}

ul.level-1 ul.level-2>li:nth-of-type(10n+4) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/product-enrollment-menu.jpg);
}

ul.level-1 ul.level-2>li:nth-of-type(10n+5) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/storage-and-display-menu.jpg);
}

ul.level-1 ul.level-2>li:nth-of-type(10n+6) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/featured-menu.png);
}

ul.level-1 ul.level-2 li:nth-of-type(10n+9) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/gift-ideas-menu.png);
  background-position: 10% 50%;
}

ul.level-1 ul.level-2 li:nth-of-type(10n+10) ul {
  background-image: url(/wordpress/wp-content/themes/us-mint/img/menu-images/interests-menu.png);
  background-position: 10% 50%;
}

ul.level-1 ul.level-2 ul.level-3 li {
  float: none;
  padding: 3px 5px;
  width: auto;
}

a.level-2:focus + .level-3-menu {
  display:block;
}

ul.level-1 ul.level-2 ul.level-3 li a {
  color: #000;
  font-size: 12px;
  letter-spacing: 0;
 /*margin: 5px 0 10px 0;*/
  margin-bottom: 7px;
  text-transform: none;
  line-height: 18px;
}

/* This shows an underline on the level 3 menu items when hovering over them */
ul.level-1 ul.level-2 ul.level-3 li a:hover {
  color: #b31e19;
  text-decoration: underline;
}

#shop-by-label {
  display: none;
}

/* This style sets the background for the (level-2) Heading for the Gift Ideas and Interests menus */
ul.level-1 ul.level-2 li.shop-by-menu>a:hover,
ul.level-1 ul.level-2 li.shop-by-menu:hover>a,
ul.level-1 ul.level-2 li.shop-by-menu>a:focus {
  background-repeat: no-repeat;
  background-position: 18px -10px;
  background-color: #a31b16;
  color:#fff;
  cursor:pointer;
}

/* Formatting for the Shop-By menus that is different from the other level-3 menus */
ul.level-1 ul.level-2 li.shop-by-menu ul {
  border-top: 3px solid #d62923;
  right: 0;
  width: 15%;
}

/* Show a red arrow for the menu on hover. The rest of the properties are inherited */
ul.level-2 li.shop-by-menu:hover .arrow, ul.level-2>li.shop-by-menu>a:focus+.arrow {
  background: url(/wordpress/wp-content/themes/us-mint/img/red-arrow.png) no-repeat;
}

/* Formatting of the Gift Ideas and Interests Level 3 menu contents */
ul.level-1 ul.level-2 li.shop-by-menu ul {
  float: right;
  padding: 12px 0 0 170px;
}

ul.level-1 ul.level-2 li.shop-by-menu>a {
  margin-left: 0;
  padding-right: 10px;
}

form.search-form div.input-and-suggestions {
  position: relative;
}

/* This visually hides the search button text for this screen size */
#search-container .search-button-text {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

form.search-form div.scope-visible {
  top: 46px;
}


/******************************************************
 This section contains styles for the front-page body
*******************************************************/

.full-size {
  margin-bottom: -7px;
}

.half-width {
  min-height: 150px;
}

.third-width {
  width: 32%;
  margin: 1% 0 1% 0;
  padding: 0;
  float: left;
  height: auto;
}

#feature-1, #feature-4 {
  margin-right: 2%;
}

#feature-3, #feature-6 {
  float: right;
}

/* In medium screen and larger, the badges display above the features (bottom badges are hidden) */
#left-badge {
  display: block;
  visibility: visible;
}

#right-badge {
  display: block;
  visibility: visible;
}
#left-badge-bottom {
  display: none;
  visibility: hidden;
}

#right-badge-bottom {
  display: none;
  visibility: hidden;
}
/*************************************
/ Format the Features boxes         */

.front-page-block a {
  border: 2px solid #ddd;
  display: block;
  text-decoration: none;
}

.front-page-block a:focus, .front-page-block a:active {
  border: 2px solid #00d;
}

.third-width .content-title {
  margin-bottom: .3em;
}

.third-width .feature-info-pre {
  display: block;
  visibility: visible;
  float: none;
  height: 4.8em;
}

.third-width .feature-info-post {
  display: none;
  visibility: hidden;
}

.third-width img {
  float: none;
  width: 100%;
  padding: 0;
  /*margin-bottom: -7px;*/
}

.third-width .caption {
  float: none;
}

.third-width:after {
  clear: none;
}

/******************************************************
 This section contains styles for single pages
*******************************************************/
#menu-sidebar {
  display: block;
  width: 18%;
  float: left;
  font-weight: bold;
  margin: 0;
  line-height: 100%;
  box-sizing: border-box;
}

/* When the menu is not active, don't show it. */
.inactive-menu#menu-sidebar {
  width: 0%;
  display: none;
  padding: 0;
}

#menu-sidebar ul {
  margin: 0;
  padding: 0;
}

#menu-sidebar li {
  font-size: 0.9em;
  list-style: none;
  padding: 1em 2px 1em 1.5em;
  border-bottom: 1px #ccc solid;
}

#menu-sidebar li:first-of-type {
  font-size: 1.1em;
  padding: 1em 2px 1em 0;
}

#menu-sidebar a {
  color: #0b4470;
  text-decoration: none;
  font-family: 'Montserrat', arial, helvetica, sans-serif;
}

#menu-sidebar li:first-of-type a {
  color: #333;
}

/* The width of the primary container when the left navigation and right widget area are displayed. */
#primary-container main {
  width: 57%;
  float: left;
  box-sizing: border-box;
}

/* The width of the primary container when only the right-hand widget area is displayed.  */
#primary-container main.med-content {
  width: 75%;
}

/* The width of the primary container when only the left navigation is displayed.  */
#primary-container main.wide-content {
  width: 82%;
}

/* The width of the primary container when the left navigation is hidden.  */
#primary-container main.usmint-wide-content-single {
  width: 75%;
}


/* Size a normal-width section within a wide-content area. This is used by the Educators Home Page */
#primary-container main.wide-content section.normal-width {
  width: 68%;
  float: left;
}

/* This is also used by the Educators Home Page */
#primary-container main.wide-content aside#widget-sidebar {
  width: 31%;
  float: right;
  padding: 0;
}

/* The width of the primary container when the left navigation and widget area are hidden. */
#primary-container main.full-width {
  width: 100%;
}

#widget-sidebar {
  width: 25%;
  float: left;
  padding: 10px;
  box-sizing: border-box;
}

/********************************************************
 This section contains styles for coins and medals pages
*********************************************************/

#primary-container main.coins-and-medals {
  width: 75%;
}

div#coin-medal-images {
  float: left;
  width: 35%;
  box-sizing: border-box;
  margin-right: 20px;
}

/* Center the image vertically within the container */
div#coin-medal-images>img {
  margin: auto;
  display: block;
}

div#primary-info {
  float: left;
  width: 60%;
  box-sizing: border-box;
}

/********************************************
 This section contains styles for attachment pages
*********************************************/

#primary-container main.attachment-page {
  width: 80%;
  margin: auto;
  float: none;
}


/********************************************************
 This section contains misc styles
*********************************************************/

#primary-container main.results-listing {
  width: 82%;
}

div#actions {
  margin: 1em 0;
  text-align: center;
}

#press-release-search-container fieldset input.search-field {
  min-width: 50%;
  margin-top: 4px;
}

#press-release-search-container button {
  padding-left: 1.5em;
  padding-right: 1.5em;
}


/********************************************
 This section contains styles for the footer
*********************************************/

/* AO */
div#footer {
  color: #0b4470;
  margin-top: 50px;
}


#footer #email-submit-button, #footer #mobile-submit-button  {
  border-radius: 0 5px 5px 0;
  font-size: 14px;
  width: 116px;
  margin: 0 0 0 -7px;
  height: 42px;
}


dl dt {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}
dl dd {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.nav-list {
  margin: 0;
  padding: 0;
}

.post {
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    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 for images, or javascript/internal links
   */

  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

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

  thead {
    display: table-header-group; /* h5bp.com/t */
  }

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

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
  }

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

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