/*
 * /zoomlink/ 講師Zoom接続リンク一覧 CSS
 * SPEC.md 4章のトークン・数値をそのまま実装する。
 * 全クラスは zl- 接頭辞。親テーマとの競合が起きる箇所だけ !important。
 * ダークモード対応はしない（color-scheme: light only 固定）。
 */

.zl-wrap,
.zl-wrap *,
.zl-wrap *::before,
.zl-wrap *::after {
	box-sizing: border-box;
}

.zl-wrap {
	color-scheme: light only;
	forced-color-adjust: none;
	font-family: -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
	color: #333;
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

@media (max-width: 599px) {
	.zl-wrap {
		padding: 0 12px;
	}
}

/* 1: リード文 */
.zl-lead {
	font-size: 14px;
	color: #555;
	margin: 0 0 12px;
}

/* 2: 前回の先生カード */
.zl-recent {
	display: none;
	border: 2px solid #F79D39;
	background: #FFF8F0;
	border-radius: 10px;
	padding: 12px;
	margin: 0 0 16px;
	position: relative;
}

.zl-recent:empty {
	display: none !important;
}

.zl-recent.is-shown {
	display: block;
}

.zl-recent-label {
	font-size: 12px;
	font-weight: 700;
	color: #C26710;
	margin: 0 0 6px;
}

.zl-recent-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	font-size: 20px;
	color: #999;
	background: none;
	border: 0;
	cursor: pointer;
}

@media (min-width: 900px) {
	.zl-recent {
		max-width: 360px;
	}
}

/* 3: 検索欄 */
.zl-search {
	display: none;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-size: 16px;
	border: 1.5px solid #E5871E;
	border-radius: 10px;
	background: #fff;
	margin: 0 0 12px;
	box-sizing: border-box;
	color: #333;
}

.zl-search:focus {
	border-color: #F79D39;
	box-shadow: 0 0 0 3px rgba(247, 157, 57, .25);
	outline: none;
}

