/* Shared public theme, loaded after the legacy Bootstrap and Supermenu styles. */
body.hksa-front {
  --canvas: #f5f5f5;
  --paper: #fff;
  --ink: #28292b;
  --muted: #535557;
  --charcoal: #3e4042;
  --charcoal-dark: #282a2c;
  --focus: #55585b;
  --line: #dedfe0;
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.65 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif;
}

.hksa-front .hksa-page,
.hksa-front .container-inner { width: 100%; }

.hksa-front :where(h1, h2, h3, h4) { color: var(--ink); }
.hksa-front :where(a) { color: var(--charcoal); }
.hksa-front :where(a:hover) { color: var(--charcoal-dark); }
.hksa-front :where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hksa-front .hksa-skip {
  position: absolute;
  z-index: 10002;
  inset: 8px auto auto 8px;
  transform: translateY(-150%);
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--paper);
}
.hksa-front .hksa-skip:focus { transform: none; }

.hksa-site-header {
  --header-accent: #47494b;
  --header-hover: #eeeeef;
  --header-line: #dedfe0;
  --header-ink: #303235;
  background: var(--paper);
  font-size: .875rem;
  line-height: 20px;
}
.hksa-front .hksa-site-header :focus-visible { outline-color: var(--header-accent); }
.hksa-topbar {
  background: #f2f2f3;
  border-block-end: 1px solid var(--header-line);
}
.hksa-topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(9rem, 17rem) minmax(0, 1fr);
  align-items: center;
  gap: .55rem 1rem;
  inline-size: min(calc(100% - clamp(1.5rem, 5vw, 3rem)), 80rem);
  margin-inline: auto;
  padding-block: .55rem;
}
.hksa-preferences { display: flex; align-items: center; min-inline-size: 0; }
.hksa-preferences form { margin: 0; }
.hksa-front .hksa-language #language {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  width: auto;
  margin: 0;
  padding: 0;
}
.hksa-language button {
  min-block-size: 2.15rem;
  padding: .25rem .75rem;
  border: 0;
  border-radius: 1.25rem;
  background: var(--header-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.hksa-language button:hover { background: var(--header-ink); }

.hksa-front .hksa-search { display: flex; position: relative; min-inline-size: 0; margin: 0; }
.hksa-front .hksa-search input {
  box-sizing: border-box;
  flex: 1;
  inline-size: 100%;
  min-inline-size: 0;
  block-size: 2.5rem;
  margin: 0;
  padding-inline: .8rem 2.75rem;
  border: 1px solid #c9cbcd;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: none;
  appearance: none;
}
.hksa-search > button {
  position: absolute;
  inset-block: .2rem;
  inset-inline-end: .25rem;
  inline-size: 2.15rem;
  border: 0;
  border-radius: 50%;
  background: var(--header-accent);
  color: #fff;
}
.hksa-search > button:hover { background: #303235; }
.hksa-search > button .icon-search { margin: 0; background-image: url('img/glyphicons-halflings-white.png'); }
.hksa-search .dropdown-menu { max-inline-size: 100%; }
.hksa-search .dropdown-menu a { white-space: normal; overflow-wrap: anywhere; }

.hksa-header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem .65rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hksa-header-contact li { max-inline-size: 100%; }
.hksa-front .hksa-header-contact a {
  display: inline-block;
  padding: .25rem .4rem;
  border-radius: .4rem;
  color: var(--header-ink);
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.hksa-header-contact span { margin-inline-end: .2rem; color: var(--header-accent); font-weight: 700; }
.hksa-front .hksa-header-contact a:hover { background: #e4e5e6; text-decoration: underline; }

.hksa-front .hksa-navrail #header {
  display: grid;
  grid-template-columns: minmax(0, 17%) minmax(0, 1fr);
  align-items: start;
  inline-size: min(100%, 1180px);
  min-height: 100px;
  height: auto;
  margin-inline: auto;
}
.hksa-front .hksa-brand { justify-self: start; margin-block-start: 30px; color: var(--header-ink); text-decoration: none; }
.hksa-brand img { display: block; width: auto; height: 45px; object-fit: contain; }
.hksa-front .hksa-navrail #menu {
  height: auto;
  margin: 25px 0 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.hksa-front #supermenu,
.hksa-front #supermenu-mobile { margin: 0; padding: 0; background: transparent; font-family: inherit; }
.hksa-front #supermenu { padding-inline: 4px; }
.hksa-front #supermenu > ul { display: flex; align-items: center; flex-wrap: wrap; }
.hksa-front #supermenu .hometlli a { min-inline-size: 6px; }
.hksa-front #supermenu .tlli > a.tll {
  padding: 14px clamp(.45rem, .7vw, .75rem);
  background: none;
  color: #494b4d;
  border-radius: .55rem;
  font-size: .92rem;
  font-weight: 400;
  line-height: 14px;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
}
.hksa-front #supermenu .tlli:hover > a.tll,
.hksa-front #supermenu .tlli:focus-within > a.tll,
.hksa-front #supermenu .hksa-current > a.tll { background: var(--header-hover); color: var(--header-accent); }
.hksa-front #supermenu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .24em; }
.hksa-front #supermenu .tlli:focus-within { z-index: 10001; }
.hksa-front #supermenu .tlli:focus-within > .bigdiv,
.hksa-front #supermenu .withchildfo:focus-within > .flyouttoright { display: block !important; }
.hksa-front #supermenu .tlli > .bigdiv,
.hksa-front #supermenu .withchildfo > .flyouttoright,
.hksa-front #supermenu-mobile .tlli > .bigdiv {
  background: var(--paper) !important;
  border: 1px solid var(--header-line);
  border-radius: .75rem;
  box-shadow: 0 9px 26px #22232525;
}
.hksa-front #supermenu .bigdiv a,
.hksa-front #supermenu-mobile .bigdiv a { color: var(--ink) !important; text-shadow: none; }
.hksa-front :is(#supermenu, #supermenu-mobile) .bigdiv :is(.withchild a.theparent, .withchild ul li a[href], .withchildfo > a.theparent) { border-radius: .4rem; }
.hksa-front :is(#supermenu, #supermenu-mobile) .bigdiv :is(a:hover, a:focus-visible, .withchildfo:hover > a.theparent) { background: var(--header-hover); }
.hksa-front #supermenu-mobile { border: 1px solid var(--header-line); border-radius: .7rem; background: #f2f2f3; }
.hksa-front #supermenu-mobile .tlli > a.tll {
  float: none !important;
  color: var(--header-ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 24px;
  padding: .65rem .8rem !important;
  font-weight: 650;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.hksa-front #supermenu-mobile .tlli > a.tll::before { content: '☰'; font-size: 18px; }
.hksa-front #supermenu-mobile .withchild > a.theparent:not([href]) { cursor: pointer; }

.hksa-front .hksa-home-news {
    float: none;
    inline-size: min(calc(100% - clamp(1rem, 4vw, 3rem)), 80rem);
    max-inline-size: none;
    margin: clamp(.75rem, 1.6vw, 1.5rem) auto 2rem;
}

.hksa-front {
    --news-red: #a92f35;
    --news-surface: #eeeeef;
    --news-panel: #f3f3f4;
    --news-line: #dedfe0;
    --news-muted: #56585b;
    --news-ink: #303235;
}
.hksa-front .container-inner:has(> :is(#content, #content_fixw) > .hksa-news-index) {
    background: var(--paper);
}

.hksa-front :is(.hksa-news-module, .hksa-news-index) {
    color: #333;
    font-size: .875rem;
    line-height: 20px;
}


.hksa-front .box > .box-content > .article-list {
    display: grid;
    gap: 0.65rem;
    margin-block: 0.5rem;
}

.hksa-front .box .article-list > .box-article {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--news-line);
    border-radius: 0.55rem;
    background: #fff;
}

.hksa-front .box .article-list > .box-article:hover { background: var(--news-surface); }
.hksa-front .box-article .news-title a,
.hksa-front :is(#content, #content_fixw):has(> .news-info) > h1 { color: var(--news-red); }
.hksa-front .box-article .news-title a:hover { text-decoration: underline; }
.hksa-front .article-list .box-article :is(.news-date, .news-read-comment, .news-read-comment a) { color: var(--news-muted); }
.hksa-front .box-article .news-date span { display: inline-block; }

.hksa-front .hksa-news-module > .news-box-heading {
    margin: 0;
    padding-inline: 1rem;
    border: 0;
    border-inline-start: 3px solid #707376;
    border-radius: 0.4rem;
    background: var(--news-surface);
    color: var(--news-ink);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
}

.hksa-front .hksa-news-module > .box-content { border: 0; }

.hksa-front .hksa-home-news #column-left > .hksa-news-module { margin-block-start: 0; }

.hksa-front .hksa-home-news .hksa-news-module {
    padding: clamp(1rem, 3vw, 2.1rem);
    border: 1px solid var(--news-line);
    border-radius: clamp(0.8rem, 2vw, 1.4rem);
    background: var(--news-panel);
}

.hksa-front .hksa-home-news .hksa-news-module > .news-box-heading {
    margin-block-start: 0;
    margin-block-end: 1rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
    color: var(--news-ink);
}

.hksa-front .hksa-home-news .hksa-news-module > .box-content { padding: 0; background: none; }

.hksa-front .hksa-home-news .hksa-news-module .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.65rem, 2vw, 1.15rem);
    margin: 0;
}

.hksa-front .hksa-home-news .article-list > .hksa-news-card {
    position: relative;
    display: grid;
    align-items: center;
    gap: 0.85rem;
    padding: clamp(0.75rem, 2vw, 1.35rem);
    padding-block-start: 20px;
    border-radius: 0.85rem;
    box-shadow: 0 3px 12px #28292b0a;
    overflow: visible;
}

.hksa-front .hksa-home-news .hksa-news-card:has(> .news-image) { grid-template-columns: minmax(3.25rem, min(18%, 8rem)) minmax(0, 1fr); }

.hksa-front .hksa-home-news .article-list > .hksa-news-card:first-child {
    grid-column: 1 / -1;
    padding-block-start: clamp(0.75rem, 2vw, 1.35rem);
    background: #eceeef;
    border-color: #d5d7d9;
}

.hksa-front .hksa-home-news .hksa-news-card .news-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin-inline-end: 0 !important;
    border-radius: 0.6rem;
    background: #e0e2e3;
}

.hksa-front .hksa-home-news .hksa-news-card .news-image img { inline-size: 100%; aspect-ratio: 1; object-fit: contain; }
.hksa-front .hksa-news-card .news-title { margin: 0; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.hksa-front .hksa-home-news .hksa-news-card .news-title a { display: block; padding-inline-end: 1.2rem; color: var(--news-red); font-size: inherit; }
.hksa-front .hksa-home-news .hksa-news-card .news-title a::before {
    content: "↗" / "";
    position: absolute;
    inset-block-start: 0.65rem;
    inset-inline-end: 0.8rem;
    color: var(--news-red);
}
.hksa-front .hksa-home-news .hksa-news-card .news-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hksa-front .hksa-home-news .hksa-news-card :is(a:not(.news-title a), button, input, select, textarea) { position: relative; z-index: 1; }
.hksa-front .hksa-home-news .hksa-news-card:has(.news-title a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.hksa-front .hksa-home-news .hksa-news-card .news-title a:focus-visible { outline: none; }
.hksa-front .hksa-home-news .hksa-news-card:first-child .news-title { font-size: clamp(1.08rem, 0.9rem + 1vw, 1.55rem); }
.hksa-front .hksa-home-news .hksa-news-card .news-title a:hover { color: var(--news-red); }
.hksa-front .hksa-home-news .hksa-news-card .news-date { margin-block-start: 0.45rem; font-size: 0.76rem; }
.hksa-front .hksa-home-news .hksa-news-card .news-intro { display: none; }

.hksa-member-directory {
    box-sizing: border-box;
    max-inline-size: 80rem;
    margin: 0.75rem auto 2rem;
    padding: clamp(1rem, 3vw, 2.1rem);
    border: 1px solid var(--line);
    border-radius: clamp(0.8rem, 2vw, 1.4rem);
    background: var(--news-panel);
}

.hksa-member-directory > h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
    line-height: 1.4;
}

.hksa-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: clamp(0.65rem, 2vw, 1.15rem);
}

.hksa-member-card {
    min-inline-size: 0;
    padding: clamp(0.85rem, 1.5vw, 1.2rem);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--paper);
    box-shadow: 0 3px 12px #28292b0a;
    overflow-wrap: anywhere;
}

.hksa-member-card h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.hksa-member-card h3 a { display: block; border-radius: 0.6rem; color: inherit; }
.hksa-member-card h3 a:hover .hksa-member-name { text-decoration: underline; }
.hksa-member-name { display: block; }

.hksa-member-logo {
    display: block;
    box-sizing: border-box;
    block-size: 6rem;
    margin-block-end: 0.8rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--paper);
}

.hksa-member-logo img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.hksa-member-profile {
    margin-block-start: 0.55rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.65;
    text-align: start;
}

.hksa-member-profile :is(div, p)[style*="justify" i] { text-align: start !important; }
.hksa-member-profile > :last-child { margin-block-end: 0; }
.hksa-member-profile :is(img, video, iframe) { max-inline-size: 100%; }

.hksa-front :is(#content, #content_fixw):has(> .news-info) > h1 {
    max-inline-size: 40ch;
    margin-block: 0.5rem 1rem;
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.55rem);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.hksa-front :is(#content, #content_fixw) > .news-info {
    padding: clamp(0.8rem, 2.5vw, 1.7rem);
    border: 1px solid var(--news-line);
    border-radius: 1rem;
    background: var(--paper);
}

.hksa-front .news-info .news-properties { color: var(--news-muted); }
.hksa-front .news-info .news-content { line-height: 1.7; overflow-wrap: break-word; overflow-x: auto; }
.hksa-front .news-info :is(img, video) { max-inline-size: 100%; height: auto; }
.hksa-front .news-content :is(iframe, object, embed) { max-inline-size: 100%; }

.hksa-front .news-info ~ .tags_share { border-block-end: 0; }
.hksa-front .tags_share .news-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding-block: 0.35rem;
    font-size: 0.875rem;
    line-height: 20px;
}

