/* ============================================================================
   Databricks Field Notes — "Engineering Almanac"
   Warm paper · ink serif · lava accent. A printed field manual on the web.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ----------------------------------------------------------------- tokens */
:root {
  --paper:        #f5efe3;
  --paper-raised: #efe7d6;
  --paper-sunk:   #e9e0cd;
  --card:         #fbf7ee;

  --ink:          #1b1814;
  --ink-soft:     #4c463b;
  --ink-faint:    #8b8472;
  --ink-ghost:    #b4ac98;

  --lava:         #ff3621;
  --lava-deep:    #c41f0c;
  --lava-wash:    rgba(255, 54, 33, 0.10);
  --lava-tint:    rgba(255, 54, 33, 0.06);

  --slate:        #2f5b66;   /* secondary accent, used sparingly */

  --rule:         rgba(27, 24, 20, 0.13);
  --rule-strong:  rgba(27, 24, 20, 0.30);
  --rule-ghost:   rgba(27, 24, 20, 0.06);

  --shadow-soft:  0 1px 2px rgba(27,24,20,0.05), 0 8px 28px rgba(27,24,20,0.07);
  --shadow-lift:  0 2px 6px rgba(27,24,20,0.08), 0 18px 50px rgba(27,24,20,0.12);

  --sidebar-w:    20rem;
  --rail-w:       15rem;
  --measure:      44rem;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------- baseline */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

/* layered warm paper background + fine grid wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, var(--lava-tint), transparent 50%),
    linear-gradient(180deg, #f7f1e6 0%, #f1e9da 100%);
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--lava); color: #fff7f3; }

/* -------------------------------------------------------- reading progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 90;
  background: transparent;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lava-deep), var(--lava));
  box-shadow: 0 0 14px rgba(255,54,33,0.6);
  transition: width 0.08s linear;
}

/* ------------------------------------------------------------- shell grid */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ================================================================ SIDEBAR */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 2.2rem 1.6rem 2.5rem 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 30%),
    var(--paper-raised);
  border-right: 1px solid var(--rule);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-ghost) transparent;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--ink-ghost); border-radius: 99px; }

.brand {
  display: block;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lava-deep);
  font-weight: 600;
}
.brand__mark::before {
  content: "";
  width: 0.72rem; height: 0.72rem;
  background: var(--lava);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 10px rgba(255,54,33,0.5);
}
.brand__title {
  display: block;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.9rem;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-top: 0.6rem;
}
.brand__sub {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-style: italic;
  font-family: var(--serif);
}

.search-wrap {
  margin: -0.55rem 0 1.75rem;
}
.search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
#kb-search {
  --pagefind-ui-primary: var(--lava-deep);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--card);
  --pagefind-ui-border: var(--rule-strong);
  --pagefind-ui-tag: var(--paper-sunk);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0.45rem;
  --pagefind-ui-font: var(--sans);
  position: relative;
}
#kb-search .pagefind-ui__search-input {
  height: 2.65rem;
  padding-left: 2.45rem;
  font-size: 0.88rem;
  background: var(--card);
  box-shadow: inset 0 1px 2px rgba(27, 24, 20, 0.06);
}
#kb-search .pagefind-ui__search-clear {
  padding: 0 0.65rem;
  font-size: 0.7rem;
}
#kb-search .pagefind-ui__drawer {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(40rem, calc(100vw - 3rem));
  max-height: 65vh;
  overflow-y: auto;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.55rem;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
#kb-search .pagefind-ui__result {
  padding: 0.75rem 0;
  border-top-color: var(--rule);
}
#kb-search .pagefind-ui__result-title {
  font-size: 0.95rem;
}
#kb-search .pagefind-ui__result-excerpt {
  font-size: 0.78rem;
  line-height: 1.45;
}
.pagefind-meta {
  display: none;
}

