/* Shared Tessera styles: the default frame, links, video, pasted notes, and image boxes.
   Tokens fall back to the measurements below. The Styles page writes site.style.
   Only values that differ from these defaults are copied into a later style element. */

:root {
  --tessera-sidebar-width: 300px;
  --tessera-bar-height: 42px;
  --tessera-content-max: 1100px;
  --tessera-font-size: 16px;
  --tessera-font-a: "Lekton", sans-serif;
  --tessera-font-b: "Roboto", sans-serif;
  --tessera-font-c: "Orbitron", sans-serif;
  --tessera-font-d: "Thasadith", sans-serif;
  --tessera-bar: #009688;
  --tessera-bar-text: #ffffff;
  --tessera-sidebar: #ffffff;
  --tessera-sidebar-text: #111111;
  --tessera-page: #ffffff;
  --tessera-text: #111111;
  --tessera-muted: #666666;
  --tessera-accent: #009688;
  --tessera-link: #00796b;
  --tessera-toc-bg: rgba(0, 150, 136, 0.06);
  --tessera-toc-border: rgba(0, 150, 136, 0.2);
  --tessera-toc-accent-bar: var(--tessera-accent);
  --tessera-toc-radius: 0.45rem;
  --tessera-toc-padding-y: 0.85rem;
  --tessera-toc-padding-x: 1.15rem;
  --tessera-toc-max-width: none;
  --tessera-toc-title-size: 0.78rem;
  --tessera-toc-title-tracking: 0.07em;
  --tessera-toc-title-color: var(--tessera-muted);
  --tessera-toc-item-gap: 0.3rem;
  --tessera-toc-list-padding-left: 1.2rem;
  --tessera-toc-indent-step: 1.1rem;
  --tessera-toc-list-style: disc;
  --tessera-toc-bullet-color: var(--tessera-accent);
  --tessera-toc-link-color: var(--tessera-link);
  --tessera-toc-link-hover-color: var(--tessera-accent);
}

/* Keep the vertical bar present so short and tall pages share one width. */
html {
  overflow-y: scroll;
  overscroll-behavior: none;
}

body {
  margin: 0;
  overscroll-behavior: none;
  background: var(--tessera-page);
  color: var(--tessera-text);
  font-size: var(--tessera-font-size);
}

.tessera-back-to-top {
  position: fixed;
  z-index: 13;
  right: 1rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #c8c8c4;
  border-radius: 999px;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    background-color 0.15s ease;
}

.tessera-back-to-top svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tessera-back-to-top:hover {
  background: #f6f6f4;
}

.tessera-back-to-top:focus-visible {
  outline: 2px solid var(--tessera-accent);
  outline-offset: 2px;
}

.tessera-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.fontA,
body.fontA h1,
body.fontA h2,
body.fontA h3,
body.fontA h4,
body.fontA h5,
body.fontA h6 {
  font-family: var(--tessera-font-a);
}
body.fontB,
body.fontB h1,
body.fontB h2,
body.fontB h3,
body.fontB h4,
body.fontB h5,
body.fontB h6 {
  font-family: var(--tessera-font-b);
}
body.fontC,
body.fontC h1,
body.fontC h2,
body.fontC h3,
body.fontC h4,
body.fontC h5,
body.fontC h6 {
  font-family: var(--tessera-font-c);
}
body.fontD,
body.fontD h1,
body.fontD h2,
body.fontD h3,
body.fontD h4,
body.fontD h5,
body.fontD h6 {
  font-family: var(--tessera-font-d);
}

.tessera-top .tessera-bar {
  height: var(--tessera-bar-height);
  background-color: var(--tessera-bar);
  color: var(--tessera-bar-text);
}

.tessera-top .tessera-bar .w3-bar-item,
.tessera-menu-btn,
.tessera-brand,
.tessera-font-btn {
  color: var(--tessera-bar-text);
}

