/*
 * S06 · Diller (#s06-diller) — Figma 14:112 (1440), 15:369 (390), open states 81:2678 / 162:3470.
 * Navy band; text column 488 | 64 | map 648; full-width disclosure with the 60 language cells.
 * Tablet (≤1024, not designed): stacked like mobile, 3 table columns.
 */

/* ---------------------------------------------------------------- shell */

.bt-hs--s06-diller {
	overflow: hidden;
}

/* No own stacking context for the container (base: z-index 1), so the map's lighten blend composites over the
   section ground and the rings (Figma: rings behind, visible through the map's dark ground). The section itself is
   isolated (home-base), the decor layer is z-index 0 and painted first, so content still sits on top. */
.bt-hs--s06-diller .bt-hs__inner {
	z-index: auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Rings (decor, behind content, clipped by the section). */
.bt-hs--s06-diller .s06-ring {
	position: absolute;
	box-sizing: border-box;
	border-radius: 50%;
}

.bt-hs--s06-diller .s06-ring--lg {
	top: -102px;
	right: -60px;
	width: 320px;
	height: 320px;
	border: 1px solid var(--hs-gold-a26);
}

.bt-hs--s06-diller .s06-ring--sm {
	top: -32px;
	right: 0;
	width: 190px;
	height: 190px;
	/* 1.5 px inside stroke: Chrome snaps 1.5 px borders to 1 device px, an inset shadow keeps 1.5. */
	box-shadow: inset 0 0 0 1.5px var(--hs-gold-a50);
}

.bt-hs--s06-diller .s06-ring--m {
	display: none;
	right: -30px;
	bottom: -120px;
	width: 170px;
	height: 170px;
	box-shadow: inset 0 0 0 1.5px var(--hs-gold-a50);
}

/* ---------------------------------------------------------------- text column + map */

.bt-hs--s06-diller .s06-finder {
	display: grid;
	grid-template-columns: 488px minmax(0, 1fr);
	column-gap: 64px;
	align-items: center;
}

.bt-hs--s06-diller .s06-finder__text {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
	min-width: 0;
}

/* Big figure (Figma Big figure / On navy 49:1712): gold rule 48×3, "60+" Display/Stat, label 22/700. */
.bt-hs--s06-diller .s06-figure {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.bt-hs--s06-diller .s06-figure::before {
	content: "";
	flex: none;
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: var(--hs-gold);
}

/* Chrome draws these glyphs ~1 px higher than Figma inside the same line box (measured at 1440 and 390):
   a paint-only nudge, the layout boxes are unchanged. */
.bt-hs--s06-diller .s06-figure__num,
.bt-hs--s06-diller .s06-figure__label,
.bt-hs--s06-diller .s06-title,
.bt-hs--s06-diller .s06-disclosure__label,
.bt-hs--s06-diller .s06-links__note {
	position: relative;
	top: 1px;
}

/* Text buttons have no padding (Figma): a rounded ring with a little more room around the label. */
.bt-hs--s06-diller .s06-links .s06-textbtn:focus-visible {
	border-radius: 8px;
	outline-offset: 3px;
}

.bt-hs--s06-diller .s06-figure__num {
	display: block;
	min-height: 65px;
	color: var(--hs-white);
	font-size: var(--hs-fs-stat);
	font-weight: 800;
	line-height: 64.8px;
	letter-spacing: var(--hs-ls-stat);
}

.bt-hs--s06-diller .s06-figure__label {
	display: block;
	min-height: 27px;
	color: var(--hs-on-dark);
	font-size: var(--hs-fs-stat-unit);
	font-weight: 700;
	line-height: 26.4px;
}

/* figure_label is empty on TR since 2026-10-13 (user pick A: the H2 already starts with "60+"). The template skips
   an empty label; this guard keeps an empty span from ever reserving its 27 px row and the 6 px column gap. */
.bt-hs--s06-diller .s06-figure__label:empty {
	display: none;
}

.bt-hs--s06-diller .s06-title {
	min-height: 42px; /* Figma text boxes round up: 41.75 → 42 (390: 29.12 → 30) */
	color: var(--hs-white);
}

.bt-hs--s06-diller .s06-intro {
	color: var(--hs-on-dark);
	font-size: var(--hs-fs-body);
	line-height: 27.2px;
}

/* Links: two Button/Text (dark bg) rows (44 tall, padding 0, gap 10) and the WhatsApp line; column, gap 4. */
.bt-hs--s06-diller .s06-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.bt-hs--s06-diller .s06-links__item {
	display: flex;
}

.bt-hs--s06-diller .s06-textbtn {
	min-height: 44px;
	padding: 0;
	border: 0;
	gap: 10px;
	white-space: normal;
	text-align: start;
}

.bt-hs--s06-diller .s06-links__note {
	/* Figma: 2 lines = 52 (25.6 × 2 rounded up); Figma measures "…çeviri talepleriniz" ~0.4 px wider than Chrome
	   (349.6 of 350), so it breaks before "talepleriniz" at 390 — 1 px inline padding keeps that break. */
	padding-block-end: 0.8px;
	padding-inline-end: 1px;
	color: var(--hs-on-dark);
	font-size: var(--hs-fs-body-16);
	line-height: 25.6px;
}

.bt-hs--s06-diller .s06-walink {
	color: var(--hs-white);
	font-weight: 600;
	white-space: nowrap;
	text-decoration-line: underline;
	text-decoration-color: var(--hs-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration-skip-ink: auto;
	transition: text-decoration-thickness var(--hs-dur-fast) ease, color var(--hs-dur-fast) ease;
}

/* Inline link inside the sentence (20 px tall): an invisible hit area brings the touch target to 44 px without
   changing the line layout or the focus ring. */
.bt-hs--s06-diller .s06-walink {
	position: relative;
}

.bt-hs--s06-diller .s06-walink::after {
	content: "";
	position: absolute;
	inset: -12px -4px;
}

.bt-hs--s06-diller .s06-walink:hover {
	color: var(--hs-white);
	text-decoration-color: var(--hs-gold);
	text-decoration-thickness: 3px;
}

/* World map: opaque WebP (#15213B ground) blended with lighten over the navy band (required for the Figma look). */
.bt-hs--s06-diller .s06-map {
	min-width: 0;
}

.bt-hs--s06-diller .s06-map__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 648 / 362;
	object-fit: cover;
	mix-blend-mode: lighten;
}

/* ---------------------------------------------------------------- disclosure */

.bt-hs--s06-diller .s06-disclosure {
	border: 1px solid var(--hs-white-a18);
	border-radius: var(--hs-radius-card);
	background: var(--hs-white-a07);
}

.bt-hs--s06-diller .s06-disclosure__summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 48px;
	padding: 16px 20px;
	border-radius: 13px;
	color: var(--hs-white);
	list-style: none;
	cursor: pointer;
}

.bt-hs--s06-diller .s06-disclosure__summary::-webkit-details-marker {
	display: none;
}

.bt-hs--s06-diller .s06-disclosure__summary::marker {
	content: "";
}

.bt-hs--s06-diller .s06-disclosure__summary:focus-visible {
	outline: 3px solid var(--hs-gold);
	outline-offset: 2px;
	border-radius: 15px;
}

.bt-hs--s06-diller .s06-disclosure__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--hs-fs-label);
	font-weight: 600;
	line-height: 20.25px;
}

