/* Assignments-only color pass: let the aerial image and fieldwork palette carry more energy. */
html body.assignments-page .assignment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 4px;
  overflow: visible;
}
html body.assignments-page .assignment-tabs button {
  font-family: var(--mapfix-font-body) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  min-height: 50px !important;
  padding: 12px 22px;
  border: 1px solid rgba(37, 59, 54, .4) !important;
  box-shadow: 0 3px 0 rgba(37, 59, 54, .18) !important;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease !important;
}
html body.assignments-page .assignment-tabs button:hover {
  background: #d3dfd3 !important;
  border-color: #36584f !important;
}
html body.assignments-page .assignment-tabs button.active {
  background: #36584f !important;
  border-color: #29483f !important;
  box-shadow: inset 0 2px 3px rgba(15, 32, 28, .2) !important;
}
html body.assignments-page .assignment-tabs button.active:hover { background: #29483f !important; }
html body.assignments-page .assignment-tabs button:focus-visible {
  outline: 2px solid #36584f;
  outline-offset: 4px;
}
html body.assignments-page .assignment-tabs button:active {
  box-shadow: inset 0 2px 3px rgba(15, 32, 28, .2) !important;
}
@media (max-width: 700px) {
  html body.assignments-page .assignment-tabs button {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.assignments-page .assignment-tabs button { transition: none !important; }
}

/* Square card edges and all nested controls, including the start arrow. */
html body.assignments-page .assignment-tabs button,
html body.assignments-page .assignment-card,
html body.assignments-page .assignment-card :is(button, a, .start-button span) {
  border-radius: 0 !important;
}

.assignments-page .assignment-card .start-button {
  padding-inline: 64px;
}

.assignments-page .assignment-card .start-button-icon svg {
  transform: translateX(-8px);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}
.assignments-page .assignment-card .start-button-icon {
  border: 0;
  background: transparent !important;
  opacity: 0;
  transition: opacity 240ms ease;
}
.assignments-page .assignment-card .start-button:is(:hover, :focus-visible):not(:disabled) .start-button-icon {
  opacity: 1;
}
.assignments-page .assignment-card .start-button:is(:hover, :focus-visible):not(:disabled) .start-button-icon svg {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .assignments-page .assignment-card .start-button .start-button-icon,
  .assignments-page .assignment-card .start-button .start-button-icon svg {
    transition: none;
    transform: none;
  }
  .assignments-page .assignment-card .start-button:is(:hover, :focus-visible):not(:disabled) .start-button-icon svg {
    transform: none;
  }
}

.assignments-original-hero {
  background-color: #315f52 !important;
  background-blend-mode: normal !important;
  background-position: center !important;
}

.assignments-original-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(25, 59, 51, .92) 0%,
    rgba(25, 59, 51, .76) 38%,
    rgba(25, 59, 51, .38) 66%,
    rgba(12, 36, 30, .14) 100%
  ) !important;
}

