/* pad-samples site: small touches on top of Material */
.md-typeset table img { border-radius: 4px; }
.md-typeset details { font-size: .78rem; }
.md-typeset .md-typeset__table { width: 100%; }
.md-typeset h1 { font-weight: 600; }
/* a variable name is read and typed whole: never cut it */
.md-typeset td:first-child code { white-space: nowrap; }
/* long Robin lines wrap on screen; the copy button still copies each line as one line */
.md-typeset pre > code { white-space: pre-wrap; word-break: break-word; }
/* Anne's logo stays in the header on narrow screens too (the theme hides it below 76.25em) */
@media screen and (max-width: 76.2344em) { .md-header__button.md-logo { display: inline-block; } .md-header__button.md-logo img { height: 1.6rem; } }
/* the gallery: one card per sample, a search box and one filter per category, in the style of the illustrations */
.ag-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin: 1.2rem 0 1.2rem; }
.ag-searchbox { flex: 1 1 15rem; max-width: 21rem; display: flex; align-items: center; gap: .5rem; padding: .35rem .7rem;
  border: 1px solid var(--md-default-fg-color--lightest); border-radius: .6rem; background: var(--md-default-bg-color);
  box-shadow: 0 .05rem .3rem rgba(63,81,181,.08); }
.ag-searchbox:focus-within { border-color: var(--md-primary-fg-color); }
.ag-search { flex: 1; border: 0; outline: 0; background: transparent; color: var(--md-default-fg-color); font: inherit; font-size: .75rem; }
.ag-icon { width: 1.1rem; height: 1.1rem; flex: none; filter: drop-shadow(0 .05rem .1rem rgba(0,0,0,.15)); }
.ag-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.md-typeset .ag-filter { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px; padding: .28rem .75rem .28rem .4rem; background: var(--md-default-bg-color); color: var(--md-default-fg-color);
  cursor: pointer; font: inherit; font-size: .72rem; box-shadow: 0 .05rem .25rem rgba(0,0,0,.06); transition: all .15s; }
.md-typeset .ag-filter span { font-size: .62rem; color: var(--md-default-fg-color--light); background: var(--md-code-bg-color);
  border-radius: 999px; padding: 0 .4rem; }
.md-typeset .ag-filter:hover { border-color: var(--md-primary-fg-color--light); }
.md-typeset .ag-filter.is-active { border-color: var(--md-primary-fg-color); color: var(--md-primary-fg-color); font-weight: 700;
  box-shadow: 0 0 0 .1rem rgba(63,81,181,.15); }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.3rem; }
.ag-card { position: relative; display: flex; flex-direction: column; background: var(--md-default-bg-color); border-radius: .8rem;
  border: 1px solid var(--md-default-fg-color--lightest); box-shadow: 0 .15rem .6rem rgba(63,81,181,.08); overflow: hidden;
  transition: transform .18s, box-shadow .18s; }
.ag-card:hover { transform: translateY(-.15rem); box-shadow: 0 .5rem 1.4rem rgba(63,81,181,.18); }
.ag-thumb { display: block; height: 10.5rem; background: #F6F7FB; border-bottom: 1px solid var(--md-default-fg-color--lightest); }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-thumb.is-cover img { object-position: center; }
.ag-thumb.is-shot img { object-position: left top; }
.ag-badge { position: absolute; top: 9.1rem; left: .9rem; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--md-default-bg-color); box-shadow: 0 .15rem .5rem rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; }
.md-typeset .ag-badge img { width: 1.6rem; height: 1.6rem; }
.ag-body { padding: 1.8rem 1rem .3rem; flex: 1; }
.md-typeset .ag-body h3 { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.md-typeset .ag-body h3 a { color: var(--md-primary-fg-color); }
.md-typeset .ag-body p { margin: 0 0 .6rem; font-size: .72rem; color: var(--md-default-fg-color--light);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ag-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.ag-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; padding: .12rem .5rem; border-radius: 999px;
  background: var(--md-code-bg-color); color: var(--md-default-fg-color--light); }
.ag-chip .ag-icon { width: .85rem; height: .85rem; }
.ag-author { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem .9rem; font-size: .66rem; line-height: 1.35;
  border-top: 1px solid var(--md-default-fg-color--lightest); margin-top: .6rem; }
.ag-author img { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: 0 .05rem .2rem rgba(0,0,0,.12); }
.ag-empty { color: var(--md-default-fg-color--light); }
