/* WordPress-only rules: core classes and block-editor content. Tokens only, no colour literals. */

/* Core accessibility class. */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto; width: auto; height: auto; margin: 0; padding: var(--space-3) var(--space-4);
  background: var(--c-paper); color: var(--c-ink); z-index: 100000;
}

/* Editor content inside .prose. */
.prose .alignleft { float: left; margin: 0.25rem var(--space-6) var(--space-4) 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.25rem 0 var(--space-4) var(--space-6); max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose::after { content: ""; display: table; clear: both; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose figure { margin-block: var(--space-6); }
.prose figcaption, .wp-caption-text, .wp-element-caption { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--muted); }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--space-3); }
.prose .wp-block-button__link { display: inline-flex; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 40rem) {
  .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin-inline: 0; }
}

/* Core pagination ellipsis. */
.pagination .dots { border-color: transparent; }

/* Admin bar offset for the sticky header. */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }

/* ---------------------------------------------------------------------------
   Design rules that only exist in WordPress (see html/ for the static versions).
   --------------------------------------------------------------------------- */

/* Filter chips are category links here: the current one is marked with aria-current. */
.chip[aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-paper); }

/* Report tables (Tabel Laporan): a core Table block inside .table-wrap. */
.report { padding: var(--space-6) 0 var(--space-4); }
.report__title { font-size: 1.25rem; padding: 0 var(--space-6) var(--space-2); color: var(--heading); }
.report .wp-block-table { margin: 0; overflow-x: auto; }
.report table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: var(--space-4) var(--space-6); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.report thead th, .report thead td { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; border-bottom-width: 1px; }
.report tbody td:first-child { font-weight: 600; }
.report tr:last-child > * { border-bottom: 0; }
.report figure.wp-block-table thead { border-bottom: 0; }
.report__source { padding: var(--space-4) var(--space-6) 0; font-size: var(--fs-sm); color: var(--muted); }
.report__source a { color: var(--link); font-weight: 600; }

/* Gallery block in kegiatan: square tiles like the static gallery. */
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 48rem) { .prose .wp-block-gallery { grid-template-columns: repeat(3, 1fr); } }
.prose .wp-block-gallery figure, .prose .wp-block-gallery .wp-block-image { margin: 0; width: auto !important; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.prose .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.prose--plain > * + * { margin-top: var(--space-4); }
.prose--plain { max-width: none; font-size: 1rem; line-height: 1.6; }

/* Pagination. */
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-12); }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-paper); }

/* 404: big code inside the h1. */
.page-hero--404 { min-height: 70vh; display: grid; align-items: center; }
.page-hero h1 .notfound__code { display: block; margin-bottom: var(--space-4); }
.page-hero--404 .breadcrumb { display: none; }

/* Menu items from wp_nav_menu carry li classes only; links keep the design's look. */
.site-nav__list .menu-item { list-style: none; }

/* Core table block borders off: rows only, like the static report tables. */
.report .wp-block-table table, .report .wp-block-table th, .report .wp-block-table td { border: 0; }
.report .wp-block-table th, .report .wp-block-table td { border-bottom: 1px solid var(--line); }
.report .wp-block-table thead { border-bottom: 0; }
.report .wp-block-table tbody tr:last-child td { border-bottom: 0; }

/* Cover image fills the article width. */
.article__cover img { width: 100%; }
