/* Mobile first layouts. */
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.container { width: min(var(--page-width), calc(100% - 32px)); margin-inline: auto; }
.section { padding-block: var(--space-5); }
.soft-section { background: var(--soft-background); border-block: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-3); }
.section-heading h2 { display: inline-block; padding: .3rem .8rem; margin: 0; background: var(--soft-background); border-left: 4px solid var(--primary-aqua); border-radius: 0 var(--radius-button) var(--radius-button) 0; }
.section-heading .text-link { font-size: .8rem; flex-shrink: 0; }
.section-heading > .section-note { display: none; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.horizontal-mobile { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 3px 1rem; }
.horizontal-mobile > * { scroll-snap-align: start; }
.creator-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 20px; overflow-x: auto; padding: 4px 4px 1rem; scroll-snap-type: x mandatory; }
.creator-grid > * { scroll-snap-align: start; }
.condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ranking-grid, .review-grid { display: grid; gap: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-main { padding-block: var(--space-5); min-height: 60vh; }
.reading-width, .entry-content { max-width: var(--reading-width); margin-inline: auto; }
.entry-content { padding-block: 2rem; }
.entry-content a { text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--border); padding: .5rem; }
.entry-content pre { overflow: auto; background: var(--soft-background); padding: 1rem; }
.entry-content iframe { max-width: 100%; }
/* Editorial posts share one reading column; CPT details and cards are untouched. */
.single-post .post-detail { width: 100%; max-width: var(--reading-width); margin-inline: auto; }
.single-post .post-detail > h1 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.5; letter-spacing: .015em; }
.single-post .post-detail > .wp-post-image { width: 100%; height: auto; margin-inline: auto; }
.detail-layout { display: grid; gap: var(--space-3); }
.desktop-break { display: none; }
.actress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.actress-grid > * { min-width: 0; }
@media (min-width: 600px) { .actress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .actress-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 599px) {
	.work-grid:not(.horizontal-mobile) { grid-template-columns: minmax(0, 1fr); }
	.horizontal-mobile { grid-auto-columns: 90%; }
}
@media (min-width: 700px) {
	.container { width: min(var(--page-width), calc(100% - 64px)); }
	.section { padding-block: var(--space-6); }
	.work-grid { gap: 24px; }
	.horizontal-mobile { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
	.creator-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
	.condition-grid { grid-template-columns: repeat(3, 1fr); }
	.ranking-grid { grid-template-columns: 1.1fr 1fr; }
	.ranking-first { grid-row: span 4; }
	.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.detail-layout { grid-template-columns: 1.2fr 1fr; gap: var(--space-5); }
	.section-heading > .section-note { display: block; }
	.mobile-break { display: none; }
	.desktop-break { display: initial; }
}
@media (min-width: 1024px) {
	body { padding-bottom: 0; }
	.work-grid, .horizontal-mobile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.condition-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ranking-grid { grid-template-columns: 1fr 1.35fr; gap: 14px 24px; }
}
