:root {
  --ink: #24211f;
  --muted: #756f68;
  --faint: #a39b92;
  --line: #dfd8cf;
  --page: #f4f0ea;
  --surface: #fffdfa;
  --panel: #f8f3ec;
  --accent: #f36f21;
  --accent-dark: #c84f12;
  --gold: #d99a21;
  --soft-orange: #fff0e5;
  --charcoal: #2f2a26;
  --shadow: 0 18px 44px rgba(46, 38, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(47, 42, 38, 0.045) 1px, transparent 1px),
    linear-gradient(#f8f5f0 0%, var(--page) 44%, #ece5dc 100%);
  background-size: 42px 42px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.intro-panel,
.action-panel,
.control-bar,
.date-filter-bar,
.incident-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(52, 43, 35, 0.06);
}

.intro-panel {
  min-height: 210px;
  padding: 34px 40px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(38, 28, 21, 0.72), rgba(71, 42, 24, 0.46)),
    linear-gradient(135deg, #8b3d19 0%, #f47a2b 52%, #562f21 100%);
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

h1 {
  position: relative;
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.23);
}

.subtitle {
  position: relative;
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.48;
}

.action-panel {
  min-height: 210px;
  display: grid;
  align-items: end;
  background: var(--charcoal);
  color: #fff;
}

.action-panel p {
  margin: 0;
  padding: 18px 18px 20px;
  border-top: 5px solid var(--accent);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.primary-button,
.share-button,
.filter-button {
  min-height: 42px;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button:hover,
.share-button:hover,
.filter-button:hover,
.filter-button.is-active {
  background: var(--accent-dark);
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 380px);
  column-gap: 34px;
  row-gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 12px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.category-button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 29px;
  border: 1px solid #d3cbc2;
  border-radius: 999px;
  padding: 0 11px;
  background: #e6e0d8;
  color: #6b625a;
  font-size: 0.66rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: none;
}

.category-button:hover {
  background: #d8d0c7;
}

.category-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.category-button.is-active:hover {
  background: var(--accent-dark);
}

.random-button {
  justify-self: center;
  min-height: 42px;
  width: auto;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(243, 111, 33, 0.22);
}

.random-button:hover {
  transform: translateY(-1px);
}

.search-filter {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  background: transparent;
}

.search-filter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  border: 1px solid var(--line);
  background: #fff;
}

input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

input:focus {
  outline: 3px solid #0b57d0;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px rgba(243, 111, 33, 0.3);
}

.search-button {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  padding: 0;
}

.search-button::before,
.search-button::after {
  content: "";
  position: absolute;
  display: block;
}

.search-button::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}

.search-button::after {
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(8px, 8px) rotate(45deg);
  transform-origin: left center;
}

.search-button:hover {
  background: var(--soft-orange);
  color: var(--accent-dark);
}

.date-filter-bar {
  display: grid;
  gap: 1px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--line);
}

.year-filters,
.month-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
}

.date-filter-bar .filter-button {
  min-width: 42px;
  min-height: 28px;
  flex: 0 0 auto;
  background: #fffdfa;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.66rem;
  box-shadow: none;
}

.month-button {
  min-width: 36px;
}

.year-button.is-active,
.month-button.is-active {
  background: var(--charcoal);
  color: #fff;
  box-shadow: none;
}


.filter-button.is-active {
  color: #fff;
}

.incident-list,
.incidents-grid {
  display: grid;
  gap: 12px;
}

.day-separator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 16px;
  background: var(--charcoal);
  color: #fff;
  text-transform: uppercase;
  box-shadow: inset 5px 0 0 var(--accent);
}

.day-separator:first-child {
  margin-top: 0;
}

.day-separator time {
  font-size: 0.92rem;
  font-weight: 900;
}

