/* =========================================================
   AI Search Awards — landing (3803:56339), entry (3803:56337),
   register (4001:90058) + modal (3803:56338), FAQ expand (3812:63574),
   category dropdown (3812:64607), file dropzone (3812:63491).
   ========================================================= */

/* The award layout is wider than the 1128px site container. */
.site-main > .award-projects,
.site-main > .award-timeline,
.site-main > .award-banner,
.site-main > .award-faq,
.site-main > .award-sponsors,
.site-main > .award-reg-banner {
  width: min(1316px, calc(100% - 48px));
}

.site-main > .award-hero {
  width: min(1128px, calc(100% - 48px));
}

.site-main > .award-projects {
  /* The peek cards bleed past the container on purpose. */
  overflow: visible;
}

/* ---------- Landing hero ---------- */

.award-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.award-hero__eyebrow {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  font-weight: 600;
  color: var(--color-brand-blue);
}

.award-hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.award-hero__desc {
  margin-top: 8px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  color: #000;
  opacity: 0.8;
}

/* ---------- Project peek carousel ---------- */

.award-projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.award-projects__viewport {
  position: relative;
  width: 100%;
  /* Clip the horizontal travel only; the card shadow below must survive. */
  overflow-x: clip;
  overflow-y: visible;
}

.award-projects__track {
  display: flex;
  gap: 62px;
  align-items: flex-start;
  transition: transform var(--duration-normal) var(--ease-out);
}

.award-project {
  display: flex;
  flex: 0 0 min(928px, 78vw);
  flex-direction: column;
  gap: 16px;
}

.award-project__media {
  aspect-ratio: 928 / 509;
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card-lg);
}

.award-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-project__name {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  color: #000;
}

/* Side cards read as background until they become the active slide. */
.award-project.is-before,
.award-project.is-after {
  opacity: 0.9;
}

/* Over the peeking side cards, as in the design. */
.award-projects__viewport .slider-arrow--prev { left: calc(50% - 636px); }
.award-projects__viewport .slider-arrow--next { right: calc(50% - 636px); }

@media (max-width: 1320px) {
  .award-projects__viewport .slider-arrow--prev { left: 16px; }
  .award-projects__viewport .slider-arrow--next { right: 16px; }
}

/* ---------- Timeline ---------- */

.award-timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.award-timeline__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  color: #000;
}

.award-timeline__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1000px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.award-step__date {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-brand-blue);
}

/* The rail is drawn per step and joined by the negative side extensions, so
   it stays glued to the dots at any column width. */
.award-step__rail {
  position: relative;
  width: calc(100% + 24px);
  height: 4px;
  border-radius: 2px;
  background-image: var(--gradient-brand);
}

.award-step__rail::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-image: var(--gradient-brand);
  content: "";
  transform: translate(-50%, -50%);
}

.award-step__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 24px 16px;
  border-radius: var(--radius-card-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.award-step__icon {
  width: 32px;
  height: 32px;
}

.award-step__label {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #000;
}

/* ---------- Highlight banner (reuses .blog-hero) ---------- */

.award-banner .blog-hero__eyebrow span {
  color: transparent;
  background-image: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
}

/* ---------- FAQ ---------- */

.award-faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.award-faq__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.award-faq__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  color: #000;
}

.award-faq__subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.award-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
  width: 100%;
}

.award-faq-item {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.award-faq-item:has(.award-faq-item__q[aria-expanded="true"]) {
  box-shadow: var(--shadow-card-lg);
}

.award-faq-item__q {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: #1e1e1e;
  cursor: pointer;
}

.award-faq-item__q:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: -3px;
}

/* One gradient disc; the plus rotates into the × of the open state. */
.award-faq-item__icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image: var(--gradient-brand);
  transition: transform var(--duration-normal) var(--ease-out);
}

.award-faq-item__icon::before,
.award-faq-item__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 1px;
  content: "";
}

.award-faq-item__icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.award-faq-item__icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.award-faq-item__q[aria-expanded="true"] .award-faq-item__icon {
  transform: rotate(45deg);
}

.award-faq-item__a {
  padding: 0 28px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #757575;
}

.award-faq-item__a::before {
  display: block;
  margin-bottom: 16px;
  border-top: 1px solid var(--color-separator);
  content: "";
}

.award-faq-item__a p {
  margin: 0 0 12px;
}

