/* Eskan: brand roles and surfaces are defined in sdeira-tokens.css. This
   sheet follows the Khadamat brand-site layer as its model: one recoloured
   45-degree mark family (eskan-lines.svg, derived from the same p.43 board
   both guides cite), one mark per photograph, cards that always step off
   their section ground, and no hero copy panel on imagery (Website Review
   V2, TEXT HIGHLIGHT: no boxes, borders or backgrounds behind text on
   imagery). */

/* ---- Focus rings, in the brand's own hues -------------------------------- */
html[data-brand="eskan"] body :focus-visible {
  outline-color: var(--eskan-focus-on-light);
}
html[data-brand="eskan"] body :is(footer, .cta-band) :focus-visible {
  outline-color: var(--eskan-focus-on-dark);
}

/* Keep the shared footer headings in Eskan's dark-surface accent. */
html[data-brand="eskan"] .foot-col :is(h3, h4),
html[data-brand="eskan"] .foot-legal-heading {
  color: var(--accent-on-dark);
}

/* ---- The complete supplied lockup in both nav states ---------------------
   The full bilingual lockup (review: LOGO USAGE, the approved full-colour
   logo with both language versions) at rest and scrolled; its white pair
   carries the footer. */
#hd,
#hd.scrolled {
  --logo-h: var(--eskan-logo-height);
}
#navLogo,
.logo img,
.menu-logo img {
  height: var(--eskan-logo-height);
  width: auto;
  object-fit: contain;
}
.foot-brand .logo {
  inline-size: var(--eskan-footer-logo-width);
  aspect-ratio: 4167 / 1880;
}
.foot-brand .logo img {
  height: 100%;
  width: 100%;
}
/* The group's full-colour lockup in the byline: sized to the guide's small-
   application minimum and kept on its own line under the brand line. */
.foot-by-logo {
  display: inline-block;
  inline-size: 120px;
}
.foot-by-logo img {
  inline-size: 100%;
  height: auto;
}
@media (max-width: 980px) {
  #hd,
  #hd.scrolled {
    --logo-h: var(--eskan-logo-height-mobile);
  }
  #navLogo,
  .menu-logo img {
    height: var(--eskan-logo-height-mobile);
  }
}

/* ---- The recoloured mark on photographs -----------------------------------
   Khadamat's technique, one mark per photograph: the full-strength line
   board anchored inside the figure's corner, sized by the shared
   --photo-mark-width token every other p.43 mark on the site reads. The
   shared sheet's own ::after mark is suppressed so the two never stack. */
.split-media::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  inline-size: var(--photo-mark-width);
  aspect-ratio: var(--photo-mark-p43-ratio);
  background: url("../images/patterns/eskan-lines.svg?v=38120a19dcf1683e") no-repeat right bottom / 100% 100%;
  opacity: 1;
  pointer-events: none;
}
.split-media::after {
  display: none;
}

@media (max-width: 920px) {
  .split-media::before {
    display: none;
  }
}

/* A supplied logo carries no decoration, either mark - a logo is not a crop
   of the master (the same reasoning the shared .split--logo suppression
   records; this brand's own ::before above is unscoped and would otherwise
   paint onto it). */
.split--logo .split-media::before,
.split--logo-wide .split-media::before {
  display: none;
}

/* ---- Icon-grid cards: the corner mark instead of the skewed band ---------
   Khadamat's named card variant: the shared identity band is replaced by
   the same small corner pattern the photographs carry, scaled to the card,
   and it grows off the anchored corner on hover like every other card mark
   on the site. */
/* The icon cards and the column cards draw their corner mark through the
   shared card-mark tokens (the Eskan block of sdeira-tokens.css): the icon
   cards on their own box, the linked and plain column cards on the copy panel
   through the shared wipe card. Nothing here restates a box, a pivot, a turn
   or an Arabic branch for a mark. */
html[data-brand="eskan"] .news-list--cols .news-item {
  position: relative;
  overflow: hidden;
}
/* The group's photo-and-card rows (needs-route) step the same way as every
   other Eskan card: Light Gray copy card on a White section. */
html[data-brand="eskan"] .pad:not(.pad--sunken, .pad--field) .needs-route-copy {
  background: var(--surface-sunken);
}
/* The body lets the card surface, and so the mark, show through. */
html[data-brand="eskan"] .news-list--cols .news-item-body {
  background: transparent;
}

/* ---- Cards never render in their section's colour -------------------------
   The review's card/ground defect. Every card-bearing section declares a
   Light Gray sunken ground (the guide's dominant 50% surface) and its cards
   carry a White surface, so a card is always a distinct step from its
   ground. Khadamat's card families follow the same pair. */
.pad--sunken :is(.news-list--cols .news-item, .icon-item),
.pad--field :is(.news-list--cols .news-item, .icon-item),
.news-list--cols .news-item {
  background: var(--brand-white);
}
/* The inverse step: on a White section the same cards take Light Gray, so a
   card never matches its ground whichever step alternate_grounds() gives the
   section. */
