/*
 * The blog (view/storefront/page/blog.html, article.html,
 * newsletter_confirm.html) — /blog and /blog/{slug}: the design's boards
 * Blog and Article (1440 px), MBlog and MArticle (390 px); there is no
 * tablet board. Ported from the <style> blocks of
 * design/source/src/pages/Blog.html, Article.html, MBlog.html and
 * MArticle.html; the markup's style="" attributes became the classes marked
 * "was inline" (the CSP forbids them). The design's phone boards are the
 * `s` media query here, the tablet rules (601–992 px) are ours.
 *
 * :where() keeps a few selectors as specific as a rule for any image, link
 * or icon here (the same element picked through a card), so the later,
 * simpler rules for the same element still read in file order (Biome's
 * noDescendingSpecificity, whose count must not grow).
 */

/* ---------- Shared: breadcrumb, topic label, byline, cards ---------- */

/*
 * No scroll anchoring while the index swaps its list in place (a chip, a
 * search, "Muat artikel lainnya"): Chrome's anchoring moved the page during
 * the catalogue's swaps (products.css), and the blog swaps the same way.
 */
html:has(#blog) {
  overflow-anchor: none;
}

.aa .bl-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.aa .bl-crumbs a {
  display: inline;
  color: var(--on-surface-variant);
}

.aa .bl-crumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.aa .bl-crumbs i {
  --_size: 18px;
  font-size: 18px;
}

/* The topic above a title (a link on an article's head). */
.aa .bl-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
}

.aa a.bl-cat:hover {
  text-decoration: underline;
}

/* The featured box's star (was inline). */
.aa .bl-cat > i {
  --_size: 16px;
  font-size: 16px;
}

/* Author · date · reading time; the shop's mark as the author's picture. */
.aa .bl-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--on-surface-variant);
}

.aa .bl-by img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}

.aa .bl-by b {
  color: var(--on-surface);
  font-weight: 600;
}

/* Three cards a row (the index's grid, "Artikel terkait"). */
.aa .bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.aa .bl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border-radius: 28px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
  transition: box-shadow var(--speed3);
}

.aa .bl-card:hover {
  box-shadow: var(--elevate2);
}

.aa .bl-card .media {
  display: block;
  margin: 8px 8px 0;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

/* The drawn cover fills its box like the design's thumbnail (405 × 228). */
.aa .bl-card :where(.media) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 228;
  object-fit: cover;
}

.aa .bl-card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 16px 20px 20px;
}

.aa .bl-card h3 {
  font-size: 19px;
  line-height: 26px;
  font-weight: 650;
  letter-spacing: -0.1px;
}

.aa .bl-card :where(h3) a {
  display: inline;
  color: var(--on-surface);
  text-align: start;
}

.aa .bl-card :where(h3) a:hover {
  color: var(--primary);
}

/* Two lines of the summary; border-radius 0: BeerCSS's rounding would clip
   the first letter under overflow: hidden. */
.aa .bl-card .ex {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-radius: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--on-surface-variant);
}

.aa .bl-card .meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

/* ---------- The index: /blog ---------- */

.aa > main.bl-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 32px 0 88px;
}

