/* SaaS Agencies 2.0 — global chrome and shared components.
   Claude Design "SaaS Agencies: Site Redesign": sheet 01 (design system) and
   sheet 02 (site-header, site-nav, site-footer). Loaded on every page. */

body {
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-display);
	font-size: var(--type-ui-size);
	line-height: 1.5;
}
::selection { background: var(--accent-tint); }

/* ------------------------------------------------------------------ */
/* Shared bits                                                         */
/* ------------------------------------------------------------------ */

.eyebrow {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-eyebrow-size);
	line-height: var(--type-eyebrow-lh);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	z-index: 200;
	padding: var(--space-2) var(--space-4);
	background: var(--ink);
	color: #fff !important;
	border-radius: var(--radius-sm);
	font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

.link-strong {
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.link-strong:hover { color: var(--accent-dark); }

.count-pill {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 10px;
	background: var(--surface-3);
	color: var(--ink);
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	font-feature-settings: "tnum";
}

.chip-quiet {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: var(--radius-xs);
	background: var(--surface-2);
	color: var(--text);
	font-size: var(--type-chip-size);
	line-height: var(--type-chip-lh);
	text-decoration: none;
}
.chip-quiet:hover { background: var(--surface-3); color: var(--ink); }

.chip-location {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--radius-xs);
	background: var(--surface);
	border: 1px solid var(--divider);
	color: var(--text);
	font-size: 12px;
	white-space: nowrap;
}

.badge-worktype {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--radius-xs);
	border: 1px solid var(--border);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.badge-worktype--remote { border-color: var(--ink); }

/* Featured label: always the word "Featured", small caps + square marker. */
.badge-featured {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--radius-xs);
	background: var(--surface);
	border: 1px solid var(--featured-border);
	color: var(--featured-label);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.badge-featured::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* Attribution tag for any figure an agency gave us. */
.badge-claim {
	align-self: flex-start;
	font-size: 10px;
	line-height: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 1px dotted var(--muted);
	cursor: help;
}

/* Salary: the only highlight colour on a job row. */
.job-salary {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: var(--radius-xs);
	background: var(--salary-bg);
	color: var(--salary-fg);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	font-feature-settings: "tnum";
	white-space: nowrap;
}
.job-salary__unit { font-size: 12px; font-weight: 400; color: var(--salary-unit); }

.job-badge-new {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--radius-xs);
	background: var(--accent-wash);
	color: var(--accent-dark);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}
.job-badge-new::before { content: ""; width: 5px; height: 5px; border-radius: 3px; background: var(--accent); }

/* Letter tiles: six paper tints, picked per name so a company keeps its colour. */
.tile-1 { --tile: var(--tile-1); }
.tile-2 { --tile: var(--tile-2); }
.tile-3 { --tile: var(--tile-3); }
.tile-4 { --tile: var(--tile-4); }
.tile-5 { --tile: var(--tile-5); }
.tile-6 { --tile: var(--tile-6); }

.company-icon {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--tile, var(--tile-1));
	color: var(--ink);
	font: 600 17px/1 var(--font-display);
}
.company-icon img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 25%;
	background: var(--surface);
	border: 1px solid var(--divider);
	border-radius: inherit;
	object-fit: contain;
}
.company-icon--24 { width: 24px; height: 24px; border-radius: 4px; font-size: 12px; }
.company-icon--40 { width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 17px; }
.company-icon--32 { width: 32px; height: 32px; border-radius: 5px; font-size: 14px; }

