/* Copilot.aero design system — reconstructed from the 2016 production CSS
   (s3://copilot.aero/index.html) and 2009–2013 screenshots. */

:root {
  /* Brand */
  --cp-navy-900: #263552;   /* header gradient top */
  --cp-navy-700: #33496e;   /* header gradient mid */
  --cp-navy-500: #3a537c;   /* header gradient bottom */
  --cp-navy-panel: #3d5a8a; /* landing hero panel */
  --cp-gold: #bf9a01;       /* logo bars */
  --cp-gold-light: #d8b205;
  --cp-gold-dark: #b89400;
  --cp-orange-top: #dbab4f; /* Sign Up button */
  --cp-orange-bottom: #cd6f06;
  --cp-bronze: #cd7f32;     /* header link hover, selected tour item */

  /* Neutrals */
  --cp-page: #f3f3f3;
  --cp-surface: #ffffff;
  --cp-rule: #dddddd;
  --cp-text: #333333;
  --cp-text-muted: #555555;
  --cp-text-faint: #999999;

  /* Links */
  --cp-link: #3371b7;
  --cp-link-hover: #cc9900;

  /* Logbook grid */
  --cp-grid-bg: #cdcdcd;
  --cp-grid-head: #e5eaf6;
  --cp-row-odd: #ffffff;
  --cp-row-even: #f0f0f0;
  --cp-row-new: #e4f6d8;
  --cp-row-totals: #ffffdd;
  --cp-input-hint: #fefecc;
  --cp-row-duplicate: #ffd8aa;
  --cp-row-invalid: #efd3d2;
  --cp-row-pending: #aed4ff;
  --cp-row-awaiting: #dcf2d7;
  --cp-row-requesting: #ffffe6;
  --cp-error-border: #b73733;
  --cp-field-error: #ff5e52;
  --cp-field-error-bg: #ffe5e0;

  /* Type */
  --cp-font: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Arial, Helvetica, sans-serif;
  --cp-font-grid: Verdana, Arial, Helvetica, sans-serif;
  --cp-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cp-size-body: 13px;
  --cp-size-grid: 10px;

  /* Layout */
  --cp-content-width: 970px;
  --cp-header-height: 85px;
  --cp-radius-panel: 8px;
  --cp-shadow-card: 0 0 3px #888;
}

* { box-sizing: border-box; }
body.cp {
  margin: 0;
  background: var(--cp-page);
  color: var(--cp-text);
  font: var(--cp-size-body)/1.5 var(--cp-font);
}
.cp a { color: var(--cp-link); text-decoration: none; }
.cp a:hover { color: var(--cp-link-hover); }

