/* ==========================================================================
   AWS - Hobart - components.css

   Construction rules from the visual language spec, applied throughout:
     - Content sits on the page background. Cards are the exception.
     - Separation is a 1px hairline rule. Never a border box, never a shadow.
     - No shadows anywhere.
     - Radius appears on images, small icon tiles and buttons. Nowhere else.
     - No pill eyebrow labels. No colored accent bars. No gradients as fills.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Eyebrow label
   Plain letter-spaced text with a bullet prefix. No background fill, no
   border. The reference uses a pill in its hero. Deliberately not carried.
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.eyebrow::before {
  content: '\2022';
  margin-right: 0.6rem;
}

.on-dark .eyebrow,
.section--dark .eyebrow {
  color: var(--color-accent-on-dark);
}

/* The hero's place line, "Hobart, Indiana", runs larger than section
   labels: it is the first thing read over the photograph. */
.hero-full .eyebrow {
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .hero-full .eyebrow { font-size: 1.375rem; }
}

/* --------------------------------------------------------------------------
   Two-tone heading
   The signature device of the reference. First line ink, second line muted.
   -------------------------------------------------------------------------- */

.heading-2tone {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .heading-2tone {
    font-size: 2.75rem;
  }
}

.heading-2tone-alt {
  display: block;
  color: var(--color-ink-muted);
}

.section--dark .heading-2tone-alt,
.on-dark .heading-2tone-alt {
  color: var(--color-accent-on-dark);
}

.lede {
  font-size: 1.1875rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.25rem;
}

.section--dark .lede,
.on-dark .lede {
  color: var(--color-surface);
}

.prose > p + p {
  margin-top: 1.25rem;
}

/* A paragraph set as the headline of a section: larger than a lede, its
   figures picked out in the action colour, an accent rule down its left. */
.statement {
  max-width: 62rem;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-accent);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
}

.statement strong {
  font-weight: 700;
  color: var(--color-action);
}

@media (min-width: 768px) {
  .statement { padding-left: 2.25rem; }
}

.prose a {
  text-decoration: underline;
}

/* Body links on a dark band. --color-action is the same value as
   --color-dark-surface, so an unstyled link there is the background colour
   and effectively invisible. .link-more already had a dark treatment; plain
   prose and inline links did not. */
.section--dark a:not(.btn):not(.link-more),
.on-dark a:not(.btn):not(.link-more) {
  color: var(--color-accent-on-dark);
}

/* --------------------------------------------------------------------------
   Buttons
   Fully rounded pill, compact padding, trailing chevron.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-target);
  padding: 0.75rem 1.5rem;
  border: var(--hairline-weight) solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base),
              border-color var(--transition-base);
}

.btn-chevron {
  transition: transform var(--transition-base);
}

.btn:hover .btn-chevron {
  transform: translateX(3px);
}

.btn--primary {
  background-color: var(--color-action);
  color: var(--color-surface);
}

.btn--primary:hover {
  background-color: var(--color-action-hover);
  color: var(--color-surface-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-action);
  border-color: var(--color-action);
}

.btn--secondary:hover {
  background-color: var(--color-action);
  color: var(--color-surface);
}

/* On dark surfaces the fill inverts. */
.btn--on-dark {
  background-color: var(--color-surface);
  color: var(--color-action);
}

/* Gold fill with dark text, 9.63:1. The lighter on-dark accent is for type,
   not for fills, so this uses the full-strength accent. */
.btn--on-dark:hover {
  background-color: var(--color-accent);
  color: var(--color-ink);
}

.btn--ghost-on-dark {
  background-color: transparent;
  color: var(--color-surface);
  border-color: var(--color-hairline-dark);
}

.btn--ghost-on-dark:hover {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

/* Text link with trailing arrow, used at the end of list rows. */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-target);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-action);
  text-decoration: none;
  white-space: nowrap;
}

.link-more:hover {
  color: var(--color-action-hover);
  text-decoration: underline;
}

.on-dark .link-more,
.section--dark .link-more {
  color: var(--color-accent-on-dark);
}

/* --------------------------------------------------------------------------
   Hairline separated rows
   The primary construction device. No container, no border, no shadow.
   -------------------------------------------------------------------------- */

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

