/* =============================================================================
   Construction Impacts aggregation page (/publicworks/construction-impacts)
   ============================================================================= */

.construction-impacts {
  width: min(1100px, calc(100% - 24px));
  margin: 26px auto 70px;
  color: #243447;
}

/* Hero */
.construction-impacts__hero {
  text-align: center;
  padding: 24px 18px 18px;
  margin-bottom: 24px;
}
.construction-impacts__title {
  margin: 0;
  color: #1a2e4a;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}
.construction-impacts__intro {
  margin: 12px auto 0;
  max-width: 760px;
  color: #5e6d7c;
  font-size: 1.125rem;
  line-height: 1.55;
}

/* ---------- Construction notice (single consolidated box) --------------- */
.construction-notice {
  margin: 0 0 28px;
  background: linear-gradient(180deg, #fff9eb 0%, #fff5dd 100%);
  border: 1px solid #f3d878;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(230, 167, 0, 0.12);
  overflow: hidden;
}

/* Box header — also acts as the <summary> toggle for the collapsible. */
.construction-notice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #fdeec0 0%, #f9e29b 100%);
  border-bottom: 1px solid #f3d878;
  cursor: pointer;
  list-style: none;                /* hide native disclosure marker */
  user-select: none;
  transition: background 0.15s ease;
}
.construction-notice__head::-webkit-details-marker { display: none; }
.construction-notice__head:hover {
  background: linear-gradient(180deg, #fce7ad 0%, #f7d97e 100%);
}
.construction-notice__head:focus-visible {
  outline: 2px solid #e6a700;
  outline-offset: -2px;
}
.construction-notice:not([open]) > .construction-notice__head {
  border-bottom-color: transparent;
}

/* Right-side meta cluster (count + chevron) */
.construction-notice__head-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.construction-notice__chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b5500;
  border-bottom: 2px solid #6b5500;
  transform: rotate(45deg);        /* open state: chevron points down */
  transition: transform 0.2s ease;
}
.construction-notice:not([open]) .construction-notice__chevron {
  transform: rotate(-135deg);      /* closed state: chevron points up */
}
.construction-notice__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: #e6a700;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  line-height: 1.6;
}
.construction-notice__tag .fa { font-size: 11px; }
.construction-notice__count {
  color: #6b5500;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* List of notices within the box */
.construction-notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.construction-notice__item {
  padding: 18px 24px;
  border-bottom: 1px dashed #ecd496;
}
.construction-notice__item:last-child {
  border-bottom: 0;
}

/* Each notice's title + dates row */
.construction-notice__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 6px;
}
.construction-notice__title {
  margin: 0;
  color: #1a2e4a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.construction-notice__dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b5500;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.construction-notice__dates .fa { font-size: 12px; opacity: 0.85; }

/* Body + link */
.construction-notice__body {
  color: #3d3300;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.construction-notice__body p:first-child { margin-top: 0; }
.construction-notice__body p:last-child { margin-bottom: 0; }
.construction-notice__body a {
  color: #215f9e;
  text-decoration: underline;
  word-break: break-word;
}


@media (max-width: 575px) {
  .construction-notice__head { padding: 12px 16px; }
  .construction-notice__item { padding: 14px 16px; }
  .construction-notice__title { font-size: 17px; }
}

.construction-impacts__empty {
  text-align: center;
  padding: 60px 20px;
  color: #5e6d7c;
  font-size: 1.125rem;
}

/* Project list */
.construction-impacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.construction-impacts__project {
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 20px 24px 22px;
  box-shadow: 0 4px 16px rgba(26, 46, 74, 0.06);
}

/* Project header */
.construction-impacts__project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaf0f5;
  margin-bottom: 14px;
}
.construction-impacts__project-title {
  margin: 0;
  font-size: 1.875rem;          /* 30px — matches project page title scale */
  font-weight: 700;
  line-height: 1.2;
}
.construction-impacts__project-title a {
  color: #1a2e4a;
  text-decoration: none;
}
.construction-impacts__project-title a:hover {
  color: #e06b2d;
  text-decoration: underline;
}
.construction-impacts__project-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;          /* 14px */
  color: #5e6d7c;
}
.construction-impacts__dept {
  font-size: 0.875rem;          /* 14px */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.construction-impacts__status {
  font-size: 0.75rem;           /* 12px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5568;
  background: #f1f5f9;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Updates within a project */
.construction-impacts__updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.construction-impacts__update {
  padding: 12px 0;
  border-bottom: 1px solid #f0f4f8;
}
.construction-impacts__update:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.construction-impacts__update-meta time {
  font-size: 16px;
  font-weight: 600;
  color: #e06b2d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.construction-impacts__update-header {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1a2e4a;
  line-height: 1.3;
}
.construction-impacts__update-body {
  color: #243447;
  font-size: 15px;
  line-height: 1.6;
}
.construction-impacts__update-body p {
  font-size: inherit;            /* prevent any inherited shrinking from theme overrides */
}
.construction-impacts__update-body p:first-child {
  margin-top: 0;
}
.construction-impacts__update-body p:last-child {
  margin-bottom: 0;
}
.construction-impacts__update-body a {
  color: #215f9e;
  word-break: break-word;
}
.construction-impacts__update-body ul,
.construction-impacts__update-body ol {
  font-size: 15px;              /* match body */
  line-height: 1.6;
}

.construction-impacts__more {
  margin: 16px 0 0;
  text-align: right;
  font-size: 1rem;               /* 16px */
}
.construction-impacts__more a {
  color: #215f9e;
  text-decoration: none;
  font-weight: 500;
}
.construction-impacts__more a:hover {
  color: #e06b2d;
  text-decoration: underline;
}

@media (max-width: 575px) {
  .construction-impacts__project {
    padding: 16px;
  }
  .construction-impacts__project-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
