/* What the theme adds to the site's own stylesheet (css/site.css, kept as the static site had it). */

/* Legal pages: the docs reading column, centred, with room for tables */
.legal-layout { padding-top: 48px; padding-bottom: 104px; }
.legal-main { margin: 0 auto; }
.legal-main blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--purple, #8f6cf5); border-radius: 0 10px 10px 0; background: rgba(143, 108, 245, .08); }
.legal-main blockquote p { margin: 0; }
.legal-main table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-main th, .legal-main td { padding: 10px 12px; border-top: 1px solid var(--line, rgba(127, 127, 127, .25)); text-align: left; vertical-align: top; }
.legal-main th { border-top: 0; font-weight: 600; }

/* Blocks from the editor: a table sits in a figure, which keeps only the spacing every block gets */
:where(.doc) figure { margin: 0; }
.doc figure.wp-block-table { overflow-x: auto; }

/* WordPress's admin bar sits over the sticky header for signed-in admins */
.admin-bar .nav { top: var(--wp-admin--admin-bar--height, 32px); }

/* The home page's module row holds only released modules: its cards share the row, however many there are */
.mod-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 560px) { .mod-cards { grid-template-columns: 1fr; } }

/* Short pages (the 404) keep the footer at the bottom of the window */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* "Tell me when it's out": the thank-you line takes the form's place, an error sits under it */
.notify { flex-wrap: wrap; }
.notify.is-done { align-items: center; min-height: 38px; }
.notify.is-done p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.notify.is-done .ico { width: 20px; height: 20px; flex: none; color: var(--green); }
.notify-error { flex-basis: 100%; margin: 0; color: var(--red, #e5484d); font-size: 13px; }

/* Footer, second row: the "Built with Darwin AI" badge, and the copyright */
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.foot-base .fine { margin: 0; }
.foot-made { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, border-color .2s; }
.foot-made:hover { color: var(--text); border-color: rgba(143, 108, 245, .55); }
.foot-made .ico { width: 14px; height: 14px; transition: transform .2s; }
.foot-made:hover .ico { transform: translateX(2px); }
