:root {
	--od-accent: #ff7412;
	--od-accent-deep: #f97316;
	--od-bg: #f7f8fb;
	--od-text: #111827;
	--od-nav-height: 70px;
}

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

body.home-org-detail {
	margin: 0;
	overflow-x: hidden;
}

.od-page {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	margin: 0;
	background: var(--od-bg);
	color: var(--od-text);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
	padding-bottom: calc(var(--od-nav-height) + 24px);
	padding-bottom: calc(var(--od-nav-height) + env(safe-area-inset-bottom) + 24px);
	background-color: #fff;
}

.od-page--zh {
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

/* ---- Header ---- */
.od-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 10px;
	position: sticky;
	top: 0;
	z-index: 5;
	background: #ffffff;
}

.od-page--zh .od-header {
	padding: 12px 16px 13px;
	border-bottom: 1px solid #e5e7eb;
}

.od-back {
	width: 28px;
	height: 28px;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	text-decoration: none;
	flex-shrink: 0;
}

.od-back img {
	width: 20px;
	height: 20px;
	display: block;
}

.od-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.od-brand__logo {
	height: 30px;
	width: auto;
	display: block;
	flex: 0 0 auto;
}

.od-suggest {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid #fdba74;
	background: #fef3e2;
	color: #c2410c;
	font-size: 10px;
	line-height: 1;
	font-weight: 700;
	text-decoration: none;
}

.od-page--zh .od-suggest {
	min-height: 30px;
	padding: 0 13px;
	font-size: 11px;
}

.od-bell {
	width: 24px;
	height: 24px;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.od-bell img {
	width: 24px;
	height: 24px;
	display: block;
}

/* ---- Org Info Section ---- */
.od-org-info {
	padding: 16px 16px 18px;
	background: linear-gradient(180deg, #fef3e2 0%, #ffffff 60%);
}

.od-page--zh .od-org-info {
	padding: 18px 16px 20px;
	background: linear-gradient(138deg, #fff7ed 0%, #ffffff 100%);
	border-bottom: 1px solid #e5e7eb;
}

.od-org-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.od-org-logo {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.od-page--zh .od-org-logo {
	width: 68px;
	height: 68px;
	border-radius: 14px;
}

.od-org-badge {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--od-accent);
	color: #ffffff;
	font-size: 24px;
	font-weight: 800;
	flex-shrink: 0;
}

.od-page--zh .od-org-badge {
	width: 68px;
	height: 68px;
	border-radius: 14px;
	font-size: 26px;
}

.od-org-title-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.od-org-title-wrap h1 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--od-text);
}

.od-page--zh .od-org-title-wrap h1 {
	font-size: 17px;
	line-height: 1.3;
}

.od-org-website {
	display: inline-flex;
	margin-top: 6px;
	font-size: 12px;
	color: var(--od-accent-deep);
	text-decoration: none;
	font-weight: 600;
}

.od-org-website:hover {
	text-decoration: underline;
}

.od-org-intro {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.65;
	color: #4b5563;
	padding: 12px 14px;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #f3f4f6;
}

.od-page--zh .od-org-intro {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.6;
	border-radius: 10px;
}

.od-org-intro p {
	margin: 0 0 8px;
}

.od-org-intro p:last-child {
	margin-bottom: 0;
}

.od-org-contact {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 12px;
	color: #6b7280;
}

.od-page--zh .od-org-contact {
	font-size: 12px;
}

.od-org-contact span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ---- Training List ---- */
.od-training-list {
	display: grid;
	gap: 12px;
	padding: 8px 16px;
}

.tp-page--zh .od-training-list {
	gap: 10px;
	padding: 0 16px;
}

.od-training-list > h2 {
	margin: 8px 0 12px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--od-text);
}

.od-page--zh .od-training-list > h2 {
	margin: 10px 0 12px;
	font-size: 15px;
}

/* ---- Load More Button ---- */
.od-btn {
	width: 100%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
}

.od-btn--more {
	background: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-size: 13px;
	padding: 10px;
	margin: 8px 0;
	max-width: 200px;
}

.od-btn--more:active {
	background: #e5e7eb;
}

/* ---- Empty State ---- */
.od-empty-state {
	padding: 40px 16px;
	text-align: center;
	color: #4b5563;
}

.od-empty-state p {
	font-size: 13px;
	margin: 8px 0;
}

/* ---- Bottom Nav ---- */
.od-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	bottom: env(safe-area-inset-bottom, 0px);
	width: 100%;
	max-width: none;
	margin: 0 auto;
	transform: none;
	height: var(--od-nav-height);
	height: calc(var(--od-nav-height) + env(safe-area-inset-bottom));
	min-height: var(--od-nav-height);
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: center;
	padding: 0 6px 0;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	background: #ffffff;
	border-top: 1px solid #e5e7eb;
	z-index: 999;
}

.od-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: #9ca3af;
	text-decoration: none;
	font-size: 13px;
}

.od-bottom-nav a img {
	width: 20px;
	height: 20px;
	display: block;
}

.od-bottom-nav a.is-active {
	color: var(--od-accent);
	font-weight: 700;
}

.od-bottom-nav__plus span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--od-accent);
	color: #ffffff;
	font-size: 24px;
	box-shadow: 0 8px 18px rgba(249, 115, 22, .24);
}

.od-bottom-nav__plus img {
	width: 22px;
	height: 22px;
}

@media (min-width: 768px) {
	body.home-org-detail {
		background: var(--od-bg);
	}

	.od-page {
		box-shadow: none;
	}

	.od-bottom-nav {
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		transform: none;
	}
}