/* Toggle: 32 px circle, 1 px white .30, 18 px gold plus → minus when open. */
.bt-hs--s06-diller .s06-toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--hs-white-a30);
	border-radius: 50%;
	color: var(--hs-gold);
	transition: border-color var(--hs-dur-fast) ease, background-color var(--hs-dur-fast) ease;
}

.bt-hs--s06-diller .s06-toggle__icon {
	display: block;
	width: 18px;
	height: 18px;
}

.bt-hs--s06-diller .s06-toggle__v {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform var(--hs-dur) var(--hs-ease), opacity var(--hs-dur) var(--hs-ease);
}

.bt-hs--s06-diller .s06-disclosure[open] .s06-toggle__v {
	opacity: 0;
	transform: rotate(90deg);
}

.bt-hs--s06-diller .s06-disclosure__summary:hover .s06-toggle {
	border-color: var(--hs-white-a66);
	background: var(--hs-white-a08);
}

.bt-hs--s06-diller .s06-disclosure__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 20px 24px;
}

@media (prefers-reduced-motion: no-preference) {
	.bt-hs--s06-diller .s06-disclosure[open] .s06-disclosure__content {
		animation: s06-fade-in var(--hs-dur) var(--hs-ease);
	}
}

@keyframes s06-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.bt-hs--s06-diller .s06-langtable__caption {
	min-height: 24px;
	color: var(--hs-on-dark);
	font-size: var(--hs-fs-card-text);
	line-height: 23.25px;
}

.bt-hs--s06-diller .s06-langtable {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 8px;
}

.bt-hs--s06-diller .s06-langtable__item {
	display: flex;
	min-width: 0;
}

/* Link/Language cell (on navy) 78:4825: Default / Hover / Focus. */
.bt-hs--s06-diller .s06-cell {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--hs-white-a18);
	border-radius: var(--hs-radius-row);
	background: transparent;
	color: var(--hs-on-dark);
	font-size: var(--hs-fs-card-text);
	font-weight: 400;
	line-height: 23.25px;
	text-decoration: none;
	transition: background-color var(--hs-dur-fast) ease, border-color var(--hs-dur-fast) ease, color var(--hs-dur-fast) ease;
}

