:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: #e5e7eb;
  --ok: #3dbf7d;
  --warn: #f5c151;
  --err: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.news-article-content {
  line-height: 1.65;
}

.news-article-content > * + * {
  margin-top: 0.85rem;
}

.news-article-content p {
  margin: 0.55rem 0;
}

.news-article-content ul,
.news-article-content ol {
  margin: 0.55rem 0 0.55rem 1.2rem;
}

.news-article-content li + li {
  margin-top: 0.25rem;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  margin: 1rem 0 0.45rem;
  line-height: 1.35;
  font-weight: 700;
}

.news-article-content img,
.news-article-content table {
  max-width: 100%;
  height: auto;
}

.news-article-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-article-content a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 600;
}

.news-article-content a.news-download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.news-article-content .elementor-button-wrapper {
  display: flex;
  justify-content: center;
}

.news-article-content a.news-download-button {
  width: auto !important;
  min-height: 40px;
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.news-article-content a.news-download-button .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-article-content a.news-download-button .elementor-button-text,
.news-article-content a.news-download-button .elementor-button-icon,
.news-article-content a.news-download-button .elementor-button-icon i {
  color: #ffffff !important;
}

.news-article-content a.news-download-button:hover {
  background: #1d4ed8;
}

.news-article-content a.news-download-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.news-list-item {
  min-height: 86px;
  padding: 0.8rem 1rem 0.9rem;
  border-color: #d7e2f0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.news-list-item-meta {
  margin: 0 0 0.34rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-list-item-title {
  margin: 0;
  color: #1f2937;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-item:hover {
  border-color: #b8cae7;
  background: #f8fbff;
}

.news-list-item.is-selected {
  border-color: #6ca5f1;
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.news-list-item.is-selected .news-list-item-meta {
  color: #355f9e;
}

.news-list-item.is-selected .news-list-item-title {
  color: #0f2b68;
  font-weight: 600;
}

.news-list-item:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 62px;
  border-bottom: 1px solid #0f244a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #0b2a5a;
  color: #fff;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-sub {
  font-size: 11px;
  color: #bfdbfe;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbeafe;
  font-size: 13px;
}

.pill {
  background: #12356d;
  color: #dbeafe;
  padding: 4px 8px;
  border-radius: 8px;
}

.pill.ok {
  background: rgba(61, 191, 125, 0.2);
  color: #93efbe;
}

.pill.err {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb0b0;
}

.workspace {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 62px);
}

.global-nav {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}

.global-nav-list {
  display: grid;
  gap: 8px;
}

.global-item {
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.global-item.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.global-item:hover {
  background: #f8fafc;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 12px;
  padding: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: calc(100vh - 80px);
  padding: 16px;
}

.panel h1,
.panel h2,
.panel h3 {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #0f172a;
}

.panel-head p {
  margin: 0 0 20px;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.step {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  font-size: 14px;
  color: #475569;
}

.step-btn {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.step.active {
  border-color: var(--accent);
  color: #1d4ed8;
  background: #eff6ff;
}

.step.completed {
  border-color: rgba(61, 191, 125, 0.45);
}

.step.blocked {
  border-color: rgba(255, 107, 107, 0.45);
}

.step-status {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: #334155;
}

.field input,
.field select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #0f172a;
  padding: 10px 12px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: #fff;
}

.btn-secondary {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compliance {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.compliance.ok {
  border-color: rgba(61, 191, 125, 0.45);
  background: rgba(61, 191, 125, 0.14);
}

.compliance.warn {
  border-color: rgba(245, 193, 81, 0.45);
  background: rgba(245, 193, 81, 0.14);
}

.compliance.err {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.14);
}

.hidden {
  display: none;
}

.card {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.tutor-card {
  border-left: 4px solid #3b82f6;
}

.list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
}

.list a {
  color: #1d4ed8;
}

.empty {
  color: var(--muted);
  font-size: 13px;
}
