/* The public pages' own styles: the parts of their bodies that the theme's component layer does not cover. Colours, type and spacing come
   from the theme's tokens only (never a value written here). No inline styles are used by any page. Author: Jeremiah Buttler */

.stack > * + * { margin-top: var(--sp-5, 24px); }
.prose { max-width: 46rem; }
.prose > * + * { margin-top: var(--sp-4, 16px); }
.prose h2, .prose h3 { margin-top: var(--sp-6, 32px); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose a, .legal-body a, .band__head a { color: var(--accent-ink, inherit); text-decoration: underline; text-underline-offset: 3px; }
.legal-body h1 { font-family: var(--font-display); font-size: var(--fs-display-1, 44px); line-height: 1; text-transform: uppercase; margin: 0 0 var(--sp-5, 24px); }
.legal-body h2 { font-family: var(--font-display); font-size: var(--fs-display-3, 24px); line-height: 1.05; text-transform: uppercase; margin: var(--sp-6, 32px) 0 var(--sp-3, 12px); }
.legal-body h3 { font-family: var(--font-label); font-size: 1rem; margin: var(--sp-5, 24px) 0 var(--sp-2, 8px); }
.legal-body p, .legal-body li { line-height: 1.55; }
.legal-body p + p, .legal-body ul, .legal-body p + ul { margin-top: var(--sp-3, 12px); }
.legal-body ul { padding-left: 1.25em; }
.legal-body li + li { margin-top: .45em; }
.page-home .page-main { padding-left: 0; padding-right: 0; }

/* chips: the jump links under a page's heading */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5, 24px); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: var(--rule-row, 2px) solid var(--ink, currentColor); color: var(--ink, inherit);
        background: var(--tile-bg, transparent); font-family: var(--font-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.chip:hover, .chip:focus-visible { background: var(--ink, currentColor); color: var(--on-ink, #fff); }

/* plain ruled rows (no arrow, no number) */
.rows--plain { list-style: none; margin: 0; padding: 0; }
.rows--plain > li { padding: 14px 20px; border-bottom: 1px solid var(--rule, currentColor); }
.rows--plain > li:last-child { border-bottom: 0; }
.rows--plain p { margin: 4px 0 0; }
.row-title { font-family: var(--font-label); font-weight: var(--fw-label, 600); font-size: 1.05rem; margin: 0; }
.plan-names > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-names > li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.help-topics a, .search-hits a, .evidence-list a { color: inherit; text-decoration: none; }
.help-topics a:hover .row-title, .search-hits a:hover .row-title { text-decoration: underline; }
.evidence-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-list a { display: flex; gap: 12px; min-width: 0; }
.row-id { font-family: var(--font-label); font-size: 13px; letter-spacing: .06em; color: var(--muted); flex: none; }
.row-text { min-width: 0; overflow-wrap: anywhere; }
.code-rules { list-style: none; padding: 0; margin: var(--sp-6, 32px) 0 0; }
.code-rules > li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule, currentColor); }
.code-rules p { margin: 4px 0 0; }
.feature-list { list-style: none; margin: var(--sp-4, 16px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter, 24px); }
.feature-list li { padding: 14px 0; border-top: 1px solid var(--rule, currentColor); }
.feature-list li[hidden], .feature-group[hidden] { display: none; }
.feature-list p { margin: 4px 0 0; }
.filter-row { margin-top: var(--sp-5, 24px); max-width: 32rem; }
.filter-row .input { width: 100%; }

/* the pricing term switch: radio buttons and the sibling selectors, no script */
.pricing { position: relative; }
.terms-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.terms-switch { display: flex; flex-wrap: wrap; gap: 0; border: 0; padding: 0; margin: var(--sp-5, 24px) 0; }
.terms-switch label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: var(--rule-row, 2px) solid var(--ink, currentColor); margin-left: -2px;
                      background: var(--tile-bg, transparent); color: var(--ink, inherit); font-family: var(--font-label); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.terms-switch label:first-of-type { margin-left: 0; }
.terms-switch .save { color: var(--accent-ink, inherit); font-weight: 700; }
.pricing:has(#term-month:checked) label[for="term-month"], .pricing:has(#term-quarter:checked) label[for="term-quarter"], .pricing:has(#term-year:checked) label[for="term-year"] {
  background: var(--ink, currentColor); color: var(--on-ink, #fff); }
.pricing:has(#term-month:checked) label[for="term-month"] .save, .pricing:has(#term-quarter:checked) label[for="term-quarter"] .save, .pricing:has(#term-year:checked) label[for="term-year"] .save { color: inherit; }
.terms-radio:focus-visible ~ .terms-switch { outline: 3px solid var(--focus, currentColor); outline-offset: 3px; }
.price-block { display: none; }
.price-block.t-month { display: block; }
.pricing:has(#term-quarter:checked) .price-block.t-month, .pricing:has(#term-year:checked) .price-block.t-month { display: none; }
.pricing:has(#term-quarter:checked) .price-block.t-quarter, .pricing:has(#term-year:checked) .price-block.t-year { display: block; }
.plan-card .limits { margin-top: 12px; }
.plan-card .plan-card__price { min-height: 1em; }

/* the contact form */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .field + .field { margin-top: var(--sp-4, 16px); }
.form .input, .form select, .form textarea { width: 100%; }
textarea.input { min-height: 9rem; resize: vertical; }

@media (max-width: 900px) {
  .feature-list { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plan-card__price small { display: block; margin: 6px 0 0; white-space: nowrap; }
.legal-body h1, .legal-body h2 { letter-spacing: .02em; }

/* the site search palette (the dialog the Search button and Ctrl/Cmd+K open) */
html.has-dialog { overflow: hidden; }
.cmdk-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); z-index: 900; }
.cmdk-panel { position: fixed; z-index: 901; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); max-height: 70vh; display: flex; flex-direction: column;
              background: var(--tile-bg, #fff); color: var(--text, inherit); border: var(--rule-row, 2px) solid var(--ink, currentColor); border-top-width: 3px; }
.cmdk-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule, currentColor); }
.cmdk-input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; outline: none; -webkit-appearance: none; appearance: none; }
.cmdk-input::-webkit-search-cancel-button { display: none; }
.cmdk-kbd { font-family: var(--font-label); font-size: 12px; border: 1px solid var(--rule-strong, currentColor); padding: 2px 6px; color: var(--muted); }
.cmdk-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.cmdk-group { padding: 10px 10px 4px; font-family: var(--font-label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmdk-item[aria-selected="true"] { background: var(--soft, rgba(0, 0, 0, .08)); }
.cmdk-link { display: flex; flex-direction: column; gap: 2px; padding: 10px; min-height: 44px; justify-content: center; color: inherit; text-decoration: none; }
.cmdk-meta { font-size: 13px; color: var(--muted); }
.cmdk-empty { padding: 18px 10px; color: var(--muted); }
.cmdk-foot { padding: 8px 12px; border-top: 1px solid var(--rule, currentColor); font-family: var(--font-label); font-size: 12px; color: var(--muted); }
.footer-search { margin: 0 0 var(--sp-3, 12px); }
@media (max-width: 640px) {
  .cmdk-panel { top: 8px; max-height: calc(100% - 16px); height: calc(100% - 16px); }
  .cmdk-foot { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .cmdk-panel { animation: cmdk-in .14s ease-out; }
  @keyframes cmdk-in { from { opacity: 0; transform: translateX(-50%) scale(.97); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
}
