/* The field note uses the existing editorial palette; no build step. */
body.theme-editorial .practice.field-note {
  max-width: 72rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  color: var(--relay-paper-text);
  font-size: 1rem;
  line-height: 1.7;
}
.field-note > * { min-width: 0; }
.field-note-header, .field-note-section { scroll-margin-top: 2rem; }
body.theme-editorial .practice.field-note h1 {
  max-width: 58rem;
  margin-block: 1rem 1.5rem;
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
body.theme-editorial .practice.field-note h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
body.theme-editorial .practice.field-note h3 {
  margin-block: 2rem 1rem;
  font-size: 1.2rem;
}
body.theme-editorial .practice.field-note p + p { margin-top: 1rem; }
body.theme-editorial .practice.field-note .field-note-lead { max-width: 50rem; font-size: 1.2rem; }
.field-note-byline { margin-block: 1.5rem; color: var(--relay-paper-muted); font-size: .9rem; }
.field-note-callout {
  margin-block: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid var(--relay-accent);
  background: var(--relay-accent-soft);
}
.field-note-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }
.field-note a { color: var(--relay-accent); text-decoration: underline; text-underline-offset: .2em; }
.field-note a:hover { color: var(--relay-accent-hover); }
.field-note-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.field-note-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--relay-rule-light); }
.field-note ul, .field-note ol { margin-block: 1.25rem; padding-left: 1.5rem; }
.field-note ul { list-style: disc; }
.field-note ol { list-style: decimal; }
.field-note li + li { margin-top: .8rem; }
.field-note-definitions { margin-block: 1.5rem; }
.field-note-definitions > div { margin-block: 1rem; }
.field-note dt { font-weight: 650; }
.field-note dd { margin: .3rem 0 0; }
.field-note table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block: 1.75rem; font-size: .95rem; }
.field-note caption { text-align: left; color: var(--relay-paper-text); font-weight: 650; margin-bottom: .75rem; }
.field-note th, .field-note td {
  padding: .85rem;
  border: 1px solid var(--relay-rule-light);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.field-note th { background: var(--relay-soft); font-weight: 650; }
.field-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; overflow-wrap: anywhere; }
.field-note-artifact {
  margin-block: 1.5rem;
  max-width: 100%;
  padding: 1.25rem;
  border: 1px solid var(--relay-rule-light);
  background: var(--relay-paper-raised);
  color: var(--relay-paper-text);
  font: .875rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  tab-size: 2;
}
.field-note .practice-actions { margin-block: 1.5rem; }
.field-note-boundary { font-size: .95rem; }
.field-note-references { font-size: .95rem; }
.field-note .field-note-index { margin-block: 2rem 0; padding-left: 0; list-style: none; }
.field-note .field-note-index-item { margin: 0; padding-block: 2rem; border-top: 1px solid var(--relay-rule-light); }
body.theme-editorial .practice.field-note .field-note-index-item h2 { margin-bottom: .75rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.field-note-index-item p { max-width: 50rem; }
.field-note-index-item .field-note-byline { margin-block: .75rem 0; }
@media (max-width: 40rem) {
  body.theme-editorial .practice.field-note { padding-inline: 1rem; }
  .field-note th, .field-note td { padding: .55rem .4rem; }
  .field-note table { font-size: .85rem; line-height: 1.55; }
  .field-note-artifact { padding: .8rem; font-size: .8rem; }
  .field-note-section { margin-top: 2rem; padding-top: 2rem; }
}
@media print {
  @page { margin: 15mm; }
  /* Suppress site chrome only when printing this article. */
  body:has(.field-note) > header,
  body:has(.field-note) > footer,
  body:has(.field-note) > .skip-link,
  body:has(.field-note) [x-data="bookingPopover()"],
  body:has(.field-note) [x-show="isOpen"] { display: none !important; }
  html:has(.field-note), body:has(.field-note), body:has(.field-note) > main { background: #fff !important; color: #000 !important; }
  body.theme-editorial .practice.field-note {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 10pt;
    line-height: 1.5;
  }
  body.theme-editorial .practice.field-note h1 { font-size: 25pt; }
  body.theme-editorial .practice.field-note h2 { font-size: 17pt; }
  body.theme-editorial .practice.field-note h3 { font-size: 12pt; }
  .field-note h1, .field-note h2, .field-note h3, .field-note caption { color: #000 !important; break-after: avoid; }
  .field-note a { color: #000 !important; }
  .field-note-byline { color: #333; }
  .field-note-toc { display: none; }
  .field-note-section { margin-top: 1.5rem; padding-top: 1.5rem; border-color: #777; }
  .field-note-callout, .field-note-artifact, .field-note th { background: #fff; color: #000; }
  .field-note-callout { border-color: #555; }
  .field-note table { width: 100%; font-size: 9pt; }
  .field-note th, .field-note td { padding: .4rem; border-color: #777; }
  .field-note thead { display: table-header-group; }
  .field-note tr { break-inside: avoid; }
  .field-note-artifact { font-size: 9pt; padding: .65rem; border-color: #777; overflow: visible; }
  .field-note .practice-actions { display: block; }
  .field-note .practice-actions a { display: block; width: auto; margin-block: .5rem; padding: 0; border: 0; background: none; color: #000; }
  .field-note .practice-actions a[href^="/"]::after { content: " (stratumrelay.com" attr(href) ")"; font-size: 9pt; }
}
