/* ───────────────────────────────────────────────────────────────────
   Size guides page (page-size-guides.php) — modelled on Lindex layout
   ─────────────────────────────────────────────────────────────────── */

.cb-sizeguide {
	max-width: 1040px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 4rem;
	/* All text uses Lindex Sans by default; headings override to Lindex Serif. */
	font-family: var(--cb-font-body, 'Lindex Sans', -apple-system, Helvetica Neue, sans-serif);
}
.cb-sizeguide table,
.cb-sizeguide summary,
.cb-sizeguide input,
.cb-sizeguide button {
	font-family: inherit;
}

/* Hero */
.cb-sizeguide__hero {
	text-align: center;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.cb-sizeguide__title {
	font-family: var(--cb-font-display, Georgia, serif);
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 1rem;
	color: var(--cb-color-text, #1a1a1a);
}
.cb-sizeguide__lead {
	max-width: 40rem;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.55;
	color: #555;
}

/* Tabs */
.cb-sizeguide__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 4vw, 2.5rem);
	border-bottom: 1px solid #e3e0d9;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.cb-sizeguide__tab {
	display: inline-block;
	padding: 0 0 .85rem;
	margin-bottom: -1px;
	font-size: 1rem;
	color: #555;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}
.cb-sizeguide__tab:hover,
.cb-sizeguide__tab.is-active {
	color: var(--cb-color-text, #1a1a1a);
	border-bottom-color: var(--cb-color-text, #1a1a1a);
}

/* Section */
.cb-sizeguide__section {
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
/* When JS tab-filtering is active, show only the selected section. */
.cb-sizeguide.is-tabbed .cb-sizeguide__section {
	display: none;
}
.cb-sizeguide.is-tabbed .cb-sizeguide__section.is-active {
	display: block;
}
.cb-sizeguide__h2 {
	font-family: var(--cb-font-display, Georgia, serif);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 400;
	margin: 0 0 1.5rem;
	color: var(--cb-color-text, #1a1a1a);
}

/* "How to measure" block — image left, text right */
.cb-sizeguide__measure {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
	background: #f6f4ef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 2.5rem;
}
.cb-sizeguide__measure--noimg {
	grid-template-columns: 1fr;
}
.cb-sizeguide__measure-media {
	background: #ebe7df;
}
.cb-sizeguide__measure-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.cb-sizeguide__measure-body {
	padding: clamp(1.5rem, 4vw, 2.75rem);
}
.cb-sizeguide__h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 .75rem;
	color: var(--cb-color-text, #1a1a1a);
}
.cb-sizeguide__measure-intro {
	margin: 0 0 1.25rem;
	color: #555;
	line-height: 1.55;
	max-width: 46rem;
}
.cb-sizeguide__deflist {
	margin: 0;
	display: grid;
	gap: 1rem;
}
.cb-sizeguide__deflist dt {
	font-weight: 600;
	color: var(--cb-color-text, #1a1a1a);
	margin-bottom: .15rem;
}
.cb-sizeguide__deflist dd {
	margin: 0;
	color: #555;
	line-height: 1.55;
}

/* Accordions */
.cb-sizeguide__accordions {
	border-top: 1px solid #e3e0d9;
}
.cb-sizeguide__acc {
	border-bottom: 1px solid #e3e0d9;
}
.cb-sizeguide__acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem .25rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--cb-color-text, #1a1a1a);
	cursor: pointer;
	list-style: none;
}
.cb-sizeguide__acc-head::-webkit-details-marker {
	display: none;
}
.cb-sizeguide__acc-head::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: #555;
}
.cb-sizeguide__acc[open] > .cb-sizeguide__acc-head::after {
	content: "−";
}
.cb-sizeguide__acc-body {
	padding: .25rem .25rem 2rem;
}
.cb-sizeguide__acc-intro {
	margin: 0 0 1.25rem;
	color: #555;
	line-height: 1.55;
	max-width: 46rem;
}

/* Size table — beige header / row-label cells, like Lindex */
.cb-sizeguide__tablewrap {
	overflow-x: auto;
}
.cb-sizeguide__table {
	border-collapse: collapse;
	font-size: .9375rem;
}
.cb-sizeguide__table th,
.cb-sizeguide__table td {
	border: 1px solid #e6e0d6;
	padding: .7rem 1.1rem;
	text-align: center;
	white-space: nowrap;
	color: #444;
}
.cb-sizeguide__table thead th {
	background: #efe9e0;
	color: var(--cb-color-text, #1a1a1a);
	font-weight: 600;
}
.cb-sizeguide__table tbody th[scope="row"] {
	background: #efe9e0;
	color: var(--cb-color-text, #1a1a1a);
	font-weight: 600;
}
.cb-sizeguide__table tbody tr:nth-child(even) td {
	background: #faf3ee;
}

.cb-sizeguide__note {
	margin: 1rem 0 0;
	font-size: .9375rem;
	font-style: italic;
	color: #767676;
}

/* Bottom brand text (shared, always visible) */
.cb-sizeguide__about {
	max-width: 46rem;
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	text-align: center;
}
.cb-sizeguide__about-rule {
	display: block;
	width: 64px;
	height: 2px;
	margin: 0 auto 2rem;
	background: #c0392f;
}
.cb-sizeguide__about-lead {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 1rem;
	color: var(--cb-color-text, #1a1a1a);
}
.cb-sizeguide__about-body {
	font-size: .9375rem;
	line-height: 1.6;
	margin: 0;
	color: #555;
}

/* Responsive */
@media (max-width: 720px) {
	.cb-sizeguide__measure {
		grid-template-columns: 1fr;
	}
	.cb-sizeguide__measure-img {
		aspect-ratio: 4 / 3;
		height: auto;
	}
}
