/* Free Graph Theory Software - Classic Authentic Stylesheet */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #00ffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.program-mode {
  background-color: #005858;
  color: #e8ffff;
}
.site-header {
  background-color: #004040;
  border-bottom: 2px solid #000000;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffde59;
  text-shadow: 1px 1px 2px #000000;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 4px 6px;
}
.site-nav a:hover {
  text-decoration: underline;
  color: #66ccff;
}
.site-nav a.active {
  color: #66ccff;
}
main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}
h1.section-title, h2.section-title {
  color: #990000;
  font-size: 1.55rem;
  margin: 0 0 14px;
}
body.program-mode h1.section-title {
  color: #ffde59;
}
.feature-list {
  margin: 0 0 22px 20px;
  padding: 0;
  line-height: 1.8;
  font-size: 1.02rem;
}
.action-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  line-height: 2;
}
a.classic-link {
  color: #00008b;
  font-weight: 700;
  text-decoration: underline;
}
a.classic-link:hover {
  color: #990000;
}
body.program-mode a.classic-link {
  color: #66ccff;
}
.graph-figure {
  text-align: center;
}
.graph-figure img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.doc-box {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid #006666;
  padding: 20px 24px;
  margin-bottom: 20px;
  line-height: 1.65;
}
.doc-box h2, .doc-box h3 {
  color: #990000;
  margin-top: 0;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.72);
  margin: 14px 0 22px;
}
table.data-table th, table.data-table td {
  border: 1px solid #005555;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.95rem;
}
table.data-table th {
  background-color: #004040;
  color: #ffde59;
}
/* Interactive Canvas Explorer on Start Program page */
.workspace-shell {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  margin-top: 16px;
}
.canvas-panel {
  background-color: #003333;
  border: 2px solid #00ffff;
  padding: 12px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.toolbar button, .toolbar select {
  background-color: #004040;
  color: #ffffff;
  border: 1px solid #66ccff;
  padding: 6px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}
.toolbar button:hover {
  background-color: #006666;
}
#graph-canvas {
  width: 100%;
  height: 400px;
  background-color: #e6ffff;
  border: 1px solid #000000;
  cursor: crosshair;
  display: block;
}
.params-panel {
  background-color: #003333;
  border: 2px solid #66ccff;
  padding: 16px;
  color: #e8ffff;
}
.params-panel h2 {
  margin: 0 0 12px;
  color: #ffde59;
  font-size: 1.1rem;
}
.param-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(102, 204, 255, 0.25);
  font-size: 0.92rem;
}
.site-footer {
  border-top: 1px solid #006666;
  padding: 14px 24px;
  font-size: 0.88rem;
  text-align: center;
  background-color: rgba(0, 64, 64, 0.12);
}
body.program-mode .site-footer {
  background-color: #003636;
  color: #ccf2f2;
}
@media (max-width: 820px) {
  .home-grid, .workspace-shell {
    grid-template-columns: 1fr;
  }
}
