/* Ghid utilizare – stil instituțional accesibil (STS) */

.ghid-page { padding-bottom: 3rem; }

.ghid-hero {
  background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-navy-mid) 55%, var(--primary) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.ghid-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.ghid-hero h1 {
  color: #fff;
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}
.ghid-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  line-height: 1.65;
}
.ghid-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.ghid-hero__actions .btn-app-primary {
  background: #fff;
  color: var(--gov-navy);
  border-color: #fff;
}
.ghid-hero__actions .btn-app-outline-primary {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: transparent;
}
.ghid-hero__actions .btn-app-outline-primary:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.ghid-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.ghid-toc {
  position: sticky;
  top: calc(var(--gov-trust-h) + var(--eam-topbar-h) + 12px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}
.ghid-toc__title {
  margin: 0 0 0.65rem;
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ghid-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ghid-toc;
}
.ghid-toc li { margin: 0; }
.ghid-toc a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.4;
}
.ghid-toc a:hover,
.ghid-toc a:focus-visible {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  outline: none;
}
.ghid-toc a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  border-left-color: var(--primary);
}

.ghid-section {
  scroll-margin-top: calc(var(--gov-trust-h) + var(--eam-topbar-h) + 16px);
  margin-bottom: 2.25rem;
}
.ghid-section h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-soft);
}
.ghid-section h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
  color: var(--gov-navy);
}
.ghid-section p,
.ghid-section li {
  line-height: 1.7;
  color: var(--text);
}
.ghid-section ul,
.ghid-section ol {
  padding-left: 1.25rem;
}

.ghid-summary {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--primary-soft);
  border: 1px solid rgba(4, 92, 140, 0.15);
  border-radius: var(--radius-sm);
  margin: 1rem 0 1.25rem;
}
.ghid-summary__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ghid-summary strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gov-navy);
}
.ghid-summary p { margin: 0; font-size: 0.92rem; }

.ghid-callout {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border-left: 4px solid;
  font-size: 0.92rem;
}
.ghid-callout--info {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e3a8a;
}
.ghid-callout--warn {
  background: var(--status-pending-bg);
  border-color: #d97706;
  color: #92400e;
}
.ghid-callout--ok {
  background: var(--status-accepted-bg);
  border-color: #059669;
  color: #065f46;
}

