/* Northern Ireland town pages (pg_towns_ni.py): one stylesheet for all 31. Layout and spacing only;
   body type comes from styles.css. */
.dz-towns-ni { --tint: #f5f4ef; --edge: max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.dz-towns-ni p { margin: 0 0 14px; }
.dz-towns-ni h3 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; color: inherit; }
.dz-towns-ni .tn-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dz-towns-ni .tn-btns .btn { margin: 0; }

/* Hero: the copy on the left, the drive-time dial on the right */
.dz-towns-ni .tn-hero { background: var(--white); padding: 48px 0 64px; min-height: clamp(600px, calc(100vh - 150px), 900px); display: flex; align-items: center; }
.dz-towns-ni .tn-hero .inner { width: 100%; }
.dz-towns-ni .tn-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 64px; align-items: center; }
.dz-towns-ni .tn-hero h1 { margin: 0 0 22px; }
.dz-towns-ni .tn-hero .lead { max-width: 580px; }
.dz-towns-ni .tn-tel { margin: 18px 0 0; }
.dz-towns-ni .tn-tel a { font-weight: 900; color: var(--black); }
.dz-towns-ni .tn-mtd { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; margin-top: 36px; padding: 16px 0 0; border-top: 2px solid var(--black); color: var(--black); text-decoration: none; }
.dz-towns-ni .tn-mtd b { grid-column: 1; }
.dz-towns-ni .tn-mtd span { grid-column: 1; color: var(--grey); }
.dz-towns-ni .tn-mtd i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 900; border-bottom: 3px solid var(--lime); white-space: nowrap; }
.dz-towns-ni .tn-mtd:hover i { border-color: var(--black); }