/* ---------- Header ---------- */
.cp-header {
  height: var(--cp-header-height);
  background: linear-gradient(var(--cp-navy-900), var(--cp-navy-500));
  border-bottom: 5px solid var(--cp-rule);
  position: relative;
  color: #fff;
}
.cp-header .cp-logo { display: block; height: 85px; }
.cp-header .cp-logo img { height: 85px; display: block; }
.cp-header .cp-usernav {
  position: absolute; top: 6px; right: 20px;
  font-weight: bold; font-size: 13px;
}
.cp-header .cp-usernav a { color: #fff; }
.cp-header .cp-usernav a:hover { color: var(--cp-bronze); }
.cp-header .cp-usernav .sep { margin: 0 6px; }
.cp-header .cp-usernav .trial { color: #e8873a; }

/* ---------- App tabs (logged-in) ---------- */
.cp-tabs {
  display: flex; gap: 0; margin: 0; padding: 0 0 0 1em; list-style: none;
  height: 30px; line-height: 30px; background: #e9edf3; border-bottom: 1px solid #d3dae5;
}
.cp-tabs li { padding: 0 2.2em; border-right: 1px solid #c9d1de; }
.cp-tabs li:last-child { border-right: 0; }
.cp-tabs a { font-size: 13px; }
.cp-tabs li.active a { color: var(--cp-text); font-weight: bold; }

/* ---------- Buttons ---------- */
.cp-btn-signup {
  display: inline-block; min-width: 150px; padding: 10px 40px;
  font: 20px/1.2 var(--cp-font-display); color: #fff; text-align: center;
  background: linear-gradient(var(--cp-orange-top), #e19a2a 45%, var(--cp-orange-bottom));
  border: 1px solid #b86205; border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 -1px 0 rgba(0,0,0,.25); cursor: pointer; white-space: nowrap;
}
.cp .cp-btn-signup, .cp .cp-btn-signup:hover { color: #fff; }
.cp-btn-signup:hover { filter: brightness(1.06); }
.cp-btn {
  display: inline-block; padding: 3px 10px; font: bold 11px/17px var(--cp-font);
  color: var(--cp-text); text-shadow: 1px 1px 0 #fff;
  background: linear-gradient(#fdfdfd, #e3e3e3); border: 1px solid #b5b5b5; border-radius: 3px; cursor: pointer;
}
.cp-btn:hover { background: linear-gradient(#fff, #ececec); }
.cp-link-arrow { white-space: nowrap; font-weight: bold; color: #fff !important; font-size: 14px; }
.cp-link-arrow::after { content: " \27A1"; color: #6cc04a; }

/* ---------- Landing hero ---------- */
.cp-wrap { width: var(--cp-content-width); margin: 0 auto; }
.cp-hero {
  background: var(--cp-navy-panel); color: #fff; border-radius: var(--cp-radius-panel);
  padding: 22px 20px 28px; margin: 12px auto 10px; display: grid; grid-template-columns: 630px 1fr; gap: 20px;
}
.cp-hero h1 {
  grid-column: 1 / -1; margin: 0; font: bold 30px/1.1 var(--cp-font-display); letter-spacing: -1px;
  text-shadow: 0 2px 1px #000;
}
.cp-hero .cp-hero-copy { font-size: 16px; line-height: 1.4; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.cp-hero table.cp-grid { align-self: start; }
.cp-hero table.cp-grid td { height: 14px; padding: 1px 4px; }
.cp-hero table.cp-grid th { padding: 2px; }
.cp-hero table.cp-grid tr.new input { padding: 0 2px; }
.cp-hero .cp-hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 60px; }

/* ---------- Feature grid ---------- */
.cp-card {
  background: var(--cp-surface); border: 1px solid #ccc; border-radius: 6px; box-shadow: var(--cp-shadow-card);
}
.cp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 30px; padding: 18px 20px 24px; }
.cp-feature { display: grid; grid-template-columns: 60px 1fr; }
.cp-feature img { width: 48px; height: 48px; margin-top: 2px; }
.cp-feature h3 { margin: 0 0 6px; font: bold 15px var(--cp-font); color: #222; }
.cp-feature p { margin: 0; font-size: 12px; line-height: 1.35; color: #333; }

/* ---------- Footer ---------- */
.cp-footer { text-align: center; padding: 10px 0 40px; border-top: 1px solid #d5d5d5; margin-top: 30px; }
.cp-footer nav { font-size: 14px; }
.cp-footer nav .sep { color: var(--cp-link); margin: 0 4px; }
.cp-footer small { display: block; margin-top: 20px; font-size: 11px; color: #777; }

/* ---------- Logbook grid ---------- */
.cp-logbook-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 12px; }
.cp-logbook-bar input[type=text] { font: 12px var(--cp-font); padding: 3px 4px; border: 1px solid #aaa; }
.cp-logbook-bar .pager a { margin: 0 3px; }
.cp-logbook-bar .pager .current { background: var(--cp-link); color: #fff; padding: 0 4px; font-weight: bold; }
table.cp-grid {
  width: 100%; border-collapse: separate; border-spacing: 1px; background: var(--cp-grid-bg);
  font: var(--cp-size-grid)/1.2 var(--cp-font-grid); color: var(--cp-text-muted);
}
table.cp-grid th {
  background: var(--cp-grid-head); padding: 5px 3px; font-weight: bold; text-align: center; color: #555;
}
table.cp-grid th abbr { text-decoration: underline dotted; cursor: help; }
table.cp-grid td { padding: 4px 5px; height: 26px; vertical-align: middle; white-space: nowrap; }
table.cp-grid td.num { text-align: right; }
table.cp-grid tr:nth-child(odd) td { background: var(--cp-row-odd); }
table.cp-grid tr:nth-child(even) td { background: var(--cp-row-even); }
table.cp-grid tr.new td { background: var(--cp-row-new); }
table.cp-grid tr.new input { width: 100%; font: 10px var(--cp-font-grid); border: 1px solid #999; padding: 2px; text-align: right; background: #fff; }
table.cp-grid tr.new input.hint { background: var(--cp-input-hint); border-color: #d8d27a; text-align: left; }
table.cp-grid tr.remarks td { background: var(--cp-row-new); }
table.cp-grid tr.remarks textarea { width: 100%; height: 3em; font: italic 10px "Courier New", monospace; border: 1px solid #bbb; }
table.cp-grid tr.quicktags td { background: var(--cp-row-new); font-size: 10px; }
table.cp-grid tr.quicktags a { margin-right: 6px; }
table.cp-grid tr.totals td { background: var(--cp-row-totals); }
table.cp-grid tr.empty td { background: #fff; text-align: center; font: bold 15px var(--cp-font); color: #333; height: 38px; }
table.cp-grid tr.duplicate td { background: var(--cp-row-duplicate); }
table.cp-grid tr.invalid td { background: var(--cp-row-invalid); }
table.cp-grid tr.pending td { background: var(--cp-row-pending); }
table.cp-grid tr.awaiting td { background: var(--cp-row-awaiting); }
table.cp-grid tr.requesting td { background: var(--cp-row-requesting); }

/* ---------- Tooltip ---------- */
.cp-tip {
  display: inline-block; position: relative; background: #2d5a8a; color: #fff; font-size: 12px;
  padding: 3px 8px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.cp-tip::before {
  content: ""; position: absolute; top: -6px; left: 12px; border: 6px solid transparent; border-top: 0;
  border-bottom-color: #2d5a8a;
}
