/* Blog index, post cards and post header. Uses the --ag-* tokens from tokens.css. The look follows the landing page's "Latest notes" section (docs/assets/landing/landing.css): hairlines, square corners, mono meta and computer-vision brackets on hover. Material's root font size is 20px, so 0.6rem here is 12px. */

/* ---------------------------------------------------------------- blog header */

/* Index, archive and category views: eyebrow, a big heading with a serif accent, one line of copy and topic chips */
/* The survey grid behind it comes from the global theme (body::before in extra.css) */
.blog-view .blog-head {
  margin: 0 0 2rem;
}

/* A square accent dot instead of a section number, so it does not read as part of the landing page's numbered sections */
.md-typeset .blog-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ag-ink-3);
  font: 500 0.6rem/1 var(--ag-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.md-typeset .blog-eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0.7em 0.15em 0;
  background-color: var(--ag-accent);
  vertical-align: middle;
}

.blog-view .blog-head h1 {
  margin: 0;
  color: var(--ag-ink);
  font-family: var(--ag-font-sans);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.blog-view .blog-head h1 em {
  padding-right: 0.06em;
  color: var(--ag-accent);
  font-family: var(--ag-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* The permalink makes no sense on a page header */
.blog-view .blog-head .headerlink {
  display: none;
}

.blog-view .blog-head .blog-lede {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--ag-ink-2);
  font-size: 0.8rem;
  line-height: 1.7;
}

.blog-view .blog-topics {
  margin: 1.4rem 0 0;
}

.blog-view .blog-topics > p,
.blog-topics__end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  margin: 0;
}

/* The last topic and "All tags" wrap as one, so the link never ends up alone on a line */
.blog-topics__end {
  flex-wrap: nowrap;
}

/* Chips stay 30px tall; a transparent band above and below brings the tap target to 44px */
.md-typeset .blog-topic {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--ag-line-strong);
  color: var(--ag-ink-2);
  font: 500 0.6rem/1 var(--ag-font-mono);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.md-typeset .blog-topic::before {
  content: "#";
  margin-right: 0.15rem;
  color: var(--ag-ink-3);
}

.md-typeset .blog-topic:not(.blog-topic--all)::after {
  content: "";
  position: absolute;
  inset: -7px -1px;
}

.md-typeset .blog-topic:focus-visible {
  border-color: var(--ag-accent);
  background: var(--ag-chip);
  color: var(--ag-ink);
}

@media (hover: hover) {
  .md-typeset .blog-topic:hover {
    border-color: var(--ag-accent);
    background: var(--ag-chip);
    color: var(--ag-ink);
  }
}

/* Note count on the tags page's chips */
.md-typeset .blog-topic__count {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--ag-line);
  color: var(--ag-ink-3);
  font-variant-numeric: tabular-nums;
}

/* "All tags" reads as a link, not another chip */
.md-typeset .blog-topic--all {
  border-color: transparent;
  color: var(--ag-ink-3);
}

.md-typeset .blog-topic--all::before {
  content: none;
}

.md-typeset .blog-topic--all::after {
  content: "→";
  margin-left: 0.35rem;
  transition: transform 0.25s var(--ag-ease-out);
}

.md-typeset .blog-topic--all:hover::after {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- index bar */

/* A HUD-like strip above the cards: how many notes, which page, and the feed */
.blog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  margin: 0 0 2.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ag-line-strong);
  color: var(--ag-ink-3);
  font: 500 0.575rem/1 var(--ag-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  margin: 0;
}

.blog-bar__dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--ag-leaf);
}

.blog-bar__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ag-leaf);
  animation: blog-ping 2.6s var(--ag-ease-out) infinite;
}

.blog-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ag-ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-bar a:hover,
.blog-bar a:focus-visible {
  color: var(--ag-accent);
}

/* Hugeicons carry their own stroke; these only size them */
.blog-note__go svg {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-bar svg {
  width: 0.7rem;
  height: 0.7rem;
}

/* ---------------------------------------------------------------- note cards */

.blog-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-notes__item {
  display: flex;
  margin: 0;
}

/* The landing's .note: a raised panel with a hairline border */
.blog-note {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--ag-line);
  background: var(--ag-bg-raise);
  transition: transform 0.3s var(--ag-ease-out), border-color 0.3s, background-color 0.35s;
}