/* The part htmx swaps: the head, the featured box and the list. */
.aa .bl-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.aa .bl-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aa .bl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* Breadcrumb, heading and lead (was inline). */
.aa .bl-headtext {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.aa .bl-search {
  flex: none;
  width: 360px;
}

.aa .bl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa .bl-chips .chip {
  height: 36px;
  background: var(--aa-raised);
}

.aa .bl-chips .chip.is-on {
  background: var(--secondary-container);
  border-color: transparent;
  color: var(--on-secondary-container);
}

/* The featured article: the cover beside its text. */
.aa .bl-feat {
  display: grid;
  grid-template-columns: 760px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 12px 48px 12px 12px;
  border-radius: 36px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .bl-feat .media {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  line-height: 0;
}

.aa .bl-feat :where(.media) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 428;
  object-fit: cover;
}

.aa .bl-feat .body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* The heading of the box (was t-hm emph + text-wrap). */
.aa .bl-feat-h {
  font-size: 28px;
  line-height: 36px;
  font-weight: 680;
  letter-spacing: -0.2px;
  text-wrap: balance;
}

.aa .bl-feat-h a {
  display: inline;
  color: var(--on-surface);
  text-align: start;
}

.aa .bl-feat-h a:hover {
  color: var(--primary);
}

/* "Baca artikel" (was inline). */
.aa .bl-feat-go {
  margin-top: 8px;
}

.aa .bl-latest {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aa .bl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
}

/* "Muat artikel lainnya", centred under the grid (was inline). */
.aa .bl-more {
  display: flex;
  justify-content: center;
}

.aa .bl-more:empty {
  display: none;
}

.aa .bl-more-btn {
  margin-top: 8px;
}

/* ---------- The newsletter box ---------- */

.aa .bl-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 48px;
  align-items: center;
  padding: 48px 56px;
  border-radius: 40px;
  background: var(--aa-hero);
  color: var(--aa-on-hero);
  overflow: hidden;
}

.aa .bl-news-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa .bl-news .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.aa .bl-news-h {
  text-wrap: balance;
}

.aa .bl-news .aa-fld > label,
.aa .bl-news-p {
  color: var(--aa-on-hero);
}

.aa .bl-news-p {
  opacity: 0.8;
}

.aa .bl-news .field.border > input {
  background: var(--aa-raised);
  color: var(--on-surface);
}

.aa .bl-news-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa .bl-news-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--error-container);
  color: var(--on-error-container);
  font-size: 14px;
  line-height: 20px;
}

/* Signed up: the neutral "check your inbox" in the form's place. */
.aa .bl-news-sent {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--aa-raised);
  color: var(--on-surface);
}

.aa .bl-news-sent > i {
  color: var(--primary);
}

.aa .bl-news-sent b {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.aa .bl-news-sent p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--on-surface-variant);
}

/* ---------- An article: /blog/{slug} ---------- */

.aa > main.ar-main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 32px 0 88px;
}

.aa .ar-wrap {
  width: min(1136px, 100% - 128px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.aa .ar-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 900px;
}

.aa .ar-h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 720;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.aa .ar-dek {
  font-size: 20px;
  line-height: 30px;
  color: var(--on-surface-variant);
  text-wrap: pretty;
}

.aa .ar-byrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
  padding-top: 18px;
  border-top: 1px solid var(--outline-variant);
  border-radius: 0;
}

.aa .ar-by {
  font-size: 14px;
  line-height: 20px;
}

.aa .ar-by img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Desktop: name · date · time on one line (phones stack them). */
.aa .ar-by-text,
.aa .ar-by-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.aa .ar-share {
  display: flex;
  gap: 4px;
}

/* "Simpan artikel" pressed: the bookmark filled (the design's `circle fill`).
   :where() keeps it as specific as the page's other icon rules, so they all
   apply in file order. */
.aa :where(.ar-save.is-on > i, .db-artsave.is-on > i) {
  font-variation-settings: "FILL" 1;
}

/* Phones: the bookmark at the end of the byline row (MArticle has none; the
   share button is in the top bar). */
.aa .ar-save-s {
  flex: none;
}

/* A picture of the body (open question 38's blocks; the design has none):
   the cover's rounding, the table caption's words under it. */
.aa .ar-fig {
  margin: 8px 0;
}

.aa .ar-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* A file to download: the product call-out's card, one row. */
.aa .ar-file {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
  color: var(--on-surface);
  text-align: start;
}

.aa .ar-file .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.aa .ar-file .tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.aa .ar-file .dl {
  flex: none;
  color: var(--primary);
}

.aa .ar-cover {
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  line-height: 0;
}

.aa .ar-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1136 / 520;
  object-fit: cover;
}

.aa .ar-grid {
  display: grid;
  grid-template-columns: 720px 320px;
  gap: 96px;
  align-items: start;
}

