/* Wyelee — service-area pages (/service-areas/ and /service-areas/<city>/) */

/* ---------- maps: labels are hidden on the home/contact map and shown here ---------- */
.aus .lbl { font-family: var(--font-display); font-weight: 800; font-size: 15px; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map-all .aus .lbl { display: inline; }
/* one city in focus: the other pins fade to grey, the focused one keeps its pulse and shows its name */
.map-focus .aus .city .dot { fill: var(--line-2); }
.map-focus .aus .city .ring { display: none; }
.map-focus[data-city="adelaide"] .c-adelaide .dot, .map-focus[data-city="sydney"] .c-sydney .dot,
.map-focus[data-city="brisbane"] .c-brisbane .dot, .map-focus[data-city="perth"] .c-perth .dot,
.map-focus[data-city="auckland"] .c-auckland .dot { fill: var(--green); }
.map-focus[data-city="adelaide"] .c-adelaide .ring, .map-focus[data-city="sydney"] .c-sydney .ring,
.map-focus[data-city="brisbane"] .c-brisbane .ring, .map-focus[data-city="perth"] .c-perth .ring,
.map-focus[data-city="auckland"] .c-auckland .ring { display: inline; animation: ring 2.4s ease-out infinite; }
.map-focus[data-city="adelaide"] .c-adelaide .lbl, .map-focus[data-city="sydney"] .c-sydney .lbl,
.map-focus[data-city="brisbane"] .c-brisbane .lbl, .map-focus[data-city="perth"] .c-perth .lbl,
.map-focus[data-city="auckland"] .c-auckland .lbl { display: inline; }
/* Across Australia: every Australian pin stays green and named, the map itself is the point */
.map-focus[data-city="all"] .aus .city .dot { fill: var(--green); }
.map-focus[data-city="all"] .aus .lbl { display: inline; }
@media (prefers-reduced-motion: reduce) { .map-focus .aus .ring { animation: none !important; } }
.aus.nz { max-width: 300px; }
.aus.anz { max-width: 640px; }
.area-map { margin: 0; }
.area-map .figure { padding: 18px 18px 8px; }

/* ---------- hero: country/region tag under the eyebrow ---------- */
.area-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--navy); font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--navy); }
.area-tag .ic { width: 1.05em; height: 1.05em; color: var(--green-text); }

/* ---------- site notes: local facts, each with its source (manual footnotes) ---------- */
.site-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--navy); counter-reset: note; }
.site-notes > li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.site-notes > li::before { counter-increment: note; content: "N" counter(note); grid-row: 1 / span 4; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--green-text); padding-top: 3px; letter-spacing: .04em; }
.site-notes > li > * { grid-column: 2; }
.site-notes h3 { font-size: 1.15rem; margin: 0 0 6px; }
.site-notes p { margin: 0 0 8px; color: var(--ink-2); max-width: 68ch; }
.site-notes ul { margin: 4px 0 8px; padding-left: 1.1em; color: var(--ink-2); }
.site-notes ul li { margin: 2px 0; }
.site-notes .src { margin: 2px 0 0; font-size: .86rem; color: var(--ink-3); }
.site-notes .src a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 900px) { .site-notes { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- index of areas (hub and "other service areas") ---------- */
.areas-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1.5px solid var(--navy); }
@media (min-width: 640px) { .areas-index { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1000px) { .areas-index.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.areas-index a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.areas-index a:hover .area-name { color: var(--green-text); }
.areas-index .area-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); transition: color .2s; }
.areas-index small { grid-column: 1; color: var(--ink-3); font-size: .92rem; }
.areas-index .ic { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--green-text); transition: transform .2s var(--ease); }
.areas-index a:hover .ic { transform: translateX(4px); }
.areas-index a[aria-current] { pointer-events: none; }
.areas-index a[aria-current] .area-name::after { content: " · you are here"; font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--ink-3); }
/* bigger names on the wide two-country map and on the New Zealand map (their viewBox is wider/narrower than Australia's) */
.aus.anz .lbl { font-size: 20px; stroke-width: 5px; }
.aus.nz .lbl { font-size: 17px; }

/* ---------- site notes beside a job photo ---------- */
.notes-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .notes-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } .notes-layout .site-notes { grid-template-columns: 1fr; } }
.notes-layout .figure { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 959px) { .notes-layout .figure { position: relative; top: auto; max-width: 420px; } }   /* relative, not static: .figure::before (inset -1px) must stay inside the frame */
.notes-layout .photo-tall img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.figure figcaption a { color: var(--navy); font-weight: 700; }

/* ---------- rules table (Across Australia: renting and wall anchoring, state by state) ---------- */
.rules-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1.5px solid var(--navy); }
.rules { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rules caption { text-align: left; padding: 0 0 10px; color: var(--ink-3); font-size: .88rem; caption-side: bottom; padding-top: 12px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.rules thead th { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.rules tbody th { font-family: var(--font-display); font-weight: 800; color: var(--navy); white-space: nowrap; }
.rules td { color: var(--ink-2); }
.rules a { color: var(--navy); font-weight: 700; }
@media (max-width: 639px) {
  .rules, .rules tbody, .rules tr, .rules th, .rules td { display: block; width: 100%; }
  .rules thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rules tbody tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rules tbody th, .rules td { border: 0; padding: 2px 0; }
  .rules td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
}