/* On hover a card gets "detected": corner brackets and a label tab with its category and a confidence score */
.blog-note::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(var(--ag-accent), var(--ag-accent)) top left / 18px 2px, linear-gradient(var(--ag-accent), var(--ag-accent)) top left / 2px 18px, linear-gradient(var(--ag-accent), var(--ag-accent)) top right / 18px 2px, linear-gradient(var(--ag-accent), var(--ag-accent)) top right / 2px 18px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom left / 18px 2px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom left / 2px 18px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom right / 18px 2px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom right / 2px 18px;
  background-repeat: no-repeat;
  transition: opacity 0.25s, inset 0.3s var(--ag-ease-out);
}

.blog-note::after {
  content: attr(data-label);
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 2;
  padding: 4px 7px;
  background: var(--ag-accent);
  color: var(--ag-accent-ink);
  font: 600 10px/1 var(--ag-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(-100% + 4px));
  transition: opacity 0.25s, transform 0.3s var(--ag-ease-out);
}

.blog-note:focus-within {
  border-color: var(--ag-line-strong);
  transform: translateY(-3px);
}

.blog-note:focus-within::before {
  inset: -7px;
  opacity: 1;
}

.blog-note:focus-within::after {
  opacity: 1;
  transform: translateY(-100%);
}

/* Only with a real pointer, so a tapped card does not stay "detected" */
@media (hover: hover) {
  .blog-note:hover {
    border-color: var(--ag-line-strong);
    transform: translateY(-3px);
  }

  .blog-note:hover::before {
    inset: -7px;
    opacity: 1;
  }

  .blog-note:hover::after {
    opacity: 1;
    transform: translateY(-100%);
  }

  .blog-note:hover .blog-note__go {
    color: var(--ag-accent);
    transform: translate(2px, -2px);
  }
}

.blog-note__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin: 0 1.6rem 0.7rem 0;
  color: var(--ag-ink-3);
  font: 500 0.575rem/1.3 var(--ag-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Separators trail each item, so a wrapped line ends with "/" instead of starting with one */
.blog-note__meta > :not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--ag-ink-3);
  opacity: 0.55;
}

/* Category and tag links sit above the stretched title link */
.blog-note__meta a,
.blog-note__tags a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  transition: color 0.2s;
}

/* Small mono links, 15 to 17px tall: a transparent band around each brings the tap target to 44px without moving the text. Shared by the cards, the post byline and the post's tag row. */
.blog-note__meta a::before,
.blog-note__tags a::before,
.md-typeset .post-byline__meta a::before,
.md-typeset .post-tags__tag[href]::before {
  content: "";
  position: absolute;
  inset: -15px -0.25rem;
}

.blog-note__meta a {
  color: var(--ag-soil);
}

.blog-note__meta a:hover,
.blog-note__meta a:focus-visible {
  color: var(--ag-accent);
}

.blog-note__badge {
  color: var(--ag-ink-2);
}

.blog-note__badge--draft {
  color: var(--ag-soil);
}

.blog-note__title {
  margin: 0;
  color: var(--ag-ink);
  font: 700 0.84rem/1.35 var(--ag-font-sans);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.blog-note__title a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* The title link covers the whole card, so the card is one big target */
.blog-note__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-note__excerpt {
  display: -webkit-box;
  margin: 0.55rem 0 0;
  overflow: hidden;
  color: var(--ag-ink-2);
  font-size: 0.74rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.blog-note__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin: auto 0 0;
  padding-top: 0.9rem;
  font: 500 0.575rem/1.4 var(--ag-font-mono);
}

.blog-note__tags a,
.blog-note__tags span {
  color: var(--ag-leaf);
}

.blog-note__tags a:hover,
.blog-note__tags a:focus-visible {
  color: var(--ag-accent);
}

.blog-note__go {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 0.8rem;
  height: 0.8rem;
  color: var(--ag-ink-3);
  transition: transform 0.3s var(--ag-ease-out), color 0.3s;
}


/* ---------------------------------------------------------------- pagination */

/* Square page boxes; the current page is filled and gets the landing buttons' drafting lines */
.blog-view .md-pagination {
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 2.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ag-line);
  font: 500 0.65rem/1 var(--ag-font-mono);
}

