/* ==========================================================
   Aminlogg single post
   ========================================================== */

/* Reading progress */
.al-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.al-progress span { display: block; height: 100%; background: var(--al-olive); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .al-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .al-progress { top: 46px; } }

.al-single { display: block; }

/* ---------- Hero ---------- */
.al-single__hero {
  max-width: 940px; margin: 0 auto; padding: 32px 24px 44px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.al-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--al-muted); }
.al-crumbs a { color: var(--al-muted); text-decoration: none; }
.al-crumbs a:last-child { font-family: var(--al-serif); font-style: italic; font-size: 18px; color: var(--al-olive); }
.al-crumbs a:hover { color: var(--al-ink); text-decoration: underline; text-underline-offset: 3px; }
.al-crumbs { align-items: baseline; }
.al-single__title {
  margin: 0; font-family: var(--al-sans); font-weight: 600; font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04; letter-spacing: -0.04em; color: var(--al-ink); text-wrap: balance;
}
.al-single__dek { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--al-muted); text-wrap: pretty; }
.al-single__meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px;
  font-size: 14px; color: var(--al-muted); margin-top: 4px;
}
.al-meta-sep { color: var(--al-border); }
.al-byline { display: inline-flex; align-items: center; gap: 10px; color: var(--al-ink); font-weight: 600; }
.al-avatar {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px;
  background: var(--al-olive); color: var(--al-lime); font-family: var(--al-serif); font-size: 18px; line-height: 1;
}
.al-avatar--lg { width: 52px; height: 52px; font-size: 28px; background: var(--al-lime); color: var(--al-ink); }
.al-meta-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
.al-tag-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; box-sizing: border-box; padding: 0 12px;
  border: 1px solid var(--al-border); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; line-height: 1; color: var(--al-ink); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.al-tag-pill svg { width: 14px; height: 14px; color: var(--al-olive); }
.al-tag-pill:hover { background: var(--al-card); border-color: var(--al-ink); color: var(--al-ink); }

/* ---------- Featured image ---------- */
.al-single__media { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.al-single__frame { position: relative; aspect-ratio: 16 / 8; border-radius: 32px; overflow: hidden; background-color: #3B352C; }
body .al-single__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.al-single__chips { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 8px; z-index: 1; }
.al-single__chips .al-chip { font-size: 14px; padding: 9px 14px; }
.al-single__media figcaption { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--al-muted); text-align: right; }

/* ---------- Body grid ---------- */
.al-single__body {
  max-width: 1240px; margin: 0 auto; padding: 64px 24px 0; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start;
}
.al-single__main { min-width: 0; max-width: 720px; }
.al-single__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.admin-bar .al-single__aside { top: 56px; }

/* ---------- Prose ---------- */
.al-prose { font-size: 18px; line-height: 1.75; color: #2B2924; counter-reset: al-h2; }
.al-prose > * { margin: 0 0 1.15em; }
.al-prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--al-ink); }
.al-prose > p:first-child::first-letter {
  float: left; margin: 6px 12px 0 0; font-family: var(--al-serif); font-size: 4.4em; line-height: .78; color: var(--al-olive);
}
.al-prose h2 {
  margin: 2.2em 0 .6em; font-family: var(--al-sans); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2; letter-spacing: -0.025em; color: var(--al-ink); scroll-margin-top: 28px;
}
.al-prose--numbered h2 { display: flex; align-items: baseline; gap: 14px; }
.al-prose--numbered h2::before {
  counter-increment: al-h2; content: counter(al-h2, decimal-leading-zero);
  flex: none; font-family: var(--al-serif); font-style: italic; font-weight: 400; font-size: .85em; letter-spacing: 0; color: var(--al-olive);
}
.al-prose h3 { margin: 1.8em 0 .5em; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--al-ink); }
.al-prose ul, .al-prose ol { padding: 0; list-style: none; }
.al-prose li { position: relative; margin: .5em 0; padding-left: 30px; }
.al-prose ul > li::before {
  content: ''; position: absolute; left: 4px; top: .6em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--al-lime); box-shadow: inset 0 0 0 2px var(--al-olive);
}
.al-prose ol { counter-reset: al-ol; }
.al-prose ol > li::before {
  counter-increment: al-ol; content: counter(al-ol); position: absolute; left: 0; top: .15em;
  width: 22px; height: 22px; border-radius: 50%; background: var(--al-lime); color: var(--al-ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.al-prose strong { color: var(--al-ink); font-weight: 600; }
.al-prose a { color: var(--al-olive); text-decoration: underline; text-underline-offset: 3px; }
.al-prose a:hover { color: var(--al-ink); }
.al-prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--al-olive);
  font-family: var(--al-serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--al-ink);
}
.al-prose img { max-width: 100%; height: auto; border-radius: 20px; }
.al-prose figure { margin: 1.8em 0; }

