/* Pain & Injury Guide. Loaded after /site.css and uses its colour variables. */
.g-article, .g-index { max-width: 760px; margin: 0 auto; }
.g-index { max-width: var(--maxw, 1120px); }
.g-article .section-title, .g-index .section-title { max-width: none; }
.g-article h2 { font-size: 1.7rem; margin: 2.4rem 0 .7rem; }
.g-article p, .g-article li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.g-article p { margin-bottom: 1rem; }
.g-article ul { padding-left: 1.3rem; margin: .4rem 0 1.1rem; }
.g-article li { margin: .4rem 0; }
.g-crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.g-crumbs a { color: var(--gold-deep); }
.g-crumbs a:hover { text-decoration: underline; }
.g-byline { font-size: .88rem; color: var(--ink-soft); margin: .2rem 0 1.4rem; }
.g-article p.g-lead, .g-index p.g-lead { font-size: 1.12rem; line-height: 1.65; color: var(--ink); max-width: 62ch; }
.g-alert { border-left: 4px solid var(--gold-deep); background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 1.3rem; margin: 2rem 0; border-radius: var(--radius); }
.g-alert h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.g-alert p, .g-alert li { margin: .3rem 0; }
.g-alert-urgent { border-left-color: #b3261e; background: #fdf3f2; }
.g-alert-urgent h2 { color: #8c1d18; }
.g-nhs { font-size: .95rem; }
.g-article a:not(.nav-cta) { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.g-article a:not(.nav-cta):hover { color: var(--gold-deep); }
.g-related { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .6rem; }
.g-related li { margin: 0 !important; }
.g-related a { display: inline-block; border: 1px solid var(--line) !important; background: var(--white); padding: .4rem 1rem; font-size: .93rem; }
.g-related a:hover { background: var(--navy); color: var(--white) !important; border-color: var(--navy) !important; }
.g-cta { margin: 1.5rem 0; }
.g-cta .nav-cta { display: inline-block; margin-left: 0; color: var(--white); border-bottom: 0 !important; }
.g-article p.g-disclaimer, .g-index p.g-disclaimer { font-size: .84rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.2rem; }

/* index */
.g-search { margin: 1.6rem 0 1.1rem; }
.g-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.g-search input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(184,148,95,.25); }
.g-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.g-chip { font: inherit; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: .45rem 1.05rem; cursor: pointer; border-radius: 999px; }
.g-chip:hover { border-color: var(--gold-deep); }
.g-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.g-status { min-height: 1.4rem; font-size: .92rem; color: var(--ink-soft); margin: .2rem 0 1rem; }
.g-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.g-card[hidden], .g-grid[hidden], .g-empty[hidden] { display: none; }
.g-card a { display: flex; flex-direction: column; gap: .45rem; height: 100%; box-sizing: border-box; padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.g-card a:hover, .g-card a:focus-visible { border-color: var(--gold-deep); transform: translateY(-2px); }
.g-card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-deep); }
.g-card-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--navy); }
.g-card-sum { font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.g-empty { text-align: center; padding: 2rem 1rem; background: var(--white); border: 1px solid var(--line); margin-bottom: 2rem; }
.g-empty p { color: var(--ink-soft); }
.g-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .g-article h2 { font-size: 1.45rem; } section { padding: 56px 0; } }

/* ---- v2: body-area groups, popular searches, help panel, sources, Q&A ---- */
.g-article h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.35rem; color: var(--navy); margin: 1.4rem 0 .35rem; line-height: 1.2; }
.g-qa { margin-bottom: 1rem; }
.g-qa p { margin-bottom: .6rem; }
.g-sources { padding-left: 1.3rem; }
.g-sources li { font-size: .95rem; }
.g-card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.g-badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: .18rem .55rem; border-radius: 999px; white-space: nowrap; }
.g-badge[hidden] { display: none; }
.g-group { grid-column: 1 / -1; margin: 1.2rem 0 -.2rem; }
.g-group[hidden] { display: none; }
.g-group h2 { font-size: 1.55rem; margin: 0; padding-bottom: .45rem; border-bottom: 1px solid var(--line); color: var(--navy); }
.g-group:first-child { margin-top: 0; }
.g-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.4rem; }
.g-popular-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-right: .3rem; }
.g-pop { font: inherit; font-size: .86rem; border: 1px dashed var(--gold-deep); background: transparent; color: var(--navy); padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.g-pop:hover, .g-pop:focus-visible { background: var(--navy); color: var(--white); border-style: solid; border-color: var(--navy); }
.g-chips-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .5rem; }
.g-help { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold-deep); border-radius: var(--radius); padding: 1rem 1.2rem .3rem; margin: 0 0 1.4rem; }
.g-help[hidden] { display: none; }
.g-help p { margin: 0 0 .7rem; color: var(--ink-soft); }
.g-alert[hidden] { display: none; }
.g-chip:focus-visible, .g-pop:focus-visible, .g-card a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
@media (max-width: 600px) { .g-grid { grid-template-columns: 1fr; } .g-group h2 { font-size: 1.35rem; } .g-popular-label { width: 100%; } }

.g-pdf { margin: 2rem 0; padding: 1.25rem 1.4rem; border: 1px solid #B8945F; border-left-width: 4px; background: #FBFAF6; border-radius: 6px; }
.g-pdf h2 { margin-top: 0; }
.g-pdf .g-cta { margin-bottom: 0; }
