/* 正心官網新版：內頁（麵包屑、標題、公告列表與單篇、側欄、分頁、按鈕…）。選擇器一律掛在 body.shsh-v2 底下。
   範圍：只管內容區（麵包屑、.site-box 裡的側欄與主內容）；頁首、主選單、頁尾不在這支。
   所有規則都掛在 body.shsh-v2:not(.home)，首頁完全不受影響。
   字級一律用 em：頁首「小／預設／大」是改 #site-wrap 的字級（.rvfs-N），用 px 會讓切換失效。
   母佈景排版：main.site-box 是 display:table、側欄與內容是 table-cell（手機 767px 以下母佈景改成 flex 直排）；這裡不改它，
   卡片外觀做在內層（#main-content、.sidebar_block）上。 */

body.shsh-v2{
  --in-navy:#0d2b52; --in-navy-2:#173f73; --in-red:#b3132f; --in-gold:#c8962b;
  --in-paper:#f6f3ec; --in-ink:#1d2430; --in-mute:#5f6b7a; --in-line:#e3ddd0;
  --in-soft:#fbfaf6; --in-row:#efeae0; --in-field:#7d8796; --in-r:14px;
}

/* ===== 整頁底色：麵包屑列＋內容區 ===== */
/* 米底直接鋪在 #site-wrap（頁首、頁尾各有自己的底色）；不要用超大陰影往外鋪，會疊到手機 mmenu 選單面板上 */
body.shsh-v2:not(.home) #site-wrap,
body.shsh-v2:not(.home) .breadcrumb_wrap,
body.shsh-v2:not(.home) .breadcrumb_wrap + .container{background:var(--in-paper)}
body.shsh-v2:not(.home) .site-box .site-content,
body.shsh-v2:not(.home) .site-box .site-widget{background:transparent}
body.shsh-v2:not(.home) .site-box .site-widget,
body.shsh-v2:not(.home) .site-box .site-content{padding-top:1.25em;padding-bottom:3em}

/* ===== 麵包屑 ===== */
body.shsh-v2:not(.home) .breadcrumb_box{padding-top:1em;padding-bottom:0}
body.shsh-v2:not(.home) .breadcrumbs{font-size:.8em;line-height:1.6;color:var(--in-mute)}
body.shsh-v2:not(.home) .breadcrumbs a{color:var(--in-mute)}
body.shsh-v2:not(.home) .breadcrumbs a:hover,
body.shsh-v2:not(.home) .breadcrumbs a:focus{color:var(--in-red);text-decoration:underline}
body.shsh-v2:not(.home) .breadcrumbs .current-item{color:var(--in-ink);font-weight:500}

/* ===== 主內容卡片 ===== */
/* 卡片內距用 rem（不跟字級切換變動），內容寬度固定，PDF 內嵌檢視器等用 JS 量寬的外掛才不會在放大字級後被裁切 */
body.shsh-v2:not(.home) #main-content{
  background:#fff;border:1px solid var(--in-line);border-radius:var(--in-r);
  padding:1.75rem 2rem 2.25rem;font-size:.875em;line-height:1.8;color:var(--in-ink);min-height:0;
}

/* ===== 頁面大標題 ===== */
body.shsh-v2:not(.home) .page_title.default{margin:0 0 1.1em;padding:0;border:0;background:none;overflow:visible}
body.shsh-v2:not(.home) .tabs_header{margin:0;padding:0;border:0;background:none}
body.shsh-v2:not(.home) .page_title.default span.title{
  display:block;width:auto;padding:0 0 .45em;border:0;border-bottom:1px solid var(--in-line);
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-weight:900;font-size:1.65em;line-height:1.35;color:var(--in-navy);letter-spacing:.02em;
}
body.shsh-v2:not(.home) .page_title.default span.title:before{content:none}
body.shsh-v2:not(.home) .page_title.default span.title:after{
  content:"";display:block;width:2.2em;height:3px;border-radius:2px;background:var(--in-red);margin-top:.45em;margin-bottom:-.45em;position:relative;top:1px;
}
body.shsh-v2:not(.home) .page_title.default span.title em{
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-style:normal;font-weight:500;font-size:.5em;color:var(--in-mute);margin-left:.6em;letter-spacing:0;
}

