/* All styling is scoped: this plugin must not restyle the charity's existing pages. */
.tthnf{--tthnf-navy:#183954;--tthnf-blue:#255487;--tthnf-accent:#e22116;--tthnf-muted:#556c81;--tthnf-card:#f6f6fb;font-family:Montserrat,Arial,sans-serif;color:var(--tthnf-navy);width:100%}
.tthnf *{box-sizing:border-box}
.tthnf__form{padding:24px 26px 22px;background:#fff;border:1px solid #e7ebf1;border-radius:18px;box-shadow:0 10px 28px rgba(29,52,75,.055);display:grid;gap:20px;margin:0 0 32px}
.tthnf__branch-control{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.tthnf__control-title{font-size:15px;font-weight:700;line-height:1.4;color:var(--tthnf-navy);padding:0;margin:0 0 10px;border:0}
.tthnf__branch-control .tthnf__control-title{margin:0}
.tthnf .tthnf__select{width:min(100%,370px);min-height:46px;padding:9px 42px 9px 15px;border:1px solid #ccd8e1;background:#fff;color:var(--tthnf-navy);border-radius:9px;font:600 15px/1.35 Montserrat,Arial,sans-serif;cursor:pointer}
.tthnf__categories{border:0;margin:0;min-width:0;padding:0}
.tthnf__chips{display:flex;flex-wrap:wrap;gap:9px}
.tthnf__chip{position:relative;display:inline-flex;cursor:pointer;margin:0}
.tthnf__chip input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:1}
.tthnf__chip span{display:block;padding:10px 16px;border-radius:9px;border:1px solid #d8e0e9;background:#fff;color:#24445d;font-size:13px;font-weight:700;line-height:1.35;transition:background-color .15s,border-color .15s,color .15s}
.tthnf__chip input:checked+span{background:var(--tthnf-blue);border-color:var(--tthnf-blue);color:#fff}
.tthnf__chip input:focus-visible+span,.tthnf__reset:focus-visible,.tthnf__apply:focus-visible,.tthnf__page-link:focus-visible,.tthnf a:focus-visible,.tthnf .tthnf__select:focus-visible{outline:3px solid #ffb13b;outline-offset:3px}
.tthnf__chip:hover span{border-color:var(--tthnf-blue)}
.tthnf__form-actions{display:flex;align-items:center;gap:15px}
.tthnf__apply{font:700 14px/1.3 Montserrat,Arial,sans-serif;padding:11px 20px;color:#fff;background:var(--tthnf-accent);border:0;border-radius:9px;cursor:pointer}
.tthnf--enhanced .tthnf__apply{display:none}
.tthnf__reset{font-size:13px;font-weight:700;color:var(--tthnf-blue);text-decoration:underline;text-underline-offset:3px}
.tthnf__count{font-size:13px;color:var(--tthnf-muted);font-weight:600;margin:0 0 18px}
.tthnf__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.tthnf__card{border-radius:14px;background:var(--tthnf-card);overflow:hidden;min-width:0;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 1px 0 rgba(26,52,75,.04)}
.tthnf__card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(22,50,80,.11)}
.tthnf__image-link{display:block;line-height:0;background:#e5edf3;overflow:hidden}
.tthnf__image{width:100%;aspect-ratio:1.75/1;object-fit:cover;display:block;transition:transform .35s ease}
.tthnf__image--empty{background:linear-gradient(135deg,#e8f0f7,#c9dcea)}
.tthnf__card:hover .tthnf__image{transform:scale(1.035)}
.tthnf__card-body{padding:21px 22px 24px;display:flex;flex-direction:column;flex:1}
.tthnf__card-title{font:700 clamp(19px,1.6vw,24px)/1.3 Montserrat,Arial,sans-serif;letter-spacing:-.02em;color:var(--tthnf-navy);margin:0 0 14px;overflow-wrap:anywhere}
.tthnf__card-title a{color:inherit;text-decoration:none}
.tthnf__card-title a:hover,.tthnf__read-more:hover{color:var(--tthnf-accent)}
.tthnf__excerpt{font-size:14px;line-height:1.65;color:var(--tthnf-muted);margin:0 0 14px;overflow-wrap:anywhere;flex:1}
.tthnf__read-more{align-self:flex-start;font:700 14px/1.4 Montserrat,Arial,sans-serif;text-decoration:none;color:var(--tthnf-navy)}
.tthnf__pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:34px 0 8px}
.tthnf__page-link{min-width:38px;min-height:38px;padding:8px 11px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #d9e1e9;border-radius:8px;background:#fff;color:var(--tthnf-navy);font-size:13px;font-weight:700;line-height:1.2}
.tthnf__page-link:hover,.tthnf__page-link--active{border-color:var(--tthnf-blue);background:var(--tthnf-blue);color:#fff}
.tthnf__ellipsis{font-size:16px;padding:0 3px}
.tthnf__empty{padding:48px 20px;text-align:center;background:#f5f8fb;border:1px dashed #cfdbe5;border-radius:14px;color:var(--tthnf-muted)}
.tthnf__empty p{margin:0 0 8px}
.tthnf__results[aria-busy="true"]{opacity:.55;transition:opacity .15s}
@media(max-width:1000px){.tthnf__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media(max-width:670px){.tthnf__form{padding:18px 16px;gap:19px;margin-bottom:25px}.tthnf__grid{grid-template-columns:1fr;gap:20px}.tthnf .tthnf__select{width:100%}.tthnf__chips{gap:7px}.tthnf__chip span{padding:9px 11px;font-size:12px}.tthnf__card-title{font-size:20px}.tthnf__card-body{padding:17px 18px 20px}}
@media(prefers-reduced-motion:reduce){.tthnf__card,.tthnf__image,.tthnf__chip span,.tthnf__results{transition:none!important}.tthnf__card:hover{transform:none}.tthnf__card:hover .tthnf__image{transform:none}}
.tthnf__results{scroll-margin-top:115px}
