/* Additions for the live (Django-served) site: real forms and their errors.
   Loaded after pages.css. */

form.form-card { display: block; }

.form-field .field-error {
    display: block;
    margin-top: 7px;
    color: #f87171;
    font-size: 12px;
    font-style: normal;
}

.form-message.form-error {
    margin: 0 0 18px;
    border-color: rgba(248, 113, 113, .45);
    color: #f87171;
    background: rgba(248, 113, 113, .08);
}

.form-card > .form-message.show { margin: 0 0 18px; }

/* Bots fill every box; people never see this one. */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cards with no article behind them yet are not links. */
a:not([href]) { cursor: default; }

/* Real plans: however many there are, the cards share the row evenly. */
.pricing-grid.is-live { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* One more menu item (Modules, 2026-11-07): keep each item on one line and
   make room on mid-size screens; Affiliate stays in the footer. */
.desktop-nav .nav-link { white-space: nowrap; }
@media (max-width: 1500px) {
    .desktop-nav .nav-link { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 1360px) {
    .desktop-nav > a.nav-link[href="/affiliate/"] { display: none; }
}
@media (max-width: 1250px) {
    .desktop-nav > a.nav-link[href="/download/"] .badge-new { display: none; }
}
/* The Modules menu: two columns so it fits on a laptop screen. */
.dropdown-menu.dd-wide { width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