.section--dark .rule-list,
.on-dark .rule-list {
  border-top-color: var(--color-hairline-dark);
}

.rule-list > li {
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}

.section--dark .rule-list > li,
.on-dark .rule-list > li {
  border-bottom-color: var(--color-hairline-dark);
}

.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.5rem;
}

.rule-row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.rule-row-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rule-row-text {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
  max-width: 46ch;
}

.section--dark .rule-row-text,
.on-dark .rule-row-text {
  color: var(--color-surface);
}

/* Two columns on wide screens, filled top-to-bottom so the reading order
   matches the single-column mobile order. Set --rule-rows to ceil(items / 2). */
/* No top rule, so the first row's padding plus this margin gives the same
   1.5rem gap as heading to intro copy. */
.rule-list--2col {
  border-top: 0;
  margin-top: 0.5rem;
}

@media (min-width: 860px) {
  .rule-list--2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(var(--rule-rows, 3), auto);
    grid-auto-flow: column;
    column-gap: 3rem;
  }
}

/* Simple label rows used for long plain lists. */
.rule-row--plain {
  padding-block: 1rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Icon tile
   The only small rounded container in the build. Lives inside rows only.
   -------------------------------------------------------------------------- */

.icon-tile {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-tile);
  background-color: var(--color-tile);
  color: var(--color-action);
}

.section--dark .icon-tile,
.on-dark .icon-tile {
  background-color: var(--color-hairline-dark);
  color: var(--color-accent-on-dark);
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Stat rows
   Label left, figure right, hairline separated. Never a four across grid.
   -------------------------------------------------------------------------- */

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

.section--dark .stat-list,
.on-dark .stat-list {
  border-top-color: var(--color-hairline-dark);
}

.stat-list > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}

.section--dark .stat-list > li,
.on-dark .stat-list > li {
  border-bottom-color: var(--color-hairline-dark);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.section--dark .stat-label,
.on-dark .stat-label {
  color: var(--color-surface);
}

.stat-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
}

.stat-figure--display {
  font-size: 2.5rem;
  line-height: 1.1;
}

/* For figures that are a phrase rather than a number ("$250k a year for 4
   years"): allowed to wrap, held to the right. */
.stat-figure--wrap {
  white-space: normal;
  text-align: right;
  max-width: 55%;
}

/* A Community Impact category's total, above its heading on
   /community-impact/. */
.impact-total {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-action);
}

/* "Spent to Date" on /community-impact/: the month the total runs through,
   and the dropdown holding the monthly PDFs of actuals. */
.spent-as-of {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.report-dropdown {
  border-top: var(--hairline-weight) solid var(--color-hairline);
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}

.report-dropdown__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--tap-target);
  padding: 1.25rem 0;
  color: var(--color-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.report-dropdown__summary::-webkit-details-marker { display: none; }

.report-dropdown__summary:hover { color: var(--color-action); }

.report-dropdown__count {
  font-weight: 400;
  color: var(--color-ink-muted);
}

.report-dropdown__icon {
  flex: 0 0 auto;
  color: var(--color-action);
  transition: transform var(--transition-base);
}

.report-dropdown[open] .report-dropdown__icon { transform: rotate(45deg); }

/* The list's own top rule would double the summary's divider. */
.report-dropdown .rule-list { border-top: 0; }
.report-dropdown .rule-list > li:last-child { border-bottom: 0; }

/* A breakdown row on /community-impact/: the item, with an optional
   description beneath it, opposite its amount. */
.impact-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.impact-item__label {
  font-weight: 600;
  color: var(--color-ink);
}

.impact-item__note {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Figure cards
   A horizontal row of vertical cards: the figure on top, its heading beneath.
   Distinct from .stat-list above, which is the label-left/figure-right row
   used on /opportunity/ where figures are read as a list rather than as the
   first thing on the page.
   -------------------------------------------------------------------------- */

.figure-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

/* One column, then three. No two-column step in between: three figures across
   two columns strands the third on a row of its own, which reads as a mistake
   rather than as a row. If a fourth figure is ever added it wraps instead of
   squeezing - four columns of display type does not hold at this width. */
@media (min-width: 860px) {
  .figure-cards { grid-template-columns: repeat(3, 1fr); }
}

.figure-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 1.75rem;
  background-color: var(--color-surface-white);
  border: var(--hairline-weight) solid var(--color-hairline);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-media);
}

