/* Hover rules — derived from style-hover attributes in design files */

/* Nav links */
.eac-navlinks a:hover { color: var(--ink-900) !important; }
.eac-nav-cta:hover { background: var(--ink-700) !important; }

/* Footer links */
footer a:hover { color: var(--paper) !important; }

/* Inline underline links (light bg) */
.eac-link:hover { border-color: var(--ink-900) !important; }

/* Inline underline links (dark bg) */
.eac-link-dark:hover { color: var(--paper) !important; border-color: var(--paper) !important; }

/* Primary CTA button */
.eac-btn-primary:hover { background: var(--ink-700) !important; }

/* Outline button */
.eac-btn-outline:hover { border-color: var(--ink-900) !important; }

/* Card CTA on dark bg */
.eac-btn-paper:hover { background: var(--paper-2) !important; }

/* Image placeholder */
.eac-img-placeholder {
  background: var(--ink-300);
  display: block;
  width: 100%;
}

/* Form fields */
.eac-field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  padding: 13px 16px;
  transition: border-color .24s;
}
.eac-field:focus { border-color: var(--ink-900); }
.eac-field:focus:not(:focus-visible) { outline: none; }
.eac-field:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.eac-field::placeholder { color: var(--ink-500); }

/* Cennik spec table */
.eac-spec-wrap { overflow-x: auto; }
.eac-spec-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.eac-spec-table th,
.eac-spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ink-300); vertical-align: top; line-height: 1.45; }
.eac-spec-table th { font-size: 13px; font-weight: 600; }
.eac-spec-table thead th { color: var(--ink-900); border-bottom: 1px solid var(--ink-900); }
.eac-spec-table tbody th { font-weight: 500; color: var(--ink-900); }
.eac-spec-table td { color: var(--ink-700); }
.eac-spec-table .eac-col-hl { background: var(--paper-2); }

/* Metoda comparison table */
.eac-wtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.eac-wtable th,
.eac-wtable td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--ink-300); vertical-align: top; line-height: 1.5; }
.eac-wtable thead th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; border-bottom: 1px solid var(--ink-900); }
.eac-wtable tbody th { font-weight: 600; color: var(--ink-900); width: 160px; }
.eac-wtable td { color: var(--ink-700); }

/* Ranking table */
.eac-rank-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eac-rank-table th,
.eac-rank-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ink-300); vertical-align: middle; line-height: 1.4; }
.eac-rank-table thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; }
.eac-rank-table tbody tr:hover td { background: var(--paper-2); }

.eac-rank-up   { color: var(--rank-up); }
.eac-rank-down { color: var(--rank-down); }
.eac-rank-flat { color: var(--rank-flat); }
.eac-rank-gold   { color: var(--rank-gold); }
.eac-rank-silver { color: var(--rank-silver); }
.eac-rank-bronze { color: var(--rank-bronze); }

/* Grid utility classes */
.eac-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.eac-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.eac-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

/* Bielik local AI notes */
.eac-bielik-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 13px 16px;
  border: 1px solid var(--ink-300);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
}
.eac-bielik-note--dark {
  border-color: var(--border-on-dark);
  background: rgb(255 255 255 / 0.08);
}
.eac-bielik-note__logo,
.eac-bielik-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--paper);
  border-radius: 6px;
}
.eac-bielik-note__logo {
  width: 46px;
  height: 34px;
  padding: 4px 6px;
}
.eac-bielik-note__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink-900);
  text-decoration: none;
}
.eac-bielik-note--dark .eac-bielik-note__brand {
  color: var(--paper);
}
.eac-bielik-note__logo img,
.eac-bielik-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.eac-bielik-note--dark .eac-bielik-note__logo img {
  filter: none;
  opacity: 1;
}
.eac-bielik-note__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-700);
}
.eac-bielik-note--dark .eac-bielik-note__text {
  color: var(--text-on-dark-muted);
}
.eac-bielik-note__text strong {
  color: var(--ink-900);
  font-weight: 700;
}
.eac-bielik-note__brand strong {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}
.eac-bielik-note__text span {
  display: block;
}
.eac-bielik-note--dark .eac-bielik-note__text strong {
  color: var(--paper);
}
.eac-bielik-note__text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.eac-bielik-footer {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}
.eac-bielik-footer__logo {
  width: 44px;
  height: 30px;
  padding: 4px 6px;
}
.eac-bielik-footer__logo img {
  width: 100%;
  height: 100%;
  filter: none;
  opacity: 1;
}
body.page-home .eac-bielik-footer__logo img,
body.page-footer-light .eac-bielik-footer__logo img {
  filter: none;
  opacity: 1;
}
@media (max-width: 640px) {
  .eac-bielik-note {
    align-items: flex-start;
    border-radius: 18px;
  }
}