.tessera-fonts {
  float: right;
  display: flex;
  align-items: center;
  height: var(--tessera-bar-height);
  gap: 0.15rem;
  padding-right: 0.5rem;
}

.tessera-font-btn {
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
}

.tessera-sidebar.w3-sidebar {
  z-index: 3;
  width: var(--tessera-sidebar-width);
  top: var(--tessera-bar-height);
  bottom: 0;
  height: auto;
  overscroll-behavior: none;
  background-color: var(--tessera-sidebar);
  color: var(--tessera-sidebar-text);
}

.tessera-sidebar a {
  color: var(--tessera-sidebar-text);
}

.tessera-sidebar a.is-active {
  background-color: var(--tessera-accent) !important;
  color: var(--tessera-bar-text) !important;
}

/* Sub-level (navTree) and grouped sublinks: drop W3 .w3-ul row chrome; match Top-level bar items. */
.tessera-sidebar .tessera-nav-tree.w3-ul li,
.tessera-sidebar .tessera-nav-collapse-root .tessera-nav-sublinks.w3-ul li {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.tessera-sidebar .tessera-nav-tree a.w3-bar-item,
.tessera-sidebar .tessera-nav-tree a.w3-button,
.tessera-sidebar .tessera-nav-collapse-root .tessera-nav-sublinks a.w3-bar-item,
.tessera-sidebar .tessera-nav-collapse-root .tessera-nav-sublinks a.w3-button {
  display: block;
  width: 100%;
  float: none;
  text-align: left;
  padding: 8px 16px;
}

.tessera-sidebar .tessera-nav-branch > .w3-text-theme {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.85;
  padding: 0.75rem 16px 0.25rem;
  margin: 0;
}

.tessera-sidebar .tessera-nav-tree ul.tessera-nav-tree {
  margin: 0;
  padding: 0 0 0 0.75rem;
}

.tessera-sidebar .tessera-nav-sublinks .w3-bar-item {
  font-size: 0.92em;
}

.tessera-main {
  margin-top: var(--tessera-bar-height);
}

.tessera-content {
  max-width: var(--tessera-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1rem 2rem;
}

/* Space between composed blocks (headings, text, panels, media, …). */
.tessera-block {
  margin: 0 0 1.35rem;
}

.tessera-block:last-child {
  margin-bottom: 0;
}

.tessera-block.w3-panel {
  margin-top: 0;
}

/* Framed Card / ImgBox: soft white fill (beats solid .w3-white on cards). */
.tessera-card.w3-card,
.tessera-imgbox.w3-card {
  background-color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 0.5rem;
}

.tessera-block.w3-card:not(.tessera-imgbox) {
  padding: 1.5rem 1.65rem !important;
  margin-top: 1.25rem !important;
  margin-bottom: 2.5rem !important;
}

.tessera-block.w3-card:not(.tessera-imgbox):last-child {
  margin-bottom: 2.5rem !important;
}

.rt-card-body > .tessera-block:last-child,
.rt-panel-body > .tessera-block:last-child {
  margin-bottom: 0;
}

.rt-card-body > .tessera-block:first-child,
.rt-panel-body > .tessera-block:first-child {
  margin-top: 0;
}

.tessera-card > h3.w3-text-theme,
.tessera-block.w3-card > h3.w3-text-theme {
  margin: 0 0 0.75rem;
}

/* Quote wraps use w3-content; restore auto sides after .tessera-block's margin shorthand. */
.tessera-block.w3-content {
  margin-left: auto;
  margin-right: auto;
}

.w3-panel.tessera-quote {
  position: relative;
  /* Own the inset here. A theme rule such as `#content p { margin-top: 0 }`
     would otherwise pull the words up against the opening mark. */
  padding: 1.5rem 16px 1rem;
}

.tessera-quote > p {
  margin: 0 !important;
}

.tessera-quote-mark {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--tessera-text);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

.tessera-quote-open {
  top: 0.35rem;
  left: 0.65rem;
}

/* ” sits high in Georgia’s em box, so the line box’s bottom is mostly empty.
   0.525em is that gap minus the open mark’s own inset, which puts the glyph
   on the corner instead of a full line above it. */
.tessera-quote-close {
  right: 0.65rem;
  bottom: calc(0.35rem - 0.525em);
}

.tessera-quote > .w3-right-align {
  margin-top: 0.85rem !important;
  margin-right: 1.75rem !important;
}

.tessera-text :where(p, ul, ol) {
  margin: 0 0 1em;
  line-height: 1.55;
}

.tessera-text pre.tessera-pre {
  margin: 0 0 1em;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.03);
}

.tessera-text pre.tessera-pre:last-child {
  margin-bottom: 0;
}

.tessera-text :where(p, ul, ol):last-child {
  margin-bottom: 0;
}

.tessera-text :where(p):has(> br:only-child) {
  margin-bottom: 0;
  min-height: 1.55em;
}

.tessera-block.tessera-text.tessera-loose {
  margin-bottom: 2.35rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

.tessera-block.tessera-text.tessera-loose:not(:first-child) {
  margin-top: 1rem;
}

.tessera-text > :is(h1, h2, h3, h4) {
  margin: 0 0 0.65em;
  line-height: 1.25;
}

/* Leading space above headings that follow body copy or an earlier block. */
.tessera-text > :is(h1, h2, h3, h4):not(:first-child),
.tessera-block.tessera-text:not(:first-child) > :is(h1, h2, h3, h4):first-child {
  margin-top: 1.75rem;
}

.rt-card-body .tessera-text > :is(h1, h2, h3, h4):first-child,
.rt-card-body .tessera-text > :not(:is(h1, h2, h3, h4)):first-child > :is(h1, h2, h3, h4):first-child,
.rt-panel-body .tessera-text > :is(h1, h2, h3, h4):first-child,
.rt-panel-body .tessera-text > :not(:is(h1, h2, h3, h4)):first-child > :is(h1, h2, h3, h4):first-child {
  margin-top: 0;
}

.tessera-card > :is(h1, h2, h3, h4).w3-text-theme:first-child,
.tessera-block.w3-card > :is(h1, h2, h3, h4).w3-text-theme:first-child,
.rt-card-body > :is(h1, h2, h3, h4).tessera-block:first-child,
.rt-panel-body > :is(h1, h2, h3, h4).tessera-block:first-child {
  margin-top: 0;
}

body.leftnav .tessera-sidebar {
  left: 0;
  right: auto;
}

body.rightnav .tessera-sidebar {
  right: 0;
  left: auto;
}

/* The standing column is already on the page from 993px up. The slide is
   only for the flyout below that. */
@media (max-width: 992px) {
  body.leftnav .tessera-sidebar {
    animation: animateleft 0.4s;
  }

  body.rightnav .tessera-sidebar {
    animation: animateright 0.4s;
  }
}

@media (min-width: 993px) {
  body.leftnav .tessera-main {
    margin-left: var(--tessera-sidebar-width);
  }

  body.rightnav .tessera-main {
    margin-right: var(--tessera-sidebar-width);
  }

  .tessera-sidebar,
  .w3-sidebar.w3-collapse.w3-animate-left,
  .w3-sidebar.w3-collapse.w3-animate-right {
    animation: none;
  }
}

.tessera-footer {
  background: var(--tessera-bar);
  color: var(--tessera-bar-text);
  padding: 1rem 1.5rem;
}

body.footer-fixed .tessera-footer,
body.footer-fixed .wh-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

body.footer-fixed .tessera-main,
body.footer-fixed .wh-main {
  padding-bottom: 4.5rem;
}

@media (min-width: 993px) {
  body.footer-fixed.leftnav .tessera-footer,
  body.footer-fixed.leftnav .wh-footer {
    left: var(--tessera-sidebar-width);
    right: 0;
  }

  body.footer-fixed.rightnav .tessera-footer,
  body.footer-fixed.rightnav .wh-footer {
    left: 0;
    right: var(--tessera-sidebar-width);
  }
}

.tessera-footer p {
  margin: 0;
}

/* Footer-scoped navTree: bold column titles, space between columns. */
.tessera-nav-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tessera-nav-footer.w3-ul > li {
  border-bottom: none;
}

.tessera-nav-footer > li {
  padding: 0.15rem 0.75rem 0.5rem;
}

.tessera-nav-footer .tessera-nav-tree.w3-ul li {
  padding: 0;
  margin: 0;
  border: 0;
}

.tessera-nav-footer > .tessera-nav-branch > span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.tessera-nav-footer > li > a,
.tessera-nav-footer > li > a.w3-button,
.tessera-nav-footer > li > a.w3-bar-item {
  display: block;
  font-weight: 700;
}

.tessera-nav-footer > li:not(.tessera-nav-branch) > ul.tessera-nav-tree > li:first-child > a,
.tessera-nav-footer > li:not(.tessera-nav-branch) > ul.tessera-nav-tree > li:first-child > a.w3-button {
  display: block;
  font-weight: 700;
}

.tessera-nav-footer ul ul {
  margin-top: 0.35rem;
}

.tessera-nav-footer ul ul a,
.tessera-nav-footer ul ul a.w3-button {
  display: block;
  font-weight: normal;
}

.tessera-main a {
  color: var(--tessera-link);
}

.tessera-toc {
  box-sizing: border-box;
  max-width: var(--tessera-toc-max-width);
  padding: var(--tessera-toc-padding-y) var(--tessera-toc-padding-x);
  border: 1px solid var(--tessera-toc-border);
  border-left-width: 0.28rem;
  border-left-color: var(--tessera-toc-accent-bar);
  border-radius: var(--tessera-toc-radius);
  background: var(--tessera-toc-bg);
}

.tessera-toc-title {
  margin: 0 0 0.55rem;
  font-family: var(--tessera-font-a);
  font-size: var(--tessera-toc-title-size);
  font-weight: 700;
  letter-spacing: var(--tessera-toc-title-tracking);
  text-transform: uppercase;
  color: var(--tessera-toc-title-color);
}

.tessera-toc-list {
  list-style-type: var(--tessera-toc-list-style);
  list-style-position: outside;
  margin: 0;
  padding: 0 0 0 var(--tessera-toc-list-padding-left);
}

.tessera-toc-list > li {
  margin: var(--tessera-toc-item-gap) 0;
  padding-left: 0.2rem;
}

.tessera-toc-list > li::marker {
  color: var(--tessera-toc-bullet-color);
}

.tessera-toc-list a {
  color: var(--tessera-toc-link-color);
  text-decoration: none;
  text-underline-offset: 0.12em;
}

.tessera-toc-list a:hover {
  color: var(--tessera-toc-link-hover-color);
  text-decoration: underline;
}

.tessera-toc-list > li.tessera-toc-indent-1 {
  margin-left: calc(var(--tessera-toc-indent-step) * 1);
}

.tessera-toc-list > li.tessera-toc-indent-2 {
  margin-left: calc(var(--tessera-toc-indent-step) * 2);
}

.tessera-toc-list > li.tessera-toc-indent-3 {
  margin-left: calc(var(--tessera-toc-indent-step) * 3);
}

a.tessera-page-missing,
.tessera-main a.tessera-page-missing {
  color: #c62828;
  text-decoration: underline dotted;
}

.tessera-search-box {
  position: relative;
  margin: 0.5rem 0 1rem;
}

.tessera-sidebar .tessera-search-box {
  padding: 0 8px;
}

.tessera-search-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  overscroll-behavior: none;
}

.tessera-search-suggest a {
  display: block;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
}

.tessera-search-suggest [role="option"][aria-selected="true"] {
  background: rgba(0, 150, 136, 0.12);
}

.tessera-search-suggest [role="option"][aria-selected="true"] a {
  color: var(--tessera-link);
}

.tessera-search-hit {
  margin: 0.75rem 0;
}

.tessera-search-desc {
  margin-top: 0.25rem;
}

.tessera-breadcrumbs {
  padding: 0;
  margin: 0 0 1rem;
  color: var(--tessera-muted);
  font-size: 0.9em;
}

.tessera-breadcrumbs a {
  color: var(--tessera-link);
  text-decoration: none;
}

.tessera-crumb-sep {
  margin: 0 0.4rem;
}

.tessera-links {
  margin: 1rem 0;
  color: var(--tessera-text);
}

.tessera-links-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.tessera-links-list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.tessera-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tessera-link-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--tessera-accent);
  color: var(--tessera-bar-text);
  text-decoration: none;
}

