/* The estate footer, the "city" version (r5343, Tab Nov 30 2026; board 5, r5325). Styles _shared/views/estate-footer.blade.php.
   Copy to each app as public/css/estate-footer.css and link it with a fresh ?v= (static CSS is cached immutable for 30 days).

   Isolation: every rule sits under .ef and every custom property is named --ef-*. Nothing is written to :root, so a host
   that loads the estate kit keeps its own tokens. The file loads no fonts and makes no network request: the site name
   uses the host's --k-font-display when the host defines it (an undefined var() falls back to the inherited face), and
   every other line uses the host's own face.

   Skins (data-skin on the footer): daily (the Ummah One kit slot), serve (the UmmahCauses kit slot), army (UmmahArmy's
   live purple), jobs (UmmahJobs' live blue). Values are the board's, read from the kit and from each site's live CSS.

   Theme, in order of strength:
     1. data-theme="light" or "dark" on the footer itself.
     2. With data-theme="auto": a light or dark mark on an ancestor (data-theme, data-umg-theme, html.dark, html.day-mode).
     3. With data-theme="auto" and no mark: the visitor's system setting.
   Sizes are px, not rem, so a host's root font size cannot shrink the 12px floor. */

/* ---------- Skin values: light (l) and dark (d) per role ---------- */
.ef {
  --ef-l-ground: #F0EDE3; --ef-l-text: #0F1F17; --ef-l-muted: #4A5C52; --ef-l-rule: #DEDCD5; --ef-l-rule-2: #6F7B74; --ef-l-accent: #0A7B3D; --ef-l-focus: #0A7B3D;
  --ef-d-ground: #101C15; --ef-d-text: #F8F5EC; --ef-d-muted: #B9C6BD; --ef-d-rule: #2C3A32; --ef-d-rule-2: #7E9487; --ef-d-accent: #34D399; --ef-d-focus: #34D399;
}
.ef[data-skin="serve"] {
  --ef-l-ground: #F4F1E7; --ef-l-text: #0F1F17; --ef-l-muted: #3F4F46; --ef-l-rule: #CFC8B4; --ef-l-rule-2: #7C8A80; --ef-l-accent: #0F6E4F; --ef-l-focus: #0F6E4F;
  --ef-d-ground: #101C17; --ef-d-text: #F8F5EC; --ef-d-muted: #B9C6BD; --ef-d-rule: #2A3A32; --ef-d-rule-2: #7E9487; --ef-d-accent: #4FD1A5; --ef-d-focus: #4FD1A5;
}
.ef[data-skin="army"] {
  --ef-l-ground: #F0F1F9; --ef-l-text: #1B1E2B; --ef-l-muted: #54586A; --ef-l-rule: #DCDEEC; --ef-l-rule-2: #6B6F80; --ef-l-accent: #8B2FC9; --ef-l-focus: #1B1E2B;
  --ef-d-ground: #171A26; --ef-d-text: #F8FAFC; --ef-d-muted: #A8B6C8; --ef-d-rule: #2A2E3F; --ef-d-rule-2: #7A87A3; --ef-d-accent: #C9A3F0; --ef-d-focus: #F2F3F8;
}
.ef[data-skin="jobs"] {
  --ef-l-ground: #F0F2F5; --ef-l-text: #111827; --ef-l-muted: #3F4857; --ef-l-rule: #D3D8E0; --ef-l-rule-2: #5D697A; --ef-l-accent: #033BB0; --ef-l-focus: #033BB0;
  --ef-d-ground: #12151B; --ef-d-text: #F2F4F8; --ef-d-muted: #AAB3C2; --ef-d-rule: #272D38; --ef-d-rule-2: #7A8698; --ef-d-accent: #8AB4FF; --ef-d-focus: #8AB4FF;
}

/* ---------- Theme switch: the roles the rules below read ---------- */
.ef {
  --ef-ground: var(--ef-l-ground); --ef-text: var(--ef-l-text); --ef-muted: var(--ef-l-muted); --ef-rule: var(--ef-l-rule);
  --ef-rule-2: var(--ef-l-rule-2); --ef-accent: var(--ef-l-accent); --ef-focus: var(--ef-l-focus);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  .ef[data-theme="auto"]:not(:where([data-theme="light"], [data-umg-theme="light"], html.light, html.day-mode) .ef) {
    --ef-ground: var(--ef-d-ground); --ef-text: var(--ef-d-text); --ef-muted: var(--ef-d-muted); --ef-rule: var(--ef-d-rule);
    --ef-rule-2: var(--ef-d-rule-2); --ef-accent: var(--ef-d-accent); --ef-focus: var(--ef-d-focus);
    color-scheme: dark;
  }
}
.ef[data-theme="dark"],
:where([data-theme="dark"], [data-umg-theme="dark"], html.dark) .ef[data-theme="auto"] {
  --ef-ground: var(--ef-d-ground); --ef-text: var(--ef-d-text); --ef-muted: var(--ef-d-muted); --ef-rule: var(--ef-d-rule);
  --ef-rule-2: var(--ef-d-rule-2); --ef-accent: var(--ef-d-accent); --ef-focus: var(--ef-d-focus);
  color-scheme: dark;
}