.section--dark .figure-card,
.on-dark .figure-card {
  background-color: rgba(245, 250, 255, 0.06);
  border-color: var(--color-hairline-dark);
  border-top-color: var(--color-accent);
}

/* The figure. A paragraph rather than a heading: it is a value, and the card's
   heading is the line under it. tabular-nums so the digits do not jitter
   sideways while the counter runs. */
.figure-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-action);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.section--dark .figure-card__value,
.on-dark .figure-card__value {
  color: var(--color-accent-on-dark);
}

/* Currency symbols and units. Set smaller than the number they attach to, so
   the eye lands on the figure itself. */
.figure-card__affix {
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: 0.22em;
  letter-spacing: 0;
}

.figure-card__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  text-transform: none;
}

.section--dark .figure-card__label,
.on-dark .figure-card__label {
  color: var(--color-surface);
}

/* Two-card and five-card rows, for the Community Benefit section. Five
   across is only held where there is room for display figures; below that
   the cards stack. */
@media (min-width: 860px) {
  .figure-cards--2 { grid-template-columns: repeat(2, 1fr); }
}

.figure-cards--5 {
  gap: 1rem;
}

.figure-cards--5 .figure-card {
  padding: 1.5rem 1.25rem;
}

.figure-cards--5 .figure-card__value {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
}

@media (min-width: 860px) {
  .figure-cards--5 { grid-template-columns: repeat(5, 1fr); }
}

/* Four cards: two by two, then a single row once there is room for the
   display figures. */
.figure-cards--4 .figure-card__value {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
}

@media (min-width: 600px) {
  .figure-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .figure-cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* A card that is a link. The link sits on the heading and its ::after
   covers the card, so the whole card is one target and is read as the
   heading's text. */
.figure-card--link {
  position: relative;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.figure-card__link {
  color: inherit;
  text-decoration: underline;
}

.figure-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.figure-card--link:is(:hover, :focus-within) {
  background-color: var(--color-band);
}

.figure-card__label--strong {
  font-weight: 600;
}

.figure-card__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Community Benefit blocks
   The groups under the home page's Community Benefit paragraphs. Content is
   in components/benefit-data.inc.php.
   -------------------------------------------------------------------------- */

.benefit-block {
  margin-top: 4rem;
}

.benefit-block-title {
  margin-bottom: 1.5rem;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem 1.5rem;
  border-top: var(--hairline-weight) solid var(--color-hairline);
  padding-top: 1.5rem;
}

@media (min-width: 600px) {
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefit-list { grid-template-columns: repeat(4, 1fr); }
  /* Six Community Impact categories: two rows of three rather than a row
     of four with two left over. */
  .benefit-list--impact { grid-template-columns: repeat(3, 1fr); }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

a.benefit-item {
  text-decoration: none;
}

/* The amount over the name. Only the name is underlined, so the link still
   reads as a link without striking through the figure. */
.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.benefit-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-action);
  font-variant-numeric: tabular-nums;
}

.benefit-label {
  text-decoration: underline;
}

a.benefit-item:hover {
  color: var(--color-action);
}

.benefit-icon {
  width: 48px;
  height: 48px;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
}

/* The supplied PNGs carry their own padding, so they run larger than the
   SVG to land at the same visible size. */
.benefit-icon img {
  width: 40px;
  height: 40px;
}

/* Numbered steps, vertical hairline between columns. */
.step-grid {
  display: grid;
  gap: 0;
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

@media (min-width: 860px) {
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-grid > * + * {
    border-left: var(--hairline-weight) solid var(--color-hairline);
    padding-left: 2rem;
  }
  .step-grid > * {
    padding-right: 2rem;
  }
}

.step-grid > * {
  padding-block: 1.75rem;
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}

@media (min-width: 860px) {
  .step-grid > * {
    border-bottom: 0;
  }
}

.step-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
  margin-right: 0.75rem;
}

/* --------------------------------------------------------------------------
   Media
   Radius applies to images. Nowhere else except tiles and buttons.
   -------------------------------------------------------------------------- */

.media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  object-fit: cover;
}