html body .assignments-original-page .assignments-original-hero-inner > div:last-child {
  border-left: 3px solid #d08861 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body .assignments-original-page .assignments-original-hero h1,
html body .assignments-original-page .assignments-original-hero-inner > div:last-child > p:not(.eyebrow) {
  color: #fffdf8 !important;
}

html body .assignments-original-page .assignments-original-hero h1 em { color: #f2d5c3 !important; }

.assignment-guide-link {
  border: 1px solid #e7a47d !important;
  color: #fffdf8 !important;
  background: #bd7655 !important;
  box-shadow: 5px 5px 0 rgba(13, 40, 33, .26) !important;
}

.assignment-guide-link:hover { background: #a55e40 !important; }

.assignments-workspace { background: #e3ece4 !important; }

.assignment-tabs button:not(.active) {
  background: #f8f3e9 !important;
}

html body.assignments-page .assignment-card {
  border: 1px solid rgba(37, 59, 54, .12) !important;
  box-shadow: none !important;
  transition: box-shadow 500ms cubic-bezier(.165, .84, .44, 1);
}
html body.assignments-page .assignment-card:is(:hover, :focus-within) {
  box-shadow: 0 7px 20px rgba(0, 0, 0, .08) !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html body.assignments-page .assignment-card { transition: none; }
}

.assignment-card .assignment-replies,
.assignment-card-top > b { color: #36584f !important; }

@media (max-width: 700px) {
  .assignments-original-hero-overlay {
    background: linear-gradient(180deg, rgba(25, 59, 51, .9), rgba(25, 59, 51, .56)) !important;
  }
}

/* This stylesheet loads last: enforce strict 90-degree corners in the workflow. */
html body .assignment-workflow-dialog,
html body .assignment-workflow-dialog *,
html body .assignment-workflow-dialog *::before,
html body .assignment-workflow-dialog *::after {
  border-radius: 0 !important;
}

html body .assignment-workflow-dialog .workflow-country {
  color: #36584f !important;
  font-family: var(--mapfix-font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Keep the assignment toolbar actions strictly square. */
html body.assignments-page .assignment-filter,
html body.assignments-page #create-official-assignment,
html body.assignments-page .propose-assignment-button {
  border-radius: 0 !important;
}

html body.assignments-page .assignment-filter:hover::before,
html body.assignments-page .assignment-filter[aria-expanded="true"]::before {
  color: #fbfaf5 !important;
}

html body.assignments-page #create-official-assignment .create-official-icon rect {
  rx: 0;
}

html body.assignments-page .assignment-filter-panel,
html body.assignments-page .assignment-filter-panel :is(input, select, button) {
  border-radius: 0 !important;
}

/* Match active-card date and country metadata to completed assignment cards. */
html body.assignments-page .assignment-card .assignment-card-top,
html body.assignments-page .assignment-card .assignment-card-post-meta,
html body.assignments-page .assignment-card .assignment-card-top > b {
  font-family: var(--mapfix-font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html body.assignments-page .assignment-card .assignment-card-top {
  padding-bottom: 72px;
}

html body.assignments-page .assignment-card .assignment-card-post-meta {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

html body .assignment-card-location-date {
  white-space: nowrap;
}

html body.assignments-page .assignment-card .assignment-replies {
  margin-top: 10px;
  font-family: var(--mapfix-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 700px) {
  html body.assignments-page .assignment-card .assignment-card-top {
    padding-bottom: 58px;
  }
}

.assignments-page .assignment-card .start-button-label {
  display: inline-block;
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}
.assignments-page .assignment-card .start-button:is(:hover, :focus-visible):not(:disabled) .start-button-label {
  transform: translateX(-10px);
}
@media (prefers-reduced-motion: reduce) {
  .assignments-page .assignment-card .start-button-label {
    transition: none;
    transform: none !important;
  }
}

/* Match the compact photo banners while preserving the introduction below. */
html body .assignments-original-page .assignments-original-hero {
  width: min(1250px, calc(100% - 30px));
  min-height: 320px;
  height: 320px;
  margin: 22px auto 0;
  border-radius: 0 !important;
  overflow: hidden;
}
html body .assignments-original-page .assignments-original-hero-overlay {
  background: linear-gradient(90deg, rgba(20,47,41,.66), rgba(20,47,41,.42)) !important;
}
html body .assignments-original-page .assignments-original-hero-inner {
  width: 100%;
  min-height: 320px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}
html body .assignments-original-page .assignments-original-hero-inner > div:last-child {
  max-width: none;
  padding: 24px;
  border: 0 !important;
}
html body .assignments-original-page .assignments-original-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px) !important;
  line-height: 1.1;
  letter-spacing: -.055em;
  text-shadow: 0 2px 18px rgba(8,25,21,.28);
}
html body .assignments-original-page .assignments-original-hero h1 em {
  color: inherit !important;
  font-style: normal;
}
html body .assignments-original-page .assignments-introduction {
  width: min(1250px, calc(100% - 30px));
  padding: 32px 0 36px;
  display: flex;
  align-items: center;
  gap: 24px 48px;
  justify-content: space-between;
}
.assignments-introduction p { max-width: 760px; margin: 0; font-size: 17px; line-height: 1.6; }
html body .assignments-original-page .assignments-introduction .assignment-guide-link { flex-shrink: 0; box-shadow: none !important; border-radius: 0 !important; }
@media (max-width: 1000px) {
  html body .assignments-original-page .assignments-introduction { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  html body .assignments-original-page .assignments-original-hero { width: calc(100% - 24px); height: 260px; min-height: 260px; margin-top: 12px; }
  html body .assignments-original-page .assignments-original-hero-inner { min-height: 260px; }
  html body .assignments-original-page .assignments-original-hero h1 { font-size: clamp(43px, 13vw, 60px) !important; }
  html body .assignments-original-page .assignments-introduction { width: calc(100% - 32px); padding: 24px 0 36px; }
}

/* Use the Impact page’s ivory surround and title treatment. */
html body .assignments-original-page main { padding-top: 22px; background: #f4f1e9; }
html body .assignments-original-page .assignments-original-hero { margin-top: 0; }
html body .assignments-original-page .assignments-original-hero h1 { font-family: var(--mapfix-font-display); font-weight: 600 !important; letter-spacing: -.025em !important; color: #fff !important; }

/* Quiet text navigation and a single results toolbar. */
html body .assignments-original-page .assignments-introduction {
  flex-direction: column; align-items: flex-start; gap: 12px;
}
html body .assignments-original-page .assignments-introduction .assignment-guide-link {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #36584f !important; padding: 0; font: 500 14px/1.5 var(--mapfix-font-body);
  text-decoration: underline; text-underline-offset: 3px; transform: none;
}
html body.assignments-page .assignment-tabs {
  width: min(1250px, calc(100% - 30px)); margin: 0 auto;
  display: flex; justify-content: flex-start; gap: 28px; flex-wrap: wrap;
  padding: 0 20px; background: #fff; border-bottom: 1px solid #d5ddd8;
  box-shadow: none;
}
html body.assignments-page .assignment-tabs button,
html body.assignments-page .assignment-tabs button.active {
  flex: 0 0 auto; width: auto; min-height: 56px; padding: 14px 0;
  background: transparent !important; color: #52665f !important;
  border: 0 !important; border-bottom: 2px solid transparent !important;
  box-shadow: none !important; transform: none !important;
  font: 500 16px/1.4 var(--mapfix-font-body) !important; letter-spacing: 0 !important;
}
html body.assignments-page .assignment-tabs button.active {
  color: #253b36 !important; border-bottom-color: #36584f !important;
}
html body.assignments-page .assignment-tabs button:hover {
  background: transparent !important; color: #253b36 !important; border-bottom-color: #9cadA4 !important;
}
html body .assignments-original-page .assignments-main-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 0 24px; flex-wrap: wrap;
}
html body .assignments-original-page #assignment-results-heading {
  margin: 0; font-size: 24px !important; line-height: 1.3;
}
html body .assignments-original-page .assignment-filter-wrap {
  position: relative; display: flex; align-items: center; gap: 12px;
}
html body .assignments-original-page :is(.assignment-filter-shortcut, .assignment-filter) {
  min-height: 44px; padding: 0 2px !important; width: auto;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #36584f !important; font: 500 15px/1.4 var(--mapfix-font-body) !important;
  letter-spacing: 0 !important; text-transform: none; cursor: pointer;
}
html body .assignments-original-page :is(.assignment-filter-shortcut, .assignment-filter):hover {
  text-decoration: underline; text-underline-offset: 4px;
}
html body .assignments-original-page .assignment-filter::before { display: none; }
html body .assignments-original-page .assignment-filter-panel { top: 100%; right: 0; z-index: 20; }
.filter-separator { color: #8a9b92; }
@media (max-width: 600px) {
  html body.assignments-page .assignment-tabs { gap: 18px; padding-inline: 12px; }
  html body.assignments-page .assignment-tabs button { font-size: 14px !important; }
}

html body.assignments-page .assignments-original-page .assignment-tabs { background: #fff !important; }
html body.assignments-page .assignments-original-page .assignment-tabs button[role="tab"] {
  background: transparent !important; color: #52665f !important;
  box-shadow: none !important;
}
html body.assignments-page .assignments-original-page .assignment-tabs button[aria-selected="true"] {
  background: transparent !important; color: #253b36 !important;
  border-bottom: 2px solid #36584f !important;
}
html body.assignments-page #assignment-filter-button {
  background: transparent !important; color: #36584f !important;
}
html body.assignments-page #assignment-filter-panel {
  left: auto !important; right: 0 !important; width: min(320px, calc(100vw - 40px));
}

/* Use the supplied warm ivory as the full Assignments-page canvas. */
html body.assignments-page,
html body.assignments-page .assignments-original-page,
html body.assignments-page .assignments-original-page main {
  background: linear-gradient(180deg, #f5f1e9 0%, #f1ebdf 52%, #f5f1e9 100%) !important;
}

html body.assignments-page .site-header {
  background: rgba(245, 241, 233, .96) !important;
}

html body.assignments-page .assignments-original-hero {
  background-color: #f5f1e9 !important;
}

html body.assignments-page .assignments-original-hero-overlay {
  background: linear-gradient(90deg, rgba(25, 59, 51, .74), rgba(25, 59, 51, .34)) !important;
}

html body.assignments-page .assignments-original-page .assignments-original-hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(8, 25, 21, .28);
}

html body.assignments-page :is(
  .assignments-introduction,
  .assignments-workspace,
  .assignment-tabs
) {
  background: transparent !important;
}

/* Keep every surface and interaction state in the proposal workflow square. */
html body.assignments-page .proposal-dialog,
html body.assignments-page .proposal-dialog *,
html body.assignments-page .proposal-dialog *::before,
html body.assignments-page .proposal-dialog *::after {
  border-radius: 0 !important;
}

/* One compact navigation row followed immediately by the results toolbar. */
html body.assignments-page .assignments-original-page .assignment-navigation {
  width: min(1250px, calc(100% - 30px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; margin: 12px auto 0; padding: 0;
}
html body.assignments-page .assignments-original-page .assignment-navigation .assignment-tabs {
  width: auto; margin: 0; padding: 0; gap: 24px;
  background: transparent !important; border: 0 !important;
  flex-wrap: nowrap; overflow: visible;
}
html body.assignments-page .assignments-original-page .assignment-navigation .assignment-tabs button {
  min-height: 46px; padding: 12px 0; border-bottom-color: transparent !important;
}
html body.assignments-page .assignments-original-page .assignment-navigation .assignment-tabs button[aria-selected="true"] {
  border-bottom-color: #36584f !important;
}
html body.assignments-page .assignments-original-page .assignment-navigation .assignment-guide-link {
  flex-shrink: 0; padding: 8px 0; background: transparent !important;
  border: 0 !important; box-shadow: none !important; color: #36584f !important;
  font: 500 14px/1.5 var(--mapfix-font-body); text-decoration: underline;
  text-underline-offset: 3px; transform: none;
}
html body.assignments-page .assignments-original-page .assignments-main {
  width: min(1250px, calc(100% - 30px)); padding-top: 0;
}
html body.assignments-page .assignments-original-page .assignments-main-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0; padding: 12px 0 14px; gap: 8px 20px;
}
html body.assignments-page .assignments-original-page .assignment-primary-actions {
  display: flex; align-items: center; width: auto; margin: 0; padding: 0;
  gap: 16px; flex-wrap: wrap;
}
html body.assignments-page .assignments-original-page #assignment-results-heading { margin: 0; line-height: 1.3; }
html body.assignments-page .assignments-original-page .assignment-card-grid { margin-top: 0; padding-top: 0; }
@media (max-width: 1050px) {
  html body.assignments-page .assignments-original-page .assignment-navigation { flex-wrap: wrap; gap: 4px 16px; }
  html body.assignments-page .assignments-original-page .assignment-navigation .assignment-tabs { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 600px) {
  html body.assignments-page .assignments-original-page .assignments-main-head { gap: 4px 12px; }
  html body.assignments-page .assignments-original-page #assignment-results-heading { font-size: 21px !important; }
}

/* Present all assignment filters through one clear, conventional button. */
html body.assignments-page #assignment-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 48px;
  padding: 0 18px !important;
  border: 1px solid #36584f !important;
  border-radius: 0 !important;
  color: #36584f !important;
  background: #fbfaf5 !important;
  box-shadow: 0 2px 0 rgba(37, 59, 54, .12) !important;
  font: 600 15px/1 var(--mapfix-font-body) !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
html body.assignments-page #assignment-filter-button::before { display: none !important; }
html body.assignments-page #assignment-filter-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}
html body.assignments-page #assignment-filter-button:hover,
html body.assignments-page #assignment-filter-button[aria-expanded="true"] {
  color: #fbfaf5 !important;
  background: #36584f !important;
  text-decoration: none !important;
}
html body.assignments-page #assignment-filter-button:focus-visible {
  outline: 3px solid #c27649;
  outline-offset: 3px;
}

/* Match the proposal action typography to the site's primary controls. */
html body.assignments-page .propose-assignment-button {
  font-family: var(--mapfix-font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Use the site's standard typography for proposal-form labels. */
html body.assignments-page .proposal-field > span:first-child {
  font-family: var(--mapfix-font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Keep assignment-workflow labels in natural title case. */
html body.assignments-page .assignment-workflow-dialog .workflow-section-label {
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Override the base pill treatment on workflow action buttons. */
html body.assignments-page .assignment-workflow-dialog :is(
  .workflow-secondary-button,
  .workflow-next-button
),
html body.assignments-page .assignment-workflow-dialog :is(
  .workflow-secondary-button,
  .workflow-next-button
)::before,
html body.assignments-page .assignment-workflow-dialog :is(
  .workflow-secondary-button,
  .workflow-next-button
)::after {
  border-radius: 0 !important;
}

/* Override the coordinate field's base 20px radius in every browser state. */
html body.assignments-page #workflow-coordinates,
html body.assignments-page #workflow-coordinates:hover,
html body.assignments-page #workflow-coordinates:focus,
html body.assignments-page #workflow-coordinates:focus-visible,
html body.assignments-page #workflow-coordinates:-webkit-autofill {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

/* Keep every surface and state in the submission viewer strictly square. */
html body.assignments-page .submission-viewer-dialog,
html body.assignments-page .submission-viewer-dialog *,
html body.assignments-page .submission-viewer-dialog *::before,
html body.assignments-page .submission-viewer-dialog *::after {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

/* Show only plain country metadata above the submission title. */
html body.assignments-page .submission-viewer-badges {
  display: block;
}
html body.assignments-page #submission-viewer-country {
  display: inline !important;
  width: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: #36584f !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--mapfix-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
