/* PNGCORE — "Industry page" template (templates/industry-page.php) and the shared parts of the /industry/ hub
   (owner: policy). Loaded through the pc_template_css filter by both templates; scoped to body.pc-industry. */

.pc-industry main [id]{scroll-margin-top:calc(var(--pc-header-h) + 80px)}
.pc-industry .pc-page-notice .pc-notice{max-width:var(--pc-measure)}
.pc-industry .pc-data-notice b{display:block;margin-bottom:2px}
.pc-industry .pc-data-notice p{margin:0}

/* Legacy body: readable measure for running text inside the renderer's blocks */
.pc-industry-legacy .pc-legacy-block > :is(p,ul,ol,h2,h3,.pc-list),
.pc-industry-legacy .pc-legacy-block > .pc-group > :is(p,ul,ol,h2,h3){max-width:var(--pc-measure)}
.pc-industry-legacy .pc-legacy-block > h2{margin-top:0}
.pc-industry-legacy .pc-legacy-block + .pc-legacy-block{margin-top:var(--pc-s5)}
.pc-industry-legacy figcaption{margin-top:var(--pc-s3);font-size:var(--pc-fs-meta);line-height:1.45;color:var(--pc-muted)}
.pc-industry-legacy .pc-figure{margin:0}
/* Standalone figures keep their width attribute (natural size), capped by the column; WordPress core gives lazy
   sizes="auto" images a 3000×1500 intrinsic placeholder, so width must never be left to auto. */
.pc-industry-legacy .pc-figure img{max-width:100%;height:auto;border-radius:var(--pc-r)}
.pc-industry-legacy .pc-legacy-block > .pc-figure{margin:var(--pc-s5) 0 var(--pc-s6)}
.pc-industry-legacy .pc-col > .pc-figure img,.pc-industry-legacy .pc-figures .pc-figure img{width:100%}
.pc-industry-legacy .pc-grid-2{align-items:center}
.pc-industry-more{margin:var(--pc-s5) 0 0}
.pc-industry-more .pc-more{min-height:44px}

/* Project accordions (Mining, Petroleum and energy) */
.pc-industry-legacy details.pc-project{max-width:1000px}
.pc-industry-legacy details.pc-project summary{min-height:56px;padding:var(--pc-s3) 0}
.pc-industry-legacy details.pc-project summary:hover{color:var(--pc-brand-800)}
.pc-project-body{display:grid;gap:var(--pc-s4);padding-bottom:var(--pc-s2)}
@media (min-width:720px){.pc-project-body.has-img{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:var(--pc-s6);align-items:start}}
.pc-project-body.has-img > :not(.pc-project-img){grid-column:-2}
.pc-project-img{grid-row:1 / span 20;width:100%;height:auto;border-radius:var(--pc-r);background:var(--pc-surface)}
.pc-project-body p{margin:0;color:var(--pc-text)}
.pc-project-web{font-size:var(--pc-fs-small);font-weight:600}
.pc-project-web a{display:inline-flex;align-items:center;gap:4px;min-height:44px}
.pc-project-dead{font-weight:400;color:var(--pc-muted)}

/* Figure pairs (maps, tables as images): stacked, wide */
.pc-industry-legacy .pc-grid.pc-figures{grid-template-columns:minmax(0,1fr);max-width:1000px;gap:var(--pc-s7);margin-top:var(--pc-s7)}
.pc-industry-legacy .pc-grid.pc-figures > *{grid-column:1 / -1}

/* Petroleum and energy: the drilling-rig photo under the article's heading, at the reading column's width */
.pc-industry-legacy .pc-industry-inline{margin:var(--pc-s5) 0 var(--pc-s6)}
.pc-industry-inline img{width:100%;height:auto;border-radius:var(--pc-r-lg)}