.dz-towns-ni .tn-dial { margin: 0; width: 100%; max-width: 660px; justify-self: end; }
.dz-towns-ni .tn-dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dz-towns-ni .tn-dial .disc { fill: var(--tint); }
.dz-towns-ni .tn-dial .ring { fill: none; stroke: #c9cbb8; stroke-width: 1.2; stroke-dasharray: 3 5; }
.dz-towns-ni .tn-dial .ring-l { font: 700 12px "Lato", Arial, sans-serif; fill: var(--grey); text-anchor: middle; }
.dz-towns-ni .tn-dial .route { stroke: var(--black); stroke-width: 3; }
.dz-towns-ni .tn-dial .town { fill: #8d8d84; }
.dz-towns-ni .tn-dial .town-l { font: 700 11.5px "Lato", Arial, sans-serif; fill: #56564f; }
.dz-towns-ni .tn-dial a:hover .town { fill: var(--black); }
.dz-towns-ni .tn-dial a:hover .town-l { fill: var(--black); text-decoration: underline; }
.dz-towns-ni .tn-dial .here { fill: var(--lime); stroke: var(--black); stroke-width: 3; }
.dz-towns-ni .tn-dial .here-l { font: 400 30px "Anton", Impact, sans-serif; fill: var(--black); }
.dz-towns-ni .tn-dial .office { fill: var(--black); }
.dz-towns-ni .tn-dial .office-here { fill: var(--lime); stroke: var(--black); stroke-width: 4; }
.dz-towns-ni .tn-dial .office-l { font: 900 13px "Lato", Arial, sans-serif; fill: var(--black); text-anchor: middle; }

.dz-towns-ni .tn-trip, .dz-towns-ni .tn-office { max-width: 540px; margin: 40px 0 0; }
.dz-towns-ni .tn-time { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 2px solid var(--black); font-weight: 900; }
.dz-towns-ni .tn-time span { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; }
.dz-towns-ni .tn-trip h2, .dz-towns-ni .tn-office h2 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; }
.dz-towns-ni .tn-office-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 22px 0 0; padding-top: 18px; border-top: 2px solid var(--black); }
.dz-towns-ni .tn-office-dl dt { font-weight: 900; margin: 0 0 2px; }
.dz-towns-ni .tn-office-dl dd { margin: 0; }
.dz-towns-ni .tn-office-dl a { color: var(--black); }
.dz-towns-ni .tn-maps { display: inline-block; margin-top: 20px; font-weight: 900; color: var(--black); text-decoration: none; border-bottom: 3px solid var(--lime); }

/* Ballymena: the office, address set large on lime to the right edge */
.dz-towns-ni .tn-off { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dz-towns-ni .tn-off-copy { padding: 88px 64px 88px var(--edge); }
.dz-towns-ni .tn-off-in { max-width: 560px; }
.dz-towns-ni .tn-off-copy h2 { margin: 0 0 20px; }
.dz-towns-ni .tn-off-addr { background: var(--lime); padding: 88px var(--edge) 88px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; }
.dz-towns-ni .tn-off-addr address { font-style: normal; font-family: "Anton", Impact, sans-serif; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; color: var(--black); }

/* The business base: on the tint, or beside the town's own photograph run to the window edge */
.dz-towns-ni .tn-base { background: var(--tint); }
.dz-towns-ni .tn-base-text { padding: 88px 0; }
.dz-towns-ni .tn-base-text h2 { max-width: 760px; margin: 0 0 28px; }
.dz-towns-ni .tn-base-cols { column-count: 2; column-gap: 56px; }
.dz-towns-ni .tn-base-cols p { break-inside: avoid; }
.dz-towns-ni .tn-sectors { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 2px solid var(--black); display: flex; flex-wrap: wrap; gap: 12px 34px; }
.dz-towns-ni .tn-sectors li { font-weight: 900; display: flex; align-items: center; gap: 10px; }
.dz-towns-ni .tn-sectors li::before { content: ""; width: 12px; height: 12px; background: var(--lime); border: 2px solid var(--black); flex: none; }
.dz-towns-ni .tn-base-photo { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.dz-towns-ni .tn-base-img { margin: 0; position: relative; min-height: 360px; }
.dz-towns-ni .tn-base-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.dz-towns-ni .tn-base-wrap { padding: 88px var(--edge) 88px 64px; display: flex; align-items: center; }
.dz-towns-ni .tn-base-copy { max-width: 560px; }
.dz-towns-ni .tn-base-copy h2 { margin: 0 0 24px; }
.dz-towns-ni .tn-base-copy .tn-sectors { gap: 12px 26px; }

/* What we do: the heading held on the left, the work numbered down the right */
.dz-towns-ni .tn-work { padding: 96px 0; background: var(--white); }
.dz-towns-ni .tn-work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 80px; align-items: start; }
.dz-towns-ni .tn-work-head { position: sticky; top: 120px; }
.dz-towns-ni .tn-work-head h2 { margin: 0 0 20px; }
.dz-towns-ni .tn-work-head .btn { margin-top: 14px; }
.dz-towns-ni .tn-work-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.dz-towns-ni .tn-work-list li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.dz-towns-ni .tn-work-list .n { font-family: "Anton", Impact, sans-serif; font-size: 2.6rem; line-height: 1; color: var(--black); }
.dz-towns-ni .tn-work-list p { margin: 0; }

/* Company accounts (Ballymena: the worked example as a ledger; Craigavon: the four areas) on black */
.dz-towns-ni .tn-co { background: var(--black); color: var(--white); padding: 96px 0; }
.dz-towns-ni .tn-co h2 { color: var(--white); margin: 0 0 22px; }
.dz-towns-ni .tn-co p { color: #dcdbd4; }
.dz-towns-ni .tn-co a { color: var(--lime); }
.dz-towns-ni .tn-co-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px 72px; align-items: start; }
.dz-towns-ni .tn-ledger { background: var(--white); color: var(--black); padding: 34px 36px; border-radius: var(--radius); }
.dz-towns-ni .tn-ledger h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin: 0 0 12px; }
.dz-towns-ni .tn-ledger p { color: var(--charcoal); }
.dz-towns-ni .tn-ledger a { color: var(--black); }
.dz-towns-ni .tn-ledger dl { margin: 22px 0; border-top: 2px solid var(--black); }
.dz-towns-ni .tn-ledger dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dz-towns-ni .tn-ledger dt { margin: 0; }
.dz-towns-ni .tn-ledger dd { margin: 0; font-weight: 900; white-space: nowrap; }
.dz-towns-ni .tn-ledger dl .total { border-bottom: 0; border-top: 2px solid var(--black); background: var(--lime); margin: 0 -14px; padding: 14px; }
.dz-towns-ni .tn-ledger dl .total dt { font-weight: 900; }
.dz-towns-ni .tn-ledger .caveat { color: var(--grey); margin: 0; }
.dz-towns-ni .tn-co-head { max-width: 720px; margin-bottom: 40px; }
.dz-towns-ni .tn-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.dz-towns-ni .tn-area { padding: 26px 0; border-top: 2px solid var(--lime); }
.dz-towns-ni .tn-area h3 { color: var(--white); }
.dz-towns-ni .tn-area p { margin: 0; }

/* Questions: the first full width when there are three, the rest two to a row */
.dz-towns-ni .tn-faq { background: var(--tint); padding: 96px 0; }
.dz-towns-ni .tn-faq h2 { margin: 0 0 36px; }
.dz-towns-ni .tn-q { background: var(--white); border-radius: var(--radius); padding: 30px 32px; }
.dz-towns-ni .tn-q p { margin: 0; }
.dz-towns-ni .tn-q-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 56px; margin-bottom: 20px; }
.dz-towns-ni .tn-q-lead h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 0; }
.dz-towns-ni .tn-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Enquiry: lime run to the left edge with what is included, the form on white */
.dz-towns-ni .tn-close { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.dz-towns-ni .tn-close-lime { background: var(--lime); padding: 88px 64px 88px var(--edge); display: flex; justify-content: flex-end; }
.dz-towns-ni .tn-close-in { max-width: 540px; width: 100%; }
.dz-towns-ni .tn-close-in h2 { margin: 0 0 16px; }
.dz-towns-ni .tn-close-in h3 { margin: 30px 0 12px; }
.dz-towns-ni .tn-inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 2px solid var(--black); }
.dz-towns-ni .tn-inc li { padding: 11px 0 11px 26px; border-bottom: 1px solid rgba(14,14,14,.2); position: relative; font-weight: 700; }
.dz-towns-ni .tn-inc li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--black); border-bottom: 3px solid var(--black); transform: rotate(-45deg); }
.dz-towns-ni .tn-call { margin: 30px 0 0; }
.dz-towns-ni .tn-call a { color: var(--black); }
.dz-towns-ni .tn-close-in .tn-btns { margin-top: 16px; }
.dz-towns-ni .tn-close-form { padding: 64px var(--edge) 64px 64px; display: flex; align-items: center; }
.dz-towns-ni .tn-close-form .contact-form { margin: 0; width: 100%; max-width: 600px; }

