/* LIGHTWAVE Support Resources
 * The WordPress/Salient page controls page width, heading, typography, background and spacing.
 * This stylesheet only styles the filter/resource application returned by the shortcode.
 */
.lwrc-app {
  --lwrc-ink: #10283e;
  --lwrc-muted: #6a7c8d;
  --lwrc-line: #dce3e9;
  --lwrc-line-dark: #c8d2db;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--lwrc-ink);
  scroll-margin-top: 130px;
}

.lwrc-app * { box-sizing: border-box; }

.lwrc-browse {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--lwrc-line);
}

.lwrc-browse a {
  appearance: none;
  margin: 0 0 -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #41586c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none !important;
}

.lwrc-browse a:hover,
.lwrc-browse a.is-active {
  color: var(--lwrc-ink);
  border-bottom-color: var(--lwrc-ink);
}

.lwrc-filterbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 22px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--lwrc-line);
}

.lwrc-filter {
  display: block;
  margin: 0;
}

.lwrc-filter > span {
  display: block;
  margin: 0 0 7px;
  color: #718294;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lwrc-filter select {
  width: 100%;
  height: 42px;
  margin: 0 !important;
  padding: 0 34px 0 11px !important;
  border: 1px solid var(--lwrc-line-dark) !important;
  border-radius: 2px !important;
  background-color: #fff !important;
  color: #233c50 !important;
  font: inherit !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.lwrc-clear,
.lwrc-empty button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4f6476;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lwrc-clear {
  height: 42px;
  padding: 0 2px;
}

.lwrc-clear:hover,
.lwrc-empty button:hover { color: var(--lwrc-ink); }

.lwrc-result-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--lwrc-muted);
  font-size: 13px;
}

.lwrc-result-head strong {
  color: var(--lwrc-ink);
  font-weight: 600;
}

.lwrc-access-note { font-size: 12px; }

.lwrc-groups {
  display: block;
}

.lwrc-group {
  margin: 0 0 38px;
  scroll-margin-top: 130px;
}

.lwrc-group[hidden] { display: none !important; }

.lwrc-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--lwrc-line-dark);
}

.lwrc-group-heading h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: inherit;
}

.lwrc-group-heading > span {
  color: var(--lwrc-muted);
  font-size: 12px;
}

.lwrc-resources {
  display: block;
}

/* The unfiltered opening view is grouped by category. Once any filter is
 * active, the group labels disappear and matching resources form one clean
 * results list. */
.lwrc-app.is-filtered .lwrc-group {
  margin-bottom: 0;
}

.lwrc-app.is-filtered .lwrc-group-heading {
  display: none;
}


.lwrc-resource {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--lwrc-line);
  background: transparent;
}

.lwrc-resource[hidden] { display: none !important; }

.lwrc-resource-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 24px;
  height: 24px;
  color: #58708a;
}

.lwrc-resource-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lwrc-resource-icon.lwrc-kind-video svg {
  fill: currentColor;
  stroke: none;
}

.lwrc-resource-copy { min-width: 0; }

.lwrc-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 3px;
  color: #718294;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lwrc-provider-label { color: #765e21; }

.lwrc-resource h4 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--lwrc-ink) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
}

.lwrc-resource-copy > p {
  max-width: 760px;
  margin: 5px 0 0 !important;
  color: var(--lwrc-muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.lwrc-resource-meta {
  margin-top: 5px;
  color: #8391a0;
  font-size: 11px;
  line-height: 1.35;
}

.lwrc-resource-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 340px;
}

.lwrc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--lwrc-line-dark);
  border-radius: 2px;
  background: #fff;
  color: var(--lwrc-ink) !important;
  text-decoration: none !important;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.lwrc-action:hover {
  border-color: #93a5b5;
  color: var(--lwrc-ink) !important;
  background: #f8fafb;
}

.lwrc-action.secondary { background: transparent; }

.lwrc-locked-copy {
  max-width: 190px;
  color: #765e21;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.lwrc-empty {
  padding: 30px 0;
  border-top: 1px solid var(--lwrc-line-dark);
}

.lwrc-empty[hidden] { display: none !important; }

.lwrc-empty h3 {
  margin: 0 0 6px !important;
  font-family: inherit !important;
}

.lwrc-empty p {
  margin: 0 0 12px !important;
  color: var(--lwrc-muted) !important;
}

@media (max-width: 1050px) {
  .lwrc-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lwrc-clear { justify-self: start; }
}

@media (max-width: 700px) {
  .lwrc-browse { gap: 18px; }
  .lwrc-filterbar { grid-template-columns: 1fr; }
  .lwrc-result-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lwrc-resource { grid-template-columns: 24px minmax(0, 1fr); }
  .lwrc-resource-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .lwrc-locked-copy { text-align: left; }
}
