/* Lyrica case pages: reuse the homepage fonts, tokens, navigation and footer. */
.lyrica-cases-page { background: #f7f9fc; font-family: "Noto Sans TC", "Lyrica TC", "PingFang TC", sans-serif; }
.lyrica-cases-page .home-title, .article-title, .case-contact h2 { font-family: "AISEO Display", "Noto Sans TC", "Lyrica TC", "PingFang TC", sans-serif; }
.article-body [style*="font-family"] { font-family: "Noto Sans TC", "Lyrica TC", "PingFang TC", sans-serif !important; }
.lyrica-cases-page .home-header { position: sticky; top: 0; background: var(--navy); }
.lyrica-cases-page .home-header-inner { height: 96px; }
.lyrica-cases-page .home-footer { background: #fff; border-top: 1px solid var(--line); }
.cases-main .home-wrap { max-width: 1320px; }
.case-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: 3rem; color: var(--muted); font-size: .95rem; }
.case-breadcrumb a:hover { color: var(--blue); }
.cases-hero { padding: 2rem 0 3.5rem; background: linear-gradient(135deg, #fff 10%, #edf5ff 100%); }
.cases-hero .home-kicker { color: #b74300; font-size: 1rem; }
.cases-hero .home-title { font-size: clamp(2.35rem, 4.1vw, 4.25rem); line-height: 1.3; }
.cases-hero .home-lead { max-width: 34em; margin-top: 1.7rem; font-size: clamp(1.125rem, 1.4vw, 1.35rem); }
.cases-list { padding: 2.5rem 0 5rem; }
.cases-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem; }
.case-filters { display: flex; flex-wrap: wrap; gap: .65rem; }
.case-filter { padding: .65rem 1.1rem; min-height: 44px; border: 1px solid #d6e0ed; border-radius: 99px; background: #fff; font-size: 1rem !important; }
.case-filter:hover { border-color: var(--blue); }
.case-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cases-count { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.no-js .case-filters { display: none; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.case-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 1.6rem; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.case-card[hidden] { display: none; }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #07153d12; }
.case-card-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #eaf1fa; }
.case-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.case-card:hover .case-card-cover img { transform: scale(1.035); }
.case-card-body { display: flex; flex-direction: column; align-items: start; padding: 1.5rem; }
.case-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; min-height: 28px; font-size: .8rem; color: var(--muted); }
.case-category { color: #0845af; border-radius: 99px; padding: .2rem .6rem; background: #edf4ff; }
.case-card h2 { margin: 1rem 0 !important; font-size: clamp(1.25rem, 1.65vw, 1.5rem); font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.case-card-body > p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem !important; }
.case-card-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); color: #b74300; font-size: 1rem; font-weight: 700; }
.case-card-link > span { font-size: 1.5rem; }
.case-empty { text-align: center; padding: 3rem; color: var(--muted); }
.case-contact { padding: 3.5rem 0; background: #eaf2ff; }
.case-contact .home-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.case-contact .home-kicker { font-size: 1rem; margin-bottom: .75rem !important; color: #526b92; }
.case-contact h2 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); line-height: 1.4; }
.case-contact p:not(.home-kicker) { color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.case-contact .home-button { flex-shrink: 0; font-size: 1.125rem; }
.article-hero { padding: 2rem 0 3rem; background: linear-gradient(135deg, #fff, #edf5ff); }
.article-hero .home-wrap { max-width: 1160px; }
.article-kicker { color: #b74300; font-size: 1rem; font-weight: 700; margin-bottom: .65rem !important; }
.article-meta { color: var(--muted); font-size: .95rem; }
.article-title { max-width: 27em; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.45; letter-spacing: -.025em; margin: 1rem 0 1.25rem !important; overflow-wrap: anywhere; }
.article-lead { max-width: 44em; color: var(--muted); font-size: clamp(1.125rem, 1.5vw, 1.35rem); line-height: 1.85; }
.article-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.7rem; font-size: .9rem; }
.author-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: contain; }
.article-author > span:last-child { display: grid; gap: .1rem; }
.article-author > span:last-child > span { color: var(--muted); font-size: .8rem; }
.article-cover { margin: 2.5rem 0 0; padding: 0; border-radius: 1.75rem; overflow: hidden; background: #eaf1fa; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.article-shell { max-width: 1160px !important; display: grid; grid-template-columns: minmax(0, 1fr) 275px; align-items: start; gap: clamp(2rem, 4vw, 4rem); padding-block: 3rem; }
.article-body { min-width: 0; font-size: 1.125rem; line-height: 1.95; overflow-wrap: anywhere; color: #24365c; }
.article-body > :first-child { margin-top: 0 !important; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { color: var(--ink); line-height: 1.6; scroll-margin-top: 120px; }
.article-body h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.5rem, 2vw, 1.85rem); }
.article-body h3 { margin: 2rem 0 .75rem; font-size: 1.35rem; }
.article-body h4 { margin: 1.5rem 0 .6rem; font-size: 1.15rem; }
.article-body p { margin: 1rem 0; }
.article-body ul, .article-body ol { padding-left: 1.6em; margin: 1rem 0; }
.article-body li { margin: .45rem 0; }
.article-body a { color: #0845af; text-decoration: underline; text-underline-offset: .2em; }
.article-body img, .article-body video, .article-body iframe { max-width: 100% !important; }
.article-body img { height: auto !important; border-radius: 1rem; margin-block: 1.5rem; }
.article-body figure { max-width: 100%; margin: 1.5rem 0; }
.article-body figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.article-body blockquote { margin: 1.75rem 0; padding: 1.2rem 1.5rem; background: #edf4ff; border-left: 4px solid var(--blue); border-radius: 0 1rem 1rem 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; margin: 1.75rem 0; background: #fff; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; line-height: 1.7; }
.table-scroll th, .table-scroll td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { color: var(--ink); background: #edf4ff; }
.table-scroll tr:last-child td { border-bottom: 0; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #edf4ff; border-radius: 1rem; }
.article-side { position: sticky; top: 120px; display: grid; gap: 1.5rem; min-width: 0; }
.article-side-card { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 1.4rem; }
.article-side-card h2 { font-size: 1.15rem; line-height: 1.6; margin-bottom: 1rem; }
.article-side-card > a:not([class]) { display: block; padding: .5rem 0; font-size: .95rem; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.article-side-card > a:not([class]):hover { color: var(--blue); }
.article-cta-card { background: var(--navy); color: #fff; border: 0; }
.article-cta-kicker { font-size: .8rem; color: #aee5ff; }
.article-cta-card h2 { margin: .8rem 0; font-size: 1.5rem; }
.article-cta-card p { color: #c5d6f5; font-size: .95rem; margin-bottom: 1.4rem; }
.article-cta-primary, .article-cta-secondary { display: block; padding: .85rem .75rem; text-align: center; border-radius: 99px; font-size: .95rem; font-weight: 700; }
.article-cta-primary { background: #f25c00; color: #fff; }
.article-cta-secondary { margin-top: .7rem; border: 1px solid #ffffff70; }
.case-back { max-width: 1160px !important; padding: 0 0 3.5rem; }
.case-back a { color: #0845af; }
@media (max-width: 1100px) {
  .lyrica-cases-page .home-header-inner { height: 88px; }
  .lyrica-cases-page .home-nav { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .no-js .lyrica-cases-page .home-header { position: relative; }
  .no-js .lyrica-cases-page .home-header-inner { height: auto; flex-wrap: wrap; padding-block: 1.25rem; }
  .no-js .lyrica-cases-page .home-nav { display: flex; position: static; width: 100%; max-height: none; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; box-shadow: none; }
  .no-js .lyrica-cases-page .home-menu-toggle, .no-js .case-filters { display: none; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .article-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-contact .home-wrap { align-items: start; flex-direction: column; }
}
@media (max-width: 767px) {
  .lyrica-cases-page .home-header-inner { height: 80px; }
  .cases-hero, .article-hero { padding-top: 1.3rem; }
  .case-breadcrumb { margin-bottom: 2rem; font-size: .85rem; }
  .cases-hero { padding-bottom: 2.5rem; }
  .cases-hero .home-title { font-size: 2.2rem; }
  .cases-list { padding-block: 1.75rem 3rem; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .case-card-body { padding: 1.4rem; }
  .case-card h2 { font-size: 1.35rem; }
  .case-contact { padding-block: 2.5rem; }
  .article-title { font-size: 2rem; }
  .article-cover { margin-top: 2rem; border-radius: 1.2rem; }
  .article-shell { padding-block: 2rem; }
  .article-side { grid-template-columns: minmax(0, 1fr); }
  .article-side-card { padding: 1.4rem; }
  .case-back { padding-bottom: 2.5rem; }
}
