/* ACMSL Tutorial - Shared Styles */
:root {
  --primary: #006699;
  --primary-light: #e3f4ff;
  --dark: #123047;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --accent: #00a878;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.tut-header {
  background: linear-gradient(135deg, var(--primary), #0099cc);
  color: white;
  padding: 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 200;
}

.tut-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tut-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tut-header .logo {
  height: 26px;
  width: auto;
}

.tut-header .brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.tut-header .brand:hover { text-decoration: underline; }

.tut-header nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tut-header-row nav a {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s;
}

.tut-header-row nav a:hover {
  background: rgba(255,255,255,0.25);
}

.tut-header-row nav a.active {
  background: rgba(255,255,255,0.3);
  font-weight: 600;
}

/* HERO */
.tut-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: white;
  padding: 1rem 2rem;
  text-align: center;
}

.tut-hero h1 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.tut-hero p {
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* CONTENT */
.tut-content {
  flex: 1;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.tut-content h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
}

.tut-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.tut-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #2a3a4a;
}

.tut-content ul, .tut-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2a3a4a;
}

.tut-content li {
  margin-bottom: 0.4rem;
}

.tut-content strong {
  color: var(--dark);
}

.tut-content em {
  color: var(--primary);
}

/* IMAGES */
.tut-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.tut-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tut-figure figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* INFO CARDS */
.tut-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  margin: 1.25rem 0;
}

.tut-card h4 {
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.tut-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* TABLE */
.tut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.tut-table th {
  background: var(--primary);
  color: white;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
}

.tut-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
  background: var(--card-bg);
}

.tut-table tr:last-child td {
  border-bottom: none;
}

.tut-table tr:hover td {
  background: var(--primary-light);
}

/* GRID */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.tut-grid-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tut-grid-card img {
  width: 100%;
  height: auto;
}

.tut-grid-card .body {
  padding: 1rem;
}

.tut-grid-card h4 {
  margin-bottom: 0.3rem;
  color: var(--dark);
}

.tut-grid-card p {
  font-size: 0.88rem;
}

/* CTA */
.tut-cta {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0 1rem;
}

.tut-cta h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tut-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tut-cta a {
  display: inline-block;
  background: white;
  color: var(--dark);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 0.3rem;
}

.tut-cta a:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* NAV LINKS */
.tut-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--primary-light);
}

.tut-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.tut-nav a:hover {
  text-decoration: underline;
}

/* FOOTER */
.tut-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.2rem 2rem;
  font-size: 0.82rem;
  margin-top: auto;
}

.tut-footer a {
  color: #6bb8e8;
  text-decoration: none;
}

.tut-footer a:hover { text-decoration: underline; }

/* HEADER TOOLBAR - Language selector, Home & ACMSL buttons */
.tut-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tut-toolbar-actions {
  display: flex;
  gap: 0.8rem;
}

.tut-toolbar-actions a {
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s, transform 0.1s;
}

.tut-toolbar-actions a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.tut-lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tut-lang-selector select {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tut-lang-selector select:hover {
  background: rgba(255,255,255,0.22);
}

.tut-lang-selector select option {
  background: var(--dark);
  color: white;
}

/* BREADCRUMB (inside sticky header) */
.tut-breadcrumb {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.25rem;
}

.tut-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.tut-breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

.tut-breadcrumb .bc-current {
  color: white;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tut-header { padding: 0.8rem 1rem; }
  .tut-toolbar { padding: 0.35rem 1rem; }
  .tut-hero { padding: 1.5rem 1rem; }
  .tut-hero h1 { font-size: 1.4rem; }
  .tut-content { padding: 0 1rem; }
}