.search-notice {
	margin: 0 0 var(--space-4);
	font-size: 15px;
	color: var(--text);
}
.search-notice strong { color: var(--ink); }
.search-notice a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* site-header                                                         */
/* ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--divider);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	height: var(--header-height);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--ink) !important;
	text-decoration: none !important;
}
.site-logo__mark { display: block; flex-shrink: 0; }
.site-logo__word {
	font-size: 19px;
	line-height: 24px;
	font-weight: 600;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.site-nav { height: 100%; }
.site-nav__list {
	display: flex;
	align-items: stretch;
	gap: var(--space-1);
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav__item { display: flex; }
.site-nav__trigger,
.site-nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--ink) !important;
	font: 600 15px/20px var(--font-display);
	text-decoration: none !important;
	cursor: pointer;
	border-radius: 0;
}
.site-nav__trigger:hover,
.site-nav__link:hover,
.site-nav__trigger[aria-expanded="true"] { background: var(--surface-2); }
.site-nav__item.is-current > .site-nav__trigger,
.site-nav__item.is-current > .site-nav__link,
.site-nav__trigger[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--ink); }
.site-nav__trigger:focus-visible,
.site-nav__link:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.site-nav__caret::after { content: "▼"; font-size: 9px; color: var(--muted); }
.site-nav__trigger[aria-expanded="true"] .site-nav__caret::after { content: "▲"; color: var(--ink); }

.site-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.header-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 320px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--muted);
}
.header-search:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.header-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: 400 14px/20px var(--font-display);
	color: var(--ink);
}
.header-search input:focus-visible { box-shadow: none; }
.header-search input::placeholder { color: var(--muted); }

.header-search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font: 600 15px/20px var(--font-display);
	cursor: pointer;
}
.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] { background: var(--surface-2); }

.site-header__icon,
.site-header__menu { display: none; }

/* Search panel (neutral and agency pages). */
.site-search {
	border-top: 1px solid var(--divider);
	background: var(--surface-2);
	padding: var(--space-4) 0;
}
.site-search[hidden] { display: none; }
.site-search__form {
	display: flex;
	gap: var(--space-2);
	max-width: 880px;
}
.site-search__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--muted);
}
.site-search__field:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.site-search__field input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: 400 16px/22px var(--font-display);
	color: var(--ink);
}
.site-search__field input:focus-visible { box-shadow: none; }
.site-search__form .btn { min-height: 48px; }

/* ------------------------------------------------------------------ */
/* site-nav mega menus                                                  */
/* ------------------------------------------------------------------ */

.mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: min(var(--container), calc(100vw - 2 * var(--gutter)));
	display: grid;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-soft);
	z-index: 70;
	text-align: left;
}
.mega[hidden] { display: none; }
.mega--agencies { grid-template-columns: minmax(0, 1fr) 300px; }
.mega--jobs { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 280px; }

.mega__main { padding: 28px 32px 32px; }
.mega__col { padding: 28px; }
.mega__col:first-child { padding-left: 32px; }
.mega__col + .mega__col { border-left: 1px solid var(--divider); }
.mega__col .eyebrow { display: block; margin-bottom: 12px; }
.mega__sub { margin-top: 20px; }

.mega__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 16px;
}
.mega__all {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink) !important;
	text-decoration: none;
}
.mega__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__all--below { display: inline-block; margin-top: 14px; font-size: 15px; }

.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.mega__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	height: 44px;
	border-bottom: 1px solid var(--divider);
	font-size: 15px;
	color: var(--ink) !important;
	text-decoration: none;
}
.mega__row--40 { height: 40px; }
.mega__row:hover span:first-child,
.mega__row:hover .mega__grow { text-decoration: underline; text-underline-offset: 3px; }
.mega__grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__count { font-size: 14px; color: var(--muted); font-feature-settings: "tnum"; }

.mega__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.mega__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.mega__aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: var(--surface-2);
	border-left: 1px solid var(--divider);
	border-radius: 0 0 var(--radius) 0;
}
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links a {
	display: flex;
	align-items: center;
	height: 44px;
	border-bottom: 1px solid #E1DBCE;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink) !important;
	text-decoration: none;
}
.mega__links li:last-child a { border-bottom: 0; }
.mega__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__serif { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 22px; color: var(--text); }
.mega__serif--rule { border-top: 1px solid #E1DBCE; padding-top: 14px; }
.mega__figure { font-size: 36px; line-height: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-feature-settings: "tnum"; }
.mega__figure-label { margin-top: -6px; font-size: 14px; color: var(--text); }
.mega__aside .btn { align-self: flex-start; }
.mega__levels { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.mega__levels a { color: var(--muted); }
.mega__levels a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* site-nav--drawer                                                     */
/* ------------------------------------------------------------------ */

.site-drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--paper);
	color: var(--text);
	flex-direction: column;
	overflow: hidden;
}
.site-drawer[open] { display: flex; }
.site-drawer::backdrop { background: rgb(23 21 15 / .3); }
body.has-drawer { overflow: hidden; }

.site-drawer__head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 8px 0 var(--gutter);
	border-bottom: 1px solid var(--divider);
}
.site-drawer__head .site-logo__word { font-size: 17px; }
.site-drawer__close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 600 15px/20px var(--font-display);
	cursor: pointer;
}
.site-drawer__close span { font-size: 22px; font-weight: 400; line-height: 1; }

.site-drawer__search {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: 16px var(--gutter) 8px;
}
.site-drawer__search-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