/* 4: 五十音チップ */
.zl-chips {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.zl-chip {
	height: 40px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #C26710;
	background: #fff;
	border: 1.5px solid #E5871E;
	border-radius: 999px;
	line-height: 1;
	cursor: pointer;
}

@media (hover: hover) {
	.zl-chip:hover {
		background: #FFE9CC;
	}
}

.zl-chip.is-active {
	background: #F79D39;
	color: #fff;
	border-color: #F79D39;
}

.zl-chip-n {
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
	opacity: .8;
}

/* 5: 件数行 */
.zl-count {
	display: none;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #555;
	margin: 0 0 12px;
}

.zl-count strong {
	font-size: 20px;
	color: #F79D39;
	margin: 0 2px;
}

.zl-wrap.is-filtering .zl-count strong {
	color: #F79D39;
}

.zl-reset {
	height: 36px;
	padding: 0 12px;
	font-size: 13px;
	color: #C26710;
	background: #fff;
	border: 1px solid #F3D9B5;
	border-radius: 999px;
	cursor: pointer;
}

/* 6: 講師カード一覧 */
.zl-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 600px) {
	.zl-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (min-width: 900px) {
	.zl-list {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	}
}

.zl-card {
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

@media (hover: hover) {
	.zl-card:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
	}
}

.zl-card.is-hidden {
	display: none;
}

.zl-list[hidden] {
	display: none;
}

.zl-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.zl-photo {
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	object-fit: cover;
	border: 2px solid #FFE9CC;
	background: #FFF8F0;
	flex: 0 0 56px;
}

@media (min-width: 900px) {
	.zl-photo {
		width: 64px !important;
		height: 64px !important;
		flex-basis: 64px;
	}
}

.zl-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zl-id {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	color: #C26710;
	background: #FFE9CC;
	border-radius: 999px;
	padding: 1px 8px;
	line-height: 16px;
}

.zl-name {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

@media (min-width: 900px) {
	.zl-name {
		font-size: 17px;
	}
}

.zl-name small {
	font-size: 12px;
	font-weight: 400;
	color: #666;
	margin-left: 3px;
}

.zl-meta {
	font-size: 12px;
	color: #666;
	line-height: 18px;
}

.zl-dialect {
	display: inline-block;
	background: #FFE9CC;
	color: #C26710;
	padding: 0 6px;
	border-radius: 4px;
	margin-left: 4px;
}

.zl-zoom {
	flex: 0 0 112px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2D8CFF !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none !important;
	margin-left: 8px;
}

@media (min-width: 900px) {
	.zl-zoom {
		flex-basis: 128px;
		height: 44px;
	}
}

@media (hover: hover) {
	.zl-zoom:hover {
		background: #1F6FD1 !important;
	}
}

.zl-zoom:active {
	transform: scale(.97);
}

.zl-sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 10px;
	margin-top: 8px;
	min-height: 28px;
}

.zl-intro {
	font-size: 13px;
	color: #C26710 !important;
	text-decoration: underline;
	line-height: 44px;
}

.zl-copies {
	display: flex;
	gap: 6px;
	margin-left: auto;
	flex-wrap: wrap;
}

.zl-copy {
	height: 32px;
	padding: 0 10px;
	font-size: 12px;
	color: #555;
	background: #F5F5F5;
	border: 1px solid #E5E5E5;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
	position: relative;
	cursor: pointer;
}

.zl-copy::before {
	content: "";
	position: absolute;
	inset: -6px 0;
}

.zl-copy.is-done {
	background: #E6F7EC;
	color: #1E7B3A;
	border-color: #BFE6CC;
}

.zl-copy-label {
	font-size: 12px;
}

.zl-photo-empty {
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #C26710;
	background: #FFE9CC !important;
}

.zl-intro-none {
	font-size: 13px;
	color: #999;
	line-height: 44px;
}

/* 「うまく開けない時」トグルと、その中のミーティングID・パスコード */
.zl-toggle {
	height: 44px;
	padding: 0 4px;
	margin-left: auto;
	font-size: 12px;
	color: #888;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
	line-height: 44px;
}

.zl-toggle::after {
	content: " ▾";
}

.zl-toggle.is-open::after {
	content: " ▴";
}

.zl-fallback {
	margin-top: 4px;
	padding: 10px;
	background: #FAFAFA;
	border: 1px solid #EEE;
	border-radius: 8px;
}

.zl-fallback[hidden] {
	display: none;
}

.zl-fallback-note {
	margin: 0 0 8px;
	font-size: 12px;
	color: #777;
	line-height: 1.5;
}

.zl-bookmark {
	font-size: 12px;
	color: #666;
	background: #FFF8F0;
	border: 1px dashed #F3D9B5;
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 10px;
	line-height: 1.6;
}

.zl-bookmark-copy {
	margin-left: 6px;
}

/* 7: 0件メッセージ */
.zl-empty {
	text-align: center;
	color: #666;
	font-size: 14px;
	padding: 32px 12px;
	line-height: 1.8;
}

.zl-empty[hidden] {
	display: none;
}

/* 8: 補足行 */
.zl-foot {
	font-size: 12px;
	color: #777;
	line-height: 1.8;
	margin-top: 32px;
	padding-top: 12px;
	border-top: 1px solid #F0F0F0;
}

.zl-foot a {
	color: #C26710;
}

/* focus-visible: 全操作要素に共通リング */
.zl-search:focus-visible,
.zl-chip:focus-visible,
.zl-reset:focus-visible,
.zl-zoom:focus-visible,
.zl-intro:focus-visible,
.zl-copy:focus-visible,
.zl-recent-close:focus-visible {
	outline: 2px solid #F79D39;
	outline-offset: 2px;
}

/* JS未起動時のフォールバック（4-4）：JSがzl-wrapにis-readyを付けたら表示 */
.zl-wrap.is-ready .zl-search {
	display: block;
}

.zl-wrap.is-ready .zl-chips {
	display: flex;
}

.zl-wrap.is-ready .zl-count {
	display: flex;
}