.media--portrait { aspect-ratio: 3 / 4; }
.media--landscape { aspect-ratio: 16 / 10; }
.media--cinematic { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

/* Full bleed cinematic divider. */
.media-band {
  position: relative;
}

.media-band img {
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-media);
}

/* --------------------------------------------------------------------------
   Transparency banner
   Sitewide band under the nav. Soft tint so it reads as a standing note,
   not a one-off alert.
   -------------------------------------------------------------------------- */

.transparency-banner {
  background-color: var(--color-tile);
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
  color: var(--color-ink);
  font-size: 0.9375rem;
}

.transparency-banner .container {
  padding-block: 0.85rem;
}

/* Runs the full width of the container, overriding the sitewide 68ch
   measure on paragraphs. A one-paragraph note reads fine long. */
.transparency-banner p {
  max-width: none;
}

/* --------------------------------------------------------------------------
   Callout
   Bordered aside for contextual notes inside body copy.
   -------------------------------------------------------------------------- */

.callout {
  border: var(--hairline-weight) solid var(--color-hairline);
  border-left: 4px solid var(--color-action);
  border-radius: var(--radius-tile);
  background-color: var(--color-surface-white);
  padding: 1.5rem 1.75rem;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark-surface);
  box-shadow: var(--shadow-header);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.6rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  flex: 0 0 auto;
}

.site-logo,
.site-logo:hover {
  text-decoration: none;
}

/* The City of Hobart mark is the whole header lockup. It is light type on
   transparency, so it needs no plate behind it. */
.site-logo img {
  display: block;
  width: auto;
  height: 26px;
}

@media (min-width: 700px) {
  .site-logo img { height: 32px; }
}

/* The City and Amazon marks side by side, split by a hairline. Only the
   City's mark is a link. */
.site-logos {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 0 0 auto;
}

/* The client's file is Squid Ink, which disappears on the dark header, so
   it is rendered white here rather than re-exported. */
.site-logo-amazon {
  display: block;
  width: auto;
  height: 22px;
  padding-left: 0.875rem;
  border-left: var(--hairline-weight) solid var(--color-hairline-dark);
  box-sizing: content-box;
  filter: brightness(0) invert(1);
}

@media (min-width: 700px) {
  .site-logos { gap: 1.125rem; }
  .site-logo-amazon { height: 27px; padding-left: 1.125rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  background: transparent;
  border: 0;
  color: var(--color-surface);
  cursor: pointer;
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.nav-list--open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: var(--color-action-hover);
  padding: 0.5rem var(--container-pad) 1.5rem;
  max-height: calc(100svh - 5rem);
  overflow-y: auto;
}

.nav-list--open .nav-item + .nav-item {
  border-top: var(--hairline-weight) solid var(--color-hairline-dark);
}

@media (min-width: 1100px) {
  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
  }
  .nav-list--open {
    position: static;
    padding: 0;
    border-bottom: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-list--open .nav-item + .nav-item {
    border-top: 0;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  color: var(--color-surface);
  text-decoration: none;
  white-space: nowrap;
}

/* The city's signature motif: a gold bar under the item that grows from
   50px to full width on hover. It repeats on card titles below. */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 0;
  height: 4px;
  border-radius: var(--radius-bar);
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent-on-dark);
}

.nav-link[aria-current='page'] {
  color: var(--color-surface-white);
}

@media (prefers-reduced-motion: reduce) {
  .nav-link::after { transition: none; }
}

/* --------------------------------------------------------------------------
   Grouped nav dropdowns

   Menus are VISIBLE by default and hidden only once .has-nav-js is on the
   root element. Without JavaScript the groups render as plain lists of links
   under their headings, so nothing is unreachable.
   -------------------------------------------------------------------------- */

.nav-trigger {
  gap: 0.4rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  /* The trigger is a button among links; match the link metrics exactly so
     the row keeps one baseline. */
  padding: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
}

.nav-caret {
  transition: transform var(--transition-base);
  flex: 0 0 auto;
}

.nav-item--open > .nav-trigger .nav-caret { transform: rotate(180deg); }

/* The gold bar marks the group when any page inside it is current. */
.nav-trigger[data-nav-here]::after { width: 100%; }
.nav-trigger[data-nav-here] { color: var(--color-surface-white); }

