/* Local LLM project surface */

.article-full ul.llm-orb-list {
  list-style: none;
  padding-inline-start: 1rem;
}

.article-full .llm-orb-list > li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-full .llm-orb-list > li > .hero-kula {
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.65em;
  height: 0.65em;
  margin: 0;
}

.article-full ol:not(.architecture-flow) {
  padding-inline-start: 2.5rem;
  list-style-position: outside;
}

.article-full ol.architecture-flow {
  margin-inline-start: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .article-full .llm-orb-list .hero-kula {
    animation: none;
  }
}

.project-hero {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.9rem;
  padding-block: 0;
}

/* The global landing-page rule adds 100px padding to every section.
   Article sections need a compact document rhythm instead. */
.article-full > section {
  margin-bottom: 0.75rem;
  padding-block: 0;
}

.article-full h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
}

.article-full h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.55rem;
}

.article-full p {
  margin-bottom: 1.15rem;
}

.article-full ul,
.article-full ol {
  margin-bottom: 1.25rem;
}

.article-full ol.business-decision-steps {
  padding-left: var(--space-9);
  list-style-position: outside;
}

.article-full .org-table-wrap {
  margin-top: 1.15rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
}

.article-full .org-compare-table th,
.article-full .org-compare-table td {
  padding: 0.58rem 0.65rem;
  line-height: 1.45;
}

.project-eyebrow {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-scope-note,
.technical-note,
.trust-boundary-note,
.article-note {
  margin: 1rem 0;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  line-height: 1.65;
}

.project-scope-note strong,
.technical-note strong,
.trust-boundary-note strong,
.article-note strong {
  color: #e0f2fe;
}

.technical-note--warning {
  border-color: rgba(251, 191, 36, 0.3);
  border-left-color: #fbbf24;
  background: rgba(120, 53, 15, 0.12);
}

.article-note {
  color: #94a3b8;
  font-size: 0.9rem;
}

.engineering-grid,
.risk-grid,
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.35rem;
}

.engineering-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.engineering-card,
.risk-grid > div,
.roadmap-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.14);
}

.engineering-card h3,
.risk-grid h3,
.roadmap-item h3 {
  margin: 0 0 0.55rem;
  color: #7dd3fc;
  font-size: 1rem;
}

.engineering-card p,
.risk-grid p,
.roadmap-item p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.engineering-card-number,
.roadmap-item > span,
.test-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap-item--done {
  border-color: rgba(34, 197, 94, 0.3);
}

.roadmap-item--done > span {
  color: #86efac;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.architecture-flow li {
  position: relative;
  min-width: 0;
  padding: 0.78rem 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  text-align: center;
}

.architecture-flow li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -0.55rem;
  z-index: 2;
  color: #38bdf8;
  transform: translateY(-50%);
}

.architecture-flow strong,
.architecture-flow small {
  display: block;
}

.architecture-flow strong {
  margin-top: 0.45rem;
  color: #e2e8f0;
  font-size: 0.8rem;
}

.architecture-flow small {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.67rem;
  line-height: 1.35;
}

.flow-index {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  color: #082f49;
  background: #67e8f9;
  font-size: 0.75rem;
  font-weight: 800;
}

.flow-boundary {
  border-color: rgba(251, 191, 36, 0.42) !important;
}

.spec-grid,
.result-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.25rem;
}

.spec-grid > div,
.result-grid > div,
.metric-grid > div {
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
}

.spec-grid span,
.result-grid span,
.metric-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-grid strong,
.result-grid output,
.metric-grid span {
  display: block;
  overflow-wrap: anywhere;
  color: #e0f2fe;
  font-size: 0.92rem;
  font-weight: 700;
}

.test-panel {
  margin: 1.2rem 0;
  padding: clamp(0.85rem, 2vw, 1.1rem);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.64);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.2);
}

.test-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.test-panel-header h3,
.test-panel .test-kicker {
  margin-top: 0;
}

.test-panel h4 {
  margin: 1.1rem 0 0.55rem;
  color: #dbeafe;
  font-size: 1rem;
}

.test-panel > ol {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 1.35rem;
  padding: 0;
  list-style: none;
  counter-reset: test-step;
}

.test-panel > ol > li {
  position: relative;
  min-height: 2.3rem;
  padding: 0.55rem 0.75rem 0.55rem 3rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  line-height: 1.55;
  counter-increment: test-step;
}

.test-panel > ol > li::before {
  content: counter(test-step);
  position: absolute;
  top: 0.48rem;
  left: 0.65rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  color: #082f49;
  background: #67e8f9;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .architecture-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-flow li::after {
    display: none;
  }

  .engineering-grid--three,
  .spec-grid,
  .result-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .project-hero {
    margin-top: 1.5rem;
  }

  .article-full h2 {
    margin-top: 2rem;
  }

  .engineering-grid,
  .engineering-grid--three,
  .risk-grid,
  .roadmap,
  .architecture-flow,
  .spec-grid,
  .result-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .engineering-card,
  .risk-grid > div,
  .roadmap-item,
  .spec-grid > div,
  .result-grid > div,
  .metric-grid > div {
    padding: 0.82rem 0.9rem;
  }

  .test-panel-header {
    flex-direction: column;
  }

  .org-table-wrap {
    margin-inline: -0.35rem;
  }

  #cyber-training-widget {
    bottom: 5.5rem;
  }

  #cyber-training-widget .widget-panel {
    max-width: min(20rem, calc(100vw - 2rem));
  }
}

.project-image {
  width: min(100%, 1200px);
  margin: 2rem auto;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.2);
}

