/* ==========================================================================
   Tiki Blog single post (Figma "D-Article"): 800px content + 376px sticky TOC,
   editorial content styles, infobox / products / references shortcodes,
   share row, tags, author box, related posts.
   ========================================================================== */

.amlab-tk-article { width: min(100% - 2rem, 1200px); margin: 0 auto; padding: 40px 0 0; display: flex; gap: 24px; align-items: flex-start; letter-spacing: -0.02em; }
.amlab-tk-article__main { flex: 0 1 800px; min-width: 0; }
.amlab-tk-article__side { flex: 0 0 376px; position: sticky; top: 88px; }
.amlab-tk-article__title { margin: 12px 0; font-size: 44px; line-height: 60px; font-weight: 700; color: #333; }
.amlab-tk-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; line-height: 1.5; color: #737373; }
.amlab-tk-authorchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0.5px solid #e5e5e5; border-radius: 24px; background: #f2f7ff; color: #0a68ff; text-decoration: none; }
.amlab-tk-authorchip img { width: 24px; height: 24px; border-radius: 999px; border: 1px solid #0a68ff; }
.amlab-tk-authorchip strong { font-weight: 700; }
.amlab-tk-article__date + .amlab-tk-article__views { padding-left: 16px; border-left: 1px solid #e5e5e5; }
.amlab-tk-article__views { display: inline-flex; align-items: center; gap: 4px; }

/* ----- Content ----- */
.amlab-tk-article__content { margin-top: 32px; font-size: 16px; line-height: 1.6; color: #333; }
.amlab-tk-article__content > * { margin: 0 0 16px; }
.amlab-tk-article__content h2 { position: relative; margin: 32px 0 16px; padding: 4px 0 4px 12px; border-left: 5px solid #0a68ff; background: linear-gradient(90deg, #f2f7ff 0%, rgba(242, 247, 255, 0) 60%); font-size: 30px; line-height: 1.3; font-weight: 700; color: #1d2636; }
.amlab-tk-article__content h3 { margin: 24px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #1d2636; }
.amlab-tk-article__content h4 { margin: 20px 0 8px; font-size: 18px; font-weight: 700; color: #1d2636; }
.amlab-tk-article__content a { color: #0a68ff; text-decoration: underline; text-underline-position: from-font; }
.amlab-tk-article__content ul, .amlab-tk-article__content ol { padding-left: 22px; }
.amlab-tk-article__content li { margin-bottom: 6px; }
.amlab-tk-article__content img { max-width: 100%; height: auto; border-radius: 16px; }
.amlab-tk-article__content figure { margin: 24px 0; }
.amlab-tk-article__content .wp-block-image img, .amlab-tk-article__content > p > img { border: 3px solid #0a68ff; border-radius: 16px; }
.amlab-tk-article__content figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: #737373; }
.amlab-tk-article__content iframe { max-width: 100%; }
.amlab-tk-article__content .wp-block-embed__wrapper, .amlab-tk-article__content .wp-block-embed iframe { border-radius: 16px; overflow: hidden; }
.amlab-tk-article__content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.amlab-tk-article__content th, .amlab-tk-article__content td { padding: 10px 12px; border: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.amlab-tk-article__content th { background: #f2f7ff; font-weight: 700; }
.amlab-tk-article__content blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid #3381ff; background: #f8f8f8; border-radius: 0 12px 12px 0; }

/* Infobox / see-also */
.amlab-tk-infobox { margin: 24px 0; padding: 16px 20px; border-radius: 12px; background: #f2f7ff; font-size: 14px; line-height: 1.6; color: #333; }
.amlab-tk-infobox p { margin: 0 0 8px; display: inline; }
.amlab-tk-infobox__title { font-weight: 700; }
.amlab-tk-infobox--list p { display: block; margin: 0 0 8px; }
.amlab-tk-infobox--list ul { margin: 8px 0 0; padding-left: 20px; }
.amlab-tk-infobox--list li { margin-bottom: 4px; }

/* Product cards */
.amlab-tk-products { margin: 24px 0; }
.amlab-tk-products__title { margin: 0 0 16px; text-align: center; font-size: 16px; font-weight: 700; color: #1d2636; }
.amlab-tk-products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.amlab-tk-products__more { margin: 16px 0 0; text-align: center; }
.amlab-tk-products__more .amlab-tk-chip { text-decoration: none; text-transform: uppercase; }
.amlab-tk-product { display: flex; flex-direction: column; padding: 12px; border: 1px solid #ebebf0; border-radius: 12px; background: #fff; }
.amlab-tk-product__img { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f5f5fa; }
.amlab-tk-product__img img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; border-radius: 8px !important; }
.amlab-tk-product__badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 10px; font-weight: 700; color: #0a68ff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.amlab-tk-product__name { margin: 10px 0 6px; font-size: 14px; line-height: 1.4; color: #27272a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.amlab-tk-product__name a { color: inherit; text-decoration: none; }
.amlab-tk-product__price { margin: 0; font-size: 16px; font-weight: 700; color: #ff424f; }
.amlab-tk-product__price sup { font-size: 10px; }
.amlab-tk-product__old { margin: 2px 0 0; font-size: 12px; color: #808089; }
.amlab-tk-product__off { display: inline-block; padding: 0 4px; border-radius: 4px; background: #ff424f; color: #fff; font-weight: 700; }
.amlab-tk-product__ship { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #ebebf0; font-size: 11px; color: #808089; display: flex; align-items: center; gap: 4px; }
.amlab-tk-product__ship span { font-weight: 800; color: #ff424f; font-style: italic; }
.amlab-tk-product__cta { display: block; margin-top: 10px; padding: 6px; border: 1px solid #0a68ff; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 600; color: #0a68ff !important; text-decoration: none !important; }
.amlab-tk-product__cta:hover { background: #0a68ff; color: #fff !important; }

/* ----- Share / boxes ----- */
.amlab-tk-share { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0; padding: 8px; font-size: 12px; color: #333; }
.amlab-tk-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; transition: background 0.15s ease; }
.amlab-tk-share__btn:hover { background: #f2f7ff; }
.amlab-tk-share__copy.is-copied { background: #effff4; }

.amlab-tk-box { margin: 16px 0; padding: 24px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; }
.amlab-tk-box__title { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #231f20; }
.amlab-tk-refs { background: #f8f8f8; }
.amlab-tk-refs ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.amlab-tk-refs a { color: #0a68ff; text-decoration: none; word-break: break-all; }
.amlab-tk-refs a:hover { text-decoration: underline; }
.amlab-tk-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.amlab-tk-pill { display: inline-block; padding: 6px 12px; border: 1px solid #e5e5e5; border-radius: 999px; font-size: 14px; color: #333; text-decoration: none; }
.amlab-tk-pill:hover { border-color: #0a68ff; color: #0a68ff; }

/* Author box */
.amlab-tk-author { position: relative; margin: 16px 0; padding: 48px 24px 24px; border: 1px solid #3381ff; border-radius: 16px; background: #fafcff; overflow: hidden; }
.amlab-tk-author__badge { position: absolute; left: -1px; top: -1px; padding: 8px 16px; border-radius: 16px 0 16px 0; background: #0a68ff; color: #fff; font-size: 14px; font-weight: 600; }
.amlab-tk-author__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.amlab-tk-author__who { display: flex; align-items: center; gap: 8px; }
.amlab-tk-author__avatar { width: 56px; height: 56px; border-radius: 100px; border: 0.5px solid #e5e5e5; }
.amlab-tk-author__name { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: #000; }
.amlab-tk-author__role { margin: 0; font-size: 16px; line-height: 1.5; color: #333; }
.amlab-tk-author__more { display: inline-flex; align-items: center; gap: 8px; height: 35px; padding: 0 16px; border: 2px solid #3381ff; border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; color: #3381ff; text-decoration: none; }
.amlab-tk-author__more:hover { background: #3381ff; color: #fff; }
.amlab-tk-author__bio { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #333; }

/* ----- TOC ----- */
.amlab-tk-toc { padding: 24px; border-radius: 16px; background: #f8f8f8; max-height: calc(100vh - 110px); overflow: auto; }
.amlab-tk-toc__title { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e5e5; font-size: 24px; line-height: 35px; font-weight: 700; color: #231f20; }
.amlab-tk-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.amlab-tk-toc__item.level-3 { padding-left: 16px; }
.amlab-tk-toc__item a { font-size: 14px; line-height: 1.5; color: #333; text-decoration: none; }
.amlab-tk-toc__item a:hover, .amlab-tk-toc__item.is-active > a { color: #0a68ff; }
.amlab-tk-toc__item.is-active > a { font-weight: 600; }

/* ----- Related ----- */
.amlab-tk-related { width: min(100% - 2rem, 1200px); margin: 40px auto 0; padding: 24px; border-radius: 16px; background: #f8f8f8; }
.amlab-tk-related__title { margin: 0 0 24px; text-align: center; font-size: 24px; font-weight: 700; color: #231f20; }
.amlab-tk-related .amlab-tk-grid { max-width: none; }

@media (max-width: 1023px) {
	.amlab-tk-article { flex-direction: column; }
	.amlab-tk-article__main { flex-basis: auto; width: 100%; }
	.amlab-tk-article__side { flex-basis: auto; width: 100%; position: static; order: -1; }
	.amlab-tk-toc { max-height: none; }
	.amlab-tk-article__title { font-size: 32px; line-height: 1.3; }
	.amlab-tk-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.amlab-tk-article { padding-top: 20px; }
	.amlab-tk-article__title { font-size: 26px; }
	.amlab-tk-article__content h2 { font-size: 22px; }
	.amlab-tk-article__content h3 { font-size: 18px; }
	.amlab-tk-article__meta { gap: 8px 12px; }
	.amlab-tk-article__date + .amlab-tk-article__views { padding-left: 0; border-left: 0; }
	.amlab-tk-share { flex-wrap: wrap; }
	.amlab-tk-box, .amlab-tk-author { padding: 16px; }
	.amlab-tk-author { padding-top: 44px; }
	.amlab-tk-related { padding: 16px; }
}