/* The body and its foot (was inline). */
.aa .ar-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.aa article.ar-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.aa .ar-body .p {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: 0.1px;
  color: var(--on-surface);
  text-wrap: pretty;
}

/* scroll-margin: a jump from the contents stops below the screen's edge. */
.aa .ar-body .h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 680;
  letter-spacing: -0.3px;
  margin-top: 18px;
  scroll-margin-top: 24px;
}

.aa .ar-body .ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aa .ar-body .ul li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  line-height: 30px;
}

.aa .ar-body .ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.aa .ar-body :where(li) b {
  font-weight: 680;
}

/* A formula: the dark box with its copy button, the formula in the codes'
   face, Roboto (decision 137; Roboto Mono before). `white-space: pre`
   keeps its spaces. */
.aa .ar-code {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px 18px 22px;
  border-radius: 18px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.aa .ar-code code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: pre;
  font-family: var(--font-code);
  font-size: 15px;
  line-height: 24px;
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

.aa .ar-code button {
  flex: none;
  color: var(--inverse-on-surface);
}

/* The copy icon (was inline). */
.aa .ar-code :where(button) > i {
  --_size: 18px;
  font-size: 18px;
}

.aa .ar-tip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 22px 18px 18px;
  border-radius: 22px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.aa .ar-tip .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--aa-raised);
  color: var(--primary);
}

.aa .ar-tip b {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.aa .ar-tip span {
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.aa .ar-note {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 21px;
  color: var(--on-surface-variant);
}

.aa .ar-note i {
  --_size: 20px;
  flex: none;
  font-size: 20px;
  color: var(--primary);
}

/* A table: a real <table> drawn as the design's rounded grid. */
.aa .ar-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.aa .ar-table-scroll {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--outline-variant);
  overflow: hidden;
}

.aa .ar-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.aa .ar-table :is(th, td) {
  padding: 11px 14px;
  text-align: start;
  vertical-align: top;
}

.aa .ar-table th {
  background: var(--aa-inset);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--on-surface-variant);
}

.aa .ar-table tbody tr {
  border-top: 1px solid var(--outline-variant);
}

/* Amounts: right-aligned, figures of one width. */
.aa .ar-table :is(th, td).num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.aa .ar-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--on-surface-variant);
}

.aa .ar-cap > i {
  --_size: 16px;
  font-size: 16px;
}

/* A product call-out in the body. */
.aa .ar-prod {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  background: var(--aa-raised);
  box-shadow: var(--elevate2);
}

.aa .ar-prod .media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.aa .ar-prod :where(.media) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 176 / 110;
  object-fit: cover;
}

/* The text column (was inline). */
.aa .ar-prod .tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.aa .ar-prod-title {
  display: inline;
  color: var(--on-surface);
  text-align: start;
}

.aa .ar-prod-title:hover {
  color: var(--primary);
}

.aa .ar-prod-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  align-self: stretch;
  margin-top: 4px;
}

.aa .ar-prod-buy .aa-price {
  font-size: 18px;
}

.aa .ar-prod-buy .button {
  margin-left: auto;
}

/* The sticky column: contents and the product it uses. */
.aa .ar-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.aa .ar-toc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 20px 12px 16px;
  border-radius: 24px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .ar-toc h2 {
  align-self: stretch;
  text-align: start;
  padding: 0 12px 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.aa .ar-toc a {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
  text-align: start;
  white-space: normal;
}

.aa .ar-toc a:hover {
  background: var(--active);
  color: var(--on-surface);
}

/* The section being read (app.js, data-toc). */
.aa .ar-toc a.is-on {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 650;
}

.aa .ar-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 16px;
  border-radius: 24px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .ar-mini .media {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
}

.aa .ar-mini :where(.media) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 304 / 171;
  object-fit: cover;
}

.aa .ar-mini .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
}

.aa .ar-mini-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aa .ar-mini-title {
  display: inline;
  text-align: start;
  color: var(--on-surface);
}

