/* The developers page's own rules.

   site.css is the approved preview's stylesheet extracted verbatim, and it
   was extracted BEFORE this revision - it carries `.devstrip` (the home
   partnership strip) but none of `.devgrid`, `.devcell`, `.devlogo`,
   `.devname`, `.emptynote` or `.ctaband`, which the `developers` view
   introduced. The rules below were read back out of the installed
   `_reference/site-preview.html` through its own CSSOM, not retyped; they
   are its declarations, with two deliberate departures named at the end.

   Scoped to this page by being loaded only by pages/developers.html, so
   nothing here can repaint a page that was already compared to the
   reference. */

.devgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(184px, 100%), 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.devcell {
  height: 104px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-right: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
}
.devcell .devlogo { max-width: 124px; max-height: 38px; }

/* The degrade (REBUILD-PROMPT 5.2): where no logo file exists the name
   typesets in its place, so the wall is never broken - just plainer. Both
   halves are the preview's own rules; neither cell is ever empty. */
.devname {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: .1em;
  white-space: nowrap;
  text-align: center;
}
.devlogo {
  max-width: 118px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: opacity .2s, filter .2s;
}
/* DARK THEME: the name, never an inverted mark (KIREB.md decision 40). The
   preview inverted every mark here; a developer's mark is not ours to
   recolour, so in dark the cell's own name draws instead. The light-theme
   name twin is hidden, so each cell has exactly one accessible name. */
.devname-dark { display: none; }
:root[data-skin="dark"] .devcell .devlogo { display: none; }
:root[data-skin="dark"] .devcell .devname-dark { display: block; }

.emptynote {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 30px 0;
  margin: 0;
}

.ctaband {
  background: var(--hero-bg);
  border: 1px solid var(--line);
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.ctaband h2 { margin: 0 0 8px; font-size: 27px; }
.ctaband p {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}
.cb-r { display: flex; gap: 11px; flex-wrap: wrap; }
@media (max-width: 640px) { .ctaband { padding: 34px 26px; } }

/* The two departures.

   1. The preview's dark rule is `[data-skin="dark"] .devlogo`; ours is
      `:root[data-skin="dark"]`, because that is the selector this build's
      tokens.css and every other stylesheet here use, and the attribute only
      ever lands on the root element.
   2. The preview's `.devstrip:hover .devlogo` pair is NOT copied. `.devstrip`
      is the home page's scrolling strip and belongs to home.css; a hover
      rule for a component this page does not draw would be dead weight here
      and a second home for a rule that already has one. */

/* THE DIRECTORY (owner, 2026-09-16): all developers, each with a count. The
   preview's cell carried one short name; 443 real names include
   "Vincitore Real Estate Development", so a cell's name wraps inside it
   instead of running past its border. */
.devgrid .devname {
  white-space: normal;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}
/* The cell grows to hold its name and count rather than clipping them: at
   104px fixed, six real names ("ARABIAN HILLS INVESTMENT AND REAL ESTATE
   DEVELOPMENT") ran past the cell's border at desktop widths (measured on the
   served page, 2026-09-16). A row takes the height of its tallest cell. */
.devgrid .devcell {
  height: auto;
  min-height: 104px;
  padding-block: 14px;
}
/* Phones: two columns, not one. A single column of every developer made the
   page 53,000px tall at 400px wide. */
@media (max-width: 560px) {
  .devgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devgrid .devcell { padding-inline: 10px; }
  .devgrid .devname { font-size: 14px; letter-spacing: .05em; }
}
.devcount {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
/* Where they have projects: the communities a developer's live projects sit
   in, computed beside the count and drawn under the name; absent when there
   are none - never a placeholder. */
.devareas {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.35;
}
a.devlink { color: inherit; text-decoration: none; }
a.devlink:hover .devcount,
a.devlink:focus-visible .devcount { color: var(--gold, inherit); }
