/*------------------------------------------------------------------
WomenSutra article (single post) styles. Plain CSS, no build step.
Requires ws-tokens.css and ws-front.css. Built from the "Article detail ·
Responsive template" frames of the WomenSutra Figma file.

Breakpoints (Design System v1.0): mobile < 768px, tablet 768-1023px,
desktop >= 1024px. The contents rail needs room for 208 + 688 + 208px
columns, so it appears from 1200px.
-------------------------------------------------------------------*/

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.ws-article-page .ws-main > .ws-article {
	display: block;
}

/* Hidden schema.org meta printed by the legacy PostMeta action. */
.ws-article .post-bottom-meta {
	display: none;
}

/* 01 · Introduction ------------------------------------------------- */
.ws-article__intro {
	padding: 32px 24px;
}

.ws-article__intro-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 688px;
	margin-inline: auto;
}

.ws-article__intro-inner > * {
	margin: 0;
}

.ws-breadcrumb {
	width: 100%;
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

.ws-breadcrumb ol {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ws-breadcrumb li + li::before {
	content: "/";
	content: "/" / "";
	flex: none;
}

.ws-breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--ws-text-secondary);
}

.ws-breadcrumb a:hover {
	color: var(--ws-text-brand);
}

.ws-breadcrumb__current {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ws-article__intro .ws-eyebrow a {
	color: inherit;
}

.ws-article__title {
	width: 100%;
	font-size: 32px;
	line-height: 40px;
	font-weight: 400;
	overflow-wrap: break-word;
}

.ws-article__standfirst {
	font-size: 18px;
	line-height: 28px;
	color: var(--ws-text-primary);
}

.ws-article__byline {
	min-height: 44px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

.ws-article__byline a {
	color: inherit;
}

.ws-article__actions {
	display: flex;
	gap: 16px;
}

.ws-article__action {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 120px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--ws-border-default);
	border-radius: var(--ws-radius-medium);
	background: var(--ws-surface-default);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--ws-text-brand);
	text-align: center;
	cursor: pointer;
}

.ws-article__action:hover {
	border-color: var(--ws-border-focus);
	background: var(--ws-surface-brand);
	text-decoration: none;
}

.ws-article__share::after {
	content: " ↗";
	content: " ↗" / "";
	white-space: pre;
}

/* 02 · Lead photograph --------------------------------------------- */
.ws-article__lead {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 32px;
}

.ws-article__lead-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1170 / 600;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: var(--ws-radius-medium);
}

.ws-article__lead figcaption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

/* 03 · Reading ------------------------------------------------------ */
.ws-article__reading {
	padding: 40px 24px;
	border-top: 1px solid var(--ws-border-subtle);
}

.ws-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 688px);
	justify-content: center;
}

.ws-article__body {
	min-width: 0;
}

/* Contents rail */
.ws-toc {
	display: none;
}

.ws-toc__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-transform: uppercase;
	color: var(--ws-text-secondary);
}

.ws-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-toc__list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-left: 12px;
	border-left: 2px solid transparent;
	font-size: 16px;
	line-height: 24px;
	color: var(--ws-text-secondary);
}

.ws-toc__list a:hover {
	color: var(--ws-text-brand);
	text-decoration: none;
}

.ws-toc__list a[aria-current="true"] {
	border-left-color: var(--ws-border-focus);
	color: var(--ws-text-brand);
}

/* Body copy: the author's block content */
.ws-main .ws-article__content {
	font-size: 16px;
	line-height: 26px;
	color: var(--ws-text-primary);
	overflow-wrap: break-word;
}

.ws-main .ws-article__content > * {
	margin-block: 0;
}

.ws-main .ws-article__content > * + * {
	margin-top: 20px;
}