.site-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0 var(--gutter) var(--space-4);
}
.drawer-section { border-bottom: 1px solid var(--divider); }
.drawer-section > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 56px;
	list-style: none;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
}
.drawer-section > summary::-webkit-details-marker { display: none; }
.drawer-section > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
.drawer-section[open] > summary::after { content: "−"; color: var(--ink); }
.drawer-section__count { font-size: 14px; font-weight: 400; color: var(--muted); font-feature-settings: "tnum"; }
.drawer-section__label { display: block; margin: 8px 0 4px; }
.drawer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
	padding-left: 12px;
	border-bottom: 1px solid var(--divider);
	font-size: 16px;
	color: var(--ink) !important;
	text-decoration: none;
}
.drawer-row:last-child { border-bottom: 0; margin-bottom: 8px; }
.drawer-row--strong { font-weight: 600; }
.drawer-row__count { font-size: 14px; font-weight: 400; color: var(--muted); font-feature-settings: "tnum"; }
.drawer-top {
	display: flex;
	align-items: center;
	height: 56px;
	border-bottom: 1px solid var(--divider);
	font-size: 18px;
	font-weight: 600;
	color: var(--ink) !important;
	text-decoration: none;
}

.site-drawer__foot {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px var(--gutter) 24px;
	border-top: 1px solid var(--divider);
	background: var(--surface-2);
}
.site-drawer__foot .btn { min-height: 48px; border-color: var(--ink); }
.site-drawer__foot p { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ */
/* site-footer                                                          */
/* ------------------------------------------------------------------ */

.site-footer {
	margin-top: 0;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
	gap: 40px;
	padding-top: 48px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__descriptor {
	margin: 0;
	max-width: 32ch;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 25px;
	color: var(--text);
}
.site-footer__stats {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	line-height: 19px;
	color: var(--text);
	font-feature-settings: "tnum";
}
.site-footer__stats b { color: var(--ink); font-weight: 600; }

.footer-col__title { margin: 0 0 10px; }
.footer-col__toggle {
	display: inline;
	pointer-events: none;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: left;
	cursor: pointer;
}
.footer-col__list { list-style: none; margin: 0; padding: 0; }
.footer-col__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	font-size: 14px;
	line-height: 18px;
	color: var(--ink) !important;
	text-decoration: none;
}
.footer-col__list a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.footer-col__count { color: var(--muted); font-feature-settings: "tnum"; }

.site-footer__legal {
	display: flex;
	justify-content: space-between;
	gap: var(--space-5);
	margin-top: 40px;
	padding-top: 18px;
	padding-bottom: 24px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	line-height: 19px;
	color: var(--muted);
}
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Breakpoints                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1199px) {
	.header-search { width: 240px; }
	.mega--jobs { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 240px; }
}

/* Below the two-column switch the nav moves into the drawer. */
@media (max-width: 1023px) {
	.site-header__inner { gap: var(--space-2); }
	.site-nav,
	.header-search,
	.header-search-toggle,
	.site-header__actions > .btn { display: none; }
	.site-header__actions { gap: 0; margin-right: -12px; }
	.site-header__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		color: var(--ink);
		cursor: pointer;
	}
	.site-header__menu {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		padding: 0 12px;
		border: 0;
		background: transparent;
		color: var(--ink);
		font: 600 15px/20px var(--font-display);
		cursor: pointer;
	}
	.menu-icon { display: flex; flex-direction: column; gap: 4px; }
	.menu-icon i { display: block; width: 16px; height: 2px; background: var(--ink); }
	.menu-icon i:last-child { width: 10px; background: var(--accent); }

	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	.site-header__inner { height: var(--header-height); }
	.site-logo { gap: 8px; }
	.site-logo__mark { width: 22px; height: 22px; }
	.site-logo__word { font-size: 17px; }

	.site-search__form { flex-wrap: wrap; }
	.site-search__field { flex-basis: 100%; }
	.site-search__form .btn { flex: 1; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
	.site-footer__brand { gap: 10px; padding-bottom: 18px; }
	.site-footer__descriptor { display: none; }
	.site-footer__stats { border-top: 0; padding-top: 0; }
	.site-footer__brand + .footer-col { border-top: 1px solid var(--border); }
	.footer-col { border-bottom: 1px solid var(--border); }
	.js-footer .footer-col__title { margin: 0; }
	.js-footer .footer-col__toggle {
		display: flex;
		pointer-events: auto;
		justify-content: space-between;
		align-items: center;
		height: 52px;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		color: var(--ink);
	}
	.js-footer .footer-col__toggle::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); }
	.js-footer .footer-col__toggle[aria-expanded="true"]::after { content: "−"; }
	.js-footer .footer-col.is-collapsed .footer-col__list { display: none; }
	.footer-col__list { padding-bottom: 8px; }
	.footer-col__list a { min-height: 44px; font-size: 15px; }
	.site-footer__legal { flex-direction: column; gap: 4px; margin-top: 16px; font-size: 12px; line-height: 18px; }
}