.project-image figcaption {
  margin-top: 0.75rem;
  color: var(--color-text-muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.llm-assistant {
  margin: 2rem 0 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.72));
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
}

.llm-assistant h3 {
  margin-bottom: 1.25rem;
  color: #67e8f9;
  letter-spacing: 0.02em;
}

.article-full h3.llm-centered-header {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto 1.25rem;
  text-align: center;
  line-height: 1.7;
  color: #dbeafe;
}

.article-full h3.llm-centered-header .hero-kula {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.26em;
  vertical-align: middle;
}

.llm-question-list {
  display: grid;
  gap: 0.7rem;
}

.llm-question {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 6px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  font: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.llm-question:hover,
.llm-question:focus-visible {
  border-color: #67e8f9;
  background: rgba(14, 116, 144, 0.28);
  transform: translateX(3px);
}

.llm-question:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

.llm-response {
  min-height: 12rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.58);
  white-space: pre-wrap;
  line-height: 1.7;
}

.llm-status {
  margin: 0;
  color: #cbd5e1;
}

@media (max-width: 600px) {
  .llm-assistant {
    margin-inline: -0.25rem;
  }

  .llm-response {
    min-height: 10rem;
    padding: 1rem;
  }
}
.llm-ai-disclosure {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}

.llm-ai-disclosure::before {
  content: "AI · ";
  color: #67e8f9;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Styl wykresu czasu generowania zbliżony do wykresów w GRC */
.perf-chart-module {
  width: min(94%, 900px);
  max-width: 900px;
  margin: 2rem auto 1.4rem;
  padding: 1rem 1rem 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}

.perf-chart-inner {
  position: relative;
  width: 100%;
  height: 320px;
  padding: 0.5rem 0.25rem 0.25rem;
}

.perf-chart-caption {
  margin: 0 0 0.85rem;
  color: #dbeafe;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.llm-chart-note {
  margin: 0.2rem auto 1.5rem;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
}

.llm-chart-note strong {
  color: #7dd3fc;
}

@media (max-width: 600px) {
  .perf-chart-module {
    width: min(100%, 900px);
    padding: 0.8rem 0.5rem 0.6rem;
  }

  .perf-chart-inner {
    height: 260px;
    padding: 0.25rem 0;
  }

  .perf-chart-caption {
    font-size: 0.92rem;
  }
}

/* Tabela porównawcza TCO */

/*
Styl dedykowany dla strony Lokalny LLM i Kalkulatora TCO
*/

body {
  background: var(--color-bg-base, #0f172a);
  color: var(--color-text-primary, #e2e8f0);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tco-breakdown-panel {
  max-width: 1180px;
  margin: 2rem auto 1.5rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.86);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}

.tco-panel-header {
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tco-panel-header h2 {
  margin: 0 0 0.45rem;
  color: #f8fafc;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.tco-panel-header p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 100%;
}

.tco-panel-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tco-controls,
.tco-chart-panel {
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
}

.tco-controls h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #f8fafc;
  font-size: 1.2rem;
}

.tco-control {
  margin-bottom: 1rem;
}

.tco-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  color: #dbeafe;
  font-size: 0.95rem;
}

.tco-control-header label {
  color: #dbeafe;
  font-weight: 500;
}

.tco-control-header span {
  color: #7dd3fc;
  font-weight: 700;
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: #6366f1;
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  border-radius: 6px;
  height: 6px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.tco-break-result {
  margin-top: 1.1rem;
  padding: 0.9rem 0.8rem 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  text-align: center;
}

.tco-break-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#tco-breakeven {
  color: #fbbf24;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
}

.tco-chart-panel {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  height: 100%;
}

.tco-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tco-chart-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.18rem;
  font-weight: 700;
}

.tco-model-tag {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.72rem;
  white-space: nowrap;
}

.tco-chart-container {
  position: relative;
  flex: 1;
  height: 400px;
  min-height: 400px;
  width: 100%;
  background: rgba(3, 7, 18, 0.38);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  padding: 0.7rem 0.8rem 0.35rem;
  box-sizing: border-box;
  overflow: hidden;
}

.tco-chart-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.tco-interpretation-box {
  margin-top: 1.5rem;
  padding: 1.3rem 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.86);
}

.tco-interpretation-box h2 {
  margin: 0 0 1rem;
  color: #f8fafc;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.tco-interpretation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tco-card {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.tco-card h3 {
  margin: 0 0 0.55rem;
  color: #7dd3fc;
  font-size: 1rem;
}

.tco-card p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.6;
  font-size: 0.93rem;
}

@media (max-width: 900px) {
  .tco-panel-grid,
  .tco-interpretation-grid {
    grid-template-columns: 1fr;
  }

  .tco-chart-panel {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .tco-breakdown-panel,
  .tco-interpretation-box {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .tco-controls,
  .tco-chart-panel {
    padding: 0.9rem;
  }

  .tco-control-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Compact vertical rhythm for the technical case study. */
.article-full .project-image {
  margin-top: 1.15rem;
  margin-bottom: 1.25rem;
}

.article-full .llm-assistant {
  margin-top: 1.15rem;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.article-full .perf-chart-module {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

.article-full .llm-chart-note {
  margin-bottom: 1rem;
}

.article-full .quote {
  margin: 1rem 0;
  padding-block: 0.75rem;
}

.article-full .faq-section {
  margin-top: 2.5rem;
}

.article-full .faq-section h2 {
  margin-bottom: 1.25rem;
}
.test-panel .orion-source-code {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
  border: 1px solid #334155;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  background: #080f1e;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.65;
}

.test-panel .orion-source-code code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: Consolas, monospace;
}
