/*
 Theme Name:  KYC Navigation Theme
 Theme URI:   https://kycnavigation.net
 Description: Motyw potomny pod mapę krajów i tabelę linków (bez cookies).
 Author:      Wieża
 Author URI:  https://wieza.pl/
 Template:    twentytwentyfive
 Version:     1.0.0
 License:     GPLv2 or later
 Text Domain: kycnavigation-child
*/


/* --- Styles for links table --- */
html { scroll-behavior: smooth; }

table.links-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.links-table th, .links-table td {
  border-bottom: 1px solid #ddd;
  padding: 8px;
}
.links-table th {
  background: #f7f7f7;
  text-align: left;
}


/* IGM Free – podświetlenie kotwicy po skoku */
html{scroll-behavior:smooth}
.igm-pulse{ animation: igmPulseBg 1.2s ease-out; }
@keyframes igmPulseBg{
  0%{background:rgba(255,234,167,0)}
  25%{background:rgba(255,234,167,.55)}
  100%{background:rgba(255,234,167,0)}
}


/* offset dla sticky/fixed header przy przewijaniu do kotwicy w tabeli */
table.links-table td[id] { scroll-margin-top: 84px; } /* podmień 84px na realną wysokość nagłówka */


/* Nagłówek/Flaga */
.sanction-flag { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.sanction-flag img { width:32px; height:22px; object-fit:cover; border:1px solid #ddd; border-radius:3px; }
.sanction-country { margin:0; font-size:14px; }

/* Lista sankcji */
.sanction-list { list-style:none; padding:0; margin:0; }
.sanction-row { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid #e6e6e6; }
.sanction-icon { width:24px; height:24px; position:relative; }
.sanction-text { font-size:13px; line-height:1.35; }
.sanction-cat { font-size:12px; font-weight:700; }

/* Kolory po slugach kategorii (financial/military/travel/other) */
.sanction-cat-financial .sanction-cat { color:#0d6efd; }  /* niebieski */
.sanction-cat-military  .sanction-cat { color:#dc3545; }  /* czerwony */
.sanction-cat-travel    .sanction-cat { color:#198754; }  /* zielony */
.sanction-cat-other     .sanction-cat { color:#6c757d; }  /* szary */


#kyc-sanctions-panel {
  border: 1px solid #e5e5e5;
  background: #fff;
  margin-top: 12px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
#kyc-sanctions-panel .kyc-panel__inner {
  font-size: 13px;  padding: 12px 14px;
  min-height: 80px;
}
#kyc-sanctions-panel .loading::after {
  content: 'Ładowanie…';
  color: #666;
}
footer {
    background-color: #111111 !important;
}
p, span, td, tr, a, small {
  font-size: 21px !important;
}
#wpadminbar a, #wpadminbar span {
  font-size: 12px !important;
}
.wp-block-site-title a {
  font-size: 42px !important;
}
.wp-block-navigation__container a span{
  font-size: 18px !important;
}
.wp-container-core-post-content-is-layout-4f9f0532 > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 74.7%;
    margin-left: auto !important;
    margin-right: auto !important;
}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 74.7%;
    margin-left: auto !important;
    margin-right: auto !important;
}
:root :where(.is-layout-constrained) > :first-child {
    padding-top: 10px !important;
}
.single-format-standard main {
    margin-top: 20px !important;
}
footer p {
    text-align: right;
    font-size: 18px !important;
}


/* Mobile – do 991px: pełna szerokość */
@media (max-width: 991px) {
  .wp-container-core-post-content-is-layout-4f9f0532 > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
  .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  footer.wp-block-template-part p {
    margin: 0px !important;
    text-align: left;
}
}