/* Standalone module presentation, coordinated with the Tainan Newsroom theme. */
.ta-page { --ta-ink: #1d1d1f; --ta-muted: #6e6e73; --ta-blue: #0066cc; color: var(--ta-ink); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.ta-page *, .ta-page *::before, .ta-page *::after { box-sizing: border-box; }
.tn-main:has(.ta-page) .block-page-title-block, .tn-main:has(.ta-page) .region--breadcrumb { display: none; }
.ta-page a { color: var(--ta-blue); text-decoration: none; }
.ta-page a:hover { text-decoration: underline; }
.ta-page a:focus-visible, .ta-page button:focus-visible, .ta-page input:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
.ta-intro { padding: 76px 0 62px; }
.ta-page .ta-eyebrow { color: var(--ta-muted); font-size: 11px; font-weight: 650; letter-spacing: .17em; margin: 0 0 18px; line-height: 1.5; }
.ta-intro h1 { margin: 0; font-size: clamp(32px, 4.3vw, 58px); font-weight: 750; line-height: 1.3; letter-spacing: 0; }
.ta-intro > p:last-child { font-size: 18px; color: var(--ta-muted); line-height: 1.8; margin: 22px 0 0; }
.ta-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.ta-toolbar .ta-eyebrow { margin-bottom: 8px; }
.ta-toolbar h2 { font-size: 32px; margin: 0; line-height: 1.3; }
.ta-dot { color: var(--ta-blue); }
.ta-search { display: flex; align-items: center; background: #e9e9ed; border: 1px solid transparent; padding: 5px 6px 5px 18px; border-radius: 30px; width: 370px; max-width: 100%; gap: 8px; }
.ta-search:focus-within { border-color: var(--ta-blue); }
.ta-search input[type="search"] { flex: 1; width: 100%; min-width: 0; height: 42px; min-height: 42px; border: 0; background: transparent; padding: 0; box-shadow: none; font-family: inherit; font-size: 15px; }
.ta-search input[type="search"]:focus { outline: none; }
.ta-search button { border: 0; border-radius: 24px; padding: 0 20px; min-height: 42px; font-family: inherit; font-size: 14px; white-space: nowrap; background: #fff; color: var(--ta-ink); cursor: pointer; }
.ta-search button:hover { background: var(--ta-ink); color: #fff; }
.ta-filter-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 30px 0; }
.ta-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ta-filters a { min-height: 44px; padding: 11px 20px; border: 1px solid #d2d2d7; border-radius: 25px; color: #515154; font-size: 14px; line-height: 20px; }
.ta-filters .is-current { background: var(--ta-ink); border-color: var(--ta-ink); color: #fff; }
.ta-count, .ta-query { color: var(--ta-muted); font-size: 13px; margin: 0; }
.ta-query { margin-bottom: 24px; }
.ta-query a { margin-left: 16px; }
.ta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.ta-grid > li { padding: 0; margin: 0; min-width: 0; }
.ta-card { height: 100%; border-radius: 20px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.ta-page .ta-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ta-ink); text-decoration: none; }
.ta-card__media { position: relative; aspect-ratio: 3 / 2; background: #e8e8ed; overflow: hidden; }
.ta-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-card__media.tn-image-unavailable::after { content: none; }
.ta-image-placeholder { display: grid; align-content: center; height: 100%; padding: 28px; color: #7e7e85; font-size: 24px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.ta-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.ta-date { color: var(--ta-blue); font-size: 12px; font-weight: 600; margin: 0 0 14px; line-height: 1.6; }
.ta-card h3 { font-size: 21px; line-height: 1.6; font-weight: 650; margin: 0 0 26px; letter-spacing: 0; overflow-wrap: anywhere; }
.ta-card__bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--ta-muted); line-height: 1.6; }
.ta-card__bottom > span:last-child { font-size: 22px; }
.ta-credit { margin: 36px 0 0; color: var(--ta-muted); font-size: 12px; line-height: 1.8; }
.ta-empty { padding: 64px 24px; text-align: center; border-radius: 20px; background: #fff; }
.ta-empty h3 { font-size: 24px; }
.ta-empty p { color: var(--ta-muted); }
.ta-notice { padding: 16px 20px; margin: 20px 0; background: #fff7e5; border-radius: 12px; color: #6d5219; font-size: 14px; line-height: 1.8; }
.ta-detail { padding-top: 48px; }
.ta-detail__header { max-width: 820px; margin: 0 auto 40px; }
.ta-back { display: inline-block; min-height: 44px; padding-block: 12px; font-size: 14px; }
.ta-detail__header .ta-eyebrow { margin-top: 32px; }
.ta-detail h1 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.5; font-weight: 750; letter-spacing: 0; margin: 0 0 32px; }
.ta-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid #d2d2d7; padding-top: 26px; margin: 0 0 24px; }
.ta-facts dt { color: var(--ta-muted); font-size: 12px; margin-bottom: 10px; }
.ta-facts dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.7; }
.ta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ta-page .ta-actions > a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 24px; background: var(--ta-blue); color: #fff; font-size: 14px; }
.ta-page .ta-actions > a:hover { background: #0057ad; color: #fff; }
.ta-gallery { max-width: 1000px; margin: 0 auto 44px; }
.ta-gallery img { display: block; max-width: 100%; max-height: 850px; width: auto; height: auto; margin: 0 auto 24px; border-radius: 18px; }
.ta-detail__body, .ta-detail__footer { max-width: 760px; margin-inline: auto; overflow-wrap: anywhere; }
.ta-detail__body { font-size: 18px; line-height: 2; }
.ta-detail__body p { margin: 0 0 1.6em; }
.ta-detail__body h2 { font-size: 27px; margin-top: 1.6em; }
.ta-detail__body h3 { font-size: 22px; }
.ta-detail__body img { max-width: 100%; height: auto; border-radius: 12px; }
.ta-detail__body table { display: block; max-width: 100%; overflow-x: auto; }
.ta-detail__footer { border-top: 1px solid #d2d2d7; margin-top: 40px; padding-top: 24px; color: var(--ta-muted); font-size: 13px; line-height: 1.8; }
@media (hover: hover) { .ta-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgb(0 0 0 / 6%); } }
@media (max-width: 1000px) { .ta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 760px) {
  .ta-intro { padding: 48px 0 40px; }
  .ta-intro > p:last-child { font-size: 15px; max-width: 340px; }
  .ta-toolbar { flex-direction: column; align-items: stretch; }
  .ta-search { width: 100%; }
  .ta-filter-row { align-items: start; flex-direction: column; }
  .ta-detail { padding-top: 24px; }
  .ta-detail__body { font-size: 17px; }
}
@media (max-width: 600px) {
  .ta-grid { grid-template-columns: 1fr; }
  .ta-facts { grid-template-columns: 1fr; }
  .ta-card h3 { font-size: 20px; }
  .ta-filters a { padding-inline: 16px; }
  .ta-gallery img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ta-card { transition: none; } }
