pandorga 2.3.9 → 2.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c65f65578bd5eb79eab2736fc0e78616baf2fe594829e8816e5cde87223379d
4
- data.tar.gz: 8779f58a045be9df9f3707fc4cbaffadc3e2543189cf2ee7c7d1ee3f14026c39
3
+ metadata.gz: 56524826d61ee66cc9f18be704029886f1c747f1e4a1e97918e2b287d3be027c
4
+ data.tar.gz: 6afd725e67335a012ca534816605648f832dfc8c953dd59819391d714a5fbdc2
5
5
  SHA512:
6
- metadata.gz: e4976977d37a07122747f4a48e65a928ddd406042cff4b6ad664ee8af81faf110c0dc25910ab0025e66a51fb7745df47c98b4896ea856b68d71769c020d82a48
7
- data.tar.gz: 3292e31ef923cb97f7e017608a3a31ce6fc9bc3cc04b51284d1c30aafb05c4736a0f5e8f821b994020141ccb4556af2dc59185f7cd6062dd22e769d6c1d52e18
6
+ metadata.gz: 6c5ca14abf5328f32ea84008e5a9d1013ded8bc9ab38b1d1dee7d93c8d1932e8543228dcef8bdd3a272677da098efd3d8f969a40c75e26538157a5b7a9ac0d04
7
+ data.tar.gz: be3a1b2f1c39f3041c65fd964ec447d5b6dcbe64c4e5af58c857b27eeb6bfc83c463af5a0a26654cf0aaebd66f9050dca72a5d9252a4a21142f731e5090afce3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.11] — 2026-10-30
6
+
7
+ ### Fixed
8
+
9
+ - CR-24 follow-up: deepen desk soft overlay slightly so title/summary stay ≥7:1 after the 2.3.10 lighten (still well below 2.3.7; photo remains readable) (PLT-AC-100).
10
+
11
+ ## [2.3.10] — 2026-10-30
12
+
13
+ ### Changed
14
+
15
+ - CR-24: Hero name always band title + 2pt from `--type-section` / `--type-section-lg` (PLT-AC-98/99); soft overlay lightened so the figure reads while title/summary stay ≥7:1, target ~9–11:1 (PLT-AC-100). See [features/home-hero-scale-overlay.md](docs/features/home-hero-scale-overlay.md).
16
+
5
17
  ## [2.3.9] — 2026-10-30
6
18
 
7
19
  ### Fixed
@@ -151,14 +151,12 @@
151
151
  min-height: calc(var(--type-body) * 1.35);
152
152
  }
153
153
 
154
- /* Name spans the copy column (container query on .home-hero-copy). Divisor
155
- is calculated for Ancizar Serif at -0.02em tracking (~6.9em phone
156
- family-line width). From 640px the floor follows `.section-title` up to
157
- `--type-section-lg`. Wider columns still grow toward `--type-page-lg`. */
154
+ /* PLT-AC-98: hero name tracks home band titles (+2pt), not photo/cqi width.
155
+ Band `.section-title` uses --type-section, then --type-section-lg from 768px. */
158
156
  .home-hero-title {
159
157
  font-family: var(--font-title);
160
158
  font-weight: 400;
161
- font-size: clamp(var(--type-section), calc(100cqi * 0.92 / 6.9), var(--type-page-lg));
159
+ font-size: calc(var(--type-section) + 2pt);
162
160
  line-height: 1.05;
163
161
  letter-spacing: -0.02em;
164
162
  color: var(--color-on-surface);
@@ -185,44 +183,23 @@
185
183
  padding: 0 0.1em;
186
184
  }
187
185
 
