/*
 * Approved design pages (templates/page-design.html).
 * Page markup comes from the approved designs with colours expressed as --wb-* variables
 * (see sections.css), so Hybrid and Dark appearance apply automatically.
 */
:root { --wb-input-border: #25313D; }
html[data-wardbler-appearance="dark"] { --wb-input-border: #3264C8; }

.wb-design {
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--wb-body);
    background: var(--wb-s1);
    min-width: 320px;
}
.wb-design a { text-decoration: none; }
.wb-design a:hover .lk,
.wb-design a.lk:hover { text-decoration: underline; text-underline-offset: 4px; }
.wb-design a:focus-visible,
.wb-design button:focus-visible,
.wb-design input:focus-visible,
.wb-design select:focus-visible,
.wb-design textarea:focus-visible { outline: 2px solid #00DCD5; outline-offset: 3px; }
.wb-design button { font-family: inherit; }
.wb-design img { max-width: 100%; }

/* Sticky "On this page" bars sit below the sticky site header. */
.wb-design [data-spy-bar] { top: var(--wb-header-h, 0px) !important; }
.wb-design [id] { scroll-margin-top: calc(var(--wb-header-h, 0px) + 80px); }
[data-spy-chips] { scrollbar-width: none; }
[data-spy-chips]::-webkit-scrollbar { display: none; }

/* Desktop and mobile variants inside designs. */
.wb-design .wb-mob { display: none; }
@media (max-width: 960px) {
    .wb-design .wb-desk { display: none !important; }
    .wb-design .wb-mob { display: flex !important; }
}

/* Shortcode paragraph wrappers. */
.wb-page > p:empty,
.wb-page > p:has(> .wb-design:only-child) { display: contents; margin: 0; }

.wb-form-note {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--wb-rule);
    border-left: 3px solid var(--wb-acc);
    border-radius: 6px;
    background: var(--wb-s2);
    color: var(--wb-ink);
    font-size: 15px;
}

/* Article styles: see article.css. */

/* Lists and pagination */
.wb-card-link:hover { border-color: var(--wb-acc) !important; }
.wb-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.wb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--wb-rule); border-radius: 6px; background: var(--wb-s1); color: var(--wb-ink); font: 500 14px Inter, sans-serif; }
.wb-pagination .page-numbers.current { background: var(--wb-ink); color: var(--wb-s1); border-color: var(--wb-ink); }
.wb-pagination .page-numbers.dots { border: 0; background: transparent; }
@media (max-width: 600px) { .wb-result-art { flex-basis: 100% !important; } }
.wb-form-note[data-state="error"] { border-left-color: #C0392B; }
.wb-design [aria-invalid="true"] { border-color: #C0392B !important; box-shadow: 0 0 0 1px #C0392B; }

/* Hero illustrations on tablets and phones: keep them in proportion with the text. */
@media (max-width: 960px) {
    .wb-design > section:first-of-type div[style*="max-width: 600px"] { max-width: 460px !important; margin-left: auto; margin-right: auto; }
    .wb-design > section:first-of-type div[style*="max-width: 600px"] > svg { max-height: 320px; }
    .wb-hero__art { max-width: 460px; margin-left: auto; margin-right: auto; }
    .wb-hero__art svg { max-height: 320px; }
}
@media (max-width: 600px) {
    .wb-design > section:first-of-type div[style*="max-width: 600px"] { max-width: 320px !important; }
    .wb-design > section:first-of-type div[style*="max-width: 600px"] > svg { max-height: 240px; }
    .wb-hero__art { max-width: 320px; }
    .wb-hero__art svg { max-height: 240px; }
    .wb-ahero__art > div { height: 200px !important; }
}
