/* article-find.css — version v2 (2026-12-02) — howtobuyinspain.com, goes with article-find.js v3.
   Changes vs v1: tool links among the chips (.af-link a, js v3) look like the chips, filled soft blue.
   Colours from article.css: navy #243c4f, link #2a5bd7, orange #f47230, soft blue #eef5fd / #b8d4ee. */

/* ---- the "Find in this article" box ---- */
.af{border:1px solid #b8d4ee;background:#f5f9fe;border-radius:12px;padding:14px 16px;margin:20px 0}
.af-l{display:block;font-weight:700;color:#243c4f;margin:0 0 8px;font-size:1rem}
.af-row{position:relative}
.af-i{box-sizing:border-box;width:100%;min-height:46px;padding:10px 40px 10px 12px;font:inherit;font-size:16px;color:#1b2430;background:#fff;border:1px solid #b8d4ee;border-radius:8px}
.af-i:focus{outline:2px solid #2a5bd7;outline-offset:1px;border-color:#2a5bd7}
.af-i::-webkit-search-cancel-button{display:none}
.af-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;background:none;color:#5d6877;font-size:1.4rem;line-height:1;cursor:pointer;border-radius:6px}
.af-x:hover{background:#eef5fd;color:#243c4f}

.content ul.af-chips,ul.af-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0 0;padding:0}
ul.af-chips[hidden]{display:none}
.af-chips li{margin:0;padding:0;list-style:none}
.af-chips li::before{content:none}
.af-chips button{font:inherit;font-size:.86rem;font-weight:600;color:#2a5bd7;background:#fff;border:1px solid #b8d4ee;border-radius:999px;padding:4px 12px;min-height:34px;cursor:pointer;text-align:left}
.af-chips button:hover{background:#eef5fd}
.af-chips .af-link a,.content .af-chips .af-link a{display:inline-flex;align-items:center;font-size:.86rem;font-weight:600;color:#2a5bd7;background:#eef5fd;border:1px solid #b8d4ee;border-radius:999px;padding:4px 12px;min-height:34px;box-sizing:border-box;text-decoration:none;line-height:1.3}
.af-chips .af-link a:hover{background:#dcebfb;text-decoration:none}

.content ul.af-res,ul.af-res{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
ul.af-res:empty{display:none}
.af-res li{margin:0;padding:0;list-style:none}
.af-res li::before{content:none}
.af-res a{display:block;padding:9px 12px;border:1px solid #e3e7ee;border-left:4px solid #2a5bd7;border-radius:8px;background:#fff;text-decoration:none;color:#1b2430;line-height:1.35}
.af-res a:hover,.af-res a:focus-visible{background:#eef5fd;text-decoration:none}
.af-res b{display:block;color:#243c4f;font-size:.95rem}
.af-res i{display:block;font-style:normal;font-size:.78rem;color:#5d6877;margin-top:1px}
.af-res small{display:block;font-size:.84rem;color:#5d6877;margin-top:3px}
.af-res mark{background:#fff0c2;color:inherit;border-radius:2px}
.af-res .af-town a{border-left-color:#f47230}
.af-none{font-size:.9rem;color:#5d6877;padding:4px 2px}
.af-none a{color:#2a5bd7;font-weight:600}

/* in the right column: no frame, the column already has one */
.al-rail .af{border:0;background:none;padding:0 10px 12px;margin:0 0 6px;border-bottom:1px solid #e3e7ee;border-radius:0}
.al-rail .af-l{font-size:.9rem}
.al-rail .af-chips button{font-size:.8rem;min-height:30px;padding:3px 10px}
.al-rail .af-chips .af-link a{font-size:.8rem;min-height:30px;padding:3px 10px}

/* in the phone bar's list */
.al-panel .af{margin:0;border:0;border-bottom:1px solid #e3e7ee;border-radius:0;padding:12px 14px}

/* ---- phone bar: section count and reading progress ---- */
.al-bar .af-n{flex:none;font-style:normal;font-size:.82rem;font-weight:600;opacity:.75;font-variant-numeric:tabular-nums}
.al-bar .af-n:empty{display:none}
.af-prog{position:absolute;left:0;bottom:0;height:3px;width:0;background:#f47230;pointer-events:none}

/* ---- the heading a result lands on ---- */
.af-flash{animation:af-flash 1.8s ease-out}
@keyframes af-flash{0%{background:#fff0c2;box-shadow:0 0 0 8px #fff0c2}100%{background:transparent;box-shadow:0 0 0 8px transparent}}
@media (prefers-reduced-motion:reduce){.af-flash{animation:none}}
