/* capstract site stylesheet */

/* ---------------------------------------------------------------- General */

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
  font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a:link, a:active { color: #0000ee; text-decoration: none; }
a:visited { color: #0000ee; text-decoration: none; }
#content a:visited { color: #551a8b; }
a[href]:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: bold; line-height: 1.2; }
h1 { font-size: 1.6em; margin: 0.5em 0 0.6em; }
h2 { font-size: 1.3em; margin: 1.2em 0 0.5em; }
h3 { font-size: 1.1em; margin: 1em 0 0.4em; }
h4 { font-size: 1em; margin: 1em 0 0.3em; }

hr { border: 0; border-top: 1px solid #ccc; margin: 2em 0 1em; }

code, pre, .mono { font-family: Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace; }
code { font-size: 0.92em; }
pre { font-size: 0.85em; background: #f5f5f5; border: 1px solid #ddd; padding: 0.6em 0.8em; overflow-x: auto; line-height: 1.35; }
pre code { font-size: 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 4px 8px; z-index: 10; }
.sr-only, .descriptor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.small { font-size: 0.85em; }
.muted { color: #555; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.nolink { color: #666; }

/* ------------------------------------------------------------ Masthead */

#ack {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  background-color: #ececec;
  border-bottom: 1px solid #d4d4d4;
  color: #333;
  font-size: 12px;
  padding: 5px 12px;
}
#ack .account { white-space: nowrap; order: -1; }
#ack .account a:link, #ack .account a:visited { color: #333; text-decoration: underline; }
#ack .account .sep { color: #999; margin: 0 1px; }

#masthead {
  background-color: #a31f24;
  color: #fff;
  padding: 8px 12px 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  border-bottom: 2px solid #ccc;
}
#masthead a:link, #masthead a:visited { color: #fff; }

#masthead .crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  min-width: 0;
}
#masthead .crumbs .gt { margin: 0 6px; }
#masthead .crumbs a { font-weight: bold; }
#masthead .crumbs .here { font-weight: bold; }

#masthead .crumbs a.wordmark { display: block; line-height: 0; margin-right: 6px; }
#masthead .crumbs a.wordmark img { display: block; height: 30px; width: auto; }
body.front #masthead .crumbs a.wordmark img { height: 34px; }

.mini-search { font-size: 12px; text-align: left; flex-shrink: 0; }
.mini-search .row { display: flex; align-items: stretch; }
.mini-search input[type="text"] {
  width: 15em;
  font: inherit;
  font-size: 12px;
  border: 0;
  padding: 3px 6px;
  height: 24px;
  box-sizing: border-box;
  border-radius: 0;
}
.mini-search select {
  font: inherit;
  font-size: 12px;
  height: 24px;
  border: 0;
  border-left: 1px solid #ccc;
  background: #fff;
  color: #000;
  border-radius: 0;
  padding: 0 2px;
}
.mini-search button {
  font: inherit;
  font-size: 12px;
  height: 24px;
  background: #6a1418;
  color: #fff;
  border: 0;
  padding: 0 10px;
  border-radius: 0;
  cursor: pointer;
}
.mini-search button:hover { background: #4a0e11; }
.mini-search .help { margin-top: 3px; font-size: 11px; }
.mini-search .help a { text-decoration: underline; }

/* ------------------------------------------------------------- Content */

#content {
  flex: 1;
  margin: 0.7em 0.7em 0;
  font-size: 90%;
}

.prose { max-width: 52em; }
.prose.wide, .help-body.wide { max-width: 72em; }
.prose p, .prose li { line-height: 1.5; }
.prose h1 { margin-top: 0.3em; }

.notice {
  border: 1px solid #c9c9a0;
  background: #fbfbe8;
  padding: 0.5em 0.8em;
  margin: 0.8em 0;
}
.notice p { margin: 0.2em 0; }
.notice form { margin: 0; }

.error-box {
  border: 1px solid #b04040;
  background: #efefef;
  padding: 0.4em 0.9em;
  margin: 0.8em 0 1em;
}
.error-box p { margin: 0.3em 0; }
.error-box ul { margin: 0.3em 0 0.4em 1.2em; padding: 0; }

button, input, select, textarea { font-family: inherit; font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  border: 1px solid #999;
  padding: 2px 4px;
  background: #fff;
  color: #000;
  border-radius: 0;
}
textarea { line-height: 1.35; }
input:focus, textarea:focus, select:focus { outline: 2px solid #4a7dbd; outline-offset: 0; }
button {
  border: 1px solid #8a8a8a;
  background: #e8e8e8;
  color: #000;
  padding: 2px 10px;
  border-radius: 2px;
  cursor: pointer;
}
button:hover { background: #dcdcdc; }
button:disabled { color: #777; cursor: default; }
button.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
form.inline { display: inline; margin: 0; }
.button-link {
  display: inline-block;
  border: 1px solid #8a8a8a;
  background: #e8e8e8;
  padding: 1px 10px;
  border-radius: 2px;
  font-size: 13px;
}
.button-link:link, .button-link:visited { color: #000; }
.button-link:hover { background: #dcdcdc; text-decoration: none; }

.hint { color: #555; font-size: 0.88em; margin-top: 2px; }
.hint.inline { display: inline; }

table.plain { border-collapse: collapse; margin: 0.6em 0 1em; }
table.plain th, table.plain td { border: 1px solid #ccc; padding: 3px 7px; text-align: left; vertical-align: top; }
table.plain thead th { background: #eee; font-weight: bold; }
table.plain tr.revoked td { color: #777; }

/* ---------------------------------------------------------------- Home */

.intro-columns { display: flex; gap: 2em; align-items: flex-start; }
.intro-columns .intro { flex: 1 1 50%; }
.intro-columns .news { flex: 1 1 40%; }
p.tagline { margin: 0.3em 0 0.6em; line-height: 1.45; }
.home-search { border: 1px solid #ddd; padding: 0.5em; margin-top: 1em; }
.home-search label { font-weight: bold; }
.news { border: 1px solid #ddd; padding: 0 0.9em 0.3em; margin-top: 0.3em; }
body.front #content .news h2 { font-size: 1.05em; margin: 0.6em 0 0.3em; }
.news ul { margin: 0 0 0.4em; padding-left: 1.1em; }
.news li { margin: 0.25em 0 0.45em; line-height: 1.4; }
.news .news-date { font-weight: bold; }

/* Recently announced / Most read */
.reading { display: flex; gap: 2em; margin: 1.2em 0 0.4em; border-top: 1px solid #ddd; padding-top: 0.2em; }
.reading > section { flex: 1 1 50%; min-width: 0; }
.reading.single > section { flex-basis: 100%; }
body.front #content .reading h2 { font-size: 1.05em; margin: 0.7em 0 0.35em; }
.reading-more { font-weight: normal; font-size: 0.9em; }
.reading-list { margin: 0; padding-left: 1.6em; }
.reading-list li { margin: 0 0 0.55em; line-height: 1.35; }
.reading-title { font-weight: bold; }
.reading-meta { display: block; font-size: 0.88em; color: #444; }
.reading-id { color: #777; white-space: nowrap; }
ul.archives { margin-top: 0.3em; }
ul.archives li { margin: 0.35em 0; line-height: 1.45; }
body.front #content h2 { font-size: 1.35em; margin: 1em 0 0.3em; }

/* ----------------------------------------------------------- Listings */

#dlpage h1 { font-size: 1.6em; margin: 0.3em 0 0.4em; }
#dlpage h2 { font-size: 1.2em; margin: 0.4em 0; }
#dlpage h3 { font-size: 1.1em; margin: 1.1em 0 0.6em; }
#dlpage > ul { margin: 0.3em 0; }
#dlpage .paging, #dlpage .morefewer { margin: 0.3em 0; }
#dlpage .pager a, #dlpage .pager span { margin-right: 0.5em; }
#dlpage .pager .current { font-weight: bold; }
dl.articles { margin: 0; }
dl.articles dt { margin: 0; padding-top: 0.2em; }
dl.articles dt a.list-id { font-weight: bold; }
dl.articles dd { margin: 0 0 0 3em; padding-bottom: 1em; }
.meta { line-height: 130%; }
.list-title { font-size: large; font-weight: bold; margin: 0.25em 0 0; line-height: 120%; }
.list-authors { font-size: 110%; font-weight: normal; }
.list-comments, .list-subjects { font-size: 90%; }
.list-comments .descriptor, .list-subjects .descriptor { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.list-subjects .descriptor, .list-comments .descriptor { font-weight: normal; }
.primary-subject { font-weight: bold; }
p.list-abstract { margin: 0.4em 0 0; line-height: 1.4; }

/* ------------------------------------------------------- Abstract page */

#abs-outer { display: flex; align-items: flex-start; margin: -0.7em -0.7em 0; }
#abs-outer .leftcolumn { flex: 1 1 auto; min-width: 0; margin-bottom: 1em; }
#abs-outer .subheader { background-color: #eee; padding: 0.25em 0; border-bottom: 1px solid #ccc; }
#abs-outer .subheader h1 { margin: 0; font-size: 1.1em; padding: 0 0 0.2em 20px; }
#abs { padding-right: 1.5em; }
#abs .withdrawn-notice {
  border: 1px solid #b04040;
  background: #efefef;
  padding: 0.4em 0.8em;
  margin: 1em 0 0 20px;
  font-weight: bold;
}
#abs .dateline { margin: 15px 0 0 20px; font-style: italic; font-size: 0.9em; }
#abs h1.title { margin: 0.3em 0 0.4em 20px; font-size: 1.8em; line-height: 1.2; }
#abs .authors { margin: 8px 0 8px 20px; font-size: 1.2em; line-height: 24px; }
#abs blockquote.abstract { font-size: 1.05em; line-height: 1.55; margin: 14px 40px 21px 40px; }
#abs blockquote.abstract .descriptor { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: bold; margin-right: 0.3em; }
#abs blockquote.abstract p { margin: 0 0 0.6em; }
#abs blockquote.abstract p:first-of-type { display: inline; }
#abs blockquote.abstract p:first-of-type::after { content: ""; display: block; margin-bottom: 0.6em; }
#abs .metatable { margin: 0 0 19px 20px; font-size: 0.95em; }
#abs .metatable table { border-collapse: collapse; }
#abs td.tablecell { padding: 0 6.5px 0 0; vertical-align: top; line-height: 1.5; }
#abs td.label { white-space: nowrap; }
#abs span.arxivid { font-weight: bold; }
#abs span.arxivid a { font-weight: normal; }
.submission-history { margin: 1.5em 0 1.5em 20px; font-size: 90%; line-height: 1.5em; }
.submission-history h2 { font-size: 120%; margin: 0 0 0.25em; }

.extra-services { flex: 0 0 18em; width: 18em; border-bottom: 0.35em solid #ddd; margin-top: 0; }
.extra-services > div { border-left: 0.35em solid #ddd; border-bottom: medium solid #ddd; padding: 0.5em 1em; }
.extra-services > div:last-child { border-bottom: 0; }
.extra-services h3 { font-size: 1em; font-weight: normal; margin: 0 0 0.3em; padding-top: 0.2em; }
.extra-services ul { margin: 0.3em 0 0 1em; padding: 0; list-style: none; }
.extra-services ul li { margin: 0.15em 0; }
.full-text { font-size: 110%; }
.full-text h2 { font-size: 140%; margin: 0.1em 0 0; }
.full-text .download-pdf { font-weight: bold; }
.full-text .withdrawn-access { margin: 0.3em 0 0 1em; color: #666; }
.abs-license { font-size: x-small; padding-top: 0.6em; }
.browse { font-size: 90%; }
.browse .current { font-weight: bold; padding: 0; }
.browse .prevnext { padding: 0.2em 0 0; }
.browse .list { padding: 0.2em 0 0.5em; }
.browse .abs-switch-cat { padding-bottom: 0.4em; }
.browse .switch { padding: 0.2em 0 0; }
.browse .switch a { font-weight: bold; }
.browse .switch .subclass { padding-left: 1.5em; font-weight: normal; }
.extra-ref-cite { font-size: 90%; }
.extra-ref-cite ul { margin-left: 20px; }

/* --------------------------------------------------------------- Search */

.search-page { max-width: 64em; }
.search-page h1 { font-size: 1.45em; font-weight: normal; margin: 0.4em 0 0.6em; }
.search-page h1 .query { font-weight: bold; }
.search-form { margin-bottom: 1em; }
.search-row { display: flex; gap: 0; align-items: stretch; }
.search-row input[type="text"] { flex: 1; font-size: 15px; padding: 5px 8px; border-color: #999; }
.search-row select { font-size: 14px; border-left: 0; }
.search-row button { font-size: 14px; padding: 4px 16px; border-radius: 0; margin-left: -1px; }
.search-opts { margin: 0.5em 0; font-size: 0.92em; }
.search-opts .adv { float: right; }
.search-controls { border: 1px solid #ddd; background: #fafafa; padding: 0.4em 0.6em; font-size: 0.92em; }
.scope-note { margin: 0 0 0.6em; }
.no-results { font-size: 1.05em; }
.search-help { color: #333; max-width: 50em; }
.pagination { margin: 1.2em 0; font-size: 0.92em; }
.pagination a, .pagination .nolink { margin-right: 0.8em; }
.pagination .pages { margin-left: 1em; }
.pagination .pages a, .pagination .pages span { margin-right: 0.5em; }
.pagination .pages .current { font-weight: bold; }
ol.results { padding-left: 2em; margin: 0; }
li.result { margin-bottom: 1.25em; }
li.result p { margin: 0 0 0.25em; }
.result-head .list-title { font-size: 1.05em; font-weight: normal; }
.result-head .list-title > a:first-child { font-weight: bold; }
.result-title { font-size: 1.15em; font-weight: bold; line-height: 1.25; }
.result-authors .label, .result-abstract .label, .result-dates .label, .result-comments .label { font-weight: bold; color: #222; }
.result-abstract { color: #333; line-height: 1.45; }
.result-dates, .result-comments { font-size: 0.85em; }
.tags { white-space: nowrap; }
.tag {
  display: inline-block;
  font-size: 0.78em;
  padding: 0 5px;
  margin-right: 3px;
  border: 1px solid #b5b5b5;
  background: #f2f2f2;
  color: #333;
  border-radius: 2px;
  vertical-align: 1px;
}
.tag.primary { border-color: #6b8fbf; background: #e8eef7; color: #1c3d6e; }
.search-hit { color: #287916; background-color: #eeffe8; font-weight: bold; }
.adv-form fieldset { border: 1px solid #ccc; margin: 0 0 1em; padding: 0.5em 1em 0.8em; }
.adv-form legend { font-weight: bold; padding: 0 0.3em; }
.help-text { color: #555; font-size: 0.88em; margin: 0.4em 0 0; }

/* ----------------------------------------------------------------- Help */

.help-layout { display: flex; gap: 2.2em; align-items: flex-start; }
.help-nav { flex: 0 0 14em; font-size: 0.92em; border-right: 1px solid #ddd; padding-right: 1em; }
.help-nav p { margin: 0.4em 0 0.6em; font-weight: bold; }
.help-nav h4 { margin: 0.9em 0 0.2em; font-size: 0.95em; color: #333; }
.help-nav ul { list-style: none; margin: 0; padding: 0; }
.help-nav li { margin: 0.2em 0; }
.help-body { flex: 1; min-width: 0; max-width: 52em; }
.help-body h1 { margin-top: 0.2em; }
.help-body h2 { font-size: 1.2em; border-bottom: 1px solid #ddd; padding-bottom: 0.15em; }
.help-body li { margin: 0.25em 0; }
.help-body table.plain { font-size: 0.95em; }
.help-body table.plain td code { white-space: nowrap; }
dl.taxonomy dt { margin-top: 0.4em; }
dl.taxonomy dd { margin: 0.1em 0 0.3em 2em; color: #222; }
dl.formats dt { margin-top: 0.8em; font-weight: bold; }
dl.formats dd { margin: 0.2em 0 0 2em; }
table.templates td, table.templates th { font-size: 0.95em; }
table.templates { width: 100%; }
table.templates td:nth-child(2) { max-width: 26em; }

/* ------------------------------------------------------------- Forms */

.form-table { border-collapse: collapse; }
.form-table th { text-align: right; vertical-align: top; font-weight: bold; padding: 5px 10px 5px 0; white-space: nowrap; font-size: 0.95em; }
.form-table td { padding: 3px 0; vertical-align: top; }
.form-table input[type="text"], .form-table input[type="email"], .form-table input[type="password"] { padding: 3px 5px; }

/* ------------------------------------------------------------- Account */

.user-page h1 { margin-top: 0.3em; }
.user-columns { display: flex; gap: 2em; align-items: flex-start; }
.user-main { flex: 1; min-width: 0; }
.user-side { flex: 0 0 19em; border: 1px solid #ddd; padding: 0 0.9em 0.6em; background: #fafafa; margin-top: 1em; }
.user-side h2 { font-size: 1.05em; margin: 0.6em 0 0.4em; }
table.details { border-collapse: collapse; }
table.details th { text-align: left; vertical-align: top; padding: 2px 10px 2px 0; font-weight: bold; white-space: nowrap; }
table.details td { padding: 2px 0; vertical-align: top; }
table.details.wide { margin-bottom: 1em; }
table.details.wide th { padding-right: 1.5em; }
.side-links { list-style: none; padding: 0; margin: 0.8em 0 0; }
.side-links li { margin: 0.25em 0; }
.listing-table { font-size: 0.95em; }
.listing-table td.mono { font-size: 0.92em; }
.status-rejected, .status-error { color: #a00; }
.status-published { color: #1d6b1d; }
.new-key { border: 1px solid #9bbf8a; background: #f1f8ec; padding: 0.4em 0.8em 0.7em; margin: 0.6em 0; }
.new-key p { margin: 0.3em 0 0.5em; }
.key-form { margin: 0.6em 0 1em; }
.inline-notice button { margin-left: 0.5em; }
.submission-page .status-line { font-size: 1.05em; }
.report { white-space: pre-wrap; border-left: 3px solid #ccc; padding: 0.3em 0 0.3em 1em; margin: 0.5em 0 1em; line-height: 1.5; max-width: 50em; }
blockquote.abstract-quote { margin: 0.4em 2em 1em; line-height: 1.5; max-width: 52em; }
.pdf-frame { width: 100%; max-width: 64em; height: 82vh; border: 1px solid #aaa; }

/* -------------------------------------------------------------- Submit */

.submit-page { max-width: 70em; }
.mode-switch { font-size: 1.02em; padding: 0.4em 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.submit-form fieldset { border: 1px solid #ccc; margin: 0 0 1em; padding: 0.4em 0.9em 0.8em; }
.submit-form legend { font-weight: bold; padding: 0 0.3em; }
.submit-form .wide-input { width: 100%; box-sizing: border-box; }
.submit-form textarea.mono { font-size: 12.5px; }
.submit-form p { margin: 0.5em 0; }
table.rows { border-collapse: collapse; margin-bottom: 0.3em; }
table.rows th { text-align: left; font-weight: normal; font-size: 0.85em; color: #444; padding: 0 6px 2px 0; }
table.rows td { padding: 2px 6px 2px 0; vertical-align: top; }
#figure-rows td.fig-data textarea { display: block; margin-top: 3px; width: 44em; max-width: 100%; }
.cross-row { margin-bottom: 3px; }
.agree { display: block; line-height: 1.5; }
details#json-panel { border: 1px solid #ccc; padding: 0.3em 0.9em; margin: 0 0 1em; }
details#json-panel summary { font-weight: bold; cursor: pointer; }
details#json-panel[open] { padding-bottom: 0.8em; }
.use-json { display: block; margin: 0.4em 0; }
#fields.json-mode { opacity: 0.45; }
.submit-buttons button { font-size: 14px; padding: 3px 16px; }
#preview-area { border-top: 1px solid #ccc; margin-top: 1em; }
#preview-area h2 { font-size: 1.15em; }
#preview-warnings { margin: 0.3em 0 0.6em 1.2em; padding: 0; color: #7a4a00; }
#preview-frame { width: 100%; height: 85vh; border: 1px solid #aaa; display: block; }
.js-only { display: none; }
html.js .js-only { display: inline-block; }

/* -------------------------------------------------------------- Footer */

footer {
  background-color: #f2f2f2;
  color: #000;
  padding: 1em 2em 0.6em;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}
footer a:link, footer a:visited { color: #000; }
footer a:hover { color: #005e9d; text-decoration: none; border-bottom: 1px dotted #005e9d; }
.footer-cols { display: flex; gap: 0; flex-wrap: wrap; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; flex: 1 1 12em; }
.footer-cols .footer-seal { flex: 0 0 auto; margin: 4px 1.6em 0 0; line-height: 0; }
.footer-cols .footer-seal:hover { border-bottom: 0; }
.footer-cols .footer-seal img { display: block; }
img.seal { float: right; margin: 0.2em 0 1em 1.5em; }
.footer-cols li { line-height: 1.9em; font-size: 13.5px; }
footer .disclaimer { margin: 0.8em 0 0; padding-top: 0.5em; border-top: 1px solid #ddd; font-size: 11px; color: #777; }

/* -------------------------------------------------------------- Narrow */

@media screen and (max-width: 768px) {
  #ack { flex-direction: column; align-items: flex-start; }
  #masthead { flex-direction: column; align-items: flex-start; }
  .intro-columns, .user-columns, .reading { flex-direction: column; }
  .reading { gap: 0; }
  /* On phones the article comes first; the help menu follows it. */
  .help-layout { flex-direction: column-reverse; }
  .help-nav { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid #ddd; width: 100%; }
  .help-nav { border-right: 0; padding-right: 0; }
  #abs-outer { flex-direction: column; }
  .extra-services { width: 100%; flex-basis: auto; }
  .user-side { flex-basis: auto; width: 100%; box-sizing: border-box; }
  dl.articles dd { margin-left: 1em; }
  #abs blockquote.abstract { margin: 14px 12px 21px 20px; }

  /* Wide tables scroll inside themselves instead of widening the page. */
  table.plain { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre { overflow-wrap: break-word; }
  pre { overflow-x: auto; }

  /* Forms and search controls wrap to the screen. */
  .search-form input[type="text"], .search-form select, .search-form button { max-width: 100%; box-sizing: border-box; }
  .search-form input[type="text"] { width: 100%; }
  .form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; text-align: left; }
  .form-table th { padding: 8px 0 2px; }
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], select, textarea { max-width: 100%; box-sizing: border-box; }
  .help-layout > * { min-width: 0; max-width: 100%; }
  .help-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .help-body table.plain td code { white-space: normal; overflow-wrap: break-word; word-break: normal; }
  .help-body table.plain td:first-child code { white-space: nowrap; }
  .math, math, .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }

  /* The template library stacks each template as a labelled block. */
  table.templates, table.templates tbody, table.templates tr, table.templates td { display: block; width: auto; overflow: visible; }
  table.templates thead { display: none; }
  table.templates tr { border: 1px solid #ccc; margin: 0 0 1em; }
  table.templates td { border: 0; border-top: 1px solid #e3e3e3; white-space: normal; padding: 6px 8px; }
  table.templates td:first-child { border-top: 0; background: #eee; }
  table.templates td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-weight: bold; font-size: 0.85em; color: #555; margin-bottom: 2px; }
}

@media print {
  #ack, #masthead form, footer .footer-cols { display: none; }
  #masthead { background: none; color: #000; border: 0; }
  #masthead a { color: #000; }
}
