/* WordPress-specific adjustments for the Altilia block theme. */

/* Admin bar pushes the sticky nav down for logged-in users */
.admin-bar .nav {
  top: 32px;
}

.admin-bar .filters {
  top: 104px;
}

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

  .admin-bar .filters {
    top: 118px;
  }
}

/* Template-part and post-content wrappers must be transparent to the layout */
.wp-block-template-part,
.wp-block-post-content,
.wp-site-blocks {
  display: block;
}

/* Core block wrappers used by the converted content: keep the original look */
.wp-block-heading {
  margin: 0;
}

ul.wp-block-list,
ol.wp-block-list {
  box-sizing: border-box;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--pill);
}

.skip-link:focus {
  left: 8px;
}

/* Search results / archives fallback */
.wp-archive .post-list {
  display: grid;
  gap: 16px;
}

.wp-archive .post-list article {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* Editor canvas: give the page the site's background and font */
.editor-styles-wrapper {
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.editor-styles-wrapper .section {
  padding-top: 48px;
  padding-bottom: 48px;
}