188
- @media (min-width: 640px) {
189
- .home-hero-title {
190
- font-size: clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg));
191
- }
192
- }
193
-
194
- /* Below 768px the name is 3pt larger than the clamp above, and the only
195
- wrap point is the gap between the given name and the family name. */
196
- @media (max-width: 639px) {
197
- .home-hero-title {
198
- white-space: normal;
199
- font-size: calc(clamp(var(--type-section), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt);
200
- }
201
- }
202
-
203
- @media (min-width: 640px) and (max-width: 767px) {
204
- .home-hero-title {
205
- white-space: normal;
206
- font-size: calc(clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt);
207
- }
208
- }
209
-
210
186
  @media (max-width: 767px) {
187
+ /* Only wrap between given and family name. */
211
188
  .home-hero-given,
212
189
  .home-hero-family {
213
190
  display: inline-block;
214
191
  white-space: nowrap;
215
192
  }
216
- }
217
193
 
218
- @media (min-width: 768px) and (max-width: 1023px) {
219
194
  .home-hero-title {
220
- font-size: clamp(var(--type-section-lg), calc(100cqi * 0.92 / 10.81), var(--type-page-lg));
195
+ white-space: normal;
221
196
  }
222
197
  }
223
198
 
224
199
  @media (min-width: 768px) {
225
200
  .home-hero-title {
201
+ /* Same token step as .home-band .ledger-section-banner .section-title */
202
+ font-size: calc(var(--type-section-lg) + 2pt);
226
203
  white-space: nowrap;
227
204
  }
228
205
  }
@@ -1905,8 +1882,8 @@ html[data-theme="light"] .home-featured .ledger-poster {
1905
1882
  object-position: center;
1906
1883
  }
1907
1884
 
1908
- /* Soft edgeless photo overlay (C4 / PLT-AC-89) — full-bleed darkening, no panel.
1909
- Stops tuned for ≥7:1 title+summary on every pool photo; vignette/pool still scale. */
1885
+ /* Soft edgeless photo overlay (C4 / PLT-AC-89 / PLT-AC-100) — full-bleed darkening, no panel.
1886
+ Stops lightened vs 2.3.7 so the figure reads; vignette/pool still scale; target ~9–11:1. */
1910
1887
  .home-hero-portrait::after {
1911
1888
  content: "";
1912
1889
  position: absolute;
@@ -1917,26 +1894,26 @@ html[data-theme="light"] .home-featured .ledger-poster {
1917
1894
  background:
1918
1895
  radial-gradient(
1919
1896
  ellipse 75% 60% at 55% 32%,
1920
- rgba(0, 0, 0, calc(0.04 * var(--home-hero-vignette) / 0.6)) 0%,
1921
- rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 50%,
1922
- rgba(0, 0, 0, calc(0.52 * var(--home-hero-vignette) / 0.6)) 100%
1897
+ rgba(0, 0, 0, calc(0.03 * var(--home-hero-vignette) / 0.6)) 0%,
1898
+ rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 50%,
1899
+ rgba(0, 0, 0, calc(0.40 * var(--home-hero-vignette) / 0.6)) 100%
1923
1900
  ),
1924
1901
  linear-gradient(
1925
1902
  90deg,
1926
- rgba(0, 0, 0, calc(0.72 * var(--home-hero-vignette) / 0.6)) 0%,
1927
- rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 14%,
1928
- rgba(0, 0, 0, calc(0.45 * var(--home-hero-vignette) / 0.6)) 34%,
1929
- rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 54%,
1903
+ rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 0%,
1904
+ rgba(0, 0, 0, calc(0.48 * var(--home-hero-vignette) / 0.6)) 14%,
1905
+ rgba(0, 0, 0, calc(0.32 * var(--home-hero-vignette) / 0.6)) 34%,
1906
+ rgba(0, 0, 0, calc(0.14 * var(--home-hero-vignette) / 0.6)) 54%,
1930
1907
  transparent 76%
1931
1908
  ),
1932
1909
  linear-gradient(
1933
1910
  180deg,
1934
- rgba(0, 0, 0, calc(0.24 * var(--home-hero-vignette) / 0.6)) 0%,
1935
- rgba(0, 0, 0, calc(0.12 * var(--home-hero-vignette) / 0.6)) 14%,
1936
- rgba(0, 0, 0, calc(0.18 * var(--home-hero-vignette) / 0.6)) 28%,
1937
- rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 48%,
1938
- rgba(0, 0, 0, calc(0.82 * var(--home-hero-vignette) / 0.6)) 68%,
1939
- rgba(0, 0, 0, calc(0.92 * var(--home-hero-vignette) / 0.6)) 100%
1911
+ rgba(0, 0, 0, calc(0.18 * var(--home-hero-vignette) / 0.6)) 0%,
1912
+ rgba(0, 0, 0, calc(0.08 * var(--home-hero-vignette) / 0.6)) 14%,
1913
+ rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 28%,
1914
+ rgba(0, 0, 0, calc(0.48 * var(--home-hero-vignette) / 0.6)) 50%,
1915
+ rgba(0, 0, 0, calc(0.66 * var(--home-hero-vignette) / 0.6)) 70%,
1916
+ rgba(0, 0, 0, calc(0.76 * var(--home-hero-vignette) / 0.6)) 100%
1940
1917
  );
1941
1918
  }
1942
1919
 
@@ -2022,30 +1999,30 @@ html[data-theme="light"] .home-featured .ledger-poster {
2022
1999
  height: 100%;
2023
2000
  object-fit: cover;
2024
2001
  object-position: center;
2025
- filter: saturate(0.90) contrast(1.08) brightness(0.94);
2002
+ filter: saturate(0.95) contrast(1.06) brightness(1.02);
2026
2003
  }
2027
2004
 
2028
- /* C4 stack soft overlay — denser under title+summary for ≥7:1 (PLT-AC-89/90) */
2005
+ /* PLT-AC-100: stack overlay lightened — figure visible, text still ≥7:1 */
2029
2006
  .home-hero-portrait::after {
2030
2007
  border-radius: 0;
2031
2008
  background:
2032
2009
  radial-gradient(
2033
2010
  ellipse 85% 50% at 50% 14%,
2034
- rgba(0, 0, 0, calc(0.08 * var(--home-hero-vignette) / 0.6)) 0%,
2035
- rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 50%,
2036
- rgba(0, 0, 0, calc(0.55 * var(--home-hero-vignette) / 0.6)) 100%
2011
+ rgba(0, 0, 0, calc(0.04 * var(--home-hero-vignette) / 0.6)) 0%,
2012
+ rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 50%,
2013
+ rgba(0, 0, 0, calc(0.36 * var(--home-hero-vignette) / 0.6)) 100%
2037
2014
  ),
2038
2015
  linear-gradient(
2039
2016
  180deg,
2040
- rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 0%,
2041
- rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 6%,
2042
- rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 16%,
2043
- rgba(0, 0, 0, calc(0.68 * var(--home-hero-vignette) / 0.6)) 26%,
2044
- rgba(0, 0, 0, calc(0.82 * var(--home-hero-vignette) / 0.6)) 36%,
2045
- rgba(0, 0, 0, calc(0.88 * var(--home-hero-vignette) / 0.6)) 48%,
2046
- rgba(0, 0, 0, calc(0.84 * var(--home-hero-vignette) / 0.6)) 62%,
2047
- rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 80%,
2048
- rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 100%
2017
+ rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 0%,
2018
+ rgba(0, 0, 0, calc(0.12 * var(--home-hero-vignette) / 0.6)) 6%,
2019
+ rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 16%,
2020
+ rgba(0, 0, 0, calc(0.52 * var(--home-hero-vignette) / 0.6)) 28%,
2021
+ rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 40%,
2022
+ rgba(0, 0, 0, calc(0.66 * var(--home-hero-vignette) / 0.6)) 52%,
2023
+ rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 66%,
2024
+ rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 82%,
2025
+ rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 100%
2049
2026
  );
2050
2027
  }
2051
2028
 
@@ -2068,11 +2045,9 @@ html[data-theme="light"] .home-featured .ledger-poster {
2068
2045
  background: transparent;
2069
2046
  }
2070
2047
 
2071
- /* B3 stack name (~33.4px @390, ~45.8px @768) */
2048
+ /* PLT-AC-98: stack inherits token+2pt; keep photo ink/shadow */
2072
2049
  .home-ledger .home-hero-title,
2073
2050
  .home-hero-title {
2074
- white-space: normal;
2075
- font-size: clamp(1.9rem, 7vw, 2.6rem);
2076
2051
  line-height: 1.08;
2077
2052
  max-width: 100%;
2078
2053
  color: #ffffff;
@@ -2297,7 +2272,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
2297
2272
  max-width: none;
2298
2273
  object-fit: cover;
2299
2274
  object-position: center;
2300
- filter: saturate(0.90) contrast(1.08) brightness(0.94);
2275
+ filter: saturate(0.95) contrast(1.06) brightness(1.02);
2301
2276
  }
2302
2277
 
2303
2278
  .home-hero-plate .ledger-frame-corners,
@@ -2321,11 +2296,10 @@ html[data-theme="light"] .home-featured .ledger-poster {
2321
2296
  background: transparent;
2322
2297
  }
2323
2298
 
2324
- /* B3 desk name (~35.2px @1024, ~40.1px @1440) */
2299
+ /* PLT-AC-98: desk uses type-section-lg + 2pt (set ≥768); keep photo ink */
2325
2300
  .home-ledger .home-hero-title,
2326
2301
  .home-hero-title {
2327
2302
  white-space: nowrap;
2328
- font-size: calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt);
2329
2303
  line-height: 1.08;
2330
2304
  max-width: 100%;
2331
2305
  overflow: hidden;
@@ -24,7 +24,7 @@ module Pandorga
24
24
 
25
25
  gem "pandorga", "~> 2.0"
26
26
  # Local checkout: gem "pandorga", path: "../pandorga"
27
- # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.9"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.11"
28
28
  gem "csv"
29
29
  gem "base64"
30
30
  RUBY
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pandorga
4
- VERSION = "2.3.9"
4
+ VERSION = "2.3.11"
5
5
  end
@@ -298,16 +298,19 @@ if declaration_bodies(home_sheet, ".home-hero-summary").any? { |body| declaratio
298
298
  errors << "assets/css/ledger/home.css: .home-hero-summary must use --color-legend (PLT-AC-23)"
299
299
  end
300
300
 
301
- # PLT-AC-62 / PLT-AC-68. Hero cqi clamp divisors calculated for Ancizar (~6.9 / ~10.81). Cinzel and 5.55 comments removed.
301
+ # PLT-AC-62 / PLT-AC-68. Cinzel and obsolete 5.55 divisors stay gone.
302
302
  if home_sheet.match?(/Cinzel/i) || home_sheet.include?("5.55")
303
303
  errors << "assets/css/ledger/home.css must not contain Cinzel or obsolete 5.55 comments/divisors (PLT-AC-68)"
304
304
  end
305
- # Phone/base keep Ancizar 6.9; desktop CR-22.1 uses the approved B3 vw clamp.
306
- unless home_sheet.include?("calc(100cqi * 0.92 / 6.9)")
307
- errors << "assets/css/ledger/home.css: phone/base hero clamp must use Ancizar ~6.9 (PLT-AC-68)"
305
+ # PLT-AC-98 / PLT-AC-86 supersession: hero name = band title token + 2pt (not cqi/vw).
306
+ unless home_sheet.include?("font-size: calc(var(--type-section) + 2pt)")
307
+ errors << "assets/css/ledger/home.css: hero title must be type-section + 2pt (PLT-AC-98)"
308
308
  end
309
- unless home_sheet.include?("calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)")
310
- errors << "assets/css/ledger/home.css: desktop B3 name clamp missing (CR-22.1 / PLT-AC-86)"
309
+ unless home_sheet.include?("font-size: calc(var(--type-section-lg) + 2pt)")
310
+ errors << "assets/css/ledger/home.css: hero title ≥768 must be type-section-lg + 2pt (PLT-AC-98)"
311
+ end
312
+ if home_sheet.include?("100cqi") || home_sheet.include?("1.85rem, 2.6vw") || home_sheet.include?("1.9rem, 7vw")
313
+ errors << "assets/css/ledger/home.css: hero title must not use cqi/vw clamps (PLT-AC-98)"
311
314
  end
312
315
 
313
316
  # PLT-AC-69. Inventory / project logo icon font-sizes +2pt.
@@ -221,12 +221,12 @@ end
221
221
  # ── 51.6 Name from 1024px ───────────────────────────────────────────────────
222
222
 
223
223
  item(6) do
224
- # CR-22.1: B3 desk name clamp (also declared on .home-hero-title)
224
+ # PLT-AC-98: desk name is type-section-lg + 2pt (set at ≥768, not vw)
225
225
  title = ".home-hero-title"
226
226
  expect_decl(title, "white-space", "nowrap", media: DESKTOP)
227
227
  expect_decl(title, "font-size",
228
- "calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)",
229
- media: DESKTOP)
228
+ "calc(var(--type-section-lg) + 2pt)",
229
+ media: "(min-width:768px)")
230
230
  end
231
231
 
232
232
  # ── 51.7 Markup ─────────────────────────────────────────────────────────────
@@ -132,39 +132,30 @@ check!(long["family"] == (1..8).map { |index| "Tok#{index}" }.join(" "),
132
132
  symbols = Pandorga::IdentityName.resolve({ first_name: "Ada", last_name: "Rivera Santos" })
133
133
  check!(symbols["family"] == "Rivera Santos", "symbol keys work, got #{symbols.inspect}")
134
134
 
135
- # ── PLT-AC-15 / PLT-AC-68 ───────────────────────────────────────────────────
135
+ # ── PLT-AC-15 / PLT-AC-98 ───────────────────────────────────────────────────
136
136
 
137
137
  hero = css[/\.home-hero-title \{.*?(?=\.home-hero-summary)/m]
138
138
  check!(hero, "missing hero title block")
139
- check!(hero.include?("font-size: clamp(var(--type-section), calc(100cqi * 0.92 / 6.9), var(--type-page-lg));"),
140
- "base name size uses Ancizar 6.9 clamp")
141
- check!(hero.include?("@media (max-width: 639px)"), "missing phone size query")
142
- check!(hero.include?("calc(clamp(var(--type-section), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt)"),
143
- "below 640px the name must be the current clamp plus 3pt")
144
- check!(hero.include?("@media (min-width: 640px) and (max-width: 767px)"),
145
- "missing 640-767 size query")
146
- check!(hero.include?("calc(clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt)"),
147
- "from 640px to 767px the name must be the section-lg clamp plus 3pt")
148
- # CR-22.1 supersedes desktop --hero-name-fit 6.9 with the approved B3 clamp.
149
- check!(css.include?("calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)"),
150
- "desktop B3 name clamp must be present (CR-22.1)")
151
- check!(css.include?("clamp(1.9rem, 7vw, 2.6rem)"),
152
- "stack B3 name clamp must be present (CR-22.1)")
153
-
154
- plain = hero.index("@media (min-width: 640px) {")
155
- banded = hero.index("@media (min-width: 640px) and (max-width: 767px)")
156
- check!(plain && banded && banded > plain,
157
- "the +3pt band must follow the plain 640px clamp so it wins")
139
+ check!(hero.include?("font-size: calc(var(--type-section) + 2pt);"),
140
+ "base name size is type-section + 2pt (PLT-AC-98)")
141
+ check!(hero.include?("font-size: calc(var(--type-section-lg) + 2pt);"),
142
+ "from 768px name is type-section-lg + 2pt (PLT-AC-98)")
143
+ check!(!hero.include?("100cqi") && !css.include?("1.85rem, 2.6vw") && !css.include?("1.9rem, 7vw"),
144
+ "hero name must not use cqi/vw clamps (PLT-AC-98)")
158
145
 
159
146
  phone = hero[/@media \(max-width: 767px\) \{.*?\n\}/m]
160
- check!(phone && phone.include?("inline-block") && phone.include?("white-space: nowrap"),
161
- "on a phone each name is an unbreakable unit, got:\n#{phone}")
162
- check!(phone.include?(".home-hero-given") && phone.include?(".home-hero-family"),
163
- "both name parts are unbreakable")
164
-
165
- desktop = hero[/@media \(min-width: 768px\) \{.*?\n\}/m]
147
+ # Nested rules: match from the media opener through the last name part selectors.
148
+ check!(hero.include?("@media (max-width: 767px)") &&
149
+ hero.include?(".home-hero-given") &&
150
+ hero.include?(".home-hero-family") &&
151
+ hero.include?("inline-block") &&
152
+ hero.include?("white-space: nowrap"),
153
+ "on a phone each name is an unbreakable unit")
154
+
155
+ desktop = hero[/@media \(min-width: 768px\)[\s\S]*?(?=\.home-hero-summary|\z)/]
166
156
  check!(desktop && desktop.include?("white-space: nowrap"),
167
157
  "from 768px the name stays on one line")
168
- check!(!desktop.include?("3pt"), "the +3pt bump is phone-only")
158
+ check!(desktop && desktop.include?("var(--type-section-lg) + 2pt"),
159
+ "768px media must set type-section-lg + 2pt")
169
160
 
170
161
  puts "PASS test-hero-name"
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # PLT-AC-98…100 — hero name = band title + 2pt; overlay lighter than 2.3.7.
4
+
5
+
6
+ errors = []
7
+ home = File.read(File.expand_path("../../assets/css/ledger/home.css", __dir__))
8
+
9
+ unless home.include?("font-size: calc(var(--type-section) + 2pt)")
10
+ errors << "home.css: base .home-hero-title must be calc(var(--type-section) + 2pt) (PLT-AC-98)"
11
+ end
12
+ unless home.include?("font-size: calc(var(--type-section-lg) + 2pt)")
13
+ errors << "home.css: ≥768 .home-hero-title must be calc(var(--type-section-lg) + 2pt) (PLT-AC-98)"
14
+ end
15
+ if home.match?(/\.home-hero-title[^{]*\{[^}]*100cqi/) || home.include?("1.85rem, 2.6vw") || home.include?("1.9rem, 7vw")
16
+ errors << "home.css: .home-hero-title must not size from cqi/vw (PLT-AC-98)"
17
+ end
18
+
19
+ # Band titles still on the same tokens the hero tracks.
20
+ unless home.include?(".home-band .ledger-section-banner .section-title") && home.include?("font-size: var(--type-section)")
21
+ errors << "home.css: band .section-title must keep --type-section (PLT-AC-98)"
22
+ end
23
+ unless home.include?("font-size: var(--type-section-lg)")
24
+ errors << "home.css: band .section-title ≥768 must keep --type-section-lg (PLT-AC-98)"
25
+ end
26
+
27
+ # Overlay still soft/edgeless, no panel on copy; lighter stops than 2.3.7 (0.92 / 0.88).
28
+ unless home.include?(".home-hero-portrait::after")
29
+ errors << "home.css: soft ::after overlay missing (PLT-AC-100)"
30
+ end
31
+ if home.include?("rgba(0, 0, 0, calc(0.92 * var(--home-hero-vignette) / 0.6))") ||
32
+ home.include?("rgba(0, 0, 0, calc(0.88 * var(--home-hero-vignette) / 0.6))")
33
+ errors << "home.css: overlay still uses 2.3.7 deep stops 0.92/0.88 (PLT-AC-100)"
34
+ end
35
+ # Copy must stay transparent (no panel).
36
+ home.scan(/\.home-hero-copy\s*\{[^}]+\}/m).each do |block|
37
+ next unless block.include?("background:")
38
+ unless block.include?("background: transparent")
39
+ errors << "home.css: .home-hero-copy must stay background: transparent (PLT-AC-100)"
40
+ end
41
+ end
42
+
43
+ if errors.empty?
44
+ puts "OK home-hero-scale (PLT-AC-98…100)"
45
+ else
46
+ warn errors.join("\n")
47
+ exit 1
48
+ end
@@ -563,16 +563,20 @@ const ASSERT_EXPRESSION = `
563
563
  }
564
564
  }
565
565
 
566
- // PLT-AC-86: name fits in panel; size near B3 (±4px)
566
+ // PLT-AC-86 / PLT-AC-99: name fits; h1 − band h2 in [2.4, 3.0] px
567
567
  if (title && hb.width > 40) {
568
568
  const tr = title.getBoundingClientRect();
569
569
  if (tr.right > hb.right + 1) {
570
570
  errors.push('Hero name right (' + tr.right.toFixed(1) + ') past panel right (' + hb.right.toFixed(1) + ') (PLT-AC-86)');
571
571
  }
572
- const fs = parseFloat(getComputedStyle(title).fontSize);
573
- const expect = window.innerWidth >= 1280 ? 40.11 : 35.23;
574
- if (Math.abs(fs - expect) > 4) {
575
- errors.push('Hero name font-size ' + fs.toFixed(2) + 'px not within 4px of B3 ' + expect + 'px (PLT-AC-86)');
572
+ const band = document.querySelector('.home-band .ledger-section-banner .section-title');
573
+ if (band) {
574
+ const h1 = parseFloat(getComputedStyle(title).fontSize);
575
+ const h2 = parseFloat(getComputedStyle(band).fontSize);
576
+ const delta = h1 - h2;
577
+ if (delta < 2.4 || delta > 3.0) {
578
+ errors.push('Hero h1−band h2 delta ' + delta.toFixed(2) + 'px not in [2.4, 3.0] (PLT-AC-99)');
579
+ }
576
580
  }
577
581
  }
578
582
 
data/scripts/validate.sh CHANGED
@@ -80,6 +80,7 @@ TESTS=(
80
80
  scripts/test/test-studio-section-texts.rb
81
81
  scripts/test/test-home-article-cards.rb
82
82
  scripts/test/test-home-hero-c4.rb
83
+ scripts/test/test-home-hero-scale.rb
83
84
  scripts/test/test-detail-action-icons.rb
84
85
  scripts/test/test-parallel-content-publish.rb
85
86
  scripts/test/test-mobile-density-home-measure.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandorga
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.9
4
+ version: 2.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors
@@ -445,6 +445,7 @@ files:
445
445
  - scripts/test/test-home-band-art.rb
446
446
  - scripts/test/test-home-band-intro.rb
447
447
  - scripts/test/test-home-hero-c4.rb
448
+ - scripts/test/test-home-hero-scale.rb
448
449
  - scripts/test/test-home-lists.rb
449
450
  - scripts/test/test-hydrate-reserve.rb
450
451
  - scripts/test/test-install-functions.rb