/* ==========================================================
   TEA-disk  ::  "Web 2.0" style sheet (think 2006)
   Colours taken from the logo:
     royal blue  #1a3caf   dark blue  #0c2478
     cream       #f7f1df   tea brown  #8a4a1c
     black       #111111   silver     #c7ccd6
   ========================================================== */

html {
  scroll-behavior: smooth;
}

/* Anchor targets stop below the sticky tab bar. */
[id] {
  scroll-margin-top: 58px;
}

body {
  margin: 0;
  padding: 18px 0 30px 0;
  background: #c9d3e6;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 7px),
    linear-gradient(#1a3caf 0, #5b78c9 170px, #c9d3e6 420px);
  background-repeat: repeat, no-repeat;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
}

body.lb-open {
  overflow: hidden;
}

a { color: #1a3caf; }
a:visited { color: #5a2d82; }
a:hover { color: #c0392b; }

a:focus-visible,
button:focus-visible {
  outline: 2px dotted #c0392b;
  outline-offset: 2px;
}

img { border: 0; }
p { margin: 0 0 8px 0; }
.clear { clear: both; }
.center { text-align: center; }
.small { font-size: 11px; }
.green { color: #1d8a1d; font-weight: bold; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Inline SVG icons (replace the old emoji / symbol characters) */
svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
  flex: 0 0 auto;
}

.icon {
  width: 14px;
  height: 14px;
  margin: -2px 5px 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 100;
  padding: 6px 12px;
  background: #fff7a8;
  border: 1px solid #8a4a1c;
  color: #000 !important;
  font-weight: bold;
}

.skip-link:focus { top: 8px; }

/* ---------- page shell ---------- */

#page {
  width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #0c2478;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 6px 22px rgba(0, 0, 0, .45);
}

#toplinks {
  overflow: hidden;
  padding: 4px 10px;
  background: #eef1f8;
  border-bottom: 1px solid #c7ccd6;
  font-size: 11px;
  color: #555;
}

#toplinks .welcome { float: left; }
#toplinks .links { float: right; color: #999; }
#toplinks a { color: #333; text-decoration: none; }
#toplinks a:hover { color: #1a3caf; text-decoration: underline; }

/* ---------- header ---------- */

#header {
  position: relative;
  height: 140px;
  background: #f7f1df;
  background: linear-gradient(#ffffff 0%, #fbf7ea 55%, #efe6cb 100%);
  border-bottom: 1px solid #d6cba8;
}

#header .logo {
  position: absolute;
  left: 18px;
  top: 7px;
}

#header .logo img {
  display: block;
  width: 380px;
  height: auto;
}

.header-right {
  position: absolute;
  right: 22px;
  top: 30px;
  text-align: right;
}

.slogan {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
  color: #8a4a1c;
  text-shadow: 1px 1px 0 #fff;
}

.slogan-sub {
  margin: 2px 0 0 0;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #6b5a3a;
}

.mini-download {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px solid #0c2478;
  border-radius: 12px;
  background: linear-gradient(#5f86e6, #1a3caf 50%, #11308f 51%, #1a3caf);
  color: #fff !important;
  font-weight: bold;
  font-size: 11px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .3);
}

