/* Greater Manchester borough pages (/bolton … /wigan) — one design for the family, built by
   programme/designed_pages/pg_towns_gm.py. Layout and spacing only; body type comes from styles.css. */
.tgm { --tint: #f4f3ee; --rule: #d9d6cf; --edge: minmax(24px, 1fr); --a: 680px; --b: 512px; }
.tgm p { margin: 0 0 12px; }
.tgm h2 { margin: 0 0 18px; }
.tgm h3 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; color: var(--black); }
.tgm .tgm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tgm .tgm-btns .btn { margin: 0; }
.tgm .tgm-tel a { color: inherit; font-weight: 900; }

/* Hero: copy on white, a panel running the full hero height to the right-hand window edge */
.tgm-hero { display: grid; grid-template-columns: var(--edge) minmax(0, var(--a)) minmax(0, var(--b)) var(--edge);
  min-height: clamp(600px, calc(100vh - 150px), 860px); border-bottom: 1px solid var(--rule); }
.tgm-hero-copy { grid-column: 2; align-self: center; padding: 64px 64px 64px 0; }
.tgm-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; margin: 0 0 22px; }
.tgm-hero h1.tgm-long { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.tgm-hero .lead { max-width: 600px; }
.tgm-hero .tgm-tel { margin-top: 18px; }
.tgm-inc { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 600px; }
.tgm-inc li { position: relative; padding-left: 22px; font-weight: 700; line-height: 1.35; }
.tgm-inc li::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; background: var(--lime); }

.tgm-side { grid-column: 3 / 5; position: relative; display: flex; align-items: center; }
.tgm-side-in { padding: 64px 48px 64px 56px; width: 100%; max-width: calc(var(--b) + 48px); }
.tgm-areas, .tgm-office { background: var(--lime); }
.tgm-areas h2, .tgm-office h2 { font-size: 1.5rem; margin-bottom: 22px; }
.tgm-areas ul { list-style: none; margin: 0; padding: 0; }
.tgm-areas li { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.05;
  padding: 10px 0; border-bottom: 1px solid rgba(14,14,14,.22); color: var(--black); }
.tgm-areas li:first-child { border-top: 1px solid rgba(14,14,14,.22); }
.tgm-areas.tgm-many ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.tgm-areas.tgm-many li { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.tgm-areas.tgm-many li:nth-child(2) { border-top: 1px solid rgba(14,14,14,.22); }
.tgm-office .tgm-addr { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.04; color: var(--black); margin: 0 0 26px; }
.tgm-office p { color: var(--black); }
.tgm-photo { background: var(--black); overflow: hidden; }
.tgm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.tgm-photo .tgm-cap { position: absolute; left: 20px; bottom: 18px; margin: 0; background: rgba(14,14,14,.72); color: #fff;
  padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: .9rem; }

/* Business base: prose beside the sectors panel */
.tgm-base { padding: 96px 0 88px; }
.tgm-base h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); max-width: 820px; margin-bottom: 36px; }
.tgm-base-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.tgm-prose .lead { margin-bottom: 18px; }
.tgm-sectors { background: var(--tint); padding: 34px 34px 26px; border-top: 4px solid var(--black); }
.tgm-sectors h3 { margin-bottom: 16px; }
.tgm-sectors ul { list-style: none; margin: 0; padding: 0; }
.tgm-sectors li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--rule); line-height: 1.4; }
.tgm-sectors li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 10px; background: var(--lime); }
.tgm-sectors a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }

/* Towns band, for the two boroughs whose hero panel shows something else */
.tgm-areaband { background: var(--lime); padding: 56px 0; }
.tgm-areaband .inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.tgm-areaband h2 { font-size: 1.6rem; margin: 0; }
.tgm-areaband ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 34px; }
.tgm-areaband li { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.15; color: var(--black); }

/* How we work: one ruled strip */
.tgm-how { padding: 0 0 96px; }
.tgm-how-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--black); border-bottom: 1px solid var(--rule); }
.tgm-how-grid > div { padding: 30px 28px 24px; }
.tgm-how-grid > div + div { border-left: 1px solid var(--rule); }
.tgm-how-head { padding-left: 0 !important; }
.tgm-how-head h2 { font-size: 1.7rem; margin-bottom: 10px; }
.tgm-areaband + .tgm-how { padding-top: 88px; }

/* Services on black, 3 + 3 */
.tgm-svc { background: var(--black); padding: 96px 0; }
.tgm-svc-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.tgm-svc-head h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); margin: 0; }
.tgm-svc-head p { color: #b8b8b0; margin: 0; }
.tgm-svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.tgm-svc-grid li { border-top: 3px solid var(--lime); padding: 22px 0 34px; }
.tgm-svc-grid h3 { margin-bottom: 10px; }
.tgm-svc-grid h3 a { color: #fff; text-decoration: none; }
.tgm-svc-grid h3 a::after { content: " \2192"; color: var(--lime); }
.tgm-svc-grid h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; }
.tgm-svc-grid p { color: #b8b8b0; }
.tgm-svc-grid p a { color: #fff; }

/* Wigan: year-end accounts, steps on lime to the window edge, then the deadlines as a line */
.tgm-ye { padding: 0 0 88px; border-bottom: 1px solid var(--rule); }
.tgm-ye-top { display: grid; grid-template-columns: var(--edge) minmax(0, var(--a)) minmax(0, var(--b)) var(--edge); }
.tgm-ye-copy { grid-column: 2; padding: 96px 64px 64px 0; }
.tgm-ye-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.tgm-ye-steps { grid-column: 3 / 5; list-style: none; margin: 0; background: var(--lime); padding: 96px 48px 56px 56px; }
.tgm-ye-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 22px; max-width: 500px; }
.tgm-ye-steps .n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--black);
  font-family: "Anton", sans-serif; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.tgm-ye-steps h3 { margin: 8px 0 4px; }
.tgm-ye-steps p { color: var(--black); margin: 0; }
.tgm-line { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.tgm-line::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: var(--black); }
.tgm-line li { position: relative; padding: 36px 24px 0 0; }
.tgm-line li::before { content: ""; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--lime); border: 3px solid var(--black); box-sizing: border-box; }
.tgm-line .when { display: block; font-family: "Anton", "Arial Narrow", sans-serif; font-size: 1.5rem; line-height: 1.1; color: var(--black); margin-bottom: 8px; }
.tgm-line-note { margin-top: 26px !important; }