@media (prefers-reduced-motion: reduce) {
  .nav-caret { transition: none; }
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem 0.75rem;
}

.has-nav-js .nav-menu { display: none; }
.has-nav-js .nav-item--open > .nav-menu { display: block; }

.nav-menu-link {
  display: flex;
  align-items: center;
  min-height: var(--tap-target);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-surface);
  text-decoration: none;
}

.nav-menu-link:hover { color: var(--color-accent-on-dark); }

.nav-menu-link[aria-current='page'] {
  color: var(--color-accent-on-dark);
  font-weight: 600;
}

@media (min-width: 1100px) {
  .nav-item--group { position: relative; }

  /* Floating panel on its own light surface, so it reads as a layer above
     the page rather than a continuation of the dark header bar. */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 15rem;
    padding: 0.5rem 0;
    background-color: var(--color-surface-white);
    border-radius: var(--radius-media);
    box-shadow: var(--shadow-card);
  }

  .nav-menu-link {
    padding: 0.35rem 1.25rem;
    color: var(--color-ink);
  }

  .nav-menu-link:hover {
    color: var(--color-action);
    background-color: var(--color-band);
  }

  .nav-menu-link[aria-current='page'] { color: var(--color-action); }

  /* Bridges the gap between trigger and panel so the pointer can travel
     between them without tripping mouseleave. */
  .nav-item--group::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Forms
   Hairline underline fields rather than boxed inputs, derived from the
   reference's row construction. Labels are always visible, never
   placeholder only.
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .form-grid--two { grid-template-columns: 1fr 1fr; }
  .form-grid--three { grid-template-columns: repeat(3, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}

.section--dark .form-label,
.on-dark .form-label {
  color: var(--color-surface);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: 0.6rem 0;
  background-color: transparent;
  border: 0;
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
  border-radius: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-bottom-color: var(--color-ink-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-action);
}

.section--dark .form-input,
.section--dark .form-select,
.section--dark .form-textarea,
.on-dark .form-input,
.on-dark .form-select,
.on-dark .form-textarea {
  border-bottom-color: var(--color-hairline-dark);
  color: var(--color-surface);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--color-action);
  flex: 0 0 auto;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 640px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .checkbox-grid { grid-template-columns: repeat(3, 1fr); } }

.form-note {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  max-width: 60ch;
}

.section--dark .form-note,
.on-dark .form-note {
  color: var(--color-surface);
}

/* Demo notice. Forms are not wired to an endpoint. */
.form-status {
  border-top: var(--hairline-weight) solid var(--color-hairline);
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
  padding-block: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   FAQ accordion, filter and search
   All answer text is present in the DOM at load. Search and filtering
   enhance the list, they do not build it.
   -------------------------------------------------------------------------- */

.faq-controls {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.filter-btn {
  min-height: var(--tap-target);
  padding: 0 0.25rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.filter-btn:hover {
  color: var(--color-ink);
}

.filter-btn[aria-pressed='true'] {
  color: var(--color-action);
  border-bottom-color: var(--color-action);
  font-weight: 600;
}

.faq-count {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.faq-group-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding-top: 2.5rem;
  padding-bottom: 0.75rem;
}

.faq-item {
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}

.faq-item:first-of-type {
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: var(--tap-target);
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-action);
}

.faq-toggle-icon {
  flex: 0 0 auto;
  color: var(--color-action);
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded='true'] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--color-ink-muted);
  max-width: 70ch;
}

.faq-answer p + p,
.faq-answer ul {
  margin-top: 0.9rem;
}

.faq-answer ul {
  padding-left: 1.1rem;
  color: var(--color-ink-muted);
  list-style: disc;
}

.faq-answer[hidden] { display: none; }

.faq-empty {
  padding-block: 2.5rem;
  color: var(--color-ink-muted);
}

.faq-empty[hidden] { display: none; }

.faq-item[hidden],
.faq-group[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Quote treatment, Community Voices
   Large quote, emphasis by color shift rather than bold. No centered italic
   serif pull quote.
   -------------------------------------------------------------------------- */

.voice {
  padding-block: 3rem;
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
}


.voice blockquote {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--color-ink);
  max-width: 46ch;
}