.award-faq-item__a p:last-child {
  margin-bottom: 0;
}

.award-faq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.award-faq__actions .btn {
  padding: 12px 24px;
  font-size: 16px;
}

/* The exported icons carry the brand gradient; on the gradient pill the design
   shows them white. */
.award-faq__actions .btn__icon {
  filter: brightness(0) invert(1);
}

/* ---------- Sponsor banners ---------- */

.award-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.award-sponsor {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  transition: transform var(--duration-fast) var(--ease-out);
}

a.award-sponsor:hover {
  transform: translateY(-4px);
}

.award-sponsor img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Download modal (3803:56338) ---------- */

.award-modal[hidden] {
  display: none;
}

.award-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.award-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
}

.award-modal__panel {
  position: relative;
  display: flex;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  /* Hidden so the rounded corners clip the cover image; the close button now
     sits inside the panel, so it is no longer cut off. The body scrolls. */
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  background: #fff;
}

.award-modal__art {
  flex: 0 0 45%;
}

.award-modal__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-arrow);
  font-size: 22px;
  line-height: 1;
  color: #1e1e1e;
  cursor: pointer;
}

.award-modal__body {
  flex: 1;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 48px 56px;
}

.award-modal__title {
  margin-bottom: 28px;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

.award-modal__done {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(42, 196, 139, 0.12);
  font-size: 16px;
  color: #157a55;
}

.award-modal__done a {
  font-weight: 600;
  color: var(--color-brand-blue);
  text-decoration: underline;
}

/* ---------- Shared award form fields ---------- */

/* Honeypot: off-screen (not display:none, which some bots skip) and out of the
   tab order; a submission that fills it is dropped server-side. */
.award-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.award-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.award-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.award-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  color: #1e1e1e;
}

.award-field > span {
  font-weight: 500;
}

.award-field input,
.award-field textarea {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(28, 115, 233, 0.35);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #1e1e1e;
}

.award-field textarea {
  min-height: 120px;
  border-radius: 24px;
  resize: vertical;
}

.award-field input::placeholder,
.award-field textarea::placeholder {
  color: #b6b9c4;
}

.award-field input:focus,
.award-field textarea:focus {
  border-color: var(--color-brand-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 115, 233, 0.12);
}

.award-form__submit {
  align-self: center;
  margin-top: 8px;
  padding: 12px 32px;
}

/* ---------- Entry page (3803:56337) ---------- */

/* A direct child of .site-main (align-items:center) with no width would shrink
   to its text and float at the page centre; pin it to the content column. */
.site-main > .award-breadcrumb {
  width: min(1128px, calc(100% - 48px));
}

.award-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  color: var(--color-text-muted);
}

.award-breadcrumb a:hover {
  color: var(--color-brand-blue);
}

.award-breadcrumb [aria-current="page"] {
  color: transparent;
  background-image: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 500;
}

.award-breadcrumb__sep {
  color: #c6c9d2;
}

.award-enter-hero {
  display: flex;
  gap: 48px;
  align-items: center;
}

.award-enter-hero__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.award-enter-hero__eyebrow {
  color: transparent;
  background-image: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 20px;
  font-weight: 600;
}

.award-enter-hero__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.award-enter-hero__desc {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.award-enter-hero__cta {
  margin-top: 16px;
  padding: 12px 32px;
  font-size: 16px;
}

.award-enter-hero__art {
  flex: 0 0 44%;
}

.award-enter-hero__art img {
  width: 100%;
  height: auto;
}

/* --- Category cards --- */

.award-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.award-categories__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.award-categories__eyebrow {
  color: transparent;
  background-image: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 20px;
  font-weight: 600;
}

.award-categories__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  color: #000;
}

.award-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  width: 100%;
}

/* 2px gradient border: gradient on the border box, white on the padding box. */
.award-categories__card {
  padding: 32px 36px;
  border: 2px solid transparent;
  border-radius: var(--radius-card-lg);
  background-image: linear-gradient(#fff, #fff), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.award-categories__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
  color: #1e1e1e;
}

.award-categories__list li {
  display: flex;
  gap: 6px;
}

.award-categories__num {
  flex: none;
}

/* ---------- Contact strip (gradient band) ---------- */

.site-main > .award-contact {
  width: 100%;
}

.award-contact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  padding: 80px 24px;
  background-image: var(--gradient-brand);
}

.award-contact__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  color: #fff;
}

.award-contact__title {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
}

