/* translation2 — mobile-first translated works catalog */
:root {
	--t2-primary: #0088cc;
	--t2-secondary: #e36159;
	--t2-tertiary: #2baab1;
	--t2-bg: #f4f6f8;
	--t2-card: #fff;
	--t2-text: #212529;
	--t2-muted: #6c757d;
	--t2-border: #e7ecef;
	--t2-radius: 12px;
	--t2-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--t2-header-h: 56px;
	--t2-tabs-h: 48px;
	--t2-search-h: 88px;
}

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

body.t2-page {
	margin: 0;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--t2-text);
	background: var(--t2-bg);
	-webkit-font-smoothing: antialiased;
}

.t2-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding-bottom: 2.5rem;
}

/* header */
.t2-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--t2-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	background: var(--t2-card);
	border-bottom: 1px solid var(--t2-border);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.t2-header-logo img {
	height: 28px;
	width: auto;
	display: block;
}

.t2-header-mail {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--t2-primary);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.t2-header-mail i {
	font-size: 0.875rem;
}

/* intro */
.t2-intro {
	padding: 1.25rem 1rem 0.5rem;
}

.t2-intro p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--t2-muted);
	line-height: 1.6;
}

/* contact */
.t2-section-title {
	margin: 0 0 0.75rem;
	padding: 0 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--t2-muted);
}

.t2-contacts {
	padding: 0 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.t2-contact-card {
	background: var(--t2-card);
	border-radius: var(--t2-radius);
	box-shadow: var(--t2-shadow);
	padding: 1rem 1.1rem;
	border: 1px solid var(--t2-border);
}

.t2-contact-role {
	margin: 0 0 0.15rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--t2-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.t2-contact-name {
	margin: 0 0 0.65rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.t2-contact-links {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.t2-contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--t2-text);
	text-decoration: none;
	font-size: 0.875rem;
	min-height: 2rem;
}

.t2-contact-links a i {
	width: 1rem;
	color: var(--t2-muted);
	text-align: center;
	flex-shrink: 0;
}

.t2-contact-links a[href^="tel:"],
.t2-contact-links a[href^="mailto:"] {
	color: var(--t2-primary);
	font-weight: 600;
}

/* search */
.t2-sticky-wrap {
	position: sticky;
	top: var(--t2-header-h);
	z-index: 90;
	background: var(--t2-bg);
	border-bottom: 1px solid var(--t2-border);
	padding-bottom: 0.75rem;
}

.t2-search-wrap {
	padding: 0.65rem 1rem 0.5rem;
}

.t2-search-box {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.85rem;
	background: var(--t2-card);
	border: 1px solid var(--t2-border);
	border-radius: 999px;
	box-shadow: var(--t2-shadow);
}

.t2-search-box:focus-within {
	border-color: var(--t2-primary);
	box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12);
}

.t2-search-box > i {
	color: var(--t2-muted);
	font-size: 0.875rem;
	flex-shrink: 0;
}

.t2-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 0.65rem 0;
	font-size: 0.875rem;
	color: var(--t2-text);
	outline: none;
}

.t2-search-input::placeholder {
	color: #adb5bd;
}

