html {
    color-scheme: light;
}
html.theme-dark {
    color-scheme: dark;
}
input, select, textarea { max-width: 100%; }
input::placeholder, textarea::placeholder {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #111827;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
    background: #eef2f7;
}
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
html.theme-dark .theme-icon-moon { display: none; }
html.theme-dark .theme-icon-sun { display: block; }
html.theme-dark .theme-toggle {
    background: #18181b;
    border-color: #3f3f46;
    color: #f8fafc;
}
html.theme-dark .theme-toggle:hover {
    background: #27272a;
}
html.theme-dark body {
    background-color: #0b0f19 !important;
    color: #f3f4f6 !important;
}
html.theme-dark .card-glass {
    background: rgba(17, 24, 39, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
}

/* Light mode (default): remap the existing dark Tailwind utilities */
html:not(.theme-dark) body {
    background-color: #f4f7fb !important;
    color: #111827 !important;
}
html:not(.theme-dark) .card-glass {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

html:not(.theme-dark) main .text-white,
html:not(.theme-dark) footer .text-white,
html:not(.theme-dark) main .text-gray-200 {
    color: #111827 !important;
}
html:not(.theme-dark) main .text-gray-300,
html:not(.theme-dark) main .text-gray-400 {
    color: #4b5563 !important;
}
html:not(.theme-dark) .text-gray-500 {
    color: #6b7280 !important;
}
html:not(.theme-dark) main .text-cyan-400 {
    color: #0891b2 !important;
}
html:not(.theme-dark) footer a:hover,
html:not(.theme-dark) .hover\:text-gray-300:hover,
html:not(.theme-dark) main .hover\:text-white:hover {
    color: #111827 !important;
}

html:not(.theme-dark) main .bg-zinc-900,
html:not(.theme-dark) main .bg-zinc-900\/80,
html:not(.theme-dark) main .bg-zinc-900\/60,
html:not(.theme-dark) main .bg-zinc-900\/50,
html:not(.theme-dark) main .bg-zinc-900\/40 {
    background-color: #f3f4f6 !important;
}
html:not(.theme-dark) main .bg-zinc-800 {
    background-color: #e5e7eb !important;
}
html:not(.theme-dark) main .border-zinc-800,
html:not(.theme-dark) main .border-zinc-800\/80,
html:not(.theme-dark) main .border-zinc-800\/50,
html:not(.theme-dark) main .border-zinc-800\/40,
html:not(.theme-dark) main .border-zinc-700,
html:not(.theme-dark) main .border-zinc-700\/80,
html:not(.theme-dark) footer.border-t,
html:not(.theme-dark) .border-zinc-900 {
    border-color: #e5e7eb !important;
}

html:not(.theme-dark) main a.bg-white,
html:not(.theme-dark) main button.bg-white,
html:not(.theme-dark) main span.bg-white {
    background-color: #111827 !important;
    color: #ffffff !important;
}
html:not(.theme-dark) main a.bg-white:hover,
html:not(.theme-dark) main button.bg-white:hover {
    background-color: #1f2937 !important;
}
html:not(.theme-dark) main a.bg-zinc-900,
html:not(.theme-dark) main a.hover\:bg-zinc-800:hover {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

html:not(.theme-dark) main input,
html:not(.theme-dark) main select,
html:not(.theme-dark) main textarea {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

html:not(.theme-dark) .from-zinc-800 {
    --tw-gradient-from: #e5e7eb var(--tw-gradient-from-position);
}
html:not(.theme-dark) .from-zinc-900,
html:not(.theme-dark) .via-zinc-900,
html:not(.theme-dark) .to-zinc-900,
html:not(.theme-dark) .to-zinc-950 {
    --tw-gradient-from: #eef2f7 var(--tw-gradient-from-position);
    --tw-gradient-to: #f8fafc var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), #f3f4f6, var(--tw-gradient-to);
}
html:not(.theme-dark) .from-cyan-950\/70,
html:not(.theme-dark) .from-cyan-950\/60,
html:not(.theme-dark) .from-cyan-950\/40 {
    --tw-gradient-from: #ecfeff var(--tw-gradient-from-position);
}
html:not(.theme-dark) .to-blue-950\/40 {
    --tw-gradient-to: #eff6ff var(--tw-gradient-to-position);
}
html:not(.theme-dark) .via-zinc-900\/30 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(15, 23, 42, 0.06), var(--tw-gradient-to);
}

#category-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 4px 2px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #67e8f9 transparent;
    border: 0;
    background: transparent;
    box-shadow: none;
}
#category-bar::-webkit-scrollbar { height: 5px; }
#category-bar::-webkit-scrollbar-thumb {
    background: #67e8f9;
    border-radius: 999px;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    min-width: 8.75rem;
    min-height: 44px;
    padding: 10px 16px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid #3f3f46;
    background: #18181b;
    color: #d4d4d8;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.category-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px currentColor;
    flex: none;
}
.category-pill:hover {
    border-color: #06b6d4;
    color: #fff;
}
.category-pill.active {
    background: #06b6d4 !important;
    color: #fff !important;
    border-color: #06b6d4 !important;
    font-weight: 700;
}
.category-pill.active::before {
    background: #fff;
    box-shadow: none;
}
html:not(.theme-dark) .category-pill {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
html:not(.theme-dark) .category-pill:hover {
    border-color: #0891b2 !important;
    color: #0e7490 !important;
}
html:not(.theme-dark) .category-pill.active,
html:not(.theme-dark) .category-pill.active:hover {
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #0891b2 !important;
}

/* Balance heading lines. Gradient subtitles stay normal wrap so they don't collapse into a narrow column. */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
.gradient-brand {
    text-wrap: wrap;
    max-width: 100%;
    display: inline-block;
    line-height: 1.35;
    padding: 0.1em 0.02em 0.35em;
    margin-bottom: -0.2em;
    overflow: visible;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* Flex + items-center shrink-wraps the hero h1; keep full width so mobile type matches the products page. */
main > section.flex.flex-col.items-center > h1 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    line-height: 1.35;
}
main > section.flex.flex-col.items-center > h1 .gradient-brand {
    vertical-align: baseline;
}
/* Visual editor sometimes bakes computed font-size (e.g. 4.5rem) into nested spans — force inherit from the h1 utilities. */
main > section.flex.flex-col.items-center > h1 * {
    font-size: inherit !important;
    letter-spacing: inherit !important;
}
/* Blog 文章標題：不縮排、靠左對齊（覆蓋 balance 造成的視覺內縮） */
article.card-glass > h1,
.article-title,
.blog-title,
.card-glass h3,
.card-glass h4 {
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left;
    text-wrap: wrap;
    width: 100%;
    max-width: none;
}
p, li, summary, blockquote, figcaption, td, th, label {
    text-wrap: pretty;
}

/* Phone: English footer labels are longer than Chinese, so keep them in two even columns */
.app-badge,
.pv-badge,
.cd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f2ec;
    border-radius: 22%;
    overflow: hidden;
    flex: none;
    line-height: 0;
    vertical-align: middle;
}
.app-badge {
    background: transparent;
}
.app-badge img,
.pv-badge img,
.cd-badge img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}
.app-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-badge-xs,
.pv-badge-xs,
.cd-badge-xs {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    margin-right: 0.4rem;
    vertical-align: -0.2rem;
}
.cd-badge {
    background: #1a0b2e;
}

