/* /aktsii/style.css — стилі для /aktsii/{slug}/ spoke-сторінок. */
/* Палітра узгоджена з /aktsii-ukrainskyh-kompaniy/ і скелетоном сайту. */

.aktsii-page {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .aktsii-page { padding: 0 16px; margin: 12px auto 32px; }
}

.aktsii-page--404 {
  text-align: center;
  padding-top: 64px;
}
.aktsii-page--404 h1 { font-size: 2rem; margin-bottom: 12px; }

.aktsii-breadcrumbs {
  font-size: 0.92rem;
  color: #64748b;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.aktsii-breadcrumbs a {
  color: #0ea5e9;
  text-decoration: none;
}
.aktsii-breadcrumbs a:hover { text-decoration: underline; }
.aktsii-breadcrumbs .bc-sep { color: #cbd5e1; }

.aktsii-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 48px 32px;
  border-radius: 16px;
  margin: 16px 0 24px;
}
.aktsii-hero h1 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.aktsii-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 760px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.aktsii-quote {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.aktsii-quote__price { display: flex; align-items: baseline; gap: 12px; }
.aktsii-price {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.aktsii-change {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.aktsii-change.is-up   { background: rgba(34,197,94,.18);  color: #4ade80; }
.aktsii-change.is-down { background: rgba(239,68,68,.18);  color: #f87171; }
.aktsii-change.is-flat { background: rgba(255,255,255,.10); color: #cbd5e1; }
.aktsii-quote__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  opacity: 0.86;
}
.aktsii-quote__meta strong { font-weight: 700; opacity: 0.95; }

@media (max-width: 720px) {
  .aktsii-hero { padding: 32px 20px; border-radius: 12px; }
  .aktsii-hero h1 { font-size: 1.55rem; }
  .aktsii-lead { font-size: 1rem; }
  .aktsii-price { font-size: 1.85rem; }
  .aktsii-change { font-size: 0.95rem; }
  .aktsii-quote { gap: 12px; }
  .aktsii-quote__meta { gap: 10px; font-size: 0.88rem; }
}

.aktsii-section {
  background: #fff;
  border: 1px solid #e1e5ec;
  border-radius: 12px;
  padding: 24px 32px;
  margin: 16px 0;
}
.aktsii-section > h2:first-child { margin-top: 0; }
.aktsii-section h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 16px;
}
@media (max-width: 720px) {
  .aktsii-section { padding: 18px 18px; border-radius: 10px; }
  .aktsii-section h2 { font-size: 1.25rem; }
}

/* Chart */
.aktsii-chart-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.aktsii-chart-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: .15s;
}
.aktsii-chart-btn:hover:not(:disabled) { background: #e2e8f0; }
.aktsii-chart-btn.is-active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}
.aktsii-chart-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.aktsii-chart-wrapper {
  position: relative;
  min-height: 350px;
}
#aktsii-price-chart {
  width: 100% !important;
  max-height: 350px;
}
.aktsii-chart-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  pointer-events: none;
}
.aktsii-chart-msg[hidden] { display: none; }

/* Fundamentals */
.aktsii-fundamentals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.aktsii-fund-col h3 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: #0f172a;
}
.aktsii-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.4;
}
.aktsii-metric:last-child { border-bottom: none; }
.aktsii-metric__name {
  color: #64748b;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.aktsii-metric__value {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  text-align: right;
}
.aktsii-metric__value small { font-weight: 500; color: #64748b; font-size: 0.82rem; }
.aktsii-metric__value .metric-text {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 880px) {
  .aktsii-fundamentals { grid-template-columns: 1fr; gap: 0; }
  .aktsii-fund-col { padding-top: 16px; border-top: 1px solid #e2e8f0; }
  .aktsii-fund-col:first-child { padding-top: 0; border-top: none; }
}

.aktsii-data-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

/* Tooltips */
.akt-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  position: relative;
  outline: none;
}
.akt-tip:focus,
.akt-tip:hover { background: #cbd5e1; color: #0f172a; }

.akt-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 400;
  width: 240px;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.akt-tip:hover::after,
.akt-tip:focus::after,
.akt-tip:active::after { opacity: 1; }

@media (max-width: 720px) {
  .akt-tip::after { width: 180px; font-size: 0.78rem; }
}

/* Content placeholder */
.aktsii-content-placeholder {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}
.aktsii-content-placeholder p { margin: 0 0 12px; }
.aktsii-content-placeholder a { color: #0ea5e9; }

/* Контентні секції (sections з kyivstar.php і подібних) */
.aktsii-content-body {
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.65;
}
.aktsii-content-body > *:first-child { margin-top: 0; }
.aktsii-content-body > *:last-child  { margin-bottom: 0; }
.aktsii-content-body p { margin: 0 0 14px; }
.aktsii-content-body ul,
.aktsii-content-body ol { margin: 0 0 14px; padding-left: 22px; }
.aktsii-content-body li { margin-bottom: 6px; }
.aktsii-content-body strong { font-weight: 700; color: #0f172a; }
.aktsii-content-body a {
  color: #0ea5e9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aktsii-content-body a:hover { color: #0284c7; }

/* FAQ accordion (native <details>/<summary>) */
.aktsii-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px 18px;
  margin-bottom: 10px;
  transition: background .15s, border-color .15s;
}
.aktsii-faq-item:last-child { margin-bottom: 0; }
.aktsii-faq-item[open] {
  background: #fff;
  border-color: #cbd5e1;
}
.aktsii-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  outline: none;
  line-height: 1.4;
}
.aktsii-faq-item summary::-webkit-details-marker { display: none; }
.aktsii-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform .15s;
  line-height: 1;
}
.aktsii-faq-item[open] summary::after {
  content: '−';
}
.aktsii-faq-item summary:hover { color: #0ea5e9; }
.aktsii-faq-item summary:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 4px;
  border-radius: 4px;
}
.aktsii-faq-answer {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.6;
}
.aktsii-faq-answer p { margin: 0; }

@media (max-width: 720px) {
  .aktsii-faq-item { padding: 10px 14px; }
  .aktsii-faq-item summary { font-size: 0.95rem; }
}

/* CTA */
.aktsii-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.aktsii-cta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.aktsii-cta-logo {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #0f172a;
}
.aktsii-cta-card p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}
.aktsii-cta-btn {
  display: inline-block;
  background: #0ea5e9;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: .15s;
}
.aktsii-cta-btn:hover { background: #0284c7; }

@media (max-width: 720px) {
  .aktsii-cta-grid { grid-template-columns: 1fr; }
}

/* Historical financials block */
.aktsii-hist-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.aktsii-hist-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: .15s;
}
.aktsii-hist-btn:hover { background: #e2e8f0; }
.aktsii-hist-btn.is-active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}
.aktsii-hist-chart-wrap {
  position: relative;
  min-height: 280px;
  margin-bottom: 20px;
}
#aktsii-hist-chart {
  width: 100% !important;
  max-height: 280px;
}