/* ===== 內文排版 ===== */
body.shsh-v2:not(.home) .page_main_content,
body.shsh-v2:not(.home) .single_news .content{line-height:1.8;overflow-wrap:anywhere}
body.shsh-v2:not(.home) .page_main_content p,
body.shsh-v2:not(.home) .single_news .content p{margin:0 0 .9em}
body.shsh-v2:not(.home) .page_main_content ul:not([class]),
body.shsh-v2:not(.home) .page_main_content ol:not([class]),
body.shsh-v2:not(.home) .single_news .content ul:not([class]),
body.shsh-v2:not(.home) .single_news .content ol:not([class]){margin:0 0 1em;padding-left:1.4em}
body.shsh-v2:not(.home) .page_main_content li,
body.shsh-v2:not(.home) .single_news .content li{margin-bottom:.25em}
body.shsh-v2:not(.home) .page_main_content img,
body.shsh-v2:not(.home) .single_news .content img{max-width:100%;height:auto}
body.shsh-v2:not(.home) .page_main_content h2,
body.shsh-v2:not(.home) .single_news .content h2{font-size:1.4em;font-weight:700;color:var(--in-navy);line-height:1.45;margin:1.5em 0 .6em;padding:0;border:0;background:none}
body.shsh-v2:not(.home) .page_main_content h3,
body.shsh-v2:not(.home) .single_news .content h3{font-size:1.2em;font-weight:700;color:var(--in-navy-2);line-height:1.5;margin:1.4em 0 .5em;padding:0;border:0;background:none}
body.shsh-v2:not(.home) .page_main_content h4,
body.shsh-v2:not(.home) .single_news .content h4{font-size:1.05em;font-weight:700;color:var(--in-ink);line-height:1.6;margin:1.2em 0 .4em;padding:0;border:0;background:none}
body.shsh-v2:not(.home) .page_main_content > :first-child,
body.shsh-v2:not(.home) .single_news .content > :first-child{margin-top:0}