.award-contact__subtitle {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.95;
}

.award-contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(936px, 100%);
}

.award-contact__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.award-contact__form input,
.award-contact__form textarea {
  width: 100%;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #1e1e1e;
}

.award-contact__form textarea {
  min-height: 100px;
  border-radius: 32px;
  resize: vertical;
}

.award-contact__form input::placeholder,
.award-contact__form textarea::placeholder {
  color: #9aa0ab;
}

.award-contact__submit {
  align-self: center;
  padding: 12px 32px;
  font-weight: 600;
}

.award-contact__done {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  color: #157a55;
}

/* ---------- Register page (4001:90058) ---------- */

.site-main > .award-register {
  width: min(936px, calc(100% - 48px));
}

.award-reg-banner {
  overflow: hidden;
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card-lg);
}

.award-reg-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.award-register {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.award-register__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.award-register__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 700;
  color: #000;
}

.award-register__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.award-register__form {
  width: 100%;
}

.award-register__done {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  background: rgba(42, 196, 139, 0.12);
  font-size: 16px;
  color: #157a55;
}

.award-register .award-form__submit {
  padding: 12px 48px;
}

/* --- Category dropdown (3812:64607) --- */

.award-select {
  position: relative;
}

.award-select__toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(28, 115, 233, 0.35);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  color: #1e1e1e;
  cursor: pointer;
}

.award-select__toggle[aria-expanded="true"] {
  border-color: transparent;
  background-image: linear-gradient(90deg, rgba(28, 115, 233, 0.22), rgba(42, 196, 139, 0.22));
}

.award-select__chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) ease;
}

.award-select__toggle[aria-expanded="true"] .award-select__chevron {
  transform: rotate(180deg);
}

.award-select__menu[hidden] {
  display: none;
}

.award-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(420px, 100%);
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 32px -4px rgba(111, 108, 143, 0.16), 0 3px 8px -2px rgba(92, 93, 164, 0.08);
}

.award-select__option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #1e1e1e;
  cursor: pointer;
}

.award-select__option:hover {
  background: var(--color-surface-soft);
}

.award-select__option input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-blue);
  cursor: pointer;
}

/* --- File dropzone (3812:63491) --- */

.award-dropzone {
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-card-lg);
  background-image: linear-gradient(#fff, #fff), var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.award-dropzone__area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 176px;
  padding: 24px;
  border: 1px dashed var(--color-brand-blue);
  border-radius: var(--radius-card);
  text-align: center;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.award-dropzone.is-dragging .award-dropzone__area {
  border-style: solid;
  background-image: linear-gradient(90deg, rgba(28, 115, 233, 0.12), rgba(42, 196, 139, 0.12));
}

.award-dropzone__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.award-dropzone__prompt {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
}

.award-dropzone__browse {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--color-brand-blue);
  text-decoration: underline;
  cursor: pointer;
}

.award-dropzone__hint {
  font-size: 14px;
  color: var(--color-text-faint);
}

.award-dropzone__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-faint);
}

/* Beats `.award-field input { width: 100% }` — otherwise the visually hidden
   input keeps its full width and pushes the page sideways. */
.award-dropzone .award-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.award-dropzone__input:focus-visible + .award-dropzone__area {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 2px;
}

.award-file[hidden] {
  display: none;
}

.award-file {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--color-separator);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.award-file__icon {
  width: 28px;
  height: 28px;
}

.award-file__meta {
  flex: 1;
  min-width: 0;
}

.award-file__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e1e1e;
}

.award-file__size {
  font-size: 13px;
  color: var(--color-text-faint);
}

.award-file__state {
  font-size: 13px;
  color: var(--color-brand-green);
}

.award-file__remove {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--color-brand-blue);
  cursor: pointer;
}

.award-file__remove:hover {
  background: var(--color-surface-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .award-enter-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .award-enter-hero__art {
    flex: none;
    width: 100%;
  }

  .award-modal__panel {
    flex-direction: column;
  }

  .award-modal__art {
    flex: none;
    max-height: 220px;
  }

  .award-modal__body {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .award-faq__grid,
  .award-sponsors,
  .award-categories__grid,
  .award-form__row,
  .award-contact__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .award-timeline__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* One column: the joining rail would point nowhere. */
  .award-step__rail {
    width: 4px;
    height: 32px;
  }

  .award-project {
    flex-basis: 88vw;
  }
}