.ws-main .ws-article__content a {
	color: var(--ws-text-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ws-main .ws-article__content a:hover {
	text-decoration-thickness: 2px;
}

.ws-main .ws-article__content h2,
.ws-main .ws-article__content h3,
.ws-main .ws-article__content h4 {
	font-family: var(--ws-stack-heading);
	font-weight: 500;
	color: var(--ws-text-primary);
	scroll-margin-top: 24px;
}

.ws-main .ws-article__content h2 {
	margin-top: 48px;
	font-size: 28px;
	line-height: 36px;
}

.ws-main .ws-article__content h3 {
	margin-top: 40px;
	font-size: 22px;
	line-height: 30px;
}

.ws-main .ws-article__content h4 {
	margin-top: 32px;
	font-size: 18px;
	line-height: 26px;
}

.ws-main .ws-article__content > :first-child {
	margin-top: 0;
}

.ws-main .ws-article__content h2 + *,
.ws-main .ws-article__content h3 + * {
	margin-top: 20px;
}

.ws-main .ws-article__content ul,
.ws-main .ws-article__content ol {
	padding-left: 1.4em;
}

.ws-main .ws-article__content li + li {
	margin-top: 4px;
}

.ws-main .ws-article__content li > :is(ul, ol) {
	margin-top: 4px;
}

/* Lists made only of links (for example sources): rows with a 44px target. */
.ws-main .ws-article__content :is(ul, ol):has(> li > a:only-child) {
	padding-left: 0;
	list-style: none;
}

.ws-main .ws-article__content li:has(> a:only-child) > a {
	display: inline-block;
	padding-block: 10px;
}

.ws-main .ws-article__content strong {
	font-weight: 600;
}

.ws-main .ws-article__content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ws-main .ws-article__content .wp-block-image img {
	border-radius: var(--ws-radius-medium);
}

.ws-main .ws-article__content figure {
	margin-inline: 0;
}

.ws-main .ws-article__content figcaption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
	text-align: left;
}

/* Label, meta and note styles for preparation steps */
.ws-main .ws-article__content .ws-label {
	margin-top: 24px;
	margin-bottom: -12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.ws-main .ws-article__content .ws-label strong {
	font-weight: 600;
}

.ws-main .ws-article__content h3 + .ws-meta {
	margin-top: 8px;
}

.ws-main .ws-article__content .ws-meta {
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

.ws-main .ws-article__content .ws-meta strong {
	font-weight: 400;
}

.ws-main .ws-article__content .is-style-ws-tip {
	padding: 4px 0 4px 16px;
	border-left: 2px solid var(--ws-border-focus);
	font-size: 16px;
	line-height: 26px;
}

.ws-main .ws-article__content .is-style-ws-tip strong {
	font-weight: 400;
}

.ws-main .ws-article__content .is-style-ws-callout {
	padding: 20px;
	border-radius: var(--ws-radius-medium);
	background: var(--ws-surface-brand);
	font-size: 16px;
	line-height: 24px;
}

.ws-main .ws-article__content .is-style-ws-callout > * + * {
	margin-top: 12px;
}

.ws-main .ws-article__content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 16px;
	border-left: 2px solid var(--ws-border-focus);
}

.ws-main .ws-article__content blockquote p {
	margin: 0;
}

.ws-main .ws-article__content blockquote p + p {
	margin-top: 12px;
}

.ws-main .ws-article__content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	color: var(--ws-text-secondary);
}

/* Rule between preparation sections (Separator block) */
.ws-main .ws-article__content .wp-block-separator {
	width: 100%;
	max-width: none;
	margin-block: 40px;
	border: 0;
	border-top: 1px solid var(--ws-border-subtle);
	background: transparent;
	opacity: 1;
}

.ws-main .ws-article__content .wp-block-separator + * {
	margin-top: 0;
}

/* Comparison table */
.ws-main .ws-article__content .wp-block-table {
	overflow-x: auto;
}

.ws-main .ws-article__content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 16px;
	line-height: 26px;
}

.ws-main .ws-article__content .wp-block-table thead {
	border: 0;
}

.ws-main .ws-article__content .wp-block-table th,
.ws-main .ws-article__content .wp-block-table td {
	padding: 16px 24px 16px 0;
	border: 0;
	border-bottom: 1px solid var(--ws-border-subtle);
	text-align: left;
	vertical-align: top;
}

