@charset "utf-8";
/* /hm/user_content/themes/tirWH1.09/sf-lists.css */
/* Sidebar rankings (熱帖週排行 / 網站週排行: .ns-list in sidebar-front.php, sidebar-tv.php), 2026-11-05.
   Was: every title bold and coloured, rows touching, the rank number glued to the title ("1.董軍…") — too crowded,
   especially on phones. Now: number in its own column (top 3 red), dark normal-weight title (2 lines max), a divider
   and breathing room per row. Loaded site-wide from functions.php (wp_head). */
.nTab1 .ns-list { margin: 4px 0 0 !important; padding: 0 !important; }
.nTab1 .ns-list .height1 { margin: 0 !important; padding: 0 !important; height: auto !important; }
.nTab1 .ns-list .height1 > li {
	display: block !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 11px 0 !important;
	overflow: visible !important; -webkit-line-clamp: unset !important; border-bottom: 1px solid #eceef2; background: none !important; list-style: none;
}
.nTab1 .ns-list .height1:last-child > li { border-bottom: 0; }
.nTab1 .ns-list li a {
	display: grid !important; grid-template-columns: 26px minmax(0, 1fr); gap: 0 6px; align-items: start;
	font-weight: 500 !important; color: #1d2230 !important; text-decoration: none;
}
.nTab1 .ns-list li a:hover .ns-t { color: #192f65; text-decoration: underline; text-underline-offset: 3px; }
.nTab1 .ns-list .ns-n { font-weight: 700; color: #8c929c; font-variant-numeric: tabular-nums; text-align: left; }
.nTab1 .ns-list .top1 .ns-n, .nTab1 .ns-list .top2 .ns-n, .nTab1 .ns-list .top3 .ns-n { color: #c8102e; }
.nTab1 .ns-list .ns-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 800px) {
	.nTab1 .ns-list .height1 > li { padding: 13px 0 !important; }
	.nTab1 .ns-list li a, .main .nTab1 .ns-list li a { font-size: 17px !important; line-height: 1.55 !important; grid-template-columns: 30px minmax(0, 1fr); }
}

/* 2026-11-05 phones: the sidebar stacks under the content but kept its 15px desktop gutter (padding-left), so sidebar
   lists sat 30px from the left edge and 15px from the right. Even both sides, and run the 推薦文章 divider across the
   whole row (it was only above the title, not the photo). */
@media (max-width: 800px) {
	.sidebar { padding-left: 0 !important; }
	.more_post .one_post { display: flow-root; margin: 0 0 12px !important; padding: 12px 0 0 !important; border-top: 1px solid #ddd; }
	.more_post .subcat_title + .one_post { padding-top: 4px !important; border-top: 0; }
	.news-single .more_post .one_post .text, .news .more_post .one_post .text { border-top: 0 !important; }
	.more_post + .right-panel { margin-top: 28px; }
	/* 網站月排行: was capped at 350px with a 15% number column, so rows were inset 5px left and 13px right */
	.sidebar .ns-listmon { max-width: none; margin: 10px 0 0 !important; padding: 0 !important; }
	.sidebar .ns-listmon li[class*="top"] .numb { width: 36px; }
	.sidebar .ns-listmon li[class*="top"] .text { width: calc(100% - 36px); padding-left: 6px; }
}

/* 2026-11-05 mobile audit: text under 12px and tap targets under ~32px tall. Hit areas grow with padding offset by
   negative margins, so nothing moves visually. */
footer .copyright { font-size: 13px !important; }
.pri-inline-ad__sponsor { font-size: 12px !important; }
.sfw-fine, .sfw-fine a { font-size: 12.5px !important; }
@media (max-width: 800px) {
	.top_row #menu-topbar-menu > li > a { display: inline-block; padding-top: 6px !important; padding-bottom: 6px !important; margin-top: -6px; margin-bottom: -6px; }
	footer .links li > a, .breadcrumb a, .sf-sec-crumb a { display: inline-block; padding-top: 7px; padding-bottom: 7px; margin-top: -7px; margin-bottom: -7px; }
	.sf-fs-dot { position: relative; }
	.sf-fs-dot::before { content: ""; position: absolute; left: -2px; right: -2px; top: -14px; bottom: -14px; }
}

/* /hm/user_content/themes/tirWH1.09/sf-nav.css */
/* Desktop main menu dropdowns (>=800px), 2026-11-05.
   Before: hovering a section revealed its sub-links as a loose second row of text across the header, anchored to the
   left of the menu (not to the item), and moving the mouse down crossed other sections and swapped the row.
   Now: each section opens its own panel directly under it — white, gold top rule, vertical list, ▾ on sections that
   have sub-links. Opens on hover or keyboard focus; closing waits 0.25 s so the pointer can travel into the panel.
   Phones keep the drawer (sf-mobile-header.css). Loaded from functions.php (wp_head). */
@media (min-width: 800px) {
	/* the city strip below the header has z-index 100000; the open panel must sit above it */
	header.header { z-index: 100001; }
	.header .navigation .menu > li { position: relative; }
	/* room for the ▾ markers (the last item used to run under the 搜尋 button) */
	.header .navigation .menu > li > a { padding-left: 18px !important; padding-right: 18px !important; }
	.header .navigation .menu > li.menu-item-has-children > a::after {
		content: ""; display: inline-block; width: 0; height: 0; margin: 0 0 3px 6px; vertical-align: middle;
		border-style: solid; border-width: 5px 4px 0 4px; border-color: currentColor transparent transparent transparent; opacity: .7;
	}
	.header .navigation .menu > li > ul.sub-menu {
		position: absolute; top: 100%; left: 50%; z-index: 1000; display: block; width: auto; min-width: 168px;
		margin: 0; padding: 8px 0; background: #fff; border-top: 3px solid #f8c623; border-radius: 0;
		box-shadow: 0 10px 28px rgba(16, 24, 48, .18); transform: translate(-50%, 6px);
		visibility: hidden; opacity: 0; pointer-events: none;
		transition: opacity .15s ease, transform .15s ease, visibility 0s linear .25s;
		transition-delay: .25s;   /* closing waits, so the pointer can move into the panel */
	}
	/* invisible bridge over the gap between the section name and its panel */
	.header .navigation .menu > li > ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.header .navigation .menu > li:hover > ul.sub-menu,
	.header .navigation .menu > li:focus-within > ul.sub-menu,
	.header .navigation .menu > li.sfn-open > ul.sub-menu {
		visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
		transition: opacity .15s ease, transform .15s ease, visibility 0s;
		transition-delay: .06s;
	}
	.header .navigation .menu > li.sfn-closed > ul.sub-menu { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
	.header .navigation .menu > li > ul.sub-menu > li { float: none; display: block; width: auto; margin: 0; padding: 0; border: 0; background: none; }
	.header .navigation .menu > li > ul.sub-menu > li > a {
		display: block; margin: 0; padding: 9px 20px !important; font-size: 16px;   /* !important: an old first-child rule added 25px */ font-weight: 500; line-height: 1.4;
		color: #1d2230 !important; background: none; white-space: nowrap; text-align: left; text-decoration: none; border: 0;
	}
	.header .navigation .menu > li > ul.sub-menu > li > a:hover,
	.header .navigation .menu > li > ul.sub-menu > li > a:focus-visible { color: #192f65 !important; background: #f1f4fa; outline: none; box-shadow: inset 3px 0 0 #192f65; }
	.header .navigation .menu > li > ul.sub-menu > li.current-menu-item > a { color: #192f65 !important; font-weight: 700; }
	@media (prefers-reduced-motion: reduce) { .header .navigation .menu > li > ul.sub-menu { transition: none; transform: translate(-50%, 0); } }
}

/* 2026-11-07: with the old second row of sub-links gone, the menu and 搜尋 sat in the top half of the header band.
   Move them down to the logo's centre line, and nudge the menu right so it sits midway between the logo and 搜尋. */
@media (min-width: 800px) {
	.header .nav_row .navigation-wrap { padding-top: 16px; }
	.header .nav_row .navigation .search.sf-sbox { top: 18px; }   /* sf-mobile-header.css puts it at 2px; same 16px shift */
}
@media (min-width: 800px) and (max-width: 1023px) {
	/* narrower screens: tighter items so 商品推薦 does not run under 搜尋 */
	.header .navigation .menu > li > a { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (min-width: 1024px) {
	.header .nav_row .navigation .menu { margin-left: 21px; }
}