.incident-card {
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 130px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.incident-card:hover {
  border-color: #cfc5ba;
  box-shadow: var(--shadow);
}

.incident-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 124px 34px;
  gap: 16px;
  align-items: center;
  border: 0;
  background: #fffdfa;
  color: inherit;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.incident-card.is-open .incident-summary {
  grid-template-columns: 0 minmax(0, 1fr) 124px 30px;
  min-height: 38px;
  gap: 12px;
  background: #fff4eb;
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
}

.incident-card.is-open .incident-thumb {
  width: 0;
  border-width: 0;
  visibility: hidden;
}

.incident-card.is-open .incident-title {
  display: none;
}

.incident-card.is-open .incident-date {
  grid-column: 3;
}

.incident-card.is-open .incident-toggle {
  grid-column: 4;
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
}

.incident-thumb {
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid #eee7df;
  background: var(--page);
}

.incident-heading-content {
  min-width: 0;
}

.incident-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.incident-header-categories {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.incident-card.is-open .incident-header-categories {
  display: flex;
}

.incident-header-categories span {
  display: inline-grid;
  place-items: center;
  min-height: 21px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 8px;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.incident-date {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.incident-toggle {
  justify-self: end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  pointer-events: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.incident-card.is-open .incident-toggle {
  background: var(--gold);
  color: #fff;
}

.incident-detail {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  background: #fffdfa;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 7px solid #eee7df;
  background: var(--page);
}

.detail-content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 2px;
}

.detail-content h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.detail-text {
  margin: 0;
  max-width: 76ch;
  color: #514b45;
  line-height: 1.62;
  font-size: 1rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.source-link {
  justify-self: start;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-link:hover {
  color: var(--ink);
}

.share-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  min-height: 38px;
  border-radius: 2px;
  font-size: 0.8rem;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  background: #fffdfa;
}

@media (max-width: 920px) {
  .hero-grid,
  .control-bar,
  .incident-detail {
    grid-template-columns: 1fr;
  }

  .action-panel {
    min-height: auto;
  }

  .random-button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1500px);
    padding-top: 18px;
  }

  .intro-panel {
    min-height: 176px;
    padding: 24px;
  }

  .control-bar {
    gap: 14px;
    padding: 14px;
  }

  .incident-summary {
    grid-template-columns: 70px minmax(0, 1fr) 34px;
    gap: 12px;
  }

  .incident-card.is-open .incident-summary {
    grid-template-columns: minmax(0, 1fr) 86px 30px;
  }

  .incident-card.is-open .incident-heading-content {
    grid-column: 1;
  }

  .incident-card.is-open .incident-date {
    grid-column: 2;
  }

  .incident-card.is-open .incident-toggle {
    grid-column: 3;
  }

  .incident-thumb {
    width: 70px;
  }

  .incident-date {
    grid-column: 2 / 3;
    justify-self: start;
    text-align: left;
  }

  .incident-toggle {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 14px, 1500px);
  }

  .intro-panel {
    min-height: 154px;
    padding: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .day-separator {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .incident-summary {
    grid-template-columns: 58px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 10px;
  }

  .incident-card.is-open .incident-summary {
    grid-template-columns: minmax(0, 1fr) 76px 28px;
    gap: 8px;
  }

  .incident-thumb {
    width: 58px;
    border-width: 4px;
  }

  .date-filter-bar .filter-button {
    min-width: 38px;
    min-height: 28px;
    padding: 0 8px;
  }

  .category-button {
    min-height: 28px;
    max-width: 100%;
    padding: 0 10px;
    white-space: normal;
  }

  .detail-meta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
/* Open incident refinement */
.incident-card.is-open {
  border-color: #d3c7bc;
  box-shadow: 0 20px 54px rgba(46, 38, 31, 0.14);
}

.incident-card.is-open .incident-summary {
  min-height: 34px;
  background: #2f2a26;
  color: #fff;
  border-bottom: 0;
  padding-block: 5px;
}

.incident-card.is-open .incident-date {
  color: rgba(255, 255, 255, 0.72);
}

.incident-card.is-open .incident-header-categories {
  gap: 5px;
}

.incident-card.is-open .incident-header-categories span {
  min-height: 18px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  padding: 0 7px;
  font-size: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.incident-card.is-open .incident-toggle {
  background: #fff;
  color: var(--charcoal);
  box-shadow: none;
}

.incident-detail {
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 30px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(243, 111, 33, 0.08), transparent 38%),
    #fffdfa;
}

.detail-image {
  aspect-ratio: 16 / 10;
  border: 0;
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(46, 38, 31, 0.14);
}

.detail-content {
  gap: 16px;
  align-content: start;
  padding: 4px 4px 0 0;
}

.detail-content h2 {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.45vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.detail-text {
  max-width: 68ch;
  color: #403a35;
  font-size: 1.04rem;
  line-height: 1.68;
}

.detail-meta {
  margin-top: 4px;
  border-top: 1px solid #d8cec3;
  padding-top: 16px;
}

.source-link {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.share-button {
  min-height: 36px;
  background: var(--charcoal);
  color: #fff;
}

.share-button:hover {
  background: var(--accent);
}

@media (max-width: 920px) {
  .incident-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-content h2 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .incident-detail {
    padding: 14px;
  }

  .detail-text {
    font-size: 0.98rem;
  }
}

/* Open incident stacked article layout */
.incident-detail {
  grid-template-columns: 1fr;
  gap: 16px;
}

.detail-content {
  display: contents;
}

.detail-content h2 {
  max-width: none;
  order: -2;
}

.detail-image {
  order: -1;
  width: min(100%, 720px);
}

.detail-text {
  max-width: 82ch;
}

.detail-meta {
  width: 100%;
}

/* Open incident floated article layout */
.incident-detail {
  display: block;
  padding: 24px;
}

.incident-detail::after {
  content: "";
  display: block;
  clear: both;
}

.detail-content {
  display: block;
  padding: 2px 0 0;
}

.detail-image {
  float: left;
  width: min(42%, 520px);
  min-width: 300px;
  margin: 0 28px 18px 0;
}

.detail-content h2 {
  max-width: none;
  margin-bottom: 12px;
}

.detail-text {
  max-width: none;
}

.detail-meta {
  clear: both;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .detail-image {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0 0 16px;
  }
}

/* Incident header polish */
.incident-toggle {
  line-height: 1;
  padding-bottom: 2px;
}

.incident-card.is-open .incident-summary {
  min-height: 46px;
  padding-block: 8px;
}

.incident-card.is-open .incident-header-categories span {
  min-height: 22px;
  padding: 0 9px;
  font-size: 0.62rem;
}

.incident-card.is-open .incident-toggle {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  padding-bottom: 2px;
}

/* True text wrap around open incident image */
.detail-content {
  display: contents;
}

.detail-content h2,
.detail-text {
  display: block;
}

.detail-content h2 {
  margin-bottom: 12px;
}

.detail-text {
  overflow: visible;
}

.detail-meta {
  clear: both;
}

/* Hero typography refinement */
.intro-panel {
  min-height: 220px;
  padding: 38px 44px;
  background:
    linear-gradient(90deg, rgba(35, 24, 18, 0.62), rgba(35, 24, 18, 0.18)),
    linear-gradient(135deg, #8a3717 0%, #ee6f24 58%, #b54b1b 100%);
}

.intro-panel::before {
  opacity: 0.38;
}

.intro-panel::after {
  inset: 20px;
  border-color: rgba(255, 255, 255, 0.18);
}

h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-shadow: none;
}

.subtitle {
  max-width: 680px;
  padding-left: 18px;
  border-left: 4px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.56;
  font-weight: 500;
}

@media (max-width: 760px) {
  .intro-panel {
    min-height: 188px;
    padding: 28px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .subtitle {
    padding-left: 14px;
  }
}

@media (max-width: 480px) {
  .intro-panel {
    min-height: 176px;
    padding: 22px;
  }

  h1 {
    font-size: 2.15rem;
  }
}

/* Control spacing refinement */
.control-bar {
  column-gap: 52px;
  row-gap: 24px;
  padding: 22px 24px;
}

.category-filters {
  gap: 10px 12px;
}

.random-button {
  margin-inline: 8px;
}

@media (max-width: 920px) {
  .control-bar {
    gap: 22px;
  }

  .random-button {
    margin-inline: 0;
  }
}

/* Date filter size refinement */
.date-filter-bar .filter-button {
  min-width: 50px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.month-button {
  min-width: 42px;
}

@media (max-width: 480px) {
  .date-filter-bar .filter-button {
    min-width: 42px;
    min-height: 30px;
    padding: 0 9px;
  }
}

/* Social incident sharing */
.share-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  align-items: center;
}

.share-link {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.share-link:hover {
  border-color: var(--accent);
  background: var(--soft-orange);
  color: var(--accent-dark);
}

.copy-share-link {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .share-links {
    justify-self: start;
    justify-content: flex-start;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }
}

/* Green app-inspired design pass */
:root {
  --ink: #17202f;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #dfe5eb;
  --page: #f3f6f8;
  --surface: #ffffff;
  --panel: #f8fafb;
  --accent: #2ed66f;
  --accent-dark: #12934a;
  --gold: #18b862;
  --soft-orange: #eafaf1;
  --charcoal: #17202f;
  --shadow: 0 12px 30px rgba(23, 32, 47, 0.08);
}

body {
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(46, 214, 111, 0.06), transparent 240px),
    var(--page);
}

body::before {
  background: linear-gradient(90deg, #1fd065, #8fe8b6);
  box-shadow: none;
}

.page-shell {
  width: min(1420px, calc(100% - 36px));
  padding-top: 24px;
}

.intro-panel,
.action-panel,
.control-bar,
.date-filter-bar,
.incident-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
}

.intro-panel {
  min-height: 190px;
  padding: 34px 38px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(46, 214, 111, 0.12), rgba(255, 255, 255, 0.96) 46%),
    #fff;
}

.intro-panel::before {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 124px;
  height: 124px;
  border-radius: 32px;
  border: 1px solid rgba(46, 214, 111, 0.28);
  background: rgba(46, 214, 111, 0.08);
  opacity: 1;
  pointer-events: none;
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: 78px;
  bottom: 74px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
  pointer-events: none;
}

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.subtitle {
  max-width: 720px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  color: #536071;
  font-size: clamp(0.98rem, 1.04vw, 1.08rem);
  line-height: 1.58;
  font-weight: 500;
}

.action-panel {
  min-height: 190px;
  align-items: start;
  background: #fff;
  color: var(--ink);
}

.action-panel p {
  width: calc(100% - 28px);
  margin: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(23, 32, 47, 0.07);
  font-size: 0.82rem;
  text-transform: none;
}

.control-bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 380px);
  column-gap: 48px;
  row-gap: 22px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
}

.category-filters {
  gap: 9px 10px;
}

.primary-button,
.share-button,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 47, 0.06);
}

.primary-button:hover,
.share-button:hover,
.filter-button:hover {
  border-color: rgba(46, 214, 111, 0.55);
  background: #f0fbf5;
  color: var(--accent-dark);
}

.category-button {
  min-height: 30px;
  border-color: #d8e0e7;
  background: #f5f7f9;
  color: #667085;
  box-shadow: none;
}

.category-button.is-active {
  border-color: rgba(46, 214, 111, 0.45);
  background: #dff8e9;
  color: #087a39;
}

.category-button.is-active:hover {
  background: #ccf2dc;
  color: #075f2e;
}

.random-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #061b10;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(46, 214, 111, 0.24);
}

.random-button:hover {
  background: #24c963;
  color: #061b10;
  transform: translateY(-1px);
}

.search-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 47, 0.05);
}