/* ---------- Base ---------- */
.ef {
  --ef-gut: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: block; margin: 0; padding: 0; clear: both;
  background: var(--ef-ground); color: var(--ef-text); border-top: 1px solid var(--ef-rule);
  font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: normal; word-spacing: 0.05em;  /* narrow host faces close their word spaces at 12 to 14px */
  text-align: start; text-transform: none; -webkit-text-size-adjust: 100%;
}
/* Some hosts pin every <footer> with !important (ummah.city's legacy band is one). The footer's own ground and ink win. */
footer.ef { background-color: var(--ef-ground) !important; color: var(--ef-text) !important; }
footer.ef::before, footer.ef::after { content: none !important; display: none !important; }
.ef, .ef *, .ef *::before, .ef *::after { box-sizing: border-box; }
.ef h2, .ef h3, .ef p, .ef ul, .ef li { margin: 0; padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.ef ul { list-style: none; }
.ef li::before, .ef li::marker { content: none; }
.ef .ef-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ef .ef-in { max-width: 1248px; margin: 0 auto; padding: 0 var(--ef-gut); }  /* 1216px of content: the column the host pages use at 1440 (seat EF-F) */
.ef .ef-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "site" "slot" "estate" "ask"; row-gap: 16px; padding: 24px 0 16px; }
.ef .ef-site { grid-area: site; min-width: 0; }
.ef .ef-slot { grid-area: slot; min-width: 0; }
.ef .ef-estate { grid-area: estate; min-width: 0; }
.ef .ef-ask { grid-area: ask; min-width: 0; }

/* Links: one treatment. The underline comes from the font and shows on hover; colour is never the only hover cue. */
.ef a { color: inherit; background: none; box-shadow: none; }
.ef .ef-link {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; max-width: 100%; padding: 0; margin: 0;
  color: var(--ef-text); font-weight: 400; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: from-font; text-underline-offset: 0.22em; overflow-wrap: break-word;
}
.ef .ef-link:hover { color: var(--ef-accent); text-decoration-color: currentColor; }
.ef a:focus-visible { outline: 3px solid var(--ef-focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .ef .ef-link, .ef .ef-cell .ef-task { transition: text-decoration-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), color 160ms cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* Band 1: the site signs its name and its address */
.ef .ef-name { font-family: var(--k-font-display); font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; color: var(--ef-text); }
.ef .ef-line { margin-top: 4px; max-width: 32em; color: var(--ef-muted); text-wrap: pretty; }
.ef .ef-contact { margin-top: 4px; }
.ef .ef-contact .ef-link { text-decoration-color: var(--ef-rule-2); }
.ef .ef-contact .ef-link:hover { text-decoration-color: currentColor; }

/* Band 2: the site's own pages */
.ef .ef-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.ef .ef-groups.ef-one { grid-template-columns: minmax(0, 1fr); }
/* One group: its links run in two columns on a phone, so the slot is no taller than a two-group slot */
.ef .ef-groups.ef-one ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ef .ef-groups.ef-one .ef-gt { grid-column: 1 / -1; }
.ef .ef-gt { font-weight: 600; color: var(--ef-text); overflow-wrap: break-word; }
.ef .ef-group .ef-link { color: var(--ef-muted); padding: 4px 0; }
.ef .ef-group .ef-link:hover { color: var(--ef-accent); }

/* Band 3: the estate index, the signature. A ruled index of tasks, each naming its tool. */
.ef .ef-estate-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.ef .ef-eh { font-weight: 600; color: var(--ef-text); }
.ef .ef-all { text-decoration-color: var(--ef-rule-2); margin: -11px 0; }  /* a 44px target on a 22px row, so the head lines up with the slot headings */
.ef .ef-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 10px; }
.ef .ef-cell { min-width: 0; border-top: 1px solid var(--ef-rule); margin-top: 6px; }  /* air above each rule, so a rule belongs to the cell below it (seat EF-O) */
.ef .ef-cell > a, .ef .ef-cell > span {
  display: flex; flex-direction: column; justify-content: flex-start; min-height: 48px;
  padding: 3px 0 8px; color: var(--ef-text); text-decoration: none;
}
.ef .ef-task { font-weight: 500; overflow-wrap: break-word; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: from-font; text-underline-offset: 0.22em; }
.ef .ef-prod { font-size: 12px; line-height: 1.5; letter-spacing: normal; color: var(--ef-muted); overflow-wrap: break-word; }
.ef .ef-cell a:hover .ef-task { color: var(--ef-accent); text-decoration-color: currentColor; }
/* Your place: the site's own colour on its rule, and "You are here". Each rule sits 3px above its own text and 8px below the
   text of the row above, so the rule reads as the top of its own cell. */
.ef .ef-cell[aria-current] { border-top: 2px solid var(--ef-accent); }
.ef .ef-cell[aria-current] > span { padding-top: 2px; }
.ef .ef-cell[aria-current] .ef-prod { color: var(--ef-accent); font-weight: 600; }
.ef .ef-estate + .ef-ask { margin-top: -8px; }

/* Band 4: the door and the organisations line */
.ef .ef-ask p { color: var(--ef-muted); }
.ef .ef-ask p { line-height: 44px; }
.ef .ef-ask .ef-link { display: inline-block; min-height: 44px; line-height: 44px; vertical-align: baseline; color: var(--ef-text); font-weight: 500; text-decoration-color: var(--ef-rule-2); }
.ef .ef-ask .ef-link:hover { color: var(--ef-accent); text-decoration-color: currentColor; }
.ef .ef-door .ef-link { min-width: 0; }  /* the full stop sits inside each link, so it can never stand alone on a line */

/* Band 5: the parent line and the legal row */
.ef .ef-legal { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--ef-rule); padding: 8px 0 12px; }
.ef .ef-ll { display: flex; flex-wrap: wrap; column-gap: 24px; }
.ef .ef-ll .ef-link { color: var(--ef-muted); }
.ef .ef-ll .ef-link:hover { color: var(--ef-accent); }
.ef .ef-parent { font-size: 12px; line-height: 1.5; letter-spacing: 0.01em; word-spacing: 0.08em; color: var(--ef-muted); font-variant-numeric: tabular-nums; }

