/* ---------------------------------------------------------------
   G4PACS corporate site - stylesheet v1.0
   Early-2000s look, current-day content
   --------------------------------------------------------------- */
:root {
  --navy: #003366;
  --blue: #6699CC;
  --pale: #E8EEF4;
  --silver: #C0C0C0;
  --orange: #FF6600;
  --link: #0000CC;
  --visited: #800080;
  --ink: #000000;
  --paper: #FFFFFF;
  --bg: #7F99B2;
}

* { box-sizing: border-box; }

html { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%237F99B2'/%3E%3Crect width='1' height='1' fill='%23708AA3'/%3E%3C/svg%3E"); }

body {
  margin: 0;
  padding: 0 16px;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
}

a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: #FF0000; }
a:focus-visible { outline: 2px dotted var(--ink); outline-offset: 1px; }

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; margin: 0; }

/* ---------- Page frame ---------- */
.page {
  width: 760px;
  max-width: 100%;
  margin: 8px auto 16px;
  background: var(--paper);
  border: 1px solid #333;
  box-shadow: 4px 4px 0 #556B85;
}

/* ---------- Top strip ---------- */
.topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pale);
  border-bottom: 1px solid var(--silver);
  padding: 2px 8px;
  font-size: 10px;
  color: #333;
}
.topstrip a { margin: 0 2px; }

