/* Astro Kalendarz – hub & shared UI tweaks
   Loaded separately so it works in production even when child uses style-min.css. */

/* Hub hero: readable even if theme adds hero-light-title */
.ak-hub-hero .page-title,
.ak-hub-hero .taxonomy-description,
.ak-hub-hero .taxonomy-description p {
  color: #282828 !important;
}

.ak-hub-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* Ensure CTA buttons are readable on light hero */
.ak-hub-cta .button {
  background: #282828;
  border-color: #282828;
  color: #fff;
}
.ak-hub-cta .button:hover {
  background: #181818;
  border-color: #181818;
  color: #fff;
}
.ak-hub-cta .button.outlined {
  background: transparent;
  color: #282828;
  border: 2px solid #282828;
}
.ak-hub-cta .button.outlined:hover {
  background: rgba(0,0,0,.04);
  color: #181818;
  border-color: #181818;
}

.ak-hub-content {
  padding-top: 24px;
  padding-bottom: 60px;
}

.ak-hub .ak-mobile-nav-spacer { height: 64px; }
.ak-hub .ak-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  padding-left: calc(12px + 60px); /* reserve space for cookie button on the left */
  backdrop-filter: blur(6px);
}
.ak-hub .ak-mobile-nav__trigger {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}
.ak-hub .ak-mobile-nav__trigger::after { content: '▴'; color: var(--primary-color, #b9a16b); }

.ak-hub .ak-sheet { position: fixed; inset: 0; z-index: 20000; display: none; }
.ak-hub .ak-sheet.is-open { display: block; }
.ak-hub .ak-sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ak-hub .ak-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  transform: translateY(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.ak-hub .ak-sheet.is-open .ak-sheet__panel { transform: translateY(0); }
.ak-hub .ak-sheet__header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ak-hub .ak-sheet__hub { text-decoration: none; color: var(--primary-color, #b9a16b); font-weight: 800; }
.ak-hub .ak-sheet__close {
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
}
.ak-hub .ak-sheet__body { padding: 16px; overflow: auto; -webkit-overflow-scrolling: touch; }
.ak-hub .ak-sheet__field { margin-bottom: 14px; }
.ak-hub .ak-sheet__field label { display: block; font-size: .82rem; font-weight: 800; color: #666; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.ak-hub .ak-sheet__select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
  color: #111;
}
.ak-hub .ak-sheet__select:focus { outline: none; border-color: var(--primary-color, #b9a16b); box-shadow: 0 0 0 2px rgba(185,161,107,0.18); }
.ak-hub .ak-sheet__details { border: 1px solid rgba(0,0,0,.10); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.ak-hub .ak-sheet__details > summary { cursor: pointer; font-weight: 800; color: #111; }
.ak-hub .ak-sheet__details > summary::-webkit-details-marker { display: none; }
.ak-hub .ak-sheet__details > summary::after { content: '▾'; float: right; color: var(--primary-color, #b9a16b); }
.ak-hub .ak-sheet__details[open] > summary::after { content: '▴'; }
.ak-hub .ak-sheet__go {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #282828;
  border-radius: 14px;
  background: #282828;
  color: #fff;
  font-weight: 900;
}
.ak-hub .ak-sheet__go:active { transform: translateY(1px); }

.ak-section { margin-top: 34px; }
.ak-section:first-child { margin-top: 0; }

.ak-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ak-section-sub { color: #666; font-size: 0.95rem; }
.ak-section-actions { margin-top: 14px; display: flex; justify-content: flex-start; }

/* Centered "Więcej →" link (replaces full-month button) */
.ak-more-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.ak-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: #fff;
  color: var(--primary-color, #b9a16b);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.08);
}
.ak-more-link:hover {
  color: var(--primary-color, #b9a16b);
  background: #fff;
  border-color: rgba(0,0,0,.14);
}
.ak-more-arrow { line-height: 1; }

/* Data source note (hub + month/year pages) */
.ak-data-source {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  color: #666;
  line-height: 1.6;
}
.ak-data-source p { margin: 0; }
.ak-data-source__title {
  margin: 0 0 8px 0;
  font-weight: 800;
  color: #111;
}

.ak-data-source--full {
  font-size: .9rem;
  margin-top: 26px;
  padding-top: 14px;
}
.ak-data-source--full .ak-data-source__title {
  display: inline;
  margin: 0;
  font-weight: 800;
}
.ak-data-source--full p {
  display: inline;
}

.ak-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 991px) { .ak-cards { grid-template-columns: 1fr; } }

.ak-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255,255,255,.7);
}
.ak-card-title { font-weight: 800; margin-bottom: 6px; }
.ak-card-text { color: #666; line-height: 1.45; }

.ak-year-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ak-year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  min-width: 64px;
}
.ak-year-chip:hover { border-color: var(--primary-color, #b9a16b); color: var(--primary-color, #b9a16b); }

/* Hub aside */
.ak-hub-aside { margin-top: 34px; }
@media (min-width: 992px) {
  .ak-hub-aside { margin-top: 0; }
  .ak-hub-sticky { position: sticky; top: 110px; }
}
.ak-hub-panel {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  padding: 14px;
  margin-bottom: 12px;
}
.ak-hub-panel-title { font-weight: 900; margin-bottom: 10px; }
.ak-hub-toc { margin: 0; padding-left: 18px; }
.ak-hub-toc a { text-decoration: none; }
.ak-hub-toc a:hover { color: var(--primary-color, #b9a16b); }

/* Upcoming/preview lists */
.ak-list { margin: 0; padding: 0; list-style: none; }
.ak-list .ak-item { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.ak-item-meta { color: #666; font-size: .92rem; }
.ak-item-date { font-weight: 700; color: #111; }
.ak-item-time { font-weight: 400; color: #666; }
.ak-item-type { font-weight: 400; }
.ak-item-title { margin-top: 6px; }
.ak-item-score { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.ak-score { flex: 1; height: 8px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.ak-score__fill { display: block; height: 100%; background: var(--primary-color, #b9a16b); }
.ak-score__label { font-size: .9rem; color: #666; min-width: 48px; text-align: right; }
.ak-item-meta-secondary { margin-top: 8px; }

/* Zodiac legend */
.ak-zodiac-legend { margin-top: 16px; }
.ak-zodiac-title { font-weight: 800; margin: 10px 0 10px; }
.ak-zodiac-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (max-width: 991px) { .ak-zodiac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-zodiac-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
}
.ak-zodiac-glyph { font-size: 1.15rem; color: #111; }
.ak-zodiac-name { font-weight: 700; color: #282828; }

/* FAQ */
.ak-faq { margin-top: 12px; padding-bottom: 20px; }

/* Make hub FAQ look like Rank Math FAQ: separators + plus/minus */
.ak-faq-item {
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.ak-faq-item > summary {
  list-style: none;
}
.ak-faq-item > summary::-webkit-details-marker {
  display: none;
}

.ak-faq-q {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ak-faq-q::before {
  content: '+';
  flex: 0 0 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
}
.ak-faq-item[open] > .ak-faq-q::before {
  content: '–';
}

.ak-faq-a {
  margin: 0;
  padding: 0 0 14px 28px; /* align with question text after + */
  color: #666;
  line-height: 1.55;
}

/* Back link on month/year pages */
.ak-back-to-hub {
  display: inline-flex;
  margin-bottom: 10px;
  text-decoration: none;
  color: #666;
  font-size: .95rem;
}
.ak-back-to-hub:hover { color: var(--primary-color, #b9a16b); }

