/* PrintDeskTop - one shared style sheet for every page */

:root {
  --ink: #1a1a1a;
  --muted: #555555;
  --page: #ffffff;
  --panel: #f3f4f7;
  --line: #d5d8e0;
  --navy: #1a2a8c;
  --red: #c8102e;
  --link: #0033cc;
  --link-visited: #5a2a8c;
  --question: #c00000;
  --answer: #006b00;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover, a:focus { color: var(--red); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Header */
.site-header {
  border-bottom: 4px solid var(--navy);
  background: var(--page);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
  min-height: 48px;
}
.brand:visited { color: var(--navy); }
.brand:hover .brand-name { color: var(--navy); }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.brand-name {
  display: block;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: italic; color: var(--red); }
.brand-tag { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.3; }

.menu-btn { display: none; }

/* Layout */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
}

.site-nav ul { list-style: none; margin: 0; padding: 20px 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  text-align: right;
  color: var(--muted);
  text-decoration: none;
  border-right: 3px solid transparent;
}
.site-nav a:visited { color: var(--muted); }
.site-nav a:hover, .site-nav a:focus { color: var(--link); background: var(--panel); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: bold;
  border-right-color: var(--red);
  background: var(--panel);
}

main { padding: 16px 0 32px; min-width: 0; }

h1 {
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 8px 0 16px;
}
h2 { color: var(--navy); font-size: 1.25rem; margin: 28px 0 8px; }

.ad { margin: 0 0 20px; }
/* No ad to show leaves no gap (Google marks the slot "unfilled"; the page script also hides it) */
.ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.ad[hidden] { display: none; }

ol, ul { padding-left: 1.6em; }
li { margin: 0 0 8px; }
li > ol, li > ul { margin-top: 8px; }

/* Screenshots: scale to the screen; tap to see the full size */
.shot { display: inline-block; margin: 8px 0 4px; }
.shot img { border: 1px solid var(--line); }
.zoom { display: none; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .zoom { display: block; } }
.inline-pic { max-height: 1.9em; width: auto; }

/* Big, easy to tap download buttons */
.download-list { list-style: none; padding: 0; margin: 16px 0 24px; }
.download-list li { margin: 0 0 12px; }
.download-list a {
  display: inline-block;
  padding: 12px 18px;
  min-height: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.download-list a:visited { color: #fff; }
.download-list a:hover, .download-list a:focus { background: var(--red); color: #fff; }

.donate-box {
  margin: 24px 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 640px;
}
.donate-box form { margin: 12px 0 0; }
.donate-box p { margin-top: 0; }
.donate-box input[type="image"] { max-width: 100%; height: auto; }

/* FAQ */
.faq > li { margin-bottom: 24px; }
.faq .q { color: var(--question); font-weight: bold; }
.faq .a { color: var(--answer); font-weight: bold; }
.faq p { margin: 0 0 6px; }

/* What's New table: a table on wide screens, stacked on phones */
.changes { border-collapse: collapse; width: 100%; }
.changes th, .changes td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.changes th { background: var(--panel); color: var(--navy); }
.changes td:first-child { white-space: nowrap; width: 9em; }

.revisions > li { margin-bottom: 20px; }

/* Links page: a grid of logos */
.logo-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.logo-grid li { margin: 0; display: flex; }
.logo-grid li > a { flex: 1; }
.logo-grid a {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; padding: 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff;
}
.logo-grid a:hover, .logo-grid a:focus { border-color: var(--link); background: var(--panel); }

/* Search form */
.search-form { max-width: 560px; }
.search-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.search-row input[type="text"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; padding: 10px 12px; min-height: 48px;
  border: 1px solid #8a8f9c; border-radius: 6px;
}
.search-row input[type="submit"], .btn {
  font: inherit; font-weight: bold;
  min-height: 48px; padding: 10px 18px;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 6px; cursor: pointer;
}
.search-row input[type="submit"]:hover { background: var(--red); }
.search-form fieldset { border: 0; padding: 0; margin: 0; }
.search-form label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 18px; }
.search-form input[type="radio"] { width: 22px; height: 22px; }

/* PAD information page */
.pad { max-width: 760px; }
.pad dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0 0 16px; }
.pad dt { font-weight: bold; }
.pad dd { margin: 0; }
.pad .card { background: #ffffe1; border: 1px solid var(--line); padding: 16px; border-radius: 6px; margin: 0 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-nav { max-width: 1120px; margin: 0 auto; padding: 12px 16px; font-size: 0.9rem; }
.footer-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.footer-nav li { margin: 0; }
.footer-nav li:not(:last-child)::after { content: "|"; color: var(--muted); }
.footer-nav a { display: inline-block; padding: 10px 8px; }

/* Phones and narrow windows */
@media (max-width: 760px) {
  .brand-name { font-size: 1.35rem; }
  .brand-tag { font-size: 0.8rem; }
  .brand img { width: 32px; height: 32px; }

  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: inherit; font-weight: bold;
    min-height: 48px; padding: 8px 14px;
    background: var(--navy); color: #fff;
    border: 0; border-radius: 6px; cursor: pointer;
    flex: none;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; background: #fff; position: relative;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }

  .layout { display: block; padding: 0; }
  .site-nav { border-bottom: 1px solid var(--line); background: var(--panel); }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { padding: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    text-align: left; padding: 12px 16px; min-height: 48px;
    border-right: 0; border-left: 4px solid transparent;
  }
  .site-nav a[aria-current="page"] { border-left-color: var(--red); }

  main { padding: 8px 16px 28px; }
  h1 { font-size: 1.4rem; }

  .changes, .changes tbody, .changes tr, .changes td { display: block; width: 100%; }
  .changes thead { display: none; }
  .changes tr { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 10px; padding: 8px 10px; }
  .changes td { border: 0; padding: 0; }
  .changes td:first-child { font-weight: bold; color: var(--navy); width: auto; }

  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logo-grid a { min-height: 90px; padding: 6px; }

  .pad dl { grid-template-columns: 1fr; }
  .pad dd { margin-bottom: 8px; }
}
