/* Teachers × services (life-commerce Life_Teachers): teacher page, directory, service comparison. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.life-teacher__head { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; margin: 2rem 0; }
.life-teacher__photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(199, 162, 74, 0.4); }
.life-teacher__title { color: var(--wp--preset--color--life-action); margin: 0.25rem 0; }
.life-teacher__role { font-weight: 600; margin: 0.25rem 0; }
.life-teacher section { overflow-wrap: anywhere; }
.life-teacher__certificate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.life-teacher__certificate-grid figure { margin: 0; }
.life-teacher__certificate-grid img { display: block; max-width: 100%; height: auto; }
.life-teacher__certificate-grid figcaption { margin-top: 0.5rem; overflow-wrap: anywhere; }
.life-teacher__share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.life-teacher__share .button { min-height: 44px; display: inline-flex; align-items: center; }
.life-teacher__status { flex-basis: 100%; min-height: 1.5em; margin: 0; }
.life-teacher__share label { flex-basis: 100%; }
.life-teacher__share input { display: block; width: 100%; max-width: 42rem; min-height: 44px; margin-top: .5rem; }
.life-teacher__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.life-teacher__tags li { border: 1px solid rgba(199, 162, 74, 0.4); border-radius: 999px; padding: 0.25rem 0.75rem; }

.life-teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.life-teacher-card { display: flex; flex-direction: column; gap: 0.25rem; border: 1px solid rgba(199, 162, 74, 0.28); border-radius: 8px; padding: 1rem; }
.life-teacher-card a { color: var(--wp--preset--color--life-ink); text-decoration: none; display: flex; flex-direction: column; gap: 0.5rem; }
.life-teacher-card img { width: 100%; height: auto; border-radius: 6px; }
.life-teacher-card__name { font-weight: 600; }
/* Product page: a small label and the teacher's name. */
.life-teacher-card--product { margin: 1.25rem 0; gap: 0.75rem; }
.life-teacher-card--product .life-teacher-card__label { margin: 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--wp--preset--color--life-action); }
.life-teacher-card__body { display: flex; gap: 1rem; align-items: center; }
.life-teacher-card--product img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.life-teacher-card__text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.life-teacher-card--product a.life-teacher-card__name { display: inline; font-size: 1.1rem; font-weight: 600; color: var(--wp--preset--color--life-action); text-decoration: underline; text-underline-offset: 0.2em; }
.life-teacher-card__title { opacity: 0.8; font-size: 0.95rem; }
.life-teacher-card__tagline { margin: 0.35rem 0 0; font-style: italic; opacity: 0.9; }

.life-service__intro { max-width: 60ch; }
.life-service-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 1.5rem 0; }
.life-service-filters label { display: flex; flex: 1 1 14rem; flex-direction: column; gap: 0.4rem; min-width: 0; font-weight: 600; }
.life-service-filters select, .life-service-filters button, .life-service-filters__clear { box-sizing: border-box; min-height: 44px; font: inherit; border-radius: 6px; }
.life-service-filters select { width: 100%; max-width: 100%; padding: 0.5rem; color: var(--wp--preset--color--life-ink, #eee8da); background: var(--wp--preset--color--life-bg-soft, #101820); border: 1px solid rgba(199, 162, 74, 0.5); }
.life-service-filters button { padding: 0.5rem 1rem; color: var(--wp--preset--color--life-bg, #090d12); background: var(--wp--preset--color--life-action, #c7a24a); border: 1px solid transparent; cursor: pointer; }
.life-service-filters__clear { display: inline-flex; align-items: center; padding: 0.5rem; color: var(--wp--preset--color--life-action); text-underline-offset: 0.2em; }
.life-service-filters :focus-visible { outline: 2px solid var(--wp--preset--color--life-action, #c7a24a); outline-offset: 3px; }
.life-compare-wrap { overflow-x: auto; }
.life-compare { width: 100%; border-collapse: collapse; }
.life-compare caption { text-align: start; font-weight: 600; margin-bottom: 0.5rem; }
.life-compare th, .life-compare td { padding: 0.75rem; border-bottom: 1px solid rgba(199, 162, 74, 0.28); text-align: start; vertical-align: top; }
/* Short Chinese headers must not wrap one character per line on desktop. */
.life-compare thead th { white-space: nowrap; }
.life-compare td a, .life-compare th a { color: var(--wp--preset--color--life-action); }
/* The service name and the "View plan" link must stay readable instead of wrapping one character per line. */
.life-compare tbody th { min-width: 9em; }
.life-compare td:last-child a, .life-compare td[data-label]:nth-child(3), .life-compare td[data-label]:nth-child(4) { white-space: nowrap; }

/* Phones and narrow windows: each offer becomes a card; the cell's data-label stands in for the column
   header. Stack the comparison below 960px. */
@media (max-width: 960px) {
	.life-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	/* border-box: a 100%-wide cell plus its padding must not overflow the scrolling wrap. */
	.life-compare, .life-compare caption, .life-compare tbody, .life-compare tr, .life-compare th, .life-compare td { display: block; box-sizing: border-box; width: 100%; }
	.life-compare tr { border: 1px solid rgba(199, 162, 74, 0.28); border-radius: 8px; margin-bottom: 1rem; padding: 0.5rem 0; }
	.life-compare td { border: 0; padding: 0.35rem 1rem; }
	.life-compare td[data-label]::before { content: attr(data-label); display: block; font-size: 0.85em; opacity: 0.8; }
	.life-compare tbody th { font-size: 1.1em; border: 0; }
}