/* Topic cards (hub social programmes; Social contribution page) */
.pc-topics{display:grid;gap:var(--pc-gap);grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));margin-top:var(--pc-s6)}
.pc-industry-legacy .pc-legacy-block.pc-topics{margin-top:var(--pc-s7)}
.pc-topic{display:flex;flex-direction:column;gap:var(--pc-s3);padding:var(--pc-s6);border-radius:var(--pc-r-lg);background:var(--pc-surface)}
.pc-section--surface .pc-topic{background:var(--pc-bg)}
.pc-topic > :is(h2,h3){display:flex;flex-direction:column;align-items:flex-start;gap:var(--pc-s3);margin:0;font-size:var(--pc-fs-h5);line-height:1.3}
.pc-topic > p,.pc-topic li{font-size:var(--pc-fs-small);color:var(--pc-text)}
.pc-topic > p{margin:0}
.pc-topic > :is(ul,ol){margin:0;padding-left:1.15em;display:grid;gap:var(--pc-s2)}
.pc-topic li::marker{color:var(--pc-brand-700)}

/* Key figures (Economic contribution) at the top of the first body section */
.pc-legacy-section--lead .pc-industry-facts{margin-bottom:var(--pc-s8)}
.pc-industry-facts .pc-stat-unit{max-width:30ch}

/* Industry cards (hub and "more" band) */
.pc-industry-cards .pc-card-title{font-size:var(--pc-fs-h5)}
.pc-industry-cards .pc-card-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pc-industry-more-lead{max-width:var(--pc-measure);margin:calc(-1 * var(--pc-s4)) 0 var(--pc-s7)}
.pc-industry-more-lead p{margin:0;color:var(--pc-text)}

/* Fact sheet band */
.pc-industry-sources .pc-split{align-items:center}
.pc-industry-sources .pc-section-head{margin-bottom:var(--pc-s3)}
.pc-industry-sources .pc-source{margin:0}
.pc-industry-sources .pc-source p{margin:0}
.pc-industry-current-link{margin:var(--pc-s4) 0 0}
.pc-industry-current-link .pc-more{min-height:44px}
.pc-industry .pc-stat-num small{font-size:.42em;letter-spacing:0}

/* Utility bar on very narrow phones (local work-around, same as the About template; the components.css fix is
   proposed in build/shared-requests/about.md and policy.md) */