.ws-main .ws-article__content .wp-block-table th {
	background: var(--ws-surface-brand);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.ws-main .ws-article__content .wp-block-table th:last-child,
.ws-main .ws-article__content .wp-block-table td:last-child {
	padding-right: 0;
}

/* FAQ: Details blocks */
.ws-main .ws-article__content .wp-block-details {
	padding-block: 20px;
	border-bottom: 1px solid var(--ws-border-subtle);
}

.ws-main .ws-article__content .wp-block-details + .wp-block-details {
	margin-top: 0;
}

.ws-main .ws-article__content .wp-block-details > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	font-family: var(--ws-stack-heading);
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	list-style: none;
	cursor: pointer;
}

.ws-main .ws-article__content .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.ws-main .ws-article__content .wp-block-details > summary::after {
	content: "+";
	content: "+" / "";
	flex: none;
	width: 16px;
	margin-left: auto;
	color: var(--ws-text-brand);
	text-align: center;
}

.ws-main .ws-article__content .wp-block-details[open] > summary::after {
	content: "−";
	content: "−" / "";
}

.ws-main .ws-article__content .wp-block-details > :not(summary) {
	margin-top: 16px;
}

.ws-main .ws-article__content .wp-block-details > summary:focus-visible {
	outline: 2px solid var(--ws-border-focus);
	outline-offset: 4px;
}

.ws-article__pages {
	margin-top: 32px;
	font-size: 14px;
}

.ws-article__pages a,
.ws-article__pages > span {
	margin-right: 8px;
}

/* 04 · Author and editorial promise */
.ws-article__about {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 48px;
	padding: 24px;
	border: 1px solid var(--ws-border-subtle);
	border-radius: var(--ws-radius-medium);
	background: var(--ws-surface-canvas);
}

.ws-article__about > * {
	margin: 0;
}

.ws-article__about-name {
	font-family: var(--ws-stack-heading);
	font-size: 24px;
	font-weight: 500;
	line-height: 32px;
}

.ws-article__about-meta {
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

.ws-article__about-text {
	font-size: 16px;
	line-height: 24px;
}

.ws-article__about .ws-arrow-link a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Comments */
.ws-comments {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--ws-border-subtle);
}

.ws-main .ws-comments__title {
	margin: 0 0 24px;
	font-size: 28px;
	line-height: 36px;
}

.ws-comments__list,
.ws-comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-comments__list .children {
	margin-top: 24px;
	padding-left: 24px;
	border-left: 2px solid var(--ws-border-subtle);
}

.ws-comments__list > li + li {
	margin-top: 24px;
}

.ws-comments__list .comment-body {
	position: relative;
	padding-left: 64px;
}

.ws-comments__list .avatar {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: var(--ws-radius-pill);
}

.ws-comments__list .comment-author {
	font-weight: 600;
}

.ws-comments__list .comment-author .says {
	display: none;
}

.ws-comments__list .comment-metadata {
	font-size: 14px;
	line-height: 20px;
	color: var(--ws-text-secondary);
}

.ws-comments__list .comment-metadata a {
	color: inherit;
}

.ws-comments__list .comment-content {
	margin-top: 8px;
}

.ws-comments__list .comment-content p {
	margin: 0 0 12px;
}

.ws-comments__list .reply a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
}

.ws-main .ws-comments__reply-title {
	margin: 40px 0 16px;
	font-size: 22px;
	line-height: 30px;
}

.ws-comment-form {
	display: grid;
	gap: 16px;
}

.ws-comment-form > p {
	margin: 0;
}

.ws-comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.ws-comment-form textarea,
.ws-comment-form input[type="text"],
.ws-comment-form input[type="email"],
.ws-comment-form input[type="url"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--ws-border-default);
	border-radius: var(--ws-radius-medium);
	background: var(--ws-surface-default);
	font: inherit;
	color: var(--ws-text-primary);
}

.ws-comment-form textarea {
	min-height: 140px;
}

