/* Stevens Virtual Airlines – Stylesheet
   Adjust the colors in :root below; everything else follows automatically. */
:root {
  --page-bg: #c0c0c0;          /* grey page background (as on the current site) */
  --text: #000;
  --link: #3a3a3a;             /* link color (dark grey) */
  --btn-top: #bebebe;          /* menu button gradient (a bit darker than the page) */
  --btn-bottom: #a3a3a3;
  --btn-border: #555;
  --btn-hover-top: #d0d0d0;
  --btn-hover-bottom: #b4b4b4;
  --accent: #fdc423;           /* yellow from the logo */
  --box-bg: #d4d4d4;
  --menu-width: 200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 14px;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }   /* links are underlined only on mouse-over */
a.logo:hover, .years a:hover { text-decoration: none; }

/* ---------- Sidebar ---------- */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--menu-width);
  padding: 4px 8px 20px 6px;
  overflow-y: auto;
  z-index: 20;
}
.logo {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 46px; color: #000; text-decoration: none;   /* space between logo and first button */
}
.logo img { width: 34px; height: 34px; flex: none; }
.logo-text strong {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 1.9rem; line-height: 1; letter-spacing: .5px;
}
.logo-text > span { display: block; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; }

#menu { width: 150px; margin-left: 16px; }
#menu a, #menu summary {
  display: block; margin: 0 0 8px; padding: 1px 6px;
  font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: .85rem; line-height: 1.5;
  text-align: center; color: #000; text-decoration: none;
  text-shadow: 1px 1px 1px rgba(255,255,255,.35);
  background: linear-gradient(var(--btn-top), var(--btn-bottom));
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
  cursor: pointer; list-style: none; position: relative;
}
#menu summary::-webkit-details-marker { display: none; }
#menu summary::after { content: "▸"; position: absolute; right: 7px; font-size: .8rem; }
#menu details[open] > summary::after { content: "▾"; }
#menu a:hover, #menu summary:hover { background: linear-gradient(var(--btn-hover-top), var(--btn-hover-bottom)); }
#menu .sub { margin: 0 0 4px 10px; }
#menu .sub a { font-size: .8rem; font-weight: normal; margin-bottom: 5px; }
#menu a.active { background: linear-gradient(#939393, #ababab); box-shadow: inset 1px 1px 2px rgba(0,0,0,.45); }

.side-foot { margin-top: 70px; padding-left: 16px; font-family: Arial, Helvetica, sans-serif; font-size: .8rem; line-height: 1.6; }