/* Nav must stay usable even if JS (or a debugger pause) never runs */
header nav > a img {
    height: 23px;
    width: auto;
}
@media (min-width: 640px) {
    header nav > a img {
        height: 35px;
    }
}
header nav > div:not(.nav-tools):not(#mobile-menu) {
    display: none;
}
@media (min-width: 1024px) {
    header nav > div:not(.nav-tools):not(#mobile-menu) {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    #mobile-menu,
    #mobile-menu-btn {
        display: none !important;
    }
}
#mobile-menu {
    display: none;
}
#mobile-menu.flex {
    display: flex;
}
header nav .nav-tools > a.hidden {
    display: none;
}
@media (min-width: 1024px) {
    header nav .nav-tools > a.hidden {
        display: flex;
        align-items: center;
    }
}
.nav-group { position: relative; }
.nav-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
}
.nav-caret { font-size: 0.7em; opacity: .55; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0.9rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    z-index: 60;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { display: block; }
html.theme-dark .nav-dropdown { background: #111827; border-color: rgba(255, 255, 255, .1); }
html.theme-dark .nav-dropdown a { color: #e5e7eb; }
html.theme-dark .nav-dropdown a:hover { background: rgba(255, 255, 255, .06); }

@media (max-width: 1023px) {
    header nav {
        padding-left: 0.9rem;
        padding-right: 0.7rem;
    }
    header nav .nav-tools {
        gap: 0.2rem;
    }
    /* Language switch lives in the hamburger menu on phone/tablet */
    header nav .nav-lang {
        display: none !important;
    }
    header nav #mobile-menu-btn {
        margin-left: 0.55rem;
        padding: 0.3rem;
    }
}

/* Article / nested-page back link — sits inside content card, aligned with other pages */
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #101828;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.page-back:hover {
    background: #f8fafc;
    border-color: #98a2b3;
    color: #101828;
    text-decoration: none;
}
html.theme-dark .page-back {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}
html.theme-dark .page-back:hover {
    background: #1f2937;
    color: #ffffff;
}

@media (max-width: 639px) {
    footer .footer-links {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 1rem;
    }
}

/* ===================================================
   Loopvity Unified Content Typography (.prose-loopvity)
   =================================================== */
.prose-loopvity {
  color: #d1d5db; /* text-gray-300 */
  font-size: 1rem;
  line-height: 1.8;
  word-break: break-word;
}

/* 標題層級規範 */
.prose-loopvity h1,
.prose-loopvity h2,
.prose-loopvity h3,
.prose-loopvity h4 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}
html:not(.theme-dark) .prose-loopvity h1,
html:not(.theme-dark) .prose-loopvity h2,
html:not(.theme-dark) .prose-loopvity h3,
html:not(.theme-dark) .prose-loopvity h4 {
  color: #111827;
}