.nav-group { margin-bottom: 1.6rem; }
.nav-group__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
  font-weight: 600;
}
.nav-group__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.35;
  padding: 0.4rem 0.6rem 0.4rem 0.85rem;
  margin: 0.05rem 0;
  border-radius: 0.4rem;
  position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-link__idx {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-ghost);
  font-weight: 500;
  flex-shrink: 0;
  width: 1.4rem;
  letter-spacing: 0.02em;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--lava-tint);
  transform: translateX(2px);
}
.nav-link:hover .nav-link__idx { color: var(--lava-deep); }

.nav-link.is-active {
  color: var(--ink);
  background: var(--lava-wash);
  font-weight: 600;
}
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 1.1rem;
  background: var(--lava);
  border-radius: 99px;
}
.nav-link.is-active .nav-link__idx { color: var(--lava); }

.sidebar__foot {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.7;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.sidebar__foot a { color: var(--lava-deep); text-decoration: none; }
.sidebar__foot a:hover { text-decoration: underline; }

/* ============================================================ MAIN COLUMN */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: 3.5rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 4.5rem 3.5rem 7rem;
  width: 100%;
}

.main--solo { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }

.article { min-width: 0; max-width: var(--measure); }

/* ------------------------------------------------------------- doc header */
.doc-head {
  margin-bottom: 3rem;
  animation: rise 0.7s var(--ease) both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lava-deep);
  font-weight: 600;
  margin-bottom: 1.3rem;
}
.eyebrow::before {
  content: "§";
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--lava);
}
.doc-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.doc-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.doc-meta .dot { width: 4px; height: 4px; border-radius: 99px; background: var(--ink-ghost); }
.doc-meta b { color: var(--ink-soft); font-weight: 600; }

/* ============================================================ PROSE BODY  */
.prose { animation: rise 0.7s var(--ease) 0.08s both; }

.prose > * + * { margin-top: 1.35rem; }

.prose p { margin: 0; color: var(--ink-soft); }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 600; }

/* headings */
.prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.15;
  scroll-margin-top: 3rem;
  position: relative;
}
.prose h2 {
  font-size: 1.85rem;
  font-weight: 600;
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 2.6rem; height: 2px;
  background: var(--lava);
}
.prose h3 {
  font-size: 1.32rem;
  font-weight: 600;
  margin-top: 2.5rem;
}
.prose h4 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-top: 2rem;
  color: var(--ink);
}
.prose h5, .prose h6 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.8rem;
  font-weight: 600;
}

/* heading anchor link (from python-markdown toc permalink) */
.prose .headerlink {
  text-decoration: none;
  color: var(--lava);
  opacity: 0;
  margin-left: 0.5rem;
  font-size: 0.8em;
  transition: opacity 0.15s var(--ease);
}
.prose h2:hover .headerlink,
.prose h3:hover .headerlink,
.prose h4:hover .headerlink { opacity: 0.7; }

/* links */
.prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--lava), var(--lava));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  padding-bottom: 1px;
  transition: background-size 0.2s var(--ease), color 0.2s var(--ease);
}
.prose a:hover {
  color: var(--lava-deep);
  background-size: 100% 100%;
  background-image: linear-gradient(var(--lava-wash), var(--lava-wash));
}
.prose a.external::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 0.72em;
  color: var(--lava-deep);
  margin-left: 0.2em;
  vertical-align: 0.1em;
}

/* lists */
.prose ul, .prose ol { margin: 0; padding-left: 1.5rem; color: var(--ink-soft); }
.prose li { margin: 0.4rem 0; padding-left: 0.3rem; }
.prose li::marker { color: var(--lava-deep); }
.prose ul { list-style: none; padding-left: 0.2rem; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.72em;
  width: 0.4rem; height: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--lava);
  transform: rotate(45deg);
}
.prose ul ul { margin-top: 0.4rem; }
.prose ul ul > li::before {
  background: var(--ink-ghost);
  border-color: var(--ink-ghost);
  width: 0.3rem; height: 0.3rem;
  transform: none;
  border-radius: 99px;
  top: 0.75em;
}
.prose ol { counter-reset: ol; padding-left: 0; list-style: none; }
.prose ol > li {
  position: relative;
  padding-left: 2.2rem;
  counter-increment: ol;
}
.prose ol > li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.05em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lava-deep);
  background: var(--lava-tint);
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  line-height: 1.5;
}