.ghid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.ghid-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.ghid-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--gov-navy);
}
.ghid-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* Ilustrații ecran */
.ghid-figure { margin: 1.25rem 0 1.75rem; }
.ghid-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.ghid-mock {
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ghid-mock__chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
.ghid-mock__dots {
  display: flex;
  gap: 4px;
}
.ghid-mock__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: block;
}
.ghid-mock__url {
  flex: 1;
  font-size: 0.68rem;
  color: #64748b;
  background: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghid-mock__viewport {
  max-height: 520px;
  overflow: auto;
  background: var(--bg-page);
  scrollbar-width: thin;
}
.ghid-mock__shell {
  pointer-events: none;
  user-select: none;
  font-size: 0.88rem;
}
.ghid-mock__shell .container {
  max-width: none;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.ghid-mock__shell input,
.ghid-mock__shell select,
.ghid-mock__shell button,
.ghid-mock__shell textarea {
  pointer-events: none;
}
.ghid-mock__shell .hero h1 {
  font-size: 1.25rem;
}
.ghid-mock__shell .hero p {
  font-size: 0.82rem;
}
.ghid-mock__shell .eam-step-hero {
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.ghid-mock__shell .eam-step-hero__title {
  font-size: 1.1rem;
}
.ghid-mock__shell .eam-step-hero__track {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ghid-mock__shell .eam-kpi-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.ghid-mock__shell .kpi-tile .value {
  font-size: 0.95rem;
}
.ghid-mock__shell .auth-layout {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ghid-mock__shell .auth-layout__info {
  display: block;
  padding: 1rem;
  font-size: 0.82rem;
}
.ghid-mock__shell .auth-layout__info h2 {
  font-size: 1rem;
}
.ghid-mock__shell .auth-layout__form {
  padding: 0.85rem;
}
.ghid-mock__app-chrome .eam-topnav__link {
  pointer-events: none;
  cursor: default;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
}
.ghid-mock__app-chrome .eam-id-chip {
  transform: scale(0.88);
  transform-origin: right center;
}

.ghid-mock-signature {
  position: relative;
  min-height: 88px;
  background: #fff;
}
.ghid-mock-signature canvas {
  display: none;
}
.ghid-mock-signature__ink {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: #fff;
}
.ghid-mock-signature__ink svg {
  width: 100%;
  height: 56px;
}

/* Tutorial animat (simulare video) */
.ghid-tutorial-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--gov-trust-h) + var(--eam-topbar-h) + 16px);
}
.ghid-tutorial {
  max-width: 100%;
}
.ghid-tutorial__frame {
  background: #1e293b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
}
.ghid-tutorial__frame .ghid-mock__chrome {
  background: #0f172a;
  border-bottom-color: #334155;
  padding: 0.55rem 0.85rem;
}
.ghid-tutorial__frame .ghid-mock__url {
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}
.ghid-tutorial__screen-wrap {
  position: relative;
  background: var(--bg-page);
  min-height: 520px;
  max-height: 580px;
  overflow: hidden;
}
.ghid-tutorial__screen {
  position: relative;
  min-height: 520px;
  height: 100%;
}
.ghid-tutorial__scene {
  display: none;
  min-height: 520px;
  animation: ghidSceneIn 0.45s ease;
}
.ghid-tutorial__scene.is-active {
  display: block;
}
@keyframes ghidSceneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ghid-tutorial__main {
  padding: 0.65rem 1rem 1.25rem !important;
  max-height: 480px;
  overflow-y: auto;
  font-size: 0.95rem;
}
.ghid-tutorial__main .eam-step-hero {
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.ghid-tutorial__main .eam-step-hero__title {
  font-size: 1.25rem;
}
.ghid-tutorial__main .form-group label {
  font-size: 0.88rem;
}
.ghid-tutorial__main input,
.ghid-tutorial__main select {
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
}
.ghid-tutorial__main .btn-app {
  font-size: 0.88rem;
}
.ghid-tutorial__main .data-table {
  font-size: 0.85rem;
}
.ghid-tutorial__rec {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.ghid-tutorial__rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: ghidRecBlink 1.2s ease infinite;
}
@keyframes ghidRecBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.ghid-tutorial__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%230f172a' stroke='%23fff' stroke-width='1.2' d='M5 3l14 6.5-6.5 1.5-1.5 6.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
.ghid-tutorial__cursor.is-visible { opacity: 1; }
.ghid-tutorial__cursor.is-clicking {
  transform: scale(0.85);
}
.ghid-tutorial__field.is-active,
.ghid-type-field.is-typing {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-radius: 4px;
}
.ghid-type-field.is-typing {
  caret-color: var(--primary);
}
.ghid-tutorial__highlight-active {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.35) !important;
}
.ghid-tutorial__pulse {
  animation: ghidPulse 0.35s ease;
}
@keyframes ghidPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}
.ghid-tutorial__sig-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.ghid-tutorial__subtitle {
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 3.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.ghid-tutorial__subtitle-label {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.ghid-tutorial__subtitle-text {
  flex: 1;
  min-width: 0;
}
.ghid-tutorial__type-cursor {
  color: #38bdf8;
  animation: ghidCursorBlink 0.8s step-end infinite;
}
@keyframes ghidCursorBlink {
  50% { opacity: 0; }
}
.ghid-tutorial__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #0f172a;
  border-top: 1px solid #334155;
}
.ghid-tutorial__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.ghid-tutorial__btn:hover {
  background: var(--primary-hover);
}
.ghid-tutorial__btn.is-playing {
  background: #dc2626;
}
.ghid-tutorial__btn--text {
  width: auto;
  border-radius: 8px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  height: 36px;
}
.ghid-tutorial__timeline {
  flex: 1;
  min-width: 0;
}
.ghid-tutorial__timeline input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  margin-bottom: 0.35rem;
}
.ghid-tutorial__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.72rem;
  color: #64748b;
}
.ghid-tutorial__steps span {
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.ghid-tutorial__steps span:hover,
.ghid-tutorial__steps span.is-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.ghid-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--bg-card);
}
.ghid-faq summary {
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gov-navy);
  list-style: none;
}
.ghid-faq summary::-webkit-details-marker { display: none; }
.ghid-faq summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--primary);
}
.ghid-faq details[open] summary::after { content: '−'; }
.ghid-faq details[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--primary-soft);
}
.ghid-faq__body {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.ghid-a11y-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.ghid-a11y-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
}
.ghid-a11y-list li::before {
  content: '✓';
  color: #059669;
  font-weight: 800;
  margin-right: 0.4rem;
}

@media (max-width: 900px) {
  .ghid-layout { grid-template-columns: 1fr; }
  .ghid-toc {
    position: static;
    max-height: none;
  }
  .ghid-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0 0.5rem 0.5rem;
  }
  .ghid-toc a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    border-left: 1px solid var(--border);
    font-size: 0.78rem;
  }
  .ghid-mock__shell .auth-layout {
    grid-template-columns: 1fr;
  }
  .ghid-mock__shell .auth-layout__info { display: none; }
  .ghid-mock__shell .eam-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  .ghid-toc, .ghid-hero__actions, .app-splash, .eam-bottomnav, .ghid-tutorial-section { display: none !important; }
  .ghid-layout { grid-template-columns: 1fr; }
  .ghid-section { break-inside: avoid; }
  .ghid-mock { break-inside: avoid; }
}