input {
  min-height: 44px;
  color: var(--ink);
}

input:focus {
  box-shadow: inset 0 0 0 2px rgba(46, 214, 111, 0.28);
}

.search-button {
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
}

.search-button:hover {
  background: #effbf4;
  color: #086b34;
}

.date-filter-bar {
  gap: 8px;
  padding: 12px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.year-filters,
.month-filters {
  gap: 8px;
  background: transparent;
}

.date-filter-bar .filter-button {
  min-width: 52px;
  min-height: 34px;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  box-shadow: none;
}

.month-button {
  min-width: 44px;
}

.year-button.is-active,
.month-button.is-active {
  border-color: rgba(46, 214, 111, 0.48);
  background: #dff8e9;
  color: #087a39;
  box-shadow: none;
}

.day-separator {
  border-radius: 18px;
  background: #17202f;
  box-shadow: inset 5px 0 0 var(--accent);
}

.incident-card {
  overflow: hidden;
  border-radius: 24px;
}

.incident-card:hover {
  border-color: #cdd6df;
  box-shadow: 0 18px 42px rgba(23, 32, 47, 0.11);
}

.incident-summary {
  background: #fff;
  padding: 13px 15px;
}

.incident-thumb {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}

.incident-title {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-transform: none;
}

.incident-toggle {
  border-radius: 50%;
  background: #eefbf4;
  color: var(--accent-dark);
  box-shadow: none;
}

.incident-card.is-open {
  border-color: rgba(46, 214, 111, 0.35);
  box-shadow: 0 20px 52px rgba(23, 32, 47, 0.12);
}

.incident-card.is-open .incident-summary {
  min-height: 48px;
  background: #f3fbf6;
  color: var(--ink);
  border-bottom: 1px solid #d8f1e2;
}

.incident-card.is-open .incident-date {
  color: var(--muted);
}

.incident-card.is-open .incident-header-categories span {
  min-height: 23px;
  border: 1px solid rgba(46, 214, 111, 0.35);
  background: #dff8e9;
  color: #087a39;
  font-size: 0.62rem;
}

.incident-card.is-open .incident-toggle {
  background: var(--accent);
  color: #061b10;
}

.incident-detail {
  background:
    linear-gradient(135deg, rgba(46, 214, 111, 0.08), transparent 340px),
    #fff;
}

.detail-image {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(23, 32, 47, 0.10);
}

.detail-content h2 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: none;
}