.blog-view .md-pagination > * {
  position: relative;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--ag-line-strong);
  border-radius: 0;
  color: var(--ag-ink-2);
  background: transparent;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.blog-view .md-pagination__link:focus-visible {
  border-color: var(--ag-accent);
  background: var(--ag-chip);
  color: var(--ag-ink);
}

@media (hover: hover) {
  .blog-view .md-pagination__link:hover {
    border-color: var(--ag-accent);
    background: var(--ag-chip);
    color: var(--ag-ink);
  }
}

.blog-view .md-pagination__link svg,
.blog-view .md-pagination__link:hover svg,
.blog-view .md-pagination__link:focus svg {
  width: 0.9rem;
  color: currentColor;
}

.blog-view .md-pagination__current {
  border-color: var(--ag-accent);
  background: var(--ag-accent);
  color: var(--ag-accent-ink);
  font-weight: 600;
}

.blog-view .md-pagination__current::before,
.blog-view .md-pagination__current::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.blog-view .md-pagination__current::before {
  inset: -1px -6px;
  border-block: 1px solid var(--ag-accent);
}

.blog-view .md-pagination__current::after {
  inset: -6px -1px;
  border-inline: 1px solid var(--ag-accent);
}

.blog-view .md-pagination__dots {
  border-color: transparent;
}

/* ---------------------------------------------------------------- blog sidebar */

/* The theme already sets the section labels in mono and marks the current view; on blog views Archive and Categories also get a hairline above, so they read as two panels */
@media screen and (min-width: 76.25em) {
  .md-main__inner:has(> .blog-view) .md-nav--primary .md-nav__item--section > label.md-nav__link {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--ag-line);
  }

  .md-main__inner:has(> .blog-view) .md-nav--primary .md-nav__item--section .md-nav__item > a.md-nav__link:not(.md-nav__link--active) {
    color: var(--ag-ink-2);
  }

  .md-main__inner:has(> .blog-view) .md-nav--primary .md-nav__item--section .md-nav__item > a.md-nav__link:not(.md-nav__link--active):hover {
    color: var(--ag-ink);
  }
}

/* ---------------------------------------------------------------- post byline */

/* Under the title of a post: who wrote it, when, how long it takes and where it is filed */
.md-typeset h1:has(+ .post-byline) {
  margin-bottom: 1rem;
}

.md-typeset .post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin: 0 0 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ag-line-strong);
  border-bottom: 1px solid var(--ag-line);
}

.md-typeset .post-byline__author {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ag-ink);
  font: 600 0.7rem/1.2 var(--ag-font-sans);
  text-decoration: none;
  transition: color 0.2s;
}

.md-typeset a.post-byline__author:hover,
.md-typeset a.post-byline__author:focus-visible {
  color: var(--ag-accent);
}

/* A square avatar with small accent brackets, like a detected face in the landing hero */
.post-byline__face {
  position: relative;
  display: block;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
}

.md-typeset .post-byline__face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-byline__face::before {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background: linear-gradient(var(--ag-accent), var(--ag-accent)) top left / 7px 1.5px, linear-gradient(var(--ag-accent), var(--ag-accent)) top left / 1.5px 7px, linear-gradient(var(--ag-accent), var(--ag-accent)) top right / 7px 1.5px, linear-gradient(var(--ag-accent), var(--ag-accent)) top right / 1.5px 7px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom left / 7px 1.5px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom left / 1.5px 7px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom right / 7px 1.5px, linear-gradient(var(--ag-accent), var(--ag-accent)) bottom right / 1.5px 7px;
  background-repeat: no-repeat;
  transition: inset 0.3s var(--ag-ease-out);
}

