/* Button gap (Shane, Nov 18 2026: "put some space in between those green buttons"). ONE shared token, --btn-gap, is the minimum space between
   stacked or wrapped action buttons at every width. Nothing else in the site sets a button gap by hand on a page that loads this file.
   Loaded after style.css and the page's own styles. Not loaded on the 24 film shot paths (their groups are reported, not changed). */
:root{--btn-gap:var(--space-3,12px)}
/* A group that is marked up on purpose. */
.btn-group{display:flex;flex-wrap:wrap;align-items:center;gap:var(--btn-gap)}
.btn-group>.btn,.btn-group>button{margin:0}
/* Groups that were already flex or grid with a smaller gap: same token. */
:root .tag-btns,:root .next-step-actions,:root .tour-row,:root .tour-controls,:root .official-actions,:root .flow-nav,:root .pd-threads{gap:var(--btn-gap)}
:root .official-actions .btn{flex-basis:calc(50% - var(--btn-gap))}
/* A paragraph or div that holds only buttons or button links, side by side or wrapped: flex with the token (zero specificity, so a class that sets its own bigger gap wins). */
:where(p,div):where(:has(>:is(.btn,button)+:is(.btn,button)):not(:has(>:not(.btn,button,br))):not([role="tablist"])){display:flex;flex-wrap:wrap;align-items:center;gap:var(--btn-gap)}
/* A table cell, form or section with buttons (or a div that also holds other content): the buttons carry the gap as margin. */
:where(td,form,section):where(:has(>:is(.btn,button)+:is(.btn,button)):not([role="tablist"]))>:is(.btn,button),
:where(div):where(:has(>:is(.btn,button)+:is(.btn,button)):has(>:not(.btn,button,br)):not([role="tablist"]))>:is(.btn,button){margin:0 var(--btn-gap) var(--btn-gap) 0}
#draft-extras>button{margin:0 var(--btn-gap) var(--btn-gap) 0}
/* Two neighbouring blocks that each hold buttons (two stacked .btn-group rows, or a form that ends in a button followed by a paragraph with a button link): the second block starts one gap below the first. Zero specificity, so a class with its own margin wins. */
:where(form,p,div):has(>:is(.btn,button)) + :where(form,p,div):has(>:is(.btn,button)){margin-top:var(--btn-gap)}
[style*="text-align:center"]>p:has(>.btn+.btn){justify-content:center}
@media(max-width:480px){[style*="text-align:center"]>p:has(>.btn+.btn)>.btn{width:245px;max-width:100%}}
