* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    background: var(--color-surface-glacier);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar .gosnail-header-shell {
    top: 32px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* The source Zoho assets include their wordmark. Match the React component by
   clipping each asset to its leading product icon. */
.gosnail-product-icon {
    display: block;
    width: 28px;
    height: 28px;
    overflow: hidden;
}

.gosnail-product-icon img {
    display: block;
    width: auto;
    height: 28px;
    max-width: none;
}

.gosnail-product-icon--backstage img {
    height: 56px;
}

.gosnail-product-icon--lens img {
    width: 80px;
    height: 80px;
    transform: translate(-6px, -26px);
}

.gosnail-button-primary {
    background-color: #ff6b6b;
}

.gosnail-button-primary:hover {
    background-color: #f45d5d;
}

.gosnail-tab-button[aria-selected="true"],
[data-tabs] [role="tab"][aria-selected="true"] {
    color: #fff !important;
}

.v4-reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.v4-visible {
    opacity: 1;
    transform: translateY(0);
}

.v4-hover {
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.v4-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-night-hover);
}

.blog-card {
    transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 980ms cubic-bezier(0.16, 1, 0.3, 1), background-color 320ms ease, border-color 320ms ease, color 320ms ease;
}

.article-copy p {
    margin: 0 0 1.45rem;
}

.article-copy h2 {
    margin: 2.35rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.18;
}

.article-copy blockquote {
    margin: 2rem 0;
    border-left: 3px solid var(--color-brand-coral);
    padding: 1rem 0 1rem 1.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.38;
}

.article-copy figure {
    margin: 2.6rem 0;
}

.article-copy figure img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-night-card);
}

.article-copy figcaption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.article-copy ul {
    margin: 0 0 1.45rem;
    padding-left: 1.2rem;
    list-style: disc;
}

.article-copy li {
    margin: 0.45rem 0;
}

.gosnail-mega-menu,
.gosnail-mobile-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.gosnail-mega-menu.is-open,
.gosnail-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep the compact navigation until the desktop menu has enough room. */
@media (max-width: 1000px) {
    .gosnail-desktop-nav,
    .gosnail-desktop-mega {
        display: none !important;
    }

    .gosnail-mobile-only {
        display: inline-flex;
    }

    .gosnail-mobile-panel {
        display: block;
    }
}

@media (min-width: 1001px) {
    .gosnail-desktop-nav {
        display: flex;
    }

    .gosnail-desktop-mega {
        display: block;
    }

    .gosnail-mobile-only,
    .gosnail-mobile-panel {
        display: none !important;
    }
}

.gosnail-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gosnail-faq-panel.is-open {
    grid-template-rows: 1fr;
}

.gosnail-faq-content {
    overflow: hidden;
}

.gosnail-faq-answer {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1), padding 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gosnail-faq-panel.is-open .gosnail-faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.gosnail-tab-panel[hidden] {
    display: none;
}

.editor-styles-wrapper > *:first-child {
    margin-top: 0;
}

.editor-styles-wrapper > *:last-child {
    margin-bottom: 0;
}

.editor-styles-wrapper p {
    margin: 0 0 1.25em;
}

.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.editor-styles-wrapper ul {
    list-style: disc;
}

.editor-styles-wrapper ol {
    list-style: decimal;
}

.gosnail-form label {
    display: block;
    margin-top: 1.25rem;
    color: var(--color-text-secondary);
    font-size: 18px;
    font-weight: 600;
}

.gosnail-form input:not([type="checkbox"]):not([type="radio"]),
.gosnail-form select,
.gosnail-form textarea {
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid var(--color-line-default);
    border-radius: 0.75rem;
    background: rgb(245 244 250 / 0.55);
    padding: 0.75rem 1rem;
    color: var(--color-text-primary);
    font: inherit;
}

.gosnail-form input:not([type="checkbox"]):not([type="radio"]),
.gosnail-form select {
    min-height: 3rem;
}

.gosnail-form button,
.gosnail-form input[type="submit"] {
    width: 100%;
    min-height: 3rem;
    margin-top: 1.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--color-brand-ocean);
    color: white;
    font: 600 18px/1.5 var(--font-body);
    cursor: pointer;
}

.gosnail-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.gosnail-pagination .page-numbers {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-line-default);
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.8);
    padding: 0.375rem 0.625rem;
    color: var(--color-brand-night);
    font: 600 1rem/1 var(--font-body);
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.gosnail-pagination .page-numbers.current {
    border-color: var(--color-brand-coral);
    background: var(--color-brand-coral);
    color: white;
}

.gosnail-pagination .page-numbers.next,
.gosnail-pagination .page-numbers.prev {
    min-width: 6.25rem;
    padding-inline: 1rem;
}

.gosnail-pagination a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: var(--color-brand-coral);
    color: var(--color-brand-coral);
}

@media (max-width: 640px) {
    .gosnail-pagination .nav-links {
        gap: 0.5rem;
    }

    .gosnail-pagination .page-numbers {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.375rem;
        font-size: 1rem;
    }

    .gosnail-pagination .page-numbers.next,
    .gosnail-pagination .page-numbers.prev {
        min-width: auto;
        padding-inline: 1rem;
    }
}

@media (max-width: 782px) {
    body.admin-bar .gosnail-header-shell {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .v4-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .v4-hover,
    .v4-hover:hover,
    .blog-card {
        transform: none;
        transition: none;
    }
}