.tessera-link-card {
  display: block;
  min-width: 8rem;
  padding: 0.75rem 1rem;
  background: var(--tessera-page);
  color: var(--tessera-text);
  border: 1px solid var(--tessera-muted);
  text-decoration: none;
}

.tessera-imgbox img {
  width: 100%;
}

/* A float with no height is skipped, so a blank side column lets the next one slide left. */
.w3-row-padding > :is(.w3-half, .w3-third, .w3-twothird, .w3-threequarter, .w3-quarter) {
  min-height: 1px;
}

.tessera-youtube {
  box-sizing: border-box;
}

/* Card / ImgBox proportional width (centered). Nested fractions stack vs the parent. */
.tessera-card[data-width="threequarter"],
.tessera-imgbox[data-width="threequarter"] {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.tessera-card[data-width="twothird"],
.tessera-imgbox[data-width="twothird"] {
  max-width: 66.666%;
  margin-left: auto;
  margin-right: auto;
}

.tessera-card[data-width="half"],
.tessera-imgbox[data-width="half"] {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.tessera-card[data-width="third"],
.tessera-imgbox[data-width="third"] {
  max-width: 33.333%;
  margin-left: auto;
  margin-right: auto;
}

.tessera-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tessera-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .tessera-card[data-width="threequarter"],
  .tessera-card[data-width="twothird"],
  .tessera-card[data-width="half"],
  .tessera-card[data-width="third"],
  .tessera-imgbox[data-width="threequarter"],
  .tessera-imgbox[data-width="twothird"],
  .tessera-imgbox[data-width="half"],
  .tessera-imgbox[data-width="third"] {
    max-width: 100%;
  }
}

/* Ruled sheet, slightly askew. The sheet grows with its content. */
.tessera-pasted {
  overflow: visible;
  max-width: 40rem;
  margin: 1.75rem auto 2.25rem;
  padding: 0.35rem 0.5rem 0.75rem;
}

.tessera-pasted-sheet {
  --tessera-rule: calc(round(1.875 * var(--tessera-font-size, 16px), 1px));
  --tessera-sheet-inset: calc(round(0.45 * var(--tessera-font-size, 16px), 1px));
  position: relative;
  margin: 0;
  padding: var(--tessera-sheet-inset) 1.2rem 0.2rem 2.9rem;
  font-size: var(--tessera-font-size);
  color: #1c2744;
  line-height: var(--tessera-rule);
  background-color: #fffdf6;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--tessera-rule) - 1px),
      rgba(120, 156, 196, 0.55) calc(var(--tessera-rule) - 1px),
      rgba(120, 156, 196, 0.55) var(--tessera-rule)
    ),
    linear-gradient(to right, transparent 2.2rem, rgba(196, 74, 74, 0.75) 2.2rem, rgba(196, 74, 74, 0.75) 2.28rem, transparent 2.28rem);
  background-repeat: repeat, no-repeat;
  background-position: 0 var(--tessera-sheet-inset), 0 0;
  background-attachment: local, scroll;
  border-radius: 2px 4px 1px 3px;
  transform: rotate(-2deg);
  box-shadow:
    2px 3px 0 rgba(0, 0, 0, 0.06),
    8px 14px 18px rgba(0, 0, 0, 0.18);
}