/* 內文連結：次深藍＋淡底線（不只靠顏色區分），hover／focus 紅色實線 */
/* 用 :where() 壓低權重，讓公告列表、搜尋、分頁等各自的連結色能蓋過 */
body.shsh-v2:not(.home) :where(#main-content) a{color:var(--in-navy-2)}
body.shsh-v2:not(.home) .page_main_content a:not(.cus_btn),
body.shsh-v2:not(.home) .single_news .content a:not(.cus_btn){text-decoration:underline;text-decoration-color:rgba(23,63,115,.35);text-underline-offset:.2em;text-decoration-thickness:1px}
body.shsh-v2:not(.home) :where(#main-content) a:hover,
body.shsh-v2:not(.home) :where(#main-content) a:focus{color:var(--in-red);text-decoration:underline;text-decoration-color:currentColor}

/* 內文表格（處室頁、分機表…）：細線、表頭淺底、斑馬紋；寬表格在內容區內橫向捲動 */
body.shsh-v2:not(.home) .page_main_content,
body.shsh-v2:not(.home) .single_news .content{overflow-x:auto;overflow-y:hidden}
/* PDF 內嵌檢視器（外掛）會用 JS 寫死比容器寬 2px 的寬度，限制在容器內，免得內容區多出 2px 的橫向捲動 */
body.shsh-v2:not(.home) #main-content .pdfemb-viewer{max-width:100%}
body.shsh-v2:not(.home) .page_main_content table:not(.nt_table),
body.shsh-v2:not(.home) .single_news .content table{border-collapse:collapse;margin:0 0 1.2em;font-size:.95em;line-height:1.6;background:#fff}
body.shsh-v2:not(.home) .page_main_content table:not(.nt_table) th,
body.shsh-v2:not(.home) .page_main_content table:not(.nt_table) td,
body.shsh-v2:not(.home) .single_news .content th,
body.shsh-v2:not(.home) .single_news .content td{border:1px solid var(--in-line);padding:.5em .75em;vertical-align:top;color:var(--in-ink)}
body.shsh-v2:not(.home) .page_main_content table:not(.nt_table) th,
body.shsh-v2:not(.home) .single_news .content th{background:#f3efe6;color:var(--in-navy);font-weight:700;text-align:left}
body.shsh-v2:not(.home) .page_main_content table:not(.nt_table) tbody tr:nth-child(even) td,
body.shsh-v2:not(.home) .single_news .content tbody tr:nth-child(even) td{background:var(--in-soft)}

/* ===== 按鈕（只管內容區，不碰頁首的字級鈕）===== */
body.shsh-v2:not(.home) .site-box .cus_btn{
  border-radius:99px;padding:.4em 1.2em;font-weight:600;line-height:1.5;font-size:.95em;
  background:#fff;color:var(--in-navy-2);border:1px solid var(--in-navy-2);
}
body.shsh-v2:not(.home) .site-box .cus_btn:hover,
body.shsh-v2:not(.home) .site-box .cus_btn:focus{background:#eef2f8;color:var(--in-navy);border-color:var(--in-navy)}
body.shsh-v2:not(.home) .site-box .cus_btn.red{background:var(--in-red);color:#fff;border-color:var(--in-red)}
body.shsh-v2:not(.home) .site-box .cus_btn.red:hover,
body.shsh-v2:not(.home) .site-box .cus_btn.red:focus{background:#8f0f26;border-color:#8f0f26;color:#fff}
body.shsh-v2:not(.home) .site-box .cus_btn.blue{background:var(--in-navy);color:#fff;border-color:var(--in-navy)}
body.shsh-v2:not(.home) .site-box .cus_btn.blue:hover,
body.shsh-v2:not(.home) .site-box .cus_btn.blue:focus{background:var(--in-navy-2);border-color:var(--in-navy-2);color:#fff}

/* ===== 鍵盤焦點：母佈景是 2px 橘色 !important、內縮；內容區改 3px 次深藍外框（要蓋過母佈景只能 !important）===== */
body.shsh-v2:not(.home) .breadcrumb_wrap a:focus,
body.shsh-v2:not(.home) .site-box a:focus,
body.shsh-v2:not(.home) .site-box button:focus,
body.shsh-v2:not(.home) .site-box input:focus,
body.shsh-v2:not(.home) .site-box select:focus,
body.shsh-v2:not(.home) .site-box textarea:focus{outline:3px solid var(--in-navy-2) !important;outline-offset:2px !important}
/* 側欄卡片有 overflow:hidden（圓角），焦點框改畫在內側才不會被裁掉；深藍標題上的連結改用金色框 */
body.shsh-v2:not(.home) .site-box .sidebar_block a:focus{outline-offset:-3px !important}
body.shsh-v2:not(.home) .site-box .sidebar_title a:focus{outline-color:#ffd98a !important}

/* ===== 側欄 ===== */
body.shsh-v2:not(.home) #sidebar-left,
body.shsh-v2:not(.home) #sidebar-right{font-size:.85em;line-height:1.6}
body.shsh-v2:not(.home) .sb_style01 .sidebar_block{
  background:#fff;border:1px solid var(--in-line);border-radius:var(--in-r);margin:0 0 1.25em;overflow:hidden;
}
body.shsh-v2:not(.home) .sb_style01 .sidebar_title{background:var(--in-navy);padding:.75em 1.1em;font-size:1.05em;line-height:1.45;font-weight:700}
body.shsh-v2:not(.home) .sb_style01 .sidebar_title:before,
body.shsh-v2:not(.home) .sb_style01 .sidebar_title:after,
body.shsh-v2:not(.home) .sb_style01 .sidebar_block .sidebar_title:after{content:none}
body.shsh-v2:not(.home) .sb_style01 .sidebar_title .title,
body.shsh-v2:not(.home) .sb_style01 .sidebar_title a,
body.shsh-v2:not(.home) .sb_style01 .sidebar_title .title a{color:#fff;font-size:1em;font-weight:700}
body.shsh-v2:not(.home) .sb_style01 .sidebar_title a:hover,
body.shsh-v2:not(.home) .sb_style01 .sidebar_title a:focus{color:#ffd98a;text-decoration:underline}
body.shsh-v2:not(.home) .sidebar_block ul{list-style:none;margin:0;padding:0}
body.shsh-v2:not(.home) .sb_style01 .sidebar_block[class] ul > li,
body.shsh-v2:not(.home) .sidebar_block ul li{margin:0;padding:0;border:0}
body.shsh-v2:not(.home) .sidebar_block ul li > a,
body.shsh-v2:not(.home) .sidebar_block ul li > span{
  display:block;padding:.6em 1.1em;font-size:1em;line-height:1.5;color:var(--in-ink);border-top:1px solid var(--in-row);
}
body.shsh-v2:not(.home) .sidebar_block > div:first-of-type + div > ul > li:first-child > a,
body.shsh-v2:not(.home) .sidebar_block > div:first-of-type + div > ul > li:first-child > span{border-top:0}
body.shsh-v2:not(.home) .sidebar_block ul li > a:before,
body.shsh-v2:not(.home) .sidebar_block .sub_cat_box ul li > a:before,
body.shsh-v2:not(.home) .sidebar_block .sub_section_box ul li > a:before,
body.shsh-v2:not(.home) .sb_style01 .sidebar_block.office_list .unit_box a:before,
body.shsh-v2:not(.home) ul.news_tree li > a:before{content:none}
body.shsh-v2:not(.home) .sidebar_block ul ul li > a{padding-left:2.1em;font-size:.95em}
body.shsh-v2:not(.home) .sidebar_block ul ul ul li > a{padding-left:3em}
body.shsh-v2:not(.home) .sidebar_block ul li a em{font-style:normal;color:var(--in-mute);opacity:1;font-size:.85em;margin-left:.2em}
body.shsh-v2:not(.home) .sidebar_block ul li a:hover{color:var(--in-red);background:var(--in-soft)}
body.shsh-v2:not(.home) .sidebar_block ul li a:hover:not(:focus){outline:0 !important}
body.shsh-v2:not(.home) .sidebar_block ul li a:focus{color:var(--in-red)}
body.shsh-v2:not(.home) .sidebar_block .sub_section_box,
body.shsh-v2:not(.home) .sb_style01 .sub_post_box + .sub_cat_box{border-top:1px solid var(--in-line);border-style:solid;border-width:1px 0 0}
body.shsh-v2:not(.home) .sidebar_block .sub_section_box ul li > a{padding-left:1.8em;color:var(--in-mute)}
body.shsh-v2:not(.home) .sidebar_block .sub_section_box ul li > a:hover{color:var(--in-red)}
/* 目前所在項目 */
body.shsh-v2:not(.home) .sidebar_block ul li > span.current,
body.shsh-v2:not(.home) .sidebar_block ul li > a.current,
body.shsh-v2:not(.home) .sidebar_block ul li.current > a{
  color:var(--in-red);font-weight:700;background:#fff6f6;box-shadow:inset 3px 0 0 var(--in-red);
}
/* 側欄的「相關公告」 */
body.shsh-v2:not(.home) .sb_style01 .sidebar_block[class] .sb_news_list ul > li{padding:.7em 1.1em;border-top:1px solid var(--in-row)}
body.shsh-v2:not(.home) .sb_style01 .sidebar_block[class] .sb_news_list ul > li:first-child{border-top:0}
body.shsh-v2:not(.home) .sb_news_list .news_attr{font-size:.85em;color:var(--in-mute);line-height:1.5;font-variant-numeric:tabular-nums}
body.shsh-v2:not(.home) .sb_news_list .news_attr span{color:var(--in-mute);margin-right:.6em}
body.shsh-v2:not(.home) .sb_news_list p{margin:.15em 0 0;line-height:1.5}
body.shsh-v2:not(.home) .sb_news_list p a{color:var(--in-ink)}
body.shsh-v2:not(.home) .sb_news_list p a:hover,
body.shsh-v2:not(.home) .sb_news_list p a:focus{color:var(--in-red);text-decoration:underline}
body.shsh-v2:not(.home) .sb_news_list p.current{color:var(--in-red);font-weight:700}
body.shsh-v2:not(.home) .sb_news_list li:has(p.current){background:#fff6f6;box-shadow:inset 3px 0 0 var(--in-red)}

/* ===== 公告查詢工具列 ===== */
body.shsh-v2:not(.home) .news_tool_bar{background:var(--in-soft);border:1px solid var(--in-line);border-radius:12px;padding:.9em 1.1em;margin:0 0 1.2em;font-size:.95em}
body.shsh-v2:not(.home) #news_query_form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.7em 1em;margin:0}
body.shsh-v2:not(.home) #news_query_form .query_item{flex:1 1 10em;max-width:none;display:block;padding:0;margin:0;text-align:left}
body.shsh-v2:not(.home) #news_query_form .query_item.submit{flex:0 0 auto}
body.shsh-v2:not(.home) #news_query_form .query_item label{display:block;font-size:.85em;font-weight:700;color:var(--in-navy);margin:0 0 .25em;line-height:1.4}
body.shsh-v2:not(.home) #news_query_form .query_item label.display_none{position:absolute}
body.shsh-v2:not(.home) #news_query_form select,
body.shsh-v2:not(.home) #news_query_form input[type="text"]{
  width:100%;max-width:none;height:2.5em;padding:0 .8em;border:1px solid var(--in-field);border-radius:10px;background-color:#fff;color:var(--in-ink);font-size:1em;line-height:1.4;box-shadow:none;
}
body.shsh-v2:not(.home) #news_query_form .cus_btn{height:2.5em;margin:0;padding:0 1.5em;font-size:1em}

/* ===== 公告列表（桌機：表格）===== */
body.shsh-v2:not(.home) table.nt_table{
  width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--in-line);border-radius:12px;overflow:hidden;margin:0;background:#fff;line-height:1.55;
}
body.shsh-v2:not(.home) .page_main_content .nt_table a{text-decoration:none}
body.shsh-v2:not(.home) .nt_table thead th{
  background:var(--in-soft);color:var(--in-mute);font-weight:700;font-size:.85em;padding:.7em .8em;border:0;border-bottom:1px solid var(--in-line);text-align:center;white-space:nowrap;
}
body.shsh-v2:not(.home) .nt_table thead th:nth-child(2){text-align:left}
body.shsh-v2:not(.home) .nt_table td{padding:.75em .8em;border:0;border-top:1px solid var(--in-row);vertical-align:middle;background:transparent}
body.shsh-v2:not(.home) .nt_table tbody tr:first-child td{border-top:0}
body.shsh-v2:not(.home) .nt_table tbody tr:nth-child(even) td{background:transparent}
body.shsh-v2:not(.home) .nt_table tbody tr:hover{outline:0 !important}
body.shsh-v2:not(.home) .nt_table tbody tr:hover td{background:var(--in-soft)}
body.shsh-v2:not(.home) .nt_table td.nt_date{color:var(--in-mute);font-size:.9em;font-variant-numeric:tabular-nums;width:7.2em}
body.shsh-v2:not(.home) .nt_table td.nt_subject a{color:var(--in-ink);font-weight:500}
body.shsh-v2:not(.home) .nt_table td.nt_subject a:hover,
body.shsh-v2:not(.home) .nt_table td.nt_subject a:focus{color:var(--in-red)}
body.shsh-v2:not(.home) .nt_table td.nt_subject img{vertical-align:-2px}
body.shsh-v2:not(.home) .nt_table td.nt_category{font-size:.85em;width:6.4em}
body.shsh-v2:not(.home) .nt_table td.nt_category a{color:var(--in-mute)}
body.shsh-v2:not(.home) .nt_table td.nt_category a:hover,
body.shsh-v2:not(.home) .nt_table td.nt_category a:focus{color:var(--in-red)}
body.shsh-v2:not(.home) .nt_table td.nt_unit{width:7.4em}
body.shsh-v2:not(.home) .nt_table td.nt_unit,
body.shsh-v2:not(.home) .nt_table td.nt_view{font-size:.85em}
body.shsh-v2:not(.home) .nt_table td.nt_unit{color:var(--in-navy-2)}
body.shsh-v2:not(.home) .nt_table td.nt_view{color:var(--in-mute);opacity:1;font-variant-numeric:tabular-nums;width:4.8em}
/* 置頂列 */
body.shsh-v2:not(.home) .nt_table tbody tr.sticky td{background:#fff6f6}
body.shsh-v2:not(.home) .nt_table tbody tr.sticky:hover td{background:#ffeeee}
body.shsh-v2:not(.home) .nt_table tr.sticky td.nt_subject a{color:#5a1020}
body.shsh-v2:not(.home) .nt_table tr.sticky td.nt_subject a:hover,
body.shsh-v2:not(.home) .nt_table tr.sticky td.nt_subject a:focus{color:var(--in-red)}
body.shsh-v2:not(.home) .sticky_text{
  background:var(--in-red);color:#fff;font-size:.72em;font-weight:700;border-radius:4px;padding:.1em .5em;min-width:0;margin-right:.5em;vertical-align:.12em;line-height:1.5;
}
body.shsh-v2:not(.home) .nt_table .file_type,
body.shsh-v2:not(.home) .article_title .file_type{
  background:#fff3d6;color:#7a4f00;border:1px solid #e9cf8f;font-size:.72em;font-weight:700;border-radius:4px;padding:0 .45em;min-width:0;margin-right:.5em;vertical-align:.12em;line-height:1.5;
}

/* ===== 分頁 ===== */
body.shsh-v2:not(.home) .pagination_box{display:flex;flex-wrap:wrap;gap:.4em;background:none;padding:0;margin:1.4em 0 0}
body.shsh-v2:not(.home) .pagination_box span.page-numbers,
body.shsh-v2:not(.home) .pagination_box a.page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:2.5em;height:2.5em;padding:0 .8em;margin:0;
  border:1px solid var(--in-line);border-radius:10px;background:#fff;color:var(--in-navy-2);font-weight:500;line-height:1;font-variant-numeric:tabular-nums;
}
body.shsh-v2:not(.home) .pagination_box a.page-numbers:hover,
body.shsh-v2:not(.home) .pagination_box a.page-numbers:focus{border-color:var(--in-red);color:var(--in-red);background:#fff}
body.shsh-v2:not(.home) .pagination_box .page-numbers.current{background:var(--in-navy);border-color:var(--in-navy);color:#fff;font-weight:700}
body.shsh-v2:not(.home) .pagination_box .page-numbers.dots{border-color:transparent;background:none;color:var(--in-mute);min-width:1.5em;padding:0}

/* 處室頁「最新消息」表格下的 JS 分頁（#pga > a.pga_btn） */
body.shsh-v2:not(.home) #pga{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;background:none;padding:0;margin:1.2em 0 0}
body.shsh-v2:not(.home) #pga a.pga_btn{
  display:inline-flex;align-items:center;justify-content:center;min-width:2.5em;height:2.5em;padding:0 .8em;
  border:1px solid var(--in-line);border-radius:10px;background:#fff;color:var(--in-navy-2);font-weight:500;line-height:1;text-decoration:none;font-variant-numeric:tabular-nums;
}
body.shsh-v2:not(.home) #pga a.pga_btn:hover{border-color:var(--in-red);color:var(--in-red)}
body.shsh-v2:not(.home) #pga a.pga_btn.active{background:var(--in-navy);border-color:var(--in-navy);color:#fff;font-weight:700}
body.shsh-v2:not(.home) #pga span{color:var(--in-mute);padding:0 .3em}

/* ===== 單篇公告 ===== */
body.shsh-v2:not(.home) table.single_news{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0}
body.shsh-v2:not(.home) table.single_news th.newsth,
body.shsh-v2:not(.home) table.single_news td.newstd{border:0;padding:.4em .9em;vertical-align:top;background:none}
body.shsh-v2:not(.home) table.single_news th.newsth{width:6.6em;color:var(--in-mute);font-weight:700;font-size:.85em;text-align:left;vertical-align:top;padding-top:.6em;white-space:nowrap}
/* 標題列 */
body.shsh-v2:not(.home) table.single_news tr.news_title th.newsth{padding-top:.95em}
body.shsh-v2:not(.home) table.single_news tr.news_title td.newstd{
  color:var(--in-navy);font-size:1.4em;font-weight:700;line-height:1.45;padding:.3em .65em .65em;
}
/* 中繼資料：日期／單位／類別／等級／點閱 收成一組 */
body.shsh-v2:not(.home) table.single_news tr.news_date > *,
body.shsh-v2:not(.home) table.single_news tr.news_unit > *,
body.shsh-v2:not(.home) table.single_news tr.news_cat > *,
body.shsh-v2:not(.home) table.single_news tr.news_type > *,
body.shsh-v2:not(.home) table.single_news tr.news_view > *{background:var(--in-soft);padding-top:.3em;padding-bottom:.3em}
body.shsh-v2:not(.home) table.single_news tr.news_date > *,
body.shsh-v2:not(.home) table.single_news tr.news_unit > *,
body.shsh-v2:not(.home) table.single_news tr.news_cat > *,
body.shsh-v2:not(.home) table.single_news tr.news_type > *,
body.shsh-v2:not(.home) table.single_news tr.news_view > *{border-color:var(--in-line);border-style:solid;border-width:0}
body.shsh-v2:not(.home) table.single_news tr.news_date > *{padding-top:.75em;border-top-width:1px}
body.shsh-v2:not(.home) table.single_news tr.news_view > *{padding-bottom:.75em;border-bottom-width:1px}
body.shsh-v2:not(.home) table.single_news tr.news_date > th,
body.shsh-v2:not(.home) table.single_news tr.news_unit > th,
body.shsh-v2:not(.home) table.single_news tr.news_cat > th,
body.shsh-v2:not(.home) table.single_news tr.news_type > th,
body.shsh-v2:not(.home) table.single_news tr.news_view > th{border-left-width:1px;padding-left:1.1em}
body.shsh-v2:not(.home) table.single_news tr.news_date > td,
body.shsh-v2:not(.home) table.single_news tr.news_unit > td,
body.shsh-v2:not(.home) table.single_news tr.news_cat > td,
body.shsh-v2:not(.home) table.single_news tr.news_type > td,
body.shsh-v2:not(.home) table.single_news tr.news_view > td{border-right-width:1px;font-size:.92em;color:var(--in-ink)}
body.shsh-v2:not(.home) table.single_news tr.news_date > th{border-top-left-radius:12px}
body.shsh-v2:not(.home) table.single_news tr.news_date > td{border-top-right-radius:12px;font-variant-numeric:tabular-nums}
body.shsh-v2:not(.home) table.single_news tr.news_view > th{border-bottom-left-radius:12px}
body.shsh-v2:not(.home) table.single_news tr.news_view > td{border-bottom-right-radius:12px;font-variant-numeric:tabular-nums}
body.shsh-v2:not(.home) table.single_news tr.news_unit > td{color:var(--in-navy-2);font-weight:500}
/* 內文 */
body.shsh-v2:not(.home) table.single_news tr.news_content > *{padding-top:1.6em;padding-bottom:1.2em}
body.shsh-v2:not(.home) table.single_news .news_content .content{min-height:6em;word-break:normal;line-height:1.8}
/* 附件 */
body.shsh-v2:not(.home) table.single_news td.news_attach{background:#f3f6fb;border:1px solid #d5deeb;border-radius:12px;padding:.8em 1em}
body.shsh-v2:not(.home) table.single_news td.news_attach + *,
body.shsh-v2:not(.home) table.single_news tr:has(> td.news_attach) > th{padding-top:1.4em}
body.shsh-v2:not(.home) table.single_news tr:has(> td.news_attach) > th{color:var(--in-navy-2)}
body.shsh-v2:not(.home) #main-content ul.file_list{margin:0 0 .6em;padding:0}
body.shsh-v2:not(.home) #main-content ul.file_list > li{padding:.15em 0}
body.shsh-v2:not(.home) #main-content a.file_link{
  display:inline-block;padding:.45em 1em .45em .85em;border:1px solid #c5d2e4;border-radius:10px;background:#fff;
  color:var(--in-navy-2);font-weight:600;line-height:1.5;text-decoration:none;
}
body.shsh-v2:not(.home) #main-content a.file_link:hover,
body.shsh-v2:not(.home) #main-content a.file_link:focus{border-color:var(--in-red);color:var(--in-red);text-decoration:underline}
body.shsh-v2:not(.home) #main-content ul.file_list li > em{font-style:normal;color:var(--in-mute);font-size:.85em;margin-left:.4em}

/* 上一則／下一則 */
body.shsh-v2:not(.home) .post_nav{margin:1.8em 0 0;border:0;padding:0;background:none}
body.shsh-v2:not(.home) .post_nav_list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8em;list-style:none;margin:0;padding:0}
body.shsh-v2:not(.home) .post_nav_list li{
  white-space:normal;overflow:visible;margin:0;padding:.8em 1.1em;border:1px solid var(--in-line);border-radius:12px;background:#fff;line-height:1.55;
}
body.shsh-v2:not(.home) .post_nav_list li.left{order:1;margin:0}
body.shsh-v2:not(.home) .post_nav_list li.right{order:2;text-align:right}
body.shsh-v2:not(.home) .post_nav_list li:only-child.right{grid-column:2}
body.shsh-v2:not(.home) .post_nav_list li:hover,
body.shsh-v2:not(.home) .post_nav_list li:focus-within{border-color:var(--in-navy-2);background:var(--in-soft)}
body.shsh-v2:not(.home) .post_nav_list li.left:before,
body.shsh-v2:not(.home) .post_nav_list li.right:before{display:block;color:var(--in-mute);font-weight:700;font-size:.8em;margin-bottom:.15em}
body.shsh-v2:not(.home) .post_nav_list li.left:before{content:"‹ 上一則"}
body.shsh-v2:not(.home) .post_nav_list li.right:before{content:"下一則 ›"}
body.shsh-v2:not(.home) .post_nav_list li a{display:block;color:var(--in-ink);font-weight:500}
body.shsh-v2:not(.home) .post_nav_list li .post_nav_date{display:block;color:var(--in-mute);opacity:1;font-size:.85em;font-weight:400;font-variant-numeric:tabular-nums}

/* ===== 搜尋結果 ===== */
body.shsh-v2:not(.home) ul.search_list{list-style:none;margin:0;padding:0}
body.shsh-v2:not(.home) ul.search_list li{margin:0;padding:.9em 0;border-bottom:1px solid var(--in-row)}
body.shsh-v2:not(.home) ul.search_list li:first-child{padding-top:0}
body.shsh-v2:not(.home) ul.search_list li .search_cat{margin-right:.35em}
body.shsh-v2:not(.home) ul.search_list li .search_cat a{background:#eef2f8;color:var(--in-navy-2);font-size:.8em;border-radius:99px;padding:.1em .75em;line-height:1.6}
body.shsh-v2:not(.home) ul.search_list li .search_cat a:hover,
body.shsh-v2:not(.home) ul.search_list li .search_cat a:focus{background:var(--in-navy-2);color:#fff;text-decoration:none}
body.shsh-v2:not(.home) ul.search_list li > a{display:block;margin-top:.3em;color:var(--in-ink);font-weight:500;font-size:1.05em}
body.shsh-v2:not(.home) ul.search_list li > a:hover,
body.shsh-v2:not(.home) ul.search_list li > a:focus{color:var(--in-red)}
body.shsh-v2:not(.home) ul.search_list mark{background:#fff3d6;color:inherit;padding:0 .1em;border-radius:2px}

/* ===== 網站導覽 ===== */
body.shsh-v2:not(.home) .guide_page .user_title .title{color:var(--in-navy)}

/* ===== 平板／手機 ===== */
@media (max-width:1023px){
  body.shsh-v2:not(.home) #main-content{padding:1.4rem 1.3rem 1.8rem}
}

/* 公告列表：900px 以下改卡片（母佈景 599px 以下就用 td[data-title] 堆疊；這裡提早並改成首頁公告的樣子） */
@media (max-width:900px){
  body.shsh-v2:not(.home) table.nt_table,
  body.shsh-v2:not(.home) table.nt_table tbody{display:block;width:100%}
  body.shsh-v2:not(.home) .nt_table thead{display:none}
  body.shsh-v2:not(.home) .nt_table tr,
  body.shsh-v2:not(.home) .nt_table tr:first-of-type{
    display:flex;flex-wrap:wrap;align-items:center;gap:.3em .7em;padding:.85em 1em;border:0;border-top:1px solid var(--in-row);
  }
  body.shsh-v2:not(.home) .nt_table tbody tr:first-child{border-top:0}
  body.shsh-v2:not(.home) table.nt_table tbody tr.sticky{background:#fff6f6}
  body.shsh-v2:not(.home) table.nt_table tbody tr:hover{background:var(--in-soft)}
  body.shsh-v2:not(.home) table.nt_table tbody tr.sticky:hover{background:#ffeeee}
  /* 每格：選擇器刻意寫長，蓋過上面桌機規則與母佈景 599px 的 data-title 標籤 */
  body.shsh-v2:not(.home) table.nt_table tbody tr > td,
  body.shsh-v2:not(.home) table.nt_table tbody tr.sticky > td,
  body.shsh-v2:not(.home) table.nt_table tbody tr:hover > td{display:block;width:auto;min-width:0;padding:0;border:0;background:none;text-align:left;white-space:nowrap;line-height:1.55}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td:not(.nt_link):before{content:none}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td[class]{width:auto}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_subject{order:1;flex:0 0 100%;white-space:normal;font-size:1.02em}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_subject a{display:block}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_date{order:2;font-size:.85em}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_unit{order:3;font-size:.8em;background:#eef2f8;border-radius:99px;padding:0 .75em}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_category{order:4;font-size:.8em}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_view{order:5;font-size:.8em;margin-left:auto}
  body.shsh-v2:not(.home) table.nt_table tbody tr > td.nt_view:before{content:"瀏覽 ";color:var(--in-mute);font-weight:400}
}
/* 桌機上的單位膠囊（901px 以上）：單位是 td 裡的純文字，沒有可套樣式的元素，用 ::before 在文字後面墊一顆淡藍膠囊 */
@media (min-width:901px){
  body.shsh-v2:not(.home) .nt_table td.nt_unit{position:relative;z-index:0}
  body.shsh-v2:not(.home) .nt_table td.nt_unit:before{
    content:"";position:absolute;z-index:-1;left:.45em;right:.45em;top:50%;height:1.8em;transform:translateY(-50%);border-radius:99px;background:#eef2f8;
  }
}

@media (max-width:767px){
  body.shsh-v2:not(.home) .breadcrumb_box{padding-top:.7em}
  body.shsh-v2:not(.home) .site-box .site-widget,
  body.shsh-v2:not(.home) .site-box .site-content{padding-top:.6em;padding-bottom:.4em;margin-bottom:.6em}
  body.shsh-v2:not(.home) #main-content{padding:1.1rem 1rem 1.4rem;border-radius:12px}
  body.shsh-v2:not(.home) .page_title.default span.title{font-size:1.4em}
  body.shsh-v2:not(.home) .page_title.default span.title em{display:inline-block;margin-left:.3em}
  body.shsh-v2:not(.home) .news_tool_bar{padding:.8em}
  body.shsh-v2:not(.home) #news_query_form .query_item{flex:1 1 100%}
  body.shsh-v2:not(.home) #news_query_form .query_item.submit{flex:1 1 100%}
  body.shsh-v2:not(.home) #news_query_form .cus_btn{width:100%}
  body.shsh-v2:not(.home) .nt_table tr,
  body.shsh-v2:not(.home) .nt_table tr:first-of-type{padding:.8em .85em}
  body.shsh-v2:not(.home) .post_nav_list{grid-template-columns:1fr}
  body.shsh-v2:not(.home) .post_nav_list li.right{text-align:left}
  body.shsh-v2:not(.home) .post_nav_list li:only-child.right{grid-column:auto}
  body.shsh-v2:not(.home) .sb_style01 .sidebar_block{margin-bottom:.9em}
}

/* 單篇公告在手機：標籤在上、內容在下 */
@media (max-width:599px){
  body.shsh-v2:not(.home) table.single_news,
  body.shsh-v2:not(.home) table.single_news tbody,
  body.shsh-v2:not(.home) table.single_news tr{display:block;width:100%}
  body.shsh-v2:not(.home) table.single_news th.newsth,
  body.shsh-v2:not(.home) table.single_news td.newstd{display:block;width:auto}
  body.shsh-v2:not(.home) table.single_news tr.news_title th.newsth{padding:0 0 .1em}
  body.shsh-v2:not(.home) table.single_news tr.news_title td.newstd{padding:0 0 .7em;font-size:1.25em}
  /* 中繼資料：每列「標籤 值」橫排 */
  body.shsh-v2:not(.home) table.single_news tr.news_date,
  body.shsh-v2:not(.home) table.single_news tr.news_unit,
  body.shsh-v2:not(.home) table.single_news tr.news_cat,
  body.shsh-v2:not(.home) table.single_news tr.news_type,
  body.shsh-v2:not(.home) table.single_news tr.news_view{display:flex;background:var(--in-soft);border:solid var(--in-line);border-width:0 1px}
  body.shsh-v2:not(.home) table.single_news tr.news_date{border-top-width:1px;border-radius:12px 12px 0 0;padding-top:.5em}
  body.shsh-v2:not(.home) table.single_news tr.news_view{border-bottom-width:1px;border-radius:0 0 12px 12px;padding-bottom:.5em}
  body.shsh-v2:not(.home) table.single_news tr.news_date > *,
  body.shsh-v2:not(.home) table.single_news tr.news_unit > *,
  body.shsh-v2:not(.home) table.single_news tr.news_cat > *,
  body.shsh-v2:not(.home) table.single_news tr.news_type > *,
  body.shsh-v2:not(.home) table.single_news tr.news_view > *{border:0;border-radius:0;background:none;padding:.2em .9em}
  body.shsh-v2:not(.home) table.single_news tr.news_date > th,
  body.shsh-v2:not(.home) table.single_news tr.news_unit > th,
  body.shsh-v2:not(.home) table.single_news tr.news_cat > th,
  body.shsh-v2:not(.home) table.single_news tr.news_type > th,
  body.shsh-v2:not(.home) table.single_news tr.news_view > th{flex:0 0 5.6em;padding-right:0;padding-top:.32em}
  body.shsh-v2:not(.home) table.single_news tr.news_date > td,
  body.shsh-v2:not(.home) table.single_news tr.news_unit > td,
  body.shsh-v2:not(.home) table.single_news tr.news_cat > td,
  body.shsh-v2:not(.home) table.single_news tr.news_type > td,
  body.shsh-v2:not(.home) table.single_news tr.news_view > td{flex:1 1 auto;min-width:0;padding-left:.6em}
  body.shsh-v2:not(.home) table.single_news tr.news_content > th,
  body.shsh-v2:not(.home) table.single_news tr:has(> td.news_attach) > th{padding:1.2em 0 .3em}
  body.shsh-v2:not(.home) table.single_news tr.news_content > td{padding:0 0 .6em}
  body.shsh-v2:not(.home) table.single_news td.news_attach{padding:.7em .8em}
}
