/*
 * Additions for the Kirby site: accessibility helpers and the "Coming soon"
 * states. Everything else comes from the old stylesheets unchanged.
 */

/* skip link: hidden until focused */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #dc3545;
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* "Coming soon" badge, used in menus, cards, tables and buttons */
.cs-badge {
    display: inline-block;
    background: #6c757d;
    color: #fff !important;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1.4;
}
.cs-text { color: #6c757d; font-weight: 600; }
.cs-button,
.cs-button:hover { cursor: not-allowed; opacity: 0.65; pointer-events: none; }
span[data-coming-soon] { color: #6c757d; cursor: default; }

/* page-level coming soon notice */
.coming-soon-notice {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}
.coming-soon-notice h2 { color: #dc3545; font-size: 1.6rem; margin-bottom: 0.5rem; }
.coming-soon-notice p { color: #6c757d; margin: 0; }

.known-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.known-facts li { background: #f8f9fa; color: #495057; padding: 4px 12px; border-radius: 15px; font-size: 0.85rem; }

.section-placeholder { color: #6c757d; font-style: italic; }

/* placeholder images keep their box but never stretch */
img.img-placeholder { object-fit: contain !important; background: #f1f3f5; }

/* range badges by status */
.range-badge.soon,
.coming-soon .range-badge { background: #6c757d; }
.range-badge.preorder { background: #fd7e14; }
.range-badge.discontinued { background: #343a40; }

/* status pills */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.status-pill.avail { background: #dcfce7; color: #166534; }
.status-pill.preorder { background: #ffedd5; color: #9a3412; }
.status-pill.soon { background: #f3f4f6; color: #4b5563; }
.status-pill.discontinued { background: #e5e7eb; color: #111827; }

/* model pages: header image keeps the old 150x100 box, status and price row */
.model-header-img { width: 150px; height: 100px; object-fit: cover; }
h1.picuno-title { font-size: 1.5rem; }
.model-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.model-price { font-weight: 700; color: #2c353a; }

/* homepage: old inline styles moved here, and semantic tags that replaced divs */
.at-browse-all { font-family: 'Public Sans', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--at-primary); text-decoration: none; }
.at-verticals-intro { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--at-text-muted); max-width: 560px; margin: 12px auto 0; }
.at-trust-item { margin: 0; }
h2.at-resources-col-title, h3.at-card-title, h3.at-mosaic-title, h3.at-form-title { line-height: 1.3; }
.at-spotlight-specs dt, .at-spotlight-specs dd { margin: 0; }

/* software page: the old inline colour of the "Buy License" button */
.download-btn.dark-btn { background: #2C353A; }

/* forms: visible focus and messages */
.form-message { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.form-message.success { background: #dcfce7; color: #166534; }
.form-message.error { background: #fee2e2; color: #991b1b; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #dc3545;
    outline-offset: 2px;
}