@media (max-width:389px){
  .pc-industry .pc-utility-text{display:none}
  .pc-industry .pc-utility-note strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* 44 px targets: the small Download buttons and section-head links on these pages */
.pc-industry .pc-doc .pc-btn-sm{min-height:44px}
.pc-industry .pc-section-head .pc-more{min-height:44px}
.pc-industry .pc-anchor-nav .pc-chip{min-height:44px}

/* Contrast work-arounds (shared fixes proposed in build/shared-requests/policy.md): hero breadcrumb links used the
   light theme's muted grey on navy/photo heroes (2.7:1); a primary button inside .pc-dark printed white on green. */
.pc-industry .pc-hero .pc-breadcrumbs a{color:var(--pc-on-dark-muted)}
.pc-industry .pc-hero .pc-breadcrumbs a:hover{color:#fff}
.pc-industry .pc-dark .pc-btn-primary{color:var(--pc-navy)}

/* ------------------------------------------------------------------------------------------------------------
   Industry page body (QA round 1, BR1-23): the "Data as at" notice and key figures on top, then a reading column
   (46rem, the notice's width too) and, from 1024 px, a sticky aside with the section links and the fact sheet.
   ------------------------------------------------------------------------------------------------------------ */
.pc-industry-body{padding-top:var(--pc-s7)}
.pc-industry-notice{max-width:46rem;margin:0 0 var(--pc-s7)}
.pc-industry-notice .pc-notice{max-width:none}
.pc-industry-facts-block{margin:0 0 var(--pc-s8);padding-bottom:var(--pc-s8);border-bottom:1px solid var(--pc-line)}
.pc-industry-facts-block .pc-industry-facts{margin:0}
.pc-industry-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--pc-s8)}
.pc-industry-main{min-width:0;max-width:46rem}
.pc-industry-legacy.pc-industry-main .pc-legacy-block > :is(p,ul,ol,h2,h3,.pc-list),
.pc-industry-legacy.pc-industry-main .pc-legacy-block > .pc-group > :is(p,ul,ol,h2,h3){max-width:none}
.pc-industry-main details.pc-project{max-width:none}
.pc-industry-sec + .pc-industry-sec{margin-top:var(--pc-s8);padding-top:var(--pc-s8);border-top:1px solid var(--pc-line)}
.pc-industry-main .pc-legacy-block > h2:first-child,.pc-industry-main .pc-legacy-block > .pc-group:first-child > h2:first-child{margin-top:0}
.pc-industry-main .pc-grid.pc-figures{max-width:none;margin-top:var(--pc-s6)}
@media (min-width:1024px){
  .pc-industry-layout{grid-template-columns:minmax(0,1fr) 280px;column-gap:var(--pc-s7);align-items:start}
  .pc-industry-aside{position:sticky;top:calc(var(--pc-header-h) + var(--pc-anchor-h,72px) + var(--pc-s5))}
  .admin-bar .pc-industry-aside{top:calc(var(--pc-header-h) + var(--wp-admin--admin-bar--height,32px) + var(--pc-anchor-h,72px) + var(--pc-s5))}
}
.pc-industry-aside{min-width:0;max-width:46rem}
.pc-industry-aside-inner{display:grid;gap:var(--pc-s6)}
.pc-industry-aside-title{margin:0 0 var(--pc-s3);font-size:var(--pc-fs-eyebrow);font-weight:700;font-stretch:var(--pc-wdth-eyebrow);line-height:1.3;letter-spacing:var(--pc-track-eyebrow);text-transform:uppercase;color:var(--pc-brand-700)}
.pc-industry-toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--pc-line)}
.pc-industry-toc a{display:flex;align-items:center;min-height:44px;margin-left:-2px;padding:var(--pc-s2) 0 var(--pc-s2) var(--pc-s4);border-left:2px solid transparent;font-size:var(--pc-fs-small);font-weight:600;line-height:1.35;color:var(--pc-text);text-decoration:none}
.pc-industry-toc a:hover{color:var(--pc-brand-800);border-left-color:var(--pc-brand-700)}
.pc-industry-toc a:focus-visible{outline:2px solid var(--pc-focus);outline-offset:2px;border-radius:var(--pc-r-sm)}
.pc-industry-sheet{padding:var(--pc-s5);border-radius:var(--pc-r-lg);background:var(--pc-surface)}
.pc-industry-sheet .pc-docs{border-top:0}
.pc-industry-sheet .pc-doc{grid-template-columns:auto minmax(0,1fr);padding-top:0;align-items:start}
.pc-industry-sheet .pc-doc > .pc-btn{grid-column:2;justify-self:start}
.pc-industry-sheet .pc-doc .pc-chip-icon{background:var(--pc-bg)}
.pc-industry-sheet .pc-source{margin:var(--pc-s4) 0 0}
@media (max-width:1023px){.pc-industry-toc{display:none}}
@media (min-width:1280px){.pc-industry-layout{grid-template-columns:minmax(0,46rem) 340px;justify-content:space-between;column-gap:var(--pc-s8)}}

