/* Synonyms Finder — virtual thesaurus pages.
   Theme-agnostic: inherits the active theme's fonts and text colour,
   adds only layout for the finder tool, chips, sense cards and A-Z. */

.sf-wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sf-visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sf-breadcrumb { font-size: .9rem; margin-bottom: 1rem; opacity: .85; }
.sf-h1 { margin: .2em 0 .4em; line-height: 1.15; }
.sf-intro { font-size: 1.08rem; line-height: 1.55; }
.sf-posline { font-size: .95rem; opacity: .8; margin: .2rem 0 1.2rem; }

/* --- Finder tool --- */
.sf-finder { margin: 1.2rem 0 1.6rem; }
.sf-finder-form { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
.sf-finder-input {
    flex: 1 1 260px; font-size: 1.1rem; padding: .8rem 1rem;
    border: 2px solid #94a3b8; border-radius: 10px; background: #fff; color: #111;
}
.sf-finder-input:focus { outline: 3px solid #bfdbfe; border-color: #2563eb; }
.sf-finder-button {
    font-size: 1.05rem; font-weight: 600; padding: .8rem 1.4rem; cursor: pointer;
    border: 0; border-radius: 10px; background: #2563eb; color: #fff;
}
.sf-finder-button:hover { background: #1d4ed8; }
.sf-popular { margin-top: .6rem; font-size: .95rem; }
.sf-suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: #fff; color: #111; border: 1px solid #cbd5e1; border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15); overflow: hidden;
}
.sf-suggestions a { display: block; padding: .6rem 1rem; text-decoration: none; color: inherit; }
.sf-suggestions a:hover, .sf-suggestions a.sf-active { background: #eff6ff; }

/* --- Chips --- */
.sf-chips { line-height: 2.2; }
.sf-chip {
    display: inline-block; margin: 0 .35rem .35rem 0; padding: .18rem .7rem;
    border: 1px solid #cbd5e1; border-radius: 999px; font-size: .98rem;
    text-decoration: none; background: rgba(148,163,184,.08);
}
a.sf-chip:hover { border-color: #2563eb; background: #eff6ff; }
.sf-chip-plain { opacity: .85; }
.sf-chips-large .sf-chip { font-size: 1.1rem; padding: .3rem .9rem; }

/* --- Word page sections --- */
.sf-section { margin-top: 2.2rem; }
.sf-sense {
    border: 1px solid rgba(148,163,184,.45); border-radius: 12px;
    padding: 1rem 1.1rem .6rem; margin: 0 0 1rem;
}
.sf-sense-head { font-size: 1.05rem; margin: 0 0 .4rem; line-height: 1.4; }
.sf-sense-num { opacity: .6; }
.sf-pos {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; background: #2563eb; color: #fff;
    border-radius: 6px; padding: .12rem .5rem; margin-right: .45rem; vertical-align: middle;
}
.sf-sense-def { font-weight: 600; }
.sf-examples { margin: .2rem 0 .8rem; padding-left: 1.2rem; font-style: italic; opacity: .9; }
.sf-faq h3 { margin: 1.1rem 0 .3rem; }
.sf-attribution { margin-top: 2.5rem; font-size: .85rem; opacity: .65; }

/* --- A-Z --- */
.sf-aznav { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.4rem; }
.sf-aznav-letter {
    display: inline-block; min-width: 2rem; text-align: center; padding: .3rem .45rem;
    border: 1px solid rgba(148,163,184,.5); border-radius: 8px; text-decoration: none; font-weight: 600;
}
.sf-aznav-current { background: #2563eb; color: #fff !important; border-color: #2563eb; }
.sf-az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.sf-az-cell {
    display: block; text-align: center; padding: .9rem .4rem; text-decoration: none;
    border: 1px solid rgba(148,163,184,.45); border-radius: 12px;
}
.sf-az-cell:hover { border-color: #2563eb; background: #eff6ff; }
.sf-az-letter { display: block; font-size: 1.6rem; font-weight: 700; }
.sf-az-count { display: block; font-size: .85rem; opacity: .75; }
.sf-wordlist { columns: 3 180px; column-gap: 2rem; list-style: none; padding: 0; margin: 1rem 0; }
.sf-wordlist li { break-inside: avoid; padding: .28rem 0; border-bottom: 1px dotted rgba(148,163,184,.35); }
.sf-wordlist-count { font-size: .8rem; opacity: .6; margin-left: .4rem; }

@media (max-width: 560px) {
    .sf-finder-button { width: 100%; }
}
