/* Single Sock Guide article: editorial body styled after the supplied reference. */
.sga-single {
	--sga-ink: #101010;
	--sga-copy: #666;
	--sga-red: #e10f18;
	--sga-border: #aaa;
	position: relative;
	z-index: 0;
	margin-top: -50px;
	padding: 18px 0 64px;
	background: #fff;
	color: var(--sga-ink);
	font-family: Roboto, Arial, sans-serif;
}
.sga-single *, .sga-single *::before, .sga-single *::after { box-sizing: border-box; }
.sga-single h1, .sga-single h2, .sga-single h3, .sga-single p, .sga-single figure { margin: 0; }
.sga-single img { display: block; max-width: 100%; }
.sga-single a { color: inherit; }
.sga-single a:focus-visible, .sga-single button:focus-visible { outline: 3px solid var(--sga-red); outline-offset: 3px; }
.sga-single-page-grid { width: 100%; }
.sga-single-shell { width: min(100% - 40px, 836px); margin-inline: auto; }
body.single-sock-guide .wmya-toast--install { display: none !important; }

/* Replaceable inventory slots. Live campaign files can replace these blocks later. */
.sga-single-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; padding: 12px; border: 1px dashed #d3cec6; border-radius: 2px; background: #f7f5f1; color: #716b64; text-align: center; }
.sga-single-ad__label { font-size: 10px; font-weight: 800; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }
.sga-single-ad strong { color: #272522; font-size: 14px; line-height: 1.2; }
.sga-single-ad > span:last-child { font-size: 11px; line-height: 1.35; }
.sga-single-ad--rail { display: none; }
.sga-single-ad--leaderboard { width: min(100%, 728px); min-height: 68px; aspect-ratio: 728 / 90; margin: 0 auto 27px; }
.sga-single-ad--rectangle { width: 100%; max-width: 300px; aspect-ratio: 6 / 5; }
.sga-single-ad--mobile { display: none; }

.sga-single-header { margin: 0 0 14px; }
.sga-single-header h1 { color: #090909; font-family: 'Fjalla One', 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.sga-single-hero { position: relative; width: 100%; max-height: min(80vh, 720px); margin: 0; overflow: hidden; aspect-ratio: var(--sga-single-hero-ratio, 16 / 9); background: #f5f5f5; }
.sga-single-hero__image { position: absolute; inset: 0; width: 100%; max-width: 100%; height: 100%; object-fit: contain; background: #f5f5f5; }

/* Byline/share and article copy share the narrower editorial column; ads align at its top. */
.sga-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; margin-top: 12px; }
.sga-single-main-column { min-width: 0; }
.sga-single-byline { color: #555; font-size: 14px; line-height: 1.5; }
.sga-single-byline strong { color: #252525; font-weight: 700; }
.sga-single-share { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 42px; margin: 13px 0 12px; }
.sga-single-share button, .sga-single-share a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 10px; border: 0; border-radius: 3px; background: #4267a9; color: #fff; font: 500 12px/1 Roboto, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.sga-single-share button:hover, .sga-single-share a:hover { filter: brightness(.92); }
.sga-single-share__copy { background: #555 !important; }
.sga-single-share__facebook span { margin-right: 6px; font-weight: 800; }
.sga-single-share__x { background: #2496e8 !important; }
.sga-single-share__status { color: #555; font-size: 12px; }
.sga-single-content { color: var(--sga-copy); font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.sga-single-content > * { max-width: 100%; }
.sga-single-content p { margin: 0 0 18px; }
.sga-single-content p:last-child { margin-bottom: 0; }
.sga-single-content a { color: var(--sga-red); font-weight: 700; text-decoration: none; }
.sga-single-content a:hover { text-decoration: underline; }
.sga-single-content h2, .sga-single-content h3 { margin: 27px 0 12px; color: #111; font-family: 'Fjalla One', 'Roboto Condensed', 'Arial Narrow', sans-serif; font-weight: 400; line-height: 1.18; }
.sga-single-content h2 { font-size: 25px; }
.sga-single-content h3 { font-size: 21px; }
.sga-single-content ul, .sga-single-content ol { margin: 0 0 18px; padding-left: 1.4em; }
.sga-single-content li { margin: 0 0 6px; }
.sga-single-content blockquote { margin: 22px 0; padding: 3px 0 3px 18px; border-left: 3px solid var(--sga-red); color: #555; }
.sga-single-content figure { margin: 22px 0; }
.sga-single-content figure, .sga-single-content .wp-block-image, .sga-single-content .wp-block-gallery, .sga-single-content .wp-block-embed { max-width: 100%; min-width: 0; }
.sga-single-content img { display: block; width: auto; max-width: 100% !important; height: auto !important; object-fit: contain !important; }
.sga-single-content video, .sga-single-content iframe, .sga-single-content embed, .sga-single-content object { max-width: 100%; }
.sga-single-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
.sga-single-content .wp-block-gallery img { width: 100%; }
.sga-single-content .wp-caption { max-width: 100%; }
.sga-single-content .wp-caption-text { margin-top: 7px; color: #777; font-size: 13px; }
.sga-single-pages { margin-top: 24px; }
.sga-single-sidebar { display: grid; justify-items: center; align-content: start; gap: 15px; }

.sga-single-related { margin-top: 42px; padding-top: 22px; border-top: 1px solid #ddd; }
.sga-single-related > h2 { margin-bottom: 17px; color: #111; font-family: 'Fjalla One', 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 24px; font-weight: 400; }
.sga-single-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sga-single-related__card { min-width: 0; }
.sga-single-related__image { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #f4f2ee; }
.sga-single-related__image img { width: 100%; height: 100%; object-fit: contain; background: #f4f2ee; }
.sga-single-related__card h3 { margin-top: 9px; font-family: 'Fjalla One', 'Roboto Condensed', 'Arial Narrow', sans-serif; font-size: 17px; font-weight: 400; line-height: 1.2; }
.sga-single-related__card a { text-decoration: none; }
.sga-single-related__card a:hover { color: var(--sga-red); }
.sga-single-comments { margin-top: 36px; }

@media (max-width: 900px) {
	.sga-single-shell { width: min(100% - 40px, 836px); }
	.sga-single-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
	.sga-single-ad--rectangle { max-width: 260px; }
}
@media (max-width: 699px) {
	.sga-single { margin-top: -32px; padding: 13px 0 calc(82px + env(safe-area-inset-bottom)); }
	body.single-sock-guide .mobile-sidebar-panel__button { display: none !important; }
	.sga-single-shell { width: 100%; }
	.sga-single-ad--leaderboard { display: none; }
	.sga-single-header { margin: 0 16px 10px; }
	.sga-single-header h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.08; }
	.sga-single-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
	.sga-single-main-column { padding: 0 16px; }
	.sga-single-byline { font-size: 13px; }
	.sga-single-share { margin: 10px 0 11px; }
	.sga-single-ad--mobile { display: flex; width: min(100%, 360px); min-height: 90px; aspect-ratio: 320 / 100; margin: 12px auto 20px; }
	.sga-single-content { font-size: 16px; line-height: 1.55; }
	.sga-single-content p { margin-bottom: 17px; }
	.sga-single-sidebar, .sga-single-ad--rail { display: none !important; }
	.sga-single-related { margin: 30px 16px 0; padding-top: 18px; }
	.sga-single-related__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sga-single-related__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; }
	.sga-single-related__image { aspect-ratio: 1 / 1; }
	.sga-single-related__card h3 { margin: 0; font-size: 16px; }
	.sga-single-comments { margin: 28px 16px 0; }
}
@media (min-width: 1700px) {
	.sga-single-page-grid { display: grid; width: calc(100% + 180px); margin-left: -90px; grid-template-columns: 160px minmax(0, 836px) 160px; align-items: start; justify-content: space-between; }
	.sga-single-shell { width: 100%; }
	.sga-single-ad--rail { position: sticky; z-index: 1; top: 24px; display: flex; width: 160px; height: 600px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .sga-single *, .sga-single *::before, .sga-single *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* AdSense live state (added 1.4.0): drop the placeholder frame once a real ad unit fills the slot. */
.sga-ads-on .sga-single-ad { padding: 0; border: 0; background: transparent; aspect-ratio: auto; }
.sga-ads-on .sga-ins { width: 100%; }
.sga-ads-on .sga-ins--rail { width: 160px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Ad debug view (?sga_debug=1): shows each ad slot with its live AdSense status instead of hiding unfilled ones. */
html.sga-debug ins.sga-ins { outline: 2px dashed #e11d48; min-height: 36px; }
html.sga-debug ins.sga-ins::before { content: attr(data-sga-note); display: block; padding: 2px 6px; font: 11px/1.4 ui-monospace,Menlo,monospace; color: #fff; background: #e11d48; }
html.sga-debug ins.adsbygoogle[data-ad-status="unfilled"] { display: block !important; }
