/* OneFSG .41.88 - Corporate hub and standard site-directory presentation.
   Existing nodes, order, routes, metrics, handlers and permissions are unchanged.
   No new hub, consolidated navigation, hidden section, money total or app menu.
   Scope excludes authored layouts, document content and built application hosts. */

html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) {
  color: var(--fsg-text);
  min-width: 0;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-lead {
  max-width: 68ch;
  color: var(--fsg-text-muted);
  line-height: 1.5;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px;
  margin-top: 20px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis > .v8-card {
  min-width: 0;
  padding: 16px 18px;
  background: var(--fsg-surface);
  border: 1px solid var(--fsg-line);
  border-radius: 12px;
  box-shadow: var(--fsg-shadow-1);
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis .v8-metric {
  color: var(--fsg-text);
  font-size: 26px;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis .v8-muted {
  color: var(--fsg-text-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > :is(.v8-dept-sections, .v8-dept-section) {
  margin-top: 20px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-sections {
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-sections > .v8-card {
  padding: 20px;
  background: var(--fsg-surface-2);
  box-shadow: var(--fsg-shadow-1);
  min-width: 0;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-sections :is(h2,h3) {
  color: var(--fsg-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-sections :is(p,strong) {
  overflow-wrap: anywhere;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) .v8-dept-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) .v8-dept-chip-row > .v8-badge {
  background: var(--fsg-neutral-chip);
  color: var(--fsg-text);
  border: 1px solid var(--fsg-line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) .v8-gov-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 0;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) .v8-gov-flow > span {
  padding: 5px 8px;
  border: 1px solid var(--fsg-line);
  border-radius: 6px;
  background: var(--fsg-surface);
  color: var(--fsg-text);
  font-size: 12px;
  font-weight: 500;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) .v8-gov-flow > b {
  color: var(--fsg-text-muted);
  font-weight: 400;
}
/* Keep the native rollup table and its original scoped navigation buttons. */
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section {
  padding: 20px;
  background: var(--fsg-surface);
  box-shadow: var(--fsg-shadow-1);
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section > h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section > .v8-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--fsg-line);
  border-radius: 8px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table {
  min-width: 920px;
  table-layout: auto;
  margin: 0;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table th {
  background: var(--fsg-surface-2);
  font-size: 11px;
  color: var(--fsg-text-muted);
  white-space: nowrap;
  font-weight: 500;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table td {
  background: var(--fsg-surface);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums lining-nums;
  vertical-align: middle;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table td:first-child strong {
  color: var(--fsg-text);
  font-weight: 500;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table :is(th,td):nth-child(n+3):not(:last-child):not([colspan]) {
  text-align: right;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table :is(th,td):last-child:not(:first-child) {
  text-align: right;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table td:last-child > button.v8-btn {
  color: var(--fsg-orange-ink) !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  min-height: 36px;
  font-weight: 500 !important;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table td:last-child > button.v8-btn:hover:not(:disabled) {
  background: var(--fsg-orange-tint) !important;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section .v8-table td:last-child > button.v8-btn:focus-visible {
  outline: 2px solid var(--fsg-orange);
  outline-offset: -2px;
}
/* Existing IT external-tool links remain ordinary anchors with their own URL/target/rel. */
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-it-section > .v8-grid.two > a.v8-card:not([data-fsg-hub-skip]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  background: var(--fsg-surface);
  color: var(--fsg-text);
  border: 1px solid var(--fsg-line);
  border-radius: 12px;
  box-shadow: var(--fsg-shadow-1);
  text-decoration: none;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-it-section > .v8-grid.two > a.v8-card:not([data-fsg-hub-skip]):hover {
  border-color: var(--fsg-line-strong);
  background: var(--fsg-surface-2);
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-it-section > .v8-grid.two > a.v8-card:not([data-fsg-hub-skip]) > strong {
  margin-top: auto;
  color: var(--fsg-orange-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-it-section > .v8-grid.two > a.v8-card:not([data-fsg-hub-skip]):focus-visible {
  outline: 2px solid var(--fsg-orange);
  outline-offset: 2px;
}
/* Standard Home/Sites cards only. Never touch a published Site Experience Builder layout. */
html.fsg-ui #v8-content > section > .v8-site-grid {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 16px;
  margin: 16px 0 28px;
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  padding: 0;
  border-radius: 12px;
  background: var(--fsg-surface);
  border: 1px solid var(--fsg-line);
  box-shadow: var(--fsg-shadow-1);
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site > .v8-site-img {
  height: 4px;
  flex: 0 0 4px;
  background: var(--fsg-orange);
  border-radius: 11px 11px 0 0;
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site > .v8-site-body {
  padding: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site .v8-site-body h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 0;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site .v8-site-body p {
  min-height: 0;
  margin: 0 0 8px;
  color: var(--fsg-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
html.fsg-ui #v8-content > section > .v8-site-grid > .v8-site .v8-actions {
  margin-top: auto;
  gap: 8px;
  flex-wrap: wrap;
}
/* Only the standard site landing's direct app cards, not a built app or authored document. */
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-panel-grid > .onefsg-app-card {
  min-width: 0;
  padding: 20px;
  background: var(--fsg-surface);
  color: var(--fsg-text);
  border: 1px solid var(--fsg-line);
  border-radius: 12px;
  box-shadow: var(--fsg-shadow-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-panel-grid > .onefsg-app-card > h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--fsg-text);
  font-weight: 500;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-panel-grid > .onefsg-app-card > p {
  color: var(--fsg-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-panel-grid > .onefsg-app-card > .v8-btn {
  align-self: flex-start;
  max-width: 100%;
  margin-top: auto;
  white-space: normal;
}
@media (max-width:1200px) {
  html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  html.fsg-ui #v8-content > section > .v8-site-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:720px) {
  html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-sections {
    grid-template-columns: minmax(0,1fr);
  }
  html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  html.fsg-ui #v8-content > section > .v8-site-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > :is(.v8-dept-kpis,.v8-dept-sections) > .v8-card,
  html.fsg-ui #v8-content > .v8-dept-hub:not([data-fsg-hub-skip]) > .v8-dept-section {
    padding: 16px;
  }
}
@media (forced-colors:active) {
  html.fsg-ui #v8-content > .v8-dept-hub > .v8-dept-section .v8-table td:last-child > button.v8-btn {
    color: ButtonText !important;
    border-color: ButtonText !important;
    background: ButtonFace !important;
    forced-color-adjust: auto;
  }
}
/* Standard site-landing guidance and existing summaries. Values are never calculated here. */
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .lead {
  color: var(--fsg-text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 68ch;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-policy-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  margin: 20px 0;
  background: var(--fsg-surface);
  border: 1px solid var(--fsg-line);
  border-radius: 12px;
  box-shadow: var(--fsg-shadow-1);
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-policy-entry h2 {
  color: var(--fsg-text);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 4px 0 8px;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-policy-entry p {
  color: var(--fsg-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin: 20px 0;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-kpi-grid > .onefsg-kpi-card {
  min-width: 0;
  background: var(--fsg-surface);
  border: 1px solid var(--fsg-line);
  border-radius: 12px;
  box-shadow: var(--fsg-shadow-1);
  padding: 16px;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-kpi-grid > .onefsg-kpi-card > strong {
  color: var(--fsg-text);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums lining-nums;
}
html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-kpi-grid > .onefsg-kpi-card > span {
  color: var(--fsg-text-muted);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width:800px) {
  html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-policy-entry {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-policy-entry > button {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
  }
  html.fsg-ui #v8-content > .v8-site-apps:not(.onefsg-built-site-shell) > .onefsg-kpi-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
