/*
Theme Name: Powerman Child
Theme URI: https://www.powermans.net/
Description: Powerman child theme for Twenty Twenty-Five. Pure core-block; visuals via theme.json tokens.
Author: Atlas & Steel
Author URI: https://www.powermans.net/
Template: twentytwentyfive
Text Domain: powerman-child
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, full-site-editing, bilingual, accessibility-ready
*/

/* === Powerman 21 Tokens — Global Dials (BEGIN) =========================== */
/* 1) :root — 全站拨盘定义（仅“值”；不直接改任何元素的样式） */
:root{
  /* —— space —— */
  --wp--custom--pm--space--gutter: 20px;
  --wp--custom--pm--space--header-y: 5px;
  --wp--custom--pm--space--section-y: var(--wp--preset--spacing--40);
  --wp--custom--pm--space--grid-gap: 20px;

  /* —— nav —— */
  --wp--custom--pm--nav--item-gap: 16px;
  --wp--custom--pm--nav--pad-x: 10px;

  /* —— radius —— */
  --wp--custom--pm--radius--pill: 24px;
  --wp--custom--pm--radius--card: 10px;

  /* —— shadow —— */
  --wp--custom--pm--shadow--level: 0 6px 18px rgba(0,0,0,.10);
  --wp--custom--pm--shadow--sm:    0 6px 18px rgba(0,0,0,.10);

  /* —— color —— */
	--wp--custom--pm--color--brand:  var(--wp--preset--color--accent);
	--wp--custom--pm--color--fg:     var(--wp--preset--color--foreground);
	--wp--custom--pm--color--bg:     var(--wp--preset--color--background);
	--wp--custom--pm--color--muted:  var(--wp--preset--color--muted);
	--wp--custom--pm--color--border: var(--wp--preset--color--border);
	--wp--custom--pm--color--hero-bg: #a7bed5;

  /* —— link / focus / type —— */
  --wp--custom--pm--link--style:         underline;
  --wp--custom--pm--focus--ring:         0 0 0 2px var(--wp--preset--color--focus);
  --wp--custom--pm--a11y--focus-ring:    0 0 0 2px var(--wp--preset--color--focus);
  --wp--custom--pm--type--scale:         1.00;
  --wp--custom--pm--type--line:          1.60;
  --wp--custom--pm--type--headline-track:1.10;

  /* —— 补齐空拨盘（默认值） —— */
  --wp--custom--pm--header--height-desktop: 60px;
  --wp--custom--pm--header--height-mobile:  48px;
  --wp--custom--pm--footer--border: 1px solid var(--wp--custom--pm--color--border);
  --pm-lang-icon-enabled: 0;
  --pm-lang-icon-size: 0.6em;
  --pm-lang-chevron-size: .85em;
	--pm-search-icon-size: 28px;
}

/* 2) Page Shell — 把拨盘“应用”到模板 main（左右/上下/块距） */
/* 统一把暗边距清零，避免与拨盘叠加 */
.wp-site-blocks{ padding: 0; }
/* 2) Page Shell — 把拨盘“应用”到模板 main（左右/上下/块距） */
.wp-site-blocks > main.wp-block-group{
  /* 左右边距（gutter）+ 上下区间留白（section-y） */
  padding-inline: var(--wp--custom--pm--space--gutter);
  padding-block:  var(--wp--custom--pm--space--section-y);

  /* 默认块间距（WordPress 用该变量驱动 block gap） */
  --wp--style--block-gap: var(--wp--custom--pm--space--grid-gap);
	
}

/* 3) （可选）如主题默认在 Header 与 Main 之间有缝，这里清零 */
// .wp-site-blocks > main.wp-block-group{ margin-block-start: 0; }

/* === Ensure header/footer consume dials and win the cascade === */
.wp-site-blocks header.pm-header.wp-block-group{
	padding-inline: var(--wp--custom--pm--space--gutter);
	padding-block:  var(--wp--custom--pm--space--header-y);
	
}
.wp-site-blocks footer.pm-footer.wp-block-group{
  padding-inline: var(--wp--custom--pm--space--gutter);
}


/* === Powerman 21 Tokens — Global Dials (END) ============================= */
