/* Small, additive fixes for the existing static Next.js export. */
.mareeba-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mareeba-trust-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1rem;
  padding: .8rem 1rem;
  border-top: 1px solid #334155;
  background: #172033;
  color: #e2e8f0;
  font-size: .75rem;
}

.mareeba-trust-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mareeba-live-label {
  color: #475569 !important;
  line-height: 1.45;
}

.mareeba-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
}

.mareeba-image-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: block;
  padding: .38rem .55rem;
  background: rgba(15, 23, 42, .9);
  color: #fff;
  font-size: .62rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .01em;
}

.mareeba-image-credit--compact {
  right: .25rem;
  bottom: .25rem;
  left: auto;
  padding: .2rem .32rem;
  border-radius: .15rem;
  font-size: .5rem;
  line-height: 1;
  white-space: nowrap;
}

.mareeba-minutes-frame {
  min-height: 64px;
  aspect-ratio: 4 / 3;
  background: #17243c;
}

.mareeba-minutes-frame > img {
  display: none !important;
}

.mareeba-minutes-tile {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid #334155;
  border-left: 7px solid #a61b1b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045) 25%, transparent 25%) 0 0 / 22px 22px,
    #17243c;
  color: #fff;
  text-align: left;
}

.mareeba-minutes-frame--compact .mareeba-minutes-tile {
  padding: .35rem .45rem;
  border-left-width: 3px;
}

.mareeba-minutes-frame--compact .mareeba-minutes-tile small {
  font-size: .38rem;
  letter-spacing: .08em;
}

.mareeba-minutes-frame--compact .mareeba-minutes-tile strong {
  margin: .18rem 0 0;
  font-size: .64rem;
  line-height: .95;
}

.mareeba-minutes-frame--compact .mareeba-minutes-tile em {
  display: none;
}

.mareeba-minutes-tile small {
  color: #fca5a5;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.mareeba-minutes-tile strong {
  margin: .45rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.mareeba-minutes-tile em {
  color: #cbd5e1;
  font-size: .68rem;
  font-style: normal;
}

/* Breaking notices stay hidden until their publication date is checked. */
.min-h-screen > .bg-red-700.text-white {
  display: none;
}

.min-h-screen > .mareeba-breaking-current {
  display: block;
}

/* Council artwork often contains its own words; give the lead headline a clean field. */
.mareeba-lead-story h2 {
  width: fit-content;
  max-width: 94%;
  padding: .65rem .8rem;
  border-left: 4px solid #b91c1c;
  background: rgba(15, 23, 42, .94);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mareeba-latest {
  margin: 0 auto 2.25rem;
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid #cbd5e1;
}

.mareeba-latest__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  border-bottom: 3px solid #111827;
}

.mareeba-latest__head h2 {
  margin: 0 0 .55rem;
  color: #111827;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
}

.mareeba-latest__head a {
  margin-bottom: .65rem;
  color: #9f1d20;
  font-size: .8rem;
  font-weight: 800;
}

.mareeba-latest__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.mareeba-latest__card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid #d8dee8;
  border-top: 4px solid #9f1d20;
  border-radius: .35rem;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .05);
}

.mareeba-latest__card:first-child {
  background: #17243c;
  color: #fff;
}

.mareeba-latest__category {
  color: #b42325;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mareeba-latest__card:first-child .mareeba-latest__category {
  color: #fca5a5;
}

.mareeba-latest__card h3 {
  margin: .55rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.18;
}

.mareeba-latest__card:first-child h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
}

.mareeba-latest__card p {
  margin: 0 0 .8rem;
  color: #526071;
  font-size: .86rem;
  line-height: 1.5;
}

.mareeba-latest__card:first-child p {
  color: #d9e1ed;
}

.mareeba-latest__card time {
  margin-top: auto;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.mareeba-latest__card:first-child time {
  color: #cbd5e1;
}

@media (max-width: 760px) {
  .mareeba-lead-story h2 {
    max-width: 100%;
    padding: .5rem .65rem;
    font-size: 1.35rem !important;
    line-height: 1.18 !important;
  }

  .mareeba-latest__grid {
    grid-template-columns: 1fr;
  }

  .mareeba-latest__card {
    min-height: auto;
  }

  header nav,
  header [role="navigation"] {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  header nav::-webkit-scrollbar,
  header [role="navigation"]::-webkit-scrollbar {
    display: none;
  }

  header nav a,
  header [role="navigation"] a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  main {
    overflow-wrap: anywhere;
  }
}