.aa .ar-mini-title:hover {
  color: var(--primary);
}

/* Price and struck regular price (was inline). */
.aa .ar-mini-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.aa .ar-mini-price .aa-price {
  font-size: 18px;
}

/* Tags and the author under the body. */
.aa .ar-foot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--outline-variant);
  border-radius: 0;
}

.aa .ar-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* "Topik:" (was inline). */
.aa .ar-tags > .t-ts {
  margin-right: 4px;
}

.aa .ar-author {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .ar-author img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}

/* Written by / name / bio (was inline). */
.aa .ar-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* The contents folded under the cover (tablet and phone). */
.aa .ar-toc-fold {
  border-radius: 20px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
}

.aa .ar-toc-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.aa .ar-toc-fold summary::-webkit-details-marker {
  display: none;
}

.aa .ar-toc-fold .chev {
  margin-left: auto;
  color: var(--on-surface-variant);
  transition: transform var(--speed2);
}

.aa .ar-toc-fold[open] .chev {
  transform: rotate(180deg);
}

.aa .ar-toc-fold ol {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
}

.aa .ar-toc-fold a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-align: start;
}

.aa .ar-related {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- The newsletter's confirmation page ---------- */

.aa .nl-confirm {
  display: flex;
  justify-content: center;
  padding: 56px 0 88px;
}

.aa .nl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  padding: 40px 32px;
  border-radius: 32px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
  text-align: center;
}

.aa .nl-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

.aa .nl-ic > i {
  --_size: 40px;
  font-size: 40px;
}

/* ---------- Desktop widths the design never drew (993–1279 px) ---------- */

@media (min-width: 993px) and (max-width: 1279px) {
  .aa .bl-feat {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 36px;
    padding-right: 36px;
  }

  .aa .bl-news {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 36px;
    padding: 40px 44px;
  }

  .aa .ar-wrap {
    width: min(1136px, 100% - 64px);
  }

  .aa .ar-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
  }
}

/* ---------- Tablet (601–992 px; no board — the phone's order, two columns) ---------- */

