/* ==========================================================================
   Tiki Blog archives (category / tag / author / search) + shared pieces:
   breadcrumb, grid wrapper, category description box, back-to-top.
   ========================================================================== */

/* ----- Breadcrumb ----- */
.amlab-tk-crumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: 14px; line-height: 21px; letter-spacing: -0.02em; color: #808080; }
.amlab-tk-crumb a { color: #808080; text-decoration: none; }
.amlab-tk-crumb a:hover { color: #0a68ff; }
.amlab-tk-crumb__sep { margin: 0 5px; color: #231f20; }
.amlab-tk-crumb .is-current { color: #000; }

/* ----- Grid wrapper (home topic + archives) ----- */
.amlab-tk-gridwrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.amlab-tk-empty { grid-column: 1 / -1; margin: 0; padding: 40px 0; text-align: center; color: #737373; }

/* ----- Archive page ----- */
.amlab-tk-archive { width: min(100% - 2rem, 1200px); margin: 0 auto; padding: 40px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.amlab-tk-archive .amlab-tk-crumb { width: 100%; }
.amlab-tk-archive__title { margin: 8px 0 0; width: 100%; text-align: center; font-size: 55px; line-height: 76px; font-weight: 700; color: #333; letter-spacing: -0.02em; }
.amlab-tk-archive .amlab-tk-gridwrap { padding: 16px 0 0; }

/* Category description box */
.amlab-tk-descbox { width: 100%; margin-top: 16px; padding: 24px; border: 1px solid #e5e5e5; border-radius: 16px; background: #f2f7ff; }
.amlab-tk-descbox__head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; }
.amlab-tk-descbox__head img { width: 120px; height: auto; }
.amlab-tk-descbox__head h2 { margin: 0; font-size: 28px; line-height: 41px; font-weight: 700; color: #0a68ff; letter-spacing: -0.02em; }
.amlab-tk-descbox__body { padding-top: 10px; font-size: 14px; line-height: 1.5; color: #333; letter-spacing: -0.02em; }
.amlab-tk-descbox__body p { margin: 0 0 14px; }
.amlab-tk-descbox__body p:last-child { margin-bottom: 0; }
.amlab-tk-descbox__body a { color: #0a68ff; text-decoration: underline; text-underline-position: from-font; }
.amlab-tk-descbox__body ul { margin: 0; padding-left: 20px; }

/* ----- Back to top ----- */
.amlab-tk-totop { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #0a68ff; color: #fff; box-shadow: 0 4px 12px rgba(10, 104, 255, 0.35); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.amlab-tk-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.amlab-tk-totop svg { width: 18px; height: 18px; }

@media (max-width: 1023px) {
	.amlab-tk-archive__title { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 781px) {
	.amlab-tk-archive { padding-top: 20px; }
	.amlab-tk-archive__title { font-size: 28px; }
	.amlab-tk-descbox { padding: 16px; }
	.amlab-tk-descbox__head h2 { font-size: 22px; line-height: 1.3; }
	.amlab-tk-totop { right: 12px; bottom: 12px; }
}
