/* Dostosowania elementów generowanych przez WordPress. */

[hidden] {
  display: none !important;
}

.admin-bar .site-header {
  top: 32px;
}

.main-nav .main-menu {
  display: flex;
  align-items: center;
  gap: clamp(19px, 2.3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .menu-item {
  position: relative;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  display: grid;
  min-width: 210px;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav .menu-item:hover > .sub-menu,
.main-nav .menu-item:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-nav .sub-menu a {
  display: block;
  padding: 8px 10px;
}

.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  right: 0;
  left: 0;
  transform: scaleX(1);
}

.search-form .search-field {
  margin-top: 0;
}

.sidebar-search .search-form,
.sidebar-search .search-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin: 0;
}

.sidebar-search .search-field input {
  min-height: 46px;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.sidebar-search .search-field .button {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
  font-size: 0;
}

.sidebar-search .search-field .button::before {
  content: "⌕";
  font-size: 23px;
}

.author-avatar {
  overflow: hidden;
  padding: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 17px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.share-links a:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.category-icon.coral,
.tag-label.coral {
  color: var(--ink);
  background: var(--pink);
}

.post-content > :first-child {
  margin-top: 0;
}

.post-content h3,
.post-content h4 {
  font-family: var(--display);
  line-height: 1.25;
}

.post-content h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.post-content ul,
.post-content ol {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  padding-left: 24px;
}

.post-content li::marker {
  color: var(--pink);
  font-family: var(--display);
  font-weight: 900;
}

.post-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(110deg, #fff0f3, #fff8f3);
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content img {
  height: auto;
  border-radius: 14px;
}

.post-content a {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wp-caption,
.post-content figure {
  max-width: 100%;
}

.wp-caption-text,
.post-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-links {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

.related-grid .related-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8;
}

.month-strip a {
  display: grid;
  min-height: 38px;
  flex: 1 0 auto;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #4f4a46;
  font-size: 11px;
  white-space: nowrap;
}

.month-strip a.active {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 4px 11px rgba(17, 17, 17, 0.16);
}

.calendar-toolbar a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
}

.calendar-toolbar a:hover {
  background: var(--teal-soft);
}

.calendar-day > strong:first-child {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.calendar-day.is-empty {
  color: #c9c3bd;
  background: rgba(249, 247, 243, 0.55);
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--teal);
}

.calendar-day .calendar-event {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 5px 6px;
  overflow: hidden;
  border-radius: 5px;
  color: #5f1530;
  background: #ffc4d3;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-list > a {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.calendar-event-list > a:hover {
  border-color: var(--teal);
}

.calendar-event-list > a > span {
  display: grid;
  gap: 3px;
}

.calendar-event-list > a > i {
  font-style: normal;
}

.archive-main,
.standard-page,
.error-page {
  min-height: 62vh;
  padding: 48px 0 100px;
}

.archive-header {
  max-width: 760px;
  margin: 0 0 44px;
}

.archive-header h1,
.page-article > header h1,
.error-page h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.archive-header p,
.archive-description {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.archive-grid .article-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
}

.navigation.pagination {
  margin-top: 42px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.page-numbers.current {
  color: var(--white);
  background: var(--ink);
}

.narrow-container {
  max-width: 900px;
}

.page-article > header {
  margin-bottom: 34px;
}

.empty-state {
  max-width: 680px;
  padding: 40px 0;
}

.error-page .empty-state {
  padding-top: 80px;
}

.empty-state > p {
  color: var(--muted);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 1040px) {
  .main-nav .main-menu {
    display: grid;
    width: 100%;
    gap: 0;
  }

  .main-nav .sub-menu {
    position: static;
    display: grid;
    padding: 0 0 0 18px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .admin-bar .site-header {
    top: 0;
  }

  .archive-main,
  .standard-page,
  .error-page {
    padding-top: 30px;
  }
}