html[data-brand="eskan"] .pad:not(.pad--sunken, .pad--field, .photo-band) :is(.news-list--cols .news-item, .icon-item) {
  background: var(--surface-sunken);
}

/* Eskan's finite card sets use two columns, including the service rows. */
html[data-brand="eskan"] :is(.news-list--cols, .row-list) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-brand="eskan"] .pad--sunken .row-item {
  background: var(--surface-raised);
}

@media (max-width: 640px) {
  html[data-brand="eskan"] :is(.news-list--cols, .row-list) {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-brand="eskan"] .news-item .action-link {
  color: var(--accent-strong);
}

/* The Communities and Brands cards on the homepage: THREE cards, the same
   count and the same geometry as the group homepage's Selected Communities
   (owner, 12 Oct 2026). One card per brand (Aryam, 68 Living, Square); the
   Aryam communities are listed on the Aryam page, so a new community never
   adds a card here. The first card is the feature: a full-row photograph of the
   group's 1216 x 650 proportion with the copy on a glass panel over it, and the
   other two are 3:2 photograph cards in a pair. */
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child {
  grid-column: 1 / -1;
  position: relative;
  min-block-size: clamp(460px, 52vw, 650px);
  background: var(--brand-black);
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .news-item-media {
  position: absolute;
  inset: 0;
  block-size: auto;
  aspect-ratio: auto;
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .news-item-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 54%;
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .news-item-body {
  position: absolute;
  z-index: 2;
  inset: auto auto clamp(24px, 4vw, 56px) clamp(20px, 6vw, 88px);
  inline-size: min(672px, calc(100% - 2 * clamp(20px, 6vw, 88px)));
  min-block-size: 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r);
  background: rgba(var(--image-overlay-rgb), .58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[dir="rtl"][data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .news-item-body {
  inset: auto clamp(20px, 6vw, 88px) clamp(24px, 4vw, 56px) auto;
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child :is(h3, h3 a, p, .project-meta, .action-link) {
  color: var(--brand-white);
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .project-meta {
  border-block-start: 1px solid rgba(255, 255, 255, .46);
}
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .card-chevron {
  display: none;
}
/* No mark on the feature: the photograph and the name carry it. */
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .job-card-logo {
  display: none;
}
/* The two photograph cards show the community's mark and no title above the
   text (the mark is the name); the title stays for assistive technology. */
html[data-brand="eskan"] #brands .news-list--cols > .news-item:not(:first-child) h3 {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  min-block-size: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The row action arrow inherits --accent-text (White, the solid-fill ink)
   and vanishes on a Light Gray row - the same defect Khadamat corrected on
   its own rows. --accent-strong is the small-mark token for light ground. */
i.row-item-action {
  color: var(--accent-strong);
}

/* ---- Hero copy on imagery: no boxes, no borders, no backgrounds ----------
   Website Review V2, TEXT HIGHLIGHT. The shared photo hero draws its copy
   on a glass panel; on this brand the copy sits directly on the photograph
   over the full scrim, like the approved hero treatment, and the shared
   default uncoloured mark pair is suppressed here: this brand's mark on a
   photo is the split-media figure mark above, one instance, never an
   uncoloured second board. ::after is that full scrim and stays: removing it
   too left white hero copy on the bare photograph (site owner, 24 Sep 2026,
   the News hero). */
.subpage-hero--photo .subpage-hero-glass {
  display: none;
}
.subpage-hero--photo > .wrap {
  position: relative;
  z-index: 1;
}

/* ---- Closing band: the shared Sdeira band, unchanged ---------------------
   Site owner, 24 Sep 2026: the Eskan closing band read as a different site
   (a dark highlight box behind the heading). It now takes the group's own
   cta-band panel as every Sdeira page draws it; the only Eskan difference is
   the recoloured corner marks on .cta-glass, repainted further down. This
   supersedes the Website Review V2 text-highlight treatment on this band. */

/* ---- The kicker mark, in brand colours ----------------------------------
   The photo hero's corner pair is drawn by the shared hero mark rule from the
   Eskan hero mark tokens (sdeira-tokens.css); only the kicker mark and the
   assistant avatar are repainted here. */
main section:not(.hero) .kicker::before {
  background: url("../images/companies/eskan-emblem.svg?v=64c0b45d52d7ee49") center / contain no-repeat;
}
/* The shared avatar paints the group's full-colour emblem as a background;
   a mask only reshaped it, so the chat still showed Sdeira's orange. Paint
   Eskan's own emblem instead. */
html[data-brand="eskan"] .ai-message-avatar::before {
  background: url("../images/companies/eskan-emblem.svg?v=64c0b45d52d7ee49") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}
/* Footer contact icons in Eskan's dark-surface accent, not the group's. */
html[data-brand="eskan"] .foot-contact > i.ph {
  color: var(--accent-on-dark);
}
html[data-brand="eskan"] .ai-chat-toggle .ai-star-field::before {
  background-image: url("../images/companies/eskan-emblem.svg?v=64c0b45d52d7ee49");
}

/* ---- Forms: the panel is always a step off its section --------------------
   Site owner, 24 Sep 2026: a form must read apart from its background. The
   shared sheet drops the panel's surface on a White section (sdeira-forms.css,
   `.pad:not(.pad--sunken) .form-block--panel`), which left Eskan's forms as
   loose fields on the page, since alternate_grounds() puts most of them on
   White. Eskan's inverse-step rule for cards applies to the panel too: on a
   White section the panel takes Light Gray and its controls White, the mirror
   of the group's own White panel with Light Gray controls on a Light Gray
   field. Same padding and radius as the shared panel. */
html[data-brand="eskan"] .pad:not(.pad--sunken) .form-block--panel {
  padding: var(--sec-head-gap);
  border-radius: var(--r);
  background: var(--surface-sunken);
}
html[data-brand="eskan"] .pad:not(.pad--sunken) .form-block--panel .field :is(input:not([type="checkbox"], [type="file"]), select, textarea),
html[data-brand="eskan"] .pad:not(.pad--sunken) .form-block--panel .field :is(input:not([type="checkbox"], [type="file"]), select, textarea):hover,
html[data-brand="eskan"] .pad:not(.pad--sunken) .form-block--panel .field :is(input, select, textarea):focus-visible,
html[data-brand="eskan"] .pad:not(.pad--sunken) .form-block--panel :is(.select-toggle, .phone-country-toggle, .field .file-drop, .field--consent input[type="checkbox"]:not(:checked)) {
  background-color: var(--surface-raised);
}

/* ---- Logo-wall tiles: quiet white surfaces for the supplied brand marks -- */
.logo-tile {
  background: var(--brand-white);
}

/* ---- Content about the group wears the group's artwork -------------------
   A record with brand_scope = "sdeira" (Part of Sdeira Group) takes the
   group's tokens through [data-brand-scope="sdeira"] in sdeira-tokens.css;
   these put the group's own line board and mark back on the hosts this sheet
   repaints in Eskan's. */
[data-brand-scope="sdeira"] .split-media::before {
  background-image: url("../images/patterns/lines.svg?v=d874099296964b63");
}
[data-brand-scope="sdeira"] section:not(.hero) .kicker::before {
  background-image: url("../images/brand/sdeira-mark.svg?v=12a5a1af82a32441");
}

/* The home "About Eskan" figure. Site owner, 24 Sep 2026: at the shared
   4 / 3 it read too thin beside its heading, so this one figure takes the
   system's square ratio. Scoped by section id; every other split keeps 4 / 3. */
#communities-intro .split-media { aspect-ratio: var(--media-square); }

/* Route card titles read at the card family's own weight on this brand (the
   icon cards' 700), so a model's name stands out above its one line. Site
   owner, 24 Sep 2026. The group site keeps the shared 400. */
html[data-brand="eskan"] .business-needs-routes .needs-route-copy > :is(strong, h3) {
  font-weight: 700;
}

/* ---- Milestone rows with full sentences ------------------------------------
   The group's Six Milestones rows carry a two or three word title under a
   large year. Eskan's milestones are full approved sentences, which at the
   title size filled the row and outweighed the year. The sentence reads at
   body size, regular weight, the year stays the large figure. */
html[data-brand="eskan"] .step-list-photo .step-chapter .step h4 {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--leading-body);
  max-inline-size: 34ch;
}

/* Milestones stacked: one sentence per row (owner, 12 Oct 2026). The two
   dated sentences sat side by side in narrow columns, and the chapter's slanted
   divider ran across the text. Each step is now a row, the year on the start
   side and the sentence beside it with the whole width to run in, and the
   divider is not drawn. */
html[data-brand="eskan"] .step-list-photo .step-chapter-band {
  display: none;
}
html[data-brand="eskan"] .step-list-photo .step-chapter-items {
  grid-template-columns: minmax(0, 1fr);
}
html[data-brand="eskan"] .step-list-photo .step-list--chapters .step {
  display: grid;
  grid-template-columns: minmax(88px, 18%) minmax(0, 1fr);
  align-items: baseline;
  column-gap: clamp(16px, 2vw, 28px);
  padding-block: clamp(16px, 1.8vw, 24px);
}
html[data-brand="eskan"] .step-list-photo .step-list--chapters .step + .step {
  border-block-start: 1px solid var(--line-on-dark);
}
html[data-brand="eskan"] .step-list-photo .step-list--chapters .step h4 {
  max-inline-size: none;
}
@media (max-width: 640px) {
  html[data-brand="eskan"] .step-list-photo .step-list--chapters .step {
    grid-template-columns: minmax(0, 1fr);
    text-align: start;
  }
}

/* The feature card has no hover state, as on the group homepage (owner, 12 Oct
   2026): its copy panel is a still glass panel, so the wipe that the other
   cards use is not drawn on it. */
html[data-brand="eskan"] #brands .news-list--cols > .news-item:first-child .project-card-copy::after {
  display: none;
}

/* The year sits on the same horizontal axis as its sentence, whether the
   sentence runs one line or two (owner, 12 Oct 2026). */
html[data-brand="eskan"] .step-list-photo .step-list--chapters .step {
  align-items: center;
}