/* Task mode: the legal row and the parent line only */
.ef[data-mode="task"] .ef-legal { border-top: 0; padding: 12px 0 16px; }

/* Arabic in a caller's label: the Arabic face, 16px, no tracking (kit A5) */
.ef [lang="ar"] { font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 16px; line-height: 1.8; letter-spacing: 0; }

/* Under 380px the sign-in clause takes its own line, so a font swap cannot re-wrap it */
@media (max-width: 379px) { .ef .ef-door .ef-nw { display: block; } }
/* Under 300px (200% zoom on a 360 phone): one column, so no word breaks mid-word */
@media (max-width: 299px) { .ef .ef-groups, .ef .ef-cells { grid-template-columns: minmax(0, 1fr); } }

/* 768: site band and door left, site pages right, the estate index full width, legal on one row */
@media (min-width: 768px) {
  .ef .ef-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "site slot" "ask slot" "estate estate"; column-gap: 32px; row-gap: 16px; padding: 48px 0 24px; align-items: start; }
  .ef .ef-grid.ef-noslot { grid-template-rows: auto auto; grid-template-areas: "site ask" "estate estate"; }
  /* auto tracks: each column takes its longest label, then the free space is shared, so no label wraps */
  .ef .ef-cells { grid-template-columns: repeat(3, auto); column-gap: 24px; }
  .ef .ef-estate { padding-top: 12px; }
  .ef .ef-estate + .ef-ask { margin-top: 0; }
  .ef .ef-groups.ef-one ul { display: block; }
  .ef .ef-nw { white-space: nowrap; }
  .ef .ef-legal { flex-direction: row; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; column-gap: 32px; }
}
/* 1100 and up: one 72rem column. Site 4, site pages 3, estate 5. The index is 3 by 3 on one row pitch. */
@media (min-width: 1100px) {
  /* rows: auto then 1fr, so the tall slot and index columns push their extra height below the door, never between it and the address */
  .ef .ef-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "site slot estate" "ask slot estate"; column-gap: 32px; row-gap: 12px; padding: 48px 0 32px; }
  .ef .ef-grid.ef-noslot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "site estate" "ask estate"; }
  .ef .ef-estate { padding-top: 0; }
  .ef .ef-ask { align-self: start; }
}

@media (forced-colors: active) { .ef, .ef .ef-cell, .ef .ef-legal { border-color: CanvasText; } .ef .ef-cell[aria-current] { border-top-color: Highlight; } }
@media print { .ef { background: none; } }
