/* Trust Score Pages — layout. Colours, logo width, sidebar width and breakpoint come from Layout settings (inline :root vars). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.tsp-layout{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1f2937;background:#fff;line-height:1.6}
.tsp-layout img{max-width:100%;height:auto}
.tsp-layout a{color:var(--tsp-primary)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.tsp-skip:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:1000;background:#fff;padding:8px 12px;border-radius:6px}

/* Header: logo centred */
.tsp-site-header{background:var(--tsp-header-bg);border-bottom:1px solid #e5eaf0;position:relative;z-index:50}
.tsp-logo-row{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px 16px 10px}
.tsp-logo{display:inline-block;line-height:0;text-decoration:none}
.tsp-logo-img{width:var(--tsp-logo-w);max-width:80vw;height:auto;display:block;margin:0 auto}
.tsp-logo-text{font-size:1.6rem;font-weight:800;line-height:1.2;color:var(--tsp-primary)}
.tsp-tagline{margin:6px 0 0;color:#64748b;font-size:.95rem}

/* Nav */
.tsp-nav{max-width:var(--tsp-content-max);margin:0 auto;padding:0 16px 12px}
.tsp-burger{display:flex;align-items:center;gap:10px;margin:0 auto;padding:10px 16px;border:1px solid #d5dde6;border-radius:999px;background:#fff;color:var(--tsp-primary);font:inherit;font-weight:700;cursor:pointer}
.tsp-burger-bars,.tsp-burger-bars::before,.tsp-burger-bars::after{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;position:relative;content:""}
.tsp-burger-bars::before{position:absolute;top:-6px}.tsp-burger-bars::after{position:absolute;top:6px}
.tsp-nav-panel{display:none;flex-direction:column;gap:12px;padding-top:12px}
.tsp-nav.is-open .tsp-nav-panel{display:flex}
.tsp-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.tsp-menu a{display:block;padding:10px 12px;border-radius:8px;text-decoration:none;font-weight:600;color:#1f2937}
.tsp-menu a:hover,.tsp-menu .current-menu-item>a{background:#eef4f9;color:var(--tsp-primary)}
.tsp-menu .sub-menu{list-style:none;margin:0;padding:0 0 0 14px}

/* Search + tags */
.tsp-search{position:relative;width:100%}
.tsp-search input[type=search]{width:100%;padding:11px 14px;border:1px solid #cfd8e3;border-radius:10px;font:inherit;background:#fff}
.tsp-search input[type=search]:focus{outline:2px solid var(--tsp-primary);outline-offset:1px;border-color:transparent}
.tsp-results{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.14);max-height:60vh;overflow:auto;z-index:60;padding:6px}
.tsp-result{display:block;padding:9px 10px;border-radius:8px;text-decoration:none;color:#1f2937}
.tsp-result:hover,.tsp-result.is-active{background:#eef4f9}
.tsp-result-title{font-weight:700}
.tsp-result-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tsp-result-empty{padding:10px;color:#64748b}
.tsp-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tsp-tag,.tsp-chip{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid #d5dde6;background:#f8fafc;color:#334155;font:inherit;font-size:.8rem;line-height:1.5;cursor:pointer}
.tsp-chip{cursor:default}
.tsp-chip-score{background:var(--tsp-primary);border-color:var(--tsp-primary);color:#fff;font-weight:700}
.tsp-tag.is-active,.tsp-tag:hover{background:var(--tsp-accent);border-color:var(--tsp-accent);color:#fff}

/* Main area: full width; sidebar column added from the breakpoint up (see inline CSS) */
.tsp-main{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;max-width:var(--tsp-content-max);margin:0 auto;padding:0}
.tsp-has-sidebar .tsp-main{padding:0 24px}
.tsp-content{min-width:0}
.tsp-sidebar{display:none;padding:24px 0}
.tsp-sticky .tsp-sidebar-inner{position:sticky;top:20px}
.tsp-sidebar-image{margin-bottom:18px;line-height:0}
.tsp-sidebar-img{width:100%;border-radius:12px;display:block}
.tsp-sidebar-block,.tsp-widget{margin-bottom:22px}
.tsp-widget-title{font-size:1rem;margin:0 0 8px}
.tsp-recent{list-style:none;margin:0;padding:0}
.tsp-recent li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #eef2f6}

/* Footer: no logo */
.tsp-site-footer{background:var(--tsp-footer-bg);color:var(--tsp-footer-text);padding:28px 20px 20px;margin-top:40px}
.tsp-site-footer a{color:var(--tsp-footer-text)}
.tsp-footer-menu{list-style:none;margin:0 auto 14px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}
.tsp-footer-html{max-width:1100px;margin:0 auto 14px}
.tsp-bottom-line{text-align:center;font-size:.88rem;opacity:.85;border-top:1px solid rgba(255,255,255,.15);padding-top:14px;max-width:1100px;margin:0 auto}

/* Wide-screen menu row + sidebar column are in the inline CSS so they follow the breakpoint setting. */

/* Page tags + tag archives */
.tsp-page-tags{max-width:860px;margin:28px auto;padding:0 16px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tsp-page-tags-label{font-weight:700;margin-right:4px}
a.tsp-tag{text-decoration:none}
.tsp-archive-head{padding:28px 0 8px}.tsp-archive-head h1{margin:0 0 8px}
.tsp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding-bottom:24px}
.tsp-card-item{border:1px solid #dbe4ee;border-radius:14px;padding:16px 18px;background:#fff}
.tsp-card-item h2{font-size:1.1rem;margin:0 0 8px}.tsp-card-item h2 a{text-decoration:none}
.tsp-card-item p{margin:0 0 8px;color:#475569;font-size:.95rem}
.tsp-no-sidebar .tsp-main,.tsp-has-sidebar .tsp-main{padding-left:16px;padding-right:16px}

.tsp-author-box{max-width:860px;margin:32px auto;padding:20px 22px;display:flex;gap:18px;align-items:flex-start;background:#fff;border:1px solid #dbe4ee;border-radius:14px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.tsp-author-media img{width:96px;height:96px;border-radius:50%;object-fit:cover;display:block}
.tsp-author-text p{margin:0 0 8px}
.tsp-author-kicker{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.tsp-author-name{font-size:1.2rem;font-weight:700}
.tsp-author-name a{color:inherit;text-decoration:none}
.tsp-author-role{color:#64748b}
.tsp-author-bio p{margin:0 0 8px;line-height:1.6}
.tsp-author-more a{font-weight:600}
@media (max-width:600px){.tsp-author-box{flex-direction:column;align-items:center;text-align:center}}

/* 1.2.2: sidebar author + guides dropdown */
.tsp-side-author{text-align:center;padding:16px;border:1px solid #e3e9f0;border-radius:14px;background:#fff}
.tsp-side-author-photo{width:96px;height:96px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 8px}
.tsp-side-author-name{margin:0;font-weight:700}
.tsp-side-author-role{margin:2px 0 6px;color:#64748b;font-size:.9rem}
.tsp-side-author-link{font-size:.9rem}
.tsp-sidebar .tsp-tags{margin-top:0}

/* 1.2.4: Search menu item + panel with A-Z directory */
.tsp-menu-search{display:flex}
.tsp-search-toggle{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #d5dde6;border-radius:999px;background:#fff;color:var(--tsp-primary);font:inherit;font-weight:700;cursor:pointer}
.tsp-search-toggle:hover,.tsp-search-toggle[aria-expanded=true]{background:var(--tsp-primary);border-color:var(--tsp-primary);color:#fff}
.tsp-search-panel{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #e5eaf0;border-bottom:1px solid #e5eaf0;box-shadow:0 18px 40px rgba(15,23,42,.14);z-index:80}
.tsp-search-panel[hidden]{display:none}
.tsp-search-panel-inner{max-width:1100px;margin:0 auto;padding:20px 20px 26px;max-height:80vh;overflow:auto}
.tsp-search-panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tsp-search-panel-title{margin:0;font-weight:800;font-size:1.1rem;color:#0f2a3d}
.tsp-search-close{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#64748b;padding:0 4px}
.tsp-search-panel .tsp-search input[type=search]{font-size:1.05rem;padding:13px 16px}
.tsp-dir-intro{margin:18px 0 8px;color:#64748b;font-size:.92rem}
.tsp-dir{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.tsp-dir-head{margin:0 0 6px;padding-bottom:6px;border-bottom:2px solid var(--tsp-primary);font-size:.95rem;color:var(--tsp-primary)}
.tsp-dir ul{list-style:none;margin:0;padding:0}
.tsp-dir li{display:flex;justify-content:space-between;gap:6px;padding:4px 0;font-size:.9rem;line-height:1.35}
.tsp-dir a{color:#1f2937;text-decoration:none}
.tsp-dir a:hover{color:var(--tsp-primary);text-decoration:underline}
.tsp-dir-score{flex:0 0 auto;font-size:.75rem;font-weight:700;color:#64748b}
@media (max-width:980px){.tsp-dir{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.tsp-dir{grid-template-columns:repeat(2,minmax(0,1fr))}.tsp-search-panel{position:static;box-shadow:none}.tsp-search-panel-inner{max-height:none}}
.tsp-dir-empty{margin:4px 0;color:#94a3b8;font-size:.88rem}
