@import url("feedback-spacing.css?v=2026.11.12.12");

/**
 * Presentation rules for content spacing. Theme variables keep colors consistent; media
 * queries adapt the same components to smaller screens.
 * File: public/assets/content-spacing.css
 */
@media screen {
  html body :is(main, .main) details {
    margin-block: var(--content-gap, 1rem) var(--section-gap, 1.5rem);
  }
  html body :is(main, .main) details > summary {
    display: list-item;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid var(--green, var(--accent, #c99d42));
    border-inline-start-width: 4px;
    border-radius: 10px;
    --disclosure-surface: var(--mint, var(--surface, var(--panel, #263951)));
    --disclosure-accent: var(--green, var(--accent, #c99d42));
    background: var(--disclosure-surface);
    background: color-mix(in srgb, var(--disclosure-surface) 88%, var(--disclosure-accent));
    color: var(--ink, var(--text, #eef4ff));
    font:
      700 15px/1.5 system-ui,
      -apple-system,
      sans-serif;
    cursor: pointer;
    overflow-wrap: anywhere;
    list-style-position: inside;
  }
  html body :is(main, .main) details > summary::marker {
    color: currentColor;
  }
  @media (hover: hover) {
    html body :is(main, .main) details > summary:hover {
      background: color-mix(in srgb, var(--disclosure-surface) 77%, var(--disclosure-accent));
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  html body :is(main, .main) details > summary:focus-visible {
    outline: 3px solid var(--green, var(--accent, #c99d42));
    outline-offset: 3px;
  }
  html body :is(main, .main) details[open] > summary {
    margin-block-end: var(--content-gap, 1rem);
  }
  /* Body links stay identifiable even when the theme's accent is subtle. */
  html
    body
    :is(main, .main)
    :is(p, li)
    > a:not(:is(.primary, .secondary, .button, .btn, .gold-action)) {
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }
  html
    body
    :is(main, .main)
    form:not(:is(.inline-form, .account-row-actions form, td form, th form)) {
    margin-block-end: var(--section-gap, 1.5rem);
  }
  html body :is(main, .main) :is(.table-scroll, .table-wrap, .schedule-scroll) {
    margin-block-end: var(--section-gap, 1.5rem);
  }
  html body :is(main, .main) table {
    margin-block-end: var(--section-gap, 1.5rem);
  }
  /* The scrolling container owns the gap; do not add empty space inside it. */
  html body :is(main, .main) :is(.table-scroll, .table-wrap, .schedule-scroll) table {
    margin-block-end: 0;
  }
  html
    body
    :is(main, .main)
    form
    :is(button[type="submit"], button:not([type]), input[type="submit"]) {
    margin-block-end: 16px;
  }
  html body :is(main, .main) :is(.form-actions, .theme-edit-actions) {
    padding-block-end: 8px;
  }
  html body :is(main, .main) .deployment-schedule-grid td,
  html body :is(main, .main) .maker-deployment-grid td {
    min-width: 9rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }
  /* Keep small row forms and their controls aligned with neighboring cells. */
  html
    body
    :is(main, .main)
    :is(td, th, .account-row-actions, .inline-form)
    :is(button, input[type="submit"]) {
    margin-block-end: 0;
  }
}