/* Final summary list on food reviews: Sesuai untuk / Wajib cuba / Tip */
.al-prose--review > ul:last-child {
  margin-top: 1.8em; padding: 24px 28px; border-radius: 24px; background: var(--al-lime);
  display: grid; gap: 4px;
}
.al-prose--review > ul:last-child > li { margin: 0; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(22,21,18,.1); font-size: 17px; line-height: 1.5; color: var(--al-ink); }
.al-prose--review > ul:last-child > li:last-child { border-bottom: 0; }
.al-prose--review > ul:last-child > li::before { top: 1.05em; background: var(--al-olive); box-shadow: none; }
.al-prose--review > ul:last-child strong { display: block; font-family: var(--al-serif); font-style: italic; font-weight: 400; font-size: 15px; color: var(--al-olive-deep); }

/* ---------- Share + tags ---------- */
.al-single__share {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--al-border-soft);
  display: flex; flex-direction: column; gap: 16px;
}
.al-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.al-share__label { margin-right: 6px; font-family: var(--al-serif); font-style: italic; font-size: 18px; color: var(--al-muted); }
.al-single .al-share__btn {
  display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 0 16px; margin: 0;
  border: 1px solid var(--al-border); border-radius: 999px; background: transparent; color: var(--al-ink); cursor: pointer;
  font-family: var(--al-sans); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; text-transform: none; letter-spacing: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.al-single .al-share__btn:hover, .al-single .al-share__btn:focus { background: var(--al-ink); border-color: var(--al-ink); color: #fff; }
.al-single .al-share__btn:focus-visible { outline: 2px solid var(--al-olive); outline-offset: 2px; }
.al-share__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Aside: score card ---------- */
.al-score { background: var(--al-lime); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.al-score__eyebrow { margin: 0; font-family: var(--al-serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.2; letter-spacing: 0; color: var(--al-olive-deep); }
.al-score__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.al-score__num { font-family: var(--al-serif); font-size: 64px; line-height: .9; color: var(--al-ink); }
.al-score__num span { font-size: 24px; color: var(--al-olive-deep); margin-left: 2px; }
.al-stars { position: relative; display: inline-block; line-height: 0; }
.al-stars__base, .al-stars__fill { display: flex; gap: 3px; white-space: nowrap; }
.al-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.al-stars svg { flex: none; width: 20px; height: 20px; }
.al-stars__base svg { fill: rgba(22,21,18,.14); }
.al-stars__fill svg { fill: var(--al-olive); }
.al-facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(22,21,18,.12); }
.al-facts > div { padding: 12px 0; border-bottom: 1px solid rgba(22,21,18,.12); display: grid; gap: 4px; }
.al-facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--al-olive-deep); }
.al-facts dt svg { color: var(--al-olive); }
.al-facts dd { margin: 0; padding-left: 26px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--al-ink); }
.al-score__map { align-self: stretch; justify-content: space-between; }

/* ---------- Aside: table of contents ---------- */
.al-toc { background: var(--al-card); border-radius: 24px; padding: 22px 24px; }
.al-toc__title { margin: 0 0 10px; font-family: var(--al-serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.2; letter-spacing: 0; color: var(--al-olive); }
.al-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: al-toc; }
.al-toc__list li { counter-increment: al-toc; }
.al-toc__list a {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--al-border-soft);
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--al-muted); text-decoration: none; transition: color .2s;
}
.al-toc__list li:last-child a { border-bottom: 0; }
.al-toc__list a::before { content: counter(al-toc, decimal-leading-zero); flex: none; font-family: var(--al-serif); font-style: italic; color: var(--al-border); transition: color .2s; }
.al-toc__list a:hover, .al-toc__list a.is-active { color: var(--al-ink); }
.al-toc__list a.is-active::before { color: var(--al-olive); }

/* ---------- Aside: author ---------- */
.al-author { background: var(--al-ink); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.al-author__head { display: flex; align-items: center; gap: 14px; }
.al-author__eyebrow { display: block; font-family: var(--al-serif); font-style: italic; font-size: 15px; color: var(--al-lime); }
.al-author__name { display: block; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.al-author__bio { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.78); }
.al-author__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.al-author__social a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
}
.al-author__social a:hover { background: var(--al-lime); border-color: var(--al-lime); color: var(--al-ink); }

