/* Courtyard treatment: a layer over operanda.css, loaded on every page by lib/platform.mjs.
 * One rule: if you can press it, it is round; everything else stays square.
 * The brand kit already splits shapes this way (radius-1 for controls, radius-0 for content);
 * Courtyard keeps the split and makes the pressable side fully round.
 * Square content is softened with tone and space instead of corners: tonal fills in place of
 * outlines and hairline-weight lines; prints sit on the paper with no frame.
 * Colors stay on the brand tokens. Round controls depart from the brand kit's "no pills" rule
 * (design-system/brand/tokens.json); the website adopts them deliberately. */
:root {
  --court-round: 999px;     /* pressable: buttons, links styled as buttons, FAQ rows */
  --court-row: 16px;        /* FAQ rows are full-width, so a pill would read oddly; they take a large radius */
}

/* ---- Pressable: round ---- */
.op-btn, .op-ledger__btn, .waitlist-form__fields input, .site-footer__ai-link, .waitlist-share__copy { border-radius: var(--court-round); }

/* FAQ: each question is a button, so each row is a separate rounded control */
.op-details, .op-details:last-of-type { border: 1px solid var(--hairline); border-radius: var(--court-row); padding-inline: 24px; }
.op-details + .op-details { margin-top: 8px; }
.op-details > summary { font: 500 19px/26px var(--font-text); min-height: 64px; }
.op-details > summary::after { width: 10px; height: 10px; border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); background: transparent; transition: transform .2s ease; }
.op-details[open] > summary::after { background: transparent; transform: rotate(-135deg) translate(-2px, -2px); }
.op-details > :last-child { margin-bottom: 24px; }

/* ---- Content: square, softened with fills and space ---- */

/* Prints sit on the paper with no frame. */
.op-print, [data-theme="dark"] .op-print, .op-job__plate, [data-theme="dark"] .op-job__plate { box-shadow: none; outline: 0; }

/* Privacy example: tone instead of outlines */
.op-band { border-block: 0; }
.op-band .op-ledger, .op-ledger { border: 0; padding: 40px; }
@media (max-width: 767px) { .op-band .op-ledger, .op-ledger { padding: 24px; } }
.op-ledger__block { border: 0; }
.op-ledger .op-ledger__block--shared { border: 0; background: var(--tint-2); transition: background-color var(--motion-reveal) var(--ease-print); }
.op-ledger.is-live:not(.s-share) .op-ledger__block--shared { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline); }
.op-band .op-ledger__to { border: 0; background: var(--surface-paper-2); }
.op-chip { border-radius: var(--radius-1); }

/* Section rules give way to space */
.op-section--rule::before { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .op-details > summary::after, .op-ledger .op-ledger__block--shared { transition: none; }
}