.mini-download:hover { background: linear-gradient(#7fa1f0, #2a4fcc 50%, #1c3fa8 51%, #2a4fcc); }
.mini-download .icon { width: 12px; height: 12px; }

/* ---------- glossy tab navigation (sticky) ---------- */

#nav-sentinel { height: 0; }

#nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  height: 38px;
  padding: 0 12px;
  background: linear-gradient(#4a6fd6 0%, #2549b8 49%, #173699 50%, #1a3caf 100%);
  border-top: 1px solid #7894e2;
  border-bottom: 3px solid #f7f1df;
  transition: box-shadow .2s;
}

#nav.stuck {
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

#nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav li { margin-right: 4px; }

#nav ul a {
  display: block;
  height: 32px;
  padding: 0 18px;
  line-height: 32px;
  border: 1px solid #0c2478;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#6f8fe3 0%, #3558c4 49%, #22419f 50%, #2b4cb5 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  text-shadow: 0 -1px 0 #0c2478;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background .15s;
}

#nav ul a:hover {
  background: linear-gradient(#9fb6f1 0%, #5b7ddc 49%, #3a5cc7 50%, #4668cf 100%);
}

#nav ul a.current {
  height: 33px;
  background: linear-gradient(#ffffff, #f7f1df);
  color: #1a3caf;
  text-shadow: none;
  border-color: #c7b98f;
}

/* Brand and download button only appear while the bar is stuck. */
.nav-brand,
.nav-download {
  display: none;
  align-self: center;
  white-space: nowrap;
  text-decoration: none;
}

.nav-brand {
  margin-right: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: bold;
  color: #fff !important;
  text-shadow: 0 1px 0 #0c2478;
}

/* The full logo, on a white pill so its dark-blue lettering shows on the blue bar */
.nav-brand {
  padding: 2px 8px;
  border-radius: 7px;
  background: linear-gradient(#ffffff, #f7f1df);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
  line-height: 0;
}

.nav-brand img {
  display: block;
  width: auto;
  height: 26px;
}

.nav-download {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid #1e6b12;
  border-radius: 12px;
  background: linear-gradient(#9be27a 0%, #4db52a 49%, #2f9a12 50%, #3fae1f 100%);
  color: #fff !important;
  font-weight: bold;
  font-size: 11px;
  text-shadow: 0 -1px 0 #1e6b12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.nav-download .icon { width: 12px; height: 12px; }

.nav-toggle { display: none; }

#nav.stuck .nav-brand,
#nav.stuck .nav-download {
  display: inline-block;
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#subnav {
  overflow: hidden;
  padding: 6px 14px;
  background: #f7f1df;
  border-bottom: 1px dotted #c7b98f;
  font-size: 11px;
  color: #6b5a3a;
}

#subnav .crumbs { float: left; }
#subnav .date { float: right; font-style: italic; }

/* ---------- layout ---------- */

#wrap { padding: 14px; }

#content {
  float: left;
  width: 606px;
}

#sidebar {
  float: right;
  width: 266px;
}

/* ---------- welcome ---------- */

.welcome-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #d6cba8;
  border-radius: 8px;
  background: #fffdf6;
  background: linear-gradient(#ffffff, #fbf6e6);
}

.welcome-box h1 {
  margin: 0 0 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #1a3caf;
  text-shadow: 1px 1px 0 #d9e1f7;
}

.intro {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #8a4a1c;
}

.shot-float {
  float: right;
  margin: 2px 0 8px 14px;
  padding: 4px;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, .25);
  text-align: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.shot-float img { display: block; width: 250px; height: auto; }
.shot-float span { display: block; margin-top: 3px; font-size: 10px; color: #666; }
.shot-float:hover { border-color: #1a3caf; transform: rotate(-1deg) scale(1.02); box-shadow: 4px 5px 8px rgba(0, 0, 0, .3); }

.cta-line { margin-top: 10px !important; }

.btn-glossy {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 13px;
  color: #fff !important;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 3px rgba(0, 0, 0, .3);
}

.btn-glossy.blue {
  border: 1px solid #0c2478;
  background: linear-gradient(#7c9cf0 0%, #2d54cf 49%, #1a3caf 50%, #2447c0 100%);
}

.btn-glossy.blue:hover { background: linear-gradient(#a3bbf6 0%, #4a6fe0 49%, #2c4fc4 50%, #3558cf 100%); }
.btn-glossy .icon { width: 11px; height: 11px; }

/* ---------- content boxes ---------- */

.box {
  margin-bottom: 14px;
  border: 1px solid #9fb0dc;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.box-title {
  margin: 0;
  padding: 6px 10px;
  background: linear-gradient(#f2f5fd 0%, #d8e1f7 50%, #c6d3f2 51%, #dae3f8 100%);
  border-bottom: 1px solid #9fb0dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: bold;
  color: #0c2478;
  text-shadow: 1px 1px 0 #fff;
}

.box-title .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  border-radius: 50%;
  background: linear-gradient(#5f86e6, #1a3caf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 1px rgba(0, 0, 0, .25);
  color: #fff;
  vertical-align: -4px;
}

.box-title .ico svg { width: 12px; height: 12px; }

.box-body { padding: 10px 12px; }

.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #8b0000;
  background: #e21b1b;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 10px;
  text-shadow: none;
  transform: rotate(-6deg);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 5px 0;
  border-bottom: 1px dotted #c7ccd6;
}

.news-list li:last-child { border-bottom: 0; }

.d {
  color: #8a4a1c;
  font-weight: bold;
  font-size: 11px;
}

/* features */
.two-col { display: flex; gap: 10px; }
.two-col > * { flex: 1; }

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 3px 0 3px 22px;
}

/* Green glossy tick: SVG check drawn over a gradient square */
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 5 5L20 7' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(#6cc26c, #2d8a2d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* data tables */
.table-scroll { overflow-x: auto; }

.grid {
  width: 100%;
  border: 1px solid #9fb0dc;
  border-collapse: collapse;
}

.grid thead th {
  padding: 5px 8px;
  background: linear-gradient(#4a6fd6, #1a3caf);
  color: #fff;
  font-size: 11px;
  text-align: left;
  border: 1px solid #0c2478;
}

.grid thead td {
  background: linear-gradient(#4a6fd6, #1a3caf);
  border: 1px solid #0c2478;
}

.grid tbody th {
  padding: 5px 8px;
  text-align: left;
  font-weight: bold;
  color: #222;
  border: 1px solid #dbe2f3;
  vertical-align: top;
}

.grid td {
  padding: 5px 8px;
  border: 1px solid #dbe2f3;
  vertical-align: top;
}

.grid tbody tr:nth-child(even) > * { background: #f3f6fd; }
.grid tbody tr:hover > * { background: #fff8d9; }

.grid td.yes,
.grid td.no {
  font-weight: bold;
  white-space: nowrap;
}

.grid td.yes { color: #1d8a1d; }
.grid td.no { color: #c0392b; }

.grid td.yes::before,
.grid td.no::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
  background-repeat: no-repeat;
  background-size: contain;
}

.grid td.yes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 5 5L20 7' fill='none' stroke='%231d8a1d' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.grid td.no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='%23c0392b' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.grid th.cat {
  width: 118px;
  color: #0c2478;
  white-space: nowrap;
}

.grid th.cat .icon {
  width: 15px;
  height: 15px;
  color: #8a4a1c;
}

.note {
  margin: 6px 0 0 0 !important;
  font-size: 11px;
  color: #777;
  font-style: italic;
}

/* screenshots */
.shots {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.shots figure {
  flex: 1;
  margin: 0;
  padding: 4px;
  text-align: center;
}

.shots a {
  display: inline-block;
  padding: 3px;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.shots a:hover {
  border-color: #1a3caf;
  box-shadow: 3px 4px 8px rgba(26, 60, 175, .45);
  transform: translateY(-2px) rotate(-1deg);
}

.shots img { display: block; width: 176px; max-width: 100%; height: auto; }
.shots figcaption { margin-top: 4px; font-size: 11px; font-weight: bold; }
.box-body > .center.small .icon { width: 12px; height: 12px; color: #1a3caf; }

/* steps */
.steps {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 11px;
}

.steps li b { display: block; font-size: 13px; color: #0c2478; }

.steps .num {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 6px auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#e0a060, #8a4a1c);
  box-shadow: 0 0 0 1px #8a4a1c, 0 2px 3px rgba(0, 0, 0, .3);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 36px;
}

.steps li.arrow {
  flex: 0 0 26px;
  padding-top: 18px;
  color: #c7b98f;
}

.steps li.arrow svg { width: 20px; height: 20px; }

/* faq */
.faq .q {
  margin: 10px 0 2px 0;
  font-size: 12px;
  font-weight: bold;
  color: #1a3caf;
}

.faq .q:first-child { margin-top: 0; }
.faq .a { margin: 0 0 6px 0; padding-left: 12px; border-left: 3px solid #f0e6c8; }
.faq .g { color: #1d8a1d; font-weight: bold; }
.faq .o { color: #c0392b; font-weight: bold; }
.backtop { margin-top: 10px; text-align: right; font-size: 11px; }
.backtop .icon { width: 10px; height: 10px; }

/* ---------- sidebar ---------- */

.side-box {
  margin-bottom: 14px;
  border: 1px solid #0c2478;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.side-title {
  margin: 0;
  padding: 5px 10px;
  background: linear-gradient(#5f86e6 0%, #2549b8 49%, #173699 50%, #1a3caf 100%);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 -1px 0 #0c2478;
}

.side-title .icon { width: 14px; height: 14px; margin-right: 6px; }

.side-body { padding: 10px; }

.download-box {
  position: relative;
  border-color: #8a4a1c;
  background: linear-gradient(#fffdf6, #f7f1df);
}

.download-box .side-title {
  background: linear-gradient(#c9854a 0%, #a3602c 49%, #8a4a1c 50%, #9a5424 100%);
  text-shadow: 0 -1px 0 #5a2d0c;
}

.cup {
  display: block;
  margin: 0 auto;
  animation: steam 3s ease-in-out infinite;
}

@keyframes steam {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.free-burst {
  position: absolute;
  right: 12px;
  top: 38px;
  width: 58px;
  height: 58px;
  background: #e21b1b;
  clip-path: polygon(50% 0, 61% 17%, 79% 9%, 79% 29%, 98% 32%, 86% 50%, 98% 68%, 79% 71%, 79% 91%, 61% 83%, 50% 100%, 39% 83%, 21% 91%, 21% 71%, 2% 68%, 14% 50%, 2% 32%, 21% 29%, 21% 9%, 39% 17%);
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  animation: wobble 2.4s ease-in-out infinite;
}

.free-burst span { display: block; padding-top: 18px; }

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

.btn-download {
  display: block;
  margin: 10px 0 8px 0;
  padding: 9px 6px 8px 6px;
  border: 1px solid #1e6b12;
  border-radius: 10px;
  background: linear-gradient(#9be27a 0%, #4db52a 49%, #2f9a12 50%, #3fae1f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 5px rgba(0, 0, 0, .35);
  color: #fff !important;
  text-decoration: none;
  text-shadow: 0 -1px 0 #1e6b12;
  transition: transform .1s, box-shadow .2s;
}

.btn-download:hover {
  background: linear-gradient(#b8f09e 0%, #62c93d 49%, #3dae1d 50%, #4dc02b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 10px rgba(98, 201, 61, .8);
}

.btn-download:active { transform: translateY(1px); }
.btn-download .big { display: block; font-family: Arial, sans-serif; font-size: 19px; font-weight: bold; letter-spacing: .5px; }
.btn-download .big .icon { width: 17px; height: 17px; margin: -3px 6px 0 0; }
.btn-download .small { display: block; font-size: 10px; }

.info {
  width: 100%;
  font-size: 11px;
  text-align: left;
  border-top: 1px dotted #c7b98f;
  border-collapse: collapse;
}

.info th,
.info td { padding: 3px 2px; border-bottom: 1px dotted #e2d8ba; }
.info th { width: 70px; color: #6b5a3a; font-weight: normal; text-align: left; }

.arrows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.arrows li {
  position: relative;
  padding: 3px 0 3px 14px;
  border-bottom: 1px dotted #dde3f2;
}

.arrows li:last-child { border-bottom: 0; }

.arrows li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid #8a4a1c;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* vertical news ticker */
.ticker {
  height: 60px;
  overflow: hidden;
}

.ticker-track { animation: ticker 12s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker p { height: 60px; margin: 0; overflow: hidden; }

@keyframes ticker {
  0%, 20% { transform: translateY(0); }
  33%, 53% { transform: translateY(-60px); }
  66%, 86% { transform: translateY(-120px); }
  100% { transform: translateY(-180px); }
}

.sticky-note {
  margin: 0 6px 16px 6px;
  padding: 10px 12px;
  background: #fff7a8;
  background: linear-gradient(#fffbc7, #fff08a);
  border: 1px solid #e0cf4a;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, .25);
  transform: rotate(-1.5deg);
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  font-size: 12px;
  color: #4a3b00;
}

.sticky-note b { display: block; margin-bottom: 3px; color: #8a4a1c; }
.sticky-note .icon { width: 15px; height: 15px; }

/* 88x31 buttons */
.badges { text-align: center; }

.badge88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  margin: 2px;
  box-sizing: border-box;
  border: 1px solid #000;
  font-family: Verdana, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 13px;
  text-align: center;
  vertical-align: top;
  color: #fff;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .5), inset -1px -1px 0 rgba(0, 0, 0, .35);
}

.badge88 b { display: block; padding-top: 2px; font-size: 11px; }
.b-free { background: linear-gradient(#34a534, #0f6a0f); }
.b-clean { background: linear-gradient(#e24a4a, #8b0000); }
.b-win { background: linear-gradient(#4a6fd6, #0c2478); }
.b-safe { background: linear-gradient(#c9854a, #6b3510); }

/* ---------- footer ---------- */

#footer {
  padding: 12px 10px 14px 10px;
  background: linear-gradient(#f3f3f3, #dcdcdc);
  border-top: 3px solid #1a3caf;
  text-align: center;
  font-size: 11px;
  color: #555;
}

.footer-links { margin-bottom: 6px; color: #999; }
.footer-links a { color: #1a3caf; }
.footer-copy { margin: 0; }
.footer-copy .best { color: #888; font-style: italic; }

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #0c2478;
  border-radius: 50%;
  background: linear-gradient(#7c9cf0 0%, #2d54cf 49%, #1a3caf 50%, #2447c0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 5px rgba(0, 0, 0, .4);
  color: #fff !important;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top svg { width: 16px; height: 16px; }

/* ---------- screenshot lightbox (Lightbox 2 style) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  animation: fadeIn .25s ease;
}

.lb-window {
  position: relative;
  width: min(1000px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #0c2478;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  overflow: hidden;
  animation: lbZoom .3s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes lbZoom {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: none; }
}

.lb-titlebar {
  display: flex;
  align-items: center;
  padding: 5px 6px 5px 12px;
  background: linear-gradient(#5f86e6 0%, #2549b8 49%, #173699 50%, #1a3caf 100%);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 -1px 0 #0c2478;
}

.lb-title { flex: 1; }

.lb-close {
  width: 26px;
  height: 22px;
  border: 1px solid #7a1010;
  border-radius: 4px;
  background: linear-gradient(#f07a7a, #d02020 50%, #b31515 51%, #c81d1d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #fff;
  cursor: pointer;
}

.lb-close svg { width: 12px; height: 12px; }

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 10px;
  background: #1b1b1b;
  background: radial-gradient(#3a3a3a, #111);
}

.lb-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.lb-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 230px);
  width: auto;
  height: auto;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .6);
  transition: opacity .25s, transform .3s;
}

.lb-frame img.leaving-left { opacity: 0; transform: translateX(-40px); }
.lb-frame img.leaving-right { opacity: 0; transform: translateX(40px); }

.lb-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}

.lightbox.loading .lb-loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 64px;
  margin-top: -32px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

.lb-nav:hover { background: rgba(26, 60, 175, .85); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 0; border-radius: 0 8px 8px 0; border-left: 0; }
.lb-next { right: 0; border-radius: 8px 0 0 8px; border-right: 0; }

.lb-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(#ffffff, #f7f1df);
  border-top: 1px solid #d6cba8;
}

.lb-caption {
  flex: 1;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: bold;
  color: #0c2478;
}

.lb-thumbs { display: flex; gap: 6px; }

.lb-thumbs button {
  width: 64px;
  height: 42px;
  padding: 2px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}

.lb-thumbs button:hover { opacity: 1; }

.lb-thumbs button[aria-selected="true"] {
  opacity: 1;
  border: 2px solid #1a3caf;
}

.lb-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lb-counter {
  margin: 0;
  font-size: 11px;
  color: #6b5a3a;
  white-space: nowrap;
}

/* ---------- small screens (a modern courtesy) ---------- */

@media (max-width: 940px) {
  body { padding: 0; }
  #page { width: auto; border: 0; box-shadow: none; }
  #content, #sidebar { float: none; width: auto; }
  #header { height: auto; padding: 10px 14px 12px; text-align: center; }
  #header .logo, .header-right { position: static; text-align: center; }
  #header .logo img { width: 300px; max-width: 100%; margin: 0 auto; }
  .header-right { margin-top: 6px; }
  #nav { padding: 0 8px; }
  #nav li { margin-right: 3px; }
  #nav ul a { padding: 0 11px; }
  #nav.stuck .nav-brand { margin-right: 8px; }
  #toplinks .welcome { display: none; }
  #subnav .date { display: none; }
  .shot-float { float: none; display: block; margin: 0 auto 10px; width: fit-content; }
  .lb-thumbs { display: none; }
}

/* Phones: compact bar with brand, Download and a Menu button; links drop down below. */
@media (max-width: 700px) {
  [id] { scroll-margin-top: 56px; }

  #nav {
    align-items: center;
    height: 46px;
    padding: 0 8px;
  }

  #nav .nav-brand,
  #nav .nav-download {
    display: inline-block;
  }

  .nav-brand { margin-right: auto; font-size: 17px; }
  .nav-download { margin-left: 0; padding: 5px 10px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    height: 30px;
    margin-left: 6px;
    padding: 0 10px;
    border: 1px solid #0c2478;
    border-radius: 6px;
    background: linear-gradient(#ffffff 0%, #eef1fa 49%, #d9e1f5 50%, #e6ecf9 100%);
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .35);
    color: #0c2478;
    font-family: Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
  }

  .nav-toggle .icon { width: 14px; height: 14px; }
  .nav-toggle[aria-expanded="true"] { background: linear-gradient(#f7f1df, #efe6cb); }

  #nav ul {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background: #fbf7ea;
    border-bottom: 0 solid #1a3caf;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
    visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }

  #nav ul.open {
    max-height: 320px;
    border-bottom-width: 3px;
    visibility: visible;
    transition: max-height .3s ease;
  }

  #nav li { margin: 0; }

  #nav ul a,
  #nav ul a.current {
    height: auto;
    padding: 11px 16px 11px 30px;
    line-height: 1.3;
    border: 0;
    border-bottom: 1px dotted #c7b98f;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #0c2478;
    font-size: 13px;
    text-shadow: none;
    position: relative;
  }

  #nav ul a::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -4px;
    border-left: 6px solid #8a4a1c;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }

  #nav ul a:hover { background: #f7f1df; }

  #nav ul a.current {
    background: linear-gradient(90deg, #dfe7fb, #fbf7ea);
    box-shadow: inset 4px 0 0 #1a3caf;
  }
}

@media (max-width: 360px) {
  .nav-download { display: none !important; }
}

@media (max-width: 600px) {
  .two-col, .shots, .steps { flex-direction: column; }
  .steps li.arrow { display: none; }

  /* Steps: full-width rows, number on the left, all lined up */
  .steps { align-items: stretch; gap: 8px; }
  .steps li:not(.arrow) {
    position: relative;
    min-height: 60px;
    padding: 10px 12px 10px 62px;
    border: 1px solid #e6dcc0;
    border-radius: 6px;
    background: #fbf7ea;
    text-align: left;
    font-size: 13px;
  }
  .steps .num {
    position: absolute;
    top: 50%;
    left: 12px;
    margin: -18px 0 0 0;
    text-align: center;
  }
  .steps li b { font-size: 14px; }
  .shots figure { padding: 0; }
  .shots img { width: 100%; }
  .grid { font-size: 11px; }
  .lb-nav { width: 36px; height: 52px; margin-top: -26px; }
  .lb-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Blog
   ========================================================== */

.blog-intro {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #d6cba8;
  border-radius: 8px;
  background: linear-gradient(#ffffff, #fbf6e6);
}

.blog-intro h1,
.article h1 {
  margin: 0 0 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
  color: #1a3caf;
  text-shadow: 1px 1px 0 #d9e1f7;
}

.blog-intro p { margin: 0; font-size: 13px; }

/* Post list */
.post-card {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #9fb0dc;
  border-radius: 7px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}

.post-card:hover {
  border-color: #1a3caf;
  box-shadow: 2px 3px 8px rgba(26, 60, 175, .2);
}

.post-thumb {
  flex: 0 0 200px;
  display: block;
  padding: 3px;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
  align-self: flex-start;
}

.post-thumb img { display: block; width: 100%; height: auto; }

.post-card h2 {
  margin: 0 0 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.25;
}

.post-card h2 a { color: #0c2478; text-decoration: none; }
.post-card h2 a:hover { color: #c0392b; text-decoration: underline; }
.post-card p { margin: 0 0 6px 0; }

.post-meta {
  margin-bottom: 5px;
  font-size: 11px;
  color: #6b5a3a;
}

.post-meta .icon { width: 11px; height: 11px; color: #8a4a1c; }
.post-meta span + span { margin-left: 10px; }

.read-more {
  font-weight: bold;
  font-size: 11px;
}

.read-more .icon { width: 10px; height: 10px; margin: -1px 0 0 3px; }

.tag {
  display: inline-block;
  margin-right: 4px;
  padding: 0 6px;
  border: 1px solid #c7b98f;
  border-radius: 8px;
  background: #fbf7ea;
  color: #8a4a1c;
  font-size: 10px;
  line-height: 15px;
}

/* Article */
.article {
  padding: 14px 16px 16px 16px;
  border: 1px solid #9fb0dc;
  border-radius: 7px;
  background: #fff;
}

.article .lead {
  margin: 8px 0 12px 0;
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  color: #6b3a14;
}

.article-cover {
  margin: 0 0 14px 0;
  padding: 4px;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, .2);
}

.article-cover img { display: block; width: 100%; height: auto; }

.article-body { font-size: 13px; line-height: 1.75; }
.article-body p { margin: 0 0 12px 0; }

.article-body h2 {
  margin: 22px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px dotted #9fb0dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  color: #0c2478;
}

.article-body h3 {
  margin: 16px 0 6px 0;
  font-family: Georgia, serif;
  font-size: 15px;
  color: #8a4a1c;
}

.article-body ul,
.article-body ol { margin: 0 0 12px 0; padding-left: 22px; }
.article-body li { margin-bottom: 5px; }
.article-body code { padding: 1px 4px; border: 1px solid #dbe2f3; background: #f3f6fd; font-size: 12px; }

/* Numbered steps with brown discs */
.article-body ol.howto {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.article-body ol.howto li {
  position: relative;
  min-height: 28px;
  padding: 3px 0 6px 38px;
  counter-increment: step;
}

.article-body ol.howto li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#e0a060, #8a4a1c);
  box-shadow: 0 0 0 1px #8a4a1c;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.callout {
  margin: 0 0 14px 0;
  padding: 9px 12px 9px 38px;
  position: relative;
  border: 1px solid #e0cf4a;
  border-radius: 5px;
  background: linear-gradient(#fffbc7, #fff5a0);
  font-size: 12px;
  line-height: 1.6;
}

.callout > svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 17px;
  height: 17px;
  color: #8a4a1c;
}

.callout.warn { border-color: #e59a8f; background: linear-gradient(#fff1ee, #ffe0d9); }
.callout.warn > svg { color: #c0392b; }
.callout.good { border-color: #8ccf7a; background: linear-gradient(#f2fcec, #dcf5cf); }
.callout.good > svg { color: #1d8a1d; }

.toc {
  float: right;
  width: 220px;
  margin: 0 0 12px 16px;
  border: 1px solid #9fb0dc;
  border-radius: 6px;
  background: #f7f9ff;
  font-size: 11px;
}

.toc strong {
  display: block;
  padding: 4px 8px;
  background: linear-gradient(#f2f5fd, #c6d3f2);
  border-bottom: 1px solid #9fb0dc;
  font-family: Georgia, serif;
  font-size: 12px;
  color: #0c2478;
}

.toc ol { margin: 0; padding: 6px 8px 6px 26px; }
.toc li { margin: 2px 0; }

.cta-box {
  clear: both;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 6px 0;
  padding: 12px 14px;
  border: 1px solid #8a4a1c;
  border-radius: 8px;
  background: linear-gradient(#fffdf6, #f7f1df);
}

.cta-box img { flex: 0 0 64px; width: 64px; height: 64px; }
.cta-box div { flex: 1; }
.cta-box b { display: block; font-family: Georgia, serif; font-size: 15px; color: #0c2478; }
.cta-box p { margin: 2px 0 0 0; font-size: 12px; }

.cta-box .btn-download {
  flex: 0 0 180px;
  margin: 0;
  text-align: center;
}

.cta-box .btn-download .big { font-size: 15px; }

.article-faq h3 { margin-bottom: 2px; color: #1a3caf; font-family: Verdana, sans-serif; font-size: 13px; }

.related {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dotted #9fb0dc;
}

.related h2 {
  margin: 0 0 8px 0;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #0c2478;
}

.related-grid { display: flex; gap: 10px; }

.related-grid a {
  flex: 1;
  display: block;
  padding: 4px;
  border: 1px solid #c7d2ec;
  background: #fff;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.related-grid a:hover { border-color: #1a3caf; transform: translateY(-2px); }
.related-grid img { display: block; width: 100%; height: auto; margin-bottom: 4px; }

.side-posts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-posts li {
  padding: 5px 0;
  border-bottom: 1px dotted #dde3f2;
  font-size: 11px;
  line-height: 1.4;
}

.side-posts li:last-child { border-bottom: 0; }
.side-posts li.current a { color: #1e1e1e; font-weight: bold; text-decoration: none; }

/* "From the blog" box on the home page */
.home-posts {
  display: flex;
  gap: 10px;
}

.home-posts a {
  flex: 1;
  display: block;
  padding: 4px;
  border: 1px solid #c7d2ec;
  background: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.home-posts a:hover { border-color: #1a3caf; transform: translateY(-2px); }
.home-posts img { display: block; width: 100%; height: auto; margin-bottom: 4px; }

@media (min-width: 701px) and (max-width: 940px) {
  #nav.stuck .nav-download { display: none; }
}

@media (max-width: 940px) {
  .toc { float: none; width: auto; margin: 0 0 12px 0; }
}

@media (max-width: 600px) {
  .post-card { flex-direction: column; }
  .post-thumb { flex: none; align-self: stretch; }
  .related-grid, .home-posts { flex-direction: column; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-box .btn-download { flex: none; width: 100%; }
  .article h1, .blog-intro h1 { font-size: 21px; }
}

/* Seven tabs plus the brand and Download button must fit in 920px once the bar is stuck. */
#nav ul a { white-space: nowrap; }
#nav.stuck ul a { padding: 0 12px; }
#nav.stuck .nav-brand { margin-right: 10px; }

/* Phones: logo on the left, Download + Menu always on the right — also once the bar is
   stuck (the #nav.stuck margin rules above would otherwise pull them left). */
@media (max-width: 700px) {
  #nav .nav-brand,
  #nav.stuck .nav-brand { margin-right: 8px; }
  #nav .nav-brand img { height: 30px; }
  #nav .nav-download { margin-left: auto; }
}

@media (max-width: 360px) {
  #nav .nav-toggle { margin-left: auto; }
}
