:root {
	--ttm-green: #176b47;
	--ttm-green-dark: #0d4d33;
	--ttm-ink: #17211c;
	--ttm-muted: #66736c;
	--ttm-line: #dfe7e2;
	--ttm-soft: #f4f8f5;
	--ttm-white: #fff;
	--ttm-warning: #fff8e8;
	--ttm-max: 1160px;
	--ttm-reading: 800px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body.ttm-light-single {
	margin: 0;
	overflow-x: hidden;
	background: var(--ttm-white);
	color: var(--ttm-ink);
	font-family: Tahoma, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.9;
	direction: rtl;
	text-rendering: optimizeLegibility;
}

.ttm-light-single img { max-width: 100%; height: auto; }
.ttm-light-single a { color: var(--ttm-green-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.ttm-light-single a:hover { color: #0a3826; }

.ttm-skip-link {
	position: fixed;
	top: 8px;
	right: 8px;
	z-index: 9999;
	transform: translateY(-160%);
	background: #000;
	color: #fff !important;
	padding: 8px 14px;
}
.ttm-skip-link:focus { transform: translateY(0); }

.ttm-notice {
	background: var(--ttm-green-dark);
	color: #fff;
	padding: 5px 16px;
	font-size: 13px;
	text-align: center;
}

.ttm-site-header {
	background: rgba(255,255,255,.98);
	border-bottom: 1px solid var(--ttm-line);
}

.ttm-header-inner {
	width: min(calc(100% - 32px), var(--ttm-max));
	min-height: 70px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 28px;
}

.ttm-brand { display: inline-flex; flex: 0 0 auto; }
.ttm-brand img { width: 150px; height: 40px; object-fit: contain; }

.ttm-main-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-inline-start: auto;
}
.ttm-main-nav a { color: var(--ttm-ink); font-size: 14px; font-weight: 700; text-decoration: none; }

.ttm-call-link {
	background: var(--ttm-green);
	color: #fff !important;
	border-radius: 10px;
	padding: 8px 15px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ttm-main { width: min(calc(100% - 32px), var(--ttm-max)); margin: 0 auto; }
.ttm-article { padding: 40px 0 0; }
.ttm-article-header { width: min(100%, var(--ttm-reading)); margin-inline: auto; }

.ttm-breadcrumb {
	display: flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	color: var(--ttm-muted);
	font-size: 12px;
	margin-bottom: 20px;
}
.ttm-breadcrumb a { color: var(--ttm-muted); }
.ttm-breadcrumb [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }

.ttm-category {
	display: inline-flex;
	background: var(--ttm-soft);
	border: 1px solid #d5e5db;
	border-radius: 999px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.ttm-article h1 {
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.35;
	letter-spacing: -.025em;
	margin: 14px 0 20px;
}

.ttm-byline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	color: var(--ttm-muted);
	font-size: 13px;
}
.ttm-byline a { font-weight: 800; }
.ttm-byline small { display: block; color: var(--ttm-muted); font-size: 11px; line-height: 1.5; }
.ttm-author-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ttm-green);
	color: #fff;
	font-weight: 900;
}
.ttm-meta-separator { color: #b3bdb7; }

.ttm-brand-hero {
	margin: 32px auto 38px;
	width: min(100%, var(--ttm-max));
	border-radius: 18px;
	overflow: hidden;
	background: var(--ttm-soft);
	aspect-ratio: 1536 / 640;
}
.ttm-brand-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ttm-content,
.ttm-article-footer,
.ttm-comments-wrap {
	width: min(100%, var(--ttm-reading));
	min-width: 0;
	margin-inline: auto;
}

.ttm-content {
	overflow-wrap: anywhere;
	word-break: normal;
}

.ttm-content > :first-child { margin-top: 0; }
.ttm-content h2,
.ttm-content h3 { scroll-margin-top: 24px; color: var(--ttm-ink); line-height: 1.5; }
.ttm-content h2 { font-size: clamp(24px, 3vw, 32px); margin: 52px 0 16px; }
.ttm-content h3 { font-size: clamp(20px, 2.5vw, 25px); margin: 34px 0 12px; }
.ttm-content p { margin: 0 0 20px; }
.ttm-content ul,
.ttm-content ol { padding-right: 1.3em; margin: 0 0 24px; }
.ttm-content li { margin-bottom: 8px; }
.ttm-content blockquote {
	margin: 28px 0;
	padding: 14px 18px;
	border-right: 4px solid var(--ttm-green);
	background: var(--ttm-soft);
}
.ttm-content figure { margin: 30px auto; }
.ttm-content iframe { width: 100%; max-width: 100%; border: 0; }
.ttm-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ttm-content pre,
.ttm-content code { max-width: 100%; overflow-wrap: anywhere; }
.ttm-content pre { overflow-x: auto; }
.ttm-content th,
.ttm-content td { border: 1px solid var(--ttm-line); padding: 10px 12px; }

.ttm-mobile-toc { display: none; }

.ttm-article-footer { margin-top: 58px; }
.ttm-author-box {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 20px;
	align-items: start;
	padding: 24px;
	background: var(--ttm-soft);
	border: 1px solid var(--ttm-line);
	border-radius: 16px;
}
.ttm-author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.ttm-author-box h2 { font-size: 22px; line-height: 1.4; margin: 0 0 6px; }
.ttm-author-box p { margin: 0 0 8px; font-size: 14px; }
.ttm-author-more { font-size: 13px; font-weight: 800; }

.ttm-safety-note {
	margin: 22px 0 0;
	padding: 16px 18px;
	border: 1px solid #ead9ac;
	border-radius: 12px;
	background: var(--ttm-warning);
	font-size: 13px;
}

.ttm-comments-wrap { padding: 48px 0; }
.ttm-comments-wrap input:not([type="submit"]),
.ttm-comments-wrap textarea {
	width: 100%;
	border: 1px solid var(--ttm-line);
	border-radius: 8px;
	padding: 10px;
	font: inherit;
}
.ttm-comments-wrap input[type="submit"] {
	border: 0;
	border-radius: 8px;
	background: var(--ttm-green);
	color: #fff;
	padding: 10px 18px;
	font: inherit;
	cursor: pointer;
}

.ttm-site-footer { margin-top: 20px; background: #10271d; color: #dce8e1; }
.ttm-footer-grid {
	width: min(calc(100% - 32px), var(--ttm-max));
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px;
	padding: 48px 0 36px;
}
.ttm-footer-grid h2 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.ttm-footer-grid p { margin: 0; font-size: 14px; }
.ttm-footer-grid a { display: block; width: max-content; max-width: 100%; color: #dce8e1; font-size: 14px; margin: 6px 0; }
.ttm-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 12px 16px; text-align: center; font-size: 12px; }

@media (max-width: 760px) {
	body.ttm-light-single { font-size: 16px; line-height: 1.85; }
	.ttm-header-inner { width: min(calc(100% - 24px), var(--ttm-max)); min-height: 58px; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
	.ttm-brand img { width: 120px; height: 32px; }
	.ttm-call-link { margin-inline-start: auto; padding: 6px 11px; font-size: 12px; }
	.ttm-main-nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
	.ttm-main-nav::-webkit-scrollbar { display: none; }
	.ttm-main-nav a { flex: 0 0 auto; font-size: 12px; }
	.ttm-main { width: min(calc(100% - 28px), var(--ttm-max)); }
	.ttm-article { padding-top: 26px; }
	.ttm-article h1 { margin-top: 12px; }
	.ttm-breadcrumb { margin-bottom: 14px; }
	.ttm-byline { gap: 7px; }
	.ttm-meta-separator { display: none; }
	.ttm-byline time,
	.ttm-byline > span:last-child { width: calc(100% - 47px); margin-right: 47px; }
	.ttm-brand-hero { margin: 24px calc(50% - 50vw) 30px; width: 100vw; border-radius: 0; }

	.ttm-mobile-toc { display: block; position: fixed; z-index: 50; left: 14px; bottom: 16px; }
	.ttm-toc-toggle {
		position: relative;
		display: grid;
		place-items: center;
		width: 62px;
		height: 62px;
		border: 0;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 8px 28px rgba(10,35,24,.18);
		color: var(--ttm-green-dark);
		font: 700 10px/1 Tahoma, Arial, sans-serif;
		cursor: pointer;
	}
	.ttm-progress-ring { position: absolute; inset: 3px; width: 56px; height: 56px; transform: rotate(-90deg); }
	.ttm-progress-ring circle { fill: none; stroke-width: 2.5; }
	.ttm-ring-track { stroke: #dfe9e3; }
	.ttm-ring-value { stroke: var(--ttm-green); stroke-linecap: round; stroke-dasharray: 119.38; stroke-dashoffset: 119.38; }
	.ttm-toc-panel {
		position: absolute;
		left: 0;
		bottom: 72px;
		width: min(82vw, 330px);
		max-height: min(65vh, 520px);
		overflow: auto;
		padding: 16px;
		border: 1px solid var(--ttm-line);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 10px 32px rgba(10,35,24,.2);
	}
	.ttm-toc-list { margin: 10px 0 0; padding-right: 20px; font-size: 13px; line-height: 1.7; }
	.ttm-toc-list li { margin: 5px 0; }
	.ttm-toc-list .is-h3 { margin-right: 14px; font-size: 12px; }
	.ttm-toc-list a { text-decoration: none; }
	.ttm-author-box { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; }
	.ttm-author-box img { width: 64px; height: 64px; }
	.ttm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 36px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