.detail-text {
  color: #4d5968;
}

.detail-meta {
  border-top-color: #dfeae4;
}

.source-link {
  color: #087a39;
  text-decoration-color: rgba(46, 214, 111, 0.7);
}

.share-links {
  gap: 8px;
}

.share-link {
  min-height: 34px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 47, 0.05);
}

.share-link:hover {
  border-color: rgba(46, 214, 111, 0.48);
  background: #dff8e9;
  color: #087a39;
}

@media (max-width: 920px) {
  .hero-grid,
  .control-bar {
    grid-template-columns: 1fr;
  }

  .random-button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1420px);
  }

  .intro-panel {
    min-height: 188px;
    padding: 26px;
  }

  .intro-panel::before,
  .intro-panel::after {
    opacity: 0.32;
  }

  .control-bar {
    gap: 18px;
    padding: 14px;
  }
}

/* Pastel orange palette override */
:root {
  --accent: #ffb36b;
  --accent-dark: #c96b24;
  --gold: #e98b3f;
  --soft-orange: #fff1e5;
  --shadow: 0 12px 30px rgba(122, 73, 35, 0.09);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 179, 107, 0.14), transparent 240px),
    var(--page);
}

body::before {
  background: linear-gradient(90deg, #ffb36b, #ffd6ad);
}

.intro-panel {
  background:
    linear-gradient(135deg, rgba(255, 179, 107, 0.18), rgba(255, 255, 255, 0.96) 46%),
    #fff;
}

.intro-panel::before {
  border-color: rgba(255, 179, 107, 0.34);
  background: rgba(255, 179, 107, 0.12);
}

.intro-panel::after {
  border-color: var(--accent);
  border-top-color: transparent;
  border-right-color: transparent;
}

.subtitle {
  border-left-color: var(--accent);
}

.primary-button:hover,
.share-button:hover,
.filter-button:hover {
  border-color: rgba(255, 179, 107, 0.7);
  background: #fff6ee;
  color: #9d4f17;
}

.category-button.is-active,
.year-button.is-active,
.month-button.is-active,
.incident-card.is-open .incident-header-categories span,
.share-link:hover {
  border-color: rgba(255, 179, 107, 0.62);
  background: #fff1e5;
  color: #9d4f17;
}

.category-button.is-active:hover {
  background: #ffe3c7;
  color: #813d0e;
}

.random-button,
.incident-card.is-open .incident-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #39200d;
}