@media (min-width: 601px) and (max-width: 992px) {
  .aa > main.bl-main {
    gap: 40px;
    padding: 24px 0 64px;
  }

  .aa .bl-page {
    gap: 40px;
  }

  .aa .bl-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .aa .bl-search {
    width: auto;
  }

  .aa .bl-feat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 10px 28px 10px 10px;
    border-radius: 32px;
  }

  .aa .bl-feat-h {
    font-size: 24px;
    line-height: 31px;
  }

  .aa .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .aa .bl-news {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 32px;
    border-radius: 32px;
  }

  .aa > main.ar-main {
    gap: 56px;
    padding: 24px 0 64px;
  }

  .aa .ar-wrap {
    width: auto;
    margin-inline: 24px;
    gap: 24px;
  }

  .aa .ar-h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .aa .ar-cover {
    border-radius: 28px;
  }

  .aa .ar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Phone (≤ 600 px: the design's MBlog and MArticle) ---------- */

@media (max-width: 600px) {
  .aa > main.bl-main {
    gap: 18px;
    padding: 4px 0 32px;
  }

  .aa .bl-page {
    gap: 18px;
  }

  .aa .bl-top {
    gap: 18px;
  }

  .aa .bl-head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .aa .bl-headtext {
    gap: 6px;
  }

  /* The phone board's h1 is the smaller headline (t-hs). */
  .aa .bl-h1 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 660;
    letter-spacing: -0.2px;
  }

  .aa .bl-search {
    width: auto;
  }

  /* The phone board's search is the phone pill: 16 px text (iOS zooms
     into smaller inputs). */
  .aa .bl-search input {
    font-size: 16px;
  }

  /* The chips scroll sideways, to the screen's edges (MBlog's m-scroll). */
  .aa .bl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px;
    scrollbar-width: none;
  }

  .aa .bl-chips > * {
    flex: none;
  }

  .aa .bl-cat {
    font-size: 11px;
  }

  .aa .bl-cat > i {
    --_size: 14px;
    font-size: 14px;
  }

  /* The featured article: its cover on top (MBlog's mb-feat). */
  .aa .bl-feat {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 28px;
  }

  .aa .bl-feat .media {
    margin: 8px 8px 0;
    border-radius: 20px;
  }

  .aa .bl-feat :where(.media) img {
    aspect-ratio: 342 / 192;
  }

  .aa .bl-feat .body {
    gap: 8px;
    padding: 14px 16px 18px;
  }

  .aa .bl-feat-h {
    font-size: 20px;
    line-height: 27px;
    letter-spacing: 0.1px;
    text-wrap: wrap;
  }

  /* MBlog's excerpt is body medium (t-bm): its size and its spacing. */
  .aa .bl-feat-ex {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
  }

  .aa .bl-by {
    gap: 4px 6px;
    font-size: 12px;
    line-height: 16px;
  }

  .aa .bl-by img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  /* The featured box's byline is one plain line (MBlog's mb-meta); an
     article's keeps the name bold. */
  .aa .bl-feat :where(.bl-by) b {
    font-weight: 400;
    color: var(--on-surface-variant);
  }

  .aa .bl-latest {
    gap: 10px;
  }

  /* "Artikel terbaru" with the count on its right (MBlog's m-sechead; as
     specific as storefront.css's column rule for a section head's text). */
  .aa .aa-sechead > div.bl-sechead-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
  }

  /* t-tl emph, as MBlog's section head. */
  .aa .bl-sechead h2 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 650;
    letter-spacing: normal;
  }

  .aa .bl-sechead p {
    font-size: 12px;
    line-height: 16px;
  }

  /* Cards become rows: the cover on the left (MBlog's mb-item). */
  .aa .bl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .aa .bl-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 12px 8px 8px;
    border-radius: 22px;
  }

  .aa .bl-card .media {
    margin: 0;
    border-radius: 14px;
  }

  .aa .bl-card :where(.media) img {
    aspect-ratio: 112 / 84;
  }

  .aa .bl-card .body {
    gap: 4px;
    padding: 2px 0 0;
  }

  .aa .bl-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-radius: 0;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0.1px;
  }

  .aa .bl-card .ex {
    display: none;
  }

  .aa .bl-card .meta {
    padding-top: 0;
    font-size: 12px;
    line-height: 16px;
  }

  .aa .bl-more-btn {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }

  /* The newsletter box (MBlog's mb-news). */
  .aa .bl-news {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 24px 20px;
    border-radius: 28px;
  }

  .aa .bl-news .eyebrow {
    font-size: 13px;
  }

  .aa .bl-news-h {
    font-size: 22px;
    line-height: 28px;
    font-weight: 650;
    letter-spacing: normal;
  }

  .aa .bl-news-p {
    opacity: 0.85;
  }

  .aa .bl-news .aa-fld-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  /* A plain <button> is content-box in BeerCSS: full width needs border-box. */
  .aa .bl-news .aa-fld-row > button {
    width: 100%;
    box-sizing: border-box;
  }

  /* An article (MArticle). */
  .aa > main.ar-main {
    gap: 20px;
    padding: 4px 0 32px;
  }

  .aa .ar-wrap {
    width: auto;
    margin-inline: 0;
    gap: 20px;
  }

  .aa .ar-head {
    gap: 12px;
    padding: 0 16px;
  }

  .aa .ar-h1 {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: -0.4px;
  }

  .aa .ar-dek {
    font-size: 16px;
    line-height: 25px;
  }

  .aa .ar-byrow {
    padding-top: 0;
    border-top: 0;
  }

  .aa .ar-by {
    gap: 10px;
    font-size: 12px;
    line-height: 16px;
  }

  /* Name above, date · time under it (MArticle's ma-by). */
  .aa .ar-by-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .aa .ar-by-text b {
    font-size: 14px;
    line-height: 20px;
  }

  .aa .ar-by-meta {
    gap: 4px;
  }

  .aa .ar-by-dot {
    display: none;
  }

  .aa .ar-cover {
    margin: 0 16px;
    border-radius: 24px;
  }

  .aa .ar-cover img {
    aspect-ratio: 358 / 200;
  }

  .aa .ar-toc-fold {
    margin: 0 16px;
  }

  .aa .ar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .aa .ar-col {
    gap: 20px;
  }

  .aa article.ar-body {
    gap: 18px;
    padding: 0 16px;
  }

  .aa .ar-body .p {
    font-size: 17px;
    line-height: 28px;
  }

  .aa .ar-body .h2 {
    font-size: 22px;
    line-height: 29px;
    letter-spacing: 0.1px;
    margin-top: 10px;
  }

  .aa .ar-body .ul {
    gap: 8px;
  }

  .aa .ar-body .ul li {
    padding-left: 24px;
    font-size: 17px;
    line-height: 27px;
  }

  .aa .ar-body .ul li::before {
    left: 6px;
    top: 11px;
    width: 7px;
    height: 7px;
  }

  /* A long formula wraps on a phone instead of scrolling (MArticle). */
  .aa .ar-code {
    align-items: flex-start;
    gap: 4px;
    padding: 14px 6px 14px 16px;
    border-radius: 16px;
  }

  .aa .ar-code code {
    overflow-x: visible;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 13px;
    line-height: 21px;
    padding-top: 4px;
  }

  .aa .ar-tip {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .aa .ar-tip .ic {
    width: 36px;
    height: 36px;
  }

  .aa .ar-tip :where(.ic) > i {
    --_size: 20px;
    font-size: 20px;
  }

  .aa .ar-tip b {
    font-size: 14px;
    line-height: 20px;
  }

  .aa .ar-tip span {
    font-size: 15px;
    line-height: 23px;
  }

  .aa .ar-note {
    gap: 8px;
    font-size: 13px;
    line-height: 19px;
  }

  .aa .ar-note i {
    --_size: 18px;
    font-size: 18px;
  }

  /* The table scrolls sideways to the screen's edge (MArticle's ma-table). */
  .aa .ar-table-scroll {
    margin-right: -16px;
    border-radius: 16px 0 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .aa .ar-table table {
    width: 560px;
    font-size: 13px;
  }

  .aa .ar-table :is(th, td) {
    padding: 10px 12px;
  }

  .aa .ar-table th {
    font-size: 11px;
  }

  .aa .ar-cap {
    font-size: 12px;
    line-height: 16px;
  }

  /* The product call-out stacks (MArticle's ma-prod). */
  .aa .ar-prod {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 8px 8px 14px;
    border-radius: 22px;
  }

  .aa .ar-prod :where(.media) img {
    aspect-ratio: 342 / 160;
  }

  .aa .ar-prod .tx {
    padding: 0 8px;
  }

  .aa .ar-prod .aa-pcat {
    font-size: 11px;
  }

  /* MArticle's call-out title is title small (t-ts). */
  .aa .ar-prod-title {
    font-size: 14px;
    line-height: 20px;
  }

  .aa .ar-prod-buy {
    gap: 10px;
    margin-top: 2px;
  }

  .aa .ar-prod-buy .aa-price {
    font-size: 17px;
  }

  .aa .ar-foot {
    gap: 16px;
    margin: 0 16px;
    padding-top: 20px;
  }

  .aa .ar-author {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
  }

  .aa .ar-author img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .aa .ar-author-text {
    gap: 2px;
  }

  /* The name is title small on the phone board (t-ts). */
  .aa .ar-author-text .t-tm {
    font-size: 14px;
    line-height: 20px;
  }

  .aa .ar-related {
    gap: 10px;
  }

  .aa .ar-relhead h2 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 650;
    letter-spacing: normal;
  }

  .aa .nl-confirm {
    padding: 24px 0 48px;
  }

  .aa .nl-card {
    padding: 28px 20px;
    border-radius: 28px;
  }
}