.tessera-pasted-sheet :where(p, div, ul, ol, h2, h3, li) {
  margin: 0;
  line-height: var(--tessera-rule);
}

.tessera-pasted-sheet [contenteditable] {
  margin: 0;
  line-height: inherit;
}

.tessera-blog-hero img,
.tessera-blog-card img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tessera-blog-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
  margin: 0 0 1.75rem;
}

.tessera-blog-card:not(:has(.tessera-blog-hero)) {
  grid-template-columns: minmax(0, 1fr);
}

.tessera-blog-card > :not(.tessera-blog-hero) {
  grid-column: 1;
}

.tessera-blog-card > .tessera-blog-hero {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
}

.tessera-blog-card > .tessera-blog-hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

[data-tessera-blog="article"] .tessera-blog-hero {
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

[data-tessera-blog="article"] .tessera-blog-hero img {
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
}

[data-tessera-blog="article"][data-hero="full"] .tessera-blog-hero {
  max-width: none;
}

[data-tessera-blog="article"][data-hero="full"] .tessera-blog-hero img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

[data-tessera-blog="article"][data-hero="side"]:has(.tessera-blog-hero) .tessera-blog-live {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
}

[data-tessera-blog="article"][data-hero="side"] .tessera-blog-hero {
  grid-column: 2;
  grid-row: 1 / span 3;
  max-width: none;
  margin: 0;
}

[data-tessera-blog="article"][data-hero="side"] .tessera-blog-hero img {
  aspect-ratio: 3 / 2;
  max-height: none;
}

[data-tessera-blog="article"][data-hero="side"]:has(.tessera-blog-hero) .tessera-blog-body,
[data-tessera-blog="article"][data-hero="side"]:has(.tessera-blog-hero) .tessera-blog-neighbors {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .tessera-blog-card,
  .tessera-blog-card:not(:has(.tessera-blog-hero)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .tessera-blog-card > .tessera-blog-hero {
    grid-column: 1;
    grid-row: auto;
    max-width: 14rem;
    margin: 0 0 0.75rem;
  }

  [data-tessera-blog="article"][data-hero="side"]:has(.tessera-blog-hero) .tessera-blog-live {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-tessera-blog="article"][data-hero="side"] .tessera-blog-hero {
    grid-column: 1;
    grid-row: auto;
    max-width: 16rem;
    margin: 0 0 0.75rem;
  }
}

.tessera-blog-card h2,
.tessera-blog-byline,
.tessera-blog-meta,
.tessera-blog-lead,
.tessera-blog-prompt,
.tessera-blog-empty {
  margin: 0.35rem 0;
}

.tessera-blog-byline,
.tessera-blog-meta,
.tessera-blog-tenant {
  color: #5c6570;
}

.tessera-blog-tags,
.tessera-blog-tenants,
.tessera-blog-pager,
.tessera-blog-index-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}

.tessera-blog-neighbors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}

.tessera-blog-neighbor-start {
  justify-self: start;
  min-width: 0;
}

.tessera-blog-neighbor-end {
  justify-self: stretch;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.tessera-blog-neighbor-index {
  justify-self: center;
}

.tessera-blog-neighbor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
}

.tessera-blog-neighbor-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tessera-blog-neighbor-btn {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #616161;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.tessera-blog-neighbor:hover .tessera-blog-neighbor-btn,
.tessera-blog-neighbor:focus-visible .tessera-blog-neighbor-btn {
  background: #757575;
  color: #fff;
}

.tessera-blog-tools {
  margin: 1rem 0 1.5rem;
}

.tessera-blog-query {
  max-width: 24rem;
}

.tessera-blog-index-row {
  margin: 0.4rem 0;
}

.tessera-blog-pending {
  font-style: italic;
}
