/* Artikel dan daftar artikel (v1.0: huruf Schibsted, judul tebal, tautan biru). Isi .entry datang dari Gutenberg, jadi gaya ditulis untuk elemen dan kelas blok bawaan. */

@media (min-width: 64em) {
  .post__head, .entry, .post__cta, .post__more, .post__cover { max-width: 44rem; margin-left: max(0px, calc((100% - 44rem) * 0.3)); }
  .post__head { max-width: 62rem; }
}

/* kepala artikel */
.post__head { padding-top: clamp(3rem, 8vw, 6rem); }
.post__meta { font-size: var(--step-small); margin-top: 1.5rem; }
.post__title { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 24ch; }
.post__lead { margin-top: 1.25rem; max-width: 44ch; color: var(--muted); }
.post__cover { margin-top: 2.5rem; max-width: 60rem; }
.post__cover img { width: 100%; }

/* isi Gutenberg */
.entry { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: var(--step-body); line-height: 1.6; }
.entry > * + * { margin-top: 1.25em; }
.entry p, .entry li { max-width: 66ch; }
.entry h2 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-top: 2.5em; }
.entry h3 { font-size: var(--step-body); margin-top: 2em;  font-weight: 700; }
.entry h4, .entry h5, .entry h6 { font-size: var(--step-body); margin-top: 1.75em; color: var(--muted); }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: 0.6em; }
.entry a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.entry a:hover { text-decoration-color: currentColor; }
.entry ul, .entry ol { padding-left: 1.25em; list-style: revert; }
.entry li + li { margin-top: 0.4em; }
.entry li::marker { color: var(--muted); }
.entry strong { font-weight: 650; }
.entry blockquote, .entry .wp-block-quote { margin-left: 0; padding: 1.25rem 1.5rem; background: var(--surface); border-left: 3px solid var(--green); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--step-lead); line-height: 1.4; }
.entry blockquote cite { display: block; margin-top: 0.75rem; font-size: var(--step-small); font-style: normal; color: var(--muted); }
.entry .wp-block-pullquote { padding: 2rem 0; border: 0; text-align: left; }
.entry .wp-block-pullquote blockquote { background: none; padding: 0; font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.03em; }
.entry figure { margin-inline: 0; }
.entry img { height: auto; }
.entry figcaption, .entry .wp-element-caption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }
.entry .alignwide { max-width: 60rem; }
.entry .alignfull { max-width: none; margin-inline: calc(var(--margin) * -1); }
.entry .wp-block-separator, .entry hr { border: 0; height: 0; margin-block: 3rem; }
.entry .wp-block-button__link, .entry .wp-element-button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; text-decoration: none; font-weight: 600; }
.entry .wp-block-button.is-style-outline .wp-block-button__link { background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.entry th, .entry td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry th { font-weight: 650; }
.entry .wp-block-table { overflow-x: auto; }
.entry pre, .entry code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
.entry pre { background: var(--surface); padding: 1rem 1.25rem; overflow-x: auto;  border-radius: var(--r-sm); }
.entry :not(pre) > code { background: var(--surface); padding: 0.1em 0.35em;  border-radius: 4px; }
.entry .wp-block-image.size-full img, .entry .wp-block-image img { width: 100%; }
.entry .wp-block-embed iframe { width: 100%; }
.entry .has-text-align-center { text-align: center; }

/* ajakan dan artikel lain */
.post__cta { margin-top: clamp(4rem, 8vw, 6rem); background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; justify-items: start; }
.post__cta p { max-width: 46ch; }
.post__more { margin-top: clamp(4rem, 8vw, 6rem); margin-bottom: 7.5rem; }
.post__more .sub { margin-bottom: 1.5rem; }

/* daftar artikel: halaman pencarian. Kotak cari memakai .search__box dari site.css. */
.listing { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--space); }
.listing__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.listing__head .lead { color: var(--muted); max-width: 46ch; }
.find { margin-top: 0.75rem; }
.find__box { padding-right: 0.4rem; transition: border-color var(--t-hover) ease; }
.find__box:focus-within { border-color: var(--blue); }
.find__input { flex: 1; min-width: 0; width: 100%; height: 3.5rem; border: 0; background: none; font-size: inherit; color: var(--ink); }
.find__input:focus { outline: none; }
.find__input::placeholder { color: var(--muted); opacity: 0.75; }
.find__input::-webkit-search-cancel-button { cursor: pointer; }
.find__go { flex: none; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--step-small); font-weight: 600; transition: background-color var(--t-hover) ease; }
.find__go:hover { background: var(--blue); }
.listing__count { font-size: var(--step-small); color: var(--muted); }
.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.listing__main { min-width: 0; }
.listing__list .post-hit { padding-block: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.listing__list .post-hit__title { font-size: var(--step-sub); letter-spacing: -0.015em; }
.listing__list .post-hit__desc { font-size: var(--step-body); margin-top: 0.15rem; }
.listing__list mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 0.1em; }
.post-hit__thumb { margin-top: 0.75rem; max-width: 16rem; }
.post-hit__thumb img { border-radius: var(--r-sm); width: 100%; }
@media (min-width: 48em) {
  .listing__list .post-hit:has(.post-hit__thumb) { grid-template-columns: minmax(0, 1fr) 9rem; column-gap: 1.5rem; }
  .listing__list .post-hit__thumb { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
.find-empty { display: grid; gap: 0.75rem; justify-items: start; padding-block: 2rem; }
.find-empty[hidden] { display: none; }
.find-empty .muted { max-width: 48ch; }
.find-empty .actions { margin-top: 0.5rem; }

/* kolom ajakan */
.ask { border-radius: var(--r-lg); max-width: 36rem; padding: clamp(1.5rem, 3vw, 2rem); display: grid; gap: 1rem; justify-items: start; }
.ask__title { font-size: var(--step-sub); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.ask__say { color: var(--muted); }
.ask__proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--surface); font-size: var(--step-small); }
.ask__rank { font-weight: 800; font-size: 1.75rem; line-height: 1; color: #7ee0ad; }
.ask__proof .link { color: var(--blue); text-decoration-color: currentColor; }

@media (min-width: 64em) {
  .listing__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .listing__head > * { grid-column: 1 / span 7; }
  .listing__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .listing__main { grid-column: 1 / span 7; }
  .listing__aside { grid-column: 9 / -1; position: sticky; top: 6.5rem; }
  .ask { max-width: none; }
}

.pager { margin-top: 2.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 500; }
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .dots { border-color: transparent; }
.missing { min-height: 60vh; }
.missing__actions { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 7.5rem; }
