/* The root is exactly the inline field's box (popover anchor and `ref` target), with no ground, border or
   gutter. The rest is the peek's grammar: facts band, value cell, footer verbs. */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-reference-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  /* Marker and code on one line. */
  .lotics-reference-field__display {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: var(--lotics-space-6);
  }

  .lotics-reference-field__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: var(--lotics-space-12);
  }

  /* The value, then any verb about it. */
  .lotics-reference-field__fact {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: var(--lotics-space-6);
  }

  .lotics-reference-field__fact-value {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-width: 0;
  }

  /* Left acts on the link, right on the record, in one geometry. */
  .lotics-reference-field__link-verbs,
  .lotics-reference-field__record-verbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: var(--lotics-space-8);
  }
}
