/* washington-razor-clams-print.css
   Print-friendly stylesheet for Washington razor clam handout
*/

/* Page and typography basics */

@page {
  size: 8.5in 11in;
  margin: 1in;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

.page {
  max-width: 6.5in; /* 8.5 in page width minus 1 in margins = 6.5 in content area */
  margin: 0 auto;
  padding: 0;
}

.site-header {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

.site-header h1 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
}

.subtitle {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.meta {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

p {
  margin: 0 0 0.4rem 0;
}

ul, ol {
  margin: 0.2rem 0 0.5rem 1.4rem;
  padding: 0;
}

li + li {
  margin-top: 0.1rem;
}

a {
  color: #000;
  text-decoration: underline;
}

/* Links: keep URLs visible when printing */

@media print {
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}

/* Lists of links */

ul.links {
  list-style-type: disc;
  margin-left: 1.2rem;
}

ul.links li {
  margin-bottom: 0.25rem;
}

/* Callout box */

.callout {
  border: 1px solid #ccc;
  padding: 0.5rem 0.6rem;
  margin: 0.7rem 0;
  background: #f7f7f7; /* Light shading, print friendly */
}

/* Footnotes */

.footnotes {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.footnotes li {
  margin-bottom: 0.2rem;
}

.footnote-ref {
  text-decoration: none;
  font-size: 0.8em;
}

/* Footer */

.site-footer {
  border-top: 1px solid #ccc;
  margin-top: 1rem;
  padding-top: 0.4rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.1rem 0;
}

/* Utility class for non-printing items (buttons, controls, etc.) */

.no-print {
  /* use this class for any on-screen controls you may add later */
}

@media print {
  .no-print {
    display: none !important;
  }
}

/* Screen-specific tweaks */

@media screen {
  body {
    padding: 0.75rem;
  }

  .page {
    padding-bottom: 1.5rem;
  }
}
