/* ============================================================
   Digital Experts - 2026 art direction components
   Loaded after de-site.css and de-brand-2026.css.

   1. .de-tile  - the editorial treatment of the industry cards,
      taken from the designer's 2026 concepts: a colour field over
      the photograph instead of a flat near-black scrim, the thin
      gold double rule inset from the edge, the eyebrow lifted to
      the top, and the display-serif headline sitting on the base
      line. Same photographs, same links, new composition.

   2. .de-ui    - a recreation of the platform's own screens in
      markup rather than screenshots, so the panels stay sharp at
      any size, reflow on a phone, and carry no real customer,
      staff email or live figure. Four bodies are provided:
        .de-ui-board  the glanceable morning view (home page)
        .de-ui-body   the intelligence grid
        .de-ui-plain  a tabbed list or table
      plus the shared top bar, breadth strip and footer.

   Every .de-ui panel must carry the .de-ui-foot "illustrative"
   line. These are recreations with invented sample data, and a
   visitor should never be able to mistake one for a live account.

   Implementation note for the tiles: the frame and the colour
   wash are real child elements, not pseudo-elements. .de-solution-
   card already spends ::before on its own scrim, and rather than
   depend on what that base rule happens to do, .de-tile switches
   it off and paints its own layers. That keeps this file
   independent of the 44KB de-site.css underneath it.
   ============================================================ */

/* ============================================================
   1. Editorial industry tiles
   ============================================================ */

.de-solution-card.de-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--dur-fast, 160ms) ease;
}

/* Neutralise the base scrim; .de-tile-wash replaces it. */
.de-solution-card.de-tile::before { display: none !important; }

/* The colour field. Two stops so the photograph still reads at
   the top of the card and the type stays legible at the foot. */
.de-tile .de-tile-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(176deg, rgba(14,47,35,0.50) 0%, rgba(14,47,35,0.74) 48%, rgba(14,47,35,0.95) 100%);
}

.de-tile-navy .de-tile-wash {
  background: linear-gradient(176deg, rgba(0,22,64,0.52) 0%, rgba(0,22,64,0.76) 48%, rgba(0,22,64,0.95) 100%);
}

.de-tile-burgundy .de-tile-wash {
  background: linear-gradient(176deg, rgba(63,26,36,0.52) 0%, rgba(63,26,36,0.76) 48%, rgba(63,26,36,0.95) 100%);
}

.de-tile-brown .de-tile-wash {
  background: linear-gradient(176deg, rgba(48,35,23,0.52) 0%, rgba(48,35,23,0.76) 48%, rgba(48,35,23,0.95) 100%);
}

/* The certificate frame. Border draws the inner rule, outline
   with an offset draws the outer one, same device as .de-framed
   so the tiles read as part of the same system. */
.de-tile .de-tile-frame {
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(238, 212, 132, 0.44);
  outline: 1px solid rgba(238, 212, 132, 0.18);
  outline-offset: 4px;
  border-radius: 2px;
  transition: border-color var(--dur-fast, 160ms) ease;
}

.de-solution-card.de-tile .de-solution-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 32px;
  background: none;
}

.de-solution-card.de-tile .de-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-gold-light);
  margin: 0;
  max-width: 22ch;
}

.de-solution-card.de-tile h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.18;
  font-style: normal;
  color: var(--de-cream);
  margin: 0 0 18px;
  max-width: 17ch;
  text-wrap: balance;
}

.de-solution-card.de-tile h3 em { font-style: italic; color: var(--de-cream); }

/* align-self keeps the rule under the words. The body is a column
   flexbox, so without it the link stretches the full card width
   and the underline runs edge to edge. */
.de-solution-card.de-tile .de-link {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-gold-light);
  border-bottom: 1px solid rgba(238, 212, 132, 0.4);
  padding-bottom: 4px;
}

.de-solution-card.de-tile:hover .de-tile-frame { border-color: rgba(238, 212, 132, 0.8); }
.de-solution-card.de-tile:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .de-solution-card.de-tile { min-height: 360px; }
  .de-solution-card.de-tile .de-solution-body { padding: 26px 24px; }
  .de-tile .de-tile-frame { inset: 11px; outline-offset: 3px; }
}

/* ============================================================
   2. Product UI recreation - shared frame
   ============================================================ */

.de-ui {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.14);
  border-radius: 16px;
  box-shadow: 0 26px 64px rgba(21, 71, 52, 0.14);
  overflow: hidden;
  font-family: var(--font-body);
  text-align: left;
}

.de-ui-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.10);
}

/* Panel headings are <p>, not real headings: this is a picture of
   an app, so it should not enter the page's heading outline, and
   it sidesteps the .de-section-white h1-h4 colour rules. */
.de-ui .de-ui-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--de-green-deep);
  margin: 0;
}

.de-ui .de-ui-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 5px 0 0;
}

.de-ui-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(21, 71, 52, 0.16);
  border-radius: 999px;
  flex: none;
}

.de-ui-seg span {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
}

.de-ui-seg span.is-on { background: var(--de-green-deep); color: var(--de-cream); }

.de-ui-tabs {
  display: flex;
  gap: 26px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.10);
}

.de-ui-tabs span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.de-ui-tabs span.is-on {
  color: var(--de-green-deep);
  border-bottom-color: var(--de-green-deep);
}

/* A one-line hint at everything this panel is not showing. Cheap
   way to signal breadth without adding another screen. */
.de-ui-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 24px;
  border-top: 1px solid rgba(21, 71, 52, 0.10);
  background: var(--de-white);
}

.de-ui .de-ui-strip span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.de-ui .de-ui-strip span.is-lead { color: var(--de-green-deep); }

