/*
 * Blogsy SEO Child - homepage.
 * Scale follows iFixit's design primitives: 4px spacing grid, type scale 12/14/16/18/20/24/30/36/48,
 * weights 400/600/700, radii 4/8/16, breakpoints 768/1028. Colours come from the theme variables (see global.css).
 */
.bsh {
	--bsh-radius: var(--pt-soft-radius, 8px);
	--bsh-radius-sm: var(--pt-btn-radius, 4px);
	--bsh-border: var(--pt-border-color, #e5e7eb);
	--bsh-card: var(--pt-card-bg, #fff);
	--bsh-accent: var(--pt-accent-color, #1975f1);
	--bsh-accent-hover: color-mix(in srgb, var(--bsh-accent) 80%, #000);
	--bsh-text: var(--pt-body-color, #11161a);
	--bsh-head: var(--pt-headings-color, #11161a);
	--bsh-muted: color-mix(in srgb, var(--bsh-text) 68%, transparent);
	color: var(--bsh-text);
	line-height: 1.5;
}
.bsh *, .bsh *::before, .bsh *::after { box-sizing: border-box; }
.bsh ul { list-style: none; margin: 0; padding: 0; }
.bsh a { color: inherit; text-decoration: none; }
.bsh :where(h1, h2, h3, p) { margin: 0; }
.bsh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsh h1, .bsh h2, .bsh h3 { color: var(--bsh-head); line-height: 1.25; }
.bsh a:focus-visible, .bsh button:focus-visible { outline: 2px solid var(--bsh-accent); outline-offset: 2px; }
.bsh-wrap { width: 100%; max-width: var(--pt-site-width, 1400px); margin: 0 auto; padding: 0 20px; }

/* Hero + mascot */
.bsh-hero { padding: 64px 0 48px; }
.bsh-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.bsh-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bsh-accent); margin-bottom: 16px; }
.bsh-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin-bottom: 24px; }
.bsh-hero-desc { max-width: 56ch; font-size: 18px; color: var(--bsh-muted); margin-bottom: 32px; }
.bsh-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bsh-hero .bsh-cbtn { margin-top: 0; }
.bsh-hero-art { position: relative; display: grid; place-items: center; }
.bsh-hero-art::before { content: ""; position: absolute; width: min(400px, 92%); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--bsh-accent) 10%, transparent); }
.bsh-dog { position: relative; width: min(360px, 82%); height: auto; --dog-line: #29294b; }
html[scheme="dark"] .bsh-dog { --dog-line: #cbd5e1; }

/* Sections + panels */
.bsh-sec { padding: 48px 0; scroll-margin-top: 24px; }
.bsh-sec-head { margin-bottom: 24px; max-width: 64ch; }
.bsh-sec-head h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; margin-bottom: 8px; }
.bsh-sec-head p { font-size: 16px; color: var(--bsh-muted); }
.bsh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bsh-panel { display: flex; flex-direction: column; background: var(--bsh-card); border: 1px solid var(--bsh-border); border-radius: var(--bsh-radius); padding: 24px; }
.bsh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--bsh-accent); margin-bottom: 8px; }
.bsh-panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.bsh-panel-desc { font-size: 14px; color: var(--bsh-muted); margin-bottom: 16px; }
.bsh-plist { margin-bottom: 16px; }
.bsh-plist li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--bsh-border); font-size: 14px; font-weight: 600; line-height: 1.43; }
.bsh-plist li a:hover { color: var(--bsh-accent); }
.bsh-tail { font-size: 12px; font-weight: 400; color: var(--bsh-muted); white-space: nowrap; }
.bsh-link { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--bsh-accent) !important; }
.bsh-link:hover { text-decoration: underline; }
.bsh-hint { padding: 8px 12px; margin-bottom: 12px; font-size: 12px; color: var(--bsh-muted); border: 1px dashed var(--bsh-border); border-radius: var(--bsh-radius-sm); }

/* Buttons */
.bsh-cbtn { align-self: flex-start; margin-top: auto; padding: 10px 20px; font-size: 16px; font-weight: 600; line-height: 24px; border: 1px solid var(--bsh-accent); border-radius: var(--bsh-radius-sm); transition: background .15s ease-in-out, color .15s ease-in-out; }
.bsh-cbtn--solid { background: var(--bsh-accent); color: #fff !important; }
.bsh-cbtn--solid:hover { background: var(--bsh-accent-hover); border-color: var(--bsh-accent-hover); }
.bsh-cbtn--outline { color: var(--bsh-accent) !important; }
.bsh-cbtn--outline:hover { background: color-mix(in srgb, var(--bsh-accent) 10%, transparent); }

/* Latest posts: text cards with tag badges (iFixit badge style: 12px semibold, 4px radius, tinted bg + 1px border) */
.bsh-feed { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.bsh-post { display: flex; flex-direction: column; background: var(--bsh-card); border: 1px solid var(--bsh-border); border-radius: var(--bsh-radius); transition: box-shadow .15s ease-in-out; }
.bsh-post:hover { box-shadow: var(--pt-shadow-soft, 0 1px 2px rgba(17, 22, 26, .1), 0 2px 4px rgba(17, 22, 26, .1)); }
.bsh-post-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.bsh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bsh-tag { display: inline-block; padding: 4px 8px; font-size: 12px; font-weight: 600; line-height: 1; border-radius: var(--bsh-radius-sm); color: var(--ix-brand-700, #004ab3) !important; background: var(--ix-brand-100, #edf6ff); box-shadow: inset 0 0 0 1px var(--ix-brand-300, #77b5ff); }
html[scheme="dark"] .bsh-tag { color: #9cc9ff !important; background: color-mix(in srgb, var(--bsh-accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bsh-accent) 50%, transparent); }
.bsh-post h3 { font-size: 18px; font-weight: 600; }
.bsh-post h3 a:hover { color: var(--bsh-accent); }
.bsh-post p { flex: 1; font-size: 14px; color: var(--bsh-muted); }
.bsh-date { font-size: 12px; color: var(--bsh-muted); }
.bsh-all { margin-top: 24px; }

@media (max-width: 1028px) {
	.bsh-hero { padding: 40px 0 24px; }
	.bsh-hero-grid { grid-template-columns: 1fr; }
	.bsh-hero-art { order: -1; }
	.bsh-dog { width: min(220px, 60%); }
	.bsh-hero-art::before { width: min(240px, 70%); }
}
@media (max-width: 768px) {
	.bsh-two, .bsh-feed { grid-template-columns: 1fr; }
	.bsh-sec { padding: 32px 0; }
	.bsh-panel { padding: 20px; }
	.bsh-post-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bsh-cbtn, .bsh-post { transition: none; } }