.prose-loopvity h1 { font-size: 2.25rem; }
.prose-loopvity h2 {
  font-size: 1.5rem;
  border-top: 1px solid rgba(39, 39, 42, 0.7);
  padding-top: 1.75rem;
}
html:not(.theme-dark) .prose-loopvity h2 {
  border-top-color: rgba(229, 231, 235, 1);
}
.prose-loopvity h3 { font-size: 1.25rem; }
.prose-loopvity h4 { font-size: 1.1rem; }

/* 首個標題不需要頂部分隔線 */
.prose-loopvity > h2:first-child,
.prose-loopvity > *:first-child > h2:first-child,
.prose-loopvity > h1:first-child,
.prose-loopvity > *:first-child > h1:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* 內文與段落 */
.prose-loopvity p {
  color: #9ca3af; /* text-gray-400 */
  margin-bottom: 1.25rem;
}
html:not(.theme-dark) .prose-loopvity p {
  color: #4b5563;
}

.prose-loopvity strong {
  color: #ffffff;
  font-weight: 700;
}
html:not(.theme-dark) .prose-loopvity strong {
  color: #111827;
}

.prose-loopvity a {
  color: #06b6d4; /* cyan-500 */
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.prose-loopvity a:hover {
  color: #22d3ee;
}
/* CTA 按鈕連結：不套用內文底線樣式 */
.prose-loopvity a.rounded-full,
.prose-loopvity a.bg-white {
  text-decoration: none;
  text-underline-offset: unset;
}

/* 清單樣式 */
.prose-loopvity ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
}
.prose-loopvity ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
}
html:not(.theme-dark) .prose-loopvity ul,
html:not(.theme-dark) .prose-loopvity ol {
  color: #4b5563;
}
.prose-loopvity li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* 引用區塊 */
.prose-loopvity blockquote {
  border-left: 4px solid #06b6d4;
  background: rgba(6, 182, 212, 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #d1d5db;
  margin: 1.75rem 0;
  font-style: normal;
}
html:not(.theme-dark) .prose-loopvity blockquote {
  color: #374151;
  background: rgba(6, 182, 212, 0.08);
}

/* 行內代碼與代碼區塊 */
.prose-loopvity code {
  color: #22d3ee;
  background: #27272a;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
}
html:not(.theme-dark) .prose-loopvity code {
  color: #0891b2;
  background: #f3f4f6;
}
.prose-loopvity pre {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border-radius: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose-loopvity pre code {
  background: transparent;
  padding: 0;
  color: #f3f4f6;
}

/* 多媒體 */
.prose-loopvity img,
.prose-loopvity video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.prose-loopvity img[data-align="left"],
.prose-loopvity a.tiptap-image-link[data-align="left"] {
  margin-left: 0;
  margin-right: auto;
}
.prose-loopvity img[data-align="center"],
.prose-loopvity a.tiptap-image-link[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
}
.prose-loopvity img[data-align="right"],
.prose-loopvity a.tiptap-image-link[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}
.prose-loopvity a.tiptap-image-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}
.prose-loopvity a.tiptap-image-link img {
  margin: 0;
  width: 100%;
}

/* 響應式表格 */
.prose-loopvity .tableWrapper {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
}
.prose-loopvity table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}
.prose-loopvity .tableWrapper > table {
  margin: 0;
}
.prose-loopvity th,
.prose-loopvity td {
  border: 1px solid rgba(63, 63, 70, 0.6);
  padding: 0.75rem 1rem;
  text-align: left;
  width: auto !important;
  min-width: 6rem;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.prose-loopvity col {
  width: auto !important;
}
html:not(.theme-dark) .prose-loopvity th,
html:not(.theme-dark) .prose-loopvity td {
  border-color: rgba(229, 231, 235, 1);
}
.prose-loopvity th {
  background: rgba(39, 39, 42, 0.5);
  color: #ffffff;
  font-weight: 700;
}
html:not(.theme-dark) .prose-loopvity th {
  background: #f9fafb;
  color: #111827;
}
.prose-loopvity tr:nth-child(even) {
  background: rgba(24, 24, 27, 0.35);
}
html:not(.theme-dark) .prose-loopvity tr:nth-child(even) {
  background: #f9fafb;
}

.prose-loopvity hr {
  border: 0;
  border-top: 1px solid rgba(39, 39, 42, 0.7);
  margin: 2rem 0;
}
html:not(.theme-dark) .prose-loopvity hr {
  border-top-color: rgba(229, 231, 235, 1);
}

/* 內容內的強調卡片（手寫文章共用） */
.prose-loopvity .prose-card {
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(39, 39, 42, 1);
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1rem 0;
}
html:not(.theme-dark) .prose-loopvity .prose-card {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.prose-loopvity .prose-card > :first-child {
  margin-top: 0;
}
.prose-loopvity .prose-card > :last-child {
  margin-bottom: 0;
}
.prose-loopvity .prose-card h2,
.prose-loopvity .prose-card h3,
.prose-loopvity .prose-card h4 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* 法律／政策頁的強調小標題 */
.prose-loopvity h2.prose-accent {
  color: #22d3ee;
  border-top: 0;
  padding-top: 0;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
}
html:not(.theme-dark) .prose-loopvity h2.prose-accent {
  color: #0891b2;
}

.app-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: auto;
  max-width: max-content;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #1e3a8a !important;
  background: #dbeafe !important;
  border: 1px solid #93c5fd;
}
/* Unified FAQ (home + contact + Admin TipTap block) */
.faq-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}
.faq-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}
details.faq-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}
.faq-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  padding-right: 1.15rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1f2937;
  outline: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-q { min-width: 0; flex: 1 1 auto; }
