/* 第二輪視覺大整理（10/18 晚，卡 12–20；施工日誌＝NAS growth/UX重整_20261018）。
   全部以 html.ifd-ux2 開頭＝沒開預覽完全不生效；對外＝wp ifd-nav ux2 open。規則＝vault「官網體驗規則 - 正典」。 */

/* ---------- 卡 13 首頁 Find your way in：品牌欄收合（vis.js 加 .ifd-vis-cap／.ifd-vis-more／按鈕） ---------- */
html.ifd-ux2 .ifd-routewrap.ifd-vis-cap:not(.is-open) > .ifd-route.ifd-vis-more{display:none}
html.ifd-ux2 .ifd-vis-all{height:auto!important;min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 20px;border-radius:calc(var(--ifd-r,14px) + 8px);border:1px dashed var(--ifd-brand,#6fe3c0);background:transparent;color:var(--ifd-acc-text,#6fe3c0);font-size:15px;font-weight:800;cursor:pointer;line-height:1.2}
html.ifd-ux2 .ifd-vis-all:hover{background:var(--ifd-panel,#15151f)}
html.ifd-ux2 .ifd-vis-all i{font-style:normal;transition:transform .2s}
html.ifd-ux2 .ifd-routewrap.is-open .ifd-vis-all i{transform:rotate(180deg)}
@media (max-width:799.98px){
	/* 手機：一列一個 → 三欄小磚（圖 56 在上、名字最多兩行），一屏看得到 9 牌 */
	html.ifd-ux2 .ifd-directory .ifd-routewrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
	html.ifd-ux2 .ifd-directory .ifd-route{flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;gap:6px;padding:10px 6px;min-width:0;border-radius:16px}
	html.ifd-ux2 .ifd-directory .ifd-route__lb{white-space:normal;font-size:13.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
	html.ifd-ux2 .ifd-directory .ifd-route__ct{font-size:12px}
	html.ifd-ux2 .ifd-directory .ifd-route__rank{top:4px;right:4px}
	html.ifd-ux2 .ifd-directory .ifd-vis-all{grid-column:1 / -1;width:100%}
}

/* ---------- 卡 16 首頁 Just landed：名字和價格黏在一起（兩個都是行內字）→ 各自一行、字放大 ---------- */
html.ifd-ux2 .ifd-railcard .ifd-rc-n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.35}
html.ifd-ux2 .ifd-railcard .ifd-rc-p{display:block;font-size:15px;margin-top:4px}
html.ifd-ux2 .ifd-railcard .ifd-rc-p del{opacity:.6;font-weight:600;font-size:12.5px}

/* ---------- 卡 16 商品卡：每張多三行大寫分類（「ANIMAL HEAVENLY BODY, FRAME REPTILE ARTS, STATUES」）→ 收掉；名字已經有品牌 ---------- */
html.ifd-ux2 ul.products li.product .entry-meta{display:none!important}
html.ifd-ux2 ul.products li.product .woocommerce-loop-product__title{font-size:14.5px!important;line-height:1.35!important}
html.ifd-ux2 ul.products li.product .price{font-size:16px!important}

/* ---------- 卡 16 新聞卡、文章頁頂：分類一長串 → 只留第一個（逗號是純文字，用 font-size:0 一起收） ---------- */
html.ifd-ux2 .entry-card .entry-meta .meta-categories,html.ifd-ux2 .single-post .hero-section .entry-meta .meta-categories{font-size:0!important}
html.ifd-ux2 .entry-card .entry-meta .meta-categories a,html.ifd-ux2 .single-post .hero-section .entry-meta .meta-categories a{display:none}
html.ifd-ux2 .entry-card .entry-meta .meta-categories a:first-child,html.ifd-ux2 .single-post .hero-section .entry-meta .meta-categories a:first-child{display:inline;font-size:12px}

/* ---------- 卡 17 文章頁好讀：內文 13.5px → 17px、手機 H2 35px → 24px；開頭跟首圖重複的那張（bridges.php 標 .ifd-dupimg）藏起來 ---------- */
html.ifd-ux2 .single-post .entry-content > p,html.ifd-ux2 .single-post .entry-content > ul li,html.ifd-ux2 .single-post .entry-content > ol li{font-size:17px;line-height:1.7}
html.ifd-ux2 .single-post .entry-content > p{color:var(--ifd-fg,#f1eff7)}
@media (max-width:689.98px){
	html.ifd-ux2 .single-post .entry-content h2{font-size:24px!important;line-height:1.25!important;margin-top:1.6em!important}
	html.ifd-ux2 .single-post .entry-content h3{font-size:19px!important;line-height:1.3!important}
}
html.ifd-ux2 .single-post .entry-content .ifd-dupimg{display:none}

/* ---------- 卡 19 頁內「How to read this page」一行收合（inc/howto.php、conventions.php 印；預設藏、預覽才顯示） ---------- */
.ifd-howto{display:none}
html.ifd-ux2 .ifd-howto{display:block;margin:0 0 16px;border:1px solid var(--ifd-line,rgba(255,255,255,.11));border-radius:14px;background:var(--ifd-panel,#15151f);color:var(--ifd-fg,#f1eff7)}
html.ifd-ux2 .ifd-howto > summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;cursor:pointer;list-style:none;font-size:15px;font-weight:800;color:var(--ifd-acc-text,#6fe3c0)}
html.ifd-ux2 .ifd-howto > summary::-webkit-details-marker{display:none}
html.ifd-ux2 .ifd-howto > summary::before{content:"?";flex:none;width:24px;height:24px;border-radius:50%;border:1.5px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:900}
html.ifd-ux2 .ifd-howto > summary::after{content:"\25BE";margin-left:auto;transition:transform .2s}
html.ifd-ux2 .ifd-howto[open] > summary::after{transform:rotate(180deg)}
html.ifd-ux2 .ifd-howto ul{margin:0!important;padding:0 16px 4px 38px!important;font-size:15.5px;line-height:1.55}
html.ifd-ux2 .ifd-howto li{margin:0 0 8px!important}
html.ifd-ux2 .ifd-howto p{margin:0!important;padding:0 16px 10px}
html.ifd-ux2 .ifd-howto p a{display:inline-flex;align-items:center;min-height:44px;padding:0;font-weight:800;color:var(--ifd-acc-text,#6fe3c0)!important}

/* ---------- 卡 16 商品分類頁先 24 件（vis.js）；頁碼照常顯示（藏了要按 8 次 Show more 才到第 2 頁＝正典 §1.4 不准） ---------- */
html.ifd-ux2 ul.products > li.product.ifd-vis-more{display:none!important}
html.ifd-ux2 .ifd-pmore{max-width:520px;margin:18px auto 28px!important}