/* ---------- Banner ---------- */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 86px;
  background: linear-gradient(to bottom, #1F4E8C 0%, var(--navy) 45%, #002244 100%);
  color: #fff;
  overflow: hidden;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.logo svg { width: 64px; height: 64px; flex: none; }
.logo .word {
  font-family: Arial Black, "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 2px 2px 0 #001122;
}
.logo .word span { color: #FFCC00; }
.logo .strap {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 13px;
  color: #CCE0F5;
  margin-top: 3px;
}
.banner-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 6px 10px 8px;
  font-size: 10px;
}
.search { display: flex; gap: 3px; align-items: center; }
.search input[type=text] {
  width: 120px;
  font: 11px Verdana, sans-serif;
  border: 1px solid #000;
  padding: 1px 3px;
  background: #fff;
}
.btn {
  font: bold 10px Verdana, sans-serif;
  color: #000;
  padding: 2px 8px;
  border: 1px solid #333;
  border-color: #fff #555 #555 #fff;
  background: linear-gradient(to bottom, #FFFFFF 0%, #E0E0E0 50%, #C8C8C8 51%, #F0F0F0 100%);
  cursor: pointer;
}
.btn:active { border-color: #555 #fff #fff #555; }
.banner-right .contact { color: #CCE0F5; }
.banner-right .contact b { color: #FFCC00; }

/* ---------- Nav bar ---------- */
.nav {
  display: flex;
  background: linear-gradient(to bottom, #8AB4E0 0%, var(--blue) 50%, #4C7FB5 51%, #5A8CC0 100%);
  border-top: 1px solid #A8C8E8;
  border-bottom: 2px solid #234;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav li { flex: 1; }
.nav a {
  display: block;
  text-align: center;
  padding: 5px 4px;
  font: bold 11px Verdana, Tahoma, sans-serif;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid #3A6B9E;
  border-left: 1px solid #A8C8E8;
  text-shadow: 1px 1px 0 #234;
}
.nav a:hover, .nav a.on {
  background: linear-gradient(to bottom, #FFE680 0%, #FFCC00 50%, #E6A800 51%, #FFD633 100%);
  color: #003366;
  text-shadow: none;
}
.nav a:visited { color: #fff; }
.nav a.on:visited { color: #003366; }

/* ---------- Ticker ---------- */
.ticker {
  background: #000;
  color: #33FF33;
  font: 11px "Courier New", Courier, monospace;
  padding: 2px 8px;
  border-bottom: 1px solid #555;
  overflow: hidden;
  white-space: nowrap;
}
.ticker marquee { display: block; }

/* ---------- Columns ---------- */
.cols {
  display: grid;
  grid-template-columns: 150px 1fr 160px;
  gap: 0;
}
.side, .main, .right { padding: 10px; min-width: 0; }
.hero > * { min-width: 0; }
.side { background: var(--pale); border-right: 1px solid var(--silver); }
.right { background: #F7F7F7; border-left: 1px solid var(--silver); }

/* Bevel box (the workhorse of the era) */
.box {
  border: 2px outset var(--silver);
  background: var(--paper);
  margin-bottom: 12px;
  font-size: 11px;
}
.box h3 {
  font: bold 11px Verdana, Tahoma, sans-serif;
  color: #fff;
  background: linear-gradient(to right, var(--navy), var(--blue));
  padding: 3px 6px;
  margin: 0;
}
.box .in { padding: 6px; }
.box ul { margin: 0; padding-left: 14px; }
.box li { margin: 2px 0; }

/* Sidebar nav list */
.sidenav { list-style: none; margin: 0; padding: 0; }
.sidenav li { border-bottom: 1px solid #fff; }
.sidenav a {
  display: block;
  padding: 3px 4px 3px 14px;
  font: 11px Verdana, Tahoma, sans-serif;
  text-decoration: none;
  color: var(--navy);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M0 0l7 3.5L0 7z' fill='%23FF6600'/%3E%3C/svg%3E") no-repeat 3px 6px;
}
.sidenav a:hover { background-color: #fff; text-decoration: underline; }

.new {
  display: inline-block;
  font: bold 9px Verdana, sans-serif;
  color: #fff;
  background: var(--orange);
  padding: 0 3px;
  vertical-align: middle;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Demo form */
.form label { display: block; margin-top: 5px; font-size: 10px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select {
  width: 100%;
  font: 11px Verdana, sans-serif;
  border: 1px solid #7F9DB9;
  padding: 1px 3px;
  background: #fff;
}
.form .btn { margin-top: 8px; }
.form .mods { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 4px; font-size: 10px; margin-top: 2px; }
.form .mods label { display: block; margin: 0; white-space: nowrap; }
.form .mods input { vertical-align: middle; margin: 0 2px 0 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Main content ---------- */
.main h1 {
  font-size: 20px;
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 3px;
  margin-bottom: 8px;
}
.main h2 {
  font-size: 14px;
  color: var(--navy);
  margin: 16px 0 5px;
  padding-left: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect x='1' y='1' width='10' height='10' fill='%236699CC' stroke='%23003366'/%3E%3Crect x='3' y='3' width='4' height='4' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 3px;
}
.main p { margin: 0 0 8px; }
.intro {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 14px;
  color: #333;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 12px;
  align-items: start;
  margin-bottom: 6px;
}

/* ---- Fake Windows 2000 viewer screenshot ---- */
.shot { border: 1px solid #000; box-shadow: 3px 3px 5px rgba(0,0,0,.4); font-size: 10px; }
.shot .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0A246A, #A6CAF0);
  color: #fff;
  font: bold 10px Tahoma, Verdana, sans-serif;
  padding: 2px 3px;
}
.shot .title .ctl { display: flex; gap: 2px; }
.shot .title .ctl span {
  display: inline-block; width: 13px; height: 11px;
  background: #D4D0C8; border: 1px solid; border-color: #fff #404040 #404040 #fff;
  font: bold 8px Tahoma, sans-serif; color: #000; text-align: center; line-height: 9px;
}
.shot .menu, .shot .tools, .shot .status {
  background: #D4D0C8;
  font: 10px Tahoma, Verdana, sans-serif;
  padding: 1px 4px;
  color: #000;
}
.shot .menu span { margin-right: 8px; }
.shot .menu span u { text-decoration: underline; }
.shot .tools { border-top: 1px solid #fff; border-bottom: 1px solid #808080; display: flex; gap: 2px; padding: 2px 3px; }
.shot .tools i {
  display: inline-block; width: 16px; height: 16px;
  background: #D4D0C8; border: 1px solid; border-color: #fff #404040 #404040 #fff;
}
.shot .tools i:nth-child(3n) { margin-right: 4px; }
.shot .tools i::before {
  content: ""; display: block; width: 8px; height: 8px; margin: 3px auto;
  background: #000080;
}
.shot .tools i:nth-child(2n)::before { background: #808000; border-radius: 50%; }
.shot .tools i:nth-child(5n)::before { background: #008000; width: 10px; height: 6px; }

.xray {
  position: relative;
  height: 250px;
  background: #000 url(img/chest-pa.jpg) center / contain no-repeat;
  color: #FFFF66;
  font: 8px "Courier New", Courier, monospace;
  line-height: 1.3;
  overflow: hidden;
}
.xray .ov { position: absolute; margin: 3px; text-shadow: 0 0 2px #000, 0 0 3px #000, 1px 1px 0 #000; }
.xray .tl { top: 0; left: 0; }
.xray .tr { top: 0; right: 0; text-align: right; }
.xray .bl { bottom: 0; left: 0; }
.xray .br { bottom: 0; right: 0; text-align: right; }
.xray .r { position: absolute; top: 46%; right: 8px; font: bold 16px Arial, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000; }
.shot .status { border-top: 1px solid #fff; display: flex; justify-content: space-between; }
.shot .status span { border: 1px inset #808080; padding: 0 4px; }
.caption { font-size: 10px; color: #555; text-align: center; margin-top: 4px; }

/* Feature table */
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 6px 0 4px;
  border: 1px solid var(--silver);
}
table.spec th, table.spec td { padding: 3px 6px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
table.spec th { background: var(--pale); color: var(--navy); font-weight: bold; }
table.spec tr:nth-child(even) td { background: #F7F9FB; }

.checks { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 16px; }
.checks li {
  padding-left: 16px; margin: 2px 0; break-inside: avoid;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M1 5.5l3 3 6-7' fill='none' stroke='%23009900' stroke-width='2'/%3E%3C/svg%3E") no-repeat 0 3px;
}

.tip {
  background: #FFFFCC;
  border: 1px solid #CCCC66;
  padding: 6px 8px;
  font-size: 11px;
  margin: 10px 0;
}
.tip b { color: #996600; }

.quote {
  margin: 10px 0;
  padding: 6px 8px 6px 12px;
  border-left: 4px solid var(--blue);
  background: #F4F8FC;
  font: italic 12px "Times New Roman", Times, serif;
}
.quote cite { display: block; font: 10px Verdana, sans-serif; color: #555; margin-top: 3px; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.pill {
  display: inline-block;
  font: bold 11px Verdana, Tahoma, sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1px solid #1B4570;
  background: linear-gradient(to bottom, #8FBBE8 0%, #4E86C2 48%, #2B62A0 52%, #4A80BC 100%);
  text-shadow: 1px 1px 0 #1B4570;
  box-shadow: 1px 1px 2px rgba(0,0,0,.4);
}
.pill:visited { color: #fff; }
.pill:hover { color: #FFFF99; }
.pill.orange {
  border-color: #994400;
  background: linear-gradient(to bottom, #FFB366 0%, #FF7F1A 48%, #E05E00 52%, #FF8C2A 100%);
  text-shadow: 1px 1px 0 #994400;
}

/* ---------- Right column ---------- */
.news dt { font-weight: bold; color: var(--navy); margin-top: 6px; }
.news dt small { font-weight: normal; color: #777; font-size: 9px; }
.news dd { margin: 0 0 4px; }
.right .box { border-color: #ddd; }
.badge {
  display: block;
  width: 88px;
  height: 31px;
  margin: 6px auto;
  font: bold 9px Verdana, sans-serif;
  text-align: center;
  line-height: 29px;
  border: 1px solid #333;
  color: #fff;
  text-decoration: none;
}
.badge.dicom { background: linear-gradient(#5A8CC0, #003366); }
.badge.pdf { background: linear-gradient(#E33, #900); }
.badge.ie { background: linear-gradient(#4CF, #069); }

/* ---------- Footer ---------- */
.footer {
  border-top: 2px solid var(--navy);
  background: var(--pale);
  padding: 8px 10px;
  font-size: 10px;
  color: #333;
  text-align: center;
}
.footer p { margin: 3px 0; }
.footer .badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.footer .badges span {
  display: inline-block; width: 80px; height: 15px;
  font: bold 8px Verdana, sans-serif; line-height: 15px;
  color: #fff; background: #555; border: 1px solid #222;
}
.footer .badges span.w { background: linear-gradient(#FC0, #C90); color: #000; }
.footer .badges span.h { background: linear-gradient(#69C, #036); }
.footer .badges span.g { background: linear-gradient(#6C6, #363); }
.counter {
  display: inline-block;
  font: bold 12px "Courier New", Courier, monospace;
  letter-spacing: 3px;
  background: #000;
  color: #0F0;
  padding: 0 4px;
  border: 1px inset #666;
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--silver); }
  .right { border-left: 0; border-top: 1px solid var(--silver); }
  .hero { grid-template-columns: 1fr; }
  .banner { height: auto; flex-direction: column; align-items: flex-start; }
  .banner-right { align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .nav li { flex: 1 1 33%; }
  .checks { columns: 1; }
  .page { box-shadow: none; overflow: hidden; }
  .topstrip { flex-wrap: wrap; gap: 2px; }
  .banner-right { padding-top: 0; }
  table.spec { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .new { animation: none; }
  .ticker marquee { animation: none; }
}

/* ---------- Support page ---------- */
.lamp { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #999; border: 1px solid #555; vertical-align: middle; margin-right: 4px; }
.lamp.ok { background: #33CC33; border-color: #080; }
.faq dt { font-weight: bold; color: var(--navy); margin: 10px 0 2px; }
.faq dd { margin: 0 0 6px; }
.form.wide .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form.wide .span2 { grid-column: 1 / -1; }
.form.wide .keyin { display: flex; align-items: center; border: 1px solid #7F9DB9; background: #fff; }
.form.wide .keyin .mask { font: 12px "Courier New", Courier, monospace; color: #888; padding: 2px 0 2px 4px; letter-spacing: 1px; white-space: nowrap; }
.form.wide .keyin input { border: 0; width: 4.5em; font-family: "Courier New", Courier, monospace; letter-spacing: 1px; text-transform: uppercase; padding: 2px 4px 2px 0; }
.form.wide textarea { width: 100%; font: 12px Verdana, sans-serif; border: 1px solid #7F9DB9; padding: 2px 4px; background: #fff; resize: vertical; }
.form.wide label { font-size: 11px; }
.form.wide input, .form.wide select { font-size: 12px; }
.form.wide .btn { font-size: 11px; padding: 3px 12px; }
@media (max-width: 720px) { .form.wide .grid2 { grid-template-columns: 1fr; } }
.right .checks { columns: 1; }

/* ---------- Downloads page ---------- */
table.dl td { vertical-align: top; }
table.dl td a { font-weight: bold; }

/* ---------- Site map / legal pages ---------- */
.cols.single { grid-template-columns: 1fr; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.two .box { margin-bottom: 0; }
ul.plain { margin: 0; padding-left: 16px; }
ul.plain li { margin: 3px 0; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* ---------- Site map tree ---------- */
.cols.map { grid-template-columns: 1fr 160px; }
.ico { display: inline-block; width: 14px; height: 12px; vertical-align: -1px; margin-right: 5px; background-repeat: no-repeat; background-position: center; }
.ico.folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 2h5l1 1.5h8V11H0z' fill='%23FFCC33' stroke='%23996600'/%3E%3Cpath d='M0 5h14v6H0z' fill='%23FFE680' stroke='%23996600'/%3E%3C/svg%3E"); }
.ico.section { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3 .5h5l3 3v8H3z' fill='%23fff' stroke='%23555'/%3E%3Cpath d='M5 5h4M5 7h4M5 9h3' stroke='%236699CC'/%3E%3C/svg%3E"); }
.ico.file { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3 .5h5l3 3v8H3z' fill='%23fff' stroke='%23555'/%3E%3Crect x='4' y='6' width='6' height='4' fill='%23C00'/%3E%3C/svg%3E"); }
.ico.lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='3' y='5' width='8' height='6.5' fill='%23FFCC00' stroke='%23996600'/%3E%3Cpath d='M5 5V3.5a2 2 0 0 1 4 0V5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E"); }
.ico.mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='.5' y='2.5' width='13' height='8' fill='%23fff' stroke='%23555'/%3E%3Cpath d='M1 3l6 4 6-4' fill='none' stroke='%236699CC'/%3E%3C/svg%3E"); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree > li { margin: 0 0 14px; }
.tree > li > a { font: bold 13px "Trebuchet MS", Arial, sans-serif; color: var(--navy); text-decoration: none; padding-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 2h5l1 1.5h8V11H0z' fill='%23FFCC33' stroke='%23996600'/%3E%3Cpath d='M0 5h14v6H0z' fill='%23FFE680' stroke='%23996600'/%3E%3C/svg%3E") no-repeat 0 1px; }
.tree > li > a:hover { text-decoration: underline; }
.tree .path { font: 10px "Courier New", Courier, monospace; color: #888; margin-left: 6px; }
.tree .desc { display: block; font-size: 10px; color: #555; margin: 1px 0 0 20px; }
.tree ul { margin: 4px 0 0 7px; border-left: 1px dotted #7F9DB9; padding-left: 0; }
.tree ul li { position: relative; padding: 2px 0 2px 22px; }
.tree ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; border-top: 1px dotted #7F9DB9; }
.tree ul li > a { padding-left: 19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3 .5h5l3 3v8H3z' fill='%23fff' stroke='%23555'/%3E%3Cpath d='M5 5h4M5 7h4M5 9h3' stroke='%236699CC'/%3E%3C/svg%3E") no-repeat 0 1px; }
.tree ul li.file > a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3 .5h5l3 3v8H3z' fill='%23fff' stroke='%23555'/%3E%3Crect x='4' y='6' width='6' height='4' fill='%23C00'/%3E%3C/svg%3E"); }
.tree ul li.lock > a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='3' y='5' width='8' height='6.5' fill='%23FFCC00' stroke='%23996600'/%3E%3Cpath d='M5 5V3.5a2 2 0 0 1 4 0V5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tree ul li.mail > a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='.5' y='2.5' width='13' height='8' fill='%23fff' stroke='%23555'/%3E%3Cpath d='M1 3l6 4 6-4' fill='none' stroke='%236699CC'/%3E%3C/svg%3E"); }
.tree ul li .desc { margin-left: 19px; }
.legend p { margin: 0 0 5px; font-size: 11px; }
@media (max-width: 720px) { .cols.map { grid-template-columns: 1fr; } }
