/* Shared menu and project-stage links */
.ph-nav-group { position: relative; color: var(--ph-ink); }
.ph-nav-group summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 500; }
.ph-nav-group summary::-webkit-details-marker { display: none; }
.ph-nav-group summary::after { content: ""; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.12rem) rotate(45deg); }
.ph-nav-group[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.ph-nav-group:has(a[aria-current]) summary, .ph-nav-links a:is(:hover,[aria-current]) { text-decoration: underline; text-underline-offset: .25em; }
.ph-nav-links { position: absolute; z-index: 2; background: var(--ph-paper); border: 1px solid var(--ph-rule); min-width: 15rem; padding: .45rem .9rem; box-shadow: 0 .7rem 1.35rem #1d312218; }
.ph-nav-links a { display: flex; align-items: center; min-height: 42px; color: inherit; text-decoration: none; font-size: .91rem; line-height: 1.3; }
.ph-nav-links a+a { border-top: 1px solid #cbd0c4; }
.campaign-primary { display: flex; align-items: center; gap: clamp(.8rem,2vw,2rem); }
.campaign-primary>a { font-size: .9rem; color: var(--ph-ink); }
.hero-sample-link { display: inline-block; color: #f3f2eb; margin-top: .75rem; padding-block: .3rem; font-size: .9rem; font-weight: 500; text-underline-offset: .25em; }
.hero-sample-link:is(:hover,:focus-visible) { color: #e3eebc; }
.home .project-stages { padding-block: clamp(2.4rem,4.5vw,5rem); color: var(--ph-ink); background: var(--ph-paper); border-bottom: 1px solid var(--ph-rule); }
.project-stages h2 { font-size: clamp(2rem,3.7vw,3.9rem); line-height: 1.04; margin: 0 0 1.6rem; letter-spacing: -.05em; }
.stage-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(1.1rem,2.6vw,3rem); }
.stage-list>a { display: grid; grid-template-rows: auto 1fr auto; text-decoration: none; color: inherit; border-top: 2px solid #8fa287; padding: 1rem 0 .2rem; gap: .7rem; }
.stage-list h3 { font-size: clamp(1.15rem,1.55vw,1.65rem); font-weight: 550; letter-spacing: -.03em; }
.stage-list p { max-width: 32ch; font-size: .94rem; line-height: 1.48; }
.stage-list>a>span { font-size: .91rem; font-weight: 650; text-decoration: underline; text-underline-offset: .27em; }
.stage-list>a:is(:hover,:focus-visible) { border-color: var(--ph-forest); }
.home .product-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.2rem,3.1vw,3.8rem); }
.home .product-links>a { padding-right: 1rem; padding-bottom: 5rem; }
.home .product-links .round-arrow { right: auto; left: 0; bottom: 1.15rem; }
.intake-sample { font-size: .98rem; margin: 1.15rem 0 0; }
.intake-sample a { text-underline-offset: .25em; }

/* Reading pages share the wordmark, grid and colours of the main site. */
.guide-hero,.guide-split,.system-comparison,.supplier-references { padding-block: clamp(2.8rem,5.3vw,6rem); border-bottom: 1px solid var(--ph-rule); }
.guide-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: clamp(2.3rem,5.4vw,6rem); }
.guide-hero h1 { font-size: clamp(3.1rem,5.9vw,6.5rem); line-height: .98; letter-spacing: -.061em; }
.guide-hero .eyebrow,.guide-split .eyebrow,.supplier-references .eyebrow { margin: 0 0 1.1rem; }
.guide-lead { font-size: clamp(1.04rem,1.35vw,1.32rem); line-height: 1.48; max-width: 50ch; margin: 1.35rem 0; }
.guide-link,.guide-links a { display: inline-block; font-size: .98rem; font-weight: 600; text-decoration: underline; text-underline-offset: .27em; }
.guide-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.15rem; }
.guide-figure { margin: 0; min-width: 0; }
.guide-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.guide-figure.is-diagram img { background: #e9ece1; object-fit: contain; }
.guide-figure figcaption { font-size: .85rem; line-height: 1.4; padding-top: .6rem; }
.guide-split { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(1.8rem,6vw,7.4rem); align-items: start; }
.guide-split h2,.system-comparison h2,.supplier-references h2 { font-size: clamp(2.25rem,4.2vw,4.4rem); line-height: 1.04; letter-spacing: -.053em; max-width: 19ch; }
.guide-split h3,.supplier-card h3 { font-size: clamp(1.28rem,1.75vw,1.85rem); font-weight: 550; line-height: 1.15; letter-spacing: -.035em; }
.guide-split p,.supplier-card p { line-height: 1.57; max-width: 62ch; }
.guide-split p+p { margin-top: 1rem; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { padding-block: 1.15rem; border-top: 1px solid var(--ph-rule); }
.guide-list li:last-child { border-bottom: 1px solid var(--ph-rule); }
.guide-list h3,.pack-price h3 { margin-bottom: .5rem; }
.guide-proof,.pack-price { background: #e5ebd8; }
.comparison-scroll { overflow: auto; margin-block: 1.7rem .75rem; }
.comparison-scroll table { min-width: 35rem; }
.comparison-scroll table,.pack-table table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.45; }
.comparison-scroll :is(td,th),.pack-table :is(td,th) { padding: .9rem .8rem; vertical-align: top; border-bottom: 1px solid var(--ph-rule); }
.comparison-scroll th,.pack-table th { font-weight: 600; }
.comparison-scroll th:first-child { width: 24%; }
.comparison-scroll td { width: 38%; }
.comparison-scroll thead,.pack-table thead,.pack-table tfoot { background: #e1e7d5; }
.sample-hero small { display: block; margin-top: .5rem; font-size: .83rem; }
.pack-figure img { aspect-ratio: 1120/532; object-fit: contain; }
.pack-price h2 { font-variant-numeric: lining-nums tabular-nums; font-size: clamp(2.12rem,4.7vw,5.1rem); }
.pack-price h2+p { margin-top: .5rem; }
.pack-table .guide-link { margin-top: 1.2rem; }
.project-guide-page .project-review h2 { max-width: 19ch; }

/* Gallery controls are rendered only once filtering is available. */
.project-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.15rem; padding-block: 0 2.4rem; }
.project-filters label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 550; }
.project-filters select { background: #f7f7f0; border: 1px solid #95a18f; border-radius: .32rem; min-height: 44px; padding: .4rem 1.4rem .4rem .65rem; font-size: .96rem; color: var(--ph-ink); }
.project-filters button { background: transparent; color: var(--ph-ink); border: 0; padding: .45rem; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.project-filters output { padding: .65rem 0; font-size: .88rem; }
.project-empty { padding-block: 1.2rem 3rem; }
.project-empty button { margin-top: .75rem; }
.supplier-references { background: #e7eadf; }
.supplier-references>p:not(.eyebrow) { margin-top: .7rem; }
.supplier-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.3rem; margin: 1.6rem 0 1rem; }
.supplier-card { display: block; color: inherit; border-top: 1px solid #87957f; padding: 1rem 0; text-decoration: none; }
.supplier-card>span { font-size: .83rem; }
.supplier-card h3 { margin: .75rem 0 .5rem; }
.supplier-card strong { display: block; margin-top: .9rem; font-size: .94rem; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
:where(.project-filters,.project-empty,[data-project-group],[data-project-group] [data-system])[hidden] { display: none !important; }

@media (max-width:67.99rem) {
  .ph-nav-group { flex-basis: 100%; border-bottom: 1px solid var(--ph-rule); }
  .ph-nav-group summary { justify-content: space-between; padding-right: .3rem; }
  .ph-nav-links { position: static; min-width: 0; padding: 0 0 .55rem .95rem; box-shadow: none; border: 0; }
  .ph-nav-links a+a { border: 0; }
}
@media (max-width:52rem) {
  .stage-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; }
  .guide-hero,.guide-split { grid-template-columns: minmax(0,1fr); gap: 1.7rem; }
  .guide-figure { max-width: 40rem; }
  .guide-figure img { max-height: 29rem; }
  .home .product-links { grid-template-columns: 1fr; gap: 0; }
  .home .product-links>a { padding: 1.5rem 3.4rem 1.5rem 0; }
  .home .product-links .round-arrow { left: auto; right: 0; bottom: 1.5rem; }
  .home .product-links h2 { margin: .4rem 0 .5rem; }
  .home .product-links p { max-width: 50ch; }
}
@media (max-width:36rem) {
  .stage-list { gap: 1.15rem; }
  .stage-list p { font-size: .9rem; }
  .campaign-primary>a { display: none; }
  .ph-campaign-header .ph-mast { flex-wrap: nowrap; gap: .5rem; }
  .ph-campaign-header .ph-wordmark img { width: clamp(95px,28vw,145px); }
  .ph-campaign-header .ph-quote { font-size: .78rem; padding: .62rem .78rem; }
  .supplier-list { grid-template-columns: 1fr; gap: .45rem; }
  .project-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; align-items: center; }
  .project-filters select { width: 100%; min-width: 0; }
  .pack-table :is(td,th) { padding: .7rem .35rem; }
}
