/* The partners page: the MoldTax banner and the partner logos.

   The banner is Proactive's, not Konta's: its olive, dark green and near-black come from
   pro-active.md/moldtax8.0/, so it reads as their conference on our page. On the dark theme it
   turns to their dark green, with the olive kept for the date.

   The logo tiles' colours, corners and type come from konta-design, branch brand-2026-10-23
   (0.2.0, not yet released). Only the roles this page needs are declared, under names site.css
   does not use, so nothing else on the site moves. When the site adopts konta-tokens.css these
   declarations go and the rules below keep working. The page's own layers (Nisip, Hârtie, no
   rules between bands) are site.css's, as on every page. */

:root {
  --mt-field: #d0d183; /* MoldTax olive */
  --mt-ink: #060607;
  --mt-pill: #4b5b2e; /* MoldTax dark green */
  --mt-on-pill: #e1e5d3;
  --tile: #ece8e1; /* Nisip, on the white band */
  --tile-open: #f7f5f1; /* Hârtie */
  --tile-line: #cfc7ba; /* Nisip 300 */
  --tile-text: #5e4874; /* Prună 600 */
  --tile-text-hover: #3d2c4b; /* Prună 800 */
  --radius-l: 10px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --mt-field: #4b5b2e;
    --mt-ink: #e1e5d3;
    --mt-pill: #d0d183;
    --mt-on-pill: #060607;
    --tile: #3c3b44; /* Grafit 600, on the Grafit 700 band */
    --tile-open: #2b2b32; /* Grafit 700 */
    --tile-line: #4a4952; /* between Grafit 600 and 500 */
    --tile-text: #cfc7ba; /* Nisip 300 */
    --tile-text-hover: #ece8e1; /* Nisip */
  }
}

:root[data-theme='dark'] {
  --mt-field: #4b5b2e;
  --mt-ink: #e1e5d3;
  --mt-pill: #d0d183;
  --mt-on-pill: #060607;
  --tile: #3c3b44;
  --tile-open: #2b2b32;
  --tile-line: #4a4952;
  --tile-text: #cfc7ba;
  --tile-text-hover: #ece8e1;
}

/* ---------------------------------------------------------------------------
   The MoldTax banner: text on the left, the hall on the right, the whole of it one link.
   --------------------------------------------------------------------------- */

.conf {
  padding-bottom: clamp(44px, 6vw, 76px);
}

.conf__banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--radius-l);
  background: var(--mt-field);
  color: var(--mt-ink);
}

.conf__date {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--mt-pill);
  color: var(--mt-on-pill);
  font: 600 0.875rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.conf h2 {
  margin-top: 18px;
  color: var(--mt-ink);
  font-family: var(--sans);
  font-weight: 600;
}

.conf__kicker {
  display: block;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem);
  line-height: 1.2;
}

.conf__name {
  display: block;
  margin-top: 4px;
  font-size: clamp(3rem, 1.6rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.conf__sub {
  margin-top: 14px;
  font-size: clamp(1.125rem, 0.85rem + 1.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.conf__link {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 56px);
  color: var(--mt-ink);
  font-size: 1.1875rem;
  font-weight: 600;
  /* No underline: the whole card is the link (the ::after below), so the words need no mark of
     their own (the owner, 2026-11-10). */
  text-decoration: none;
}

/* The link covers the banner, so the picture opens the programme too. */
.conf__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
}

.conf__link:hover {
  color: var(--mt-ink);
}

.conf__link:focus-visible {
  outline: none;
}

.conf__link:focus-visible::after {
  outline: 2px solid var(--mt-ink);
  outline-offset: 3px;
}

.conf__art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(6, 6, 7, 0.18));
}

@media (max-width: 760px) {
  .conf__banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .conf__art {
    order: -1;
  }
}

/* ---------------------------------------------------------------------------
   Partner logos: the tiles centred in the row, the last one leading to the contact page.
   --------------------------------------------------------------------------- */

.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.logos__item {
  flex: 0 1 240px;
  display: flex;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  background: var(--tile);
}

.logos__item a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border-radius: inherit;
}

.logos__item img {
  display: block;
  min-width: 0;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* A logo with dark lettering has a light copy for the dark theme. */
.logos__item .logos__dark {
  display: none;
}

:root[data-theme='dark'] .logos__item .logos__light {
  display: none;
}

:root[data-theme='dark'] .logos__item .logos__dark {
  display: block;
}

.logos__item--open {
  background: var(--tile-open);
  border: 1px dashed var(--tile-line);
}

.logos__item--you a {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--tile-text);
  text-decoration: none;
}

.logos__item--you a:hover {
  color: var(--tile-text-hover);
  text-decoration: none;
}

@media (max-width: 520px) {
  .logos {
    gap: 10px;
  }

  .logos__item {
    flex-basis: calc(50% - 5px);
  }

  .logos__item a {
    padding: 14px;
  }
}
