* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 44px;
  width: auto;
}

header h1 {
  font-size: 1.3rem;
  color: white;
  margin: 0;
}

header h1 span {
  color: #06b6d4;
}

nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

nav a {
  color: #ccc;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.15s;
}

nav a:hover, nav a.active {
  background: #06b6d4;
  color: white;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.page-title {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: #666;
  margin-bottom: 0;
  font-size: 1rem;
}

h2 {
  font-size: 1.35rem;
  color: #1a1a2e;
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #f0f2f5;
}

h2:first-child { margin-top: 0; }

h3 {
  font-size: 1.05rem;
  color: #444;
  margin: 1rem 0 0.4rem;
}

p {
  margin-bottom: 0.75rem;
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

li { margin-bottom: 0.3rem; }

pre {
  background: #1e1e2e;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
}

/* override highlight.js padding */
pre code.hljs {
  padding: 1.25rem !important;
  border-radius: 8px;
}

code {
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
}

p code, li code {
  background: #f0f2f5;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #c0392b;
}

.track {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.track-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.track-badge {
  background: #1a1a2e;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.track h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.stretch {
  background: #eef2ff;
  border-left: 4px solid #4a6cf7;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-top: 0.5rem;
}

.stretch h3 {
  color: #4a6cf7;
  margin-top: 0;
}

.stretch ol {
  margin-bottom: 0;
}

.tip {
  background: #fef9c3;
  border-left: 4px solid #eab308;
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.tip strong { color: #92400e; }

.download-btn {
  display: inline-block;
  background: #22c55e;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem 0.3rem 0.2rem 0;
  transition: background 0.15s;
}

.download-btn:hover { background: #16a34a; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}

.schedule-table th {
  background: #1a1a2e;
  color: white;
  text-align: left;
  padding: 0.5rem 0.75rem;
}

.schedule-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: #f8f8f8; }

.day-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.day-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: #333;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}

.day-card:hover {
  border-color: #06b6d4;
  transform: translateY(-2px);
}

.day-card .day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-card h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1rem;
  color: #1a1a2e;
}

.day-card p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f2f5;
}

.resource-list li:last-child { border-bottom: none; }

.resource-list a {
  color: #4a6cf7;
  text-decoration: none;
  font-weight: 500;
}

.resource-list a:hover { text-decoration: underline; }

footer {
  text-align: center;
  color: #999;
  font-size: 0.82rem;
  padding: 2rem 1rem;
}
