/*
  Colours are taken from the Local Government Week Aotearoa logo.
  Layout borrows the Best Awards case-study pattern: dark field, very large
  title, then a quiet reading column. Wording is not from that site.
*/

:root {
  --ink: #07111f;
  --navy: #0b2f6b;
  --text: #1a2433;
  --muted: #3e4a5c;
  --paper: #f3efe6;
  --white: #fffcf8;
  --line: #e2d9cc;
  --cyan: #0a6794;
  --green: #146b38;
  --gold: #8a5a10;
  --soft: #d5e2ee;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --serif: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --shadow: 0 14px 40px rgba(7, 17, 31, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero,
.page-hero {
  color: #fff;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(240, 180, 41, 0.2), transparent 52%),
    radial-gradient(ellipse 50% 75% at 0% 100%, rgba(20, 164, 214, 0.28), transparent 55%),
    linear-gradient(165deg, #0a1830 0%, #07111f 58%, #0c2438 100%);
}

.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 0.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 8px 22px rgba(0, 0, 0, 0.28);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  color: #fff;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 4.75rem;
}

.hero-swoosh {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: min(78%, 760px);
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero h1 {
  margin: 0;
  max-width: min(11em, 100%);
  color: #fff;
  font-size: clamp(1.7rem, 6.2vw, 5.25rem);
  font-weight: 600;
  line-height: 0.96;
}

.hero h1 span {
  display: inline;
  font-weight: 500;
  color: #d7e8f4;
}

.hero-lead {
  max-width: min(22rem, 100%);
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.brand-line {
  height: 6px;
  background: linear-gradient(90deg, #1495d4 0%, #2faf62 52%, #f0b429 100%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.hero .button {
  background: #fff;
  color: var(--ink);
}

.hero .button:hover {
  background: #e7eef6;
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.hero .button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.button-line:hover {
  background: var(--ink);
  color: #fff;
}

.sheet {
  background: transparent;
}

.panel {
  padding: 3.5rem 0;
}

.sheet .panel + .panel {
  padding-top: 0;
}

.split {
  display: grid;
  gap: 2rem;
}

.artwork {
  margin: 2.25rem 0 0;
}

.artwork img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
}

.artwork-poster img {
  width: min(100%, 760px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.scene .artwork {
  margin: 0.5rem 0 0;
}

.scene .artwork img {
  width: min(100%, 420px);
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet h2,
.page-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.lede {
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  border-left: 4px solid #1495d4;
  border-radius: 0 12px 12px 0;
  background: var(--white);
}

.pillar-index {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pillar-index li:nth-child(1) { --accent: #085a84; }
.pillar-index li:nth-child(2) { --accent: #0a326e; }
.pillar-index li:nth-child(3) { --accent: #0f5c30; }
.pillar-index li:nth-child(4) { --accent: #0a5566; }
.pillar-index li:nth-child(5) { --accent: #7a4e0c; }

.pillar-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(7, 17, 31, 0.06);
  border-top: 4px solid var(--accent);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.pillar-index a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.1);
}

.pillar-copy {
  display: block;
  min-width: 0;
}

.pillar-index .mi {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pillar-index .en {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.pillar-index .blurb {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.pillar-index .pillar-icon {
  width: 3.6rem;
  height: 3.6rem;
}

.pillar-icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
}

.hero-icon {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 0 0.85rem;
}

.pillars .pillar-icon {
  width: 3.4rem;
  height: 3.4rem;
}

.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-hero .en-name {
  display: block;
  margin-top: 0.4rem;
  color: var(--soft);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0;
}

.pillar-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.pillar-nav a img {
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.45rem;
}
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.pillar-nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pillar-nav a:hover {
  text-decoration: none;
  border-color: var(--navy);
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.related {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(7, 17, 31, 0.06);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.related a:hover {
  transform: translateY(-2px);
}

.related .mi {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.related a:hover .mi {
  text-decoration: underline;
}

.facts {
  max-width: 40rem;
  margin: 1.5rem 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1rem;
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.story {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.story h2,
.story h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.8rem;
}

.meta {
  margin: 0;
  color: var(--muted);
}

.credit {
  margin-top: 1.25rem;
}

.guide,
.pack {
  margin-top: 1.5rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border-radius: 28px;
  background: #e7f3fb;
  color: #16324f;
}

.guide h2,
.pack h2 {
  margin: 0 0 0.85rem;
  color: #12315c;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.guide h2::after,
.pack h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #1aa6c9;
}

.guide-intro,
.pack-intro {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #d5ebf8;
}

.guide-intro p,
.pack-intro p {
  margin: 0 0 0.7rem;
}

.guide-intro p:last-child,
.pack-intro p:last-child {
  margin: 0;
}

.pack-line {
  margin: -0.2rem 0 0.9rem;
  color: #12315c;
  font-size: 1.35rem;
  font-style: italic;
}

.guide-steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps > li,
.pack-panel {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid #d5e4f0;
  border-radius: 18px;
  background: #fff;
}

.step-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.guide-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: #12315c;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.pack-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #12315c;
  color: #fff;
}

.guide-steps h3,
.pack-panel h3 {
  margin: 0 0 0.2rem;
  color: #12315c;
  font-size: 1.2rem;
}

.guide-steps p,
.pack-panel p {
  margin: 0;
}

.step-icon,
.pillar-mark {
  color: #1a7eab;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 50%;
  background: #e7f3fb;
}

.step-icon svg,
.pillar-mark svg,
.pack-mark svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.4rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e4eef6;
}

.pillars a {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.pillars a:hover .en {
  text-decoration: underline;
}

.pillar-mark {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  color: #fff;
}

.mi-name {
  display: block;
}

.en {
  display: block;
  font-weight: 600;
}

.p-explore .pillar-mark { background: #1d6fbf; }
.p-experience .pillar-mark { background: #20a7c4; }
.p-meet .pillar-mark { background: #2f9e4f; }
.p-say .pillar-mark { background: #f0b429; }
.p-future .pillar-mark { background: #ef7d2a; }

.p-explore { color: #1d6fbf; }
.p-experience { color: #1488a4; }
.p-meet { color: #1f8a3d; }
.p-say { color: #c48910; }
.p-future { color: #d86512; }

.step-note {
  margin: 0.85rem 0 0;
  color: #3e4a5c;
  text-align: center;
}

.guide-simple {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0.8rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #d9f3e4;
}

.guide-simple strong {
  color: #146b38;
}

.star {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #1f9d57;
  color: #fff;
  font-size: 1.2rem;
}

.pack {
  margin-top: 1.25rem;
}

.pack-grid {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.pack-grid li {
  padding: 1rem 0.8rem 0.9rem;
  border-radius: 16px;
  text-align: center;
}

.pack-grid h3 {
  margin: 0.45rem 0 0.3rem;
  font-size: 1rem;
}

.pack-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.tone-green { background: #e5f6ea; color: #146b38; }
.tone-purple { background: #eee8f8; color: #5b3d91; }
.tone-blue { background: #e5f3fb; color: #0a6794; }
.tone-gold { background: #fff4d8; color: #8a5a10; }

.pack-grid .bubble {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
}

.pack-grid svg {
  width: 1.5rem;
  height: 1.5rem;
}

.pack-panel + .pack-panel,
.library + .pack-panel,
.library + .library,
.pack-panel + .library,
.pack-board + .library {
  margin-top: 0.8rem;
}

.library {
  padding: 1rem 1rem 1.15rem;
  border: 1px solid #d5e4f0;
  border-radius: 18px;
  background: #fff;
}

.library h3,
.library h4 {
  margin: 0 0 0.35rem;
  color: #12315c;
}

.library h3 {
  font-size: 1.2rem;
}

.library h4 {
  margin-top: 1rem;
  font-size: 1rem;
}

.library > p {
  margin: 0;
}

.sheet-grid,
.social-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.sheet-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.social-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.sheet-grid a,
.social-grid a {
  display: block;
  color: #12315c;
  font-weight: 700;
  text-decoration: none;
}

.sheet-grid img,
.social-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #e7f3fb;
}

.sheet-grid span,
.social-grid span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.library .visit {
  margin-top: 0.95rem;
}

.pack-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}

.pack-board {
  display: block;
}

.visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 0.75rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: #1aa6c9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.visit:hover {
  background: #0a6794;
  color: #fff;
  text-decoration: none;
}

.toolkit-link {
  margin: 1rem 0 0;
}

.gap {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  padding: 0.95rem 1rem;
  background: #f8f1df;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  color: #2a2418;
}

main:focus {
  outline: none;
}

#main,
#templates,
#activity-sheets,
#social-posts {
  scroll-margin-top: 5.5rem;
}

.site-footer {
  margin-top: 0;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--soft);
}

.footer-meta p {
  margin: 0;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .scene {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .pillar-index {
    grid-template-columns: 1fr 1fr;
  }

  .hero-lead {
    max-width: 34rem;
  }

  .pillars {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1079px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }

  .js .site-nav a {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .facts div {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1080px) {
  .header-bar {
    flex-wrap: nowrap;
  }

  .site-nav ul {
    justify-content: flex-end;
    padding: 0;
  }

  .pillar-index {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  .pillar-index a {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    height: 100%;
    padding: 1.2rem 0.75rem 1.1rem;
    text-align: center;
  }

  .pillar-index .mi {
    font-size: 1.15rem;
  }

  .pillar-index .en,
  .pillar-index .blurb {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pillar-index a:hover,
  .related a:hover {
    transform: none;
  }
}

@media print {
  .skip,
  .nav-toggle,
  .brand-line,
  .hero-swoosh {
    display: none !important;
  }

  .site-header,
  .hero,
  .page-hero,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero h1,
  .hero h1 span,
  .page-hero h1,
  .site-footer a,
  .site-nav a {
    color: #000;
  }
}
