/* 4internet.com - loads after sitekit.css on kit pages: the home page toolbox and the frame around /tools/ pages.
   The tools' own stylesheet (assets/tools/css/main.css) is scoped under .fit and styles everything inside it. */

/* ---- /tools/ pages: the application's page inside the site's chrome ---- */
.fit-main { display: block; }
.fit-main > .fit { padding: .25rem 0 1rem; }
.fit .fit-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; width: min(1380px, calc(100% - 2rem)); margin: .9rem auto .35rem; font-size: .92rem; color: var(--muted); }
.fit .fit-crumbs a { color: var(--muted); text-decoration: none; }
.fit .fit-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.fit .category-nav { width: min(1380px, calc(100% - 2rem)); margin: 0 auto; border: 1px solid var(--line); border-radius: .5rem; padding: .4rem; }
.fit .page-grid { margin-top: 1.1rem; }
.fit .page-heading h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; margin: .2rem 0 .5rem; }
.fit .fit-footer { width: min(1380px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 .5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* ---- Home page: the toolbox above the news ---- */
.fit-home { margin-bottom: 1.25rem; }
.fit-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: .75rem; }
.fit-home-head .ss-block-title { margin-bottom: .25rem; }
.fit-home-lede { margin: 0; max-width: 62ch; color: var(--bs-secondary-color, #5b6675); }
.fit-home-all { white-space: nowrap; }
.fit-home-pop { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.fit-home-pop a { display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--bs-border-color, #ccd5df); background: var(--bs-body-bg, #fff); color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; }
.fit-home-pop a:hover, .fit-home-pop a:focus-visible { border-color: var(--accent, #1165d8); color: var(--accent, #1165d8); }
.fit-home-cats .fit-cat .ss-card-meta { font-weight: 600; }

html[data-fs-theme="dark"] .fit-home-lede { color: #a8b7c8; }
html[data-fs-theme="dark"] .fit-home-pop a { background: #172332; border-color: #314155; color: #f0f5fb; }
