/*
Theme Name: TikToker.love
Theme URI: https://tiktoker.love/
Description: SANGO-compatible presentation layer for TikToker.love.
Author: TikToker.love
Version: 1.0.0
Template: sango-theme
Text Domain: tiktoker-love-child
*/

:root {
	--tkl-bg: #f8f8fc;
	--tkl-surface: #ffffff;
	--tkl-text: #16121d;
	--tkl-text-muted: #675f72;
	--tkl-purple: #6d28d9;
	--tkl-purple-deep: #4c1d95;
	--tkl-blue: #06b6ff;
	--tkl-pink: #ec4899;
	--tkl-border: #e6ddf4;
	--tkl-radius-sm: 0;
	--tkl-radius-md: 0;
	--tkl-radius-lg: 0;
	--tkl-shadow: 0 10px 28px rgba(53, 24, 91, .09);
	--tkl-neon-shadow: 0 0 0 3px rgba(6, 182, 255, .16), 0 8px 22px rgba(109, 40, 217, .13);
	--tkl-space-1: 8px;
	--tkl-space-2: 12px;
	--tkl-space-3: 20px;
	--tkl-space-4: 32px;
	--tkl-content-width: 760px;
}

html { background: var(--tkl-bg); }
body,
.container { background: var(--tkl-bg); color: var(--tkl-text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-weight: 400; line-height: 1.8; }
body { overflow-x: hidden; }
a { color: var(--tkl-purple); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--tkl-pink); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--tkl-blue); outline-offset: 3px; }
img { height: auto; max-width: 100%; }

