/* 由 tools/build_front_css.py 從 css-src/late/ 產生，不要直接修改。 */
/* 01-blocksy.css */
body .entry-content > .rt-blk, body .entry-content > .rt-blk.alignfull, body .is-layout-constrained > .rt-blk.alignfull, body .is-layout-flow > .rt-blk.alignfull { width: auto; max-width: none; margin-block: var(--rt-block-mt, 0) 0; margin-inline: 0; }

body.rt-has-blocks [data-vertical-spacing] { padding-block: 0; }
body.rt-has-blocks .entry-content { margin-block: 0; }
body.rt-has-blocks .ct-container-full { padding-block: 0; }
body.rt-has-blocks article > .entry-content:first-child { margin-top: 0; }

body .ct-container-full > article.rt-klist-page { width: auto; max-width: none; margin-inline: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.ct-back-to-top { display: none !important; }

#footer > .rt-footer { margin: 0; }

.ct-breadcrumbs, .ct-meta-element, .ct-widget small { font-size: 15px; }

:where(.rt-blk, .rt-modal, .rt-quickbar, .rt-float) :is(ul, ol) { margin-block-end: 0; }

[data-link] :where(.rt-blk, .rt-modal, .rt-quickbar, .rt-float) a:not(:hover) { --theme-text-decoration: none; }
/* 02-hero.css */
.hero-section[data-type="type-2"] { font-family: var(--ff-sans); letter-spacing: .02em; }
body .hero-section[data-type="type-2"] .entry-header > * { margin-block: 0; }
body .hero-section[data-type="type-2"] .entry-header .page-title {
  --theme-font-family: var(--ff-sans);
  --theme-font-size: var(--fs-h2);
  --theme-font-weight: 700;
  --theme-line-height: 1.4;
  --theme-letter-spacing: .06em;
  --theme-heading-color: var(--c-brand);
  margin: 0;
  color: var(--c-brand);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body .hero-section[data-type="type-2"] .entry-header .page-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--c-accent); }