.t2-search-clear {
	flex-shrink: 0;
	border: none;
	background: var(--t2-bg);
	color: var(--t2-muted);
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.t2-search-clear.is-visible {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.t2-search-clear:not(.is-visible) {
	display: none;
}

.t2-country-wrap {
	padding: 0 0 0.25rem;
}

.t2-country-label {
	margin: 0 0 0.35rem;
	padding: 0 1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--t2-muted);
}

.t2-country-pills {
	display: flex;
	gap: 0.4rem;
	padding: 0 1rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.t2-country-pills::-webkit-scrollbar {
	display: none;
}

.t2-country-pill {
	flex: 0 0 auto;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--t2-border);
	border-radius: 999px;
	background: var(--t2-card);
	color: var(--t2-muted);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.t2-country-pill.is-active {
	background: var(--t2-text);
	border-color: var(--t2-text);
	color: #fff;
}

.t2-search-status {
	margin: 0.5rem 0 0;
	padding: 0 1rem;
	font-size: 0.75rem;
	color: var(--t2-muted);
}

.t2-search-status.is-empty {
	color: var(--t2-secondary);
	font-weight: 600;
}

.t2-is-hidden {
	display: none !important;
}

/* category tabs */
.t2-tabs-wrap {
	background: var(--t2-bg);
	padding: 0.25rem 0 0;
}

.t2-tabs {
	display: flex;
	gap: 0.5rem;
	padding: 0 1rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.t2-tabs::-webkit-scrollbar {
	display: none;
}

.t2-tab {
	flex: 0 0 auto;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--t2-border);
	border-radius: 999px;
	background: var(--t2-card);
	color: var(--t2-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.t2-tab.is-active {
	color: #fff;
	border-color: transparent;
}

.t2-tab[data-category="fairytale"].is-active {
	background: var(--t2-primary);
}

.t2-tab[data-category="novel"].is-active {
	background: var(--t2-secondary);
}

.t2-tab[data-category="poem"].is-active {
	background: var(--t2-tertiary);
}

/* author list */
.t2-authors {
	padding: 0.25rem 1rem 1.5rem;
}

.t2-author-group {
	display: none;
}

.t2-author-group.is-active {
	display: block;
}

.t2-author-group-label {
	margin: 0 0 0.65rem;
	font-size: 0.9375rem;
	font-weight: 700;
	scroll-margin-top: calc(var(--t2-header-h) + var(--t2-search-h) + var(--t2-tabs-h) + 16px);
}

.t2-author-group-label--fairytale { color: var(--t2-primary); }
.t2-author-group-label--novel { color: var(--t2-secondary); }
.t2-author-group-label--poem { color: var(--t2-tertiary); }

.t2-author-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.t2-author-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: calc(50% - 0.25rem);
	flex: 1 1 calc(50% - 0.25rem);
	max-width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--t2-border);
	border-radius: 10px;
	background: var(--t2-card);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.t2-author-chip:active {
	box-shadow: var(--t2-shadow);
}

.t2-author-chip-en {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--t2-text);
	line-height: 1.25;
}

.t2-author-chip-ko {
	font-size: 0.75rem;
	color: var(--t2-muted);
	margin-top: 0.1rem;
}

.t2-author-chip-count {
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--t2-primary);
}

/* works */
.t2-works-section {
	padding: 0 1rem;
}

.t2-works-heading {
	margin: 0 0 1rem;
	padding-top: 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	border-top: 2px solid var(--t2-border);
}

.t2-works-group {
	display: none;
}

.t2-works-group.is-active {
	display: block;
}

.t2-author-block {
	margin-bottom: 1rem;
	scroll-margin-top: calc(var(--t2-header-h) + var(--t2-search-h) + var(--t2-tabs-h) + 16px);
}

.t2-author-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	background: var(--t2-card);
	border: 1px solid var(--t2-border);
	border-radius: var(--t2-radius) var(--t2-radius) 0 0;
}

.t2-author-block-names {
	min-width: 0;
}

.t2-author-block-en {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
}

.t2-author-block-ko {
	font-size: 0.8125rem;
	color: var(--t2-muted);
}

.t2-author-home {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--t2-bg);
	color: var(--t2-primary);
	text-decoration: none;
	font-size: 0.875rem;
}

.t2-works-list {
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--t2-card);
	border: 1px solid var(--t2-border);
	border-top: none;
	border-radius: 0 0 var(--t2-radius) var(--t2-radius);
	overflow: hidden;
}

.t2-work-item + .t2-work-item {
	border-top: 1px solid var(--t2-border);
}

.t2-work-link {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.75rem 1rem;
	color: inherit;
	text-decoration: none;
	min-height: 3rem;
}

.t2-work-link:active {
	background: var(--t2-bg);
}

.t2-work-country {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
	margin-top: 0.15rem;
}

.t2-work-country--fairytale { background: var(--t2-primary); }
.t2-work-country--novel { background: var(--t2-secondary); }
.t2-work-country--poem { background: var(--t2-tertiary); }

.t2-work-text {
	flex: 1;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.t2-work-title {
	font-weight: 600;
}

.t2-work-meta {
	color: var(--t2-muted);
	font-size: 0.75rem;
	margin-top: 0.15rem;
}

.t2-work-empty {
	padding: 0.85rem 1rem;
	font-size: 0.8125rem;
	color: var(--t2-muted);
	background: var(--t2-card);
	border: 1px solid var(--t2-border);
	border-top: none;
	border-radius: 0 0 var(--t2-radius) var(--t2-radius);
}

.t2-fab-stack {
	position: fixed;
	right: 1rem;
	bottom: 1.25rem;
	z-index: 80;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.t2-fab-stack.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.t2-fab {
	width: 2.75rem;
	height: 2.75rem;
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.t2-fab-search {
	background: var(--t2-primary);
	box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.t2-fab-contact {
	background: var(--t2-text);
}

#t2Authors {
	scroll-margin-top: calc(var(--t2-header-h) + var(--t2-search-h) + var(--t2-tabs-h) + 8px);
}

#t2Contact {
	scroll-margin-top: var(--t2-header-h);
}

#t2SearchSection {
	scroll-margin-top: var(--t2-header-h);
}

	margin-top: 2rem;
	padding: 1.25rem 1rem;
	text-align: center;
	font-size: 0.75rem;
	color: var(--t2-muted);
	line-height: 1.6;
	border-top: 1px solid var(--t2-border);
}

@media (min-width: 481px) {
	.t2-wrap {
		max-width: 520px;
	}
}