.post-byline__author:hover .post-byline__face::before {
  inset: -6px;
}

.md-typeset .post-byline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
  color: var(--ag-ink-3);
  font: 500 0.6rem/1.4 var(--ag-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-byline__author + .post-byline__meta {
  padding-left: 1.2rem;
  border-left: 1px solid var(--ag-line);
}

.post-byline__meta > :not(:last-child)::after {
  content: "/";
  margin-left: 0.6rem;
  color: var(--ag-ink-3);
  opacity: 0.55;
}

.md-typeset .post-byline__meta a {
  position: relative;
  color: var(--ag-soil);
  text-decoration: none;
  transition: color 0.2s;
}

.md-typeset .post-byline__meta a:hover,
.md-typeset .post-byline__meta a:focus-visible {
  color: var(--ag-accent);
}

.md-typeset .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin: 0 0 1.8rem;
  font: 500 0.6rem/1.4 var(--ag-font-mono);
}

.md-typeset .post-tags a,
.md-typeset .post-tags span {
  position: relative;
  color: var(--ag-leaf);
  text-decoration: none;
  transition: color 0.2s;
}

.md-typeset .post-tags a:hover,
.md-typeset .post-tags a:focus-visible {
  color: var(--ag-accent);
}

/* ---------------------------------------------------------------- post sidebar */