.random-button:hover {
  background: #ffa354;
  color: #39200d;
}

input:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 179, 107, 0.36);
}

.search-button {
  color: #9d4f17;
}

.search-button:hover {
  background: #fff6ee;
  color: #813d0e;
}

.incident-card.is-open {
  border-color: rgba(255, 179, 107, 0.5);
}

.incident-card.is-open .incident-summary {
  background: #fff7ef;
  border-bottom-color: #f4ddc9;
}

.incident-detail {
  background:
    linear-gradient(135deg, rgba(255, 179, 107, 0.12), transparent 340px),
    #fff;
}

.source-link {
  color: #9d4f17;
  text-decoration-color: rgba(255, 179, 107, 0.9);
}

.share-link:hover {
  color: #9d4f17;
}

/* Squared UI override */
.intro-panel,
.action-panel,
.control-bar,
.date-filter-bar,
.incident-card,
.empty-state,
.action-panel p,
.primary-button,
.share-button,
.filter-button,
.category-button,
.random-button,
.search-box,
.date-filter-bar .filter-button,
.day-separator,
.incident-thumb,
.incident-toggle,
.detail-image,
.share-link {
  border-radius: 0;
}

/* Remove leftover green hues */
.random-button {
  box-shadow: 0 12px 24px rgba(255, 179, 107, 0.28);
}

