/* WS48 Installation Guides — scoped to .ws48ig */

.ws48ig {
	--ws48ig-ink: #16181A;
	--ws48ig-muted: #5A6066;
	--ws48ig-warm-muted: #5A5248;
	--ws48ig-line: #DDE0E2;
	--ws48ig-line-soft: #EEF0F1;
	--ws48ig-ground: #F3F4F4;
	--ws48ig-placeholder: #E4E7E8;
	--ws48ig-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ws48ig-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	font-family: var(--ws48ig-font);
	color: var(--ws48ig-ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.ws48ig *,
.ws48ig *::before,
.ws48ig *::after { box-sizing: border-box; }
.ws48ig [hidden] { display: none !important; }
.ws48ig h1, .ws48ig h2, .ws48ig h3, .ws48ig p, .ws48ig ul { margin: 0; padding: 0; }
.ws48ig h1, .ws48ig h2, .ws48ig h3 { font-family: var(--ws48ig-font); color: inherit; text-transform: none; }
.ws48ig a { text-decoration: none; }
.ws48ig button { font-family: inherit; }
.ws48ig :focus-visible { outline: 3px solid var(--ws48ig-accent); outline-offset: 2px; }
.ws48ig-icon { width: 20px; height: 20px; flex: none; }
.ws48ig-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Layout */
.ws48ig-wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.ws48ig--bleed .ws48ig-band { width: 100vw; margin-left: calc(50% - 50vw); }
body.ws48ig-bleed-page { overflow-x: clip; }

/* Hero */
.ws48ig-hero { background: var(--ws48ig-hero-bg); color: var(--ws48ig-ink); }
.ws48ig-hero__inner { padding-block: 56px 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.ws48ig-hero__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ws48ig-crumbs { font-family: var(--ws48ig-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ws48ig-warm-muted); }
.ws48ig-crumbs [aria-current] { color: var(--ws48ig-ink); }
.ws48ig-hero__title { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.ws48ig-hero__dot { color: var(--ws48ig-dot); }
.ws48ig-hero__intro { font-size: 19px; line-height: 1.5; color: #3D3A35; max-width: 620px; }

.ws48ig-search { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin-top: 8px; }
.ws48ig-search__label { font-size: 14px; font-weight: 600; }
.ws48ig-search__box {
	display: flex; align-items: center; gap: 12px; min-height: 60px;
	background: #fff; border: 1px solid var(--ws48ig-ink); border-radius: 10px; padding: 0 8px 0 18px;
}
.ws48ig-search__box:focus-within { outline: 3px solid var(--ws48ig-accent); outline-offset: 2px; }
.ws48ig-search__box .ws48ig-icon { width: 22px; height: 22px; color: var(--ws48ig-muted); }
.ws48ig .ws48ig-search__input {
	flex: 1; min-width: 0; border: 0; outline: none; box-shadow: none; background: transparent;
	font: 400 17px/1.4 var(--ws48ig-font); color: var(--ws48ig-ink); padding: 16px 0; margin: 0;
}
.ws48ig .ws48ig-search__input:focus-visible { outline: none; }
.ws48ig-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ws48ig .ws48ig-search__clear {
	min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
	background: #ECEEEF; color: var(--ws48ig-ink); font-size: 14px; font-weight: 600;
}

.ws48ig-quick { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.ws48ig .ws48ig-quick__link {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 44px; padding: 16px 18px; border-radius: 10px;
	background: #fff; border: 1px solid #D8CFBF; color: var(--ws48ig-ink);
	transition: border-color .15s ease;
}
.ws48ig .ws48ig-quick__link:hover { border-color: var(--ws48ig-ink); color: var(--ws48ig-ink); }
.ws48ig-quick__text { display: flex; flex-direction: column; gap: 2px; }
.ws48ig-quick__title { font-size: 15px; font-weight: 600; }
.ws48ig-quick__sub { font-size: 13px; color: var(--ws48ig-warm-muted); }

/* Filters */
.ws48ig-filters { background: #fff; border-bottom: 1px solid var(--ws48ig-line); }
.ws48ig-filters__inner { padding-block: 20px; display: flex; flex-direction: column; gap: 14px; }
.ws48ig-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ws48ig .ws48ig-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; border: 1px solid #C9CDD1; background: #fff; color: var(--ws48ig-ink);
	font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ws48ig .ws48ig-pill:hover { border-color: var(--ws48ig-ink); }
.ws48ig .ws48ig-pill[aria-pressed="true"] { background: var(--ws48ig-ink); border-color: var(--ws48ig-ink); color: #fff; }
.ws48ig-pill__count { font-family: var(--ws48ig-mono); font-size: 12px; font-weight: 500; color: var(--ws48ig-muted); }
.ws48ig-pill[aria-pressed="true"] .ws48ig-pill__count { color: #C9CDD1; }
.ws48ig-status { font-size: 14px; color: var(--ws48ig-muted); }
.ws48ig-status strong { color: var(--ws48ig-ink); }

/* Guides */
.ws48ig-body { background: var(--ws48ig-ground); }
.ws48ig-body__inner { padding-block: 48px 72px; display: flex; flex-direction: column; gap: 56px; }
.ws48ig-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 120px; }
.ws48ig-section__head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px;
	border-bottom: 2px solid var(--ws48ig-ink); padding-bottom: 12px;
}
.ws48ig-section__title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ws48ig-section__meta { font-family: var(--ws48ig-mono); font-size: 13px; color: var(--ws48ig-muted); text-transform: uppercase; letter-spacing: .04em; }

.ws48ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; align-items: start; }
.ws48ig-card { background: #fff; border: 1px solid var(--ws48ig-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ws48ig-card__media { height: 168px; background: var(--ws48ig-placeholder); }
.ws48ig .ws48ig-card__img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; border-radius: 0; }
.ws48ig-card__head { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 6px; }
.ws48ig-card__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ws48ig-card__meta { font-size: 13px; color: var(--ws48ig-muted); }

.ws48ig-guides { list-style: none; padding: 4px 8px 12px !important; display: flex; flex-direction: column; }
.ws48ig-guide { margin: 0; list-style: none; }
.ws48ig-guide::before, .ws48ig-guide::marker { content: none; }
.ws48ig .ws48ig-guide__link {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px;
	border-top: 1px solid var(--ws48ig-line-soft); border-radius: 8px; color: var(--ws48ig-ink);
	transition: background .15s ease;
}
.ws48ig .ws48ig-guide__link:hover { background: var(--ws48ig-ground); color: var(--ws48ig-ink); }
.ws48ig-guide__link .ws48ig-icon--file { width: 18px; height: 18px; color: var(--ws48ig-muted); }
.ws48ig-guide__link .ws48ig-icon--download { width: 18px; height: 18px; color: var(--ws48ig-accent); }
.ws48ig-guide__title { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.ws48ig-guide__type {
	flex: none; font-family: var(--ws48ig-mono); font-size: 11px; font-weight: 500;
	color: var(--ws48ig-muted); border: 1px solid #C9CDD1; border-radius: 4px; padding: 2px 6px; line-height: 1.4;
}

/* Empty state */
.ws48ig-empty {
	background: #fff; border: 1px dashed #C9CDD1; border-radius: 12px; padding: 48px 32px;
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.ws48ig-empty__title { font-size: 24px; font-weight: 700; }
.ws48ig-empty__text { font-size: 16px; color: var(--ws48ig-muted); max-width: 460px; }
.ws48ig-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ws48ig .ws48ig-btn {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
	font-size: 15px; font-weight: 600; cursor: pointer;
	background: var(--ws48ig-ink); color: #fff; border: 1px solid var(--ws48ig-ink);
}
.ws48ig .ws48ig-btn:hover { color: #fff; opacity: .9; }
.ws48ig .ws48ig-btn--ghost { background: #fff; color: var(--ws48ig-ink); }
.ws48ig .ws48ig-btn--ghost:hover { color: var(--ws48ig-ink); }

/* Support */
.ws48ig-support { background: #fff; border-top: 1px solid var(--ws48ig-line); }
.ws48ig-support__inner { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.ws48ig-support__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ws48ig-support__title { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ws48ig-support__text p { font-size: 17px; color: var(--ws48ig-muted); max-width: 520px; }
.ws48ig-support__cards { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ws48ig .ws48ig-support__card {
	display: flex; flex-direction: column; gap: 8px; padding: 20px;
	border: 1px solid var(--ws48ig-line); border-radius: 12px; color: var(--ws48ig-ink);
	transition: border-color .15s ease;
}
.ws48ig .ws48ig-support__card:hover { border-color: var(--ws48ig-ink); color: var(--ws48ig-ink); }
.ws48ig-support__card .ws48ig-icon { width: 22px; height: 22px; color: var(--ws48ig-accent); }
.ws48ig-support__label { font-size: 15px; font-weight: 700; }
.ws48ig-support__value { font-size: 14px; color: var(--ws48ig-muted); overflow-wrap: anywhere; }

/* Small screens */
@media (max-width: 640px) {
	.ws48ig-wrap { padding-inline: 20px; }
	.ws48ig-hero__inner { padding-block: 40px 48px; gap: 32px; }
	.ws48ig-hero__intro { font-size: 17px; }
	.ws48ig-section__title { font-size: 26px; }
	.ws48ig-support__title { font-size: 28px; }
	.ws48ig-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
	.ws48ig-pills::-webkit-scrollbar { display: none; }
	.ws48ig .ws48ig-pill { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.ws48ig * { transition: none !important; }
}