@media (min-width: 768px) {
  .voice blockquote { font-size: 1.625rem; }
}

.voice blockquote + blockquote {
  margin-top: 1.5rem;
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Document and news rows
   -------------------------------------------------------------------------- */

.doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}

.doc-row-body { flex: 1 1 22rem; }

.news-date {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 0.5rem;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-dark-surface);
  color: var(--color-surface);
  padding-top: 4.5rem;
  overflow: hidden;
}

.site-footer h2,
.site-footer h3 { color: var(--color-surface); }

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.1fr 1.9fr; gap: 4rem; }
}

.footer-links {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--color-surface);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-list a:hover,
.footer-contact a:hover {
  color: var(--color-accent-on-dark);
  text-decoration: underline;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 15vw, 11rem);
  line-height: 0.85;
  color: var(--color-hairline-dark);
  margin-bottom: -0.12em;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: var(--hairline-weight) solid var(--color-hairline-dark);
  padding-block: 1.5rem;
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Accent bar
   The City of Hobart's signature motif, lifted deliberately: a 50px gold
   rule beneath a heading that grows to full width on hover. It is the one
   detail that makes the match read as intentional rather than approximate.

   Applied to a heading via .has-accent-bar, or standalone via .accent-bar.
   -------------------------------------------------------------------------- */

.has-accent-bar {
  position: relative;
  padding-bottom: 0.75rem;
}

.has-accent-bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--accent-bar-w);
  height: 4px;
  border-radius: var(--radius-bar);
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

/* Grows when the card or section containing it is hovered. */
.card:hover .has-accent-bar::after,
.has-accent-bar:hover::after {
  width: 100%;
}

.accent-bar {
  display: block;
  width: var(--accent-bar-w);
  height: 4px;
  border-radius: var(--radius-bar);
  background-color: var(--color-accent);
  margin-bottom: 1.25rem;
}

/* On dark surfaces the bar keeps the full-strength gold: it is a fill, not
   type, so it does not need the lightened on-dark variant. */
.section--dark .accent-bar,
.on-dark .accent-bar {
  background-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Card
   The city's card treatment: 10px radius, a soft shadow, and a transparent
   3px border that colours on hover, so nothing reads as outlined at rest.
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--color-surface);
  border: 3px solid transparent;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.card:is(:hover, :focus-within) {
  border-color: var(--color-band);
}

.card__body {
  padding: 1.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .has-accent-bar::after,
  .card {
    transition: none;
  }
}

/* The City of Hobart's mark is a transparent PNG with light cream type,
   drawn for a dark ground, so on the footer it sits straight on the
   background rather than on a light plate. */
.footer-org-logo {
  display: inline-block;
}

.footer-org-logo img {
  display: block;
  width: 200px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Slider
   One slide at a time, scroll-snapped. The track is a plain horizontal
   scroller, so with JavaScript unavailable it still works by swipe, wheel or
   keyboard - the buttons below are revealed by script and enhance it.
   -------------------------------------------------------------------------- */

.slider {
  position: relative;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Room for the focus ring, which would otherwise be clipped by overflow. */
  padding: 4px;
  margin: -4px;
  scrollbar-width: thin;
}

.slider-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}

.slider-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  /* A sliver of the next slide signals there is more to see. */
  .slider-slide { flex-basis: 88%; }
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  border: var(--hairline-weight) solid var(--color-action);
  border-radius: var(--radius-button);
  background-color: transparent;
  color: var(--color-action);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.slider-btn:hover:not(:disabled) {
  background-color: var(--color-action);
  color: var(--color-surface);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.slider-status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
}

.section--dark .slider-btn,
.on-dark .slider-btn {
  border-color: var(--color-hairline-dark);
  color: var(--color-surface);
}

.section--dark .slider-btn:hover:not(:disabled),
.on-dark .slider-btn:hover:not(:disabled) {
  background-color: var(--color-surface);
  color: var(--color-action);
}

.section--dark .slider-status,
.on-dark .slider-status {
  color: var(--color-muted-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { scroll-behavior: auto; }
  .slider-btn { transition: none; }
}

/* Video slides. A 16:9 box so the iframe cannot collapse before it loads,
   which would make the track jump as slides arrive. */
.slider-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--color-band);
}