.bt-hs--s06-diller a.s06-cell:hover {
	border-color: var(--hs-gold);
	background: var(--hs-white-a07);
	color: var(--hs-gold);
	text-decoration-line: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bt-hs--s06-diller .s06-langtable .s06-cell:focus-visible {
	outline: 3px solid var(--hs-gold);
	outline-offset: 0;
	border-color: transparent;
	border-radius: var(--hs-radius-row);
	background: var(--hs-white-a08);
	color: var(--hs-white);
}

/* ---------------------------------------------------------------- Phase 2 search (search_enable) */

/* Language/Search field 51:1829: the 2 px #4A3F9F border on the white field is the designed focus/active state. */

.bt-hs--s06-diller .s06-search {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 560px;
	margin-bottom: 12px;
}

.bt-hs--s06-diller .s06-search__label {
	margin-bottom: 8px;
	color: var(--hs-white);
	font-size: var(--hs-fs-small);
	font-weight: 600;
	line-height: 21.7px;
}

.bt-hs--s06-diller .s06-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 8px 0 16px;
	border: 1.5px solid var(--hs-field-border);
	border-radius: var(--hs-radius-pill);
	background: var(--hs-white);
	color: var(--hs-navy);
}

.bt-hs--s06-diller .s06-search__field:focus-within,
.bt-hs--s06-diller .s06-search.is-active .s06-search__field {
	padding-left: 15.5px;
	border: 2px solid var(--hs-focus);
}

.bt-hs--s06-diller .s06-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--hs-ink);
	font-family: var(--hs-font);
	font-size: var(--hs-fs-body);
	line-height: 27.2px;
	-webkit-appearance: none;
	appearance: none;
}

.bt-hs--s06-diller .s06-search__input::placeholder {
	color: var(--hs-muted);
	opacity: 1;
}

.bt-hs--s06-diller .s06-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.bt-hs--s06-diller .s06-search__input:focus-visible {
	outline: 0;
}

.bt-hs--s06-diller .s06-search__clear {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--hs-line);
	border-radius: 50%;
	background: var(--hs-white);
	color: var(--hs-ink);
}

.bt-hs--s06-diller .s06-search__clear:hover {
	background: var(--hs-surface);
}

.bt-hs--s06-diller .s06-search__count {
	margin-top: 12px;
	color: var(--hs-on-navy-cool);
	font-size: var(--hs-fs-small);
	line-height: 21.7px;
}

.bt-hs--s06-diller .s06-search__empty {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--hs-white-a18);
	border-radius: var(--hs-radius-card);
	background: var(--hs-white-a08);
	color: var(--hs-white);
	font-size: var(--hs-fs-card-text);
	line-height: 23.25px;
}

.bt-hs--s06-diller .s06-search__empty a {
	color: var(--hs-white);
	text-decoration-line: underline;
	text-decoration-color: var(--hs-gold);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- tablet (not designed: stacked, 3 columns) */

@media (max-width: 1024px) {
	.bt-hs--s06-diller .s06-finder {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
	}

	.bt-hs--s06-diller .s06-finder__text {
		max-width: 640px;
	}

	.bt-hs--s06-diller .s06-title {
		min-height: 0;
	}

	.bt-hs--s06-diller .s06-map {
		width: 100%;
		max-width: 648px;
	}

	.bt-hs--s06-diller .s06-langtable {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------- mobile (Figma 390) */

@media (max-width: 767px) {
	.bt-hs--s06-diller .bt-hs__inner {
		gap: 32px;
	}

	.bt-hs--s06-diller .s06-finder__text {
		max-width: none;
	}

	.bt-hs--s06-diller .s06-title {
		min-height: 30px;
	}

	.bt-hs--s06-diller .s06-map {
		max-width: none;
	}

	.bt-hs--s06-diller .s06-map__img {
		aspect-ratio: 350 / 196;
	}

	.bt-hs--s06-diller .s06-ring--lg,
	.bt-hs--s06-diller .s06-ring--sm {
		display: none;
	}

	.bt-hs--s06-diller .s06-ring--m {
		display: block;
	}

	.bt-hs--s06-diller .s06-disclosure__content {
		padding: 4px 12px 24px;
	}

	.bt-hs--s06-diller .s06-langtable {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bt-hs--s06-diller .s06-cell {
		min-height: 69px;
	}
}

/* At 1x a 768 → 350 downscale averages the dots with the dark #15213B ground before the lighten blend, so the map
   reads ~5 % darker than Figma's 390 frame; brightness(1.1) restores the Figma mean (the ground stays below navy and
   is still removed by the blend). High-density screens sample larger files and need no correction. */
@media (max-width: 767px) and (max-resolution: 1.5dppx) {
	.bt-hs--s06-diller .s06-map__img {
		filter: brightness(1.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-hs--s06-diller .s06-disclosure[open] .s06-disclosure__content {
		animation: none !important;
	}
}

@media (forced-colors: active) {
	.bt-hs--s06-diller .s06-figure::before {
		forced-color-adjust: none;
	}

	.bt-hs--s06-diller .s06-map__img {
		mix-blend-mode: normal;
	}
}
