/* Component styles are scoped to shortcode output and its standalone page. */
.smt-portal {
    margin: 0;
    background: #f3f6fb;
}
.smt {
    --smt-ink: #122641;
    --smt-navy: #102644;
    --smt-muted: #4e6077;
    --smt-line: #d9e2ed;
    --smt-sheet: #fff;
    --smt-link: #1a5597;
    --smt-up: #0a6748;
    --smt-down: #a42840;
    --smt-gutter: clamp(18px, 4vw, 48px);
    box-sizing: border-box;
    width: min(100%, 1340px);
    margin: 0 auto;
    padding: 0 var(--smt-gutter) clamp(24px, 5vw, 64px);
    color: var(--smt-ink);
    font: 400 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.smt *, .smt *::before, .smt *::after { box-sizing: border-box; }
.smt-view-home-hero, .smt-view-home-latest { padding-bottom: 0; }
.smt-view-home-hero .smt-nav { margin-bottom: 12px; }
.smt-portal #smt-content { padding: clamp(16px, 4vw, 48px) 0 0; }
.smt h1, .smt h2, .smt h3, .smt p { margin: 0; color: inherit; }
.smt h1 { font-size: clamp(30px, 4.1vw, 55px); line-height: 1.17; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
.smt h2 { font-size: clamp(19px, 2.35vw, 27px); line-height: 1.25; font-weight: 720; letter-spacing: -.022em; }
.smt h3 { font-size: 17px; line-height: 1.45; }
.smt a { color: var(--smt-link); text-decoration: underline; text-underline-offset: 3px; }
.smt a:focus-visible, .smt button:focus-visible, .smt input:focus-visible, .smt select:focus-visible, .smt-table-wrap:focus-visible {
    outline: 3px solid #3c84c4;
    outline-offset: 3px;
}
.smt-hero {
    isolation: isolate;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: clamp(28px, 5.8vw, 86px) clamp(22px, 5.3vw, 76px);
    color: white;
    background: radial-gradient(ellipse at 85% 0, #284772 0%, transparent 55%), linear-gradient(135deg, #0d1c33, #142f50);
}
.smt-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .38;
    background-image: linear-gradient(#7792b54a 1px, transparent 1px), linear-gradient(90deg, #7792b54a 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(120deg, transparent 28%, black);
    pointer-events: none;
}
.smt-hero-inner { max-width: 820px; }
.smt p.smt-brand { margin-bottom: 18px; color: #bbd5f5; font-size: 13px; font-weight: 740; letter-spacing: .085em; }
.smt p.smt-lede { margin: 18px 0 26px; max-width: 640px; color: #dce8fb; font-size: clamp(15px, 2vw, 18px); }
.smt-searches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.smt-quick-search, .smt-filters { display: flex; align-items: end; gap: 10px; margin: 0; }
.smt-quick-search { border-radius: 10px; background: #fff; padding: 10px; color: var(--smt-ink); }
.smt-quick-search label { flex: 1 1 0; }
.smt-quick-search label, .smt-filters label { min-width: 0; text-align: start; margin: 0; }
.smt-quick-search label span, .smt-filters label span { display: block; margin-bottom: 4px; color: var(--smt-muted); font-size: 13px; font-weight: 650; }
.smt input[type="search"], .smt select, .smt button {
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font: inherit;
}
.smt input[type="search"], .smt select {
    width: 100%;
    color: var(--smt-ink);
    background: #fff;
    border: 1px solid #aebfd3;
    box-shadow: none;
}
.smt input[type="search"]::placeholder { opacity: 1; color: #596c84; }
.smt button { width: auto; border: 1px solid #173d65; background: #173d65; color: white; white-space: nowrap; cursor: pointer; font-weight: 690; }
.smt button:hover { background: #255b90; }
.smt-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; margin: 14px 0 30px; }
.smt-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 9px 13px;
    border: 1px solid var(--smt-line);
    border-radius: 10px;
    color: var(--smt-ink);
    background: #fff;
    font-weight: 650;
    text-decoration: none;
}
.smt-nav a:hover, .smt-nav a[aria-current="location"] { color: #104272; background: #e8f1fb; border-color: #c0d6ed; }
.smt-nav a span { color: var(--smt-link); }
.smt-page-heading { padding: 5px 0 18px; }
.smt-page-heading > p { margin-top: 12px; font-size: 17px; color: var(--smt-muted); }
.smt-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 0 0 17px; color: var(--smt-muted); font-size: 13px; }
.smt-section { margin: 0 0 23px; padding: clamp(15px, 2.8vw, 31px); border: 1px solid var(--smt-line); border-radius: 16px; background: var(--smt-sheet); }
.smt-section > h2, .smt-section-heading { margin-bottom: 16px; }
.smt-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.smt-section-heading a { text-align: end; white-space: nowrap; }
.smt-filters { flex-wrap: wrap; margin: 0 0 18px; }
.smt-filters label:has(input) { flex: 1 1 220px; }
.smt-filters label:has(select) { flex: 0 1 auto; }
.smt-filters select { min-width: 115px; }
.smt-intro { max-width: 72ch; margin: 9px 0 15px !important; }
.smt .smt-muted { color: var(--smt-muted); font-size: 13px; }
.smt-section > p.smt-muted { margin: 0 0 12px; }
.smt-empty, .smt-notice { margin: 5px 0 12px !important; padding: 15px; border-radius: 8px; background: #f2f6fb; border: 1px solid var(--smt-line); }
.smt-notice { background: #fff7e7; border-color: #ecd9b3; color: #5c471f !important; }
.smt-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--smt-line); border-radius: 10px; }
.smt .smt-table { width: 100%; min-width: 660px; margin: 0; border: 0; border-collapse: collapse; background: #fff; font-size: 14px; text-align: start; }
.smt-table th, .smt-table td { padding: 11px 13px; border: 0; border-bottom: 1px solid var(--smt-line); text-align: start; vertical-align: top; }
.smt-table thead th { color: #354d6a; background: #edf3fa; font-size: 12px; font-weight: 700; white-space: nowrap; }
.smt-table tbody th { background: transparent; color: var(--smt-ink); font-weight: 680; }
.smt-table tbody tr:last-child > * { border-bottom: 0; }
.smt-table tbody tr:hover { background: #f6f9fd; }
.smt-table tbody small { display: block; color: var(--smt-muted); font-size: 11px; font-weight: 430; }
.smt-table tbody td > a { display: inline-block; font-size: 12px; }
.smt-table .smt-n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.smt-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.smt-move { font-weight: 720; }
.smt-up { color: var(--smt-up); }
.smt-down { color: var(--smt-down); }
.smt-metrics, .smt .smt-cards { margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.smt-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.smt-metrics div, .smt .smt-cards > li { min-width: 0; padding: 13px; border: 1px solid var(--smt-line); border-radius: 10px; background: #f7faff; }
.smt-metrics dt { color: var(--smt-muted); font-size: 12px; }
.smt-metrics dd { margin: 2px 0 0; font-size: clamp(15px, 2.1vw, 21px); font-weight: 720; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.smt .smt-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr)); margin-bottom: 0; list-style: none; }
.smt-cards > li > a { display: block; text-decoration: none; }
.smt-cards > li > a:hover strong { text-decoration: underline; }
.smt-cards > li > a span { display: block; margin-top: 4px; color: var(--smt-muted); font-size: 12px; }
.smt-articles article p { margin-top: 8px; }
.smt-disclosure { padding: 21px clamp(16px, 2.8vw, 32px); border-top: 2px solid #bed0e4; color: var(--smt-muted); background: #eaf1f9; border-radius: 10px; }
.smt-disclosure h2 { color: var(--smt-ink); font-size: 17px; }
.smt-disclosure p { margin: 8px 0 0; font-size: 13px; }
.smt-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; color: var(--smt-muted); font-size: 13px; }
.smt-pagination a { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 9px; }
.smt-sr, .smt-skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.smt-skip:focus { position: absolute; z-index: 10; inset: 6px auto auto 6px; padding: 10px; border-radius: 5px; background: #fff; color: #153558; }
@media (max-width: 680px) {
    .smt-hero { border-radius: 15px; }
    .smt-searches, .smt-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smt-searches { grid-template-columns: 1fr; }
    .smt-section-heading { align-items: start; flex-direction: column; gap: 6px; }
    .smt-filters label:has(input) { flex-basis: 100%; }
    .smt-metrics { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}

@media (max-width: 360px) {
    .smt-metrics { grid-template-columns: 1fr; }
}