.md-sidebar--post .md-post__back .md-nav__link {
  gap: 0.4rem;
  color: var(--ag-ink-2);
  font: 500 0.575rem/1 var(--ag-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.md-sidebar--post .md-post__back .md-nav__link:hover,
.md-sidebar--post .md-post__back .md-nav__link:focus-visible {
  color: var(--ag-accent);
}

.md-sidebar--post .md-post__back .md-nav__link svg {
  width: 0.8rem;
  transition: transform 0.25s var(--ag-ease-out);
}

.md-sidebar--post .md-post__back .md-nav__link:hover svg {
  transform: translateX(-3px);
}

/* "More in <category>": a short reading list, dates in mono */
.post-related {
  margin: 0 0.6rem 1.2rem;
}

.post-related__title {
  margin: 0 0 0.6rem;
  color: var(--ag-ink-3);
  font: 500 0.55rem/1.4 var(--ag-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-related__title a {
  color: var(--ag-accent);
  text-decoration: none;
}

.post-related__title a:hover {
  text-decoration: underline;
}

.post-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ag-line);
}

.post-related__list li {
  margin: 0;
  border-bottom: 1px solid var(--ag-line);
}

.post-related__list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0 0.6rem 0.5rem;
  border-left: 2px solid transparent;
  color: var(--ag-ink-2);
  font-size: 0.65rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.post-related__list a:hover,
.post-related__list a:focus-visible {
  border-left-color: var(--ag-accent);
  background: var(--ag-chip);
  color: var(--ag-ink);
}

.post-related__list time {
  color: var(--ag-ink-3);
  font: 500 0.5rem/1 var(--ag-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- post table of contents */

/* Below 960px Material hides the table of contents, so posts carry a folded one under the byline (blog-post.html). It borrows the admonition frame from extra.css; the leading :root outweighs those rules. */
:root .md-typeset details.post-toc {
  --adm: var(--ag-accent);
  margin: 0 0 1.8rem;
  border-color: var(--ag-line);
  border-left-color: var(--ag-accent);
  background-color: var(--ag-bg-raise);
}

:root .md-typeset details.post-toc > summary.post-toc__title {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 2.2rem 0 0.9rem;
  background-color: transparent;
  color: var(--ag-ink-2);
  font: 500 0.6rem/1 var(--ag-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:root .md-typeset details.post-toc > summary.post-toc__title::before {
  position: static;
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: 0.7em;
  background-color: var(--ag-accent);
  -webkit-mask-image: none;
  mask-image: none;
}

:root .md-typeset details.post-toc > summary.post-toc__title::after {
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
}

:root .md-typeset details.post-toc[open] > summary.post-toc__title::after {
  transform: translateY(-50%) rotate(90deg);
}

:root .md-typeset .post-toc__list {
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--ag-line);
}

:root .md-typeset .post-toc__list .post-toc__list {
  margin: 0 0 0 0.8rem;
}

:root .md-typeset .post-toc__list li {
  margin: 0;
}

:root .md-typeset .post-toc__list li::marker {
  content: none;
}

/* Each entry is a 44px-high row, the hairline rail on its left like the sidebar contents */
:root .md-typeset .post-toc__list a {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.2rem 0 0.2rem 0.8rem;
  color: var(--ag-ink-2);
  font-size: 0.74rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s;
}

:root .md-typeset .post-toc__list a:focus-visible {
  box-shadow: inset 2px 0 0 var(--ag-accent);
  color: var(--ag-ink);
}

@media (hover: hover) {
  .md-typeset .post-toc__list a:hover {
    box-shadow: inset 2px 0 0 var(--ag-accent);
    color: var(--ag-ink);
  }
}

@media screen and (min-width: 60em) {
  .md-typeset .post-toc {
    display: none;
  }
}

/* ---------------------------------------------------------------- mermaid */

/* site.js wraps each rendered diagram in .ag-mermaid. On small screens the diagram keeps a readable width and the wrapper scrolls sideways instead of shrinking it. */
.md-typeset .ag-mermaid {
  margin: 1em 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--ag-line-strong) transparent;
}

.md-typeset .ag-mermaid:focus-visible {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
}

.md-typeset .ag-mermaid > .mermaid {
  margin: 0;
}

@media screen and (max-width: 59.984375em) {
  .md-typeset .ag-mermaid > .mermaid {
    min-width: 36rem;
  }
}

/* ---------------------------------------------------------------- tags page */

/* docs/tags.md: a lede, a cloud of every tag with its note count, then each tag's notes, flowed into two columns on wide screens */
.md-typeset .tags-lede {
  max-width: 32rem;
  margin: -0.4rem 0 0;
  color: var(--ag-ink-2);
  font-size: 0.8rem;
  line-height: 1.7;
}

.md-typeset .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  margin: 1.4rem 0 2.8rem;
}

.md-typeset .tag-group {
  padding: 1rem 0 0.4rem;
  border-top: 1px solid var(--ag-line);
  break-inside: avoid;
}

.md-typeset .tag-group h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  background: none;
  color: var(--ag-ink);
  font: 600 0.7rem/1.4 var(--ag-font-mono);
  letter-spacing: 0.02em;
}

.md-typeset .tag-group__name::before {
  content: "#";
  margin-right: 0.15rem;
  color: var(--ag-leaf);
}

:root .md-typeset .tag-group__list {
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

:root .md-typeset .tag-group__list li {
  margin: 0;
}

:root .md-typeset .tag-group__list li::marker {
  content: none;
}

:root .md-typeset .tag-group__list a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.74rem;
  line-height: 1.45;
}

@media screen and (min-width: 60em) {
  .md-typeset .tag-index {
    columns: 2;
    column-gap: 3rem;
  }
}

/* ---------------------------------------------------------------- small screens */

/* Below 1220px Material puts the post sidebar under the article, so the reading list becomes a "read next" block */
@media screen and (max-width: 76.234375em) {
  .post-related {
    margin: 0 0.8rem 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--ag-line-strong);
  }

  .post-related__list a {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 44.984375em) {
  .blog-view .blog-head {
    margin-bottom: 1.6rem;
  }

  .blog-note {
    padding: 1.1rem 1rem 1rem;
  }

  .blog-bar {
    margin-bottom: 2rem;
  }

  /* The byline wraps: author on one line, meta on the next, without the divider */
  .post-byline__author + .post-byline__meta {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------------------------------------------------------------- motion */

@keyframes blog-ping {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }

  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-bar__dot::after {
    animation: none;
  }

  .blog-note,
  .blog-note::before,
  .blog-note::after,
  .blog-note__go {
    transition: none;
  }

  .blog-note:hover,
  .blog-note:focus-within {
    transform: none;
  }
}