/* ---------- Content ---------- */
#content {
  margin-left: var(--menu-width);
  padding: 14px 24px 50px;
  max-width: 1320px;
}
#content h1 { margin: 0 0 14px; font-size: 1.5rem; }
#content h2 { margin: 1.6em 0 .5em; font-size: 1.2rem; }
#content img { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; background: var(--box-bg); }
th, td { border: 1px solid #999; padding: 6px 10px; text-align: left; }
th { background: #808080; color: #fff; }

/* ---------- Start page ---------- */
.welcome { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 10px; }
.welcome p { margin: 0 0 14px; font-weight: bold; }
.welcome p:first-child { font-size: 1.25rem; }
.welcome p + p { font-size: .9rem; margin-bottom: 0; }
.plane { display: block; margin: 8px 0 40px; }
.powered { font-weight: bold; font-size: .9rem; }

/* ---------- Page elements ---------- */
figure { margin: 24px 0; }
figcaption { font-size: .85rem; margin-top: 6px; font-style: italic; }
.text { max-width: 820px; }
.text, .linkblock, .imprint { font-size: 13px; }   /* running text on the text pages (not the fleet page) */
.routemap { margin: 22px 0; }
.routemap img { display: block; border: 1px solid #999; }
.routemap figcaption { font-size: 11px; font-style: normal; }
.signature { font-style: italic; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { display: block; background: transparent; padding: 4px; border: 1px solid #999; }
.gallery a:hover { background: rgba(255,255,255,.25); border-color: #666; }
.gallery img { display: block; width: 100%; height: auto; }
/* ---------- Fleet ---------- */
.fleet-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fleet-nav a {
  padding: 1px 18px; color: #000; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; font-size: 12px;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.fleet-nav a:hover { background: linear-gradient(var(--btn-hover-top), var(--btn-hover-bottom)); text-decoration: none; }
.fleet-sum { font-weight: bold; font-size: 12px; margin: 0 0 8px; }
.fleet-note { font-size: 12px; margin: 0 0 8px; }
html { scroll-behavior: smooth; }
.fleet-section { scroll-margin-top: 12px; margin-top: 26px; }
.fleet-section > h2 { margin: 0 0 14px; font-size: 19px; }
.fleet-family { margin-bottom: 18px; }
.fleet-bar {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding: 1px 12px;
  font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #000;
  text-shadow: 1px 1px 1px rgba(255,255,255,.35);
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.fleet-bar .count { font-size: 11px; font-weight: normal; }
.fleet-body { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 0 4px; }
.fleet-info { flex: 1 1 320px; }
.fleet-info .facts { margin: 0 0 6px; font-size: 12px; }
.fleet-img { margin: 0 0 0 auto; flex: 0 0 240px; }
.fleet-img img { display: block; width: 240px; border: 1px solid #999; }
.fleet-img figcaption { font-size: 10px; margin-top: 3px; }
.regs { list-style: square; margin: 0; padding-left: 22px; font-size: 12px; line-height: 1.45; }

.gallery .cap { display: block; font-size: .75rem; line-height: 1.3; padding: 4px 2px 1px; }
.archive { margin-top: 40px; }
.archive summary { cursor: pointer; font-weight: bold; margin-bottom: 12px; }
#shots section + section { margin-top: 10px; }

/* ---------- Lightbox ---------- */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9); align-items: center; justify-content: center; gap: 10px; padding: 10px;
}
#lightbox.open { display: flex; }
#lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
#lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; }
#lightbox figcaption { color: #eee; margin-top: 8px; font-style: normal; font-size: .9rem; }
.lb-btn {
  background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 10px 16px; border-radius: 6px; flex: none;
}
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 800px) { .lb-btn { padding: 8px 12px; } }

.linkblock { background: var(--box-bg); padding: 4px 20px 12px; border: 1px solid #999; margin-bottom: 20px; }
.linkblock h2 { margin: 14px 0 8px; font-size: 1.1rem; }
.linkblock ul { list-style: none; padding: 0; margin: 0; }
.linkblock li { padding: 6px 0; border-bottom: 1px solid #b5b5b5; }
.linkblock li:last-child { border-bottom: 0; }
.linkblock small { display: block; color: #333; }
.year-select { margin: 18px 0 6px; }
.year-select select {
  width: 220px; max-width: 100%; padding: 3px 6px; font-family: Verdana, Geneva, Arial, sans-serif; font-size: 12px; color: #000;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.year-links { font-size: 13px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.years a {
  padding: 1px 14px; color: #000; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; font-size: .85rem;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.years a:hover { background: linear-gradient(var(--btn-hover-top), var(--btn-hover-bottom)); }

/* ---------- Imprint ---------- */
#content.imprint { max-width: 760px; }
.imprint p { margin: 0 0 1.3em; }
table.contact { width: auto; background: transparent; margin-bottom: 1.3em; }
table.contact td { border: 0; padding: 0 28px 0 0; }

.imprint h2 { font-size: 1.25rem; }
.imprint h3 { font-size: 1rem; margin: 1.4em 0 .4em; }
.imprint hr { border: 0; border-top: 1px solid #8a8a8a; margin: 36px 0; }
.todo { background: #ffe14d; color: #000; padding: 0 3px; }   /* draft markers – remove before publishing */

/* ---------- Mobile ---------- */
#menu-toggle {
  display: none; position: fixed; top: 8px; left: 8px; z-index: 30;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); color: #000;
  border: 1px solid var(--btn-border); font-size: 1.3rem; padding: 4px 11px; cursor: pointer;
}
@media (max-width: 800px) {
  #menu-toggle { display: block; }
  #sidebar { transform: translateX(-100%); transition: transform .25s; background: var(--page-bg); box-shadow: 2px 0 8px rgba(0,0,0,.3); padding-top: 52px; }
  body.menu-open #sidebar { transform: none; }
  #content { margin-left: 0; padding: 56px 14px 40px; }
}

/* ---------- Route network ---------- */
.route-intro { font-size: 13px; max-width: 820px; margin: 0 0 14px; }
.route-form { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 14px; }
.route-form label { display: flex; flex-direction: column; gap: 3px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 12px; }
.route-form select {
  width: 320px; max-width: 100%; padding: 3px 6px; font-family: Verdana, Geneva, Arial, sans-serif; font-size: 12px; color: #000;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.route-form select:disabled { opacity: .6; }
.route-status { font-size: 12px; font-weight: bold; margin: 0 0 8px; }
.route-wrap { overflow-x: auto; }
.route-table { width: 100%; min-width: 860px; table-layout: fixed; font-size: 11px; }
.route-table th, .route-table td { padding: 3px 8px; }
.route-table th { font-family: Arial, Helvetica, sans-serif; white-space: nowrap; }
.route-table td.ac { color: #444; line-height: 1.35; }
.route-table tbody tr:nth-child(even) { background: #cbcbcb; }
.route-top { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; }
.route-ctl { flex: 1 1 340px; }
.route-ctl .route-intro { margin-bottom: 18px; }
.route-ctl .route-form { margin-bottom: 0; }
.route-map { flex: 0 1 400px; margin: 0; }
.route-map img { width: 100%; height: auto; }
@media (max-width: 800px) { .route-map { order: -1; flex-basis: 100%; } }
.route-field { display: flex; flex-direction: column; gap: 3px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 12px; }
.ms { position: relative; width: 320px; max-width: 100%; }
.ms-btn {
  display: block; width: 100%; padding: 3px 24px 3px 6px; text-align: left; font-family: Verdana, Geneva, Arial, sans-serif; font-size: 12px; font-weight: normal; color: #000; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); border: 1px solid var(--btn-border); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 1px 1px 2px rgba(0,0,0,.4);
}
.ms-btn::after { content: "\25be"; position: absolute; right: 8px; top: 3px; }
.ms-btn:disabled { opacity: .6; cursor: default; }
.ms-panel {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; z-index: 15; max-height: 290px; overflow-y: auto;
  background: var(--box-bg); border: 1px solid var(--btn-border); border-radius: 6px; box-shadow: 2px 2px 6px rgba(0,0,0,.4); padding: 4px 0;
}
.ms-panel[hidden] { display: none; }
.ms-panel label { display: block; padding: 2px 10px; font-family: Verdana, Geneva, Arial, sans-serif; font-weight: normal; font-size: 12px; cursor: pointer; }
.ms-panel label:first-child { border-bottom: 1px solid #aaa; margin-bottom: 3px; padding-bottom: 4px; font-weight: bold; }
.ms-panel label:hover { background: rgba(255,255,255,.35); }