.de-ui-foot {
  padding: 12px 24px 14px;
  border-top: 1px solid rgba(21, 71, 52, 0.10);
  background: var(--de-white);
}

.de-ui .de-ui-foot p {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   3. Body A - the morning view
   Three things that already happened, and one thing that is a
   single tap away. Deliberately light: no paragraphs, no tables,
   nothing that reads as a task queue.
   ============================================================ */

.de-ui-board { padding: 24px; background: #FBFAF8; display: grid; gap: 16px; }

.de-ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.de-ui-stat {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.14);
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.de-ui .de-ui-stat-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.de-ui-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2FA36B;
  flex: none;
  box-shadow: 0 0 0 0 rgba(47, 163, 107, 0.5);
  animation: de-ui-pulse 2.4s ease-out infinite;
}

@keyframes de-ui-pulse {
  70%  { box-shadow: 0 0 0 7px rgba(47, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .de-ui-dot { animation: none; }
}

.de-ui .de-ui-stat-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: var(--de-green-deep);
  margin: 0 0 8px;
}

.de-ui .de-ui-stat-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0 0 4px;
}

.de-ui .de-ui-stat-sub {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* The one action on the panel. It is an approval, not a task:
   the work is already done and the button publishes it. */
.de-ui-approve {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.18);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.de-ui-approve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.de-ui .de-ui-approve-q {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.35;
  color: var(--de-green-deep);
  margin: 0;
  max-width: 34ch;
}

.de-ui .de-ui-approve-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2px;
  max-width: 62ch;
}

/* ============================================================
   4. Body B - the intelligence grid
   ============================================================ */

.de-ui-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  padding: 24px;
  background: #FBFAF8;
}

.de-ui-metric {
  background: linear-gradient(160deg, var(--de-green-mid), var(--de-green));
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
}

.de-ui .de-ui-metric-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(238, 232, 222, 0.85);
  margin: 0 0 20px;
}

.de-ui-metric-eyebrow::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(238, 232, 222, 0.18);
  flex: none;
}

.de-ui .de-ui-metric-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(238, 232, 222, 0.8);
  margin: 0 0 6px;
}

.de-ui .de-ui-metric-value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 50px);
  line-height: 1;
  color: var(--de-cream);
  margin: 0 0 10px;
}

.de-ui .de-ui-metric-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(238, 232, 222, 0.72);
  margin: 0 0 20px;
}

.de-ui-metric-rows {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(238, 232, 222, 0.22);
}

.de-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.de-ui .de-ui-row span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 232, 222, 0.78);
  margin: 0;
}

.de-ui .de-ui-row strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--de-cream);
}

.de-ui-gaps { display: grid; gap: 14px; align-content: start; }

.de-ui-gaps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.de-ui .de-ui-gaps-head p {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.de-ui-card {
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.16);
  border-radius: 12px;
  padding: 16px 16px 14px;
}

.de-ui-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--de-green);
  background: var(--de-green-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 11px;
}

.de-ui-approve .de-ui-tag { margin-bottom: 0; }

.de-ui .de-ui-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 14px;
}

.de-ui-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.de-ui-btn {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--de-green-deep);
  color: var(--de-cream);
}

.de-ui-btn.is-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(21, 71, 52, 0.18);
}

/* ============================================================
   5. Body C - list and table panels
   ============================================================ */

.de-ui-plain { padding: 20px 24px 24px; background: #FBFAF8; }

.de-ui-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(21, 71, 52, 0.28);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--de-white);
}

.de-ui-drop-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(21, 71, 52, 0.18);
  flex: none;
}

.de-ui .de-ui-drop strong {
  display: block;
  font-size: 13px;
  color: var(--de-green-deep);
  font-weight: 600;
}

.de-ui .de-ui-drop span { font-size: 11.5px; color: var(--text-muted); }

/* Wrapped in .de-ui-scroll so a narrow phone scrolls the table
   rather than the whole page. */
.de-ui-scroll { overflow-x: auto; }

.de-ui-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--de-white);
  border: 1px solid rgba(21, 71, 52, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.de-ui-table th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 16px;
  background: #FBFAF8;
  border-bottom: 1px solid rgba(21, 71, 52, 0.12);
  white-space: nowrap;
}

.de-ui-table td {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-body);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(21, 71, 52, 0.08);
  vertical-align: middle;
}

.de-ui-table tr:last-child td { border-bottom: 0; }

.de-ui .de-ui-table strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--de-green-deep);
}

.de-ui .de-ui-table small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.de-ui-doc { display: flex; align-items: center; gap: 12px; }

.de-ui-doc-chip {
  width: 28px;
  height: 34px;
  border-radius: 4px 4px 4px 0;
  background: var(--de-green-soft);
  border: 1px solid rgba(21, 71, 52, 0.16);
  flex: none;
}

.de-ui-pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--de-green);
  background: var(--de-green-soft);
  border: 1px solid rgba(21, 71, 52, 0.14);
  white-space: nowrap;
}

.de-ui-pill.is-muted { color: var(--text-muted); background: transparent; }

.de-ui-pill.is-dark {
  color: var(--de-cream);
  background: var(--de-green-deep);
  border-color: var(--de-green-deep);
}

@media (max-width: 860px) {
  .de-ui-stats { grid-template-columns: 1fr; }
  .de-ui-board { padding: 18px; }
  .de-ui-body { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .de-ui-top { padding: 18px 18px 15px; }
  .de-ui-tabs { padding: 0 18px; gap: 20px; }
  .de-ui-plain { padding: 16px 18px 18px; }
  .de-ui-strip { padding: 12px 18px; }
  .de-ui-foot { padding: 11px 18px 13px; }
}