.random-button:hover {
  box-shadow: 0 12px 24px rgba(255, 179, 107, 0.34);
}

.primary-button:hover,
.share-button:hover,
.filter-button:hover {
  background: #fff6ee;
  color: #9d4f17;
}

.search-button:hover {
  background: #fff6ee;
  color: #813d0e;
}

.share-link:hover {
  background: #fff1e5;
  color: #9d4f17;
}

/* Share icons and orange toggles */
.share-link {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.share-link svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-link svg path:first-child:last-child {
  fill: currentColor;
  stroke: none;
}

.copy-share-link.is-copied {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
}

.incident-toggle,
.incident-card.is-open .incident-toggle {
  background: #fff1e5;
  color: #9d4f17;
}

.incident-summary:hover .incident-toggle,
.incident-card.is-open .incident-summary:hover .incident-toggle {
  background: #ffb36b;
  color: #39200d;
}

.share-link svg path {
  fill: none !important;
  stroke: currentColor !important;
}

/* Remove decorative header mark */
.intro-panel::after {
  display: none;
}

/* Flatter action elements */
.random-button,
.random-button:hover,
.action-panel,
.action-panel p {
  box-shadow: none;
}

/* Share strip label */
.share-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.copy-share-link {
  width: auto;
  min-width: 76px;
  grid-auto-flow: column;
  gap: 6px;
  padding: 0 10px;
}

.copy-share-link span {
  line-height: 1;
}

/* Larger share icons */
.share-link {
  width: 34px;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
}

.share-link svg {
  width: 20px;
  height: 20px;
}

.copy-share-link {
  min-width: 78px;
  min-height: 32px;
  gap: 5px;
  padding: 0 8px;
}

/* Tighter open incident body text */
.detail-text {
  line-height: 1.48;
  font-size: 1rem;
}

.detail-content h2 {
  margin-bottom: 8px;
}

/* Crisper larger share icons */
.share-link {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
}

.share-link svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.copy-share-link {
  min-width: 86px;
  min-height: 36px;
  gap: 6px;
}