/* Questions: heading held at the left, answers open */
.tgm-faq { padding: 96px 0; }
.tgm-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.tgm-faq h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); position: sticky; top: 110px; }
.tgm-qas .qa { padding: 22px 0 10px; border-top: 1px solid var(--rule); break-inside: avoid; }
.tgm-qas .qa:first-child { border-top: 4px solid var(--black); }
.tgm-qas.tgm-two { column-count: 2; column-gap: 44px; }
.tgm-qas.tgm-two .qa:first-child { border-top: 1px solid var(--rule); }
.tgm-qas.tgm-two { border-top: 4px solid var(--black); }
.tgm-qas a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }

/* Close: black call panel from the left window edge, lime borough list to the right edge */
.tgm-close { display: grid; grid-template-columns: var(--edge) minmax(0, var(--a)) minmax(0, var(--b)) var(--edge); }
.tgm-talk { grid-column: 1 / 3; background: var(--black); display: flex; justify-content: flex-end; }
.tgm-talk-in { width: 100%; max-width: var(--a); padding: 88px 64px 88px 0; }
.tgm-talk h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); }
.tgm-bigtel { margin: 18px 0 0 !important; }
.tgm-bigtel span { display: block; color: #b8b8b0; font-weight: 700; margin-bottom: 4px; }
.tgm-bigtel a { font-family: "Anton", "Arial Narrow", sans-serif; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; color: var(--lime); text-decoration: none !important; border: 0 !important; }
.tgm-talk .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.tgm-talk .btn-outline:hover { background: rgba(255,255,255,.1); }
.tgm-review { margin-top: 22px !important; }
.tgm-review a { color: #fff; font-weight: 700; }
.tgm-near { grid-column: 3 / 5; background: var(--lime); }
.tgm-near-in { padding: 88px 48px 88px 56px; max-width: calc(var(--b) + 48px); }
.tgm-near h2 { font-size: 1.7rem; }
.tgm-near p { color: var(--black); }
.tgm-near p a { color: inherit; font-weight: 700; }
.tgm-ten { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.tgm-ten li { border-top: 1px solid rgba(14,14,14,.22); }
.tgm-ten a, .tgm-ten span { display: block; padding: 9px 0; font-family: "Anton", "Arial Narrow", sans-serif; font-size: 1.35rem; line-height: 1.15; color: var(--black); text-decoration: none; }
.tgm-ten a:hover { text-decoration: underline; }
.tgm-ten span { opacity: .4; }

/* Phone */
@media (max-width: 900px) {
  .tgm-hero, .tgm-ye-top, .tgm-close { grid-template-columns: 16px minmax(0, 1fr) 16px; min-height: 0; }
  .tgm-hero-copy, .tgm-ye-copy { grid-column: 2; padding: 40px 0 36px; }
  .tgm-side, .tgm-ye-steps, .tgm-talk, .tgm-near { grid-column: 1 / -1; }
  .tgm-side-in, .tgm-near-in { padding: 40px 16px; max-width: none; }
  .tgm-photo { min-height: 300px; }
  .tgm-ye-steps { padding: 40px 16px 24px; }
  .tgm-talk { justify-content: flex-start; }
  .tgm-talk-in { padding: 56px 16px; max-width: none; }
  .tgm-inc { grid-template-columns: 1fr; }
  .tgm-base { padding: 56px 0; }
  .tgm-base-grid, .tgm-svc-head, .tgm-faq-grid, .tgm-areaband .inner { grid-template-columns: 1fr; gap: 28px; }
  .tgm-sectors { padding: 26px 20px 18px; }
  .tgm-how { padding-bottom: 56px; }
  .tgm-how-grid { grid-template-columns: 1fr; }
  .tgm-how-grid > div { padding: 22px 0 16px; }
  .tgm-how-grid > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .tgm-svc, .tgm-faq { padding: 56px 0; }
  .tgm-svc-grid { grid-template-columns: 1fr; }
  .tgm-svc-grid li { padding-bottom: 24px; }
  .tgm-faq h2 { position: static; }
  .tgm-qas.tgm-two { column-count: 1; }
  .tgm-line { grid-template-columns: 1fr; margin-top: 40px; }
  .tgm-line::before { left: 9px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tgm-line li { padding: 0 0 22px 40px; }
  .tgm-areaband { padding: 40px 0; }
  .tgm-areas.tgm-many ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .tgm-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