/* inline code */
.prose code {
  font-family: var(--mono);
  font-size: 0.83em;
  background: var(--lava-tint);
  color: var(--lava-deep);
  padding: 0.12em 0.4em;
  border-radius: 0.3rem;
  border: 1px solid rgba(255,54,33,0.14);
  white-space: nowrap;
}

/* code blocks */
.prose pre {
  font-family: var(--mono);
  background: #211d18;
  color: #ece3d1;
  border-radius: 0.7rem;
  padding: 1.3rem 1.5rem;
  overflow-x: auto;
  line-height: 1.62;
  font-size: 0.84rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.3);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #5a5141 transparent;
}
.prose pre::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), transparent 70%);
  border-radius: 0.7rem 0.7rem 0 0;
}
.prose pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}
.prose pre::-webkit-scrollbar { height: 8px; }
.prose pre::-webkit-scrollbar-thumb { background: #5a5141; border-radius: 99px; }

/* blockquotes → marginalia callout */
.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--lava);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
}
.prose blockquote p { color: var(--ink-soft); }

/* tables → ledger */
.table-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 32rem;
}
.prose thead th {
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1.5px solid var(--rule-strong);
  white-space: nowrap;
}
.prose tbody td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:nth-child(even) { background: rgba(27,24,20,0.022); }
.prose tbody tr:hover { background: var(--lava-tint); }
.prose td code, .prose th code { white-space: normal; }

/* horizontal rule */
.prose hr {
  border: none;
  height: 1px;
  margin: 3rem 0;
  background: var(--rule);
  position: relative;
}
.prose hr::after {
  content: "❖";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 0.9rem;
  color: var(--ink-ghost);
  font-size: 0.8rem;
}

.prose img { max-width: 100%; border-radius: 0.5rem; }

/* ----------------------------------------------------------- doc footer */
.doc-foot {
  margin-top: 4.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.doc-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}
.doc-foot a:hover { color: var(--lava-deep); gap: 0.7rem; }

/* ================================================================ TOC RAIL */
.rail {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  height: max-content;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  font-size: 0.83rem;
  scrollbar-width: thin;
  animation: rise 0.7s var(--ease) 0.16s both;
}
.rail__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail a {
  display: block;
  text-decoration: none;
  color: var(--ink-faint);
  padding: 0.28rem 0 0.28rem 0.85rem;
  border-left: 2px solid var(--rule);
  line-height: 1.4;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rail a:hover { color: var(--ink); border-color: var(--ink-ghost); }
.rail a.is-current {
  color: var(--lava-deep);
  border-color: var(--lava);
  font-weight: 600;
}
.rail .lvl-3 { padding-left: 1.7rem; font-size: 0.78rem; }

/* ============================================================ MOBILE NAV */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 80;
  width: 2.9rem; height: 2.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.2rem; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(27,24,20,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

/* ------------------------------------------------------- responsiveness */
@media (max-width: 1080px) {
  .main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
}

@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .shell { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: min(82vw, 21rem);
    height: 100vh;
    z-index: 75;
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow-lift);
    border-right: 1px solid var(--rule-strong);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; opacity: 1; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main { padding: 4.5rem 1.5rem 5rem; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .main { padding: 4.5rem 1.15rem 4rem; }
  .prose pre { padding: 1.1rem 1.1rem; border-radius: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------- motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Age badge in the doc meta line. Turns silent staleness into a visible signal. */
.doc-meta .age {
  margin-left: .35rem;
  padding: .1rem .45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .78em;
  opacity: .65;
}

.doc-meta .age.is-stale {
  color: var(--lava-deep, #b3350f);
  border-color: currentColor;
  opacity: 1;
  font-weight: 600;
}