/* Maps that open full size in the lightbox (one image per figure: no previous/next or counter) */
.pc-industry-legacy figure.pc-zoom{display:block}
.pc-industry-legacy .pc-zoom .pc-zoom-link{display:block;position:relative;overflow:hidden;border-radius:var(--pc-r);background:none}
.pc-industry-legacy .pc-zoom img{aspect-ratio:auto;object-fit:contain;transition:none}
.pc-industry-legacy .pc-zoom .pc-zoom-link:hover img{transform:none}
.pc-industry-legacy .pc-zoom .pc-zoom-link::after{content:none}
.pc-zoom-hint{position:absolute;right:var(--pc-s3);bottom:var(--pc-s3);display:inline-flex;align-items:center;gap:var(--pc-s2);min-height:44px;padding:0 var(--pc-s4);border-radius:var(--pc-r-pill);background:var(--pc-navy);color:#fff;font-size:var(--pc-fs-meta);font-weight:600;line-height:1}
.pc-zoom-hint .pc-icon{width:16px;height:16px}
.pc-zoom-link:hover .pc-zoom-hint{background:var(--pc-brand-800)}
.pc-zoom-link:focus-visible{outline:2px solid var(--pc-focus);outline-offset:3px}
.pc-industry-page .pc-lightbox-prev,.pc-industry-page .pc-lightbox-next,.pc-industry-page .pc-lightbox-count{display:none}

/* Contained-gold table rebuilt from the old table image (BR1-21, UX1-20): grouped headers, tabular numerals,
   totals in bold; on narrow columns it scrolls inside its labelled region with a sticky mine column and edge
   shadows as the cue. */
.pc-industry-legacy .pc-reserves{margin:var(--pc-s6) 0 0}
.pc-rv-box{overflow:hidden;border:1px solid var(--pc-line);border-radius:var(--pc-r-lg);background:var(--pc-bg)}
.pc-rv-title{margin:0;padding:var(--pc-s4) var(--pc-s4) var(--pc-s3);font-size:var(--pc-fs-h5);font-weight:700;line-height:1.35;color:var(--pc-ink)}
.pc-reserves .pc-table-wrap{margin:0;border-top:1px solid var(--pc-line);background:linear-gradient(90deg,var(--pc-bg) 30%,rgba(255,255,255,0)) left/40px 100% no-repeat local,linear-gradient(270deg,var(--pc-bg) 30%,rgba(255,255,255,0)) right/40px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(0,38,59,.18),rgba(0,38,59,0)) left/14px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(0,38,59,.18),rgba(0,38,59,0)) right/14px 100% no-repeat scroll}
.pc-reserves .pc-table-wrap:focus-visible{outline:2px solid var(--pc-focus);outline-offset:-2px}
.pc-reserves-table{min-width:600px;font-size:var(--pc-fs-small);font-variant-numeric:tabular-nums lining-nums}
.pc-rv-asat{display:block;margin-top:var(--pc-s1);font-size:var(--pc-fs-meta);font-weight:600;color:var(--pc-muted)}
.pc-reserves-table th,.pc-reserves-table td{padding:var(--pc-s2);vertical-align:bottom}
.pc-reserves-table thead th:first-child,.pc-reserves-table tbody th{padding-left:var(--pc-s4)}
.pc-reserves-table :is(th,td):last-child{padding-right:var(--pc-s4)}
.pc-reserves-table thead th{font-size:var(--pc-fs-meta);font-weight:600;line-height:1.3;background:var(--pc-surface)}
.pc-reserves-table thead th.pc-rv-group-head{text-align:center;border-bottom:1px solid var(--pc-line-strong)}
.pc-reserves-table tbody th{min-width:6.5em;font-weight:600;line-height:1.3}
.pc-reserves-table td{color:var(--pc-text)}
.pc-reserves-table td.pc-rv-date{min-width:6em;font-size:var(--pc-fs-meta);color:var(--pc-muted)}
.pc-reserves-table .pc-rv-sum{font-weight:700;color:var(--pc-ink)}
.pc-reserves-table :is(th,td).pc-rv-grand,.pc-reserves-table thead tr:first-child th:last-child{border-left:1px solid var(--pc-line-strong)}
.pc-reserves-table tbody :is(th,td){vertical-align:middle}
.pc-reserves-table tbody tr:last-child > *{border-bottom:0}
.pc-reserves-table abbr{text-decoration:none;color:var(--pc-muted)}
.pc-reserves-table thead th:first-child,.pc-reserves-table tbody th{position:sticky;left:0;z-index:1}
.pc-reserves-table tbody th{background:var(--pc-bg)}
.pc-reserves-table tbody tr:hover th{background:var(--pc-surface)}
.pc-reserves .pc-source{margin:var(--pc-s3) 0 0}
.pc-scroll-hint{display:none;align-items:center;gap:var(--pc-s2);margin:var(--pc-s2) 0 0;font-size:var(--pc-fs-meta);color:var(--pc-muted)}
.pc-scroll-hint .pc-icon{width:14px;height:14px}
@media (max-width:1279px){.pc-scroll-hint{display:flex}}