.ws-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.ws-comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.ws-comment-form .form-submit .ws-form__submit {
	width: auto;
	min-width: 160px;
}

.ws-comments__closed {
	color: var(--ws-text-secondary);
}

/* 05 · Continue reading -------------------------------------------- */
.ws-related {
	padding: 40px 24px;
	border-top: 1px solid var(--ws-border-subtle);
}

.ws-related__inner {
	max-width: 1000px;
	margin-inline: auto;
}

.ws-main .ws-related__title {
	margin: 0 0 24px;
	font-size: 28px;
	line-height: 34px;
	font-weight: 400;
}

.ws-related__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ws-related .ws-card {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}

.ws-related .ws-card__image {
	flex: none;
	width: 96px;
}

.ws-related .ws-card__image img {
	width: 96px;
	height: 96px;
	aspect-ratio: 1;
}

.ws-related .ws-card__body {
	flex: 1;
	min-width: 0;
	gap: 8px;
	padding-top: 0;
}

.ws-related .ws-card__title {
	font-size: 18px;
	line-height: 26px;
}

.ws-related .ws-card__excerpt {
	display: none;
}

/* Tablet */
@media (min-width: 768px) {
	.ws-article__intro {
		padding: 48px 40px;
	}

	.ws-article__title {
		font-size: 40px;
		line-height: 48px;
	}

	.ws-article__standfirst {
		line-height: 30px;
	}

	.ws-article__lead {
		padding: 0 32px 48px;
	}

	.ws-article__reading {
		padding: 64px 40px;
	}

	.ws-main .ws-article__content {
		font-size: 18px;
		line-height: 30px;
	}

	.ws-main .ws-article__content h2 {
		margin-top: 48px;
		font-size: 32px;
		line-height: 40px;
	}

	.ws-main .ws-article__content h3 {
		font-size: 24px;
		line-height: 32px;
	}

	.ws-main .ws-article__content h4 {
		font-size: 20px;
		line-height: 28px;
	}

	.ws-main .ws-article__content .wp-block-table table {
		font-size: 18px;
		line-height: 30px;
	}

	.ws-main .ws-article__content .wp-block-details > summary {
		font-size: 24px;
		line-height: 32px;
	}

	.ws-main .ws-article__content .wp-block-separator {
		margin-block: 56px;
	}

	.ws-main .ws-article__content h2 + h3 {
		margin-top: 56px;
	}

	.ws-related {
		padding: 64px 40px;
	}

	.ws-main .ws-related__title {
		font-size: 32px;
		line-height: 40px;
	}

	.ws-related__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.ws-related .ws-card {
		flex-direction: column;
		gap: 0;
	}

	.ws-related .ws-card__image {
		width: 100%;
	}

	.ws-related .ws-card__image img {
		width: 100%;
		height: auto;
		aspect-ratio: 332 / 240;
	}

	.ws-related .ws-card__body {
		gap: 12px;
		padding-top: 20px;
	}

	.ws-related .ws-card__title {
		font-size: 24px;
		line-height: 32px;
	}

	.ws-related .ws-card__excerpt {
		display: block;
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.ws-article__title {
		font-size: 48px;
		line-height: 56px;
	}

	.ws-article__lead {
		padding-inline: 0;
	}

	.ws-article__lead,
	.ws-related__inner {
		width: calc(100% - 80px);
	}

	.ws-related {
		padding-inline: 0;
	}

	.ws-related .ws-card__image img {
		aspect-ratio: 488 / 240;
	}
}

/* Wide desktop: contents rail beside the body */
@media (min-width: 1200px) {
	.ws-article__grid {
		grid-template-columns: 208px minmax(0, 688px) 208px;
		column-gap: 48px;
	}

	.ws-article__grid > .ws-toc {
		display: block;
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: 24px;
		align-self: start;
	}

	.ws-article__grid > .ws-article__body {
		grid-column: 2;
		grid-row: 1;
	}
}

@media print {
	.ws-toc,
	.ws-article__actions,
	.ws-related {
		display: none;
	}
}