/* Header and inherited SANGO navigation. */
.header,
header.header,
#inner-header,
#inner-header.wrap { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--tkl-border); box-shadow: 0 5px 18px rgba(48, 22, 83, .06); }
header.header { background-color: #fff !important; background-image: none !important; }
.header { position: relative; }
.header::before { background: linear-gradient(90deg, var(--tkl-purple), var(--tkl-blue), var(--tkl-pink)); content: ""; display: block; height: 4px; }
#logo,
#logo img,
.desktop-nav li a { height: auto !important; line-height: 1.3 !important; }
#logo { max-width: 210px; padding: 12px 0; }
.desktop-nav li a,
.header a { color: var(--tkl-text); font-weight: 700; }
.desktop-nav li a:hover,
.desktop-nav li.current-menu-item > a { color: var(--tkl-purple); }
.menu-btn,
.menu-trigger,
.hamburger { min-height: 44px; min-width: 44px; }

/* Global layout and inherited cards. */
#content { padding: var(--tkl-space-3) 0 var(--tkl-space-4); }
.wrap { max-width: 1180px; }
#main { min-width: 0; }
.article,
#entry,
.cardtype_article,
.c_linkto,
.widget { border-radius: 0; }
#entry { background: var(--tkl-surface); box-shadow: var(--tkl-shadow); overflow: hidden; }
.entry-header { border-bottom: 1px solid var(--tkl-border); padding: clamp(20px, 5vw, 44px) clamp(18px, 5vw, 52px) 24px; }
.entry-content { color: var(--tkl-text); font-size: 1rem; padding: clamp(22px, 5vw, 52px); }
.entry-content > * { max-width: var(--tkl-content-width); }
.entry-content p { margin: 0 0 1.45em; }
.entry-content li + li { margin-top: .45em; }
.entry-content .alignwide,
.entry-content table,
.entry-content .wp-block-table,
.entry-content .iframe-wrap { max-width: 100%; }
.entry-title,
.single-title { color: var(--tkl-text); font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: .015em; line-height: 1.35; }
.entry-meta { color: var(--tkl-text-muted); font-size: .9rem; }
.post-thumbnail img { border-radius: 0; box-shadow: var(--tkl-shadow); }

.entry-content h2 { border-left: 5px solid var(--tkl-purple); color: var(--tkl-text); font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.45; margin: 2.2em 0 1em; padding: .35em 0 .35em .7em; position: relative; }
.entry-content h2::after { background: linear-gradient(90deg, var(--tkl-purple), var(--tkl-blue), var(--tkl-pink)); border-radius: 0; bottom: -1px; content: ""; height: 2px; left: 0; max-width: 230px; position: absolute; width: 42%; }
.entry-content h3 { border-bottom: 1px solid var(--tkl-border); color: var(--tkl-purple-deep); font-size: 1.2rem; font-weight: 800; margin: 1.9em 0 .85em; padding-bottom: .45em; }
.entry-content blockquote { background: #fbf9ff; border: 1px solid var(--tkl-border); border-left: 4px solid var(--tkl-blue); border-radius: 0; color: var(--tkl-text); padding: 1em 1.1em; }
.entry-content code { background: #f1edf8; border-radius: 0; color: var(--tkl-purple-deep); padding: .12em .35em; }
.entry-content pre { background: #21143d; border-radius: 0; color: #fff; max-width: 100%; overflow-x: auto; padding: 1em; }
.entry-content table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.entry-content th { background: #f2ecff; color: var(--tkl-purple-deep); }
.entry-content td,
.entry-content th { border: 1px solid var(--tkl-border); padding: .65em .8em; white-space: normal; }
.entry-content iframe { max-width: 100%; }

/* Frozen data-table contract: published comparison and mapping tables keep visible cells on every article surface. */
table.tkl-guide-data-table { border: 1px solid #cfc8da !important; border-collapse: collapse !important; display: table !important; margin: 24px 0 32px !important; table-layout: auto !important; width: 100% !important; }
table.tkl-guide-data-table th,
table.tkl-guide-data-table td { border: 1px solid #cfc8da !important; padding: 14px 16px !important; text-align: left !important; vertical-align: top !important; white-space: normal !important; }
table.tkl-guide-data-table th { background: #f5f0ff !important; color: #4c1d95 !important; font-weight: 800 !important; }

/* Single templates use several reading-content wrappers.  Keep profile, comparison,
   and other explanatory tables visibly structured on all of them. */
.tkl-default-single__content table,
.tkl-creator-profile__content table,
.tkl-creator-commerce__content table,
.tkl-guide-article__content table,
.tkl-roundup-guide__content table {
  border: 1px solid #cfc8da !important;
  border-collapse: collapse !important;
  display: table !important;
  margin: 24px 0 32px !important;
  table-layout: auto !important;
  width: 100% !important;
}
.tkl-default-single__content th,
.tkl-default-single__content td,
.tkl-creator-profile__content th,
.tkl-creator-profile__content td,
.tkl-creator-commerce__content th,
.tkl-creator-commerce__content td,
.tkl-guide-article__content th,
.tkl-guide-article__content td,
.tkl-roundup-guide__content th,
.tkl-roundup-guide__content td {
  border: 1px solid #cfc8da !important;
  overflow-wrap: anywhere;
  padding: 14px 16px !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal !important;
}
.tkl-default-single__content th,
.tkl-creator-profile__content th,
.tkl-creator-commerce__content th,
.tkl-guide-article__content th,
.tkl-roundup-guide__content th {
  background: #f5f0ff !important;
  color: #4c1d95 !important;
  font-weight: 800 !important;
}
.tkl-default-single__content tbody > tr > th,
.tkl-creator-profile__content tbody > tr > th,
.tkl-creator-commerce__content tbody > tr > th,
.tkl-guide-article__content tbody > tr > th,
.tkl-roundup-guide__content tbody > tr > th { width: 30%; }

/* The legacy single-post template uses a wrapper name that varies by article.
   Keep every editorial table a real grid even when that template's own mobile
   styles try to turn rows and cells into block elements. */
#entry .entry-content table,
article .entry-content table,
.post-content table {
  border: 1px solid #cfc8da !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  display: table !important;
  margin: 24px 0 32px !important;
  table-layout: auto !important;
  width: 100% !important;
}
#entry .entry-content table tr,
article .entry-content table tr,
.post-content table tr { display: table-row !important; }
#entry .entry-content table th,
#entry .entry-content table td,
article .entry-content table th,
article .entry-content table td,
.post-content table th,
.post-content table td {
  border: 1px solid #cfc8da !important;
  display: table-cell !important;
  padding: 14px 16px !important;
  vertical-align: top !important;
}

@media (max-width: 640px) {
  .tkl-default-single__content table,
  .tkl-creator-profile__content table,
  .tkl-creator-commerce__content table,
  .tkl-guide-article__content table,
  .tkl-roundup-guide__content table { font-size: .92rem !important; }
  .tkl-default-single__content th,
  .tkl-default-single__content td,
  .tkl-creator-profile__content th,
  .tkl-creator-profile__content td,
  .tkl-creator-commerce__content th,
  .tkl-creator-commerce__content td,
  .tkl-guide-article__content th,
  .tkl-guide-article__content td,
  .tkl-roundup-guide__content th,
  .tkl-roundup-guide__content td { padding: 11px 10px !important; }
}

/* Legacy SANGO shortcodes / link cards retain their markup and gain safe spacing. */
.entry-content .sng-box,
.entry-content .say,
.entry-content .linkto,
.entry-content .lkc-card,
.entry-content .toc,
.entry-content .sng-toc { border-radius: 0; max-width: 100%; }
.entry-content .linkto,
.entry-content .lkc-card { border-color: var(--tkl-border); box-shadow: 0 4px 14px rgba(53, 24, 91, .07); }
.entry-content .toc,
.entry-content .sng-toc { background: #fbfaff; border: 1px solid var(--tkl-border); padding: var(--tkl-space-2); }

/* Core-owned components: only visual treatment lives in the child theme. */
.tkl-affiliate-disclosure { background: transparent; border: 0; color: #777980; font-size: 12px; line-height: 1.6; margin: 0 0 18px; padding: 0; }
.tkl-affiliate-disclosure::before { content: "※ "; }
.tkl-product-card { background: var(--tkl-surface); border: 1px solid var(--tkl-border); border-radius: 0; box-shadow: var(--tkl-shadow); padding: 20px; }
.tkl-product-card__title { color: var(--tkl-text); font-size: 1.18rem; font-weight: 800; line-height: 1.45; }
.tkl-product-card__brand,
.tkl-product-card__description,
.tkl-product-card__checked { color: var(--tkl-text-muted); }
.tkl-product-card__price { color: var(--tkl-text); font-size: 1.05rem; font-weight: 700; }
.tkl-product-card__cta { border: 1px solid transparent; box-shadow: 0 6px 15px rgba(109, 40, 217, .22); transition: transform .18s ease, box-shadow .18s ease; }
.tkl-product-card__cta[data-tkl-provider="tiktok_shop"] { background: #6d28d9 !important; }
.tkl-product-card__cta:hover { box-shadow: var(--tkl-neon-shadow); color: #fff; transform: translateY(-1px); }
.tkl-product-card--moshimo { align-items: flex-start; display: grid; gap: 28px; grid-template-columns: 290px minmax(0,1fr); margin: 22px 0 34px; }
.tkl-product-card--moshimo .tkl-product-card__image-wrap { align-items: center; display: flex; justify-content: center; min-height: 260px; }
.tkl-product-card--moshimo .tkl-product-card__image-wrap img { display: block; height: auto; max-height: 300px; max-width: 230px; object-fit: contain; width: 100%; }
.tkl-product-card--moshimo .tkl-product-card__body { min-width: 0; }
.tkl-product-card--moshimo .tkl-product-card__offers { display: grid; gap: 12px; margin-top: 20px; }
.tkl-product-card--moshimo .tkl-product-card__cta { color: #fff !important; display: block; font-size: 1.08rem; font-weight: 800; padding: 14px 18px; text-align: center; width: 100%; }
.tkl-product-card--moshimo .tkl-product-card__cta--amazon { background: #ffb13b !important; }
.tkl-product-card--moshimo .tkl-product-card__cta--rakuten { background: #f76661 !important; }
.tkl-product-card--moshimo .tkl-product-card__cta--yahoo { background: #36a4c6 !important; }
@media (max-width: 680px) { .tkl-product-card--moshimo { grid-template-columns: 1fr; } .tkl-product-card--moshimo .tkl-product-card__image-wrap { min-height: 0; } }

.tkl-related { background: var(--tkl-surface); border: 1px solid var(--tkl-border); border-top: 4px solid var(--tkl-purple); border-radius: 0; box-shadow: var(--tkl-shadow); margin: 28px 0; padding: 20px; }
.tkl-related h2 { color: var(--tkl-text); font-size: 1.25rem; font-weight: 800; margin: 0 0 15px; }
.tkl-related__link { background: #fff; border-color: var(--tkl-border); min-height: 54px; }
.tkl-related__link:hover { border-color: var(--tkl-purple); box-shadow: 0 5px 13px rgba(109, 40, 217, .1); color: var(--tkl-text); }
.tkl-related__category { color: var(--tkl-purple); }

/* Same-category reading path: preserve two tappable cards at every viewport. */
.tkl-category-adjacent { border-top: 1px solid var(--tkl-border); margin: 48px 0 0; padding-top: 28px; }
.tkl-category-adjacent h2 { color: var(--tkl-purple-deep); font-size: 1.28rem; font-weight: 900; margin: 0 0 16px; }
.tkl-category-adjacent__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tkl-category-adjacent__card { background: #fff; border: 1px solid var(--tkl-border); color: var(--tkl-text); display: block; min-width: 0; overflow: hidden; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tkl-category-adjacent__card:hover { border-color: var(--tkl-purple); box-shadow: 0 7px 18px rgba(109, 40, 217, .14); color: var(--tkl-text); transform: translateY(-2px); }
.tkl-category-adjacent__thumb { aspect-ratio: 16 / 9; background: #f1ebfa; display: block; overflow: hidden; }
.tkl-category-adjacent__image, .tkl-category-adjacent__placeholder { display: block; height: 100%; object-fit: cover; width: 100%; }
.tkl-category-adjacent__placeholder { background: linear-gradient(135deg, #ede9fe, #fce7f3); }
.tkl-category-adjacent__label { color: var(--tkl-purple); display: block; font-size: .76rem; font-weight: 800; letter-spacing: .04em; margin: 10px 12px 4px; }
.tkl-category-adjacent__title { display: -webkit-box; font-size: .96rem; font-weight: 800; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; margin: 0 12px 14px; overflow: hidden; }

/* Archive, search and footer. */
.archive-title,
.page-title { color: var(--tkl-text); font-weight: 800; }
.cardtype_article,
.c_linkto { background: var(--tkl-surface); border: 1px solid var(--tkl-border); box-shadow: 0 4px 16px rgba(53, 24, 91, .06); overflow: hidden; }
.cardtype_article:hover { box-shadow: var(--tkl-shadow); transform: translateY(-2px); }
.cardtype_article a { color: var(--tkl-text); }
.footer,
#footer { background: #f0eafa; border-top: 4px solid var(--tkl-purple); color: var(--tkl-text); }
.footer a,
#footer a { color: var(--tkl-purple-deep); font-weight: 700; }
.copyright { color: var(--tkl-text-muted); }

/* Future editorial components. No content is inserted by this theme. */
.tkl-source-section,
.tkl-updated-info,
.tkl-cta-section { background: var(--tkl-surface); border: 1px solid var(--tkl-border); border-radius: 0; box-shadow: var(--tkl-shadow); margin: 24px 0; padding: 18px; }
.tkl-source-section__title,
.tkl-updated-info__title,
.tkl-cta-section__title { color: var(--tkl-purple-deep); font-size: 1rem; font-weight: 800; margin: 0 0 8px; }

/* Mumei feature: explicit server-rendered pagination. */
.tkl-mumei-page-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 40px 0 28px; }
.tkl-mumei-page-nav a,
.tkl-mumei-page-nav span { border-radius: 999px; font-weight: 700; line-height: 1.35; padding: 12px 18px; }
.tkl-mumei-page-nav a { background: linear-gradient(135deg, #204f97, #6350c9); color: #fff; text-decoration: none; }
.tkl-mumei-page-nav span { background: #edf4ff; color: #24446f; }
.tkl-mumei-product { margin: 32px 0 44px; }

@media (max-width: 767px) {
	/* Keep multipage navigation a deliberately large touch target rather than
	 * allowing its text link to collapse into surrounding article copy. */
	.tkl-mumei-page-nav {
		display: grid;
		gap: 10px;
		justify-items: stretch;
		margin: 30px 0 34px;
	}
	.tkl-mumei-page-nav span {
		font-size: .9rem;
		justify-self: center;
		padding: 8px 15px;
	}
	.tkl-mumei-page-nav a {
		align-items: center;
		border: 1px solid rgba(255,255,255,.38);
		border-radius: 14px;
		box-shadow: 0 8px 18px rgba(72, 65, 184, .22);
		display: flex;
		font-size: 1rem;
		justify-content: center;
		line-height: 1.45;
		min-height: 56px;
		padding: 12px 18px;
		text-align: center;
		width: 100%;
	}
	.tkl-mumei-page-nav a:active { transform: translateY(1px); }
}

@media (max-width: 767px) {
	#content { padding-top: var(--tkl-space-2); }
	#entry { border-radius: 0; box-shadow: none; }
	.entry-header { padding-top: 24px; }
	.entry-content { font-size: 1rem; line-height: 1.85; }
	.tkl-product-card { align-items: flex-start; }
	.tkl-product-card__offers { display: grid; grid-template-columns: 1fr; }
	.tkl-product-card__cta { min-height: 48px; width: 100%; }
	.tkl-related { margin-left: 0; margin-right: 0; padding: 16px; }
	.tkl-related__list { grid-template-columns: 1fr; }
	.tkl-category-adjacent { margin-top: 38px; padding-top: 22px; }
	.tkl-category-adjacent__grid { gap: 8px; }
	.tkl-category-adjacent__label { font-size: .68rem; margin: 8px 9px 3px; }
	.tkl-category-adjacent__title { font-size: .81rem; line-height: 1.4; margin: 0 9px 10px; }
	.entry-content table { font-size: .92rem; }
	 table.tkl-guide-data-table { font-size: .92rem !important; }
	 table.tkl-guide-data-table th,
	 table.tkl-guide-data-table td { padding: 11px 10px !important; }
}

@media (min-width: 768px) {
	.entry-content { margin: 0 auto; }
	.tkl-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Article 04/18: one-column creator profile, linked profile table, and TikTok embeds. */
body.postid-535 #main { float:none; margin-left:auto; margin-right:auto; max-width:1120px; width:100%; }
body.postid-535 #sidebar { display:none; }
body.postid-535 #entry { margin-left:auto; margin-right:auto; max-width:1120px; }
body.postid-535 .entry-header,
body.postid-535 .entry-content { box-sizing:border-box; margin-left:auto; margin-right:auto; max-width:960px; }
.tkl-article-04 { margin-left:auto; margin-right:auto; max-width:100%; }
.tkl-article-04 .tkl-article-summary-table { border:1px solid #b9b6c2; border-collapse:collapse; margin:24px 0 36px; table-layout:fixed; width:100%; }
.tkl-article-04 .tkl-article-summary-table td { border:1px solid #b9b6c2; line-height:1.65; padding:14px 16px; vertical-align:top; word-break:break-word; }
.tkl-article-04 .tkl-article-summary-table td:first-child { background:#f7f5fb; font-weight:700; width:29%; }
.tkl-tiktok-video { margin:20px auto 30px; max-width:605px; }
.tkl-tiktok-video .tiktok-embed { margin-left:auto !important; margin-right:auto !important; }
.tkl-tiktok-video__fallback { margin:10px 0 0; text-align:center; }
@media (max-width:640px) { body.postid-535 #main, body.postid-535 #entry, body.postid-535 .entry-header, body.postid-535 .entry-content { max-width:none; } .tkl-article-04 { max-width:none; } .tkl-article-04 .tkl-article-summary-table td { padding:12px 10px; } .tkl-article-04 .tkl-article-summary-table td:first-child { width:31%; } }
/* Music and Vocaloid article YouTube embeds. */
.tkl-youtube-embed {
	margin: 1.5rem 0;
}

.tkl-youtube-embed__frame {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	border-radius: 10px;
}

.tkl-youtube-embed__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tkl-youtube-embed figcaption {
	margin-top: .5rem;
	font-size: .9rem;
}