.slider-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Intake forms
   Three forms in one tabbed block on the contact page. The tab strip is
   revealed by intake.js; with the script unavailable the panels stack and
   the rules below keep them legible as a plain sequence of forms.
   -------------------------------------------------------------------------- */

.intake-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  border-bottom: var(--hairline-weight) solid var(--color-hairline);
  margin-bottom: 2.5rem;
}

.intake-tabs[hidden] { display: none; }

.intake-tab {
  min-height: var(--tap-target);
  padding: 0 0.25rem;
  background: transparent;
  border: 0;
  /* Sits on the strip's own hairline so the active tab reads as joined to
     its panel rather than underlined twice. */
  border-bottom: 2px solid transparent;
  margin-bottom: calc(-1 * var(--hairline-weight));
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.intake-tab:hover { color: var(--color-ink); }

.intake-tab[aria-selected='true'] {
  color: var(--color-action);
  border-bottom-color: var(--color-action);
  font-weight: 600;
}

.intake-panel[hidden] { display: none; }

/* Stacked fallback only: without tabs the panels need separating from each
   other. Once intake.js tabs them, one panel shows at a time and the rule
   below drops the divider. */
.intake-panel + .intake-panel {
  border-top: var(--hairline-weight) solid var(--color-hairline);
  margin-top: 3.5rem;
  padding-top: 3.5rem;
}

.intake--tabbed .intake-panel + .intake-panel {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.intake-panel:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 4px;
}

.intake-panel-heading {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.intake-panel-intro {
  max-width: 62ch;
  color: var(--color-ink-muted);
  margin-bottom: 1.75rem;
}

.intake-form { margin-top: 2rem; }

.form-required { color: var(--color-action); }

/* Cards on the home page that send visitors to each form. */
.intake-links {
  display: grid;
  gap: 1.5rem;
}

/* Two cards: stacked on phones, side by side from tablet up. */
@media (min-width: 640px) {
  .intake-links { grid-template-columns: repeat(2, 1fr); }
}

.intake-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Pushes every button onto the card's baseline however long the copy
     above it runs, so the three buttons line up across the row. */
  height: 100%;
}

.intake-link .btn { margin-top: auto; align-self: flex-start; }

/* Narrative sections above a form. Sequential, hairline separated, matching
   the rest of the site's construction rather than sitting in a tinted box -
   these read as the panel's copy, not as an aside beside it. */
.intake-block {
  max-width: 62ch;
  padding-block: 1.75rem;
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

.intake-block:last-of-type { padding-bottom: 0.5rem; }

.intake-block > p + p { margin-top: 1rem; }

.intake-block-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 1rem;
}

.intake-block-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

/* Post-submission thank-you. Hidden until a successful submit. */
.intake-confirmation {
  max-width: 62ch;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-band);
  border-radius: var(--radius-media);
  font-weight: 500;
}

.intake-confirmation[hidden] { display: none; }

/* A submission that did not go through. */
.intake-error {
  max-width: 62ch;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-error);
  background-color: var(--color-error-surface);
  border-radius: var(--radius-media);
  font-weight: 500;
}

.intake-error[hidden] { display: none; }

.intake-form [aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}

/* The spam trap: off-screen rather than display:none, which some bots skip. */
.intake-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake-confirmation:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Latest Community Check-In session, featured on the home page
   -------------------------------------------------------------------------- */

.latest-session {
  max-width: 62ch;
  padding-top: 1.75rem;
  border-top: var(--hairline-weight) solid var(--color-hairline);
}

.latest-session-title {
  font-size: 1.375rem;
  margin-block: 0.5rem 0.75rem;
}

.latest-session-text {
  color: var(--color-ink-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Myth and fact rows
   The claim sits above the correction, quieter than it and set in italic, so
   the eye lands on the answer rather than on the rumour being repeated.
   -------------------------------------------------------------------------- */

.myth-claim {
  font-style: italic;
  color: var(--color-ink-muted);
  margin: 0 0 0.4rem;
  max-width: 60ch;
}

.section--dark .myth-claim,
.on-dark .myth-claim {
  color: var(--color-muted-on-dark);
}