.faq-chevron {
  flex: none;
  margin-top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0891b2;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
details.faq-item[open] .faq-summary { color: #0e7490; }
details.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #6b7280;
}
html.theme-dark .faq-heading { color: #f3f4f6; }
html.theme-dark .faq-lead { color: #9ca3af; }
html.theme-dark details.faq-item {
  background: rgba(24, 24, 27, 0.65);
  border-color: #27272a;
}
html.theme-dark .faq-summary { color: #e5e7eb; }
html.theme-dark details.faq-item[open] .faq-summary { color: #22d3ee; }
html.theme-dark .faq-a {
  border-top-color: rgba(39, 39, 42, 0.9);
  color: #9ca3af;
}
/* Hidden FAQ items: admin can toggle; frontend stays in sync via data-faq-hidden */
details.faq-item[data-faq-hidden="1"] { display: none !important; }

/* Homepage about band — less stiff than plain centered paragraphs */
.about-editorial {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
  text-align: center;
}
.about-editorial .about-kicker {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #0891b2;
}
.about-editorial h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.about-statement {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4b5563;
}
.about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
  text-align: left;
}
.about-steps div,
.about-steps article {
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.about-steps strong,
.about-steps h3 { display: block; margin: 0 0 0.45rem; font-size: 1rem; font-weight: 800; }
.about-steps span,
.about-steps p { display: block; margin: 0; font-size: 0.9rem; line-height: 1.65; color: #6b7280; }
html.theme-dark .about-statement { color: #d1d5db; }
html.theme-dark .about-steps div,
html.theme-dark .about-steps article { background: rgba(17,24,39,.7); border-color: rgba(255,255,255,.08); }
@media (max-width: 640px) {
  .about-steps { grid-template-columns: 1fr; }
}
.about-band-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.about-band-kicker {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0891b2;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(8, 145, 178, 0.18);
}
.about-band-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: #111827;
}
html.theme-dark .about-band-title { color: #f3f4f6; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  text-align: left;
}
html.theme-dark .about-card {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}
.about-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: rgba(8, 145, 178, 0.12);
}
.about-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}
html.theme-dark .about-card h3 { color: #f3f4f6; }
.about-lead,
.about-copy p {
  margin: 0.85rem auto 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  text-align: left;
}
.about-lead { text-align: center; margin-top: 0.9rem; }
.about-copy { margin-top: 1.35rem; display: grid; gap: 0.85rem; }
.about-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6b7280;
}
html.theme-dark .about-card p { color: #9ca3af; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.app-status.is-live {
  color: #14532d !important;
  background: #bbf7d0 !important;
  border-color: #4ade80;
  animation: app-status-pulse 1.6s ease-in-out infinite;
}
.app-status.is-soon { color: #1e3a8a !important; background: #dbeafe !important; border-color: #93c5fd; }
.app-status.is-dev { color: #5b21b6 !important; background: #ede9fe !important; border-color: #c4b5fd; }
.app-status.is-beta { color: #92400e !important; background: #fef3c7 !important; border-color: #fcd34d; }
.app-status.is-hold { color: #344054 !important; background: #f2f4f7 !important; border-color: #d0d5dd; }
.app-status.is-custom { color: #344054 !important; background: #f2f4f7 !important; border-color: #d0d5dd; }
@keyframes app-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.store-badge-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-badge-link { display: inline-flex; line-height: 0; flex: none; flex-shrink: 0; }
.store-badge-link img {
  height: 40px !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.store-badge-link img.badge-apple { height: 40px !important; width: auto !important; }
.store-badge-link img.badge-play { height: 40px !important; width: auto !important; }
.home-app-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 1rem;
  min-width: 0;
}
.home-blurb {
  min-height: 4.2em;
}
.home-features { min-height: 46px; width: 100%; }
.home-features > div,
.home-features .feature-chip {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.home-features.features-align-left > div,
.home-features.features-align-left .feature-chip { justify-content: flex-start; text-align: left; }
.home-features.features-align-center > div,
.home-features.features-align-center .feature-chip { justify-content: center; text-align: center; }
.home-features.features-align-right > div,
.home-features.features-align-right .feature-chip { justify-content: flex-end; text-align: right; }
.feature-list.grid { display: grid; width: 100%; }
.feature-list .feature-chip {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list.features-align-left .feature-chip { justify-content: flex-start; text-align: left; }
.feature-list.features-align-center .feature-chip { justify-content: center; text-align: center; }
.feature-list.features-align-right .feature-chip { justify-content: flex-end; text-align: right; }
.platform-pill {
  text-transform: none !important;
  letter-spacing: 0.01em;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.home-teaser-row {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  overflow: visible;
}
.home-teaser-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  min-width: 0;
  height: 3.85rem;
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  box-sizing: border-box;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.home-teaser-name {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.home-teaser-chip:hover { border-color: rgba(8, 145, 178, 0.45); }
.home-teaser-chip.is-static { cursor: default; }
.home-teaser-chip.is-static:hover { border-color: rgba(15, 23, 42, 0.08); }
html.theme-dark .home-teaser-chip.is-static:hover { border-color: rgba(255, 255, 255, 0.08); }
html.theme-dark .home-teaser-chip {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}
@media (max-width: 720px) {
  .home-teaser-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-channels > .card-glass,
.contact-channels > [data-metric] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-channels a,
.contact-channels .rounded-full {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  line-height: 1.35;
}
.home-app-card,
.cms-release-card,
.card-glass:has(.home-cta-row) {
  overflow: visible;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.home-cta-stores {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
}
.home-cta-row .home-detail-btn,
.home-cta-row .detail-pill {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-self: end;
  margin-left: auto;
  overflow: visible;
}
.matrix-foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.matrix-foot .app-status { flex: none; margin-right: auto; }
.cms-release-card .home-cta-row,
.matrix-foot .home-cta-row {
  margin-top: 0;
  width: auto;
  flex: none;
  margin-left: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}
.cms-release-card .home-cta-row { width: 100%; margin-left: 0; justify-content: flex-end; }
.cms-release-card .home-cta-stores { margin-left: auto; }
.cms-release-card .release-kicker {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cms-release-card .release-kicker .app-status {
  margin-left: auto;
  flex: none;
}
.matrix-foot .home-cta-stores,
.cms-release-card .home-cta-stores { justify-content: flex-end; width: auto; flex: none; flex-wrap: nowrap; }
.matrix-foot .store-badge-row,
.cms-release-card .store-badge-row { flex-wrap: nowrap; justify-content: flex-end; }
.cms-release-card .release-layout { align-items: flex-start; }
.cms-release-card .home-cta-row .home-detail-btn,
.cms-release-card .home-cta-row .detail-pill,
.matrix-foot .home-cta-row .home-detail-btn,
.matrix-foot .home-cta-row .detail-pill {
  margin-left: 0;
  align-self: center;
  width: auto;
}
.matrix-foot .app-status { width: auto; max-width: 100%; justify-self: start; }
.home-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}
.home-detail-btn:hover { background: #1f2937; }
html.theme-dark .home-detail-btn { background: #fff; color: #111827; }
html.theme-dark .home-detail-btn:hover { background: #e5e7eb; }
a.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
html:not(.theme-dark) main a.detail-pill,
html:not(.theme-dark) main button.detail-pill {
  background-color: #111827 !important;
  color: #fff !important;
}
a.detail-pill:hover,
html:not(.theme-dark) main a.detail-pill:hover,
html:not(.theme-dark) main button.detail-pill:hover,
html.theme-dark a.detail-pill:hover {
  background-color: #22d3ee !important;
  color: #000 !important;
}
.text-zinc-950 { color: #09090b; }
.hover\:bg-cyan-400:hover { background-color: #22d3ee; }
.hover\:text-black:hover { color: #000; }
@media (min-width: 768px) {
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.metrics-grid { display: grid; gap: 1.5rem; text-align: center; }
.metrics-grid.metrics-n-1 { grid-template-columns: minmax(0, 1fr); }
.metrics-grid.metrics-n-2,
.metrics-grid.metrics-n-4,
.metrics-grid.metrics-n-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics-grid.metrics-n-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .metrics-grid.metrics-n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics-grid.metrics-n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metrics-grid.metrics-n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.metrics-grid.metrics-n-many {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.metrics-grid.metrics-n-many > * { flex: 1 1 140px; max-width: 220px; }
html[data-page-gap] main section.mb-16,
html[data-page-gap] main section.mb-20,
html[data-page-gap] main .cms-release {
  margin-bottom: var(--section-pad, 2.5rem) !important;
}
.wa-icon { width: 18px; height: 18px; flex: none; display: block; }
.app-badge.icon-square { border-radius: 4px; }
.app-badge.icon-rounded { border-radius: 22%; }
.app-badge.icon-circle { border-radius: 50%; }
html[data-page-gap] main[class*="pt-"],
html[data-page-gap] main[class*="pb-"],
html[data-page-gap] main > section {
  padding-bottom: var(--section-pad, 28px) !important;
}
html[data-page-gap] main > section {
  padding-top: var(--section-pad, 28px) !important;
}
html[data-page-gap] main {
  padding-top: var(--page-top, 48px) !important;
}
html[data-page-gap] main > section:first-of-type {
  padding-top: 0 !important;
}
html[data-page-gap] main > section.cms-release {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: var(--section-pad, 28px) !important;
}
html[data-page-gap] main > section.cms-release + section {
  padding-top: 0 !important;
}
@media (max-width: 1023px) {
  .home-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .cms-release-card .home-cta-row,
  .matrix-foot,
  .matrix-foot .home-cta-row,
  .matrix-foot .home-cta-stores,
  .cms-release-card .home-cta-stores {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
  .matrix-foot { width: 100%; justify-content: flex-start; }
  .matrix-foot .home-cta-row { margin-left: auto; }
  .cms-release-card .home-cta-row { width: 100%; margin-left: 0; justify-content: flex-end; }
  .cms-release-card .home-cta-stores { margin-left: auto; }
  .home-cta-row .home-detail-btn,
  .home-cta-row .detail-pill {
    margin-left: 0;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow: visible;
  }
  .home-app-card .home-cta-row .home-detail-btn,
  .cms-release-card .home-cta-row .home-detail-btn,
  .home-app-card .home-cta-row .detail-pill,
  .cms-release-card .home-cta-row .detail-pill {
    align-self: center;
  }
  .matrix-foot .home-cta-row,
  .matrix-foot .home-cta-stores {
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
  .matrix-foot .home-cta-row .home-detail-btn,
  .matrix-foot .home-cta-row .detail-pill {
    align-self: center;
    width: auto;
  }
  .home-cta-stores .store-badge-link,
  .home-cta-stores .store-badge-link img,
  .home-cta-stores .store-badge-link img.badge-apple,
  .home-cta-stores .store-badge-link img.badge-play {
    max-width: 100%;
  }
  .home-cta-stores .store-badge-link img,
  .home-cta-stores .store-badge-link img.badge-apple,
  .home-cta-stores .store-badge-link img.badge-play {
    height: 40px !important;
    width: auto !important;
  }
}
@media (max-width: 767px) {
  /* Phone: card icon and status chip share one smaller size. Desktop stays 48px / 40px. */
  .app-badge.w-12.h-12 {
    width: 36px;
    height: 36px;
  }
  .app-status {
    height: 36px;
    padding: 0 10px;
  }
  .card-glass:has(.matrix-foot) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .matrix-foot,
  .cms-release-card .home-cta-row {
    gap: 6px;
  }
  .matrix-foot .home-cta-row,
  .matrix-foot .home-cta-stores,
  .cms-release-card .home-cta-stores {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }
  .matrix-foot .store-badge-row,
  .cms-release-card .store-badge-row {
    gap: 6px;
    min-width: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .matrix-foot .home-cta-stores .store-badge-link,
  .cms-release-card .home-cta-stores .store-badge-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: 108px;
  }
  .matrix-foot .home-cta-stores .store-badge-link img,
  .matrix-foot .home-cta-stores .store-badge-link img.badge-apple,
  .matrix-foot .home-cta-stores .store-badge-link img.badge-play,
  .cms-release-card .home-cta-stores .store-badge-link img,
  .cms-release-card .home-cta-stores .store-badge-link img.badge-apple,
  .cms-release-card .home-cta-stores .store-badge-link img.badge-play {
    width: 100% !important;
    height: auto !important;
    max-height: 36px;
  }
  .cms-release .release-copy {
    width: 100%;
    text-align: center;
  }
  .cms-release .release-copy h3,
  .cms-release .release-blurb {
    text-align: center;
    text-wrap: balance;
  }
  .cms-release .release-blurb {
    margin-left: auto;
    margin-right: auto;
    max-width: 36em;
  }
  .cms-release .release-kicker { justify-content: center; }
  /* Latest release: same system as desktop — status top-right, stores bottom-right like All Apps. */
  .cms-release-card .release-kicker {
    justify-content: space-between;
    width: 100%;
  }
  .cms-release-card .release-kicker .app-status {
    display: inline-flex;
    margin-left: auto;
  }
  .cms-release-card .home-cta-row {
    justify-content: flex-end;
    width: 100%;
  }
  .cms-release-card .home-cta-stores {
    margin-left: auto;
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex: 0 1 auto;
  }
  .cms-release-card .store-badge-row {
    justify-content: flex-end;
    width: auto;
  }
  .cms-release-card .home-cta-stores .store-badge-link {
    flex: none;
    max-width: none;
  }
  .cms-release-card .home-cta-stores .store-badge-link img,
  .cms-release-card .home-cta-stores .store-badge-link img.badge-apple,
  .cms-release-card .home-cta-stores .store-badge-link img.badge-play {
    width: auto !important;
    height: 36px !important;
    max-height: 36px;
  }
  .cms-release .release-copy h3 { font-size: 1.7rem; line-height: 1.25; }
}
.card-glass:has(.menu-field) { overflow: visible; }
.menu-field { position: relative; overflow: visible; }
.menu-face {
  display: flex; align-items: center; width: 100%; margin: 0; text-align: left; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5 10 12.5 14.5 7.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
  padding-right: 44px !important; box-shadow: none; color: #111827;
}
.menu-face.is-placeholder { color: #9ca3af !important; }
#contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5 10 12.5 14.5 7.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
  padding-right: 44px !important;
}
.menu-field.is-open .menu-face { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .15); }
.menu-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 10px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14); max-height: 280px; overflow: auto;
}
.menu-list button {
  display: block; width: 100%; margin: 0; padding: 10px 14px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; font: 600 14px/1.4 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  text-align: left; cursor: pointer;
}
.menu-list button:hover, .menu-list button:focus { background: #f1f5f9; outline: none; }
.menu-list button[aria-selected="true"] { background: #ecfeff; color: #0e7490; }
.menu-native {
  position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
  margin: 0 !important; opacity: 0 !important; pointer-events: none !important; border: 0 !important;
}
html.theme-dark .menu-face { color: #f3f4f6; }
html.theme-dark .menu-face.is-placeholder { color: #9ca3af !important; }
html.theme-dark .menu-list { background: #111827; color: #f3f4f6; border-color: #374151; }
html.theme-dark .menu-list button:hover, html.theme-dark .menu-list button:focus { background: rgba(255,255,255,.06); }
html.theme-dark .menu-list button[aria-selected="true"] { background: rgba(34, 211, 238, .12); color: #67e8f9; }
html[data-page-gap] main > section > .text-center,
html[data-page-gap] main > .text-center,
html[data-page-gap] main > .mb-12,
html[data-page-gap] #category-bar {
  margin-bottom: var(--block-gap, 16px) !important;
}

/* Home latest posts + Blog cards: equal height, clamped text, fixed CTA. */
.home-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  text-decoration: none;
}
.home-post-title,
.blog-post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: calc(1.375em * 2);
}
.home-post-excerpt,
.blog-post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0;
  min-height: calc(1.625em * 3);
}
.home-post-more {
  margin-top: auto;
  padding-top: 1rem;
}
.blog-post-card {
  height: 100%;
  min-height: 0;
}
.blog-post-body {
  min-height: 0;
}
.blog-post-excerpt {
  margin-bottom: 1.15rem;
}
.blog-post-more {
  margin-top: auto;
  padding-top: 1.15rem;
  padding-bottom: 0.15rem;
}
#article-grid {
  align-items: stretch;
}
#article-grid > .blog-post-card {
  height: 100%;
}