/* ---------- Comments ---------- */
.al-comments { margin-top: 56px; }
.al-comments__title, .al-comments__reply { margin: 0 0 8px; font-family: var(--al-sans); font-weight: 600; font-size: 26px; letter-spacing: -0.025em; color: var(--al-ink); }
.al-comments__reply small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.al-comments__reply small a { color: var(--al-olive); }
.al-comments__note { margin: 0 0 18px; font-size: 14px; color: var(--al-muted); }
.al-comments__note a { color: var(--al-olive); }
.al-comments__list { list-style: none; margin: 16px 0 40px; padding: 0; }
.al-comments__list .comment { margin: 0 0 14px; padding: 20px; border-radius: 20px; background: var(--al-card); list-style: none; }
.al-comments__list .children { list-style: none; margin: 14px 0 0; padding-left: 20px; }
.al-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.al-comments__list .comment-author img { border-radius: 999px; }
.al-comments__list .says { display: none; }
.al-comments__list .comment-metadata { font-size: 13px; margin: 4px 0 10px; }
.al-comments__list .comment-metadata a { color: var(--al-muted); text-decoration: none; }
.al-comments__list .reply a { font-size: 14px; font-weight: 600; color: var(--al-olive); }
.al-comments .comment-respond { padding: 28px; border-radius: 24px; background: var(--al-card); }
.al-comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.al-comments .comment-form > p { margin: 0; }
.al-comments .comment-form .al-comments__note, .al-comments .comment-form-comment, .al-comments .form-submit { grid-column: 1 / -1; }
.al-comments .comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--al-ink); }
.al-comments .comment-form input[type='text'], .al-comments .comment-form input[type='email'], .al-comments .comment-form textarea {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 16px; border: 1px solid var(--al-border); border-radius: 12px;
  background: #fff; color: var(--al-ink); font-family: var(--al-sans); font-size: 16px; line-height: 1.5;
}
.al-comments .comment-form textarea { min-height: 130px; resize: vertical; }
.al-comments .comment-form input:focus, .al-comments .comment-form textarea:focus { outline: 2px solid var(--al-olive); outline-offset: 1px; border-color: var(--al-olive); }
.al-single .al-comments .al-comments__submit {
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--al-ink); color: #fff; cursor: pointer;
  font-family: var(--al-sans); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; transition: background-color .2s;
}
.al-single .al-comments .al-comments__submit:hover, .al-single .al-comments .al-comments__submit:focus-visible { background: var(--al-olive); }

/* ---------- Related ---------- */
.al-related { max-width: 1240px; margin: 0 auto; padding: 104px 24px 96px; box-sizing: border-box; }
.al-related__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.al-related__eyebrow { margin: 0 0 8px; font-family: var(--al-serif); font-style: italic; font-size: 20px; color: var(--al-olive); }
.al-related__title { margin: 0; font-family: var(--al-sans); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; color: var(--al-ink); }
.al-ghost-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--al-border); border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--al-ink); text-decoration: none; transition: border-color .2s;
}
.al-ghost-btn:hover { border-color: var(--al-ink); color: var(--al-ink); }
.al-related .al-reviews { gap: 0; }

/* ---------- CTA ---------- */
.al-single-cta { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; box-sizing: border-box; }
.al-single-cta__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--al-ink); color: #fff;
}
.al-single-cta__eyebrow { margin: 0 0 10px; font-family: var(--al-serif); font-style: italic; font-size: 20px; color: var(--al-lime); }
.al-single-cta__title { margin: 0; font-family: var(--al-sans); font-weight: 600; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.035em; color: #fff; }
.al-single-cta__title span { display: block; font-family: var(--al-serif); font-weight: 400; letter-spacing: -0.01em; }
.al-pill-btn--lime { background: var(--al-lime); color: var(--al-ink); min-height: 56px; padding-left: 24px; font-size: 16px; }
.al-pill-btn--lime .al-pill-btn__icon { background: var(--al-ink); color: #fff; width: 42px; height: 42px; }
.al-pill-btn--lime:hover, .al-pill-btn--lime:focus-visible { background: #fff; color: var(--al-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .al-single__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
}
@media (max-width: 900px) {
  .al-single__body { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .al-single__main { max-width: none; }
  .al-single__aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .al-single__aside .al-toc { display: none; }
  .al-single__main { order: 2; }
  .al-single__aside { order: 1; }
  .al-single__aside .al-author { display: none; }
  .al-related { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .al-single__hero { padding: 16px 16px 32px; gap: 16px; }
  .al-single__dek { font-size: 18px; }
  .al-meta-tags { margin-left: 0; width: 100%; justify-content: center; }
  .al-single__media { padding: 0 12px; }
  .al-single__frame { aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .al-single__chips { top: 12px; left: 12px; right: 12px; }
  .al-single__media figcaption { padding: 0 4px; text-align: left; }
  .al-single__body { padding: 32px 16px 0; }
  .al-prose { font-size: 17px; }
  .al-prose > p:first-child { font-size: 19px; }
  .al-prose--review > ul:last-child { padding: 18px 20px; }
  .al-comments .comment-form { grid-template-columns: 1fr; }
  .al-comments .comment-respond { padding: 20px; }
  .al-related { padding: 64px 16px; }
  .al-single-cta { padding: 0 16px 72px; }
}
