/* Shared styling for the ΙΝΣΕΤΕ user manuals (admin / teacher / trainee). */
:root {
  --brand: #135bec;
  --teal: #0d9488;
  --ink: #111318;
  --muted: #616f89;
  --line: #dbdfe6;
  --bg: #f6f6f8;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  line-height: 1.65;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }

/* Header */
.masthead {
  background: linear-gradient(135deg, var(--brand), #0b3fa8);
  color: #fff;
  padding: 40px 20px;
  margin-bottom: 32px;
}
.masthead .inner { max-width: 880px; margin: 0 auto; }
.masthead .eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
  margin: 0 0 8px;
}
.masthead h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.masthead p { margin: 12px 0 0; max-width: 640px; opacity: .92; font-size: 15px; }

.role-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* Sections */
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; margin-bottom: 20px; }
section h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; margin: 0 0 14px; scroll-margin-top: 20px;
}
section h2 .num {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
section h3 { font-size: 16px; margin: 22px 0 8px; color: var(--ink); }

p, li { font-size: 15px; }
a { color: var(--brand); }
ol, ul { padding-left: 22px; }
li { margin: 5px 0; }
strong { color: var(--ink); }
code {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.path { display:block; background: var(--bg); border:1px solid var(--line); border-radius:8px; padding:10px 14px; font-family: ui-monospace, monospace; font-size:13px; margin: 10px 0; overflow-x:auto; }

/* Callout */
.note {
  border-left: 4px solid var(--brand);
  background: #eff5ff;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.note.warn { border-left-color: #d97706; background: #fff8ed; }

/* Figures / screenshots */
figure { margin: 18px 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  background: var(--bg);
}
figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
/* Placeholder shown until the screenshot file exists */
.shot {
  border: 1px dashed var(--line); border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 12px, #f2f4f7 12px, #f2f4f7 24px);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 24px;
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  position: relative; padding-left: 42px; margin: 14px 0;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Footer */
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; }
footer a { color: var(--muted); }

/* Part dividers (used by the comprehensive admin manual) */
.part-divider {
  margin: 40px 0 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), #0b3fa8);
  color: #fff;
  border-radius: 10px;
}
.part-divider .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .85; display: block; }
.part-divider .t { font-size: 18px; font-weight: 700; }
.part-divider .d { font-size: 13px; opacity: .9; margin-top: 2px; }

/* Cross-links between manuals */
.others { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.others a {
  text-decoration: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 10px 16px; color: var(--ink); font-size: 14px; font-weight: 600;
}
.others a:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .masthead h1 { font-size: 24px; }
}

@media print {
  body { background: #fff; }
  .masthead { background: var(--brand) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  section { break-inside: avoid; border-color: #ccc; }
  .toc, .others { display: none; }
}