.aktsii-hist-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.aktsii-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}
.aktsii-hist-table thead th {
  text-align: right;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.aktsii-hist-table thead th.is-ttm {
  background: #e0f2fe;
  color: #0369a1;
}
.aktsii-hist-table .aktsii-hist-th-metric { text-align: left; }
.aktsii-hist-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.aktsii-hist-table .aktsii-hist-td-metric {
  text-align: left;
  color: #64748b;
  font-weight: 500;
  white-space: normal;
}
.aktsii-hist-table tbody tr:last-child td { border-bottom: none; }
.aktsii-hist-table td.is-ttm {
  background: #f0f9ff;
  font-weight: 700;
  color: #0f172a;
}
.aktsii-hist-table td.is-negative { color: #dc2626; }
.aktsii-hist-table td.is-ttm.is-negative { color: #dc2626; background: #fef2f2; }

@media (max-width: 720px) {
  .aktsii-hist-table { font-size: 0.88rem; min-width: 420px; }
  .aktsii-hist-table thead th,
  .aktsii-hist-table tbody td { padding: 8px 10px; }
}

/* Back link */
.aktsii-data-source {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
}
.aktsii-section--back {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 12px;
}
.aktsii-back-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.aktsii-back-link:hover { text-decoration: underline; }


/* ETF: топ-10 holdings таблиця + порівняльна таблиця (ТЗ #9б) */
.aktsii-holdings-intro {
  color: #475569;
  margin-bottom: 1rem;
}
.aktsii-holdings-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.aktsii-holdings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.aktsii-holdings-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  font-size: 0.92rem;
  background: #f8fafc;
}
.aktsii-holdings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
.aktsii-holdings-table tr:last-child td { border-bottom: none; }
.aktsii-holdings-table .text-right { text-align: right; }
.aktsii-holdings-table .ticker-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: #64748b;
}

.aktsii-comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}
.aktsii-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.aktsii-comparison-table th,
.aktsii-comparison-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.93rem;
}
.aktsii-comparison-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}
.aktsii-comparison-table td:first-child { font-weight: 600; color: #475569; }

/* ETF Параметри фонду — 2 колонки на повну ширину на десктопі (мобілка → 1кол з основного rule) */
@media (min-width: 881px) {
  .aktsii-section--fund-params .aktsii-fundamentals {
    grid-template-columns: 1fr 1fr;
  }
}
