/* Shared layout 1.0.3. Theme selectors are already used by the current feed and
 * enterprise styles; confirm their live structure before installing. */
body.ghic-shell {
  --ghic-width: 1440px;
  --ghic-gutter: 24px;
  --ghic-title-size: 30px;
}
/* Live before-dom.json confirms #primary > .content-container > #main and
 * .entry-content-wrap > .entry-content on the seven loaded pages. #primary
 * specificity replaces Kadence's per-template vertical spacing in one rule. */
body.ghic-shell #primary.content-area { margin-top: 24px !important; }
body.ghic-shell #primary .content-container {
  width: 100%;
  max-width: calc(var(--ghic-width) + var(--ghic-gutter) + var(--ghic-gutter));
  margin-inline: auto;
  padding-inline: var(--ghic-gutter);
  box-sizing: border-box;
}
body.ghic-shell #primary #main { min-width: 0; padding: 0; }
body.ghic-shell #primary .entry-content-wrap { padding: 0; }
body.ghic-shell #primary .entry-content { margin-top: 0; padding: 0; }
body.ghic-shell #primary .entry-content > .ghif-centre-surface { margin: 0; padding: 0; }
body.ghic-shell #primary .ghif-centre-nav { margin: 0 0 20px; padding: 0; width: 100%; }
body.ghic-shell .ghif-centre-tabs { gap: 4px; }
body.ghic-shell .ghif-centre-nav .ghif-centre-tabs a {
  min-height: 48px;
  padding: 10px 18px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
/* The existing latest/current colours, aria-current and focus outline remain. */
body.ghic-shell #ghif-public { margin: 0; max-width: none; }
body.ghic-shell #ghif-public > .page { width: 100%; max-width: none; padding: 0; margin: 0; }
body.ghic-shell .ghpolicy,
body.ghic-shell .gharm-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Exact title structures checked in source and the live DOM. */
body.ghic-shell #ghif-public .intro { padding: 20px 0; }
body.ghic-shell #ghi-enterprise-design > .gh-top { padding: 20px 0; }
body.ghic-shell #ghi-enterprise-design > .gh-top > .gh-brand { display: none; }
body.ghic-shell .ghpolicy > .ghpolicy-back,
body.ghic-shell .ghpolicy > header > .ghpolicy-eyebrow { display: none; }
body.ghic-shell .ghpolicy > header,
body.ghic-shell .gharm-root > .gharm-header { padding: 20px 0; }
/* Exact shortcode wrapper from the mining plugin. A viewport breakout causes
 * the map and navigation edges to disagree even with an identical theme shell. */
body.ghic-shell .gh-mining-embed.gh-mining-full {
  left: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
}
/* Confirmed in live DOM: opportunities has the same viewport-wide breakout. */
body.ghic-shell #primary .gh-opps-embed {
  position: relative;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
}
body.ghic-shell #primary .gh-opps-embed > .gh-opps-frame {
  display: block;
  width: 100%;
  max-width: 100%;
}
body.ghic-shell #ghif-public .intro h1,
body.ghic-shell #ghi-enterprise-design .gh-top h1,
body.ghic-shell .ghpolicy > header h1,
body.ghic-shell .gharm-header .gharm-title,
body.ghic-shell .entry-title {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: var(--ghic-title-size);
  font-weight: 750;
  line-height: 40.5px;
  text-align: left;
  letter-spacing: 0;
  margin-top: 0;
  padding: 0;
}
@media (max-width: 800px) {
  body.ghic-shell { --ghic-gutter: 12px; }
  body.ghic-shell #primary.content-area { margin-top: 16px !important; }
  body.ghic-shell .ghif-centre-nav .ghif-centre-tabs a {
    padding-inline: 14px;
    min-height: 48px;
  }
}

/* Finance is an in-page WordPress component, not a cross-origin frame. */
body.ghic-shell-finance .ghfinance-app,
body.ghic-shell-finance .ghfinance-app > .page {width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box;}
body.ghic-shell-finance .entry-header {display:none;}
body.ghic-shell-finance .ghfinance-app .page > .masthead {padding:20px 0 22px;min-height:112px;}
body.ghic-shell-finance .ghfinance-app .masthead > .brand {display:none;}
body.ghic-shell-finance .ghfinance-app .heading {padding:0;border:0;}
body.ghic-shell-finance .ghfinance-app .masthead h1 {font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:var(--ghic-title-size);font-weight:750;line-height:40.5px;letter-spacing:0;text-align:left;margin:0 0 6px;}
@media(max-width:800px){body.ghic-shell-finance .ghfinance-app .page > .masthead{padding:18px 0;min-height:0;}body.ghic-shell-finance .ghfinance-app .masthead h1{font-size:24px;line-height:1.35;}}