/* Towns we cover, grouped by drive time, on black */
.dz-towns-ni .tn-index { background: var(--black); color: var(--white); padding: 88px 0 96px; }
.dz-towns-ni .tn-index h2 { color: var(--white); margin: 0 0 18px; }
.dz-towns-ni .tn-index p { color: #dcdbd4; }
.dz-towns-ni .tn-index p a { color: var(--lime); }
.dz-towns-ni .tn-index-head { max-width: 760px; margin-bottom: 40px; }
.dz-towns-ni .tn-index-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 56px; }
.dz-towns-ni .tn-index-cols h3 { color: var(--lime); padding-bottom: 12px; border-bottom: 2px solid var(--lime); margin: 0; }
.dz-towns-ni .tn-index-cols ul { list-style: none; margin: 0; padding: 0; }
.dz-towns-ni .tn-index-cols li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #34342f; }
.dz-towns-ni .tn-index-cols li a { color: var(--white); font-weight: 900; text-decoration: none; }
.dz-towns-ni .tn-index-cols li a:hover { color: var(--lime); text-decoration: underline; }
.dz-towns-ni .tn-index-cols li span { color: #b9b8b0; white-space: nowrap; }
.dz-towns-ni .tn-index-cols li.home span { color: var(--lime); font-weight: 900; }

@media (max-width: 1000px) {
  .dz-towns-ni .tn-hero { min-height: 0; }
  .dz-towns-ni .tn-hero-grid, .dz-towns-ni .tn-work-grid, .dz-towns-ni .tn-co-grid { grid-template-columns: 1fr; }
  .dz-towns-ni .tn-work-head { position: static; }
  .dz-towns-ni .tn-base-photo, .dz-towns-ni .tn-close, .dz-towns-ni .tn-off { grid-template-columns: 1fr; }
  .dz-towns-ni .tn-off-copy { padding: 56px 24px; }
  .dz-towns-ni .tn-off-addr { padding: 56px 24px; }
  .dz-towns-ni .tn-base-img { min-height: 0; aspect-ratio: 16 / 10; }
  .dz-towns-ni .tn-base-wrap { padding: 56px 24px; }
  .dz-towns-ni .tn-close-lime { padding: 64px 24px; justify-content: flex-start; }
  .dz-towns-ni .tn-close-form { padding: 40px 24px 56px; }
  .dz-towns-ni .tn-index-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .dz-towns-ni .tn-hero { padding: 36px 0 56px; }
  .dz-towns-ni .tn-dial .town-l { display: none; }
  .dz-towns-ni .tn-dial .ring-l { font-size: 18px; }
  .dz-towns-ni .tn-dial .office-l { font-size: 20px; }
  .dz-towns-ni .tn-base-text, .dz-towns-ni .tn-work, .dz-towns-ni .tn-co, .dz-towns-ni .tn-faq, .dz-towns-ni .tn-index { padding: 64px 0; }
  .dz-towns-ni .tn-base-cols { column-count: 1; }
  .dz-towns-ni .tn-work-list li { grid-template-columns: 52px 1fr; gap: 12px; }
  .dz-towns-ni .tn-work-list .n { font-size: 2rem; }
  .dz-towns-ni .tn-q-lead, .dz-towns-ni .tn-qs, .dz-towns-ni .tn-areas, .dz-towns-ni .tn-index-cols, .dz-towns-ni .tn-inc, .dz-towns-ni .tn-office-dl { grid-template-columns: 1fr; }
  .dz-towns-ni .tn-q { padding: 24px 22px; }
  .dz-towns-ni .tn-ledger { padding: 26px 20px; }
  .dz-towns-ni .tn-ledger dl div { flex-direction: column; gap: 4px; }
}
