/*
 * Decorative adaptation of the user-supplied Liquid Glass package.
 * The original application owns layout, typography, visibility and interactions.
 * Do not load linktolaw-glass.css or its panel-regrouping JavaScript here.
 * Keep citation colours and the document canvas under the native stylesheet.
 */

body.ltl-glass {
  background: #f2f7fc;
  background-image: radial-gradient(ellipse at 7% 8%, #e3efff 0, transparent 43%),
    radial-gradient(ellipse at 97% 42%, #e8f2ff 0, transparent 40%);
  background-attachment: fixed;
}

body.ltl-glass .topbar {
  background: linear-gradient(130deg, #ffffff, #f7fbff);
  border-color: #d7e6f2;
  box-shadow: 0 2px 18px rgb(44 80 115 / 3%);
}

body.ltl-glass .tricoteuses-badge {
  background: linear-gradient(140deg, #ffffff, #edf6ff);
  border-color: #d7e9fc;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 12px rgb(50 100 153 / 4%);
}

body.ltl-glass .intro {
  background: radial-gradient(ellipse at 10% 0, #ffffffed 0, transparent 58%),
    linear-gradient(112deg, #e9f5ff, #dceefe 70%, #d4e9fc);
  box-shadow: 0 8px 26px rgb(43 102 163 / 7%), inset 0 0 0 1px #d6e9fa;
}

/* Paint the supplied illustration only where the existing banner has room.
 * Its native text, logo, dimensions and spacing remain unchanged.
 */
@media (min-width: 1360px) {
  body.ltl-glass .intro {
    background-image: url("../images/linktolaw-banner-vector.svg"),
      radial-gradient(ellipse at 10% 0, #ffffffed 0, transparent 58%),
      linear-gradient(112deg, #e9f5ff, #dceefe 70%, #d4e9fc);
    background-position: right 24px center, center, center;
    background-size: clamp(400px, calc(100vw - 960px), 620px) auto, auto, auto;
    background-repeat: no-repeat;
  }
}

body.ltl-glass .module-widget,
body.ltl-glass .panel {
  background: linear-gradient(140deg, #ffffff, #fcfeff);
  border-color: #d7e6f2;
  box-shadow: 0 10px 35px rgb(41 83 126 / 7%), inset 0 0 0 1px #dfebf5;
}

body.ltl-glass .step,
body.ltl-glass .drop-zone {
  background: linear-gradient(145deg, #f8fcff, #eaf4ff);
  border-color: #bed8f0;
  box-shadow: inset 0 1px 0 #ffffff;
}

body.ltl-glass .drop-zone.dragging {
  background: #e1edf7;
  border-color: #237ace;
}

/* Original package SVGs painted inside the existing 34px step boxes.
 * Keep the native numbers in the DOM for assistive technology and high contrast.
 * No added node, pseudo-element, font change or layout property is needed.
 */
body.ltl-glass .import-panel .step {
  background: url("../icons/file.svg") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}

body.ltl-glass .editor-panel .step {
  background: url("../icons/text.svg") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}

body.ltl-glass .url-panel .step {
  background: url("../icons/link.svg") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}

body.ltl-glass .review-panel .step {
  background: url("../icons/verify.svg") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}

body.ltl-glass .drop-zone svg {
  background: url("../icons/file.svg") center / contain no-repeat;
  stroke: transparent;
}

body.ltl-glass .formats span,
body.ltl-glass input[type="date"],
body.ltl-glass #url-input,
body.ltl-glass #text-input,
body.ltl-glass .connection-form input {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-color: #c9ddf2;
  box-shadow: inset 0 1px 3px rgb(40 84 129 / 3%);
}

body.ltl-glass .formats [data-format] {
  background: #f4f8fd;
  border-color: #d9e5f3;
  color: #496d8b;
}

body.ltl-glass .formats [data-format="pdf"],
body.ltl-glass .formats [data-format="txt"] {
  background: #faf3fc;
  border-color: #eadbee;
  color: #765589;
}

body.ltl-glass .formats [data-format="html"],
body.ltl-glass .formats [data-format="image"] {
  background: #eff9f5;
  border-color: #d1e8e5;
  color: #377971;
}

body.ltl-glass .primary {
  background: linear-gradient(155deg, #2878c8, #2572c1 45%, #165fab);
  box-shadow: 0 4px 11px rgb(31 110 190 / 19%), inset 0 1px 0 #ffffff70;
}

body.ltl-glass .primary:hover:not(:disabled) {
  background: linear-gradient(155deg, #2576c6, #2775c4 45%, #1e6cba);
  box-shadow: 0 5px 15px rgb(31 110 190 / 23%), inset 0 1px 0 #ffffff70;
}

body.ltl-glass .review-heading,
body.ltl-glass .tabs {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-color: #d7e6f2;
}

body.ltl-glass .stats {
  background: linear-gradient(125deg, #f2f8ff, #edf6ff 55%, #f7f4ff);
  border-color: #d7e6f2;
}

body.ltl-glass .export-bar {
  background: linear-gradient(145deg, #fcfeff, #f1f7ff);
  border-color: #d7e6f2;
}

body.ltl-glass .export-bar button,
body.ltl-glass .connection-button {
  background: linear-gradient(145deg, #ffffff, #e7f1ff);
  border-color: #c9ddf2;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 8px rgb(53 98 154 / 7%);
}

body.ltl-glass .export-bar button:hover:not(:disabled),
body.ltl-glass .connection-button:hover:not(:disabled) {
  border-color: #99bfe4;
  box-shadow: 0 4px 11px rgb(53 98 154 / 13%), inset 0 1px 0 #ffffff;
}

body.ltl-glass dialog,
body.ltl-glass .progress-card,
body.ltl-glass .citation-menu {
  background: linear-gradient(145deg, #ffffff, #f5faff);
  border-color: #cfdfef;
  box-shadow: 0 13px 40px rgb(31 69 113 / 18%), inset 0 1px 0 #ffffff;
}

@media (forced-colors: active) {
  body.ltl-glass .import-panel .step,
  body.ltl-glass .editor-panel .step,
  body.ltl-glass .url-panel .step,
  body.ltl-glass .review-panel .step {
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  body.ltl-glass .drop-zone svg {
    background: none;
    stroke: CanvasText;
  }

  body.ltl-glass,
  body.ltl-glass .topbar,
  body.ltl-glass .intro,
  body.ltl-glass .module-widget,
  body.ltl-glass .panel,
  body.ltl-glass dialog,
  body.ltl-glass .progress-card,
  body.ltl-glass .citation-menu {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}