body .hero-section[data-type="type-2"] .entry-header .page-description { max-width: 720px; margin-top: 16px; color: var(--c-muted); font-size: var(--fs-body); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
body .hero-section[data-type="type-2"] .entry-header .page-description > * { margin: 0; }
body .hero-section[data-type="type-2"] .entry-header .ct-breadcrumbs { max-width: 100%; margin-bottom: 18px; overflow: hidden; color: var(--c-muted); font-size: 15px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
body .hero-section[data-type="type-2"] .ct-breadcrumbs a { color: var(--c-primary); text-decoration: none; }
body .hero-section[data-type="type-2"] .ct-breadcrumbs a:hover { text-decoration: underline; }
body .hero-section[data-type="type-2"] .ct-breadcrumbs .ct-separator { margin-inline: 8px; vertical-align: 1px; opacity: .6; }


.rt-404__body { padding-block: clamp(40px, 5vw, 64px) var(--sec-y); }
.rt-404__inner { display: grid; justify-items: start; gap: 28px; }
.rt-404__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rt-404__search { width: min(100%, 520px); }

@media (max-width: 767.98px) {
  body .hero-section[data-type="type-2"] .entry-header .ct-breadcrumbs { margin-bottom: 12px; }
  body .hero-section[data-type="type-2"] .entry-header .page-title::after { margin-top: 12px; }
  body .hero-section[data-type="type-2"] .entry-header .page-description { margin-top: 12px; }
}
/* 03-blog.css */
body .entries[data-archive="default"][data-layout="simple"] { border-top: 1px solid rgba(0, 73, 46, .14); font-family: var(--ff-sans); }
body .entries[data-archive="default"][data-layout="simple"] > article.entry-card { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: center; margin: 0; padding: 24px 0; border-bottom: 1px solid rgba(0, 73, 46, .14); text-align: start; }
body .entries[data-archive="default"][data-layout="simple"] > article.entry-card > .ct-media-container { width: 132px; max-width: none; margin: 0; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: var(--c-line); box-shadow: none; }
body .entries[data-archive="default"][data-layout="simple"] > article.entry-card > .ct-media-container img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
body .entries[data-archive="default"][data-layout="simple"] > article.entry-card:hover > .ct-media-container img { scale: 1.06; }
body .entries[data-archive="default"][data-layout="simple"] .card-content { display: grid; gap: 6px; min-width: 0; align-self: center; }
body .entries[data-archive="default"][data-layout="simple"] .card-content > * { margin: 0; }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta { --theme-font-size: var(--fs-xs); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .06em; list-style: none; }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta li { margin: 0; font-size: var(--fs-xs); }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta li::after { display: none; }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta .meta-date { color: var(--c-primary); font-weight: 700; }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta [data-type="pill"] a { position: relative; z-index: 1; display: inline-block; min-height: 0; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--c-tint); color: var(--c-brand); font-size: var(--fs-xs); font-weight: 500; line-height: 1.6; letter-spacing: .02em; text-decoration: none; }
body .entries[data-archive="default"][data-layout="simple"] .entry-meta [data-type="pill"] a:hover { background: var(--c-primary); color: #fff; }
body .entries[data-archive="default"][data-layout="simple"] .entry-title { --theme-font-size: var(--fs-h3); --theme-line-height: 1.5; --theme-heading-color: var(--c-brand); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; color: var(--c-brand); }
body .entries[data-archive="default"][data-layout="simple"] .entry-title a { --theme-link-initial-color: var(--c-brand); --theme-link-hover-color: var(--c-primary); color: var(--c-brand); text-decoration: none; transition: color .2s; }
body .entries[data-archive="default"][data-layout="simple"] .entry-title a::after { content: ""; position: absolute; inset: 0; }
body .entries[data-archive="default"][data-layout="simple"] > article.entry-card:hover .entry-title a { color: var(--c-primary); }
body .entries[data-archive="default"][data-layout="simple"] .entry-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.75; }
body .entries[data-archive="default"][data-layout="simple"] .entry-excerpt p { margin: 0; }


body .ct-pagination { margin-top: 40px; font-family: var(--ff-sans); font-size: var(--fs-sm); }
body .ct-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1.5px solid rgba(0, 73, 46, .18); border-radius: 999px; background: #fff; color: var(--c-brand); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
body .ct-pagination a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
body .ct-pagination .page-numbers.current { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
body .ct-pagination .page-numbers.dots { border-color: transparent; background: none; }
body .ct-pagination :is(.prev, .next).page-numbers { display: inline-flex; align-items: center; gap: 8px; padding-inline: 18px; white-space: nowrap; }


body .ct-sidebar { font-family: var(--ff-sans); }
body .ct-sidebar .rt-side { --theme-content-spacing: 0; }
body .ct-sidebar .rt-side > :is(.wp-block-heading, .rt-side__title) { --theme-font-size: var(--fs-h3); --theme-heading-color: var(--c-brand); position: relative; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 73, 46, .14); font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--c-brand); }
body .ct-sidebar .rt-side > :is(.wp-block-heading, .rt-side__title)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 32px; height: 3px; border-radius: 3px; background: var(--c-accent); }
body .ct-sidebar .rt-side :is(.wp-block-categories, .wp-block-latest-posts) { margin: 0; padding: 0; list-style: none; }
body .ct-sidebar .wp-block-categories li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px dashed rgba(0, 73, 46, .16); color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.6; }
body .ct-sidebar .wp-block-categories li a { color: var(--c-text); font-weight: 500; text-decoration: none; transition: color .2s; }
body .ct-sidebar .wp-block-categories li a:hover, body .ct-sidebar .wp-block-categories .current-cat > a { color: var(--c-primary); }
body .ct-sidebar .wp-block-categories .current-cat > a { font-weight: 700; }
body .ct-sidebar .wp-block-latest-posts li { margin: 0; padding: 12px 0; border-bottom: 1px dashed rgba(0, 73, 46, .16); }
body .ct-sidebar .wp-block-latest-posts__post-title { display: block; color: var(--c-text); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; text-decoration: none; transition: color .2s; }
body .ct-sidebar .wp-block-latest-posts__post-title:hover { color: var(--c-primary); }
body .ct-sidebar .wp-block-latest-posts__post-date { display: block; margin-top: 4px; color: var(--c-muted); font-size: var(--fs-xs); }

body .ct-sidebar .rt-side__posts { margin: 0; padding: 0; list-style: none; }
body .ct-sidebar .rt-side__post { margin: 0; border-bottom: 1px dashed rgba(0, 73, 46, .16); }
body .ct-sidebar .rt-side__post > a { --theme-text-decoration: none; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; color: var(--c-text); text-decoration: none; }
body .ct-sidebar .rt-side__thumb { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--c-line); }
body .ct-sidebar .rt-side__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
body .ct-sidebar .rt-side__post > a:hover .rt-side__thumb img { scale: 1.06; }
body .ct-sidebar .rt-side__ptext { display: grid; gap: 4px; min-width: 0; }
body .ct-sidebar .rt-side__ptitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--c-text); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; transition: color .2s; }
body .ct-sidebar .rt-side__post > a:hover .rt-side__ptitle { color: var(--c-primary); }
body .ct-sidebar .rt-side__pmeta { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  body .ct-sidebar .rt-side__thumb img, body .ct-sidebar .rt-side__ptitle { transition: none; }
}


