/* ==========================================================================
   Information pages (Object UI): /services, /sending-guidelines, /help, /about, /terms, /privacy.
   Loaded after site.css through head({ styles: ['/css/area-pages.css'] }).
   Home rhythm: big confident headings, oat / oat-deep / lichen / moss-deep bands, tag cards, slips,
   dockets for money, luggage-tag depot cards. No borders or rules: surfaces and space separate things.
   Breakpoints 1180 / 960 / 640.
   ========================================================================== */

.pg { --pg-gap: clamp(20px, 4vw, 80px); }
.anchor { scroll-margin-top: var(--s-5); }

/* Page head */
.pg-head { padding-top: var(--s-6); margin-bottom: clamp(48px, 6vw, 88px); }
.pg-title { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: .94; letter-spacing: -.04em; max-width: 14ch; }
.pg-head .lede { margin-top: 20px; max-width: 38em; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 32px 0 0; }
.pg-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pg-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--oat-deep);
  color: var(--ink); font-weight: 600; font-size: var(--small-size); text-decoration: none; }
.pg-jump a:hover { background: var(--lichen); }

/* Type */
.pg-h2 { margin: 0; font-size: clamp(2.125rem, 4vw, 3.5rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.pg-h3 { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.pg-lede { margin: 16px 0 0; max-width: 36em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; color: var(--fg-2); }
.pg-body { margin: 16px 0 0; max-width: 38em; line-height: 1.55; }
.pg-muted { color: var(--ink-2); }
.pg-ink { color: var(--ink); }
.pg-note { margin: 18px 0 0; color: var(--fg-2); max-width: 34em; }
.pg-more { margin: 24px 0 0; }
.pg-cities { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 24px; }
.pg-on-dark { color: var(--on-dark); }
.pg-on-dark-2 { color: var(--on-dark-2); }
a.pg-on-dark-2:hover { color: var(--on-dark); }

/* Bands */
.pg-band { padding-block: clamp(64px, 8vw, 120px); }
.pg-band--flush { padding-top: 0; }
.pg-band--deep { background: var(--oat-deep); --surface: var(--oat-deep); --inset: var(--slip); --field: var(--slip); }
.pg-band--lichen { background: var(--lichen); --surface: var(--lichen); --inset: var(--slip); --field: var(--slip); }
.pg-band--moss { background: var(--moss-deep); color: var(--on-dark); --surface: var(--moss-deep); --fg: var(--on-dark); --fg-2: var(--on-dark-2); --link: var(--lichen); --link-hover: var(--on-dark); }
.pg-sechead { margin-bottom: clamp(32px, 4vw, 48px); }

/* Layouts */
.pg-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--pg-gap); align-items: start; }
.pg-split__head { position: sticky; top: var(--s-6); }
.pg-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pg-gap); align-items: start; }
.pg-two--rates { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: stretch; margin-top: clamp(48px, 6vw, 80px); }
.pg-two--rates > div:first-child { display: flex; flex-direction: column; padding-top: 22px; }
.pg-two--rates .pg-steps { flex: 1; grid-auto-rows: 1fr; }
.pg-two--rates .pg-steps .slip { display: flex; align-items: center; }
/* Equal slips only beside the add-ons: stacked, each slip is as tall as its text */
@media (max-width: 960px) {
  .pg-two--rates .pg-steps { grid-auto-rows: auto; }
  .pg-two--rates .pg-steps .slip { display: block; }
}
.pg-two--limits { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pg-two--even { gap: 24px var(--pg-gap); align-items: stretch; }
.pg-two--careers { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; }
.pg-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pg-gap); align-items: stretch; }
.pg-photo { margin: 0; }
.pg-photo img { display: block; width: 100%; height: 0; min-height: 100%; object-fit: cover; border-radius: var(--r-xl); }
@media (max-width: 960px) { .pg-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 3; } }
.pg-photo--wide img { aspect-ratio: 16 / 10; object-position: 30% 50%; }
@media (max-width: 1180px) {
  .pg-split { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .pg-split, .pg-two, .pg-two--rates, .pg-two--limits, .pg-two--careers, .pg-media { grid-template-columns: minmax(0, 1fr); }
  .pg-split { gap: 28px; }
  .pg-split__head { position: static; }
  .pg-media--rev > .pg-photo { grid-row: 1; }
}

/* Slip rows used as steps and plain lists */
.pg-steps .slip p, .pg-list .slip, .pg-rows dd { line-height: 1.5; }
.pg-steps .slip { padding: 16px 20px; }
.pg-steps p { margin: 0; }
.pg-steps a { font-weight: 600; }
.pg-steps--num { counter-reset: pgstep; }
.pg-steps--num .slip { counter-increment: pgstep; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pg-steps--num .slip::before { content: counter(pgstep); color: var(--ink-2); font-family: var(--f-mono); font-size: var(--data-s); }
.pg-list .slip { padding: 14px 20px; }
.pg-list b { font-weight: 600; }
.pg-rows .ratecard__row { padding: 20px 24px; }
.pg-rows dd { color: var(--ink-2); }

/* /services: service tag cards */
.pg-svcs { display: grid; gap: 14px; }
.pg-svc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; padding: 28px 32px; }
.pg-svc__name { margin: 0; font-size: 2rem; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.pg-svc__main p { margin: 10px 0 0; line-height: 1.5; }
.pg-svc__facts { display: grid; gap: 14px; margin: 0; padding-top: 4px; }
.pg-svc__facts dt { color: var(--ink-2); font-size: var(--small-size); }
.pg-svc__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.pg-svc__facts dd .mono { font-weight: 400; font-size: .9375rem; }
@media (max-width: 1180px) { .pg-svc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pg-svc { padding: 22px 18px; } .pg-svc__name { font-size: 1.625rem; } }

/* /services: rate table */
.rates { --table-min: 0; }
.rates .table__group > th { padding: 26px 20px 4px; background: none; }
.rates tbody tr.table__group:first-child > th { padding-top: 8px; }
.rates .rates__zone { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.rates .rates__note { color: var(--ink-2); font-weight: 400; margin-left: 6px; }
.rates tbody th[scope="row"] { white-space: nowrap; }

/* The rates stay a real table once there is room for six columns: site.css stacks them into cards up to 960px,
   which leaves Same-day as one lone card and makes the rows hard to compare. */
@media (min-width: 641px) and (max-width: 960px) {
  .table.rates { display: table; width: 100%; }
  .rates thead { display: table-header-group; }
  .rates tbody { display: table-row-group; margin: 0; }
  .rates tr, .rates tbody tr { display: table-row; margin: 0; padding: 0; background: none; }
  .rates thead th { overflow-wrap: normal; }
  .rates tbody th, .rates td, .rates td[data-label] { display: table-cell; padding: 13px 16px !important; background: var(--inset) !important; overflow-wrap: normal; }
  .table.rates th.num, .table.rates td.num { text-align: right; white-space: nowrap; overflow-wrap: normal; }
  .rates tbody th[scope="row"] { text-align: left; padding-left: 20px !important; border-radius: var(--r) 0 0 var(--r) !important; }
  .rates td:last-child { padding-right: 20px !important; border-radius: 0 var(--r) var(--r) 0 !important; }
  .rates td[data-label]::before { content: none; }
  .rates .table__group > th { padding: 26px 20px 4px !important; background: none !important; text-align: left; }
}

/* Town pages: two "delivered" rows per card. The labels need a wider column to stay on one line */
@media (max-width: 640px) {
  .rates:has(td[data-label$="delivered"]) td[data-label] { padding-left: 50% !important; }
  .rates:has(td[data-label$="delivered"]) td[data-label]::before { width: 48%; white-space: nowrap; }
  .rates td[data-label$="delivered"] { font-size: var(--small-size); }
}
/* Town pages have room for "2–4 business days" on one line from here */
@media (min-width: 720px) and (max-width: 960px) {
  .rates tbody td:not(.num) { white-space: nowrap; }
  .rates tbody th, .rates td, .rates td[data-label] { padding-inline: 10px !important; }
  .rates tbody th[scope="row"] { padding-left: 16px !important; }
  .rates td:last-child { padding-right: 16px !important; }
}

/* /services: add-ons docket */
.pg-addons { padding-inline: 28px; }
.pg-addons__list { display: grid; gap: 6px; margin: 0; }
.pg-addon { padding: 14px 16px; border-radius: var(--r); background: var(--oat); }
.pg-addon dt { font-weight: 600; font-size: 1.0625rem; }
.pg-addon dd { margin: 4px 0 0; color: var(--ink-2); font-size: var(--small-size); line-height: 1.5; }
.pg-addon .tnum { color: var(--ink); }
.pg-addon__price { display: block; margin-bottom: 2px; color: var(--ink); }

/* /services: pickup, rural, door */
.pg-dl { display: grid; gap: 16px; margin: 32px 0 0; }
.pg-dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
.pg-dl dt { font-weight: 600; font-size: 1.0625rem; }
.pg-dl dd { margin: 0; line-height: 1.5; }
.pg-dl a { font-weight: 600; }
.pg-rural { margin-top: 32px; padding: 24px 26px; border-radius: var(--r-l); background: var(--slip); }
.pg-rural .pg-h3 { margin-bottom: 8px; }
.pg-rural p { margin: 0; line-height: 1.5; }
.pg-rural p + p { margin-top: 10px; color: var(--ink-2); }
.pg-door { margin-top: 28px; }
.pg-door .slip { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 16px; padding: 16px 20px; line-height: 1.5; }
@media (max-width: 640px) {
  .pg-dl > div, .pg-door .slip { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* /services: depot tags on moss-deep */
.pg-depots { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1180px) { .pg-depots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .pg-depots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pg-depots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Seven depots: the last one fills what is left of its row, so it is never a lone card with a gap beside it */
@media (min-width: 961px) and (max-width: 1180px) { .pg-depots .depot-tag:last-child { grid-column: span 2; } }
@media (max-width: 960px) { .pg-depots .depot-tag:last-child { grid-column: 1 / -1; } }
.pg-depots .depot-tag { padding: 14px 14px 14px; }
.pg-depot__serves { margin-top: 12px; font-size: var(--small-size); line-height: 1.4; }
.pg-depot__k { color: var(--ink-2); }
.depot-tag--hub .pg-depot__k { color: var(--ink); }
.pg-depot__sdy { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; font-size: var(--xs-size); font-weight: 600; line-height: 1.25; }
.pg-depot__sdy::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.pg-depot__role { margin-top: 6px; font-size: var(--xs-size); font-weight: 600; }

/* /about: depot tags split by island */
.pg-islands { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 24px 20px; }
.pg-island__head { margin: 0 0 14px; color: var(--on-dark-2); font-size: 1rem; font-weight: 600; }
.pg-islands .depot-tags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-islands > :last-child .depot-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .pg-islands .depot-tags, .pg-islands > :last-child .depot-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Three South Island depots two-up: Dunedin fills its row instead of leaving a gap */
@media (max-width: 640px) { .pg-islands > :last-child .depot-tag:last-child { grid-column: 1 / -1; } }
@media (max-width: 960px) { .pg-islands { grid-template-columns: minmax(0, 1fr); } }
.pg-company .kv { gap: 12px 24px; }

/* /sending-guidelines */
.pg-stats { margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pg-stats .stat { padding: 20px 22px; background: var(--slip); }
.pg-stat { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
.pg-stat .tnum { font-variant-numeric: tabular-nums; }
.pg-calc { margin-top: 32px; }
.pg-calc .docket__title { font-size: 1.1875rem; }
.pg-calc .docket__line { font-size: var(--small-size); }
.pg-calc .docket__line dd { margin: 0; }
.pg-calc .docket__line dt { color: var(--ink-2); }
.pg-pack { display: flex; flex-direction: column; padding: 28px 30px; height: 100%; }
.pg-pack__name { margin: 0 0 18px; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pg-sizes .slip { display: grid; gap: 2px; padding: 12px 16px; }
.pg-sizes .pg-muted { font-size: var(--small-size); }
.pg-pack__foot { margin: auto 0 0; padding-top: 18px; line-height: 1.5; }
@media (max-width: 640px) { .pg-pack { padding: 22px 18px; } .pg-pack__name { font-size: 1.625rem; } }

/* --------------------------------------------------------------------------
   Long-form: /help (question cards) and /terms, /privacy (a paper document)
   -------------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: clamp(64px, 8vw, 120px); }
.doc > * { min-width: 0; }
.doc__toc { position: sticky; top: var(--s-5); max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px 14px 16px; border-radius: var(--r-l); background: var(--oat-deep); }
.doc__toc-title { margin: 0 8px 8px; font-weight: 600; font-size: 1.0625rem; }
.doc__toc ol, .doc__toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.doc__toc a { display: flex; gap: 6px; padding: 8px 10px; border-radius: var(--r-s); color: var(--ink); font-size: var(--small-size); line-height: 1.35; text-decoration: none; }
.doc__toc a:hover { background: var(--slip); }
.doc__toc .doc__toc-group { margin: 16px 10px 4px; color: var(--ink-2); font-size: var(--xs-size); font-weight: 600; }
.doc__toc .doc__toc-group:first-of-type { margin-top: 4px; }
.doc__num { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-right: .35em; }
.doc__toc .doc__num { margin-right: 0; min-width: 1.6em; }
.doc__section { scroll-margin-top: var(--s-5); }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { position: static; max-height: none; overflow: visible; }
  .doc__toc ol, .doc__toc ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
}
@media (max-width: 640px) { .doc__toc ol, .doc__toc ul { grid-template-columns: minmax(0, 1fr); } }

/* Help: each question a paper card; the one you jump to turns lichen */
.doc--help .doc__section + .doc__section { margin-top: clamp(48px, 6vw, 80px); }
.doc__h { margin-bottom: 24px; font-size: clamp(1.875rem, 3vw, 2.625rem); }
.faq { display: grid; gap: 8px; }
.faq__item { padding: 24px 28px 26px; border-radius: var(--r-l); background: var(--slip); scroll-margin-top: var(--s-5); }
.faq__item:target { background: var(--lichen); }
.faq__q { margin: 0 0 10px; font-size: 1.3125rem; letter-spacing: -.015em; }
.faq__a { max-width: 42em; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__a p, .faq__a li { line-height: 1.55; }
.faq__a ul, .faq__a ol { margin-bottom: 1em; }
.help-contact { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--lichen); --inset: var(--slip); }
.help-contact .contact { margin-top: 28px; }
.help-contact .contact__cell p { margin: 0; color: var(--ink-2); font-size: var(--small-size); }
.help-contact .pg-actions { margin-top: 24px; }
@media (max-width: 640px) {
  .faq__item { padding: 20px 18px 22px; }
  .help-contact .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Legal: one paper document, calm reading measure */
.legal-note { margin-top: 28px; max-width: 46em; }
.doc__paper { padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px); border-radius: var(--r-xl); background: var(--slip); --inset: var(--oat); }
.doc__paper .doc__section { max-width: 40em; }
.doc__paper .doc__section + .doc__section { margin-top: 44px; }
.doc__paper .doc__section > h2 { display: flex; align-items: baseline; gap: 4px; margin: 0 0 14px; font-size: 1.625rem; line-height: 1.15; letter-spacing: -.02em; }
.doc__paper .prose p, .doc__paper .prose li { line-height: 1.6; }
.doc__paper .prose h3 { margin: 1.4em 0 .35em; font-size: 1.0625rem; }

/* Data inside running text sits a touch smaller so it does not shout */
.pg-dl .mono, .pg-rural .mono, .pg-lede .mono { font-size: .875em; }

/* ---------- Touch (≤ 960px or a finger): 44px targets ---------- */
@media (max-width: 960px), (pointer: coarse) {
  .doc__toc a { align-items: center; min-height: 44px; }
  .pg-jump a { min-height: 44px; }
}

/* /holidays */
.hd-sec { margin-bottom: var(--s-5); }
.hd-note { margin-top: var(--s-4); }
.hd-h3 { margin: 0 0 var(--s-3); }
.hd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.hd-foot { margin: var(--s-6) 0 var(--s-7); color: var(--fg-2); }
@media (max-width: 760px) { .hd-cols { grid-template-columns: minmax(0, 1fr); } }
/* The Christmas table as cards: an odd last card takes the row, and a date stays on one line */
@media (max-width: 960px) {
  @container tbl (min-width: 600px) {
    .hd-table tbody tr:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .hd-table tbody tr:last-child:nth-child(odd) td[data-label] { padding-left: calc(19% + 12px) !important; }
    .hd-table tbody tr:last-child:nth-child(odd) td[data-label]::before { width: 19%; }
  }
}
@media (max-width: 640px) {
  .hd-table td[data-label] { padding-left: 104px !important; }
  .hd-table td[data-label]::before { width: 96px; }
}
@media (max-width: 400px) {
  .hd-table td[data-label] { padding-left: 0 !important; }
  .hd-table td[data-label]::before { position: static; display: block; width: auto; }
  .hd-table td + td { margin-top: 4px; }
}
