/* Synonymsworld — distinct UI layer (extends shared layout) */

.is-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Brand shell: calmer, reference-tool feel vs syllable games */
body.synonyms-brand {
    --sw-syn-primary: #0f526c;
    --sw-syn-primary-dark: #0a3d4f;
    --sw-syn-accent: #c9a227;
    --sw-syn-surface: #f7fafb;
    --sw-syn-card: #ffffff;
    --sw-syn-border: rgba(15, 82, 108, 0.14);
    background: linear-gradient(165deg, #e8f2f6 0%, #f7fafb 38%, #f0f6f8 100%) !important;
}

body.synonyms-brand main .section {
    padding-top: 1.75rem;
}

/* Header */
body.synonyms-brand .synonyms-site-header .navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--sw-syn-border), 0 8px 24px rgba(15, 82, 108, 0.06);
}

body.synonyms-brand .synonyms-site-header .navbar-inner {
    border-bottom: none;
}

body.synonyms-brand .synonyms-site-header .site-logo {
    color: var(--sw-syn-primary) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.15rem !important;
}

body.synonyms-brand .synonyms-site-header .navbar-item {
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    margin: 0 0.1rem;
}

body.synonyms-brand .synonyms-site-header .navbar-item:hover {
    background-color: rgba(15, 82, 108, 0.08) !important;
}

/* Hero & page titles */
.synonyms-hero {
    padding: 0.5rem 0 1.75rem;
    max-width: 48rem;
}

.synonyms-hero h1,
body.synonyms-brand h1.title {
    color: var(--sw-syn-primary) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.15 !important;
}

body.synonyms-brand .subtitle {
    color: #3d4f56 !important;
}

/* Search strip */
body.synonyms-brand .search-container .input-enhanced,
body.synonyms-brand .search-form .input {
    border: 2px solid var(--sw-syn-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 82, 108, 0.06);
}

body.synonyms-brand .search-container .button-enhanced.primary,
body.synonyms-brand .search-form .button.is-primary {
    border-radius: 12px !important;
    background: linear-gradient(180deg, var(--sw-syn-primary) 0%, var(--sw-syn-primary-dark) 100%) !important;
    border: none !important;
    font-weight: 700;
}

/* Cards */
body.synonyms-brand .box {
    border-radius: 14px !important;
    border: 1px solid var(--sw-syn-border) !important;
    box-shadow: 0 4px 20px rgba(15, 82, 108, 0.06) !important;
    background: var(--sw-syn-card) !important;
}

/* Synonym chips */
.synonym-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

.synonym-chip-list a {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 82, 108, 0.07);
    color: var(--sw-syn-primary);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(15, 82, 108, 0.18);
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.synonym-chip-list a:hover {
    background: rgba(15, 82, 108, 0.13);
    box-shadow: 0 2px 8px rgba(15, 82, 108, 0.12);
}

.synonym-chip-list a:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.55);
    outline-offset: 2px;
}

.synonyms-aside .box {
    border: 1px solid var(--sw-syn-border);
}

/* Long-form readability */
body.synonyms-brand article.content,
body.synonyms-brand .content.synonyms-prose {
    max-width: 42rem;
}

body.synonyms-brand article.content p,
body.synonyms-brand .content.synonyms-prose p {
    line-height: 1.7;
}

/* Accent links in prose */
body.synonyms-brand .content a:not(.button) {
    color: var(--sw-syn-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

body.synonyms-brand .content a:not(.button):hover {
    color: var(--sw-syn-primary-dark);
}

/* Breadcrumb */
body.synonyms-brand .breadcrumb a {
    color: var(--sw-syn-primary);
    font-weight: 600;
}

/* Notification / callouts */
body.synonyms-brand .notification.is-light {
    border-radius: 12px;
    border: 1px solid var(--sw-syn-border);
    background: rgba(255, 255, 255, 0.85) !important;
}