.hksa-front .news-share a {
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    background: var(--news-panel);
    color: var(--news-ink);
    text-decoration: underline;
}

.hksa-front .news-share a:hover { background: var(--news-line); }

.hksa-front :is(#content, #content_fixw):has(> .hksa-news-index) > :is(h1, h2) {
    margin-block: 1rem;
    color: var(--news-ink);
    font-size: clamp(1.7rem, 1.2rem + 1.65vw, 2.4rem);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.hksa-front .hksa-news-index [hidden] { display: none !important; }
.hksa-front .hksa-news-index .hksa-news-filter {
    padding: 0.8rem;
    border: 1px solid var(--news-line);
    border-radius: 0.8rem;
    background: var(--news-panel);
}

.hksa-front .hksa-news-filter :is(.display, .limit, .sort) {
    display: flex;
    float: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.hksa-front .hksa-news-filter select { max-inline-size: 100%; margin: 0; }
.hksa-front .hksa-news-filter [data-news-view] { padding: 0.35rem 0.6rem; border: 1px solid var(--news-line); border-radius: 0.45rem; background: #fff; color: var(--news-red); }
.hksa-front .hksa-news-filter [aria-pressed="true"] { border-color: var(--news-red); background: var(--news-red); color: #fff; }
.hksa-front .hksa-news-index :is(.article-list, .article-2col, .article-2col .box-row) { display: grid; gap: 0.85rem; }
.hksa-front .hksa-news-index .article-2col .box-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.hksa-front .hksa-news-index .article-list > .box-article, .hksa-front .hksa-news-index .article-2col .box-row > .box-article {
    display: block;
    box-sizing: border-box;
    inline-size: auto;
    min-inline-size: 0;
    max-inline-size: none;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--news-line);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 3px 12px #28292b0a;
    overflow-wrap: anywhere;
}

.hksa-front .hksa-news-index .article-2col .box-row > .box-article:empty { display: none; }
.hksa-front .hksa-news-index .article-2col .box-row + .box-row { margin-block-start: 0; }
.hksa-front .hksa-news-index .box-article .news-image img { max-inline-size: 100%; block-size: auto; }
.hksa-front .hksa-news-index .box-article .news-date { margin-block: 0.3rem; color: var(--news-muted); }
.hksa-front .hksa-news-index .box-article .news-intro { text-align: start; line-height: 1.65; }

@media (max-width: 767px) {
    .hksa-front .hksa-news-index .article-2col .box-row { grid-template-columns: minmax(0, 1fr); }
    .hksa-front .hksa-news-index .article-2col .box-row > .box-article + .box-article { padding-inline-start: 1rem; }
    .hksa-front .hksa-news-filter .row-fluid > .span4 + .span4 { margin-block-start: 0.55rem; }
}

@media (max-width: 767px) {
    .hksa-front .hksa-home-news .hksa-news-module .article-list { grid-template-columns: minmax(0, 1fr); }
    .hksa-front .article-list .box-article .news-date { display: flex; flex-wrap: wrap; gap: 0.15rem 0.55rem; }
    .hksa-front .article-list .box-article .news-date span + span { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
}

.hksa-front .hksa-footer {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) 0 0;
  background: #303235;
  color: #eeeeef;
  border: 0;
  border-top: 4px solid #777a7e;
  box-shadow: none;
  font-size: .875rem;
  line-height: 20px;
  text-align: start;
}
.hksa-footer-wrap {
  inline-size: min(calc(100% - clamp(2rem, 6vw, 5rem)), 80rem);
  margin-inline: auto;
}
.hksa-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
  gap: clamp(1.1rem, 3vw, 2.6rem);
  overflow-wrap: anywhere;
}
.hksa-front .hksa-footer a { color: #fff; }
.hksa-front .hksa-footer .hksa-footer-logo {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 190px);
  min-height: 65px;
  padding: .7rem .95rem;
  background: #fff;
  color: #303235;
  border-radius: .65rem;
  text-align: center;
}
.hksa-front .hksa-footer .hksa-footer-logo:hover { color: #303235; }
.hksa-footer-logo img { display: block; inline-size: 10rem; max-inline-size: 100%; block-size: 42px; object-fit: contain; }
.hksa-front .hksa-footer h2 { margin: 0 0 .45rem; color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.4; }
.hksa-front .hksa-footer ul { margin: 0 0 16px; padding: 0; list-style: none; }
.hksa-front .hksa-footer li { margin-block: .35rem; line-height: 1.55; }
.hksa-footer address { margin: 0; font-style: normal; }
.hksa-footer-social { display: flex; flex-wrap: wrap; gap: .45rem; }
.hksa-footer-social:empty { display: none; }
.hksa-footer-social a { padding: .4rem .75rem; border: 1px solid #777a7e; border-radius: 99px; font-size: .8rem; }
.hksa-front .hksa-footer a:hover { color: #e3e4e5; text-decoration: underline; }
.hksa-front .hksa-footer a:focus-visible { outline-color: #fff; }
.hksa-footer-map iframe {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  border-radius: .75rem;
  background: #46494c;
}
.hksa-footer-bottom {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid #66696d;
  font-size: .8rem;
}
.hksa-front #toTop { background: var(--charcoal); color: #fff; z-index: 100; font-size: 20px; }

@media (max-width: 900px) {
  .hksa-topbar-inner { grid-template-columns: auto minmax(0, 1fr); }
  .hksa-header-contact { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 880px) {
  .hksa-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hksa-front .hksa-navrail #header { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 12px; box-sizing: border-box; }
  .hksa-front .hksa-brand { justify-self: center; margin-block-start: 0; }
  .hksa-front .hksa-navrail #menu { margin-block-start: 0; }
  .hksa-front #supermenu:has(+ #supermenu-mobile) { display: none; }
  .hksa-front #supermenu-mobile { display: block; }

}

@media (max-width: 520px) {
  .hksa-footer-grid :is(.hksa-footer-brand, .hksa-footer-map) { grid-column: 1 / -1; }
}