body .rt-single > .rt-article { padding-block: 0; }
body .rt-single .rt-article__wrap { width: 100%; max-width: 860px; padding-inline: 0; }
body .rt-single[data-sidebar] .rt-article__wrap { max-width: none; }
body .rt-single .rt-article--hero .rt-article__head { padding-bottom: 20px; margin-bottom: 28px; }
body .rt-single .rt-article--hero .rt-article__meta { margin-bottom: 0; }

@media (max-width: 767.98px) {
  body .entries[data-archive="default"][data-layout="simple"] > article.entry-card { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  body .entries[data-archive="default"][data-layout="simple"] > article.entry-card > .ct-media-container { width: 88px; }
  body .entries[data-archive="default"][data-layout="simple"] .entry-title { --theme-font-size: var(--fs-body); font-size: var(--fs-body); }
  body .entries[data-archive="default"][data-layout="simple"] .entry-excerpt { display: none; }
  body .ct-pagination .page-numbers { min-width: 40px; height: 40px; }
}
/* 04-toc.css */
.rt-prose :is(h2, h3)[id] { scroll-margin-top: calc(var(--rt-adminbar) + var(--scroll-margin-top-offset, var(--rt-header-h)) + 24px); }
.rt-prose :is(h2, h3)[id]:focus { outline: none; }
.rt-prose :is(h2, h3)[id]:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }


body .rt-toc :is(.rt-toc__list, .rt-toc__sub) { margin: 0; padding: 0; list-style: none; }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) li { margin: 0; padding: 0; }
body .rt-toc .rt-toc__list > li { border-bottom: 1px dashed rgba(0, 73, 46, .16); }
body .rt-toc .rt-toc__list > li:last-child { border-bottom: 0; }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) a { --theme-text-decoration: none; --theme-link-initial-color: var(--c-text); position: relative; display: block; padding: 10px 0 10px 16px; color: var(--c-text); font-family: var(--ff-sans); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: transparent; transition: background-color .2s; }
body .rt-toc .rt-toc__sub { margin: -4px 0 6px; }
body .rt-toc .rt-toc__sub a { padding-block: 6px; padding-left: 30px; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }
body .rt-toc .rt-toc__sub a::before { left: 14px; top: 8px; bottom: 8px; }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) a:hover { color: var(--c-primary); }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) a[aria-current="true"] { color: var(--c-brand); font-weight: 700; }
body .rt-toc :is(.rt-toc__list, .rt-toc__sub) a[aria-current="true"]::before { background: var(--c-accent); }


body .rt-toc__hint { margin: 12px 0 0; color: var(--c-muted); font-family: var(--ff-sans); font-size: var(--fs-xs); line-height: 1.7; }


body .rt-toc--inline { margin: 0 0 32px; border: 1px solid rgba(0, 73, 46, .14); border-radius: 12px; background: var(--c-tint); font-family: var(--ff-sans); }
body .rt-toc--inline + :is(h2, h3, h4) { margin-top: 0; }
body .rt-toc--inline .rt-toc__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; color: var(--c-brand); font-size: var(--fs-body); font-weight: 700; letter-spacing: .04em; list-style: none; cursor: pointer; }
body .rt-toc--inline .rt-toc__summary::-webkit-details-marker { display: none; }
body .rt-toc--inline .rt-toc__summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
body .rt-toc--inline[open] .rt-toc__summary::after { margin-top: 4px; transform: rotate(-135deg); }
body .rt-toc--inline .rt-toc__summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 12px; }
body .rt-toc--inline .rt-toc__nav { padding: 0 18px 10px; border-top: 1px solid rgba(0, 73, 46, .1); }

@media (min-width: 1000px) {
  
  body .rt-single[data-sidebar] .rt-toc--inline { display: none; }
  body [data-sidebar] > aside .ct-sidebar:has(> .ct-widget:last-child > .rt-toc) { height: 100%; }
  body .ct-sidebar .ct-widget:last-child:has(> .rt-toc) { position: sticky; top: calc(var(--rt-adminbar) + var(--scroll-margin-top-offset, var(--rt-header-h)) + 24px); max-height: calc(100vh - var(--rt-adminbar) - var(--scroll-margin-top-offset, var(--rt-header-h)) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 999.98px) {
  body .ct-sidebar .ct-widget:has(> .rt-toc) { display: none; }
  
  body .ct-sidebar .ct-widget:has(+ .ct-widget:last-child > .rt-toc) { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body .rt-toc a, body .rt-toc a::before, body .rt-toc--inline .rt-toc__summary::after { transition: none; }
}
