/* Tainan Newsroom: system typography, generous space and an editorial grid. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-serif: var(--font-sans);
  --tn-ink: #1d1d1f;
  --tn-muted: #6e6e73;
  --tn-blue: #0066cc;
  --tn-line: #dcdce0;
  --color--primary-50: #0066cc;
  --color--primary-40: #0057ad;
  --color-text-neutral-loud: #1d1d1f;
  --color-text-neutral-medium: #424245;
  --color-text-primary-medium: #0066cc;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #f5f5f7; color: var(--tn-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.tn-site { width: 100%; margin: 0; background: #f5f5f7; overflow-wrap: anywhere; }
.tn-site *, .tn-site *::before, .tn-site *::after { box-sizing: border-box; }
.tn-site a { color: var(--tn-blue); text-decoration: none; }
.tn-site a:hover { text-decoration: underline; }
.tn-site a:focus-visible, .tn-site button:focus-visible, .tn-site input:focus-visible { outline: 3px solid #0071e3; outline-offset: 5px; }
.tn-site h1, .tn-site h2, .tn-site h3 { font-family: var(--font-sans); color: var(--tn-ink); letter-spacing: 0; text-wrap: pretty; }
.tn-site .region, .tn-site .region > *, .tn-site .block { min-width: 0; }
.tn-site .region { display: block; margin: 0; }
.tn-site .region > *, .tn-site .block { margin-block: 0; }
.tn-site .region--content { display: block; }
.tn-site .region--content > * { grid-column: auto; }
.tn-container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.tn-header { position: sticky; top: var(--drupal-displace-offset-top, 0px); z-index: 30; background: rgb(255 255 255 / 88%); border-bottom: 1px solid rgb(0 0 0 / 8%); backdrop-filter: saturate(180%) blur(20px); }
.tn-header__inner { width: min(1180px, calc(100% - 80px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tn-brand__link { display: flex; align-items: center; }
.tn-brand img { width: 172px; height: 36px; }
.tn-header__navigation { display: flex; align-items: center; gap: 30px; }
.tn-header .primary-nav { display: block; margin: 0; }
.tn-nav { display: flex; align-items: center; gap: 32px; list-style: none; padding: 0; margin: 0; }
.tn-nav li { position: relative; list-style: none; margin: 0; }
.tn-site .tn-nav-link { display: inline-flex; align-items: center; min-height: 48px; color: #515154; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tn-site .tn-nav-link.is-active { color: var(--tn-ink); }
.tn-nav-link.is-active::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 2px); width: 4px; height: 4px; background: var(--tn-blue); border-radius: 50%; }
.tn-nav__sub { padding: 12px; list-style: none; background: #fff; border-radius: 12px; }
.tn-header__search { display: grid; place-items: center; width: 44px; height: 44px; color: var(--tn-ink) !important; }
.tn-main { padding-bottom: 80px; }
.tn-main:focus { outline: none; }
.tn-main .breadcrumb { padding-block: 20px 0; font-size: 13px; }
.tn-main:has(.tn-newsroom, .tn-article) .block-page-title-block { display: none; }
.tn-main:has(.tn-newsroom, .tn-article) .region--breadcrumb { display: none; }
.tn-intro { padding: 76px 0 50px; }
.tn-eyebrow { margin: 0 0 17px; color: var(--tn-muted); font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: .17em; }
.tn-intro h1 { margin: 0; font-size: clamp(36px, 4.8vw, 64px); font-weight: 750; line-height: 1.22; }
.tn-intro__description { margin: 22px 0 0; font-size: 18px; color: var(--tn-muted); line-height: 1.8; }
.tn-feature { overflow: hidden; background: #fff; border-radius: 24px; }
.tn-site .tn-feature__link { display: grid; grid-template-columns: 56% 44%; color: inherit; text-decoration: none; }
.tn-feature__media { min-height: 450px; overflow: hidden; background: #e8e8ed; }
.tn-feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tn-feature__body { display: flex; flex-direction: column; padding: 42px 38px 32px; }
.tn-feature__eyebrow { display: flex; align-items: center; gap: 8px; color: var(--tn-blue); letter-spacing: .09em; margin-bottom: 22px; }
.tn-feature__eyebrow > span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.tn-feature h2 { margin: 0; font-size: clamp(24px, 2.45vw, 34px); line-height: 1.5; font-weight: 700; }
.tn-feature__summary { color: var(--tn-muted); font-size: 14px; line-height: 1.85; margin: 22px 0 28px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tn-feature__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.tn-feature time, .tn-card time { font-size: 12px; color: var(--tn-muted); }
.tn-read { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--tn-blue); white-space: nowrap; }
.tn-arrow { display: grid; place-items: center; border-radius: 50%; background: #f5f5f7; width: 36px; height: 36px; font-size: 19px; }
.tn-stories { padding-top: 72px; }
.tn-stories__heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.tn-stories__heading .tn-eyebrow { margin-bottom: 8px; }
.tn-stories__heading h2 { font-size: 34px; line-height: 1.3; margin: 0; font-weight: 700; }
.tn-heading-dot { color: var(--tn-blue); padding-left: 2px; }
.tn-search { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 16px; background: #eaeaec; border: 1px solid transparent; border-radius: 30px; width: 350px; max-width: 100%; scroll-margin-top: 110px; }
.tn-search:focus-within { border-color: var(--tn-blue); }
.tn-search > svg { flex: 0 0 19px; color: #6e6e73; }
.tn-search input[type="search"] { width: 100%; min-width: 0; height: 40px; min-height: 40px; padding: 0; border: 0; box-shadow: none; background: transparent; border-radius: 0; color: var(--tn-ink); font-family: inherit; font-size: 14px; }
.tn-search input[type="search"]:focus { outline: none; box-shadow: none; }
.tn-search input::placeholder { color: #68686d; opacity: 1; }
.tn-search button { min-height: 40px; flex-shrink: 0; border: 0; border-radius: 24px; background: #fff; color: var(--tn-ink); padding: 0 18px; font-family: inherit; font-size: 13px; cursor: pointer; }
.tn-search button:hover { background: var(--tn-ink); color: #fff; }
.tn-search-context { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; color: var(--tn-muted); font-size: 14px; }
.tn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.tn-card { margin: 0; padding: 0; overflow: hidden; border-radius: 20px; background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.tn-card article { height: 100%; }
.tn-site .tn-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tn-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: #e8e8ed; }
.tn-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tn-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 22px; }
.tn-card__label { font-size: 11px; color: var(--tn-muted); font-weight: 600; margin: 0 0 12px; letter-spacing: .06em; }
.tn-card h3 { margin: 0 0 24px; font-weight: 650; font-size: 21px; line-height: 1.55; }
.tn-card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.tn-card__arrow { font-size: 23px; line-height: 1; color: #6e6e73; }
.tn-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: #e8e8ed; color: #818187; font-size: 26px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.tn-empty { padding: 72px 24px; background: #fff; border-radius: 20px; text-align: center; }
.tn-empty h3 { font-size: 24px; }
.tn-empty p { color: var(--tn-muted); }
.tn-site .pager { margin-block: 48px 0; }
.tn-site .pager__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tn-site .pager__item { width: auto; min-width: 42px; height: 42px; margin: 0; border: 0; background: transparent; }
.tn-site .pager__link { display: flex; align-items: center; justify-content: center; height: 42px; min-width: 42px; border-radius: 50%; color: #515154; font-size: 14px; }
.tn-site .pager__item--active .pager__link { color: #fff; background: var(--tn-ink); }
.tn-site .pager__item--active { display: grid; place-items: center; color: #fff; background: var(--tn-ink); border-radius: 50%; }
.tn-feature__media, .tn-card__media { position: relative; }
.tn-image-unavailable::after { content: "TAINAN NEWSROOM"; position: absolute; inset: 0; display: grid; place-items: center; color: #737379; font-size: 16px; font-weight: 650; letter-spacing: .14em; }
.tn-image-unavailable img { visibility: hidden; }
.tn-site .pager__item--active { display: grid; place-items: center; color: #fff; background: var(--tn-ink); border-radius: 50%; }
.tn-feature__media, .tn-card__media { position: relative; }
.tn-image-unavailable::after { content: "TAINAN NEWSROOM"; position: absolute; inset: 0; display: grid; place-items: center; color: #737379; font-size: 16px; font-weight: 650; letter-spacing: .14em; }
.tn-image-unavailable img { visibility: hidden; }
.tn-site .pager__link:hover { background: #e5e5e8; text-decoration: none; }
.tn-more { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--tn-line); }
.tn-more .block__title { font-size: 22px; font-weight: 650; letter-spacing: 0; margin: 0 0 24px; }
.tn-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; list-style: none; margin: 0; padding: 0; }
.tn-latest li { border-bottom: 1px solid var(--tn-line); padding: 20px 0; margin: 0; }
.tn-site .tn-latest a { display: grid; grid-template-columns: 1fr 20px; gap: 10px; color: var(--tn-ink); font-size: 15px; font-weight: 550; line-height: 1.7; }
.tn-latest time { grid-column: 1 / -1; font-size: 11px; font-weight: 400; color: var(--tn-muted); }
.tn-latest__arrow { color: var(--tn-muted); align-self: end; }
.tn-footer { background: #eaeaec; padding: 50px 0 24px; }
.tn-footer__intro { display: flex; align-items: center; gap: 36px; padding-bottom: 36px; }
.tn-site .tn-footer__brand { font-weight: 700; color: var(--tn-ink); font-size: 23px; }
.tn-footer__brand span { display: block; color: var(--tn-muted); font-size: 9px; letter-spacing: .17em; margin-top: 5px; }
.tn-footer__intro p { flex: 1; color: var(--tn-muted); font-size: 14px; }
.tn-footer__intro > a:last-child { font-size: 13px; }
.tn-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #d2d2d7; padding-top: 20px; color: var(--tn-muted); font-size: 11px; }
.tn-footer__bottom p { margin: 0; }
.tn-footer__bottom .block { color: var(--tn-muted); font-size: 11px; }
.tn-footer__bottom a { color: #515154; }
.tn-article { padding-top: 48px; }
.tn-article__header { max-width: 820px; margin: 0 auto 40px; }
.tn-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; }
.tn-article__header .tn-eyebrow { margin: 36px 0 20px; letter-spacing: .04em; }
.tn-article__header .tn-eyebrow > span { margin-inline: 12px; color: #aaa; }
.tn-article h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.45; font-weight: 750; margin: 0 0 30px; }
.tn-article__meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--tn-muted); font-size: 14px; border-top: 1px solid var(--tn-line); padding-top: 20px; }
.tn-share { font-family: inherit; background: transparent; border: 1px solid #d2d2d7; color: var(--tn-blue); border-radius: 24px; min-height: 44px; padding: 8px 18px; cursor: pointer; }
.tn-share[hidden] { display: none; }
.tn-article__photos { max-width: 1000px; margin: 0 auto 44px; }
.tn-article__photos img { display: block; width: 100%; height: auto; border-radius: 20px; margin-bottom: 24px; }
.tn-article__body, .tn-article__footer { max-width: 760px; margin-inline: auto; }
.tn-article__body { font-size: 18px; line-height: 2; color: #333336; }
.tn-article__body p { margin: 0 0 1.6em; }
.tn-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.tn-article__body table { display: block; max-width: 100%; overflow-x: auto; }
.tn-article__body iframe, .tn-article__body video { max-width: 100%; }
.tn-article__footer { border-top: 1px solid var(--tn-line); padding-top: 24px; margin-top: 48px; font-size: 13px; color: var(--tn-muted); }
.tn-article__footer p { display: flex; gap: 20px; }
@media (hover: hover) {
  .tn-feature__link:hover img, .tn-card__link:hover img { transform: scale(1.035); }
  .tn-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgb(0 0 0 / 6%); }
}
@media (max-width: 1000px) {
  .tn-container, .tn-header__inner { width: calc(100% - 48px); }
  .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .tn-feature__body { padding: 28px; }
  .tn-feature__media { min-height: 400px; }
  .tn-feature__summary { -webkit-line-clamp: 2; }
  .tn-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tn-container, .tn-header__inner { width: calc(100% - 40px); }
  .tn-header__inner { min-height: 64px; gap: 10px; }
  .tn-brand img { width: 144px; height: auto; }
  .tn-header__navigation { gap: 12px; }
  .tn-nav { gap: 18px; }
  .tn-intro { padding: 50px 0 34px; }
  .tn-intro__description { font-size: 15px; margin-top: 16px; max-width: 300px; }
  .tn-site .tn-feature__link { grid-template-columns: 1fr; }
  .tn-feature__media { min-height: 0; aspect-ratio: 3 / 2; }
  .tn-feature__body { padding: 28px; }
  .tn-feature h2 { font-size: 27px; }
  .tn-feature__summary { margin-block: 16px 24px; }
  .tn-stories { padding-top: 48px; }
  .tn-stories__heading { align-items: start; flex-direction: column; gap: 22px; }
  .tn-stories__heading h2 { font-size: 30px; }
  .tn-search { width: 100%; }
  .tn-card__body { padding: 22px; }
  .tn-card h3 { font-size: 20px; }
  .tn-more { margin-top: 48px; }
  .tn-footer__intro { flex-wrap: wrap; gap: 16px 24px; }
  .tn-footer__intro p { flex-basis: calc(100% - 180px); }
  .tn-article { padding-top: 24px; }
  .tn-article__body { font-size: 17px; }
  .tn-article__header .tn-eyebrow { margin-top: 24px; }
}
@media (max-width: 600px) {
  .tn-grid, .tn-latest { grid-template-columns: 1fr; }
  .tn-grid { gap: 24px; }
  .tn-main { padding-bottom: 48px; }
  .tn-card h3 { margin-bottom: 24px; }
  .tn-feature { border-radius: 20px; }
  .tn-feature__body { padding: 26px 24px; }
  .tn-footer__intro { display: block; }
  .tn-footer__intro p { margin: 16px 0; }
  .tn-footer__bottom { gap: 14px; }
  .tn-article__photos img { border-radius: 12px; }
}
@media (max-width: 360px) {
  .tn-header__inner { flex-wrap: wrap; padding-block: 10px 4px; }
  .tn-header__navigation { width: 100%; justify-content: space-between; }
  .tn-brand img { width: 124px; }
  .tn-header__navigation { gap: 4px; }
  .tn-nav { gap: 12px; }
  .tn-intro h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tn-site *, .tn-site *::before, .tn-site *::after { transition: none !important; }
}
