/* ===== OWARIBIKI-39 chrome.css — header/logo/megamenu + footer 骨架 + 顶部通知条 =====
   真值来源：recon_owaribiki/templates/*.html（源站 header 两行结构 / footer 三段结构）
   与 assets/ 中主题 CSS。仅补充块模板无法表达的少量规则，其余一律继承 tishaa 主题。 */

/* 1) logo 尺寸由 site-logo 块的 width 属性驱动（header 154x44 / footer 219x62） */
.wp-block-site-logo img.custom-logo { width: auto; max-width: 100%; height: auto; }

/* 2) 顶部通知条（源站插件 mysticky-welcomebar 的复刻；源站为 fixed，此处改为文档流以复现
      源站渲染截图里「内容整体下移 82px（桌面）/133px（移动）」的实际版面） */
.ow-promo-bar {
	background-color: #a0230c;
	color: #fff;
	font-family: 'Pontano Sans', sans-serif;
	width: 100%;
	box-sizing: border-box;
}
.ow-promo-bar__wrap {
	min-height: 60px;
	padding: 20px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.ow-promo-bar__content { flex: 1; text-align: center; }
.ow-promo-bar__content p {
	color: #fff;
	font-size: 18px;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	font-weight: 400;
	font-family: 'Pontano Sans', sans-serif;
}
.ow-promo-bar__close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	text-decoration: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}
@media only screen and (max-width: 480px) {
	.ow-promo-bar__wrap { padding: 15px 20px 10px 20px; flex-direction: column; }
	.ow-promo-bar__close { right: 6px; top: 10px; transform: none; }
}

/* ===== 3) 残留修正 A：footer 段落行高 = 1.4（源站真值） =====
   源站真值：tishaa 父主题 theme.json styles.typography.lineHeight = "1.4"；
   本地 child theme.json（forkopi 遗留）覆盖为 1.6 → footer 简介/版权行每行偏高 3.2px、footer 总高 +18.7px。
   仅作用于 footer 模板部件，不影响内容区已验收页面；关掉方式：删掉本节（第 3/4 节）。 */
footer.wp-block-template-part p { line-height: 1.4; }

/* ===== 4) 残留修正 B：footer 小标题(h4) 字号 = xx-small(16px)（源站真值） =====
   源站真值：源站 footer h4 带 has-xx-small-font-size 类（父主题 preset xx-small = 16px, fluid=false）；
   本地保存的块 HTML 缺该类 → 回落 h4 默认（1440 下 24px / 390 下 fluid 16.43px），标题偏大。 */
footer.wp-block-template-part h4.wp-block-heading { font-size: var(--wp--preset--font-size--xx-small); }

/* ===== PROD-5D i1711 追加（仅新增，不改既有规则）=====
   生产 custom_logo 原件为 1002x1002 正方形（源站 header lockup 154x44 / footer 219x62），
   上方规则 1) 的 width:auto/max-width:100% 会让它按原尺寸铺开（实测 header 1098px）。
   源站 lockup 尺寸取自 recon_owaribiki/templates/*.html 的 site-logo width 属性（header 154 / footer 219），
   高度按 154:44 与 219:62 比例；object-fit:contain 保比例不裁切。 */
header .wp-block-site-logo img.custom-logo { width: 154px; height: 44px; object-fit: contain; }
footer .wp-block-site-logo img.custom-logo { width: 219px; height: 62px; object-fit: contain; }

/* ===== PROD-5D-CLOSE i1723 追加（仅新增，不改既有规则）=====
   R2 复核：第 4 节用 var(--wp--preset--font-size--xx-small)，而生产 child theme.json 的 xx-small
   是 fluid 变量（390x844 实测算出 14.16px），与源站真值不符（源站 footer h4 带 has-xx-small-font-size，
   父主题 preset xx-small = 16px、fluid=false → 各视口恒 16px）；1440 下当前已是正确 16px。
   本节仅在末尾以同选择器钉死 16px（后出现的声明覆盖前条，既有规则原文不动）。关掉方式：删掉本节。 */
footer.wp-block-template-part h4.wp-block-heading { font-size: 16px; }