/* Export values by sector, Sept 2018, redrawn from the old pie chart as horizontal bars (BR1-22). One brand hue:
   resource sector in brand blue, other sectors in a lighter brand tint (validated pair); every bar labelled. */
.pc-hbar{--pc-hbar-other:#4E9BD4;container-type:inline-size;margin:0;padding:var(--pc-s5);border:1px solid var(--pc-line);border-radius:var(--pc-r-lg);background:var(--pc-bg)}
.pc-industry-legacy .pc-legacy-block > .pc-hbar,.pc-industry-legacy .pc-col > .pc-hbar{margin:var(--pc-s5) 0 var(--pc-s6)}
.pc-hbar-head{display:flex;flex-direction:column;gap:var(--pc-s1);margin:0 0 var(--pc-s4)}
.pc-hbar-title{font-size:var(--pc-fs-h5);font-weight:700;line-height:1.35;color:var(--pc-ink)}
.pc-hbar-note{font-size:var(--pc-fs-meta);color:var(--pc-muted)}
.pc-hbar-legend{display:flex;flex-wrap:wrap;gap:var(--pc-s2) var(--pc-s5);list-style:none;margin:0 0 var(--pc-s5);padding:0;font-size:var(--pc-fs-meta);color:var(--pc-text)}
.pc-hbar-key{display:inline-flex;align-items:center;gap:var(--pc-s2)}
.pc-hbar-swatch{width:12px;height:12px;border-radius:3px;background:var(--pc-hbar-other)}
.pc-hbar-key.is-lead .pc-hbar-swatch{background:var(--pc-brand-700)}
.pc-hbar-list{display:grid;gap:var(--pc-s3);list-style:none;margin:0;padding:0}
.pc-hbar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "track track";gap:var(--pc-s1) var(--pc-s3);align-items:baseline}
.pc-hbar-label{grid-area:label;font-size:var(--pc-fs-small);font-weight:600;line-height:1.3;color:var(--pc-ink)}
.pc-hbar-value{grid-area:value;font-size:var(--pc-fs-small);line-height:1.3;font-variant-numeric:tabular-nums lining-nums;color:var(--pc-text);text-align:right;white-space:nowrap}
.pc-hbar-share{color:var(--pc-muted)}
.pc-hbar-track{grid-area:track;display:block;width:100%;height:14px}
.pc-hbar-bar{fill:var(--pc-hbar-other)}
.pc-hbar-row.is-lead .pc-hbar-bar{fill:var(--pc-brand-700)}
.pc-hbar .pc-source{margin:var(--pc-s4) 0 0}
@container (min-width:520px){
  .pc-hbar-row{grid-template-columns:7.5rem minmax(0,1fr) 9.5rem;grid-template-areas:"label track value";align-items:center}
  .pc-hbar-track{height:20px}
}

/* Keep sourced industry detail comfortable to read. */
.pc-industry-page .pc-section{padding-block:clamp(56px,7vw,96px)}
.pc-industry-page .pc-industry-layout{column-gap:clamp(40px,6vw,80px)}
.pc-industry-page .pc-industry-main p{max-width:68ch;line-height:1.8}
.pc-industry-page .pc-industry-main h2{margin-top:48px;margin-bottom:24px}
.pc-industry-page .pc-industry-main h2:first-child{margin-top:0}
